/* =====================================================================
   LOUBATON ORIGINAL : CENTRAL STYLESHEET
   KONKRET / Oversized Typography / Swiss Architectural Brutalism

   VOICE   Confident, architectural, refined brutalism.
   IDEA    An architectural monograph: monumental grotesk type against a
           bone-white canvas, sharp rectangular photographs, fine rules
           and small bracketed annotations.
   COLOR   Bone 75% / Charcoal 20% / Berry 5% (photography excluded).
   TYPE    Inter Tight (display, heavy) + Inter (text, navigation).
   LAYOUT  12-column grid, intentional asymmetry, generous space.

   Every color, size and spacing value is set once below.
   ===================================================================== */

/* ---------- Fonts (locally hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2197, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2197, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Color */
  --bone: #F7F7F7;
  --charcoal: #252A2D;
  --berry: #600E2B;
  --ink: var(--charcoal);              /* small text on light sections */
  --heading: var(--berry);             /* large headlines on light sections */
  --ink-soft: rgba(37, 42, 45, 0.70);
  --ink-faint: rgba(37, 42, 45, 0.50);
  --rule: rgba(37, 42, 45, 0.24);
  --bone-soft: rgba(247, 247, 247, 0.70);
  --rule-light: rgba(247, 247, 247, 0.24);
  --frame: #E9E9E8;   /* empty image frame on bone, before photographs load */

  /* Type families */
  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Type scale (desktop ranges from the brief, fluid with clamp) */
  --fs-monument: clamp(3.75rem, 12.6vw, 11.5rem);    /* 120-185 px */
  --fs-hero: clamp(3rem, 9.4vw, 8.5rem);             /* 90-136 px  */
  --fs-section: clamp(2.6rem, 7vw, 6.25rem);         /* 72-100 px  */
  --fs-title: clamp(1.75rem, 3.1vw, 3.25rem);        /* 28-52 px   */
  --fs-lead: clamp(1.25rem, 1.9vw, 1.75rem);
  --fs-body: clamp(0.9375rem, 0.4vw + 0.85rem, 1.1875rem); /* 15-19 px */
  --fs-nav: 0.8125rem;                                /* 13 px      */
  --fs-note: 0.6875rem;                               /* 11 px      */
  --w-display: 750;
  --track-display: -0.018em;
  --lh-display: 0.96;

  /* Grid and space */
  --margin: clamp(16px, 3.6vw, 56px);
  --gutter: clamp(16px, 1.8vw, 28px);
  --max: 1760px;
  --space-major: clamp(96px, 10vw, 160px);
  --space-minor: clamp(48px, 5.5vw, 80px);
  --space-s: 24px;
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 220ms;
  --t-slow: 800ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bone); scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bone); color: var(--ink);
  font-family: var(--text); font-size: var(--fs-body); font-weight: 400; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
  font-feature-settings: "ss01", "cv11";
}
img { display: block; max-width: 100%; height: auto; }
picture, figure { display: block; margin: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; max-width: 58ch; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--berry); color: var(--bone); }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 4px; }
.skip-link { position: absolute; left: var(--margin); top: -100px; z-index: 100; background: var(--charcoal); color: var(--bone); padding: 10px 16px; font-size: var(--fs-nav); }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Fields ---------- */
.dark { background: var(--charcoal); color: var(--bone); }
.dark ::selection { background: var(--bone); color: var(--charcoal); }
.dark :focus-visible { outline-color: var(--bone); }
.soft { color: var(--ink-soft); }
.dark .soft { color: var(--bone-soft); }
.berry { color: var(--berry); }

