/* arch.infiniteart.in - light theme only (owner's rule for every Infinite Art site).
   One accent (rust), cool plaster neutrals, square corners everywhere. */

@font-face { font-family: "Archivo"; src: url(/assets/fonts/archivo-var.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/assets/fonts/archivo-italic-var.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: optional; }
@font-face { font-family: "Geist Mono"; src: url(/assets/fonts/geist-mono-var.woff2) format("woff2"); font-weight: 100 900; font-display: optional; }
/* Fallback sized like Archivo so the swap doesn't move lines */
@font-face { font-family: "Archivo Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 90%; descent-override: 22%; }

:root {
  --paper: #f1f2ef;
  --paper-2: #e6e8e4;
  --card: #f8f8f6;
  --ink: #16181b;
  --ink-2: #4b5157;
  --ink-3: #5f656b;
  --line: rgba(22, 24, 27, .14);
  --line-2: rgba(22, 24, 27, .26);
  --accent: #b2411d;
  --accent-2: #953517;
  --on-accent: #fbfaf8;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: "Archivo", "Archivo Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.62; font-weight: 400; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class], nav ul, .footer-col ul, .index-group ul { list-style: none; padding: 0; margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* Type */
.display {
  font-size: clamp(2.2rem, 1.1rem + 3.1vw, 4.2rem); font-stretch: 116%; font-weight: 320;
  line-height: 1.04; letter-spacing: -.028em; text-wrap: balance;
}
.display em, .h2 em, .h1 em { font-style: italic; font-weight: 280; }
.h1 { font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.9rem); font-stretch: 114%; font-weight: 330; line-height: 1.06; letter-spacing: -.026em; text-wrap: balance; }
.h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 3.05rem); font-stretch: 112%; font-weight: 340; line-height: 1.08; letter-spacing: -.022em; text-wrap: balance; }
.h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; letter-spacing: -.008em; }
.lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.body { color: var(--ink-2); max-width: 62ch; }
.body p + p { margin-top: 1em; }
.meta { font-family: var(--mono); font-size: .78rem; letter-spacing: .01em; color: var(--ink-3); line-height: 1.5; }
.kicker { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .2em; text-decoration-thickness: 1px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--accent); }

/* Buttons: square, one accent */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; white-space: nowrap;
  min-height: 48px; padding: 0 1.35em; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font-size: .97rem; font-weight: 560; letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--solid:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.btn--sm { min-height: 40px; padding: 0 1.05em; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.arrow-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 560; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .2s, gap .3s var(--ease); }
.arrow-link svg { width: 1.1em; height: 1.1em; }
.arrow-link:hover { border-color: var(--accent); gap: .8em; }
.ext-icon { display: inline-block; width: .9em; height: .9em; vertical-align: -.08em; opacity: .6; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header); background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 30px; height: 30px; }
.brand-name { display: block; font-stretch: 118%; font-weight: 600; font-size: 1rem; letter-spacing: -.01em; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--mono); font-size: .68rem; color: var(--ink-3); line-height: 1.3; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 11px; font-size: .92rem; text-decoration: none; color: var(--ink-2); transition: color .2s; position: relative; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 1px; background: var(--accent); }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; font-size: .95rem; font-weight: 560; }
.menu-btn .bars { position: relative; width: 22px; height: 10px; }
.menu-btn .bars span { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn .bars span:first-child { top: 0; }
.menu-btn .bars span:last-child { top: 8px; }
.menu-btn[aria-expanded="true"] .bars span:first-child { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars span:last-child { top: 4px; transform: rotate(-45deg); }
.menu-sheet { position: fixed; inset: var(--header) 0 0; z-index: 39; background: var(--paper); padding: 20px var(--gutter) 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 28px; }
.menu-sheet[hidden] { display: none; }
.menu-links a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.55rem; font-stretch: 112%; font-weight: 360; letter-spacing: -.015em; }
.menu-links a .meta { font-size: .72rem; }
.menu-links a[aria-current="page"] { color: var(--accent); }
.menu-contact { display: grid; gap: 10px; }
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 760px) { .header-cta { display: none; } }

