/* Hassan Zayed — English portfolio styles. */
:root {
  color-scheme: light;
  --paper: #f0ede6;
  --paper-2: #e3dfd7;
  --paper-3: #f8f6f1;
  --ink: #1c2422;
  --muted: #595e58;
  --line: rgba(29, 33, 31, .18);
  --accent: #c24f35;
  --accent-text: #a5402a;
  --accent-light: #e58a70;
  --mono: ui-monospace, monospace;
  --sans: "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 48px;
}
@view-transition { navigation: auto; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
.page-grid { width: min(1320px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Focus: always visible for keyboard users */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 2px; }
.contact-section :focus-visible { outline-color: var(--accent-light); }
.skip-link { position: absolute; z-index: 100; inset-inline-start: 16px; top: -60px; padding: 10px 16px; background: var(--ink); color: var(--paper); font-size: 14px; border-radius: 6px; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- header */
.site-header { position: relative; z-index: 20; height: 84px; width: min(1440px, calc(100% - var(--gutter) * 2)); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); }
.wordmark { font-family: "Helvetica Neue", Arial, sans-serif; font-size: 22px; font-weight: 800; letter-spacing: normal; width: max-content; padding: 6px 0; }
.wordmark span { color: var(--accent); }
.main-nav { display: flex; justify-content: center; gap: 34px; font-size: 15px; font-weight: 500; }
.main-nav a { position: relative; padding: 6px 0; transition: color .2s; }
.main-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: var(--origin, left); transition: transform .3s var(--ease); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent-text); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-end { justify-self: end; display: flex; align-items: center; gap: 22px; }
.header-note { display: flex; align-items: center; gap: 9px; font: 13px var(--mono); color: var(--muted); transition: color .2s; }
.header-note:hover { color: var(--ink); }
.header-note i { width: 8px; height: 8px; border-radius: 50%; background: #5f8a4c; box-shadow: 0 0 0 4px rgba(95,138,76,.15); }

/* ---------------------------------------------------------------- shared type */
.eyebrow { color: var(--muted); font: 500 13px/1.5 var(--mono); letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.eyebrow-rule { flex: 0 0 26px; height: 1px; background: var(--accent); }
h1 { font-size: clamp(56px, 7vw, 100px); line-height: .99; letter-spacing: normal; font-weight: 500; }
h1 em, h2 em, blockquote em { color: var(--accent-text); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: normal; }
.text-link { display: inline-flex; align-items: center; gap: 12px; padding: 0 0 5px; background: none; border: 0; border-bottom: 1px solid var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; transition: color .2s, border-color .2s; }
.text-link.small { font-size: 14px; }
.text-link:hover { color: var(--accent-text); border-color: var(--accent-text); }
.text-link span[aria-hidden] { color: var(--accent); font-size: 17px; transition: transform .25s var(--ease); }
.text-link:hover span[aria-hidden] { transform: translate(var(--nudge, 3px), -2px); }
.button-primary { display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 3px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; transition: background .25s, border-color .25s, transform .25s var(--ease); }
.button-primary span { color: var(--accent-light); transition: transform .25s var(--ease); }
.button-primary:hover { background: var(--accent-text); }
.button-primary:hover span { color: var(--paper); transform: translateX(var(--nudge, 3px)); }

/* ---------------------------------------------------------------- hero */
.hero { padding-top: 78px; padding-bottom: 40px; display: grid; grid-template-columns: 1.08fr .92fr; column-gap: 7%; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.hero-name { margin-top: 26px; font-size: 18px; font-weight: 600; letter-spacing: normal; }
.hero-name-dot { display: inline-block; width: 7px; height: 7px; margin: 0 0 2px 5px; border-radius: 50%; background: #668558; box-shadow: 0 0 0 4px rgba(102,133,88,.12); }
.hero h1 { margin: 12px 0 24px; max-width: 740px; font-size: clamp(52px, 6.2vw, 88px); line-height: 1.02; letter-spacing: normal; }
.hero-intro { max-width: 500px; margin-bottom: 30px; font-size: 18px; color: #454b46; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 30px; }
.hero-image { position: relative; aspect-ratio: .96; max-height: 560px; width: calc(100% - 10px); justify-self: end; margin: 0 10px 10px 0; background: #b9b8b1; overflow: hidden; border: 1px solid rgba(29,33,31,.08); box-shadow: 10px 10px 0 var(--paper-2); }
.hero-image img { transition: transform .9s var(--ease); }
.hero-image:hover img { transform: scale(1.03); }
.image-caption { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; gap: 16px; padding: 40px 18px 15px; font: 500 13px var(--mono); color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.disciplines { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.disciplines li { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 20px 24px 6px 0; }
.disciplines li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.disc-num { grid-row: span 3; font: 500 13px var(--mono); color: var(--accent-text); padding-top: 4px; }
.disciplines strong { font-size: 20px; font-weight: 600; letter-spacing: normal; }
.disciplines span:not(.disc-num) { color: var(--muted); font-size: 15px; }
.disciplines em { font: 500 13px var(--mono); font-style: normal; color: var(--ink); margin-top: 6px; }

/* ---------------------------------------------------------------- work */
.work-section { padding-top: 110px; padding-bottom: 100px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 34px; }
.section-heading h2, .practice-heading h2, .about-body h2, .profiles h2 { margin-top: 16px; font-size: clamp(40px, 5vw, 64px); line-height: 1.03; font-weight: 500; letter-spacing: normal; }
.section-heading h2 span, .contact-section h2 span { color: var(--accent); }
.section-note { max-width: 360px; color: var(--muted); font-size: 15px; }
.filters-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-block: 1px solid var(--line); padding: 10px 0; margin-bottom: 34px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-button { min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font: 500 14px var(--mono); transition: color .2s, background .2s, border-color .2s; }
.filter-button:hover { color: var(--ink); border-color: var(--line); }
.filter-button.is-active { color: var(--paper); background: var(--ink); }
.filter-count { margin-inline-start: 6px; opacity: .6; font-size: 12px; }
.filter-status { color: var(--muted); font: 13px var(--mono); white-space: nowrap; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px; align-items: start; }
.project { min-width: 0; }
.project-wide { grid-column: span 2; }
.project-link { display: block; }
.project-image { display: block; aspect-ratio: 1.05; background: #d3d0c9; overflow: hidden; position: relative; border: 1px solid rgba(29,33,31,.08); }
.project-wide .project-image { aspect-ratio: 1.45; }
.project-tall .project-image { aspect-ratio: .705; }
.project-image img { transition: transform .7s var(--ease); }
.project-link:hover .project-image img { transform: scale(1.035); }
.project-open { position: absolute; inset-inline-end: 14px; top: 14px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); background: var(--paper); border-radius: 50%; font-size: 17px; transition: background .25s, color .25s, transform .25s var(--ease); }
.project-link:hover .project-open { background: var(--accent); color: #fff; transform: scale(1.06); }
.project-meta { display: flex; justify-content: space-between; align-items: start; gap: 18px; padding-top: 14px; }
.project-text { display: flex; flex-direction: column; gap: 3px; }
.project-type { display: block; font: 500 13px var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.project-title { font-size: 21px; font-weight: 500; letter-spacing: normal; line-height: 1.3; }
.project-link:hover .project-title { color: var(--accent-text); }
.project-link:focus-visible .project-title { color: var(--accent-text); }
.project-dest { display: inline-flex; gap: 8px; margin-top: 4px; font-size: 14px; color: var(--muted); }
.project-dest span { color: var(--accent); }
.dest-int { color: var(--accent-text); font-weight: 600; }
.project-index { padding-top: 2px; font: 13px var(--mono); color: #85847d; }
.work-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 60px; color: var(--muted); font-size: 15px; }
.work-footer .text-link { color: var(--ink); }
[data-category][hidden] { display: none; }

/* ---------------------------------------------------------------- statement */
.statement { background: var(--paper-2); padding: 80px 0 74px; }
.statement-inner { display: grid; grid-template-columns: .14fr 1fr .36fr; align-items: start; gap: 20px; }
.statement-mark { font: 100px/.8 Georgia, serif; color: var(--accent); }
.statement blockquote p { max-width: 780px; font-size: clamp(29px, 4vw, 50px); line-height: 1.15; letter-spacing: normal; }
.statement-credit { justify-self: end; padding-top: 8px; color: var(--muted); font: 500 13px/1.7 var(--mono); text-align: end; text-transform: uppercase; }

/* ---------------------------------------------------------------- practice */
.practice { padding-top: 110px; padding-bottom: 30px; display: grid; grid-template-columns: .8fr 2.2fr; gap: 6%; }
.about-page .practice { padding-bottom: 110px; }
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.practice-item { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 24px 10px 0; }
.practice-item + .practice-item { border-inline-start: 1px solid var(--line); padding-inline-start: 24px; }
.practice-top { width: 100%; display: flex; justify-content: space-between; gap: 10px; font: 500 13px var(--mono); }
.practice-num { color: var(--accent-text); }
.practice-since { color: var(--muted); }
.practice-item h3 { font-size: 26px; font-weight: 500; letter-spacing: normal; }
.practice-item p { color: #4f514b; font-size: 15px; line-height: 1.7; }
.practice-item .text-link { margin-top: auto; padding-top: 8px; }

/* ---------------------------------------------------------------- about teaser */
.about-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 8%; align-items: start; padding-top: 110px; padding-bottom: 110px; }
.about-portrait { position: relative; aspect-ratio: .82; overflow: hidden; background: #cfcbc3; border-radius: 3px; }
.about-portrait img { object-position: 50% 28%; }
.about-portrait figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 14px; color: #fff; font: 500 13px var(--mono); background: linear-gradient(transparent, rgba(0,0,0,.5)); }
.about-body h2 { margin-bottom: 28px; }
.about-body p { color: #4f514b; font-size: 16px; line-height: 1.75; max-width: 640px; }
.about-body .about-lead { margin-bottom: 16px; font-size: 22px; line-height: 1.45; letter-spacing: normal; color: var(--ink); }
.experience-list { border-top: 1px solid var(--line); margin: 32px 0 28px; max-width: 640px; }
.experience-list li { display: grid; grid-template-columns: 110px 170px 1fr; gap: 15px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.exp-date, .experience-list small { color: var(--muted); font: 13px/1.6 var(--mono); }
.experience-list strong { font-size: 15px; font-weight: 600; }
.about-actions { display: flex; flex-wrap: wrap; gap: 18px 30px; }

/* ---------------------------------------------------------------- profiles */
.profiles { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10%; padding-top: 60px; padding-bottom: 80px; border-top: 1px solid var(--line); }
.profiles h2 { font-size: clamp(34px, 4vw, 50px); }
.profile-links { border-top: 1px solid var(--line); }
.profile-links a { display: grid; grid-template-columns: 1fr 1.2fr 25px; align-items: center; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); transition: padding .25s var(--ease), color .2s; }
.profile-links a:hover { padding-inline: 8px; color: var(--accent-text); }
.pl-name { font-size: 18px; font-weight: 500; text-align: start; }
.profile-links small { color: var(--muted); font-size: 14px; }
.external { justify-self: end; color: var(--accent); }

/* ---------------------------------------------------------------- contact */
.contact-section { background: var(--ink); color: var(--paper); padding: 46px 52px 48px; margin-bottom: 36px; border-radius: 4px; }
.contact-top { display: flex; justify-content: space-between; gap: 20px; }
.contact-top .eyebrow, .contact-location { color: #b9bab1; }
.contact-location { font: 500 13px var(--mono); }
.contact-section h2 { margin: 60px 0 26px; font-size: clamp(60px, 10vw, 122px); line-height: .92; font-weight: 500; letter-spacing: normal; }
.contact-section h2 span { color: var(--accent-light); }
.contact-help { max-width: 520px; margin-bottom: 44px; color: #cfd0c8; font-size: 17px; line-height: 1.65; }
.contact-bottom { display: flex; justify-content: space-between; align-items: end; gap: 30px; border-top: 1px solid rgba(238,234,227,.24); padding-top: 22px; }
.contact-email { font-size: clamp(20px, 2.4vw, 30px); letter-spacing: normal; border-bottom: 1px solid rgba(238,234,227,.3); transition: border-color .2s, color .2s; }
.contact-email:hover { color: var(--accent-light); border-color: var(--accent-light); }
.contact-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 14px; color: #cfd0c8; font-size: 15px; }
.contact-sub a:hover { color: var(--accent-light); }
.copy-email { min-height: 36px; padding: 0 14px; border: 1px solid rgba(238,234,227,.35); border-radius: 999px; background: transparent; color: var(--paper); font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.copy-email:hover { background: var(--paper); color: var(--ink); }
.copy-status { color: var(--accent-light); font-size: 14px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 16px 26px; }
.contact-actions .text-link { border-color: #8e928a; }
.contact-actions .text-link:hover { color: var(--accent-light); border-color: var(--accent-light); }
.contact-actions .text-link span[aria-hidden] { color: var(--accent-light); }

/* ---------------------------------------------------------------- footer */
.site-footer { min-height: 84px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; color: var(--muted); font: 13px var(--mono); }
.site-footer > span { justify-self: center; }
.site-footer > a:last-child { justify-self: end; transition: color .2s; }
.site-footer > a:last-child:hover { color: var(--accent-text); }

/* ---------------------------------------------------------------- about page */
.about-hero { overflow-x: clip; overflow-y: visible; display: grid; grid-template-columns: 1.05fr .75fr; column-gap: 10%; align-items: center; padding-top: 64px; padding-bottom: 30px; }
.about-hero-copy { max-width: 650px; position: relative; z-index: 1; }
.about-hero h1 { margin: 26px 0 28px; font-size: clamp(72px, 9vw, 120px); }
.about-hero-lead { max-width: 500px; margin-bottom: 18px; color: #4f514b; font-size: 21px; line-height: 1.55; letter-spacing: normal; }
.about-hero-roles { margin-bottom: 30px; font: 500 14px var(--mono); color: var(--accent-text); }
.portrait-frame { width: min(100%, 430px); aspect-ratio: .84; margin-inline: auto; position: relative; isolation: isolate; }
.portrait-frame img { position: relative; z-index: 1; object-position: 50% 28%; border-radius: 3px; }
.portrait-frame figcaption { position: absolute; z-index: 2; inset: auto 0 0 0; display: flex; justify-content: space-between; gap: 14px; padding: 40px 16px 14px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.5)); font: 500 13px var(--mono); border-radius: 0 0 3px 3px; }
.portrait-ring { position: absolute; z-index: -1; width: 112%; aspect-ratio: 1; top: -6%; inset-inline-start: -6%; border: 1px solid rgba(194,79,53,.32); border-radius: 50%; }
.portrait-ring::before { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); inset-inline-start: 15%; top: 14%; box-shadow: 0 0 0 7px rgba(194,79,53,.1); }
.about-hero-index { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 40px; color: var(--muted); font: 13px var(--mono); text-transform: uppercase; }
.about-story { display: grid; grid-template-columns: .85fr 1.15fr; gap: 10%; padding-top: 120px; padding-bottom: 10px; }
.about-story-heading h2, .timeline-heading h2, .about-end h2 { margin-top: 18px; font-size: clamp(43px, 5.5vw, 70px); line-height: 1.03; font-weight: 500; letter-spacing: normal; }
.about-story-copy { max-width: 650px; }
.about-story-copy p { margin-bottom: 18px; color: #4f514b; font-size: 16px; line-height: 1.85; }
.about-story-copy .story-lead { color: var(--ink); font-size: 23px; line-height: 1.55; letter-spacing: normal; }
.about-story-copy .text-link { margin-top: 10px; }
.timeline-section { background: var(--paper-2); padding: 104px 0 108px; }
.timeline-inner { display: grid; grid-template-columns: .82fr 1.18fr; gap: 11%; align-items: start; }
.timeline-heading { position: sticky; top: 40px; }
.timeline-heading > p:not(.eyebrow) { max-width: 330px; margin: 21px 0 26px; color: var(--muted); font-size: 15px; }
.timeline-list { border-top: 1px solid var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 110px 1fr 12px; gap: 18px; align-items: start; padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.timeline-year { padding-top: 4px; color: var(--accent-text); font: 500 13px var(--mono); }
.timeline-item h3 { margin-bottom: 4px; font-size: 19px; font-weight: 500; letter-spacing: normal; }
.timeline-item p { max-width: 480px; color: #55564f; font-size: 15px; line-height: 1.65; }
.timeline-dot { width: 9px; height: 9px; margin-top: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(194,79,53,.12); transition: box-shadow .3s, transform .3s; }
.timeline-item:hover .timeline-dot { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(194,79,53,.12); }
.about-end { padding-top: 105px; padding-bottom: 112px; }
.about-end h2 { margin: 20px 0 34px; font-size: clamp(52px, 7vw, 86px); }
.about-end-actions { display: flex; align-items: center; gap: 22px 30px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- case page */
.case-heading { padding-top: 70px; padding-bottom: 54px; }
.case-heading h1 { margin: 26px 0 34px; font-size: clamp(56px, 8vw, 112px); }
.case-intro { display: grid; grid-template-columns: 1fr auto; gap: 40px 8%; align-items: end; border-top: 1px solid var(--line); padding-top: 22px; }
.case-intro p { max-width: 560px; color: #4f514b; font-size: 18px; }
.case-facts { display: flex; gap: 34px; }
.case-facts dt { font: 500 13px var(--mono); color: var(--muted); text-transform: uppercase; }
.case-facts dd { font-size: 15px; font-weight: 600; }
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-image { margin: 0; }
.case-image-wide { grid-column: 1 / -1; }
.case-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #c9c8c2; cursor: zoom-in; overflow: hidden; aspect-ratio: 1; border-radius: 3px; }
.case-image-wide .case-zoom { aspect-ratio: 16 / 9; }
.case-zoom img { transition: transform .8s var(--ease); }
.case-zoom:hover img { transform: scale(1.03); }
.zoom-hint { position: absolute; top: 14px; inset-inline-end: 14px; padding: 7px 13px; border-radius: 999px; background: rgba(246,243,238,.92); font-size: 13px; font-weight: 600; opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s; }
.case-zoom:hover .zoom-hint, .case-zoom:focus-visible .zoom-hint { opacity: 1; transform: none; }
.case-image figcaption { padding-top: 10px; color: var(--muted); font: 13px var(--mono); }
.case-notes { display: grid; grid-template-columns: .85fr 1.15fr; gap: 10%; padding-top: 110px; padding-bottom: 100px; }
.case-notes h2 { margin-top: 18px; font-size: clamp(40px, 5vw, 64px); line-height: 1.04; font-weight: 500; letter-spacing: normal; }
.case-notes-copy p { margin-bottom: 16px; color: #4f514b; font-size: 17px; line-height: 1.8; max-width: 600px; }
.case-notes-copy .text-link { margin-top: 10px; }
.case-next { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 30px; align-items: center; padding: 34px 0 50px; border-top: 1px solid var(--line); }
.case-next > .text-link { justify-self: start; }
.case-next-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 4px; transition: border-color .2s, background .2s; }
.case-next-card:hover { border-color: var(--ink); background: var(--paper-3); }
.case-next-title { font-size: 21px; font-weight: 500; letter-spacing: normal; }

/* image viewer */
.viewer { width: min(1200px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 6px; background: #121311; color: var(--paper); overflow: hidden; }
.viewer::backdrop { background: rgba(14,15,13,.86); }
.viewer[open] { animation: cv-enter .3s var(--ease) both; }
.viewer figure { display: flex; flex-direction: column; }
.viewer img { width: 100%; height: auto; max-height: calc(100vh - 100px); object-fit: contain; background: #121311; }
.viewer figcaption { padding: 12px 18px 14px; font: 13px var(--mono); color: #cfd0c8; }
.viewer-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; color: var(--paper) !important; background: rgba(18,19,17,.6) !important; border-color: rgba(238,234,227,.4) !important; }
.viewer-close:hover { background: var(--paper) !important; color: var(--ink) !important; }

/* ---------------------------------------------------------------- motion */
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes imageIn { from { opacity: 0; clip-path: inset(10% 0 0 0); transform: translateY(14px); } to { opacity: 1; clip-path: inset(0); transform: none; } }
@keyframes ringIn { from { opacity: 0; transform: scale(.92) rotate(-40deg); } to { opacity: 1; transform: none; } }
body.reveal-ready [data-reveal]:not([data-reveal="hero"]) { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .8s var(--ease); }
body.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="hero"] .hero-copy > *, [data-reveal="hero"] .about-hero-copy > *, [data-reveal="hero"] > .eyebrow, [data-reveal="hero"] > h1, [data-reveal="hero"] > .case-intro { animation: riseIn .8s both var(--ease); }
[data-reveal="hero"] .hero-copy > :nth-child(2), [data-reveal="hero"] .about-hero-copy > :nth-child(2), [data-reveal="hero"] > h1 { animation-delay: .06s; }
[data-reveal="hero"] .hero-copy > :nth-child(3), [data-reveal="hero"] .about-hero-copy > :nth-child(3), [data-reveal="hero"] > .case-intro { animation-delay: .12s; }
[data-reveal="hero"] .hero-copy > :nth-child(n+4), [data-reveal="hero"] .about-hero-copy > :nth-child(n+4) { animation-delay: .2s; }
[data-reveal="hero"] .hero-image, [data-reveal="hero"] .portrait-frame img { animation: imageIn 1.05s .15s both var(--ease); }
[data-reveal="hero"] .portrait-ring { animation: ringIn 1.4s .35s both var(--ease); }
[data-reveal="hero"] .disciplines, [data-reveal="hero"] .about-hero-index { animation: riseIn .7s .38s both var(--ease); }
.project[data-reveal] { transition-delay: var(--reveal-delay, 0ms); }
.project.is-filtering { animation: riseIn .45s both var(--ease); }

/* ---------------------------------------------------------------- floating CV + contact */
.floating-actions { position: fixed; z-index: 40; inset-inline-end: max(24px, calc((100vw - 1320px) / 2)); bottom: max(22px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; }
.quick-action { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(31,32,29,.16); border-radius: 999px; color: var(--ink); background: rgba(246,244,239,.95); box-shadow: 0 8px 28px rgba(24,25,22,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; }
.quick-action-contact { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.qa-plus { display: inline-block; color: var(--accent-light); font-size: 19px; line-height: 1; transition: transform .3s var(--ease); }
.quick-action[aria-expanded="true"] .qa-plus { transform: rotate(45deg); }
.quick-action:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(24,25,22,.18); }
.quick-action-cv:hover { background: var(--paper-3); }
.quick-action-contact:hover { background: var(--accent-text); border-color: var(--accent-text); }
.contact-popover { position: absolute; inset-inline-end: 0; bottom: 60px; width: 290px; padding: 18px 18px 8px; border: 1px solid rgba(31,32,29,.12); border-radius: 14px; background: rgba(246,244,239,.98); box-shadow: 0 16px 44px rgba(24,25,22,.18); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: pop-in .22s var(--ease) both; }
.contact-popover[hidden] { display: none; }
.contact-popover .eyebrow { margin-bottom: 10px; }
.contact-popover > a { display: flex; flex-direction: column; gap: 1px; padding: 11px 4px; border-top: 1px solid var(--line); color: var(--ink); font-size: 16px; font-weight: 600; transition: color .2s, padding .2s; }
.contact-popover > a small { color: var(--muted); font-size: 13px; font-weight: 400; }
.contact-popover > a:hover { color: var(--accent-text); padding-inline-start: 8px; }

/* ---------------------------------------------------------------- CV dialog */
.cv-dialog { width: min(780px, calc(100vw - 32px)); max-width: none; max-height: min(86vh, 920px); padding: 0; border: 1px solid rgba(31,32,29,.14); border-radius: 14px; color: var(--ink); background: var(--paper-3); box-shadow: 0 28px 90px rgba(18,19,17,.34); overflow: auto; overscroll-behavior: contain; }
.cv-dialog::backdrop { background: rgba(22,23,20,.62); backdrop-filter: blur(5px); }
.cv-dialog[open] { animation: cv-enter .32s var(--ease) both; }
.cv-dialog-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 25px; padding: 30px 38px 22px; border-bottom: 1px solid var(--line); background: rgba(246,243,238,.97); }
.cv-dialog-top .eyebrow { margin-bottom: 12px; }
.cv-dialog-top h2 { font-size: clamp(34px, 6vw, 54px); letter-spacing: normal; line-height: 1.05; font-weight: 600; }
.cv-role { margin-top: 10px; color: var(--muted); font-size: 15px; }
.dialog-close { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; font-size: 26px; line-height: 1; cursor: pointer; transition: color .2s, background .2s; }
.dialog-close:hover { color: #fff; background: var(--ink); }
.cv-dialog-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; padding: 4px 38px 32px; }
.cv-dialog-body section { padding: 20px 0 18px; border-bottom: 1px solid var(--line); }
.cv-wide { grid-column: 1 / -1; }
.cv-dialog-body h3 { margin-bottom: 10px; color: var(--accent-text); font: 500 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.cv-dialog-body p { color: #45463f; font-size: 15px; line-height: 1.75; }
.cv-roles li { display: grid; grid-template-columns: 110px 1fr; gap: 2px 14px; padding: 9px 0; border-top: 1px solid rgba(31,32,29,.08); }
.cv-roles li:first-child { border-top: 0; }
.cv-date { grid-row: span 2; color: var(--accent-text); font: 500 13px var(--mono); padding-top: 2px; }
.cv-roles strong { font-size: 15px; font-weight: 600; }
.cv-roles small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.cv-contact a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes cv-enter { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1080px) {
  .header-note { display: none; }
  .practice { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 900px) {
  :root { --gutter: 28px; }
  .main-nav { gap: 24px; }
  .hero { grid-template-columns: 1fr .85fr; gap: 28px; }
  .hero-intro { font-size: 17px; }
  .disciplines li { padding-inline-end: 12px; }
  .disciplines li + li { padding-inline-start: 14px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-wide, .project-tall { grid-column: auto; }
  .project-image, .project-tall .project-image, .project-wide .project-image { aspect-ratio: 1.05; }
  .project:first-child { grid-column: span 2; }
  .project:first-child .project-image { aspect-ratio: 1.6; }
  .about-section { gap: 6%; }
  .experience-list li { grid-template-columns: 1fr; gap: 2px; }
  .about-hero { grid-template-columns: 1fr .75fr; gap: 8%; }
  .about-story, .timeline-inner, .case-notes { gap: 7%; }
  .contact-section { padding-inline: 32px; }
  .case-intro { grid-template-columns: 1fr; }
  .case-next { grid-template-columns: 1fr; justify-items: start; }
}

/* ---------------------------------------------------------------- phone */
@media (max-width: 620px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; padding-bottom: 84px; }
  .site-header { height: auto; min-height: 64px; padding: 10px 0; grid-template-columns: auto 1fr; gap: 10px; }
  .wordmark { font-size: 21px; }
  .header-end { display: none; }
  .main-nav { justify-content: flex-end; gap: 18px; font-size: 14px; }
  .eyebrow { font-size: 12px; gap: 10px; }
  .eyebrow-rule { flex-basis: 18px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding-top: 38px; padding-bottom: 20px; gap: 30px; }
  .hero-name { margin-top: 20px; }
  .hero h1 { margin: 8px 0 20px; font-size: clamp(43px, 11.8vw, 64px); }
  .hero-intro { font-size: 16px; margin-bottom: 24px; }
  .hero-image { max-height: none; }
  .disciplines { grid-template-columns: 1fr; margin-top: 4px; }
  .disciplines li { padding: 16px 0 14px; }
  .disciplines li + li { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0; }
  .disciplines strong { font-size: 18px; }
  .work-section { padding-top: 64px; padding-bottom: 64px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading h2, .practice-heading h2, .about-body h2, .profiles h2 { font-size: 40px; }
  .section-note { margin-top: 14px; }
  .filters-bar { display: block; padding: 10px 0 8px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline-end: calc(var(--gutter) * -1); padding-inline-end: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filter-button { flex: 0 0 auto; font-size: 14px; }
  .filter-status { margin-top: 6px; font-size: 13px; }
  .project-grid { grid-template-columns: 1fr; row-gap: 38px; }
  .project-wide { grid-column: auto; }
  .project-image, .project-tall .project-image, .project-wide .project-image { aspect-ratio: 1.15; }
  .project:first-child { grid-column: auto; }
  .project:first-child .project-image { aspect-ratio: 1.15; }
  .project-title { font-size: 20px; }
  .work-footer { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 44px; }
  .statement { padding: 50px 0; }
  .statement-inner { grid-template-columns: 34px 1fr; gap: 10px; }
  .statement-mark { font-size: 64px; }
  .statement blockquote p { font-size: 29px; }
  .statement-credit { grid-column: 2; justify-self: start; text-align: start; }
  .practice { padding-top: 64px; padding-bottom: 10px; gap: 24px; }
  .about-page .practice { padding-bottom: 64px; }
  .practice-grid { grid-template-columns: 1fr; }
  .practice-item { padding: 20px 0 22px; }
  .practice-item + .practice-item { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0; }
  .practice-item h3 { font-size: 24px; }
  .about-section { display: block; padding-top: 64px; padding-bottom: 64px; }
  .about-portrait { aspect-ratio: 1; margin-bottom: 30px; }
  .about-body .about-lead { font-size: 20px; }
  .profiles { display: block; padding-top: 44px; padding-bottom: 56px; }
  .profile-links { margin-top: 26px; }
  .profile-links a { grid-template-columns: 1fr 20px; gap: 2px 10px; }
  .profile-links small { grid-column: 1; grid-row: 2; }
  .profile-links .external { grid-row: 1 / span 2; grid-column: 2; }
  .contact-section { width: 100%; border-radius: 0; margin-bottom: 0; padding: 36px var(--gutter) 34px; }
  .contact-top { flex-direction: column; gap: 6px; }
  .contact-section h2 { margin: 44px 0 20px; font-size: clamp(52px, 15vw, 80px); }
  .contact-help { font-size: 16px; margin-bottom: 32px; }
  .contact-bottom { flex-direction: column; align-items: flex-start; gap: 26px; }
  .contact-email { font-size: 22px; }
  .site-footer { min-height: 76px; grid-template-columns: 1fr auto; gap: 10px; }
  .site-footer > span { justify-self: end; }
  .site-footer > a:last-child { display: none; }
  .about-hero { display: flex; flex-direction: column; align-items: stretch; gap: 40px; padding-top: 40px; padding-bottom: 10px; }
  .about-hero h1 { margin: 18px 0 20px; font-size: clamp(60px, 17vw, 84px); }
  .about-hero-lead { font-size: 18px; }
  .portrait-frame { width: calc(100% - 30px); aspect-ratio: .95; }
  .about-hero-index { margin-top: 8px; }
  .about-story { display: block; padding-top: 70px; }
  .about-story-copy { margin-top: 28px; }
  .about-story-copy .story-lead { font-size: 20px; }
  .timeline-section { padding: 70px 0; }
  .timeline-inner { display: block; }
  .timeline-heading { position: static; margin-bottom: 30px; }
  .timeline-item { grid-template-columns: 1fr 10px; gap: 4px 12px; }
  .timeline-year { grid-column: 1; }
  .timeline-item > div { grid-column: 1; }
  .timeline-dot { grid-column: 2; grid-row: 1; }
  .timeline-item h3 { font-size: 18px; }
  .about-end { padding-top: 70px; padding-bottom: 70px; }
  .about-end h2 { font-size: clamp(44px, 12.5vw, 64px); }
  .case-heading { padding-top: 40px; padding-bottom: 36px; }
  .case-heading h1 { font-size: clamp(46px, 13vw, 66px); }
  .case-intro p { font-size: 16px; }
  .case-facts { flex-wrap: wrap; gap: 14px 26px; }
  .case-gallery { grid-template-columns: 1fr; gap: 26px; }
  .case-image-wide .case-zoom { aspect-ratio: 1; }
  .zoom-hint { opacity: 1; transform: none; font-size: 13px; }
  .case-notes { display: block; padding-top: 64px; padding-bottom: 56px; }
  .case-notes-copy { margin-top: 24px; }
  .case-next { gap: 22px; }
  .case-next-card { width: 100%; }
  .floating-actions { inset-inline-end: 12px; bottom: max(12px, env(safe-area-inset-bottom)); gap: 6px; }
  .quick-action { min-height: 46px; padding: 0 16px; font-size: 15px; }
  .contact-popover { bottom: 56px; width: min(300px, calc(100vw - 24px)); }
  .cv-dialog { width: calc(100vw - 16px); max-height: 90vh; border-radius: 12px; }
  .cv-dialog-top { padding: 22px 20px 18px; }
  .cv-dialog-body { grid-template-columns: 1fr; padding: 0 20px 26px; }
  .cv-roles li { grid-template-columns: 92px 1fr; }
}
@media (max-width: 370px) {
  .main-nav { gap: 10px; font-size: 13px; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; }
  body.reveal-ready [data-reveal]:not([data-reveal="hero"]) { opacity: 1; transform: none; }
}



h1, .hero h1, .about-hero h1, .case-heading h1 { line-height: 1.13; overflow-wrap: break-word; }
h2, .section-heading h2, .practice-heading h2, .about-body h2, .profiles h2, .contact-section h2 { line-height: 1.15; }
h1 em, h2 em { font-family: inherit; font-style: normal; font-weight: inherit; }
.hero-copy { min-width: 0; }

/* Portfolio headlines and artwork titles */
h1, h2, .project-title, .case-next-title {
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}
main h1, main h2, .hero h1, .case-heading h1, .about-hero h1,
.section-heading h2, .about-body h2, .profiles h2, .practice-heading h2,
.timeline-heading h2, .about-story-heading h2, .about-end h2, .contact-section h2,
.case-notes h2 {
  font-weight: 700;
  line-height: 1.08;
}
.project-title, .case-next-title {
  font-weight: 600;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.15;
}
.hero h1 em { color: var(--accent-text); }

/* v3: keep the floating CV / Contact buttons clear of the Wix badge in the bottom corner */
.floating-actions { bottom: max(66px, calc(env(safe-area-inset-bottom) + 58px)); }
@media (max-width: 620px) { .floating-actions { bottom: max(62px, calc(env(safe-area-inset-bottom) + 54px)); } }