/* ---------- Grid ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.section { padding-block: var(--space-major); }
.section-minor { padding-block: var(--space-minor); }
.rule { border-top: 1px solid var(--rule); }
.dark .rule { border-top-color: var(--rule-light); }

/* ---------- Typography ---------- */
.monument, .hero-title, .section-title, .title {
  font-family: var(--display); font-weight: var(--w-display);
  letter-spacing: var(--track-display); line-height: var(--lh-display);
  text-transform: uppercase;
}
.monument { font-size: var(--fs-monument); letter-spacing: -0.022em; line-height: 0.92; }
.hero-title { font-size: var(--fs-hero); }
.section-title { font-size: var(--fs-section); }
.title { font-size: var(--fs-title); font-weight: 650; letter-spacing: -0.03em; line-height: 1; text-transform: none; }
.monument > span, .hero-title > span, .section-title > span { display: block; }
.nowrap { white-space: nowrap; }

/* Bracketed architectural annotation */
.note {
  display: block; font-family: var(--text); font-size: var(--fs-note); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.6;
}
.note-row { display: flex; justify-content: space-between; gap: var(--gutter); flex-wrap: wrap; padding-top: 12px; }
.lead { font-family: var(--display); font-size: var(--fs-lead); font-weight: 450; line-height: 1.3; letter-spacing: -0.015em; max-width: 30ch; }
.small { font-size: var(--fs-nav); line-height: 1.55; }
.index { font-family: var(--text); font-size: var(--fs-note); font-weight: 500; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }

/* Minimal text link with arrow */
.link {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-size: var(--fs-nav); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.link .t { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size var(--t-fast) var(--ease); }
.link:hover .t { background-size: 0 1px; background-position: 100% 100%; }
.arrow { width: 0.9em; height: 0.9em; flex: none; color: var(--berry); transition: transform var(--t-fast) var(--ease); }
.dark .arrow { color: var(--bone); }
.arrow path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
a:hover .arrow, button:hover .arrow { transform: translate(2px, -2px); }
.arrow.left { transform: rotate(-90deg); }
a:hover .arrow.left { transform: rotate(-90deg) translate(2px, -2px); }

/* ---------- Header ---------- */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--gutter); min-height: var(--header-h); border-bottom: 1px solid var(--ink); }
.wordmark { font-family: var(--display); font-weight: 750; font-size: 1rem; letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; padding-block: 12px; line-height: 1; }
.wordmark .o { font-weight: 400; }
.nav ul { display: flex; gap: clamp(18px, 2.6vw, 44px); }
.nav a { position: relative; display: inline-block; padding-block: 12px; font-size: var(--fs-nav); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-fast) var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--berry); }
.nav a[aria-current="page"]::after { transform: scaleX(1); height: 2px; background: var(--berry); }
.menu-btn { display: none; background: none; border: 0; font: inherit; font-size: var(--fs-nav); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: inherit; padding: 12px 0; min-height: 44px; cursor: pointer; }

/* Mobile menu */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--bone); color: var(--ink); display: flex; flex-direction: column; overflow-y: auto; }
.menu[hidden] { display: none; }
.menu .top { display: flex; justify-content: space-between; align-items: center; min-height: var(--header-h); margin-inline: var(--margin); border-bottom: 1px solid var(--ink); }
.menu nav { padding: var(--space-minor) var(--margin); flex: 1; }
.menu li { border-bottom: 1px solid var(--rule); }
.menu nav a { display: flex; justify-content: space-between; align-items: baseline; padding-block: 10px; font-family: var(--display); font-weight: 750; font-size: clamp(2.75rem, 14vw, 4.5rem); letter-spacing: -0.05em; line-height: 1; text-transform: uppercase; }
.menu nav a[aria-current="page"] { color: var(--berry); }
.menu .foot { padding: 0 var(--margin) var(--space-minor); font-size: var(--fs-nav); }
html.locked { overflow: hidden; }