/* Sections */
.section { padding-block: clamp(72px, 9vw, 140px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--wash { background: var(--paper-2); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 52rem; }

/* Media frames */
.media { position: relative; overflow: hidden; background: var(--ph, var(--paper-2)); }
.media picture, .media img { width: 100%; height: 100%; }
.media img { object-fit: cover; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-1 { aspect-ratio: 1; }
.cap { margin-top: 10px; font-family: var(--mono); font-size: .76rem; color: var(--ink-3); }

/* Home hero: the light room */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: #e9eae7; isolation: isolate; }
.hero-stage { position: absolute; inset: 0; z-index: -2; }
.hero-stage picture, .hero-stage img, .hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stage img { object-fit: cover; }
.hero-stage canvas { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-stage.is-live canvas { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, rgba(241, 242, 239, .94) 0%, rgba(241, 242, 239, .78) 26%, rgba(241, 242, 239, 0) 52%),
    linear-gradient(90deg, rgba(241, 242, 239, .55) 0%, rgba(241, 242, 239, 0) 45%); }
.hero-copy { position: relative; padding-top: calc(var(--header) + 48px); padding-bottom: clamp(40px, 7vh, 88px); max-width: 64rem; }
.hero-copy .lede { max-width: 40ch; }
.hero-copy .display { margin-top: 18px; }
.hero-copy .lede { margin-top: 22px; color: var(--ink-2); }
.hero-copy .actions { margin-top: 32px; }
.hero-note { position: absolute; right: var(--gutter); bottom: 22px; max-width: 30ch; text-align: right; font-family: var(--mono); font-size: .72rem; color: var(--ink-2); }
.hero-note a { color: inherit; }
@media (max-width: 760px) {
  /* Phones: the room is a square window above the words, so nothing overlaps */
  .hero { display: block; min-height: 0; padding-top: var(--header); background: var(--paper); }
  .hero::before { display: none; }
  .hero-stage { position: relative; inset: auto; z-index: 0; aspect-ratio: 6 / 5; }
  .hero-copy { padding-top: 26px; padding-bottom: 44px; }
  .hero-copy .display { margin-top: 12px; }
  .hero-note { display: none; }
}

/* Inner page hero */
.page-hero { padding-top: calc(var(--header) + clamp(28px, 4vw, 56px)); padding-bottom: clamp(36px, 5vw, 64px); }
.page-hero .h1 { margin-top: 22px; max-width: 46rem; }
.page-hero .lede { margin-top: 20px; }
.page-hero .actions { margin-top: 28px; }
.page-hero-grid { display: grid; gap: clamp(28px, 4vw, 64px); align-items: end; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--mono); font-size: .74rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.wide-media { margin-top: clamp(8px, 2vw, 24px); }

/* Projects: horizontal pan (desktop) / swipe row (touch, reduced motion) */
.pan { position: relative; }
.pan-sticky { position: relative; }
.pan-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.pan-track { display: flex; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding-inline: var(--gutter); padding-bottom: 12px; scrollbar-width: thin; }
@media (hover: none) { .pan-track { scrollbar-width: none; } .pan-track::-webkit-scrollbar { display: none; } }
.pan-track > * { scroll-snap-align: start; }
.plate { flex: none; width: min(78vw, 860px); text-decoration: none; display: block; }
.plate--p { width: min(52vw, 400px); }
.plate .media { aspect-ratio: 3 / 2; }
.plate--p .media { aspect-ratio: 4 / 5; }
.plate .media img { transition: transform 1.2s var(--ease); }
.plate:hover .media img { transform: scale(1.035); }
.plate-cap { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; margin-top: 14px; }
.plate-cap .h3 { font-stretch: 108%; }
@media (max-width: 700px) { .plate-cap { flex-direction: column; gap: 4px; } .plate-cap .h3 { font-size: 1.08rem; } }
.plate-end { flex: none; width: min(70vw, 340px); display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: 28px; border: 1px solid var(--line-2); text-decoration: none; transition: background-color .3s; }
.plate-end:hover { background: var(--card); }
.plate-end .h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); }
.pan.is-pinned .pan-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: var(--header); }
.pan.is-pinned .pan-head { margin-bottom: 28px; }
.pan.is-pinned .pan-track { overflow: visible; scroll-snap-type: none; will-change: transform; padding-bottom: 0; }
.pan.is-pinned .plate { width: calc(min(56vh, 600px) * 1.5); }
.pan.is-pinned .plate--p { width: calc(min(56vh, 600px) * .8); }
.pan.is-pinned .plate-end { width: 300px; height: min(56vh, 600px); align-self: flex-start; }

