/* ==========================================================================
   RAHUL PRABAKARAN · SITE STYLES
   --------------------------------------------------------------------------
   FONTS: change them here, in one place.
   1. Pick fonts on https://fonts.google.com
   2. Put their names in the Google Fonts <link> near the top of index.html
   3. Change the three names below to match
   Ideas for headings: "Cormorant Garamond", "Playfair Display", "DM Serif Display",
   "Libre Caslon Display", "Instrument Serif". For body text: "Inter", "Work Sans",
   "DM Sans", "Manrope". For camera settings: "IBM Plex Mono", "JetBrains Mono".
   ========================================================================== */
:root {
  --f-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;   /* headings and big titles */
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;       /* paragraphs and forms */
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;   /* labels and camera settings */
}

/* COLOURS: the light theme is the first :root block below; the dark
   "darkroom" theme is the two blocks after it. Change the hex values to recolour. */
/* Layout concept: a printed photo book. Wide paper margins, images set like plates,
   captions set like film edge print. Photographs carry all the colour. */
:root {
  --paper: #F4F1EA; --ink: #1C1C1C; --olive: #7A7B5C; --teal: #5E7F7A; --amber: #C8893E;
  --bg: var(--paper); --fg: var(--ink); --muted: #5F5B53; --faint: #8A857A;
  --surface: #ECE7DC; --surface-2: #E3DDCF; --line: rgba(28,28,28,.14); --line-strong: rgba(28,28,28,.42);
  --accent: var(--amber); --accent-ink: #1C1C1C; --link: #4E6D68; --olive-ink: #62633F;
  --sheet: #171512; --sheet-fg: #E7DFCF; --sheet-dim: #8C8474; --edge: #D59A4E;
  --on-image: #F7F3EA; --scrim: rgba(18,16,13,.32); --lb-bg: #0F0E0C;
  --wall: #E5DED0; --floor: #CFC5B3; --furniture: #8B6F4E; --safelight: #B4452F;
  --ok: #4E6D68; --err: #A4432C;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  --t-hero: clamp(2.5rem, 6.4vw, 5.6rem); --t-xl: clamp(2rem, 4.2vw, 3.5rem); --t-l: clamp(1.5rem, 2.4vw, 2.1rem);
  --t-m: 1.25rem; --t-body: 1rem; --t-s: .875rem; --t-mono: .72rem;
  --ease: cubic-bezier(.22,.61,.36,1); --gutter: clamp(16px, 4vw, 56px); --max: 1360px; --hdr: 72px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #14120F; --fg: #E9E2D3; --muted: #A89F8F; --faint: #7C7466; --surface: #1C1915; --surface-2: #24201A;
  --line: rgba(233,226,211,.13); --line-strong: rgba(233,226,211,.4); --accent: #D69B52; --accent-ink: #14120F;
  --link: #93B5AE; --olive-ink: #B3B48D; --wall: #2A2620; --floor: #1F1C18; --furniture: #5E4A34; --ok: #93B5AE; --err: #E08A6E;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .8 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #14120F; --fg: #E9E2D3; --muted: #A89F8F; --faint: #7C7466; --surface: #1C1915; --surface-2: #24201A;
  --line: rgba(233,226,211,.13); --line-strong: rgba(233,226,211,.4); --accent: #D69B52; --accent-ink: #14120F;
  --link: #93B5AE; --olive-ink: #B3B48D; --wall: #2A2620; --floor: #1F1C18; --furniture: #5E4A34; --ok: #93B5AE; --err: #E08A6E;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .8 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg) var(--grain) repeat; color: var(--fg); font: 400 var(--t-body)/1.65 var(--f-body); overflow-x: hidden; transition: background-color .6s var(--ease), color .6s var(--ease); }
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 300; line-height: 1.08; margin: 0; letter-spacing: -.01em; text-wrap: balance; font-variation-settings: "opsz" 120; }
h1 { font-size: var(--t-xl); } h2 { font-size: var(--t-l); } h3 { font-size: var(--t-m); font-weight: 400; line-height: 1.25; }
p { margin: 0; }
.mono, .eyebrow, .edge { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; font-weight: 400; line-height: 1.5; font-variant-numeric: tabular-nums; }
.eyebrow { color: var(--muted); }
.edge { color: var(--muted); letter-spacing: .12em; }
.lede { font-family: var(--f-display); font-weight: 300; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.4; max-width: 38ch; text-wrap: pretty; }
.prose { max-width: 64ch; display: grid; gap: 1.1em; color: var(--fg); }
.prose p { text-wrap: pretty; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bg); padding: .6rem 1rem; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 9vw, 128px); }
.section.tight { padding-block: clamp(40px, 6vw, 80px); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.surface { background: var(--surface) var(--grain) repeat; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sec-head > div { display: grid; gap: 10px; }
.page-head { padding-top: calc(var(--hdr) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(32px, 5vw, 64px); display: grid; gap: 18px; }
.page-head .lede { color: var(--muted); }
.stack { display: grid; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tlink { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .4s var(--ease), color .4s var(--ease); }
button.tlink { background: none; border: 0; border-bottom: 1px solid var(--line-strong); padding: 0 0 2px; color: inherit; cursor: pointer; }
.tlink:hover { color: var(--accent); border-color: var(--accent); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; padding: .95em 1.5em; border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 0; transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease); white-space: nowrap; }
.btn:hover, .btn:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent { border-color: var(--accent); }
.btn.sm { padding: .7em 1.1em; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .12em; text-transform: uppercase; padding: .55em 1em; border: 1px solid var(--line-strong); background: transparent; border-radius: 0; transition: all .4s var(--ease); }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"], .chip.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px 40px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field > label, .field > .label, fieldset legend { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; padding: .55rem 0 .6rem; border-radius: 0; font-size: 1rem; transition: border-color .4s var(--ease); }
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 24px; }
.field select option { background: var(--bg); color: var(--fg); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--accent); }
.field .hint { font-size: var(--t-s); color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset legend { margin-bottom: 12px; padding: 0; }
.form-error { color: var(--err); font-size: var(--t-s); min-height: 1.2em; }
.form-ok { color: var(--ok); font-size: var(--t-s); }
.check { display: flex; gap: 10px; align-items: center; font-size: var(--t-s); }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line-strong); transition: all .4s var(--ease); height: 100%; }
.opt span b { font-weight: 500; font-size: var(--t-s); }
.opt span small { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.opt input:checked + span { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.opt input:checked + span small { color: inherit; opacity: .75; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; padding-top: env(safe-area-inset-top, 0px); transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease); border-bottom: 1px solid transparent; }
.site-header .bar { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.solid { background: var(--bg) var(--grain) repeat; border-bottom-color: var(--line); color: var(--fg); }
.site-header.over { color: var(--on-image); background: transparent; }
.brand { display: grid; text-decoration: none; line-height: 1.1; }
.brand b { font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; letter-spacing: -.01em; }
.brand span { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.nav a.nl { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .4s var(--ease); }
.nav a.nl:hover, .nav a.nl[aria-current="page"] { border-bottom-color: currentColor; }
.hdr-tools { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid transparent; background: transparent; position: relative; text-decoration: none; transition: border-color .4s var(--ease); }
.icon-btn:hover { border-color: currentColor; }
.icon-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 500 .62rem/17px var(--f-mono); text-align: center; }
.menu-btn { display: none; }
.theme-label { font-family: var(--f-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; }
/* ☰ menu only on phones: narrow screens, or touch screens that are phone-sized (incl. a phone held sideways).
   iPads (744px and wider, taller than 500px) and resized laptop windows keep the full top menu. */
@media (max-width: 640px), (pointer: coarse) and (max-width: 743px), (pointer: coarse) and (max-height: 500px) { .nav .nl, .nav .btn { display: none; } .menu-btn { display: inline-grid; } }

.overlay-menu { position: fixed; inset: 0; z-index: 80; background: var(--bg) var(--grain) repeat; color: var(--fg); display: grid; grid-template-rows: auto 1fr auto; padding: env(safe-area-inset-top, 0px) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px)); animation: fadeIn .5s var(--ease); }
.overlay-menu .bar { height: var(--hdr); display: flex; align-items: center; justify-content: space-between; }
.overlay-menu nav { display: grid; align-content: center; gap: 4px; }
.overlay-menu nav a { font-family: var(--f-display); font-weight: 300; font-size: clamp(2rem, 9vw, 3.4rem); text-decoration: none; line-height: 1.15; display: flex; gap: 16px; align-items: baseline; }
.overlay-menu nav a small { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em; color: var(--muted); }

main { display: block; min-height: 60vh; }
main:focus { outline: none; }
body:not(.hero-page) main { padding-top: 0; }
.view-in { animation: viewIn .6s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Pictures & developing ---------- */
.pic { position: relative; overflow: hidden; background: var(--surface-2); max-width: 100%; margin: 0; }
.pic img { width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: saturate(.2) brightness(1.3) contrast(.75) sepia(.12); transition: opacity .35s ease-out, filter .7s var(--ease), transform .9s var(--ease); }
.pic img.dev { opacity: 1; filter: none; }
.pic.contain { background: transparent; }
.pic.contain img { object-fit: contain; }
.pic-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; }
a.pic-btn { cursor: pointer; }
.hover-zoom:hover .pic img.dev { transform: scale(1.025); }
figure { margin: 0; }
figcaption { margin-top: 10px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rv { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.wait { opacity: 0; transform: translateY(22px); }

/* ---------- Hero ---------- */
.hero { position: relative; height: clamp(460px, 86vh, 940px); background: var(--sheet); color: var(--on-image); overflow: hidden; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); }
.hero .slide.on { opacity: 1; }
.hero .slide .pic { width: 100%; height: 100%; background: var(--sheet); }
.hero .slide.on .pic img.dev { animation: drift 4.5s linear both; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--scrim); pointer-events: none; }
.hero-meta { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding-bottom: clamp(20px, 4vw, 40px); }
.hero-meta .wrap { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.hero-meta .edge { color: var(--on-image); opacity: .92; }
.hero-title { font-family: var(--f-display); font-size: var(--t-hero); font-weight: 300; line-height: 1; max-width: 13ch; margin-bottom: 18px; font-style: italic; }
.dots { display: flex; gap: 6px; align-items: center; }
.dots button { width: 26px; height: 20px; border: 0; background: none; padding: 0; position: relative; }
.dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; opacity: .45; transition: opacity .4s; }
.dots button[aria-current="true"]::before { opacity: 1; height: 2px; }
.hero.short { height: clamp(360px, 62vh, 680px); }

/* ---------- Home ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: end; }
.intro .lede { font-size: clamp(1.6rem, 3.2vw, 2.6rem); max-width: 22ch; }
@media (max-width: 800px) { .intro { grid-template-columns: 1fr; } }

.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
@media (max-width: 640px) { .cards-2 { grid-template-columns: 1fr; } }
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
@media (max-width: 960px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards-3 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .cards-4 { grid-template-columns: 1fr; } }
.card { display: grid; gap: 14px; text-decoration: none; align-content: start; min-width: 0; }
.card h3 { transition: color .4s var(--ease); }
.card:hover h3 { color: var(--accent); }
.card .meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card p { color: var(--muted); font-size: var(--t-s); }

.svc-teaser { display: grid; }
.svc-row { display: grid; grid-template-columns: 70px minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: clamp(16px, 3vw, 40px); align-items: center; padding-block: 22px; border-bottom: 1px solid var(--line); text-decoration: none; }
.svc-row:first-child { border-top: 1px solid var(--line); }
.svc-row h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 300; }
.svc-row p { color: var(--muted); font-size: var(--t-s); }
.svc-row .pic { width: 70px; aspect-ratio: 1; }
.svc-row:hover h3 { color: var(--accent); }
@media (max-width: 720px) { .svc-row { grid-template-columns: 56px minmax(0, 1fr); } .svc-row .pic { width: 56px; } .svc-row p, .svc-row .edge { grid-column: 2; } }

.quotes { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.quotes .pic { aspect-ratio: 4 / 5; }
.quote-stage { display: grid; }
.quote-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s; display: grid; gap: 24px; align-content: center; }
.quote-slide.on { opacity: 1; visibility: visible; }
.quote-slide blockquote { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.3; text-wrap: pretty; }
.quote-slide blockquote::before { content: "“"; } .quote-slide blockquote::after { content: "”"; }
.quote-ctrl { display: flex; gap: 10px; align-items: center; margin-top: 28px; }
.quote-img { display: grid; } .quote-img > * { grid-area: 1 / 1; transition: opacity .7s var(--ease); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } .quotes .pic { aspect-ratio: 3 / 2; } }

.strip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.strip .pic { aspect-ratio: 1; }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cta-final { text-align: center; display: grid; justify-items: center; gap: 22px; }
.cta-final h2 { font-size: var(--t-xl); max-width: 16ch; }

/* ---------- Work index ---------- */
.filters { display: grid; gap: 18px; padding-block: 22px; border-block: 1px solid var(--line); margin-bottom: clamp(32px, 5vw, 56px); }
.filters .selects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px 32px; align-items: end; }
@media (max-width: 760px) { .filters .selects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .filters .selects { grid-template-columns: 1fr; } }
.asym { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 44px); align-items: start; }
.asym .card { grid-column: span var(--span, 6); }
.asym .card.drop { margin-top: clamp(0px, 8vw, 120px); }
.asym .card h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 300; }
@media (max-width: 760px) { .asym { grid-template-columns: 1fr; } .asym .card { grid-column: auto; } .asym .card.drop { margin-top: 0; } }
.frames-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); display: grid; gap: 14px; justify-items: center; }