/* ---------- Home: hero (60 / 40 split) ---------- */
.hero .grid { min-height: calc(100svh - var(--header-h)); max-height: 1100px; padding-block: var(--space-s) var(--space-minor); align-items: stretch; }
.hero-text { grid-column: 1 / 8; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-minor); padding-top: clamp(16px, 4vw, 56px); }
.hero-title { margin-top: 18px; margin-left: -0.05em; }
.hero-meta { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 14px; align-items: start; border-top: 1px solid var(--ink); padding-top: 16px; }
.hero-meta .mark { width: 14px; height: 14px; background: var(--berry); margin-top: 4px; }
.hero-meta .who { font-size: var(--fs-nav); line-height: 1.5; }
.hero-meta .who strong { font-weight: 600; display: block; }
.hero-meta .link { justify-self: start; margin-top: -4px; }
.hero-photo { grid-column: 8 / 13; position: relative; background: #111315; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-photo picture { height: 100%; }
.hero-photo figcaption { position: absolute; left: 0; bottom: 0; transform: translateY(100%); padding-top: 8px; }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: var(--space-minor); }
.section-head .note-row { margin-bottom: clamp(20px, 3vw, 44px); }
.section-head .section-title, .section-head .monument { margin-left: -0.05em; }

/* ---------- Work list (editorial, alternating) ---------- */
.works { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--space-major); align-items: start; }
.work { position: relative; }
.work[hidden] { display: none; }
.work:nth-child(4n+1) { grid-column: 1 / 13; }
.work:nth-child(4n+2) { grid-column: 1 / 8; }
.work:nth-child(4n+3) { grid-column: 9 / 13; margin-top: var(--space-major); }
.work:nth-child(4n+4) { grid-column: 3 / 11; }
.work a { display: block; }
.work .frame { overflow: hidden; background: var(--frame); }
.work img { width: 100%; transition: transform var(--t-slow) var(--ease); }
.work a:hover img, .work a:focus-visible img { transform: scale(1.02); }
.work .cap { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: var(--gutter); align-items: start; border-top: 1px solid var(--ink); margin-top: 14px; padding-top: 12px; }
.work .loc { display: block; margin-top: 8px; font-size: var(--fs-nav); color: var(--ink-soft); }
.work .arrow { width: 1.4rem; height: 1.4rem; }
.empty { border-top: 1px solid var(--ink); padding-top: 14px; display: flex; justify-content: space-between; gap: var(--gutter); flex-wrap: wrap; }
.empty p { font-size: var(--fs-nav); color: var(--ink-soft); }

/* Filters */
.filters { display: flex; gap: clamp(14px, 2.2vw, 32px); flex-wrap: wrap; align-items: center; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); padding-block: 4px; margin-bottom: var(--space-minor); }
.filter { background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer; font: inherit; font-size: var(--fs-nav); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); position: relative; transition: color var(--t-fast) var(--ease); }
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--berry); }
.filter[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--berry); }
.filters .sep { color: var(--ink-faint); font-size: var(--fs-nav); }

/* ---------- Story (dark contrast) ---------- */
.story .grid { row-gap: var(--space-minor); align-items: end; }
.story .monument { grid-column: 1 / 13; margin-left: -0.05em; }
.story .statement { grid-column: 7 / 12; }
.story .statement .lead { max-width: 26ch; margin-bottom: var(--space-s); }

/* ---------- Reach ---------- */
.reach-block .monument { color: var(--berry); margin-left: -0.05em; }
.reach-block .grid { row-gap: var(--space-s); align-items: end; }
.reach-block .mail { grid-column: 1 / 9; font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 4vw, 3.75rem); letter-spacing: -0.035em; line-height: 1.05; overflow-wrap: anywhere; }
.reach-block .mail a { background: linear-gradient(var(--berry), var(--berry)) 0 100% / 0 3px no-repeat; transition: background-size 500ms var(--ease); padding-bottom: 4px; }
.reach-block .mail a:hover, .reach-block .mail a:focus-visible { background-size: 100% 3px; }
.reach-block .aside { grid-column: 10 / 13; }
.social { display: flex; gap: var(--space-s); flex-wrap: wrap; }
.social:empty { display: none; }
.social a { font-size: var(--fs-nav); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-block: 10px 2px; }