/* Spaces bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.tile { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); transition: border-color .3s; }
.tile:hover { border-color: var(--line-2); }
.tile .media { flex: 1 1 auto; min-height: 220px; }
.tile .media img { transition: transform 1.2s var(--ease); }
.tile:hover .media img { transform: scale(1.04); }
.tile-body { padding: 18px 20px 20px; display: grid; gap: 6px; }
.tile-body .h3 { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tile-body .h3 svg { width: 1.1em; height: 1.1em; color: var(--accent); transition: transform .3s var(--ease); }
.tile:hover .tile-body .h3 svg { transform: translateX(4px); }
.tile-body > span:last-child { color: var(--ink-2); font-size: .96rem; }
.t-a { grid-column: span 7; grid-row: span 2; }
.t-a .media { min-height: 420px; }
.t-b, .t-c { grid-column: span 5; }
.t-d, .t-e, .t-f { grid-column: span 4; }
.t-f { background: var(--paper-2); }
.t-f .media { position: relative; }
.t-f .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .t-a, .t-b, .t-c, .t-d, .t-e, .t-f { grid-column: span 12; grid-row: auto; }
  .t-a .media, .tile .media { min-height: 0; aspect-ratio: 3 / 2; flex: none; }
}

/* Studio: words + portrait */
.studio { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.studio blockquote p { font-size: clamp(1.55rem, 1.05rem + 1.7vw, 2.55rem); font-stretch: 108%; font-weight: 320; line-height: 1.25; letter-spacing: -.018em; text-wrap: pretty; }
.studio cite { display: block; margin-top: 22px; font-style: normal; }
.studio-side { display: grid; gap: 20px; }
.studio-side .media { width: min(100%, 360px); aspect-ratio: 1; }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; } }

/* Films */
.film-feature { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.film-list { display: grid; gap: 4px; }
.film-row { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 10px; margin: 0 -10px; border: 0; background: none; text-align: left; cursor: pointer; transition: background-color .2s; }
.film-row:hover, .film-row[aria-current="true"] { background: var(--paper-2); }
.film-row img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
.film-row strong { display: block; font-weight: 560; line-height: 1.3; font-size: .98rem; }
@media (max-width: 900px) { .film-feature { grid-template-columns: 1fr; } }
.film-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; overflow: hidden; background: var(--ph, #d9d9d4); cursor: pointer; }
.film-frame img, .film-frame picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.film-frame:hover img { transform: scale(1.03); }
.film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; background: rgba(248, 248, 246, .94); color: var(--ink); font-size: .9rem; font-weight: 560; }
.play i { width: 0; height: 0; border-left: 11px solid var(--accent); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.film-meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.film-grid--one { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 760px) { .film-grid--one { grid-template-columns: 1fr; } }
.film-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.film .h3 { margin-top: 14px; font-size: 1.05rem; }

/* Voices */
.voices { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.voice-lead p { font-size: clamp(1.45rem, 1.05rem + 1.4vw, 2.2rem); font-stretch: 106%; font-weight: 330; line-height: 1.28; letter-spacing: -.015em; }
.voice-lead figcaption { margin-top: 22px; }
.voice-list { display: grid; gap: 26px; }
.voice-list figure { padding-top: 22px; border-top: 1px solid var(--line-2); }
.voice-list p { font-size: 1.06rem; line-height: 1.5; }
.voice-list figcaption { margin-top: 10px; }
.who { font-weight: 560; }
.score { display: flex; gap: 18px; align-items: center; margin-top: 34px; }
.score b { font-size: 2.6rem; font-stretch: 112%; font-weight: 340; line-height: 1; }
.stars { color: var(--accent); letter-spacing: .12em; }
@media (max-width: 900px) { .voices { grid-template-columns: 1fr; } }

/* Project index with hover preview */
.index-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); }
.index-group h3 { padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.index-group ul { margin-top: 4px; }
.index-group a { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--line); transition: color .2s, padding .35s var(--ease); }
.index-group a:hover { color: var(--accent); padding-left: 8px; }
.index-group a span:first-child { font-size: 1.08rem; font-weight: 500; }
.index-preview { position: fixed; z-index: 30; left: 0; top: 0; width: 280px; aspect-ratio: 3 / 2; pointer-events: none; opacity: 0; transform: translate3d(-999px, -999px, 0); transition: opacity .25s; background: var(--paper-2); box-shadow: 0 18px 40px rgba(22, 24, 27, .16); }
.index-preview img { width: 100%; height: 100%; object-fit: cover; }
.index-preview.is-on { opacity: 1; }
@media (max-width: 800px) { .index-groups { grid-template-columns: 1fr; } }
@media (hover: none) { .index-preview { display: none; } }

/* Visit / contact band */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 72px); align-items: stretch; }
.visit-copy { display: flex; flex-direction: column; gap: 26px; }
.channels { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.channels a, .channels div { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.channels svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.channels a:hover strong { color: var(--accent); }
.channels strong { display: block; font-weight: 560; }
.map { position: relative; min-height: 420px; background: var(--paper-2); border: 1px solid var(--line); }
.map-btn { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; justify-items: center; width: 100%; border: 0; cursor: pointer; text-align: center; padding: 24px;
  background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(22,24,27,.06) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(22,24,27,.06) 39px 40px), var(--paper-2); }
.map-btn svg { width: 34px; height: 34px; color: var(--accent); }
.map-btn:hover .btn { background: var(--ink); color: var(--paper); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.02); }
@media (max-width: 900px) { .visit { grid-template-columns: 1fr; } .map { min-height: 340px; } }