/* ---------- Collection ---------- */
.coll-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
@media (max-width: 800px) { .coll-head { grid-template-columns: 1fr; } }
.view-toggle { display: inline-flex; border: 1px solid var(--line-strong); }
.view-toggle button { border: 0; background: transparent; padding: .7em 1.2em; font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; }
.view-toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.plates { display: grid; gap: clamp(48px, 8vw, 120px); }
.plate-full { display: grid; justify-items: center; }
.plate-full figure { width: 100%; }
.plate-full figure.tall { width: min(100%, 620px); }
.plate-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: end; }
@media (max-width: 640px) { .plate-pair { grid-template-columns: 1fr; } }
.plate figcaption a { text-decoration: none; }
.plate figcaption a:hover { color: var(--accent); }
.coll-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.coll-nav a { display: grid; gap: 8px; padding: clamp(28px, 5vw, 56px) 0; text-decoration: none; }
.coll-nav a:last-child { text-align: right; justify-items: end; border-left: 1px solid var(--line); padding-left: 24px; }
.coll-nav a:first-child { padding-right: 24px; }
.coll-nav a h3 { font-size: var(--t-l); font-weight: 300; }
.coll-nav a:hover h3 { color: var(--accent); }

.sheet { background: var(--sheet); color: var(--sheet-fg); padding: clamp(18px, 3vw, 36px); display: grid; gap: 22px; }
.sheet-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--edge); }
.film-strip { position: relative; padding-block: 22px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.film-strip::before, .film-strip::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, transparent 0 10px, var(--sheet-dim) 10px 20px, transparent 20px 28px); opacity: .5; min-width: 100%; }
.film-strip::before { top: 5px; } .film-strip::after { bottom: 5px; }
.film-row { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(150px, 1fr)); gap: 6px; }
.frame { display: grid; gap: 6px; scroll-snap-align: start; }
.frame .pic { aspect-ratio: 3 / 2; background: var(--lb-bg); }
.frame .no { display: flex; justify-content: space-between; color: var(--edge); font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; }
.frame button:hover .pic img { opacity: .82; }
.sheet .edge { color: var(--sheet-dim); }
@media (min-width: 900px) { .film-strip { overflow: visible; } .film-row { grid-template-columns: repeat(5, minmax(0, 1fr)); } .film-strip::before, .film-strip::after { display: none; } }

/* ---------- Photo detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.detail .main-img { display: grid; justify-items: center; background: var(--surface); padding: clamp(16px, 3vw, 48px); }
.detail aside { display: grid; gap: 28px; position: sticky; top: calc(var(--hdr) + 24px); }
@media (max-width: 960px) { .detail { grid-template-columns: 1fr; } .detail aside { position: static; } }
.spec { display: grid; grid-template-columns: auto 1fr; margin: 0; border-top: 1px solid var(--line); }
.spec dt, .spec dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.spec dt { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; padding-right: 18px; }
.spec dd { text-align: right; }
.spec-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.split .sticky { position: sticky; top: calc(var(--hdr) + 24px); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .sticky { position: static; } }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.values div { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.values p { color: var(--muted); font-size: var(--t-s); }
.timeline { display: grid; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.timeline li .mono { color: var(--accent); }
ol.timeline, ul.plain { list-style: none; padding: 0; margin: 0; }
.client-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 0; border-top: 1px solid var(--line); list-style: none; padding: 0; margin: 0; }
.client-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-size: 1.15rem; font-weight: 300; }

/* ---------- Services & pricing ---------- */
.svc-card { display: grid; gap: 16px; align-content: start; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.svc-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--t-s); }
.svc-card li { display: flex; gap: 10px; } .svc-card li::before { content: "—"; color: var(--faint); }
.svc-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding-block: 22px; border-top: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: "STEP " counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em; color: var(--accent); padding-top: 4px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); }
.from { font-family: var(--f-display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 300; line-height: 1; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.pkgs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); }
.pkg { display: grid; gap: 18px; align-content: start; padding: clamp(22px, 2.6vw, 34px); border-right: 1px solid var(--line); }
.pkg:last-child { border-right: 0; }
.pkg.featured { background: var(--surface) var(--grain); }
.pkg .price { font-family: var(--f-display); font-size: clamp(2.2rem, 3.2vw, 3rem); font-weight: 300; line-height: 1; }
.pkg ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.pkg li { display: flex; justify-content: space-between; gap: 10px; padding-block: 8px; border-top: 1px solid var(--line); font-size: var(--t-s); }
.pkg li span:first-child { color: var(--muted); }
.pkg .addons { font-size: .82rem; color: var(--muted); display: grid; gap: 4px; }
@media (max-width: 1000px) { .pkgs { grid-template-columns: 1fr 1fr; } .pkg:nth-child(2) { border-right: 0; } .pkg:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .pkgs { grid-template-columns: 1fr; } .pkg { border-right: 0; border-bottom: 1px solid var(--line); } }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: var(--t-s); }
.compare th, .compare td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.compare thead th { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; font-weight: 400; color: var(--muted); }
.compare tbody th { font-weight: 400; color: var(--muted); }
.note-box { border: 1px solid var(--line-strong); padding: clamp(20px, 3vw, 32px); display: grid; gap: 10px; }