/* ---------- About ---------- */
.about-head .hero-title { margin-left: -0.05em; }
.about-body { row-gap: var(--space-minor); align-items: start; }
.about-body .portrait { grid-column: 1 / 6; }
.about-body .portrait figcaption { display: flex; justify-content: space-between; gap: var(--gutter); border-top: 1px solid var(--ink); margin-top: 14px; padding-top: 12px; font-size: var(--fs-nav); }
.about-body .portrait figcaption strong { font-weight: 600; }
.about-body .copy { grid-column: 7 / 12; padding-top: 0; }
.about-body .copy p { font-size: calc(var(--fs-body) * 0.86); line-height: 1.75; max-width: 54ch; }
.about-body .statement-inline { display: block; font-family: var(--display); font-weight: var(--w-display); font-size: var(--fs-section); letter-spacing: var(--track-display); line-height: var(--lh-display); text-transform: uppercase; margin-bottom: 0.45em; margin-left: -0.04em; }
.dev .grid { row-gap: var(--gutter); align-items: start; }
.dev .section-title { grid-column: 1 / 13; margin-bottom: var(--space-minor); margin-left: -0.05em; }
.dev figure:nth-of-type(1) { grid-column: 1 / 6; }
.dev figure:nth-of-type(2) { grid-column: 6 / 10; margin-top: var(--space-minor); }
.dev figure:nth-of-type(3) { grid-column: 10 / 13; margin-top: calc(var(--space-minor) * 2); }
.dev figcaption { padding-top: 10px; }

/* ---------- Work page head ---------- */
.page-head { padding-top: var(--space-minor); }
.page-head .monument { margin-left: -0.055em; margin-top: 14px; margin-bottom: var(--space-minor); }