/* Project cards (projects page, related) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2); background: transparent; font-size: .92rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; text-decoration: none; display: inline-flex; align-items: center; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(24px, 2.6vw, 40px) clamp(16px, 2vw, 28px); }
.card { display: block; text-decoration: none; }
.card .media { aspect-ratio: 3 / 2; }
.card .media img { transition: transform 1.2s var(--ease); }
.card:hover .media img { transform: scale(1.04); }
.card-body { margin-top: 14px; display: grid; gap: 4px; }
.card-body .h3 { font-stretch: 106%; }
.card:hover .h3 { color: var(--accent); }
.card[hidden] { display: none; }

/* Service page: groups of projects */
.group + .group { margin-top: clamp(64px, 8vw, 120px); }
.group-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 64px); margin-bottom: 32px; align-items: end; }
@media (max-width: 860px) { .group-head { grid-template-columns: 1fr; } }

/* Lists: what to send us */
.checks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 860px) { .checks--3 { grid-template-columns: 1fr !important; } }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); counter-reset: c; }
.checks li { counter-increment: c; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line-2); }
.checks li::before { content: counter(c, decimal-leading-zero); font-family: var(--mono); font-size: .8rem; color: var(--accent); padding-top: 4px; }
.checks strong { display: block; font-weight: 600; margin-bottom: 4px; }
.checks p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; } }

/* FAQ */
.faq { border-top: 1px solid var(--ink); max-width: 60rem; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 1.12rem; font-weight: 520; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; color: var(--ink-2); max-width: 62ch; }