/* ---------- Booking ---------- */
.progress { display: grid; gap: 12px; }
.progress .bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress .bars span { height: 2px; background: var(--line); transition: background .5s var(--ease); }
.progress .bars span.done { background: var(--fg); } .progress .bars span.cur { background: var(--accent); }
.progress .labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress .labels span { color: var(--faint); } .progress .labels span.cur { color: var(--fg); }
@media (max-width: 560px) { .progress .labels { display: none; } }
.book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }
.cal { border: 1px solid var(--line); padding: 16px; max-width: 460px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-head h3 { font-size: 1.15rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-grid .dow { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; color: var(--muted); padding: 6px 0; }
.cal-grid button { aspect-ratio: 1; border: 1px solid transparent; background: transparent; font-family: var(--f-mono); font-size: .8rem; font-variant-numeric: tabular-nums; transition: all .3s var(--ease); }
.cal-grid button:hover:not([disabled]) { border-color: var(--fg); }
.cal-grid button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.cal-grid button[disabled] { color: var(--faint); cursor: not-allowed; }
.cal-grid button.booked { text-decoration: line-through; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.summary { border: 1px solid var(--line); padding: 22px; display: grid; gap: 12px; position: sticky; top: calc(var(--hdr) + 24px); }
.summary dl { margin: 0; display: grid; gap: 10px; }
.summary dt { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.summary dd { margin: 0; font-size: var(--t-s); }

/* ---------- Login door ---------- */
.door-wrap { min-height: 100vh; display: grid; place-items: center; padding: calc(var(--hdr) + 32px) var(--gutter) 64px; background: var(--sheet); color: var(--sheet-fg); }
.door { width: min(100%, 480px); border: 1px solid rgba(231,223,207,.18); padding: clamp(28px, 5vw, 48px); display: grid; gap: 26px; position: relative; background: var(--sheet); }
.safelight { display: flex; justify-content: center; }
.safelight span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .3em; padding: 8px 18px; color: var(--sheet-fg); background: var(--safelight); box-shadow: 0 0 40px 6px rgba(180,69,47,.35); animation: glow 4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 60px 12px rgba(180,69,47,.45); } }
.door .field label { color: var(--sheet-dim); }
.door .field input { border-bottom-color: rgba(231,223,207,.4); color: var(--sheet-fg); }
.door .hint, .door .muted { color: var(--sheet-dim); }
.door .knob { position: absolute; right: -9px; top: 55%; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(231,223,207,.3); background: var(--sheet); }
.door .form-error { color: #E59A80; }

/* ---------- Proofing ---------- */
.proof-bar { position: sticky; top: calc(var(--hdr) + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--bg) var(--grain); border-block: 1px solid var(--line); padding-block: 14px; }
.proof-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 24px 20px; }
.proof { display: grid; gap: 8px; }
.proof .pic { aspect-ratio: 3 / 2; }
.proof.selected .pic { outline: 2px solid var(--accent); outline-offset: 3px; }
.proof-tools { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.proof-tools .btns { display: flex; gap: 2px; }
.tool { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid transparent; background: transparent; position: relative; }
.tool:hover { border-color: var(--line-strong); }
.tool svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.3; }
.tool[aria-pressed="true"].heart svg { fill: var(--accent); stroke: var(--accent); }
.tool[aria-pressed="true"].sel { background: var(--fg); color: var(--bg); }
.tool .badge { position: absolute; top: 2px; right: 2px; font: 500 .56rem/1 var(--f-mono); }
.comment-box { display: grid; gap: 8px; padding: 12px; background: var(--surface); }
.comment-box ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--t-s); }
.comment-box li { border-left: 2px solid var(--accent); padding-left: 8px; }
.comment-box textarea { width: 100%; min-height: 60px; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; resize: vertical; }

/* ---------- Shop ---------- */
.shop-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px 32px; align-items: end; padding-block: 20px; border-block: 1px solid var(--line); margin-bottom: 44px; }
@media (max-width: 760px) { .shop-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .shop-filters { grid-template-columns: 1fr; } }
.print-card .pic { aspect-ratio: 4 / 5; background: var(--surface); }
.print-card .pic img { object-fit: contain; padding: 12%; }
.print-card:hover .pic img.dev { transform: translateY(-4px); }
.detail-shop { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .detail-shop { grid-template-columns: 1fr; } }
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 10px 16px 10px 0; margin-right: 16px; font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tabs button[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.print-stage { background: var(--surface); padding: clamp(24px, 5vw, 64px); display: grid; place-items: center; }
.print-stage .pic { box-shadow: 0 1px 0 var(--line); }
.room { position: relative; aspect-ratio: 16 / 11; background: var(--wall); overflow: hidden; }
.room .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: var(--floor); }
.room .console { position: absolute; bottom: 18%; left: 50%; transform: translateX(-50%); width: 46%; height: 13%; background: var(--furniture); }
.room .console::before, .room .console::after { content: ""; position: absolute; bottom: -38%; width: 3%; height: 38%; background: var(--furniture); }
.room .console::before { left: 6%; } .room .console::after { right: 6%; }
.room .vase { position: absolute; bottom: 31%; left: 62%; width: 3.2%; height: 11%; background: var(--olive); border-radius: 40% 40% 12% 12%; }
.room .hang { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); transition: width .6s var(--ease); }
.room .framebox { padding: 5%; background: var(--on-image); border: 0 solid var(--furniture); box-shadow: 0 6px 16px rgba(0,0,0,.14); transition: all .5s var(--ease); }
.room .framebox.f-none { padding: 0; border-width: 0; }
.room .framebox.f-oak { border-width: 5px; border-color: #B08A5A; }
.room .framebox.f-black { border-width: 5px; border-color: #1C1C1C; }
.room .framebox.f-white { border-width: 5px; border-color: #EFEBE2; }
.room .scale { position: absolute; left: 12px; bottom: 12px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); }
.qty button { width: 38px; height: 38px; border: 0; background: transparent; font-size: 1.1rem; }
.qty button:hover { background: var(--surface-2); }
.qty output, .qty span { min-width: 34px; text-align: center; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.price-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 14px; border-block: 1px solid var(--line); }
.price-line .p { font-family: var(--f-display); font-size: 2rem; font-weight: 300; font-variant-numeric: tabular-nums; }

/* ---------- Cart / checkout ---------- */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .cart-grid { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--line); align-items: start; }
.line:first-child { border-top: 1px solid var(--line); }
.line .pic { aspect-ratio: 1; }
.line .thumb-digital { aspect-ratio: 1; display: grid; place-items: center; background: var(--surface-2); font-family: var(--f-mono); font-size: .6rem; letter-spacing: .12em; text-align: center; padding: 8px; }
.line .info { display: grid; gap: 6px; min-width: 0; }
.line .right { display: grid; gap: 10px; justify-items: end; }
.line .rm { background: none; border: 0; padding: 0; color: var(--muted); font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .line { grid-template-columns: 72px minmax(0, 1fr); } .line .right { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; } }
.totals { display: grid; gap: 0; }
.totals div { display: flex; justify-content: space-between; gap: 10px; padding-block: 10px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.totals .grand { font-family: var(--f-display); font-size: 1.5rem; font-weight: 300; border-bottom: 0; padding-top: 16px; }
.pay-placeholder { border: 1px dashed var(--line-strong); padding: 26px; display: grid; gap: 8px; text-align: center; color: var(--muted); background: var(--surface); }

/* ---------- Recipes ---------- */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: clamp(28px, 4vw, 48px); }
.recipe-card { display: grid; gap: 18px; align-content: start; border-top: 1px solid var(--fg); padding-top: 20px; }
.recipe-card .pic { aspect-ratio: 3 / 2; }
.recipe-card .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.recipe-card h3 { font-size: 1.6rem; font-weight: 300; }
.recipe-card p { color: var(--muted); font-size: var(--t-s); }
.recipe-card .spec { grid-template-columns: 1fr auto; }
.pack-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line-strong); margin-bottom: clamp(40px, 6vw, 72px); }
@media (max-width: 700px) { .pack-band { grid-template-columns: 1fr; } }
.recipe-box { background: var(--sheet); color: var(--sheet-fg); padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; }
.recipe-box .edge { color: var(--edge); }
.recipe-box .spec { border-color: rgba(231,223,207,.16); grid-template-columns: 1fr auto; }
.recipe-box .spec dt, .recipe-box .spec dd { border-color: rgba(231,223,207,.12); }
.recipe-box .spec dt { color: var(--sheet-dim); }
.recipe-box h3 { font-size: 1.4rem; font-weight: 300; }

