/* =========================================================
   AMY Designers — Architecture, Consulting & Construction
   Minimal white canvas, black + gray type. One type family:
   Inter for text, Helvetica Now Display (Inter Tight fallback) for "AMY" and display lines.
   ========================================================= */

:root {
  --bg: #ffffff;
  --ink: #0d0d0d;
  --gray: #9b9b9b;
  --gray-2: #c4c4c4;
  --gray-3: #6b6b6b;
  --line: #e8e8e8;

  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: var(--sans); /* small uppercase labels use the same family, for one consistent type voice */
  /* "AMY" + display type: uses licensed Helvetica Now Display where installed; Inter Tight is the free look-alike */
  --amy: "Helvetica Now Display", "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --logo: var(--amy);

  --pad: clamp(16px, 2.4vw, 32px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* fine paper grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
/* content protection (deterrent): text can be selected and copied; pictures can't be selected, dragged, long-pressed
   ("Save image") or copied; printing shows a notice instead of the page (main.js blocks the shortcuts) */
img { -webkit-user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* screenshot shield: while main.js adds .is-shielded the page shows plain white */
body.is-shielded main, body.is-shielded .project, body.is-shielded .lightbox, body.is-shielded .top, body.is-shielded .hello { visibility: hidden; }
/* watermark: only on an enlarged photo — a small faint logo (triangle, square, circle) in the photo's bottom-right corner
   (main.js puts --wm-r / --wm-b at that corner) */
.lightbox::after {
  content: ""; position: fixed; right: var(--wm-r, 24px); bottom: var(--wm-b, 24px); z-index: 121; pointer-events: none;
  width: clamp(40px, 4.5vw, 64px); aspect-ratio: 66 / 20; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 66 20'%3E%3Cg fill='%23fff' fill-opacity='.6' stroke='%23000' stroke-opacity='.18' stroke-width='.6'%3E%3Cpath d='M10 1.5 19.5 18.5H.5Z'/%3E%3Crect x='24.5' y='1.5' width='17' height='17'/%3E%3Ccircle cx='56' cy='10' r='9'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
@media print {
  body * { display: none !important; }
  body::after { content: "© AMY Designers. This website may not be printed or copied."; display: block; padding: 40px; font: 600 18px/1.4 sans-serif; }
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.mono { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.amy { font-family: var(--amy); font-weight: 800; letter-spacing: -.01em; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }

/* ---------- Opening intro ---------- */
/* AMY → ▲■● → the square grows into a frame that skims each project's best shot → fills the screen and fades */
/* reaches well past the top and bottom edges, so on phones it also covers the strip behind the browser's own toolbars
   (which can be taller than the "screen" a page is told about); equal overhang keeps the logo centered */
.intro { position: fixed; inset: -30vh 0; z-index: 150; background: var(--bg); transition: opacity .8s var(--ease); touch-action: none; }
.intro.is-gone { opacity: 0; pointer-events: none; }
.intro__mark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; gap: .06em; font-family: var(--logo); font-size: clamp(64px, 13vw, 160px); color: var(--ink);
}
.iglyph { display: grid; place-items: center; width: .8em; height: 1em; }
.iglyph > * { grid-area: 1 / 1; }
.iglyph b {
  font-weight: 700; line-height: 1; opacity: 0; transform: translateY(30%);
  transition: transform 1s var(--ease), opacity .8s var(--ease);
}
/* AMY → ▲■●: no flip. Each shape's outline is drawn over its letter (▲ out of A, ■ out of M, ● out of Y), then fills in
   while the letter fades away (pathLength="1" on the shapes makes the dash maths simple) */
/* main.js first stretches each shape over its letter's exact outline, then (about 1 s later) lets it shrink back */
.iglyph svg {
  width: .66em; height: .66em; overflow: visible; opacity: 0;
  transition: transform .8s var(--ease), opacity .3s linear;
}
.iglyph svg > * {
  fill: currentColor; fill-opacity: 0; stroke: currentColor; stroke-width: .9; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .9s cubic-bezier(.45, 0, .25, 1), fill-opacity .6s var(--ease) 1s, stroke-width .4s var(--ease) 1.5s;
}
.iglyph:nth-child(2) b { transition-delay: .12s; }
.iglyph:nth-child(3) b { transition-delay: .24s; }
.intro.is-in .iglyph b { opacity: 1; transform: none; }
.intro.is-shapes .iglyph b { opacity: 0; transform: none; transition: opacity .6s var(--ease) .9s; }
.intro.is-shapes .iglyph:nth-child(2) b { transition-delay: 1.05s; }
.intro.is-shapes .iglyph:nth-child(3) b { transition-delay: 1.2s; }
.intro.is-shapes .iglyph svg { opacity: 1; }
.intro.is-shapes .iglyph svg > * { stroke-dashoffset: 0; fill-opacity: 1; stroke-width: 0; }
.intro.is-shapes .iglyph:nth-child(2) svg > * { transition-delay: .15s, 1.15s, 1.65s; }
.intro.is-shapes .iglyph:nth-child(3) svg > * { transition-delay: .3s, 1.3s, 1.8s; }
/* the square hands over to the frame; the triangle and circle stay, sliding apart just enough to sit beside it */
.intro.is-frame .iglyph > * { transition-delay: 0s; }
.intro.is-frame .iglyph:first-child svg { transform: translateX(calc(-1 * var(--shift, 0px))); }
.intro.is-frame .iglyph:last-child svg { transform: translateX(var(--shift, 0px)); }
.intro.is-frame .iglyph--sq svg { opacity: 0; transition: none; }
/* ending: the triangle and circle fade; the frame stays so the project thumbnails can burst out of it (main.js) */
.intro.is-out .iglyph svg { opacity: 0; transition-duration: .5s; }

.intro__frame {
  position: fixed; left: 50%; top: 50%; width: 0; height: 0; background: var(--ink); overflow: hidden;
  visibility: hidden; transition: left 1s var(--ease), top 1s var(--ease), width 1s var(--ease), height 1s var(--ease), background-color .9s var(--ease);
}
.intro__frame.is-on { visibility: visible; }
.intro__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .12s linear; }
.intro__frame img.is-on { opacity: 1; }
.intro__skip { position: fixed; right: var(--pad); bottom: var(--pad); color: var(--gray); transition: color .25s; }
.intro__skip:hover { color: var(--ink); }

/* ---------- Fixed chrome ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; padding: var(--pad);
  display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none;
  transition: transform .45s var(--ease), opacity .35s var(--ease);
}
/* logo + menu slide away while scrolling down (past the first third of the screen) and come back on any scroll up */
body.top-away .top { transform: translateY(-120%); opacity: 0; }
.top > * { pointer-events: auto; }

/* Brand: each shape (▲■●) flips to its letter (A M Y) and back on its own random timer (main.js) */
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--logo); color: var(--ink); }
.brand__amy { display: inline-flex; gap: 3px; }
.glyph { display: grid; place-items: center; width: 20px; height: 24px; }
.glyph > * { grid-area: 1 / 1; }
.glyph svg { width: 19px; height: 19px; fill: currentColor; transition: transform .9s var(--ease), opacity .7s var(--ease); }
.glyph b { font-weight: 700; font-size: 23px; line-height: 1; opacity: 0; transform: translateY(60%); transition: transform .9s var(--ease), opacity .7s var(--ease); }
.glyph.is-letter svg { opacity: 0; transform: scale(.2) rotate(-45deg); }
.glyph.is-letter b { opacity: 1; transform: none; }
.brand__designers { font-size: 17px; line-height: 1; }

.menu { display: flex; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.menu__item { position: relative; }
.menu__top { display: inline-block; color: var(--gray-2); padding: 0 3px; transition: color .25s, background .25s; }
.menu__top:hover, .menu__item:hover > .menu__top, .menu__item:focus-within > .menu__top { color: var(--ink); }
.menu__top.is-active { color: var(--bg) !important; background: var(--ink); }
/* the About tab shows the logo shapes (triangle, square, circle) instead of a word */
.menu__top--shapes svg { display: inline-block; height: .78em; width: auto; vertical-align: -.04em; fill: currentColor; }
/* always full contrast with the background (black on light pages, white on dark ones), no highlight box */
.top .menu__top.menu__top--shapes, .top .menu__top.menu__top--shapes.is-active { color: var(--ink) !important; background: none !important; }
body.on-footer .top .menu__top.menu__top--shapes { color: #fff !important; } /* the header turns dark over the footer */

/* dropdown panels under the tabs (desktop): open on hover or keyboard focus */
.drop {
  position: absolute; top: calc(100% + 12px); left: -14px; min-width: 240px; z-index: 60;
  background: var(--bg); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .08); padding: 16px 18px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s;
  font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink);
}
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.menu__item:hover > .drop, .menu__item:focus-within > .drop { opacity: 1; visibility: visible; transform: none; }
.drop--wide { min-width: 460px; }
.drop--right { left: auto; right: -14px; }
.drop--cols { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 20px; min-width: 620px; right: -120px; left: auto; }
.drop__h { color: var(--gray); margin-bottom: 8px; font-weight: 500; }
.drop__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.drop__list--2 { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.drop__list a, .drop__list span { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; color: var(--ink); }
.drop__list a small { color: var(--gray); font-size: 11px; font-weight: 500; white-space: nowrap; }
.drop__list a:hover { color: var(--gray-3); }
.drop__list span { color: var(--gray-3); }
.drop__all { display: inline-block; margin-top: 12px; font-weight: 600; border-bottom: 1px solid currentColor; }
.drop__all:hover { color: var(--gray-3); }
.menu-toggle { display: none; font-weight: 600; font-size: 15px; padding: 10px 4px; line-height: 0; color: inherit; }
/* phone menu button: three dots, an X while the menu is open */
.menu-toggle svg { display: block; width: 24px; height: auto; fill: currentColor; }
.menu-toggle__x { width: 16px !important; fill: none !important; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-toggle .menu-toggle__x, .menu-toggle[aria-expanded="true"] .menu-toggle__dots { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__x { display: block; }

.hello {
  position: fixed; left: var(--pad); bottom: var(--pad); z-index: 40;
  font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.045em; line-height: .9;
  display: inline-flex; flex-direction: column; align-items: flex-end;
}
.hello small { font-size: 10px; font-weight: 600; letter-spacing: 0; margin-top: 6px; color: var(--gray-3); transition: color .25s; }
.hello:hover small { color: var(--ink); }
.clock { position: fixed; right: var(--pad); bottom: var(--pad); z-index: 40; }
.clock #clock { color: var(--gray); }
.credits {
  position: fixed; left: 50%; bottom: var(--pad); transform: translateX(-50%); z-index: 40;
  font-size: 9px; color: var(--gray-2); white-space: nowrap;
}

/* ---------- Views ---------- */
.view { min-height: 100vh; min-height: 100svh; animation: viewIn .6s var(--ease); }
@keyframes viewIn { from { opacity: 0; } }

/* Home: pinned hero (scroll-driven), then long-form sections */
.view--home { position: relative; }
.hero { position: relative; height: 100vh; height: 100svh; } /* one screen: "Design. Consult. Build." moved below Projects, so the hero no longer pins */
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.wordmark {
  font-size: clamp(40px, 5.2vw, 76px); font-weight: 500; letter-spacing: -.055em; line-height: 1;
  color: var(--gray); white-space: nowrap;
}
.wordmark span { color: var(--ink); font-weight: 600; }
.view--home .wordmark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; }
/* hero wordmark set like the logo: heavy AMY (Helvetica Now Display / Inter Tight), wide-tracked Designers */
.wordmark--logo { font-family: var(--amy); font-weight: 400; color: var(--ink); font-size: clamp(30px, 4vw, 60px); letter-spacing: .12em; }
.wordmark--logo b { font-weight: 800; font-size: 1.22em; letter-spacing: .02em; margin-right: .12em; }
.home__tag { position: absolute; left: 50%; top: calc(50% + clamp(36px, 4vw, 58px)); transform: translateX(-50%); color: var(--gray); z-index: 3; white-space: nowrap; }
/* hero stack, centered as one group: the ▲ ■ ● strip, then "Designers", then the tagline
   (--S = photo size, --F = wordmark size; the middle photo grows 1.4x, so the strip leaves 0.2 × S room above and below) */
.hero__stage { --S: clamp(104px, 11vw, 176px); --F: clamp(30px, 4vw, 60px); }
@media (max-width: 760px) { .hero__stage { --S: 76px; } } /* phones: smaller photos in the hero strip */
.view--home .wordmark--logo { top: calc(50% + var(--S) * .7 - 4px - var(--F) * .55); transform: translateX(-50%); padding-left: .12em; line-height: 1.1; } /* padding balances the trailing letter-space so the word is truly centered */
.view--home .home__tag { top: calc(50% + var(--S) * .7 + 10px + var(--F) * .55); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* slow entrance (main.js adds .is-revealed): wordmark first, then the tagline */
/* the slow fade-in runs once as an animation, so afterwards the scroll fade (--hf) follows the scroll instantly instead of lagging behind it */
.view--home .wordmark, .home__tag { opacity: 0; }
.view--home.is-revealed .wordmark, .view--home.is-revealed .home__tag { opacity: calc(1 - var(--hf, 0)); animation: heroIn 1.8s var(--ease) backwards; }
.view--home.is-revealed .home__tag { animation-delay: .7s; }
@keyframes heroIn { from { opacity: 0; filter: blur(6px); } }

/* the three words: appear one by one as the thumbnails line up into a column (main.js sets opacity/state) */
.hero__words {
  position: absolute; right: clamp(16px, 6vw, 96px); top: 50%; transform: translateY(-50%);
  width: min(48vw, 640px); z-index: 3; pointer-events: none;
}
.hero__lead { color: var(--gray-3); margin-bottom: 18px; opacity: 0; transition: opacity .6s; }
.hw { opacity: 0; transform: translateY(26px); margin-bottom: clamp(14px, 2.4vh, 28px); }
.hw__word {
  font-family: var(--amy); font-weight: 800; font-size: clamp(44px, 6.4vw, 108px); line-height: .9;
  letter-spacing: -.035em; transition: color .5s var(--ease);
}
.hw p { max-width: 44ch; margin-top: 8px; font-size: 15px; color: var(--gray-3); transition: color .5s var(--ease); }
.hw__tags { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink); }
.hw.is-past .hw__word { color: var(--gray-2); }
.hw.is-past p { color: var(--gray-2); }
.hw.is-past .hw__tags { color: var(--gray-2); }
.hero__hint {
  position: absolute; left: 50%; bottom: calc(var(--pad) + 30px); transform: translateX(-50%); z-index: 3;
  color: var(--gray-3); opacity: calc(1 - var(--hf, 0));
}
.hero__hint span { display: inline-block; animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

.collage { position: absolute; inset: 0; display: none; } /* replaced by the left-to-right strip under the wordmark (.hstrip) */
/* hero strip: photos travel left to right; ▲ / ● at the sides, square under "AMY Designers" (main.js) */
.hstrip { position: absolute; left: 0; right: 0; top: calc(50% - var(--S) * .5 - 24px - var(--F) * .55); height: var(--S); z-index: 2; cursor: grab; touch-action: pan-y; user-select: none; }
.hstrip.is-drag { cursor: grabbing; }
.view--home .hstrip { opacity: 0; }
.view--home.is-revealed .hstrip { opacity: calc(1 - var(--hf, 0)); animation: heroIn 1.8s var(--ease) 1.2s backwards; }
/* after the intro lands its shapes on the strip, the strip is simply there (no second fade-in) */
.view--home.is-handoff .hstrip { opacity: calc(1 - var(--hf, 0)); animation: none; }
.hstrip__t { position: absolute; left: 0; top: 0; width: var(--S); aspect-ratio: 1; display: block; will-change: transform; background: #f2f2f2; transform-origin: 50% 50%; }
.hstrip__t img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .8s var(--ease); }
.hstrip__t.is-square img, .hstrip__t:hover img { filter: none; }
.hstrip__t > .mono { position: absolute; left: 8px; bottom: 8px; color: #fff; font-size: 10px; opacity: 0; transition: opacity .3s; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.hstrip__t.is-square:hover > .mono { opacity: 1; }
/* tiles: base spot (--x/--y/--w) + scroll offset (--sx/--sy/--ss) + mouse drift (--px/--py, faded by --pk) + entrance (--rise/--rs) */
.tile {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); z-index: 2; transform-origin: 0 0;
  --rise: 18px; --rs: .94;
  opacity: 0;
  transform:
    translate3d(calc(var(--px, 0px) * var(--pk, 1) + var(--sx, 0px)), calc(var(--py, 0px) * var(--pk, 1) + var(--sy, 0px) + var(--rise)), 0)
    scale(calc(var(--ss, 1) * var(--rs)));
  transition: opacity 1.8s var(--ease), transform 2s var(--ease), clip-path 1.4s cubic-bezier(.65, 0, .25, 1);
}
/* hero previews are square so the ▲ ■ ● shapes (clip-path set in main.js) keep their true proportions */
.collage .tile__media { aspect-ratio: 1; background: none; }
/* shape change happens while the preview is faded out (main.js) */
.collage .tile > * { transition: opacity 1.6s cubic-bezier(.4, 0, .2, 1); }
.collage .tile.is-reshaping > * { opacity: 0 !important; }
.tile.is-in { opacity: 1; --rise: 0px; --rs: 1; }
.tile.is-fly { transition: opacity .3s, transform 1.5s cubic-bezier(.65, 0, .25, 1), clip-path 1.4s; z-index: 3; }
.tile.is-live { transition: opacity 1.8s var(--ease), clip-path 1.4s cubic-bezier(.65, 0, .25, 1); }  /* scroll drives transform directly (smoothed in JS) */
/* architectural concepts: faint "ghost" thumbnails among the projects; full strength on hover, gone once you scroll */
.tile--ghost.is-in { opacity: calc(.28 * var(--gfade, 1)); }
.tile--ghost.is-live { transition: opacity .5s var(--ease); }
.tile--ghost.is-in:hover, .tile--ghost.is-in:focus-visible { opacity: calc(1 * var(--gfade, 1)); }
.tile--ghost { z-index: 1; }
/* two stacked layers crossfade between the project's images (main.js) */
.tile__media {
  position: relative; display: block; aspect-ratio: var(--ar, 3 / 4); overflow: hidden; background: #f2f2f2;
  transition: transform 1.5s cubic-bezier(.45, 0, .2, 1); will-change: transform;
}
/* random pulse (main.js): a thumbnail glides up, then glides back down */
.tile.is-pulse { z-index: 4; }
.tile.is-unplaced { display: none; }
/* pulse: grows while fading out until it disappears, then fades back in at normal size */
.tile.is-pulse .tile__media { animation: pulseFade 4.5s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes pulseFade {
  0%   { transform: scale(1);    opacity: 1; }
  45%  { transform: scale(1.08); opacity: 0; }
  60%  { transform: scale(.98);  opacity: 0; }
  100% { transform: scale(1);    opacity: 1; }
}
.tile__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 2.2s cubic-bezier(.4, 0, .2, 1), filter .4s var(--ease);
}
.tile__media img.is-front { opacity: 1; }
/* project name sits on the image: a dark band over the lower third, shown on hover */
.tile > .mono {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: 2; pointer-events: none;
  display: flex; align-items: flex-end; padding: 0 10px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, .72), rgba(0, 0, 0, 0));
  opacity: 0; transition: opacity .35s var(--ease);
}
.tile:hover > .mono, .tile:focus-visible > .mono { opacity: 1; }

/* ---------- Home sections ---------- */
.sec { position: relative; z-index: 5; background: var(--bg); padding: clamp(80px, 11vw, 160px) clamp(16px, 6vw, 96px); }
.eyebrow { color: var(--gray-3); margin-bottom: 22px; }
.big {
  font-family: var(--amy); font-weight: 700; font-size: clamp(32px, 4.6vw, 72px); line-height: 1.02;
  letter-spacing: -.035em; max-width: 20ch;
}
.big span { color: var(--gray-2); }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(48px, 7vw, 96px); }
.cols3 h3 { font-family: var(--amy); font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 14px; }
.cols3 p { color: var(--gray-3); max-width: 40ch; }

.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 40px; margin-bottom: clamp(32px, 5vw, 64px); }
.sec__head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.sec__title { font-family: var(--amy); font-weight: 700; font-size: clamp(34px, 5vw, 80px); line-height: .95; letter-spacing: -.04em; }
.sec__note { grid-column: 1; color: var(--gray-3); max-width: 56ch; }
.sec__link { grid-column: 2; grid-row: 2; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; white-space: nowrap; }
.sec__link:hover { color: var(--gray-3); }

.svc__focus { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 clamp(24px, 3vw, 40px); }
.svc__focus span { padding: 7px 12px; background: var(--ink); color: var(--bg); }
/* services: three columns of text blocks, no lines; whitespace separates them.
   number, name, text, tag read top to bottom; hover turns a block black, like the graphic tiles in the Projects grid */
.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1vw, 14px); }
.svc li {
  display: flex; flex-direction: column; gap: 10px; padding: clamp(18px, 2vw, 28px); min-height: clamp(220px, 20vw, 290px);
  background: var(--bg); transition: background .35s var(--ease), color .35s var(--ease);
}
.svc li:hover { background: var(--ink); color: #fff; }
.svc__n { color: var(--gray-2); transition: color .35s var(--ease); }
.svc h3 { font-family: var(--amy); font-size: clamp(22px, 2.1vw, 32px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.svc p { color: var(--gray-3); font-size: 14px; line-height: 1.5; max-width: 34ch; transition: color .35s var(--ease); }
.svc__t { margin-top: auto; padding-top: 8px; color: var(--gray-3); transition: color .35s var(--ease); }
.svc li:hover .svc__n, .svc li:hover p, .svc li:hover .svc__t { color: #9b9b9b; }
@media (max-width: 900px) { .svc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc { grid-template-columns: 1fr; } .svc li { min-height: 0; } }

.proc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 1.6vw, 24px); }
.proc figure { margin: 0 0 14px; display: grid; gap: 6px; }
.proc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: filter .4s; }
.proc img + img { aspect-ratio: 16 / 10; }
.proc li:hover img { filter: none; }
.proc .mono { color: var(--gray-2); }
.proc h3 { font-family: var(--amy); font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 6px; }
.proc p { color: var(--gray-3); font-size: 14px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.card { display: block; }
.card__img { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: #f2f2f2; margin-bottom: 12px; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--gray-3); }
.card h3 { font-family: var(--amy); font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; letter-spacing: -.025em; margin-top: 4px; }

/* expertise: ZHA layout (label left, statement right, 4 x 2 grid of square cards, no lines) in the site's own black / white / gray style */
.exp__head { margin-bottom: clamp(32px, 5vw, 64px); }
.exp__label { color: var(--gray-3); margin: 0 0 22px; }
.exp__lede { margin-top: 18px; color: var(--gray-3); max-width: 56ch; }
.exp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
/* square photos with a gap; on hover the photo fades and the description appears over it */
.exp__card { position: relative; display: flex; flex-direction: column; height: 100%; padding-bottom: 12px; }
.exp__img { display: block; aspect-ratio: 1; overflow: hidden; background: #f2f2f2; }
.exp__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: opacity .5s var(--ease), transform 1.2s var(--ease); }
.exp__card:hover .exp__img img { opacity: .12; transform: scale(1.04); }
.exp__name { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.exp__arrow { transition: transform .3s var(--ease); }
.exp__card:hover .exp__arrow { transform: translateX(4px); }
.exp__desc {
  position: absolute; inset: 0 0 auto; aspect-ratio: 1; display: flex; align-items: flex-end; padding: clamp(14px, 1.6vw, 22px);
  color: var(--ink); font-size: clamp(14px, 1.15vw, 17px); line-height: 1.4; font-weight: 500;
  opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none;
}
.exp__card:hover .exp__desc, .exp__card:focus-visible .exp__desc { opacity: 1; transform: none; }
/* touch screens have no hover: show the description under the name instead */
@media (hover: none) {
  .exp__desc { position: static; aspect-ratio: auto; padding: 6px 0 0; opacity: 1; transform: none; color: var(--gray-3); font-size: 13px; font-weight: 400; }
}
/* locations: dot map + list */
/* project locations: one clean dot map of DFW, every city labelled; hover a dot for its projects */
.locmap { position: relative; margin-top: clamp(8px, 2vw, 24px); }
.locmap svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.locmap__ref { fill: var(--gray-2); font-size: 15px; letter-spacing: .12em; text-transform: uppercase; text-anchor: middle; }
.locmap__pin { pointer-events: none; }
.locmap__pin circle { fill: var(--ink); transition: opacity .3s var(--ease), transform .3s var(--ease); transform-box: fill-box; transform-origin: center; }
.locmap__pin .locmap__hit { fill: transparent; }
.locmap__pin text { fill: var(--ink); font-size: 19px; font-weight: 600; letter-spacing: -.01em; transition: opacity .3s var(--ease); }
.locmap__n { fill: var(--gray); font-size: 12px; font-weight: 500; }
.locmap.has-on .locmap__pin:not(.is-on) circle:not(.locmap__hit), .locmap.has-on .locmap__pin:not(.is-on) text { opacity: .25; }
.locmap__pin.is-on circle:not(.locmap__hit) { transform: scale(1.3); }
.locmap__tip { position: absolute; transform: translate(22px, -50%); display: grid; gap: 4px; min-width: 200px; padding: 14px 16px; background: var(--ink); color: #fff; font-size: 14px; pointer-events: auto; z-index: 2; }
.locmap__tip.is-left { transform: translate(calc(-100% - 22px), -50%); }
.locmap__tip .mono { color: #9b9b9b; margin-bottom: 4px; }
.locmap__tip a:hover { text-decoration: underline; }
.locmap__away { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-top: clamp(16px, 2.5vw, 32px); }
.locmap__away .mono { color: var(--gray); margin-right: 6px; }
.locmap__away a, .locmap__place { font-family: var(--amy); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.locmap__away sup { font-family: var(--sans); font-weight: 500; font-size: 10px; color: var(--gray); margin-left: 3px; }

/* concepts · 01 architecture: large showcase */
.arch { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 56px) clamp(16px, 2.4vw, 32px); }
.arch__item { display: block; }
.arch__item--lead { grid-column: 1 / -1; }
.arch__img { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #f2f2f2; margin-bottom: 14px; }
.arch__item--lead .arch__img { aspect-ratio: 21 / 9; }
.arch__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.arch__item:hover .arch__img img { transform: scale(1.035); }
.arch__meta { display: flex; gap: 16px; color: var(--gray-3); }
.arch__meta span:first-child { color: var(--gray-2); }
.arch__item h3 { font-family: var(--amy); font-weight: 800; font-size: clamp(26px, 2.8vw, 44px); letter-spacing: -.035em; line-height: 1; margin: 8px 0; }
.arch__item p { color: var(--gray-3); max-width: 60ch; }

/* concepts · 02 fabrication: light gray grid */
.sec--fab { background: #f3f3f3; }
.fab { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.fab__item { display: block; }
.fab__img { display: block; overflow: hidden; aspect-ratio: 1; background: #e6e6e6; margin-bottom: 12px; }
.fab__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.fab__item:hover .fab__img img { transform: scale(1.04); }
.fab__item h3 { font-family: var(--amy); font-weight: 700; font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -.025em; }
.fab__item .mono { color: var(--gray-3); }

/* concepts · 03 photography: dark rows of image strips */
.sec--photo { background: #0f0f0f; color: #fff; }
.sec--photo .eyebrow, .sec--photo .sec__note { color: #8d8d8d; }
.photo { display: grid; gap: clamp(32px, 4vw, 56px); }
.photo__row { display: block; }
.photo__head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; padding-top: 12px; margin-bottom: 14px; }
.photo__head h3 { font-family: var(--amy); font-weight: 800; font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -.035em; }
.photo__head .mono { color: #8d8d8d; }
.photo__go { margin-left: auto; font-weight: 600; font-size: 14px; }
.photo__row:hover .photo__go { text-decoration: underline; }
/* ---------- How a project gets built (dark, ZHA-inspired): sticky photo panel + scroll-driven stages ---------- */
.sec--build { background: #0f0f0f; color: #fff; }
.sec--build .eyebrow { color: #8d8d8d; }
.build__intro { max-width: 1100px; margin-bottom: clamp(56px, 7vw, 100px); }
.build__title { font-family: var(--amy); font-weight: 800; font-size: clamp(44px, 7vw, 120px); line-height: .92; letter-spacing: -.045em; }
.build__lede { font-size: clamp(20px, 2vw, 30px); line-height: 1.3; font-weight: 500; color: #d6d6d6; max-width: 34ch; margin-top: clamp(20px, 3vw, 36px); }
.build__roles { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 36px; color: #8d8d8d; }
.build__roles b { color: #fff; font-weight: 600; margin-right: 8px; }
.build { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.build__media { position: sticky; top: 90px; }
.build__frames { position: relative; aspect-ratio: 4 / 3.4; }
.build__frame { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease); }
.build__frame.is-on { opacity: 1; }
.build__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.build__frame.is-on img { transform: none; }
.build__cap { position: absolute; left: 12px; top: 12px; background: rgba(0, 0, 0, .6); padding: 5px 9px; color: #fff; }
.build__count { display: inline-block; margin-top: 16px; color: #8d8d8d; }
.build__count span:first-child { color: #fff; }
.build__bar { height: 2px; background: #2c2c2c; margin-top: 10px; }
.build__bar span { display: block; height: 100%; background: #fff; transform-origin: 0 0; transform: scaleX(.2); transition: transform .6s var(--ease); }
.build__stages { list-style: none; margin: 0; padding: 0; }
.bstage { min-height: 72vh; padding: 8vh 0; opacity: .3; transition: opacity .6s var(--ease); }
.bstage.is-on { opacity: 1; }
.bstage__n { font-family: var(--amy); font-weight: 800; font-size: clamp(56px, 6vw, 96px); line-height: 1; color: #3a3a3a; display: block; transition: color .6s var(--ease); }
.bstage.is-on .bstage__n { color: #fff; }
.bstage h3 { font-family: var(--amy); font-weight: 800; font-size: clamp(30px, 3.4vw, 52px); letter-spacing: -.035em; line-height: 1; margin: 14px 0 10px; }
.bstage__line { font-size: clamp(17px, 1.4vw, 21px); color: #d6d6d6; max-width: 36ch; }
.bstage__img { display: none; }
.bstage__steps { list-style: none; margin: 24px 0 0; padding: 0; }
.bstage__steps li { padding: 10px 0; color: #bdbdbd; display: flex; gap: 12px; }
.bstage__steps li::before { content: "—"; color: #5a5a5a; }
.bstage__roles { display: flex; gap: 8px; margin-top: 20px; }
.bstage__roles span { padding: 4px 10px; border: 1px solid #3a3a3a; color: #5a5a5a; }
.bstage__roles span.is-on { border-color: #fff; color: #fff; }
.bstage__seen { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 22px; }
.bstage__seen .mono { color: #8d8d8d; width: 100%; }
.bstage__seen a { font-weight: 600; border-bottom: 1px solid currentColor; }
.bstage__seen a:hover { color: #8d8d8d; }

/* ---------- Research page ---------- */
.view--research { padding: 120px clamp(16px, 6vw, 96px) 160px; }
.rs__title { font-family: var(--amy); font-weight: 800; font-size: clamp(44px, 7vw, 120px); line-height: .92; letter-spacing: -.045em; max-width: 12ch; }
.rs__intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); margin: clamp(28px, 4vw, 48px) 0 clamp(56px, 7vw, 96px); max-width: 1100px; }
.rs__lede { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.35; font-weight: 500; }
.rs__intro p:not(.rs__lede) { color: var(--gray-3); }
.rs__h { color: var(--gray); padding-top: 12px; margin: 0 0 24px; font-weight: 500; }
/* ZHA-style flow: title → kicker → lede → featured study → why → research groups */
.rs__kicker { font-family: var(--amy); font-weight: 700; font-size: clamp(22px, 2.4vw, 36px); letter-spacing: -.025em; margin-top: clamp(18px, 2.4vw, 32px); }
.view--research .rs__lede { max-width: 46ch; margin-top: 14px; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.4; font-weight: 500; color: var(--gray-3); }
.rs__feature { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: end; margin: clamp(48px, 6vw, 88px) 0; }
.rs__fimg { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #111; }
.rs__fimg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.rs__feature:hover .rs__fimg img { transform: scale(1.03); }
.rs__ftext { display: grid; gap: 8px; padding-bottom: 6px; }
.rs__ftext .mono { color: var(--gray-3); }
.rs__fname { font-family: var(--amy); font-weight: 800; font-size: clamp(26px, 2.8vw, 44px); letter-spacing: -.035em; line-height: 1; }
.rs__fsub { color: var(--gray-3); }
.rs__why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px clamp(24px, 4vw, 64px); padding-top: 22px; margin-bottom: clamp(48px, 6vw, 88px); }
.rs__h2 { grid-column: 1 / -1; font-family: var(--amy); font-weight: 800; font-size: clamp(28px, 3.4vw, 52px); letter-spacing: -.035em; line-height: 1; margin-bottom: 10px; }
.rs__why p { color: var(--gray-3); font-size: 16px; line-height: 1.6; }
.rs__areas { display: grid; gap: clamp(16px, 2vw, 24px); margin-bottom: clamp(64px, 8vw, 120px); }
.rs__area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 48px); align-items: center; background: #f5f5f5; padding: clamp(14px, 1.6vw, 22px); transition: background .3s; }
.rs__area:hover { background: #ededed; }
.rs__atext { display: block; }
.rs__img { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #e6e6e6; }
.rs__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.rs__area:hover .rs__img img { transform: scale(1.035); }
.rs__num { color: var(--gray-3); }
.rs__area h3 { font-family: var(--amy); font-weight: 800; font-size: clamp(28px, 3vw, 46px); letter-spacing: -.035em; line-height: 1; margin: 8px 0; }
.rs__area p { color: var(--gray-3); max-width: 46ch; }
.rs__more { display: inline-block; margin-top: 10px; font-weight: 600; border-bottom: 1px solid currentColor; }
.rs__area:hover .rs__more, .area__b:hover .rs__more { color: var(--gray-3); }
.rs__studies { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); }
.rs__group .mono { color: var(--gray-3); margin-bottom: 10px; }
.rs__group ul { list-style: none; margin: 0; padding: 0; }
.rs__group li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; }
.rs__group li > a:first-child { font-weight: 600; }
.rs__group li > a:first-child:hover { color: var(--gray-3); }
.rs__tag { color: var(--gray); font-size: 10px; text-align: right; }
.rs__tag:hover { color: var(--ink); }

/* Research page in black (a gallery at night): colors flip only on this page and its top bar, not in the project panel */
.view--research, body[data-view="research"] .top {
  --bg: #0b0b0b; --ink: #f2f2f2; --gray: #8a8a8a; --gray-2: #444; --gray-3: #a9a9a9; --line: #262626;
  color: var(--ink);
}
body[data-view="research"] { background: #0b0b0b; }
.view--research { background: var(--bg); }
.view--research .rs__area { background: #151515; }
.view--research .rs__area:hover { background: #1d1d1d; }
.view--research .rs__img, .view--research .rs__fimg { background: #1a1a1a; }
body[data-view="research"] .top .menu__top.is-active { background: #f2f2f2; color: #0b0b0b; }
/* Research square grid: white area tiles stand out on the black page */
.rs__grid { margin-top: clamp(48px, 6vw, 88px); --bg: #ffffff; --ink: #0d0d0d; --gray: #9b9b9b; --gray-2: #c4c4c4; --gray-3: #6b6b6b; } /* tiles keep the normal (light) colors */
.rs__atile { color: #0d0d0d; transition: background .3s; }
.rs__atile:hover { background: #e9e9e7; }
.rs__anum { opacity: .5; }
@media (max-width: 600px) { .rs__atile .mm__s-desc { display: none; } }

/* research area panel + research-to-built links */
.area__studies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.area__built { display: grid; gap: 14px; margin-bottom: 8px; }
.area__b { display: grid; grid-template-columns: minmax(160px, 280px) minmax(0, 1fr); gap: 20px; align-items: center; padding-bottom: 14px; }
.area__bimg { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f2f2f2; }
.area__bimg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.area__b:hover .area__bimg img { transform: scale(1.04); }
.area__b .mono { color: var(--gray-3); }
.area__b h3 { font-family: var(--amy); font-weight: 800; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -.03em; margin: 4px 0 6px; }
.area__b p { color: var(--gray-3); }
.related { margin-top: 18px !important; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; text-align: left; }
.related .mono { color: var(--gray); width: 100%; }
.related a { font-weight: 600; border-bottom: 1px solid currentColor; }
.related a:hover { color: var(--gray-3); }
.sec--photo .sec__link { color: #fff; }
.sec--photo .sec__link:hover { color: #8d8d8d; }

.photo__sub { display: block; color: #bdbdbd; font-size: 15px; margin: -4px 0 14px; }
.project__shot { display: none; position: relative; margin: 0 0 24px; }
/* one photo per swipe, stops on each photo (no long throws) */
.shot__track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; touch-action: pan-x pan-y; overscroll-behavior-x: contain; }
.shot__track::-webkit-scrollbar { display: none; }
.shot__track img { flex: 0 0 100%; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; scroll-snap-align: start; scroll-snap-stop: always; display: block; }
.shot__n { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; pointer-events: none; }
.shot__n:empty { display: none; }
.project__sub { margin: -18px 0 28px; color: var(--gray-3); font-size: clamp(15px, 1.3vw, 18px); }
.photo__strip { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 8px; }
.photo__strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(.35); transition: filter .5s var(--ease); }
.photo__strip img:first-child { aspect-ratio: auto; height: 100%; grid-row: span 1; }
.photo__row:hover .photo__strip img { filter: none; }

/* manifesto (m3-style): words turn from gray to black with scroll */
.manifesto { display: grid; gap: clamp(32px, 5vw, 64px); }
.manifesto__text {
  font-family: var(--amy); font-weight: 800; text-transform: uppercase; font-size: clamp(38px, 6.4vw, 110px);
  line-height: .96; letter-spacing: -.035em; max-width: 16ch;
}
.manifesto__text .w { color: var(--gray-2); transition: color .35s var(--ease); }
.manifesto__text .w.is-on { color: var(--ink); }
.manifesto__body { margin-left: clamp(0px, 25vw, 400px); max-width: 52ch; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.45; }
.manifesto__link { display: inline-block; margin-top: 28px; font-weight: 600; border-bottom: 1px solid currentColor; }

/* footer (m3-style) */
.footer { position: relative; z-index: 5; background: #141414; color: #fff; padding: clamp(64px, 8vw, 120px) clamp(16px, 6vw, 96px) 28px; }
.footer__top { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.footer__mark { display: inline-block; }
.footer__mark svg { width: clamp(120px, 14vw, 220px); fill: #fff; transition: opacity .25s; }
.footer__mark:hover svg, .footer__giant:hover { opacity: .75; }
.footer__cta { color: #8d8d8d; max-width: 26ch; }
.ff { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.ff label { display: grid; gap: 4px; color: #8d8d8d; font-size: 13px; }
.ff input:not([type="checkbox"]), .ff textarea, .ff select {
  width: 100%; font: inherit; font-size: 16px; color: #fff; background: transparent; border: 0;
  border-bottom: 1px solid #5a5a5a; padding: 6px 0; border-radius: 0; transition: border-color .25s;
}
.ff select option { color: var(--ink); }
.ff input:focus, .ff textarea:focus, .ff select:focus { outline: none; border-color: #fff; }
.ff textarea { resize: vertical; }
.ff__wide, .ff__send, .ff__status { grid-column: 1 / -1; }
.ff__check { display: flex !important; gap: 10px; align-items: flex-start; font-size: 12px !important; }
.ff__check input { margin-top: 2px; accent-color: #fff; }
.ff__send { justify-self: start; font-weight: 600; font-size: 18px; border-bottom: 1px solid currentColor; color: #fff; }
.ff__send:hover { color: #8d8d8d; }
.ff__status { color: #8d8d8d; min-height: 1.4em; }
.ff .is-invalid { border-color: #e06b5a !important; }
.footer__info { display: grid; grid-template-columns: repeat(4, minmax(0, 200px)); gap: 24px; margin: clamp(56px, 7vw, 96px) 0 0 clamp(0px, 20vw, 330px); }
.footer__info .mono { color: #8d8d8d; margin-bottom: 8px; }
.footer__info a, .footer__info p { display: block; line-height: 1.6; }
.footer__info a:hover { color: #8d8d8d; }
.footer__giant {
  display: block; width: fit-content; transition: opacity .25s;
  font-family: var(--amy); font-weight: 400; font-size: clamp(48px, 11.5vw, 220px); letter-spacing: .02em; line-height: 1;
  margin: clamp(48px, 7vw, 100px) 0 24px; white-space: nowrap;
}
.footer__giant b { font-weight: 800; letter-spacing: -.02em; margin-right: .08em; }
.footer__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 16px; color: #8d8d8d; }
.footer__legal a:hover { color: #fff; }

/* fixed corner items step aside once you scroll past the hero */
.hello, .clock, .credits { transition: opacity .4s var(--ease), visibility .4s; }
body.past-hero .hello, body.past-hero .clock, body.past-hero .credits { opacity: 0; visibility: hidden; }
body.past-hero .top { background: linear-gradient(var(--bg) 60%, transparent); }
body.near-footer .hello, body.near-footer .clock, body.near-footer .credits { opacity: 0; visibility: hidden; }
body.on-footer .top { background: linear-gradient(rgba(15, 15, 15, 1) 55%, rgba(15, 15, 15, 0)); }
/* long pages (research): corner items step aside and the header gets a white backing */
body[data-view="research"] .hello, body[data-view="research"] .clock, body[data-view="research"] .credits,
body[data-view="concepts"] .hello, body[data-view="concepts"] .clock, body[data-view="concepts"] .credits, body[data-view="studies"] .hello, body[data-view="studies"] .clock, body[data-view="studies"] .credits, body[data-view="products"] .hello, body[data-view="products"] .clock, body[data-view="products"] .credits { opacity: 0; visibility: hidden; }
body[data-view="research"] .top, body[data-view="concepts"] .top, body[data-view="studies"] .top, body[data-view="products"] .top { background: linear-gradient(var(--bg) 60%, transparent); }
body.on-footer .brand, body.on-footer .menu-toggle { color: #fff; }
body.on-footer .menu__top:not(.is-active):hover { color: #fff; }

/* ---------- Selected projects (marte-marte style): edge-to-edge square grid, b/w, hover reveals name + category ---------- */
.sec--selected { padding-bottom: clamp(24px, 3vw, 40px); }
.mm { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--ink); }
.mm__t { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: #e9e9e9; }
.mm__t img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease), transform 1.2s var(--ease); }
/* on hover the photo shows in its own colour; only a soft shade at the top keeps the white name readable */
.mm__t::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .2) 30%, rgba(0, 0, 0, 0) 55%); opacity: 0; transition: opacity .4s var(--ease); }
.mm__t:hover::after, .mm__t:focus-visible::after { opacity: 1; }
.mm__t:hover img, .mm__t:focus-visible img { transform: scale(1.03); filter: none; }
/* home Our Projects / What we do: a random photo slowly turns to colour and back (main.js) */
.mm__t.is-pop img { filter: none; transition: filter 1.4s var(--ease), transform 1.2s var(--ease); }
.mm__cap { position: absolute; left: 16px; top: 14px; right: 16px; z-index: 2; display: grid; gap: 2px; color: #fff; opacity: 0; transform: translateY(-4px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.mm__t:hover .mm__cap, .mm__t:focus-visible .mm__cap { opacity: 1; transform: none; }
.mm__name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.mm__cat { font-size: 13px; color: rgba(255, 255, 255, .6); }
/* graphic tiles */
.mm__g { display: grid; place-items: center; }
.mm__g--light { background: #fbfbfa; color: var(--ink); }
.mm__g--dark { background: #1b1b1b; color: #fff; }
.mm__g svg { width: 52%; fill: currentColor; }
.mm__word { font-family: var(--amy); font-size: clamp(22px, 2.6vw, 40px); line-height: 1; letter-spacing: .14em; text-align: center; }
.mm__word b { font-weight: 800; letter-spacing: .02em; font-size: 1.3em; }
.mm__dcb { font-family: var(--amy); font-weight: 800; font-size: clamp(22px, 2.6vw, 40px); line-height: 1.02; letter-spacing: -.035em; }
/* What we do: photo tiles always show their name at the bottom, on a white fade so it reads over any photo */
.mm__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 40px 16px 14px; font-family: var(--amy); font-weight: 700; font-size: clamp(16px, 1.4vw, 21px); letter-spacing: -.02em; color: var(--ink); background: linear-gradient(to top, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .8) 45%, rgba(255, 255, 255, 0) 100%); pointer-events: none; transition: opacity .35s var(--ease); }
.mm__t:hover .mm__label, .mm__t:focus-visible .mm__label { opacity: 0; }
/* What we do: text-only service tiles in the square grid */
.mm__s { display: flex; flex-direction: column; gap: 10px; padding: clamp(16px, 1.8vw, 28px); }
.mm__s-name { font-family: var(--amy); font-weight: 700; font-size: clamp(18px, 1.7vw, 26px); letter-spacing: -.03em; line-height: 1.05; }
.mm__s-desc { font-size: clamp(12px, .95vw, 14px); line-height: 1.45; opacity: .65; }
/* text tiles (black / white boxes) are never dimmed by the photo hover film, and their small line reads clearly */
.mm__t.mm__s::after { content: none; }
.mm__g--dark .mm__s-desc { opacity: .9; }
@media (max-width: 600px) { .mm__s-desc { font-size: 13px; } .mm__g--dark .mm__s-desc { opacity: 1; } }
.mm__s-tag { margin-top: auto; opacity: .55; }
@media (max-width: 600px) { .mm__s { padding: 14px; } .mm__s-desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } }
.mm__loc-small { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.mm__all { font-family: var(--amy); font-weight: 800; font-size: clamp(20px, 2.2vw, 34px); line-height: 1.05; letter-spacing: -.03em; text-align: center; }
/* Conceptual page: the same square tiles, with a gap between them */
.mm--gap { grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px); background: none; margin-top: 18px; }
@media (max-width: 1200px) { .mm { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .mm { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .mm { grid-template-columns: repeat(2, 1fr); } .mm__cap { opacity: 1; transform: none; } .mm__t::after { opacity: .35; } }

/* ---------- Conceptual page ---------- */
.view--concepts, .view--studies, .view--products, .view--work { padding: 120px clamp(16px, 6vw, 96px) 160px; }
.cx__title { font-family: var(--amy); font-weight: 800; font-size: clamp(56px, 10vw, 170px); line-height: .85; letter-spacing: -.05em; }
.cx__lede { max-width: 52ch; margin-top: clamp(18px, 2.4vw, 30px); font-size: clamp(18px, 1.6vw, 23px); line-height: 1.4; font-weight: 500; color: var(--gray-3); }
.cx__filters { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(28px, 4vw, 48px) 0 clamp(40px, 5vw, 72px); }
.cx__chip { padding: 8px 14px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--gray-3); transition: all .25s; }
.cx__chip:hover { border-color: var(--ink); color: var(--ink); }
.cx__chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.cx__group { margin-bottom: clamp(56px, 7vw, 100px); }
.cx__gh { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; margin-bottom: 8px; font-family: var(--amy); font-weight: 800; font-size: clamp(26px, 3vw, 44px); letter-spacing: -.035em; }
.cx__gh .mono { font-family: var(--sans); color: var(--gray-3); font-weight: 500; letter-spacing: .06em; }
.cx__row { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr); gap: clamp(20px, 3vw, 48px); align-items: center; padding: clamp(18px, 2vw, 28px) 0; }
.cx__info { display: grid; gap: 6px; align-content: start; }
.cx__n { color: var(--gray-2); }
.cx__name { font-family: var(--amy); font-weight: 800; font-size: clamp(24px, 2.6vw, 40px); letter-spacing: -.035em; line-height: 1; transition: color .25s; }
.cx__sub { color: var(--gray-3); font-size: 14px; }
.cx__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--gray-3); }
.cx__go { font-weight: 600; font-size: 14px; margin-top: 6px; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease); }
.cx__row:hover .cx__go, .cx__row:focus-visible .cx__go { opacity: 1; transform: none; }
.cx__strip { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 6px; height: clamp(150px, 16vw, 240px); }
.cx__strip img { width: 100%; height: 100%; object-fit: cover; background: #f2f2f2; filter: grayscale(.55); transition: filter .5s var(--ease), transform .8s var(--ease); }
.cx__row:hover .cx__strip img { filter: none; }
.cx__row:hover .cx__lead { transform: scale(1.02); }
/* "One team… / Design. Consult. Build." sits after Projects (not in the hero). Wide screens keep the old design: the section
   holds still while you scroll and the three words appear one by one on the right, earlier ones turning gray (main.js) */
.hero__stage .hero__words { display: none; }
.hwpin { position: relative; height: 260vh; }
.hwpin__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* Conceptual page: each group uses the same list + preview layout as the Projects page */
.cx__work { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); align-items: center; gap: clamp(24px, 3vw, 48px); margin-top: 18px; }

/* Studio: text column + scrolling image column with sticky wordmark */
.view--studio {
  display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(32px, 6vw, 96px);
  padding: 110px var(--pad) 160px;
}
.studio__text { font-size: 14px; font-weight: 500; }
.studio__text > p + p { margin-top: 14px; }
.studio__lede { font-size: 15px; }
.studio__h { color: var(--gray); margin: 40px 0 10px; padding-top: 14px; font-weight: 400; }
.studio__where { color: var(--gray-3); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 4px 0; }
.rows li .mono { color: var(--gray-3); text-align: right; }
.rows--process b { font-weight: 400; color: var(--gray); margin-right: 10px; }
/* square photos in one column that rolls upward on its own (pauses on hover) */
.studio__images { position: sticky; top: 90px; align-self: start; height: calc(100vh - 130px); overflow: hidden; display: flex; justify-content: center; }
.studio__track { width: min(420px, 100%); will-change: transform; backface-visibility: hidden; } /* moved by main.js: auto roll + drag */
.studio__images { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.studio__images.is-dragging { cursor: grabbing; }
.studio__track img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #1a1a1a; }

/* Studio page in black, like Research */
.view--studio, body[data-view="studio"] .top {
  --bg: #0b0b0b; --ink: #f2f2f2; --gray: #8a8a8a; --gray-2: #444; --gray-3: #a9a9a9; --line: #262626;
  color: var(--ink);
}
body[data-view="studio"] { background: #0b0b0b; }
.view--studio { background: var(--bg); }
body[data-view="studio"] .top .menu__top.is-active { background: #f2f2f2; color: #0b0b0b; }
body[data-view="studio"] .top { background: linear-gradient(var(--bg) 60%, transparent); }
body[data-view="studio"] .hello, body[data-view="studio"] .clock, body[data-view="studio"] .credits { opacity: 0; visibility: hidden; }

/* Contact */
.view--contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-content: center;
  padding: 120px clamp(16px, 8vw, 120px) 160px;
}
.contact__title { font-size: clamp(34px, 4vw, 58px); font-weight: 600; letter-spacing: -.045em; line-height: 1; margin-bottom: 32px; max-width: 12ch; }
.contact__details li { padding: 10px 0; }
.contact__details li .mono { text-align: left; }
.contact__details a:hover { text-decoration: underline; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; align-content: start; }
.form label { display: grid; gap: 4px; font-size: 11px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--gray-3); }
.form input:not([type="radio"]), .form textarea {
  width: 100%; font: inherit; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--gray-2); padding: 6px 0; border-radius: 0; transition: border-color .25s;
}
.form textarea { resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--gray-2); }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form .is-invalid { border-color: #c0392b !important; }
.form__wide, .chips, .send, .form__status { grid-column: 1 / -1; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips legend { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-3); margin-bottom: 8px; padding: 0; }
.chips label { display: inline-block; cursor: pointer; text-transform: none; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 5px 12px; border: 1px solid var(--gray-2); font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink); letter-spacing: 0; transition: all .2s; }
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.chips.is-invalid span { border-color: #c0392b; }
.send { justify-self: start; font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; letter-spacing: -.04em; margin-top: 8px; }
.send:hover { text-decoration: underline; text-underline-offset: 6px; }
.form__status { min-height: 1.4em; color: var(--gray-3); }

/* ---------- Project panel ---------- */
.project { position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; animation: viewIn .5s var(--ease); }
.project:focus { outline: none; }
.project__giant {
  font-size: 19vw; font-weight: 700; letter-spacing: -.065em; line-height: .78; white-space: nowrap;
  text-transform: lowercase; padding: 3vw 0 0 2vw; margin-bottom: -5vw; pointer-events: none;
}
.project__panel {
  position: relative; z-index: 1; width: min(1360px, calc(100% - 2 * var(--pad))); margin: 0 auto 80px;
  background: var(--bg); padding: clamp(20px, 3vw, 44px); box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .06);
}
/* phones swipe the white card sideways between projects (main.js); the page itself only scrolls up and down */
@media (hover: none) { .project { touch-action: pan-y; } }
/* project pages: the logo + CLOSE bar sticks to the top of the screen, hides while scrolling down and slides back
   in on any scroll up (main.js toggles .is-away) */
.project__bar {
  display: flex; justify-content: space-between; align-items: center; margin: calc(-1 * clamp(20px, 3vw, 44px)) calc(-1 * clamp(20px, 3vw, 44px)) 18px;
  padding: clamp(14px, 1.6vw, 22px) clamp(20px, 3vw, 44px); position: sticky; top: 0; z-index: 6; background: var(--bg);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.project__bar.is-away { transform: translateY(-110%); opacity: 0; pointer-events: none; }
.project__close { font-size: 18px; font-weight: 700; letter-spacing: -.02em; text-transform: uppercase; }
.project__close:hover { text-decoration: underline; }
.project__title { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; margin-bottom: 28px; }
/* two columns: photos scroll on the left, the description stays put on the right */
.project__layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.project__media { min-width: 0; }
/* the description starts level with the first photo, then glides to the middle of the screen and stays there as you scroll
   (main.js sets --asTop from the scroll position) */
.project__aside {
  position: sticky; top: var(--asTop, 0px); max-height: calc(100vh - 48px); padding: 0 4px 0 0; overflow-y: auto; scrollbar-width: thin;
}
.project__intro { display: grid; gap: 22px; }
.project__aside .project__next { margin-top: 28px; font-size: clamp(20px, 1.8vw, 28px); }
/* previous / next project, side by side under the details */
.project__pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; padding-top: 16px; }
.project__aside .project__pager .project__next { margin: 0; padding: 0; border: 0; font-size: 14px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.project__pager #pNext { text-align: right; }
.project__aside .project__text { text-align: left; hyphens: manual; }
.footer--panel { margin-top: 0; }
.specs { margin: 0; align-self: start; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 12px; }
.specs dt { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--gray); }
.specs dd { margin: 0; text-align: right; }
.project__text { font-size: 15px; font-weight: 500; text-align: left; }
.project__text p + p { margin-top: 14px; }
/* gallery: one column of whole pictures (no cropping) on a light mat; click one to enlarge */
.project__gallery { display: flex; flex-direction: column; gap: 16px; }
.gal__item { margin: 0; display: flex; align-items: center; justify-content: center; }
.gal__item img { display: block; width: auto; max-width: 100%; height: auto; max-height: 82vh; cursor: zoom-in; }
/* construction photos: a compact grid of small squares, together about one picture's size */
.gal__grid { margin: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 4px; }
.gal__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; transition: opacity .25s; }
.gal__grid img:hover { opacity: .8; }
.gal__grid--fit img { object-fit: contain; padding: 4%; } /* diagrams: whole drawing inside each square, no gray behind */
.gal__grid figcaption { grid-column: 1 / -1; margin-top: 6px; color: var(--gray-3); }
.gal__h { color: var(--gray-3); font-weight: 500; padding-top: 12px; margin-top: 18px; }
.gal__h:first-child { margin-top: 0; }
/* enlarged photo: about 50% bigger than in the column, centered over a white veil */
.lightbox { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .96); cursor: zoom-out; animation: viewIn .3s var(--ease); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 94vw; max-height: 92vh; width: auto; height: auto; animation: lbIn .35s var(--ease); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 20px; cursor: pointer; transition: background .2s, color .2s; }
.lightbox__nav:hover { background: var(--ink); color: #fff; }
.lightbox__nav--prev { left: var(--pad); }
.lightbox__nav--next { right: var(--pad); }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--gray-3); }
.lightbox.is-single .lightbox__nav, .lightbox.is-single .lightbox__count { display: none; }
.lightbox__close { position: absolute; top: 20px; right: var(--pad); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-3); }
@keyframes lbIn { from { transform: scale(.67); opacity: 0; } to { transform: none; opacity: 1; } }
.project__next { display: block; margin-top: 48px; padding-top: 16px; font-size: clamp(22px, 2.6vw, 36px); font-weight: 600; letter-spacing: -.04em; }
.project__next .mono { display: block; color: var(--gray); margin-bottom: 4px; letter-spacing: .04em; }
.project__next:hover { text-decoration: underline; text-underline-offset: 6px; }

/* Irving extras */
.project__extra:empty { display: none; }
.project__extra { margin-bottom: 16px; }
.steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 6px; }
.steps .mono { color: var(--gray-3); font-size: 9.5px; letter-spacing: .03em; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps img, .studies img { cursor: zoom-in; }
.studies__h { font-weight: 400; color: var(--gray); margin: 8px 0 10px; padding-top: 12px; }
.studies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.studies img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Presentation drawings */
.plan { margin: 0 0 16px; padding: clamp(10px, 2vw, 24px); }
.plan img { width: 100%; height: auto; }
.plan figcaption { margin-top: 8px; color: var(--gray-3); }

/* Mood board: keywords + palette swatches */
/* the two columns may never grow past the photo column (minmax(0, …)): before, the big mood words pushed the colour
   swatches out over the project text on iPads */
.mood { margin-bottom: 16px; container-type: inline-size; }
.mood__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
/* when the photo column is narrow (iPad, small laptops) the words sit above the swatches, three swatches to a row */
@container (max-width: 640px) {
  .mood__grid { grid-template-columns: minmax(0, 1fr); }
  .mood__palette { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 14px 16px !important; }
}
.mood__words { list-style: none; margin: 0; padding: 0; font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; letter-spacing: -.04em; line-height: 1.12; }
.mood__words li:nth-child(even) { color: var(--gray); }
.mood__palette { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
/* each swatch: a colour circle (at most 64px) with its name underneath, in the normal flow so names never run over anything */
.mood__palette li { display: grid; gap: 6px; justify-items: center; min-width: 0; }
.mood__palette li::before { content: ""; width: 100%; max-width: 64px; aspect-ratio: 1; border-radius: 50%; background: var(--c); }
.mood__palette span { font-size: 9px; color: var(--gray-3); text-align: center; line-height: 1.3; overflow-wrap: anywhere; }
.mood__words { overflow-wrap: anywhere; }
.mood__materials { color: var(--gray-3); line-height: 1.6; }
.mood__boards { display: grid; gap: 14px; margin-top: 24px; }
.mood__boards a { display: block; }
.mood__boards img { width: 100%; height: auto; }
.mood__boards span { display: block; margin-top: 8px; color: var(--gray-3); }
.compare--after-studies { margin-top: 16px; }
.compare { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f2f2f2; user-select: none; -webkit-user-select: none; }
.compare__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.compare__handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; font-size: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__label { position: absolute; top: 14px; padding: 4px 8px; background: var(--ink); color: #fff; pointer-events: none; }
.compare__label--l { left: 14px; }
.compare__label--r { right: 14px; background: #fff; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .proc { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top .ff { grid-column: 1 / -1; }
  .footer__info { margin-left: 0; }
}
@media (max-width: 900px) {
  .view--studio, .view--contact { grid-template-columns: 1fr; }
  .cols3, .cards { grid-template-columns: 1fr 1fr; }
  /* phones: the photos run sideways in one row; a finger swipes them left/right, up/down still scrolls the page */
  .studio__images { position: relative; top: 0; height: auto; display: block; touch-action: pan-y; margin: 0 calc(-1 * var(--pad)); }
  .studio__track { display: flex; width: max-content; }
  .studio__track img { width: 64vw; flex: none; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .menu {
    position: fixed; inset: 0; z-index: -1; background: var(--bg);
    flex-direction: column; justify-content: center; gap: 2px; padding: var(--pad);
    font-size: 44px; letter-spacing: -.05em; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .menu.is-open { opacity: 1; visibility: visible; }
  .menu__item { align-self: flex-start; }
  .drop { display: none; }
  .credits { display: none; }
  .cx__work { grid-template-columns: 1fr; }
  .work__list li { margin-bottom: 10px; }
  .work__list .name { color: var(--ink); }
  .work__list .meta { opacity: 1; width: 100%; gap: 10px; flex-wrap: wrap; }
  .project__layout { grid-template-columns: 1fr; }
  .project__aside { position: static; height: auto; padding: 0; overflow: visible; order: -1; display: block; }
  .project__gallery { grid-template-columns: 1fr; }
  .project__shot.is-on { display: block; }

  .steps, .steps--4 { grid-template-columns: 1fr 1fr; }
  .studies { grid-template-columns: 1fr 1fr; }
  .mood__grid { grid-template-columns: 1fr; }
  .mood__palette { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .compare { aspect-ratio: 4 / 3; }
  .form { grid-template-columns: 1fr; }
  .tile { left: var(--mx, var(--x)); top: var(--my, var(--y)); width: var(--mw, var(--w)); }
  .tile.is-mobile-hidden { display: none; }
  /* phones: no pinned scroll animation; the words follow the hero as normal content */
  .hero { height: auto; }
  .hero__stage { position: relative; height: 100svh; }
  .hero__words { position: relative; right: auto; top: auto; transform: none; width: auto; padding: 48px var(--pad) 24px; pointer-events: auto; }
  .hwpin { height: auto; }
  .hwpin__stage { position: static; height: auto; overflow: visible; }
  .hw, .hero__lead { opacity: 1; transform: none; }
  .cols3, .cards, .proc, .arch, .rs__areas, .rs__intro, .rs__studies, .rs__feature, .rs__why, .rs__area { grid-template-columns: 1fr; }
  .view--research { padding: 100px var(--pad) 140px; }
  .view--concepts, .view--studies, .view--products, .view--work { padding: 100px var(--pad) 140px; }
  .cx__row { grid-template-columns: 1fr; }
  .cx__strip { height: 120px; grid-template-columns: 2fr 1fr 1fr; }
  .cx__strip img:nth-child(4) { display: none; }
  .cx__go { opacity: 1; transform: none; }
  .build { grid-template-columns: 1fr; }
  .build__media { display: none; }
  .bstage { min-height: 0; opacity: 1; padding: 36px 0; }
  .bstage__n { color: #fff; }
  .bstage__img { display: block; margin: 18px 0 0; }
  .bstage__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .area__studies { grid-template-columns: 1fr 1fr; }
  .area__b { grid-template-columns: 1fr; }
  .fab { grid-template-columns: 1fr 1fr; }
  .photo__strip { grid-template-columns: 1fr 1fr; }
  .photo__strip img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; height: auto; }
  .exp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exp__name { font-size: 15px; }
  .locmap__pin text { font-size: 26px; } .locmap__ref { font-size: 20px; }
  .footer__top, .ff, .footer__info { grid-template-columns: 1fr; }
  .manifesto__body { margin-left: 0; }
  .footer__giant { font-size: 13vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Instagram / LinkedIn links: small line icon before the label */
.social { display: inline-flex !important; align-items: center; gap: 8px; }
.social-ic { width: 1.05em; height: 1.05em; flex: none; }
.footer__info .social, .drop__list .social { display: flex !important; width: fit-content; }

/* Smocking page (laid out like the digital-fabrication page): pattern rows, 2 x 2 pattern blocks, material mosaics */
.smk section { margin-bottom: clamp(32px, 4vw, 56px); }
.smk__lead { margin: 0 0 clamp(32px, 4vw, 56px); }
.smk__lead img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.smk__row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.smk__row img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; }
.smk__pats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; }
.smk__pat { min-width: 0; }
.smk__thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
.smk__thumbs button { flex: none; width: 54px; padding: 0; border: 0; background: none; opacity: .55; cursor: pointer; transition: opacity .2s; }
.smk__thumbs button.is-on, .smk__thumbs button:hover { opacity: 1; }
.smk__thumbs img { width: 54px; height: 54px; object-fit: cover; display: block; }
.smk__main { margin: 0; }
.smk__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; cursor: zoom-in; }
.smk__mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.smk__mosaic img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; }
.smk__mosaic img:first-child { grid-column: span 2; grid-row: span 2; }
.smk__jewelry { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
@media (max-width: 760px) { .smk__pats { grid-template-columns: 1fr; } .smk__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .smk__mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Conceptual page: tabs + 3-column grid of photo cards */
.cx__tabs { display: flex; flex-wrap: wrap; gap: 6px clamp(20px, 3vw, 44px); margin: clamp(8px, 2vw, 20px) 0 clamp(24px, 3vw, 40px); }
.cx__tab { padding: 0; background: none; border: 0; cursor: pointer; font-family: var(--amy); font-weight: 700; font-size: clamp(26px, 3vw, 44px); letter-spacing: -.035em; line-height: 1; color: var(--gray-2); transition: color .25s; }
.cx__tab:hover { color: var(--gray-3); }
.cx__tab.is-on { color: var(--ink); }
.cx__tab sup { font-family: var(--sans); font-size: 11px; font-weight: 500; margin-left: 4px; vertical-align: super; color: var(--gray); }
.cx__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.6vw, 24px); }
.cx__cards[hidden] { display: none; }
.cx__card { display: flex; flex-direction: column; gap: 6px; }
.cx__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #f2f2f2; margin-bottom: 8px; }
.cx__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease), transform 1.2s var(--ease); }
.cx__card:hover .cx__img img, .cx__card:focus-visible .cx__img img { filter: none; transform: scale(1.03); }
.cx__cname { font-family: var(--amy); font-weight: 700; font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.025em; line-height: 1.1; }
.cx__ctype { color: var(--gray); }
@media (max-width: 900px) { .cx__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cx__cards { grid-template-columns: 1fr; } }

/* Conceptual: square grid like home */
.cx__sq { margin: clamp(28px, 4vw, 56px) 0 clamp(60px, 8vw, 120px); }
.mm.cx__sq { grid-template-columns: repeat(4, 1fr); background: none; }
#cxGroups .mm.cx__sq { grid-template-columns: repeat(5, 1fr); } /* Research: intro + 4 studies on one row */
@media (max-width: 900px) { .mm.cx__sq { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .mm.cx__sq { grid-template-columns: repeat(2, 1fr); } }
/* phones show the caption on every tile; where a tile already has a name label, keep just the label */
@media (max-width: 600px) { .mm__t:has(.mm__label) .mm__cap { display: none; } .mm__t:has(.mm__label)::after { opacity: 0; } }
.cx__sq-intro .mm__s-name { font-size: clamp(24px, 2.4vw, 38px); font-weight: 800; letter-spacing: -.04em; }

/* Conceptual: big featured rows */
.cx__feat { margin: clamp(40px, 6vw, 90px) 0 clamp(60px, 8vw, 120px); }
.cx__fgh { font-family: var(--amy); font-weight: 800; font-size: clamp(40px, 6vw, 96px); letter-spacing: -.045em; line-height: .9; margin-bottom: clamp(28px, 4vw, 60px); }
.cx__fgh sup { font-family: var(--sans); font-size: 12px; font-weight: 500; margin-left: 6px; vertical-align: super; letter-spacing: .06em; color: var(--gray); }
.cx__frow { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 72px); margin-bottom: clamp(48px, 6vw, 96px); }
.cx__frow.is-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
.cx__frow.is-flip .cx__fimg { order: 2; }
.cx__fimg { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f2f2f2; }
.cx__fimg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s var(--ease), transform 1.2s var(--ease); }
.cx__frow:hover .cx__fimg img, .cx__frow:focus-visible .cx__fimg img { filter: none; transform: scale(1.025); }
.cx__ftext { display: grid; gap: 12px; align-content: center; max-width: 44ch; }
.cx__ftype { color: var(--gray); }
.cx__fname { font-family: var(--amy); font-weight: 800; font-size: clamp(28px, 3.2vw, 52px); letter-spacing: -.04em; line-height: .95; }
.cx__fdesc { color: var(--gray-3); font-size: clamp(15px, 1.15vw, 17px); line-height: 1.5; }
.cx__fgo { font-weight: 600; font-size: 14px; margin-top: 4px; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease); }
.cx__frow:hover .cx__fgo, .cx__frow:focus-visible .cx__fgo { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .cx__frow, .cx__frow.is-flip { grid-template-columns: 1fr; gap: 16px; }
  .cx__frow.is-flip .cx__fimg { order: 0; }
  .cx__fgo { opacity: 1; transform: none; }
}
