:root {
  --paper: #e7e6e3;
  --ink: #272727;
  --muted: #686763;
  --line: #c7c5c0;
  --header-height: 78px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.site-header { height: var(--header-height); position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 clamp(20px, 4vw, 72px); background: rgba(231,230,227,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.wordmark { font-size: 13px; letter-spacing: .18em; font-weight: 700; white-space: nowrap; line-height: 1.4; }
.wordmark span { font-weight: 400; }
.primary-nav { display: flex; gap: clamp(12px, 2vw, 30px); align-items: center; }
.primary-nav a { font-size: 11px; color: #4e4d49; text-transform: uppercase; letter-spacing: .09em; transition: color .2s ease; }
.primary-nav a:hover, .primary-nav a.active { color: #000; text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { display: none; color: var(--ink); background: transparent; border: 0; font: inherit; }
.page-section { width: min(100% - 40px, 1640px); margin: 0 auto; padding: clamp(40px, 6vw, 86px) 0 0; }
.home-section { padding-top: clamp(22px, 3vw, 44px); }
.page-frame { width: 100%; margin: 0 auto; background: transparent; }
.portfolio-page { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; cursor: zoom-in; }
.cover-frame .portfolio-page { cursor: zoom-in; }
.home-foot, .section-heading, .projects-intro { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.home-foot { padding: 16px 2px 0; color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.home-foot a { color: var(--ink); letter-spacing: .06em; }
.eyebrow, .section-count, .project-name { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.section-heading { border-top: 1px solid var(--line); padding: 15px 2px 13px; margin-bottom: 12px; }
.section-heading.subheading { margin-top: clamp(42px, 7vw, 92px); }
.project-section { padding-top: clamp(36px, 6vw, 80px); }
.project-section + .project-section { margin-top: clamp(38px, 6vw, 82px); }
.project-name { color: var(--ink); letter-spacing: .08em; }
.projects-intro { padding: 0 2px 16px; border-bottom: 1px solid var(--line); }
.contact-section { padding-bottom: clamp(32px, 5vw, 66px); }
.site-footer { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px clamp(20px, 4vw, 72px); border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.site-footer .wordmark { color: var(--ink); }
.back-top { color: var(--ink); }
.image-viewer { width: min(96vw, 1800px); height: min(94vh, 1100px); max-width: none; max-height: none; border: 0; padding: 24px; background: rgba(24,24,24,.97); overflow: hidden; }
.image-viewer::backdrop { background: rgba(15,15,15,.88); }
.image-viewer img { width: 100%; height: 100%; object-fit: contain; }
.viewer-close { position: absolute; top: 4px; right: 10px; z-index: 2; border: 0; background: transparent; color: white; font-size: 34px; cursor: pointer; }
@media (max-width: 980px) {
  .site-header { gap: 1rem; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 11px; letter-spacing: .1em; }
  .menu-icon { font-size: 18px; }
  .primary-nav { display: none; position: absolute; top: calc(var(--header-height) - 1px); left: 0; right: 0; padding: 16px 22px 22px; flex-direction: column; align-items: flex-start; gap: 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .primary-nav.open { display: flex; }
}
@media (max-width: 600px) {
  :root { --header-height: 64px; }
  .page-section { width: calc(100% - 20px); padding-top: 34px; }
  .home-section { padding-top: 12px; }
  .home-foot { font-size: 9px; }
  .section-heading { padding-top: 12px; }
  .eyebrow, .section-count, .project-name { font-size: 9px; }
  .site-footer { flex-wrap: wrap; min-height: 74px; }
  .site-footer > span { order: 3; width: 100%; }
  .image-viewer { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 18px 2px 4px; }
.social-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid var(--line); color: var(--ink); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
.social-links a:hover, .social-links a:focus-visible { background: var(--ink); color: var(--paper); outline: none; }

/* Personal profile block added to the About section */
.about-profile { display: grid; grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 6vw, 92px); align-items: center; max-width: 1180px; margin: clamp(42px, 6vw, 82px) auto clamp(50px, 7vw, 100px); padding: 0 clamp(8px, 3vw, 40px); }
.about-portrait-wrap { width: 100%; max-width: 470px; justify-self: center; overflow: hidden; background: #d5d2cc; }
.about-portrait { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 38%; }
.about-copy { max-width: 560px; }
.about-copy h2 { margin: 18px 0 8px; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.02; font-weight: 400; letter-spacing: -.045em; }
.about-role { margin: 0 0 26px !important; color: var(--muted); font-size: 11px !important; letter-spacing: .14em; text-transform: uppercase; }
.about-copy p { max-width: 510px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.8; color: #55534f; }
.about-contact-link { display: inline-flex; gap: 12px; align-items: center; margin-top: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
@media (max-width: 700px) { .about-profile { grid-template-columns: 1fr; gap: 28px; width: min(100%, 520px); padding: 0 8px; } .about-portrait-wrap { max-width: 360px; } .about-copy { padding: 0 4px; } }


/* Redesigned final contact page: portrait plus three evenly spaced contact details */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: center; width: min(100%, 760px); margin: clamp(30px, 5vw, 68px) auto 0; padding: 0 clamp(8px, 3vw, 40px); }
.contact-portrait-wrap { width: 100%; max-width: 430px; justify-self: center; overflow: hidden; background: #d5d2cc; }
.contact-portrait { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 38%; }
.contact-content { width: 100%; max-width: 620px; }
.contact-title { padding-bottom: clamp(22px, 3vw, 38px); border-bottom: 1px solid var(--line); }
.contact-title h2 { margin: 0 0 8px; color: var(--muted); font-size: clamp(34px, 4vw, 58px); line-height: 1.05; font-weight: 400; letter-spacing: -.04em; text-transform: uppercase; }
.contact-title p { margin: 0; color: var(--muted); font-size: clamp(15px, 1.5vw, 21px); }
.contact-details { display: grid; gap: clamp(18px, 2.5vw, 30px); padding: clamp(26px, 4vw, 48px) 0; }
.contact-row { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 18px; min-height: 34px; font-size: clamp(15px, 1.5vw, 20px); color: var(--ink); }
.contact-symbol { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #aaa9a5; color: white; font-size: 17px; line-height: 1; }
.contact-details a:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.contact-section .social-links { justify-content: flex-start; padding: 0; }
@media (max-width: 700px) { .contact-layout { grid-template-columns: 1fr; gap: 30px; width: min(100%, 520px); padding: 0 8px; } .contact-portrait-wrap { max-width: 330px; } .contact-content { max-width: none; } .contact-title h2 { font-size: 38px; } .contact-row { font-size: 15px; } }