/* ---------- Workshops ---------- */
.ws-list { display: grid; border-top: 1px solid var(--line); }
.ws { display: grid; grid-template-columns: 140px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 40px); padding-block: 28px; border-bottom: 1px solid var(--line); align-items: start; }
.ws .date b { display: block; font-family: var(--f-display); font-size: 2rem; font-weight: 300; line-height: 1; }
.ws h3 { font-size: 1.5rem; font-weight: 300; margin-bottom: 8px; }
.ws p { color: var(--muted); font-size: var(--t-s); }
.spots { display: grid; gap: 8px; }
.spots .bar { height: 2px; background: var(--line); position: relative; }
.spots .bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); }
.ws .act { display: grid; gap: 10px; justify-items: end; }
@media (max-width: 860px) { .ws { grid-template-columns: 1fr; } .ws .act { justify-items: start; } }

/* ---------- Gear ---------- */
.gear-list { display: grid; border-top: 1px solid var(--line); }
.gear-item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); padding-block: 22px; border-bottom: 1px solid var(--line); align-items: center; }
.gear-block { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: end start; padding: 10px; position: relative; }
.gear-block::before { content: ""; position: absolute; left: 50%; top: 44%; width: 46%; height: 34%; transform: translate(-50%, -50%); border: 1px solid var(--line-strong); }
.gear-block.lens::before { width: 30%; height: 44%; border-radius: 6px; }
.gear-block.acc::before { width: 24%; height: 24%; border-radius: 50%; }
.gear-block span { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .12em; color: var(--muted); position: relative; }
.gear-item h3 { margin-bottom: 6px; }
.gear-item p { color: var(--muted); font-size: var(--t-s); max-width: 60ch; }
@media (max-width: 520px) { .gear-item { grid-template-columns: 100px minmax(0, 1fr); } }

/* ---------- Journal ---------- */
.jr-tools { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: 20px 40px; align-items: end; padding-block: 18px; border-block: 1px solid var(--line); margin-bottom: 44px; }
@media (max-width: 760px) { .jr-tools { grid-template-columns: 1fr; } }
.featured-post { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; text-decoration: none; margin-bottom: clamp(48px, 7vw, 96px); }
.featured-post .pic { aspect-ratio: 3 / 2; }
.featured-post h2 { font-size: var(--t-xl); }
.featured-post:hover h2 { color: var(--accent); }
@media (max-width: 800px) { .featured-post { grid-template-columns: 1fr; } }
.post-card .pic { aspect-ratio: 3 / 2; }

.article { display: grid; gap: clamp(28px, 4vw, 44px); }
.article > .col { max-width: 680px; margin-inline: auto; width: 100%; }
.article > .wide { max-width: 1120px; margin-inline: auto; width: 100%; }
.article p.body { font-size: 1.075rem; line-height: 1.75; text-wrap: pretty; }
.article p.body.dropcap::first-letter { font-family: var(--f-display); float: left; font-size: 3.6em; line-height: .9; padding: 4px 10px 0 0; font-weight: 300; }
.article h2 { font-size: var(--t-l); }
.pull { margin: 0; padding-block: 18px; border-block: 1px solid var(--line); font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; text-wrap: balance; }
.art-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
@media (max-width: 600px) { .art-pair { grid-template-columns: 1fr; } }
.author { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: center; padding-block: 24px; border-block: 1px solid var(--line); }
.author .pic { aspect-ratio: 1; border-radius: 50%; }
.share { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- Testimonials ---------- */
.kw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px) clamp(28px, 5vw, 80px); }
.kw { display: grid; gap: 18px; align-content: start; }
.kw:nth-child(even) { margin-top: clamp(0px, 10vw, 160px); }
.kw .pic { aspect-ratio: 4 / 3; }
.kw blockquote { margin: 0; font-family: var(--f-display); font-weight: 300; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.35; text-wrap: pretty; }
@media (max-width: 720px) { .kw-grid { grid-template-columns: 1fr; } .kw:nth-child(even) { margin-top: 0; } }

/* ---------- Press ---------- */
.press-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.press-list li { display: grid; grid-template-columns: 70px 120px minmax(0, 1fr) auto; gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--line); align-items: baseline; }
.press-list h3 { font-size: 1.2rem; }
.press-list .outlet { color: var(--muted); font-size: var(--t-s); }
@media (max-width: 700px) { .press-list li { grid-template-columns: 60px minmax(0, 1fr); } .press-list li > :nth-child(2) { grid-column: 2; grid-row: 1; } .press-list li > :nth-child(3), .press-list li > :nth-child(4) { grid-column: 2; } }

/* ---------- Licensing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.tier { padding: clamp(22px, 3vw, 34px); display: grid; gap: 14px; align-content: start; border-right: 1px solid var(--line); }
.tier:last-child { border-right: 0; }
.tier ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: var(--t-s); display: grid; gap: 4px; }
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; } .tier { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- FAQ ---------- */
.faq-group { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding-block: 36px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .faq-group { grid-template-columns: 1fr; gap: 12px; } }
details.acc { border-bottom: 1px solid var(--line); }
details.acc:first-child { border-top: 1px solid var(--line); }
details.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding-block: 18px; font-family: var(--f-display); font-size: 1.2rem; font-weight: 300; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-family: var(--f-mono); color: var(--muted); transition: transform .4s var(--ease); }
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc .ans { padding-bottom: 20px; color: var(--muted); max-width: 64ch; animation: fadeIn .5s var(--ease); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-list > div { display: grid; gap: 4px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.copyable { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.copyable code { font-family: var(--f-display); font-size: 1.25rem; user-select: all; }
.map { aspect-ratio: 4 / 3; position: relative; background-color: var(--surface); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; overflow: hidden; }
.map .river { position: absolute; left: -10%; right: -10%; top: 62%; height: 18%; background: var(--teal); opacity: .28; transform: rotate(-8deg); }
.map .pin { position: absolute; left: 44%; top: 46%; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 8px rgba(200,137,62,.22); }
.map .lbl { position: absolute; left: calc(44% + 22px); top: calc(46% - 3px); }
.map .corner { position: absolute; right: 12px; bottom: 10px; color: var(--muted); }

/* ---------- Newsletter / Legal / 404 / Thanks ---------- */
.nl-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.nl-stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.nl-stack .pic:nth-child(2) { transform: translateY(-24px); }
@media (max-width: 860px) { .nl-hero { grid-template-columns: 1fr; } }
.legal-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.legal { max-width: 68ch; display: grid; gap: 18px; }
.legal h2 { font-size: 1.5rem; margin-top: 18px; }
.legal p, .legal li { color: var(--fg); line-height: 1.75; }
.legal ul { padding-left: 1.2em; margin: 0; display: grid; gap: 6px; }
.nf { min-height: 100vh; display: grid; align-items: center; padding-top: var(--hdr); }
.nf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.nf .pic { aspect-ratio: 3 / 2; }
.nf .pic img.dev { filter: brightness(1.9) contrast(.45) saturate(.2); }
@media (max-width: 800px) { .nf-grid { grid-template-columns: 1fr; } }
.thanks { min-height: 80vh; display: grid; align-items: center; padding-top: calc(var(--hdr) + 40px); }
.next-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: n; border-top: 1px solid var(--line); }
.next-steps li { display: grid; grid-template-columns: 50px 1fr; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); counter-increment: n; }
.next-steps li::before { content: counter(n, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--t-mono); color: var(--accent); padding-top: 3px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 96px) 32px; margin-top: clamp(40px, 6vw, 80px); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 48px; }
.foot-top h2 { font-size: 1.7rem; margin-bottom: 10px; }
.foot-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: var(--t-s); }
.foot-top ul a { text-decoration: none; color: var(--muted); transition: color .3s; }
.foot-top ul a:hover { color: var(--fg); }
.foot-top .eyebrow { margin-bottom: 14px; }
.nl-inline { display: flex; gap: 12px; align-items: end; margin-top: 18px; }
.nl-inline .field { flex: 1; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-bottom a { text-decoration: none; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .nl-inline { flex-direction: column; align-items: stretch; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: var(--lb-bg); color: var(--sheet-fg); display: grid; grid-template-rows: auto 1fr auto; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); animation: fadeIn .45s var(--ease); }
.lb-top, .lb-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px var(--gutter); }
.lb-top .count { color: var(--edge); font-size: .8rem; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 7vw, 96px); touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s var(--ease), filter .7s var(--ease); filter: saturate(.2) brightness(1.3); user-select: none; -webkit-user-drag: none; }
.lb-stage img.dev { opacity: 1; filter: none; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; background: transparent; color: var(--sheet-fg); display: grid; place-items: center; opacity: .7; transition: opacity .3s; }
.lb-nav:hover { opacity: 1; }
.lb-nav svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.2; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
@media (max-width: 640px) { .lb-nav { display: none; } }
.lb-btn { border: 1px solid rgba(231,223,207,.28); background: transparent; color: var(--sheet-fg); padding: .6em 1em; font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em; text-transform: uppercase; transition: all .4s var(--ease); }
.lb-btn:hover { background: var(--edge); color: var(--lb-bg); border-color: var(--edge); }
.lb-title { font-family: var(--f-display); font-size: 1.15rem; font-weight: 300; }
.lb-exif { position: absolute; right: var(--gutter); bottom: 12px; width: min(340px, calc(100% - 32px)); background: rgba(23,21,18,.94); border: 1px solid rgba(231,223,207,.14); padding: 18px; display: grid; gap: 10px; animation: fadeIn .4s var(--ease); }
.lb-exif .spec { border-color: rgba(231,223,207,.14); }
.lb-exif .spec dt, .lb-exif .spec dd { border-color: rgba(231,223,207,.1); }
.lb-exif .spec dt { color: var(--sheet-dim); }
.lb-bottom .edge { color: var(--sheet-dim); }
.lb-bottom a { color: var(--sheet-fg); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 120; background: var(--fg); color: var(--bg); padding: 12px 18px; font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .12em; text-transform: uppercase; max-width: calc(100% - 32px); animation: toastIn .45s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv.wait { opacity: 1; transform: none; }
}