/* Project page */
.proj-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: end; }
.proj-head .h1 { max-width: 40rem; }
.proj-sub { font-size: 1.15rem; color: var(--ink-2); margin-top: 10px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); }
.facts dd { margin-top: 4px; font-weight: 520; }
@media (max-width: 860px) { .proj-head { grid-template-columns: 1fr; } }
.proj-cover { margin-top: clamp(28px, 4vw, 56px); }
.proj-cover .media { aspect-ratio: 3 / 2; max-height: 88vh; width: 100%; }
.proj-summary { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(20px, 4vw, 64px); }
@media (max-width: 860px) { .proj-summary { grid-template-columns: 1fr; } }
.plates { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.plates figure { grid-column: span 12; }
.plates .is-l { grid-column: span 12; }
.plates .is-l.half { grid-column: span 6; }
.plates .is-l.half .media { aspect-ratio: 3 / 2; }
.plates .is-p { grid-column: span 4; }
.plates .is-p.wide { grid-column: span 6; }
@media (max-width: 760px) { .plates .is-l.half, .plates .is-p, .plates .is-p.wide { grid-column: span 12; } }
.plate-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.pager a { display: grid; gap: 6px; padding: 26px 0; text-decoration: none; }
.pager a:last-child { text-align: right; border-left: 1px solid var(--line); padding-left: 20px; }
.pager a:hover .h3 { color: var(--accent); }

/* Reviews page */
.reviews { columns: 2 380px; column-gap: clamp(24px, 3vw, 48px); }
.review { break-inside: avoid; margin-bottom: clamp(24px, 3vw, 40px); padding-top: 22px; border-top: 1px solid var(--line-2); }
.review p { white-space: pre-line; color: var(--ink); }
.review footer { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }

/* Form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .92rem; font-weight: 560; }
.field .hint { font-size: .84rem; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); background: var(--card); border-radius: 0; font-size: 1rem; color: var(--ink); appearance: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(178, 65, 29, .22); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.field .err { font-size: .86rem; color: var(--accent-2); min-height: 0; }
.field .err:empty { display: none; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.opts legend { margin-bottom: 8px; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opts span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--line-2); font-size: .94rem; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.opts input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.form-status { font-size: .95rem; }
.form-status.is-ok { color: #2f6b3a; }
.form-status.is-err { color: var(--accent-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 680px) { .form { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.cta-band .media { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--paper-2); padding-top: clamp(56px, 7vw, 96px); padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
.footer-brand img { width: 84px; height: auto; margin-bottom: 20px; }
.footer-brand address { font-style: normal; color: var(--ink-2); font-size: .96rem; line-height: 1.7; }
.footer-col h2 { font-family: var(--mono); font-size: .74rem; font-weight: 400; color: var(--ink-3); margin-bottom: 14px; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { text-decoration: none; font-size: .96rem; }
.footer-col a:hover { color: var(--accent); }
.footer-base { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--ink-3); font-size: .86rem; }
.footer-base a { color: inherit; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile quick-contact bar */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: none; grid-template-columns: 1fr 1fr 1.2fr; background: var(--paper); border-top: 1px solid var(--line-2); padding-bottom: env(safe-area-inset-bottom); transform: translateY(110%); transition: transform .4s var(--ease); }
.action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; text-decoration: none; font-weight: 560; font-size: .95rem; }
.action-bar a + a { border-left: 1px solid var(--line); }
.action-bar a.is-accent { background: var(--accent); color: var(--on-accent); }
.action-bar svg { width: 20px; height: 20px; }
.action-bar.is-on { transform: none; }
@media (max-width: 760px) { .action-bar { display: grid; } body { padding-bottom: 56px; } }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(241, 242, 239, .985); color: var(--ink); }
.lightbox::backdrop { background: rgba(22, 24, 27, .3); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-bar, .lb-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter); }
.lb-stage { position: relative; min-height: 0; overflow: hidden; }
.lb-stage img { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 2 * var(--gutter)); max-height: 100%; width: auto; height: auto; object-fit: contain; }
.sq-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; transition: border-color .2s; }
.sq-btn:hover { border-color: var(--ink); }
.sq-btn svg { width: 20px; height: 20px; }
.lb-nav { display: flex; gap: 8px; }

/* 404 */
.notfound { min-height: 70vh; display: grid; align-content: center; gap: 22px; padding-top: calc(var(--header) + 40px); }

/* Reveal on scroll (motion only when the visitor allows it) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .media[data-reveal="wipe"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease); }
  .js .media[data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0); }
  .hero-copy > * { animation: rise 1.1s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { transform: translate3d(0, 22px, 0); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Audit fixes: visible field borders and focus, focus never hidden under the phone bar */
.field input, .field select, .field textarea, .opts span, .chip { border-color: #8a9096; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 2px var(--accent); }
@media (max-width: 760px) { html { scroll-padding-bottom: 72px; } }
.crumbs a { display: inline-block; padding-block: 4px; }
.card-body { display: grid; }
.hero-note { opacity: 0; transition: opacity .6s; }
.hero-stage.is-live ~ .hero-note, .hero:has(.is-live) .hero-note { opacity: 1; }

@media (max-width: 760px) {
  .footer-col a { display: inline-block; padding-block: 8px; }
  /* Phones: title, then the cover photo, then the facts */
  .proj-wrap { display: flex; flex-direction: column; }
  .proj-head { display: contents; }
  .proj-title { margin-top: 22px; }
  .proj-cover { order: 2; margin-top: 24px; }
  .facts { order: 3; margin-top: 28px; }
}
.cta-band--text { grid-template-columns: 1fr; }
.more-link { margin-top: 28px; }

/* Round-edged buttons everywhere (owner's rule) */
.btn, .chip, .sq-btn, .play, .opts span, .menu-btn, .map-btn .btn { border-radius: 999px; }
.film-row { border-radius: 14px; }