/* ---------- Project page ---------- */
.proj-split { row-gap: var(--space-s); align-items: end; }
.proj-split .name { grid-column: 1 / 8; padding-bottom: 4px; }
.proj-split .name .section-title { margin-left: -0.05em; margin-top: 16px; overflow-wrap: break-word; hyphens: auto; }
.proj-split .name .meta { display: flex; justify-content: space-between; gap: var(--gutter); border-top: 1px solid var(--ink); margin-top: var(--space-s); padding-top: 12px; font-size: var(--fs-nav); }
.proj-split .principal { grid-column: 8 / 13; }
.proj-split.wide .name { grid-column: 1 / 13; }
.proj-split.wide .principal { grid-column: 1 / 13; }
.proj-text { row-gap: var(--space-s); }
.proj-text .note { grid-column: 1 / 4; padding-top: 0.4em; }
.proj-text .lead { grid-column: 4 / 10; max-width: 34ch; }
.proj-text .body { grid-column: 4 / 10; }
.gallery-row { padding-block: calc(var(--gutter) / 2); }
.gallery-row.dark { padding-block: var(--space-minor); margin-block: var(--space-minor); }
.g-full > * { grid-column: 1 / 13; }
.g-full .tall { grid-column: 4 / 10; }
.g-pair { align-items: end; }
.g-pair > :first-child { grid-column: 1 / 8; }
.g-pair > :last-child { grid-column: 8 / 13; }
.g-offset { align-items: end; }
.g-offset .img { grid-column: 4 / 13; }
.g-offset figcaption { grid-column: 1 / 4; grid-row: 1; border-top: 1px solid currentColor; padding-top: 10px; font-size: var(--fs-nav); }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: var(--frame); cursor: zoom-in; overflow: hidden; }
.dark .zoom { background: #1b1f21; }
.zoom img { width: 100%; transition: transform var(--t-slow) var(--ease); }
.zoom:hover img { transform: scale(1.015); }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.pager a { display: grid; gap: 12px; padding: var(--space-s) var(--gutter) var(--space-minor) 0; }
.pager a + a { border-left: 1px solid var(--rule); padding-left: var(--gutter); text-align: right; justify-items: end; }
.pager .title { transition: color var(--t-fast) var(--ease); }
.pager a:hover .title { color: var(--berry); }
.pager .note { display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; background: var(--charcoal); color: var(--bone); }
.lightbox::backdrop { background: var(--charcoal); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; min-height: 64px; margin-inline: var(--margin); border-bottom: 1px solid var(--rule-light); }
.lb-stage { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; padding-block: var(--space-s); min-height: 0; }
.lb-stage figure { height: 100%; display: grid; place-items: center; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 120px); width: auto; height: auto; object-fit: contain; }
.lb-btn { background: none; border: 0; color: var(--bone); cursor: pointer; min-height: 44px; font: inherit; font-size: var(--fs-nav); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.lb-nav { height: 64px; display: grid; place-items: center; font-family: var(--display); font-size: 1.75rem; font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer { padding-top: var(--space-minor); overflow: hidden; }
.f-rows { row-gap: 0; }
.site-footer { --fr: var(--rule); }
.site-footer.dark { --fr: var(--rule-light); }
.f-rows > div { padding-block: 14px; border-top: 1px solid var(--fr); font-size: var(--fs-nav); }
.f-rows .f1 { grid-column: 1 / 4; font-family: var(--display); font-weight: 750; text-transform: uppercase; letter-spacing: -0.02em; font-size: 1rem; line-height: 1.4; }
.f-rows .f2 { grid-column: 4 / 7; }
.f-rows .f3 { grid-column: 7 / 10; }
.f-rows .f3 ul { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.f-rows .f4 { grid-column: 10 / 13; }
.f-rows a { transition: opacity var(--t-fast) var(--ease); }
.f-rows a:hover { opacity: 0.7; }
.f-rows .social { margin-top: 6px; }
.f-giant { display: inline-block; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.025em; line-height: 0.86; white-space: nowrap; font-size: 9vw; margin: var(--space-minor) 0 0 -0.04em; padding-bottom: 0.08em; }
.f-legal { display: flex; justify-content: space-between; gap: var(--gutter); flex-wrap: wrap; border-top: 1px solid var(--fr); padding-block: 14px 18px; font-size: var(--fs-note); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }
.dark .f-legal { color: var(--bone-soft); }

/* Reach page: invitation and inquiry list */
.inquiries { row-gap: var(--space-s); padding-top: 14px; margin-top: var(--space-minor); }
.inquiries .note { grid-column: 1 / 4; }
.inquiries .lead { grid-column: 4 / 8; }
.inquiries ol { grid-column: 8 / 13; }
.inquiries li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); border-bottom: 1px solid var(--rule); padding-block: 12px; }
.inquiries li:first-child { border-top: 1px solid var(--ink); }
.inquiries .index { color: var(--berry); padding-top: 0.35em; }

/* ---------- 404 ---------- */
.nf { min-height: 60svh; }

/* ---------- Motion ---------- */
.fade { opacity: 0; transition: opacity 700ms var(--ease); }
.fade.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .fade { opacity: 1; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  :root { --margin: clamp(24px, 4vw, 32px); }
  .grid, .works { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid > *, .works > * { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .hero .grid { min-height: 0; max-height: none; row-gap: var(--space-minor); }
  .hero-photo { grid-column: 2 / -1 !important; aspect-ratio: 4 / 5; }
  .work:nth-child(even) { grid-column: 2 / -1 !important; }
  .story .statement { grid-column: 3 / -1 !important; }
  .reach-block .aside { grid-column: 1 / -1 !important; }
  .about-body .portrait { grid-column: 1 / 5 !important; }
  .about-body .copy { padding-top: 0; }
  .dev figure:nth-of-type(1) { grid-column: 1 / 5 !important; }
  .dev figure:nth-of-type(2) { grid-column: 3 / 7 !important; }
  .dev figure:nth-of-type(3) { grid-column: 1 / 4 !important; }
  .proj-split .principal { grid-column: 1 / -1 !important; }
  .proj-text .note { padding-top: 0; }
  .g-pair > :last-child { grid-column: 2 / -1 !important; margin-top: var(--gutter) !important; }
  .g-offset figcaption { grid-row: auto; order: 2; }
  .g-full .tall { grid-column: 2 / 6 !important; }
  .f-rows .f1, .f-rows .f2 { grid-column: span 3 !important; }
  .f-rows .f3, .f-rows .f4 { grid-column: span 3 !important; }
}

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  :root { --margin: clamp(16px, 5vw, 24px); --header-h: 60px; --fs-hero: clamp(2.75rem, 16vw, 5.25rem); --fs-monument: clamp(3.5rem, 20vw, 7rem); --fs-section: clamp(2.25rem, 12vw, 4rem); }
  .nav { display: none; }
  .menu-btn { display: inline-block; }
  .wordmark { font-size: 0.875rem; }
  .hero-text { padding-top: 8px; gap: var(--space-s); }
  .hero-photo { grid-column: 1 / -1 !important; }
  .work:nth-child(even) { grid-column: 1 / -1 !important; }
  .work .cap { grid-template-columns: 2.5rem minmax(0, 1fr) auto; }
  .story .statement { grid-column: 1 / -1 !important; }
  .about-body .portrait { grid-column: 1 / -1 !important; }
  .dev figure:nth-of-type(n) { grid-column: 1 / -1 !important; }
  .dev figure:nth-of-type(2) { margin-left: 20% !important; }
  .g-pair > :last-child { grid-column: 1 / -1 !important; margin-left: 16% !important; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager a + a { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .f-rows .f1, .f-rows .f2, .f-rows .f3, .f-rows .f4 { grid-column: 1 / -1 !important; }
  .f-giant { white-space: normal; font-size: 16vw; line-height: 0.9; }
  .f-giant span { display: block; }
  .lb-stage { grid-template-columns: 44px minmax(0, 1fr) 44px; }
}

/* Phone fit for the longest monumental words */
@media (max-width: 720px) {
  .story .monument { font-size: min(17vw, 5.5rem); }
  .about-head .hero-title { font-size: min(15vw, 5rem); }
}
@media (max-width: 720px) { .g-pair > .zoom:last-child { width: auto; } }
.reach-block .inquiries { align-items: start; }

/* Logo (top left): the original square logo */
.logo { display: block; flex: none; width: clamp(128px, 11.3vw, 170px); aspect-ratio: 1 / 1; padding: 0; }
.logo img { display: block; width: 100%; height: 100%; }
.site-header .wrap { align-items: flex-end; min-height: 0; padding-top: 16px; }
.site-header .wrap .logo { margin-bottom: 16px; }
.site-header .nav, .site-header .menu-btn { margin-bottom: 8px; }
.menu .top { align-items: flex-end; padding-top: 16px; }
.menu .top .logo { width: 106px; margin-bottom: 12px; }
@media (max-width: 720px) {
  .logo { width: 106px; }
  .site-header .wrap { padding-top: 12px; }
  .site-header .wrap .logo { margin-bottom: 12px; }
}

/* Large headlines in berry on light sections; small text stays dark */
.monument, .hero-title, .section-title, .title, .reach-block .mail { color: var(--heading); }
.dark .monument, .dark .hero-title, .dark .section-title, .dark .title { color: var(--bone); }

/* Footer: closing space now that the giant wordmark is removed */
.f-legal { margin-top: var(--space-minor); }

/* About: portrait 30% smaller than its column */
.about-body .portrait { width: 70%; }

/* Home: Selected Work as a four-image grid (2 x 2) */
.works.grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-minor); }
.works.grid4 > .work { grid-column: auto !important; margin-top: 0 !important; }
.works.grid4 .frame, .works.grid4 > .ph > picture { aspect-ratio: 4 / 3; overflow: hidden; background: var(--frame); }
.works.grid4 img { width: 100%; height: 100%; object-fit: cover; }
.works.grid4 .ph .cap { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) auto; gap: var(--gutter); align-items: start; border-top: 1px solid var(--ink); margin-top: 14px; padding-top: 12px; }
@media (max-width: 720px) {
  .works.grid4 { grid-template-columns: minmax(0, 1fr); }
  .works.grid4 .ph .cap { grid-template-columns: 2.5rem minmax(0, 1fr) auto; }
}

/* Home hero: typography only (no portrait); Selected Work follows directly */
.hero .grid { min-height: 0; max-height: none; padding-bottom: 0; }
.hero-text { grid-column: 1 / 9; gap: var(--space-minor); }
@media (max-width: 1024px) { .hero-text { grid-column: 1 / -1 !important; } }

/* Home hero: name and descriptor to the right of the headline */
.hero-aside { grid-column: 9 / 13; align-self: end; border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 0.6em; display: grid; gap: 10px; }
.hero-aside .who { font-size: var(--fs-nav); line-height: 1.5; margin: 0; }
.hero-aside .who strong { display: block; font-weight: 600; }
@media (max-width: 1024px) { .hero-aside { grid-column: 1 / -1 !important; margin-top: var(--space-s); max-width: 420px; } }

/* Highlighted headline: bone-white text on a berry band */
.hl { background: var(--berry); color: var(--bone); padding: 0.06em 0.16em 0.02em; margin-left: -0.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Home hero: name block on the far right, beside the headline */
.hero-aside { grid-column: 10 / 13; justify-self: end; align-self: center; text-align: right; width: 100%; max-width: 320px; margin-bottom: 0; }
@media (max-width: 1024px) { .hero-aside { justify-self: start; text-align: left; align-self: start; } }
.section-head .section-title:has(.hl) { margin-left: 0; }
.hl { margin-left: 0; }
.hl { background: var(--charcoal); color: var(--bone); }

/* Home hero: name block at top right, level with [ INDEPENDENT CREATIVE PRACTICE ] */
.hero-aside { align-self: start; margin-top: clamp(16px, 4vw, 56px); border-top: 0; padding-top: 0; gap: 8px; }
.hero-aside .who { line-height: 1.45; }
@media (max-width: 1024px) { .hero-aside { margin-top: var(--space-s); border-top: 1px solid var(--ink); padding-top: 14px; } }

/* Keep the name block at top right on tablets and narrow windows too */
@media (min-width: 721px) and (max-width: 1024px) {
  .hero .grid { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--gutter); }
  .hero-text { flex: 1 1 auto; }
  .hero-aside { flex: 0 0 auto; width: auto; max-width: 260px; justify-self: auto; align-self: flex-start; text-align: right; border-top: 0 !important; padding-top: 0 !important; margin-top: clamp(16px, 4vw, 56px) !important; }
}

/* Home hero: name block level with the last headline line ("INTENT.") */
.hero-aside { align-self: end !important; margin-top: 0 !important; margin-bottom: calc(var(--fs-hero) * 0.12) !important; }
@media (max-width: 720px) { .hero-aside { align-self: start !important; margin-top: var(--space-s) !important; margin-bottom: 0 !important; } }

/* Home: Selected Work, four images in two rows; each row shares one height,
   and every image keeps its own orientation (no cropping) */
.sel-grid { display: grid; row-gap: var(--space-minor); }
.sel-row { display: flex; gap: var(--gutter); align-items: flex-start; }
.sel-cell { min-width: 0; }
.sel-cell .work { margin: 0 !important; }
.sel-cell .frame { aspect-ratio: auto; }
.sel .zoom { background: var(--frame); }
.sel img, .sel-cell .work img { width: 100%; height: auto; }
.sel .cap { display: block; border-top: 1px solid var(--ink); margin-top: 14px; padding-top: 12px; }
@media (max-width: 720px) {
  .sel-row { flex-direction: column; gap: var(--space-minor); }
  .sel-cell { flex: none !important; width: 100%; }
}

/* Work page: thumbnails, four across, square crops */
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-s) var(--gutter); margin-top: var(--space-minor); }
.thumb { margin: 0; }
.thumb a, .thumb .zoom { display: block; width: 100%; }
.thumb .t-frame { aspect-ratio: 1 / 1; overflow: hidden; background: var(--frame); }
.thumb .t-frame picture, .thumb .t-frame img { width: 100%; height: 100%; }
.thumb img { object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.thumb a:hover img, .thumb .zoom:hover img { transform: scale(1.03); }
.thumb .cap { display: flex; gap: 12px; align-items: baseline; border-top: 1px solid var(--ink); margin-top: 10px; padding-top: 8px; }
@media (max-width: 1024px) { .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