/* ==========================================================================
   PHONE LAYOUT (screens up to 640px wide). Desktop is unaffected.
   ========================================================================== */
html { -webkit-tap-highlight-color: transparent; }
.nav .mob-book { display: none; }
@media (max-width: 1080px) {
  .nav .mob-book { display: inline-flex; padding: .6em .9em; font-size: .64rem; }
}
@supports (height: 100svh) { .hero { height: clamp(460px, 86svh, 940px); } }
@media (max-width: 640px) {
  :root { --hdr: 60px; }
  .site-header .bar { gap: 10px; }
  .brand b { font-size: 1.08rem; }
  .brand span { font-size: .56rem; }
  .icon-btn { width: 36px; height: 36px; }
  .section { padding-block: 44px; }
  .section.tight { padding-block: 32px; }
  .page-head { padding-top: calc(var(--hdr) + 28px); padding-bottom: 24px; gap: 12px; }
  .sec-head { margin-bottom: 20px; padding-bottom: 12px; }
  .sec-head h2 { font-size: 1.45rem; }
  .hero { height: clamp(420px, 78svh, 700px); }
  .hero-title { font-size: 2.3rem; margin-bottom: 12px; }
  .intro .lede { font-size: 1.45rem; }

  /* Two-column grids instead of one huge card per row */
  .cards-3, .cards-4, .asym, .frames-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 22px 12px !important; }
  .asym .card { grid-column: auto !important; margin-top: 0 !important; }
  .asym .card .pic { aspect-ratio: 4 / 5 !important; }
  .card { gap: 8px; }
  .card h3, .asym .card h3 { font-size: 1.05rem; line-height: 1.2; }
  .card p { font-size: .75rem; }
  .card .meta { flex-direction: column; gap: 2px; }
  .card .meta .edge, .card .meta .eyebrow { font-size: .58rem; letter-spacing: .1em; }
  .featured-post { margin-bottom: 36px; gap: 14px; }
  .featured-post h2 { font-size: 1.7rem; }
  .print-card .pic img { padding: 9%; }
  .svc-card h2 { font-size: 1.4rem !important; }

  /* Services list on the home page */
  .svc-row { grid-template-columns: 84px minmax(0, 1fr); gap: 4px 16px; padding-block: 16px; align-items: start; }
  .svc-row .pic { width: 84px; aspect-ratio: 4 / 5 !important; grid-row: span 3; }
  .svc-row h3 { font-size: 1.3rem; }
  .svc-row p, .svc-row .edge { grid-column: 2; }
  .svc-row p { font-size: .8rem; line-height: 1.5; }

  /* Work page filters */
  .filters { gap: 14px; padding-block: 16px; margin-bottom: 28px; }
  .filters .selects { grid-template-columns: 1fr 1fr !important; gap: 14px 16px; }
  .filters .selects .field:first-child { grid-column: 1 / -1; }
  .filters .selects .tlink { grid-column: 1 / -1; justify-self: start; }
  .chips { gap: 6px; }
  .chip { padding: .5em .8em; font-size: .64rem; }

  /* Collection pages */
  .plates { gap: 34px; }
  .plate-pair { grid-template-columns: 1fr 1fr !important; gap: 10px; align-items: start; }
  .plate-pair figcaption .edge { display: none; }
  .plate figcaption { margin-top: 6px; }
  .plate figcaption .mono { font-size: .6rem; }
  .plate figcaption .edge { font-size: .56rem; letter-spacing: .08em; }
  .coll-head h1 { font-size: 2.8rem !important; }
  .coll-nav a { padding-block: 26px; }
  .coll-nav a h3 { font-size: 1.3rem; }

  /* Photo pages: full-width photo, buttons before the long settings table */
  .detail { gap: 22px; }
  .detail .main-img { padding: 0; background: none; }
  .detail .main-img > div { width: 100% !important; }
  .detail aside { gap: 22px; }
  .detail aside > :nth-child(1) { order: -3; }
  .detail aside > :nth-child(4) { order: -2; }
  .detail aside > :nth-child(5) { order: -1; }
  .detail aside .row .btn { flex: 1; }
  .spec dt, .spec dd { padding: 7px 0; font-size: .66rem; }

  /* Shop / print detail */
  .print-stage { padding: 18px; }
  .detail-shop { gap: 22px; }
  .price-line .p { font-size: 1.7rem; }

  /* Booking */
  .book-grid { gap: 28px; }
  .cal { padding: 10px; }

  /* Lightbox */
  .lb-top, .lb-bottom { padding: 10px 14px; }
  .lb-stage { padding: 0; }
  .lb-title { font-size: 1rem; }
  .lb-bottom .edge { font-size: .56rem; }

  /* Footer */
  .site-footer { padding-block: 44px 24px; }
  .foot-top { gap: 28px; padding-bottom: 28px; }
  .foot-bottom { flex-direction: column; gap: 10px; }
}
.brand b, .brand span { white-space: nowrap; }
@media (max-width: 360px) { .brand span { display: none; } .nav .mob-book { display: none !important; } }

/* About page: "The world from my eye" photo grid */
.eye-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 110px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.eye-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-flow: dense; gap: 10px; }
.eye-grid figure { min-width: 0; }
.eye-grid figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.eye-grid figure:nth-child(10) { grid-column: 5 / span 2; grid-row: span 2; }
.eye-grid figure:nth-child(1) .pic, .eye-grid figure:nth-child(10) .pic { aspect-ratio: auto !important; height: calc(100% - 26px); }
.eye-grid figcaption { margin-top: 6px; }
.eye-grid figcaption .edge { font-size: .6rem; }
.about-work .values { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .eye-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .eye-grid figure:nth-child(10) { grid-column: span 2; } .about-work .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .eye-head { grid-template-columns: 1fr; } .eye-grid { gap: 6px; } .eye-grid figcaption { display: none; } .eye-grid figure:nth-child(1) .pic, .eye-grid figure:nth-child(10) .pic { height: 100%; } .about-work .values { grid-template-columns: 1fr; } }
/* Minimal font for About page body text (headings stay serif) */
.about-copy .prose p, .about-copy > .muted, .about-copy .muted, .about-copy .values p { font-family: var(--f-minimal); font-weight: 300; font-size: 1.0625rem; letter-spacing: -.005em; }
.about-copy .values p { font-size: .9375rem; }

/* ==========================================================================
   ABSTRACT ELEMENTS: light leaks, aperture emblem, film-strip divider.
   Delete this block (and the three small bits in app.js/index.html) to remove.
   ========================================================================== */
:root { --leak-a: rgba(200,137,62,.30); --leak-b: rgba(180,69,47,.16); --leak-blend: multiply; --ap-ink: var(--fg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --leak-a: rgba(214,155,82,.28); --leak-b: rgba(190,80,55,.2); --leak-blend: screen; } }
:root[data-theme="dark"] { --leak-a: rgba(214,155,82,.28); --leak-b: rgba(190,80,55,.2); --leak-blend: screen; }

/* Light leaks: soft glows on plain paper areas only */
.leak { position: relative; isolation: isolate; }
.leak::before, .leak::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(60px); mix-blend-mode: var(--leak-blend); }
.leak::before { width: min(46vw, 520px); height: min(30vw, 340px); right: -6%; top: 6%; background: radial-gradient(closest-side, var(--leak-a), transparent); animation: leak-drift 18s ease-in-out infinite alternate; }
.leak::after { width: min(30vw, 340px); height: min(22vw, 240px); right: 18%; top: 38%; background: radial-gradient(closest-side, var(--leak-b), transparent); animation: leak-drift 23s ease-in-out -6s infinite alternate-reverse; }
.leak-alt::before { right: auto; left: -8%; top: 10%; }
.leak-alt::after { right: auto; left: 20%; top: 45%; }
.page-head.leak::before { top: -10%; }
@keyframes leak-drift { 0% { transform: translate(0, 0) scale(1); opacity: .75; } 50% { opacity: 1; } 100% { transform: translate(-40px, 24px) scale(1.12); opacity: .85; } }
html, body { overflow-x: hidden; overflow-x: clip; } /* clip (where supported) keeps sticky elements working */

/* Aperture emblem */
.aperture { width: 132px; height: 132px; color: var(--ap-ink); }
.aperture.sm { width: 96px; height: 96px; margin-inline: auto; }
.aperture svg { width: 100%; height: 100%; overflow: visible; }
.aperture text { font-family: var(--f-mono); font-size: 7.4px; letter-spacing: 1.6px; text-transform: uppercase; fill: currentColor; opacity: .7; }
.aperture .ap-text { transform-origin: 60px 60px; animation: ap-spin 40s linear infinite; }
.aperture .ap-blades { transform-origin: 60px 60px; animation: ap-breathe 9s ease-in-out infinite; }
.aperture .ap-blades path, .aperture .ap-blades circle { fill: none; stroke: currentColor; stroke-width: .8; opacity: .6; }
.aperture .ap-hole { fill: var(--accent); opacity: .9; }
@keyframes ap-spin { to { transform: rotate(360deg); } }
@keyframes ap-breathe { 0%, 100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(18deg) scale(.9); } }
@media (max-width: 640px) { .aperture { width: 104px; height: 104px; } .aperture.sm { width: 84px; height: 84px; } }

/* Film-strip divider above the footer */
.film-rule { height: 18px; margin-top: clamp(40px, 6vw, 80px); background:
  radial-gradient(circle, transparent 0, transparent 0) ,
  repeating-linear-gradient(90deg, transparent 0 14px, var(--line-strong) 14px 24px, transparent 24px 34px);
  -webkit-mask: linear-gradient(transparent 0 4px, #000 4px 14px, transparent 14px);
          mask: linear-gradient(transparent 0 4px, #000 4px 14px, transparent 14px);
  opacity: .6; }
.film-rule + .site-footer { margin-top: 0; border-top: 0; }

@media (prefers-reduced-motion: reduce) { .leak::before, .leak::after, .aperture .ap-text, .aperture .ap-blades { animation: none; } }

/* Back-to-top arrow: appears after scrolling down */
.to-top { position: fixed; z-index: 55; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line-strong);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease), background-color .3s, color .3s, border-color .3s; }
.to-top.on { opacity: .92; transform: none; pointer-events: auto; }
.to-top:hover, .to-top:focus-visible { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); opacity: 1; }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
body.lock .to-top { opacity: 0; pointer-events: none; }
@media (max-width: 640px) { .to-top { width: 42px; height: 42px; } }

/* The colours I see (home + About) */
.palette { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.swatch { display: grid; gap: 8px; text-decoration: none; align-content: start; }
.swatch .chip-c { display: flex; align-items: flex-end; aspect-ratio: 5 / 2; padding: 8px; }
.swatch .chip-c .mono { color: #F7F3EA; font-size: .6rem; letter-spacing: .1em; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.swatch b { font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; }
.swatch .muted { font-size: .78rem; line-height: 1.45; }
.swatch:hover b { color: var(--accent); }
.palette.mini { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.palette.mini .chip-c { aspect-ratio: 1; }
.palette.mini b { font-size: .85rem; }
@media (max-width: 960px) { .palette { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .palette { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; } .palette.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Photo page: camera details tucked away */
details.tech { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 12px; }
details.tech summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.tech summary::-webkit-details-marker { display: none; }
details.tech summary::after { content: "+"; font-family: var(--f-mono); color: var(--muted); }
details.tech[open] summary::after { content: "−"; }
details.tech[open] > div { margin-top: 16px; }
details.tech > div + div { margin-top: 22px; }

/* Minimal font (Inter Tight) for the home page intro section only */
:root { --f-minimal: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.intro .lede { font-family: var(--f-minimal); font-weight: 300; letter-spacing: -.025em; line-height: 1.25; }
.intro .muted { font-family: var(--f-minimal); font-weight: 300; font-size: 1.0625rem; letter-spacing: -.005em; }
.intro .btn, .intro .tlink { font-family: var(--f-minimal); font-weight: 400; font-size: .9375rem; text-transform: none; letter-spacing: 0; }
.intro .aperture text { font-family: var(--f-minimal); font-weight: 400; letter-spacing: 1.4px; }

/* About: Beyond the camera */
.me-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.me-item { display: grid; gap: 14px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.me-no { font-family: var(--f-mono); font-size: var(--t-mono); letter-spacing: .14em; color: var(--accent); }
.me-item h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 300; }
.me-item p { font-family: var(--f-minimal); font-weight: 300; font-size: 1.0625rem; line-height: 1.6; color: var(--muted); max-width: 42ch; }
@media (max-width: 860px) { .me-grid { grid-template-columns: 1fr; gap: 28px; } }

.me-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.me-wrap .me-grid { grid-template-columns: 1fr; gap: 36px; }
.me-wrap .me-item h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.me-photo .pic img { filter: none; }
@media (max-width: 860px) { .me-wrap { grid-template-columns: 1fr; } }
.me-film { margin-top: 10px; max-width: 560px; }

/* About portrait shown on a paper mat, with space around the photo */
.mat { background: var(--surface-2); padding: clamp(18px, 3.2vw, 44px); }
.mat .pic { box-shadow: 0 1px 0 var(--line); }

/* ==========================================================================
   HEADER NAME: light classical serif (Newsreader), at the original size.
   ========================================================================== */
:root { --f-name: "Newsreader", "Iowan Old Style", Georgia, serif; }
.brand b { font-family: var(--f-name); font-weight: 400; font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.1; font-variation-settings: "opsz" 72; }
.brand span { font-family: var(--f-name); font-weight: 400; font-size: .8rem; letter-spacing: 0; text-transform: none; opacity: .8; }
@media (max-width: 640px) { .brand b { font-size: 1.08rem; } .brand span { font-size: .72rem; } }

/* ==========================================================================
   HEADER NAME, OPTION 11 (live): engraved spaced capitals (Cormorant
   Garamond) over the quiet Newsreader "Photographs · Bangalore" line.
   ========================================================================== */
.brand b { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 1.18rem; letter-spacing: .2em; text-transform: uppercase; font-variation-settings: normal; line-height: 1.15; }
@media (max-width: 640px) { .brand b { font-size: 1.02rem; letter-spacing: .17em; } }

/* --------------------------------------------------------------------------
   HEADER NAME, OPTION 5 (saved for later): "Rahul Prabakaran / Bangalore"
   on one line in Inter Tight, with an amber slash. To switch, delete the
   OPTION 11 block above and remove the comment marks around this block.
   --------------------------------------------------------------------------
.brand { display: flex; align-items: baseline; }
.brand b { font-family: "Inter Tight", system-ui, sans-serif; font-weight: 400; font-size: 1.12rem; letter-spacing: .01em; text-transform: none; }
.brand span { font-size: 0; opacity: 1; }
.brand span::before { content: "/"; color: var(--amber); font: 400 .98rem "Inter Tight", sans-serif; margin: 0 10px; }
.brand span::after { content: "Bangalore"; font: 400 .98rem "Inter Tight", sans-serif; opacity: .6; }
@media (max-width: 640px) { .brand b { font-size: 1rem; } .brand span::before, .brand span::after { font-size: .9rem; } .brand span::before { margin: 0 8px; } }
*/

/* ==========================================================================
   RECENT FRAMES: slow horizontal marquee (pauses on hover; static for
   reduced motion). The list is rendered twice so the loop is seamless.
   ========================================================================== */
.strip.marquee { display: block; overflow: hidden; }
.marquee-track { display: flex; gap: 4px; width: max-content; animation: marquee 60s linear infinite; }
.marquee-dup { display: contents; }
.marquee-track .pic { flex: 0 0 clamp(150px, 15vw, 260px); aspect-ratio: 1; }
.strip.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 2px)); } }
@media (prefers-reduced-motion: reduce) {
  .strip.marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
  .marquee-dup { display: none; }
}
/* Gentle fade right at both ends of the marquee */
.strip.marquee {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%); }

/* Camera settings line under each frame on series pages */
.plate figcaption .exif-line { flex-basis: 100%; margin-top: -4px; opacity: .75; }

/* About page palette: thin dashes of colour instead of squares */
.palette.mini { gap: 12px; }
.palette.mini .chip-c { aspect-ratio: auto; height: 5px; padding: 0; border-radius: 3px; }
.palette.mini .swatch { gap: 10px; }
.palette.mini .swatch:hover .chip-c { transform: scaleY(1.6); }
.palette.mini .chip-c { transition: transform .3s var(--ease); transform-origin: bottom; }

/* Phones: keep small labels and captions readable (at least ~11px) */
@media (max-width: 640px) {
  .edge, .card .meta .edge, .card .meta .eyebrow { font-size: .68rem; }
  figcaption .mono, .plate figcaption .mono { font-size: .72rem; }
  .plate figcaption .edge, figcaption .edge { font-size: .66rem; letter-spacing: .06em; }
}

/* Narrow laptop and tablet windows: keep the top menu visible, just tighter */
@media (min-width: 641px) and (max-width: 1080px) {
  .nav { gap: 14px; }
  .nav a.nl { letter-spacing: .08em; }
}
@media (min-width: 641px) and (max-width: 820px) {
  .nav { gap: 11px; }
  .nav a.nl { font-size: .62rem; letter-spacing: .05em; }
  .brand b { font-size: 1rem; letter-spacing: .13em; }
  .brand span { font-size: .7rem; }
}

/* ==========================================================================
   SMOOTHNESS: lighter effects so scrolling stays smooth on every device
   ========================================================================== */
/* Light leaks stay as soft static glows: no blur filter, blending or endless motion to redraw while scrolling */
.leak::before, .leak::after { filter: none; mix-blend-mode: normal; animation: none; opacity: .75; }
/* Photos fade in with opacity only (cheap for the graphics chip), instead of animating a colour filter on large images */
.pic img { filter: none; transition: opacity .6s ease-out, transform .9s var(--ease); }
.pic img.dev { filter: none; }

/* Aperture emblem: animate whole layers (composited) instead of shapes inside the SVG */
.aperture { position: relative; }
.aperture svg { position: absolute; inset: 0; will-change: transform; }
.aperture .ap-text, .aperture .ap-blades { animation: none; }
.aperture .ap-ring { animation: ap-spin 40s linear infinite; }
.aperture .ap-core { animation: ap-breathe 9s ease-in-out infinite; }
.aperture .ap-ring, .aperture .ap-core { animation-play-state: paused; }
.aperture.spin .ap-ring, .aperture.spin .ap-core { animation-play-state: running; }

/* ==========================================================================
   PRINT PAGE: larger framed preview that stays in view beside the options
   ========================================================================== */
@media (min-width: 961px) {
  .detail-shop > :first-child { position: sticky; top: calc(var(--hdr) + 20px); }
}
.print-stage { position: relative; padding: clamp(28px, 4vw, 56px); min-height: min(78vh, 760px); align-content: center; gap: 18px; }
.print-stage .framed { /* size: as large as fits the column and ~68% of the screen height */
  --frame: 14px; --mount: clamp(16px, 5%, 44px);
  width: min(100%, calc(68vh * var(--r) + 2 * (var(--frame) + var(--mount))));
  background: #FBFAF6; padding: var(--mount); border: var(--frame) solid #1C1C1C; box-sizing: border-box;
  box-shadow: 0 22px 44px -12px rgba(0,0,0,.30), 0 3px 8px rgba(0,0,0,.12);
  transition: border-color .4s var(--ease), border-width .4s var(--ease), padding .4s var(--ease);
}
.print-stage .framed .pic { box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.print-stage .framed.f-oak { border-color: #B08A5A; }
.print-stage .framed.f-black { border-color: #1C1C1C; }
.print-stage .framed.f-white { border-color: #EFEBE2; box-shadow: 0 22px 44px -12px rgba(0,0,0,.26), 0 0 0 1px rgba(0,0,0,.08), 0 3px 8px rgba(0,0,0,.10); }
.print-stage .framed.f-none { --frame: 0px; --mount: clamp(10px, 3%, 24px); box-shadow: 0 14px 30px -10px rgba(0,0,0,.25), 0 1px 3px rgba(0,0,0,.10); }
.print-stage .stage-note { color: var(--muted); }
@media (max-width: 640px) {
  .print-stage { min-height: 0; padding: 22px 16px; }
  .print-stage .framed { --frame: 9px; --mount: 12px; width: min(100%, calc(58vh * var(--r) + 42px)); }
}
/* Bigger preview: wider photo column, less empty space around the frame */
@media (min-width: 961px) {
  .detail-shop { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); }
}
.print-stage { padding: clamp(18px, 2.4vw, 34px); min-height: min(72vh, 720px); }
.print-stage .framed { --mount: clamp(14px, 4%, 36px); width: min(100%, calc(70vh * var(--r) + 2 * (var(--frame) + var(--mount)))); }
/* Tall prints: keep the whole frame and caption inside the screen while it stays in view */
.print-stage .framed { width: min(100%, calc((100vh - var(--hdr) - 250px) * var(--r) + 2 * (var(--frame) + var(--mount)))); }
@media (max-width: 640px) { .print-stage .framed { width: min(100%, calc(58vh * var(--r) + 42px)); } }
/* Phones keep the original print preview: plain photo on the paper panel, no frame or mount */
@media (max-width: 640px), (pointer: coarse) and (max-width: 743px), (pointer: coarse) and (max-height: 500px) {
  .print-stage { min-height: 0; padding: 18px; gap: 0; }
  .print-stage .framed, .print-stage .framed.f-none, .print-stage .framed.f-oak, .print-stage .framed.f-black, .print-stage .framed.f-white {
    --frame: 0px; --mount: 0px; border: 0; padding: 0; background: none; box-shadow: none; transition: none;
    width: min(100%, calc(62vh * var(--r)));
  }
  .print-stage .framed .pic { box-shadow: 0 1px 0 var(--line); }
  .print-stage .stage-note { display: none; }
}

/* ==========================================================================
   SHOP: gallery wall (laptop and iPad). Prints at their own shape, mounted.
   ========================================================================== */
.print-wall { columns: 3; column-gap: clamp(24px, 3vw, 48px); }
@media (max-width: 1100px) { .print-wall { columns: 2; } }
.print-tile { display: block; break-inside: avoid; margin: 0 0 clamp(36px, 4.5vw, 64px); text-decoration: none; color: inherit; }
.print-tile .tile-print { background: #FBFAF6; padding: clamp(8px, 1vw, 14px); box-shadow: 0 18px 36px -16px rgba(0,0,0,.30), 0 2px 6px rgba(0,0,0,.08); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.print-tile:hover .tile-print { transform: translateY(-4px); box-shadow: 0 26px 44px -16px rgba(0,0,0,.34), 0 3px 8px rgba(0,0,0,.10); }
.print-tile .meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.print-tile h3 { margin: 6px 0 4px; font-size: 1.35rem; }
.print-tile p { margin: 0; color: var(--muted); font-size: var(--t-s); }
.print-tile:hover h3 { color: var(--accent); }
@media (max-width: 640px) {
  .print-wall { columns: 1; }
  .print-tile { margin-bottom: 40px; }
  .print-tile .tile-print { padding: 8px; }
  .print-tile .meta { margin-top: 12px; }
  .print-tile h3 { font-size: 1.2rem; }
}
/* iPhone, home page print section only: swipe sideways, one print at a time, the next one peeking in */
.swipe-hint { display: none; }
@media (max-width: 640px), (pointer: coarse) and (max-width: 743px), (pointer: coarse) and (max-height: 500px) {
  .swipe-hint { display: block; margin: 0 0 14px; color: var(--muted); }
  .print-wall.swipe { columns: auto; display: flex; align-items: flex-end; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 22px; scroll-padding-inline: var(--gutter); }
  .print-wall.swipe::-webkit-scrollbar { display: none; }
  .print-wall.swipe .print-tile { flex: 0 0 auto; width: min(82vw, calc(54vh * var(--r) + 16px)); margin: 0; scroll-snap-align: start; }
  .print-wall.swipe .print-tile .meta { flex-wrap: wrap; gap: 4px 12px; }
}
@media (max-width: 640px), (pointer: coarse) and (max-width: 743px), (pointer: coarse) and (max-height: 500px) {
  .print-wall.swipe { align-items: center; }
  .print-wall.swipe .print-tile { width: min(82vw, calc(40vh * var(--r) + 16px)); }
}
/* "See all prints" card at the end of the home page's swipe row */
.print-more { flex: 0 0 auto; align-self: stretch; width: 46vw; display: grid; place-items: center; text-align: center; padding: 20px;
  border: 1px solid var(--line-strong); color: inherit; text-decoration: none; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; scroll-snap-align: start; }

/* ==========================================================================
   HOME PRINT ROW: sideways row on every device (first 9 prints + "See all")
   ========================================================================== */
.print-wall.swipe { columns: auto; display: flex; align-items: flex-start; gap: clamp(18px, 2.2vw, 32px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter) 26px; scroll-padding-inline: var(--gutter); }
.print-wall.swipe::-webkit-scrollbar { display: none; }
/* Laptop and iPad: every print hangs at the same height */
.print-wall.swipe .print-tile { --h: clamp(240px, 40vh, 420px); flex: 0 0 auto; margin: 0; scroll-snap-align: start;
  width: min(62vw, calc(var(--h) * var(--r) + 2 * clamp(8px, 1vw, 14px))); }
.print-wall.swipe .print-more { width: clamp(180px, 16vw, 240px); height: calc(clamp(240px, 40vh, 420px) + 2 * clamp(8px, 1vw, 14px)); align-self: flex-start; }
.pw-head { gap: 18px; align-items: center; }
.pw-arrows { display: inline-flex; gap: 8px; }
.pw-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; color: inherit; font-size: .95rem; cursor: pointer; transition: border-color .3s, background .3s; }
.pw-btn:hover { border-color: var(--fg); }
/* Slightly smaller on laptops so about three prints show at once; text stays on single lines so every card is the same height */
.print-wall.swipe .print-tile { --h: clamp(220px, 33vh, 340px); width: min(46vw, calc(var(--h) * var(--r) + 2 * clamp(8px, 1vw, 14px))); }
.print-wall.swipe .print-more { height: calc(clamp(220px, 33vh, 340px) + 2 * clamp(8px, 1vw, 14px)); }
.print-wall.swipe .print-tile .meta, .print-wall.swipe .print-tile h3, .print-wall.swipe .print-tile p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.print-wall.swipe .print-tile .meta { flex-wrap: nowrap; }
.print-wall.swipe .print-tile .meta .eyebrow { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px), (pointer: coarse) and (max-width: 743px), (pointer: coarse) and (max-height: 500px) {
  .pw-arrows { display: none; }
  .print-wall.swipe { align-items: center; gap: 14px; padding: 4px var(--gutter) 22px; }
  .print-wall.swipe .print-tile { width: min(82vw, calc(40vh * var(--r) + 16px)); }
  .print-wall.swipe .print-more { height: auto; align-self: stretch; width: 46vw; }
}
/* Same print height on laptop and iPad: limited by screen width too, so wide prints are never squeezed shorter */
.print-wall.swipe .print-tile { --h: clamp(200px, min(33vh, 36vw), 340px); width: min(66vw, calc(var(--h) * var(--r) + 2 * clamp(8px, 1vw, 14px))); }
.print-wall.swipe .print-more { height: calc(clamp(200px, min(33vh, 36vw), 340px) + 2 * clamp(8px, 1vw, 14px)); }
@media (max-width: 640px), (pointer: coarse) and (max-width: 743px), (pointer: coarse) and (max-height: 500px) {
  .print-wall.swipe .print-tile { width: min(82vw, calc(40vh * var(--r) + 16px)); }
  .print-wall.swipe .print-more { height: auto; }
}

/* Services page with three services: one row of three on laptops and iPads (no lone card on the last row) */
@media (min-width: 641px) { .cards-2.svc-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: clamp(20px, 2.6vw, 40px) !important; } }

/* Work page floating layout: generous space between rows */
.asym.float { row-gap: clamp(56px, 7vw, 110px); }
.asym.float .card .meta { margin-top: 14px; }
/* Tall covers never taller than ~76% of the screen; right-hand covers stay aligned to the right edge */
.asym.float .card { width: 100%; max-width: calc(76vh * var(--r)); }
.asym.float .card.right { justify-self: end; }

/* Work page canvas (laptop and iPad): an endless board of series covers you scroll or drag around. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.canvas-page { overflow: hidden; overscroll-behavior: none; }
body.canvas-page .site-footer, body.canvas-page .film-rule, body.canvas-page #toTop { display: none; }
body.canvas-page .view-in { animation: none; }
.cv { position: fixed; inset: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; animation: cvIn .9s var(--ease) both; }
.cv.grab { cursor: grabbing; }
.cv.grab .cv-card { pointer-events: none; }
@keyframes cvIn { from { opacity: 0; } to { opacity: 1; } }
.cv-board { position: absolute; inset: 0; }
.cv-card { position: absolute; left: 0; top: 0; display: block; text-decoration: none; color: inherit; transform-origin: 50% 50%; will-change: transform; -webkit-user-drag: none; }
.cv-card img { -webkit-user-drag: none; pointer-events: none; }
.cv-card .pic { transition: opacity .4s var(--ease); }
.cv-meta { margin-top: 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cv-meta h3 { font-size: clamp(1rem, 1.3vw, 1.25rem); font-weight: 300; margin: 0; transition: color .4s var(--ease); }
.cv-meta .eyebrow { white-space: nowrap; }
.cv-card:hover .cv-meta h3 { color: var(--accent); }
.cv-title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; pointer-events: none; z-index: 2;
  font-family: var(--f-display); font-size: clamp(4rem, 11vw, 10rem); font-weight: 300; line-height: 1; color: var(--fg); opacity: .9; }
.cv-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 40px var(--gutter, 32px) calc(18px + env(safe-area-inset-bottom, 0px)); pointer-events: none; background: linear-gradient(to top, var(--bg) 35%, transparent); }
.cv-foot > * { pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .cv { animation: none; } }

/* Work page stagger view (laptop and iPad): big covers zigzag down two columns. */
.wf-views { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wf-views .eyebrow { margin-right: 6px; color: var(--muted); }
.cv-foot .wf-views .chip { background: var(--bg); }
.stag { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(16px, 1.8vw, 28px); padding-bottom: clamp(60px, 8vw, 140px); }
.st-col { display: flex; flex-direction: column; gap: clamp(120px, 17vw, 290px); }
.st-col + .st-col { padding-top: clamp(160px, 21vw, 340px); }
.st-card { display: block; text-decoration: none; color: inherit; }
.st-card.tall { width: 68%; margin-inline: auto; }
.st-clip { position: relative; overflow: hidden; background: transparent; clip-path: inset(0 0 86% 74%); transition: clip-path 1.25s cubic-bezier(.16, 1, .3, 1); }
.st-col + .st-col .st-clip { clip-path: inset(0 74% 86% 0); }
.st-card.in .st-clip, .st-col + .st-col .st-card.in .st-clip { clip-path: inset(0 0 0 0); }
.st-img { position: absolute; inset: 0; transform: scale(1.4); transform-origin: 50% 0; transition: transform 1.25s cubic-bezier(.16, 1, .3, 1); }
.st-card.in .st-img { transform: none; }
.st-img .pic { width: 100%; height: 100%; }
.st-card:hover .st-img .pic img.dev { transform: scale(1.06); transition: transform 1.1s var(--ease), opacity .35s ease-out; }
.st-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease) .35s, transform .8s var(--ease) .35s; }
.st-card.in .st-cap { opacity: 1; transform: none; }
.st-cap h3 { font-size: clamp(1.2rem, 1.9vw, 1.8rem); font-weight: 300; transition: color .4s var(--ease); }
.st-card:hover .st-cap h3 { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .st-clip { clip-path: none; transition: none; } .st-img { transform: none; transition: none; } .st-cap { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   HOME "SELECTED WORK" MOSAIC (laptop and iPad): tight tiles, own shapes
   ========================================================================== */
.tiles { display: grid; gap: 8px; }
.tile-row { display: flex; gap: 8px; }
.tile { position: relative; flex: var(--r) 1 0; aspect-ratio: var(--r); overflow: hidden; display: block; color: #F7F3EA; text-decoration: none; background: var(--surface); }
.tile .pic { position: absolute; inset: 0; height: 100%; }
.tile .pic img { transition: opacity .6s ease-out, transform 1.2s var(--ease); }
.tile:hover .pic img.dev { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(to top, rgba(0,0,0,.55), transparent); pointer-events: none; transition: opacity .4s; }
.tile-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; display: grid; gap: 3px; }
.tile-cap .edge { color: rgba(247,243,234,.82); font-size: .62rem; }
.tile-cap b { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.05rem, 1.4vw, 1.35rem); line-height: 1.15; }
.tile-cap .edge, .tile-cap b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Narrow tiles: show the full series name (wrapping if needed) */
.tile { container-type: inline-size; }
@container (max-width: 210px) {
  .tile-cap { left: 10px; right: 10px; bottom: 10px; }
  .tile-cap .edge { display: none; }
  .tile-cap b { white-space: normal; overflow: visible; font-size: 1rem; line-height: 1.15; }
}

/* Home "Selected work" running row (laptop and iPad): favourites slide sideways in a loop, edge to edge. */
.run { --h: clamp(260px, 28vw, 440px); width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; }
.run-track { display: flex; gap: 8px; width: max-content; will-change: transform; }
.run { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.run.grab { cursor: grabbing; }
.run.grab .tile { pointer-events: none; }
.run .tile, .run .tile img { -webkit-user-drag: none; }
.run .tile { flex: none; height: var(--h); width: calc(var(--h) * var(--r)); aspect-ratio: auto; }
@media (max-width: 640px) { .run { --h: 300px; } .run .tile-cap b { font-size: 1rem; } }
