/* EK Pixora Studio — the look of the public pages: "Gallery light" refined with glass (DESIGN.md section 10,
   decisions 31 and 35; the glass material and the interface built from it are in glass.css).
   Loaded after site.css on every public page; every rule is scoped to `.tc`, which <body> carries on
   the public pages only (the client galleries, owner pages and booking agreements do not load it).
   Warm ivory and stone pages, charcoal text, copper accents, deep teal for the footer and the rare dark moment;
   EK Display (Playfair Display, SIL OFL) for headings with an italic accent word, Jost (SIL OFL) for text,
   labels and buttons. The Home page's own scenes are in home.css. The scroll motion on photographs is
   title-card.js; the hero motion and the reveals are site.js; the glass behaviour is glass.js.
   Everything is visible without script.
   (The file keeps its old name so the build, the dashboard and the tests keep finding it.) */

/* ---------- Fonts (self-hosted, SIL OFL 1.1; made by tools/prepare_fonts_look_a.py) ---------- */
@font-face { font-family: "EK Display"; src: url("/assets/fonts/ek-display-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
/* The preloaded faces use "optional": they are almost always there in time, and if one is late on a first
   visit the page keeps its fallback rather than swapping, so the words on the opening photograph (anchored to
   its bottom edge) never jump. */
@font-face { font-family: "EK Display"; src: url("/assets/fonts/ek-display-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: optional; }
@font-face { font-family: "EK Display"; src: url("/assets/fonts/ek-display-italic-400.woff") format("woff"); font-weight: 400; font-style: italic; font-display: optional; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: optional; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: optional; }
/* Fallbacks close to the real fonts' size, so text keeps its place while they arrive. */
@font-face { font-family: "EK Display Fallback"; src: local("Georgia"), local("Times New Roman"), local("Liberation Serif"); size-adjust: 104%; ascent-override: 104%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Jost Fallback"; src: local("Arial"), local("Liberation Sans"); size-adjust: 93.08%; ascent-override: 114.95%; descent-override: 40.29%; line-gap-override: 0%; }

/* ---------- Tokens: the palette of every public page ----------
   Contrast (WCAG 2.2, checked in DESIGN.md section 13.2 and by tests/site_test.py):
   charcoal on ivory 15.6, on linen 14.0; umber on ivory 6.5, on linen 5.8; copper on ivory 5.9, on linen 5.3;
   ivory on copper 5.9 (on the lit top of the button 4.7); ivory on cine 17.2; ash on cine 8.6; saffron on cine 10.2.
   The teal and saffron of the colour themes (src/data/themes.json) still drive the footer and the dark accents. */
.tc {
  --ivory: #F6F2EA;      /* the page */
  --linen: #ECE6DB;      /* the alternate band (soft stone) */
  --stone: #DCD3C5;      /* frames while a photograph loads, placeholder fills */
  --rule-light: #D6CDBF; /* hairlines on the light pages (decorative only) */
  --charcoal: #1C1A17;   /* text */
  --umber: #5E564D;      /* quieter text, captions */
  --copper: #96471B;     /* the accent: headline words, labels, links on light; the primary button */
  --copper-hi: #A9541F;  /* the lit top of the button */
  --copper-lo: #7E3B15;  /* its shaded bottom, and its hover */
  --cine: #100F0E;       /* cinematic black: the photo viewer, the frame behind the opening photograph */
  --graphite: #22201D;
  --ash: #B5ADA2;        /* quieter text on dark */
  --pale-gold: #F3D7A6;  /* small labels on glass: saffron's warmth at ivory's legibility (decision 36) */
  --field-light: #8A8075;/* input borders (3.5 : 1 on ivory) */
  --mist-text: #D3CCC2;  /* quieter text on the night page (8.9 : 1 on its darkest, 4.9 : 1 on its brightest) */
  --night: var(--color-ink);   /* the page: the studio's deep teal-black, lit by the photographs (decision 37) */

  --font-display: "EK Display", "EK Display Fallback", "Iowan Old Style", Georgia, serif;
  --font-text: "Jost", "Jost Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: var(--font-text);
  --font-sans: var(--font-text);   /* buttons, labels, forms and anything else site.css sets in the sans */
  --font-head: var(--font-display);
  --font-accent: var(--font-display);

  --t-display: calc(clamp(3.25rem, 1.2rem + 8.2vw, 9rem) * var(--hs, 1));
  --t-h1: calc(clamp(2.75rem, 1.6rem + 4.6vw, 6rem) * var(--hs, 1));
  --t-head: calc(clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem) * var(--hs, 1));
  --t-title: calc(clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem) * var(--hs, 1));
  --t-body: calc(1.0625rem * var(--ts, 1));
  --t-small: calc(0.8125rem * var(--ts, 1));
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);   /* reveals and fades on the public pages: a quick start and a long, soft settle (decision 47) */
  --col-gap: clamp(16px, 2.4vw, 40px);
  --section-pad: clamp(72px, 5rem + 6vw, 168px);
  --gutter: clamp(18px, 4vw, 56px);

  /* The night page (decision 37): no white or cream. The sections are see-through; behind them a fixed
     backdrop of the studio's deep teal-black, lit by a blurred, darkened wash of colour taken from the
     photograph in view (glass.js), so every glass surface has light and colour behind it. */
  --surface-alt: transparent;
  --bg: transparent;
  --bg-alt: transparent;
  --text: var(--ivory);
  --text-muted: var(--mist-text);
  --accent: var(--color-saffron);
  --focus: var(--color-saffron);
  --rule: rgb(246 242 234 / 0.16);
  --input-border: rgb(246 242 234 / 0.42);

  background: var(--night);
  color: var(--ivory);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.65;
  color-scheme: dark;
}

/* Every section is see-through over the night backdrop; "light", "raised" and "dark" now only tell the
   navigation which tone of glass to use. */
.tc .section--light, .tc [data-surface="light"], .tc .section--alt, .tc [data-surface="raised"] { --bg: transparent; }
.tc [data-surface="dark"] {
  --bg: transparent;
  --bg-alt: transparent;
  --text: var(--ivory);
  --text-muted: var(--mist-text);
  --accent: var(--color-saffron);
  --focus: var(--color-saffron);
  --rule: rgb(246 242 234 / 0.16);
}
.tc .site-footer { --bg: var(--color-lagoon); font-family: var(--font-text); --color-error: #F2998A; --color-moss: #8FD0A5; }
.tc ::selection { background: var(--color-saffron); color: var(--color-ink); }
/* The parts of the page the browser draws belong to the design too (decision 47): the scroll bar, the text
   cursor and the form controls take the studio's colours, and a tap leaves no grey flash on a phone. */
html:has(.tc) { scrollbar-color: color-mix(in srgb, var(--color-mist) 34%, transparent) var(--color-ink); -webkit-tap-highlight-color: transparent; }
.tc { caret-color: var(--color-saffron); accent-color: var(--color-saffron); }
.tc :is(a, button, .btn, summary, label, select) { touch-action: manipulation; }
.tc .skip-link { background: var(--ivory); color: var(--charcoal); border-radius: 0 0 var(--r-2) var(--r-2); }

/* ---------- The night backdrop: the studio's teal-black, lit by the photograph in view ---------- */
.tc .ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--night); }
.tc .ambient__layer {
  position: absolute;
  inset: -14%;
  width: 128%;
  height: 128%;
  opacity: 0;
  transform: translate3d(0, var(--amb-y, 0px), 0);
  transition: opacity 1400ms var(--ease-out);
}
.tc .ambient__layer.is-on { opacity: 1; }
/* A deep veil over the colour keeps every word on the page readable (ivory stays above 6 : 1, the quieter text
   above 4.5 : 1, even where a photograph is nearly white), with a little more depth toward the edges. */
.tc .ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 30%, rgb(8 14 15 / 0.58), rgb(6 10 11 / 0.8) 100%);
}

/* ---------- Header: the wordmark in the middle, the pages on either side (glass in glass.css) ---------- */
.tc .site-header { font-family: var(--font-ui); font-weight: 500; color: var(--text); }
.tc .site-header:not([data-tone="light"]) { color: var(--ivory); }
.tc .site-header[data-tone="light"] { color: var(--charcoal); }
.tc .wordmark { font-size: 0.9375rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.24em; margin-right: -0.24em; }
.tc .site-nav ul { gap: clamp(14px, 1.9vw, 30px); }
.tc .site-nav a:not(.btn) { font-size: var(--t-small); font-weight: 400; text-transform: uppercase; letter-spacing: 0.16em; padding-inline: 0; }
.tc .site-nav .btn, .tc .menu-toggle, .tc .motion-switch { font: 500 var(--t-small)/1 var(--font-ui); text-transform: uppercase; letter-spacing: 0.16em; }
@media (min-width: 1100px) {
  .tc .site-header__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
  .tc .site-header__inner > .wordmark { grid-column: 2; grid-row: 1; font-size: 1.0625rem; }
  .tc .site-nav { display: contents; }
  .tc .site-nav ul:first-child { grid-column: 1; grid-row: 1; justify-content: flex-end; padding-right: clamp(24px, 3vw, 48px); }
  .tc .site-nav ul:last-child { grid-column: 3; grid-row: 1; justify-content: flex-start; padding-left: clamp(24px, 3vw, 48px); }
  .tc .site-header .menu-toggle { display: none; }
}
@media (max-width: 1099px) {
  .tc .site-nav { display: none; }
  .tc .site-header .menu-toggle { display: inline-flex; align-items: center; }
}

/* ---------- Buttons, links, labels: Jost ---------- */
.tc .btn { font: 500 var(--t-small)/1 var(--font-ui); text-transform: uppercase; letter-spacing: 0.16em; padding-inline: 28px; }
.tc .link-arrow { font: 500 var(--t-small)/1.2 var(--font-ui); text-transform: uppercase; letter-spacing: 0.16em; text-underline-offset: 7px; }
.tc .link-arrow span[aria-hidden] { display: inline-block; transition: transform var(--dur-state, 320ms) var(--ease-glass, ease); }
@media (hover: hover) and (pointer: fine) { .tc .link-arrow:hover span[aria-hidden] { transform: translate3d(4px, 0, 0); } }
.tc .label { font-family: var(--font-ui); font-weight: 500; letter-spacing: 0.18em; }
.tc .filter { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: 0.16em; font-size: var(--t-small); }
.tc .menu-panel { --focus: var(--color-saffron); font-family: var(--font-ui); font-weight: 500; }
.tc .menu-panel li a { font-family: var(--font-display); font-weight: 400; font-size: calc(clamp(2rem, 1.5rem + 2.4vw, 3rem) * var(--hs, 1)); line-height: 1.12; letter-spacing: 0; }
.tc .menu-panel__extra { font-size: var(--t-small); text-transform: uppercase; letter-spacing: 0.16em; }
.tc .caption { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: 0.9375rem; line-height: 1.5; color: var(--text-muted); }
.tc .lead { font-size: calc(clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem) * var(--ts, 1)); line-height: 1.65; }

/* ---------- Headings: EK Display. Page titles upright and strong; section titles italic. ----------
   The accent word (`*word*` in the content, a <span class="accent-word">) turns italic and copper
   (saffron on dark surfaces). */
.tc .h1 { font-family: var(--font-display); font-weight: 600; font-size: var(--t-h1); line-height: 1.02; letter-spacing: -0.012em; }
.tc .h2, .tc .work__title, .tc .invite__line {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: var(--t-head);
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-transform: none;
}
.tc .invite__line { max-width: 18ch; font-size: var(--t-h1); line-height: 1.04; }
/* A page's title sits in two lines where its words allow (decision 47): a wider measure, balanced lines. */
.tc .page-head h1, .tc .story-head h1 { max-width: 20ch; }
/* Contact: the title shares its pane with the contact details, so it is set a step smaller and stays in two lines. */
.tc .contact-grid h1 { font-size: calc(clamp(2.5rem, 1.5rem + 2.6vw, 3.75rem) * var(--hs, 1)); line-height: 1.06; }
.tc .accent-word { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1em; letter-spacing: 0; color: var(--accent); }
.tc .h3, .tc .rule-item__title, .tc .story-card__title, .tc .steps h3, .tc .chapter h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-title);
  line-height: 1.2;
  letter-spacing: 0;
}
.tc .portfolio-group__head h2 { font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: calc(clamp(1.75rem, 1.3rem + 2vw, 3rem) * var(--hs, 1)); line-height: 1.1; }
.tc .rule-item .num, .tc .steps > li::before { font-family: var(--font-ui); color: var(--accent); }

/* ---------- Page openings: more air above and below ---------- */
.tc .page-head { padding-block: clamp(48px, 2.5rem + 5vw, 136px) clamp(40px, 4vw, 72px); }
.tc .page-head .wrap { gap: var(--space-5); }
.tc .page-head .label, .tc .section-head .label { color: var(--accent); }
.tc .section-head { margin-bottom: clamp(40px, 2rem + 3vw, 96px); }

/* ---------- Photographs: the frame shows the photograph's own average colour while it loads ---------- */
.tc .ph, .tc .tile { background-color: var(--ph-bg, var(--stone)); }

/* ---------- Stories as cards: the photograph, then a quiet panel; the link sits on the photograph as glass ---------- */
.tc .story-list { gap: clamp(28px, 3vw, 40px); }
/* Each card is the photograph, with its title on a smoked-glass slab over the lower part (decision 36). */
.tc .story-card { position: relative; display: block; height: 100%; }
.tc .story-card .ph { aspect-ratio: 4 / 5; }
.tc .story-card .story-card__body {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 16px 18px 14px;
  text-align: left;
}
.tc .story-card__body .label { color: var(--pale-gold); }
.tc .story-card__title { font-size: calc(clamp(1.5rem, 1.25rem + 0.8vw, 1.9rem) * var(--hs, 1)); letter-spacing: 0.01em; color: var(--ivory); }
.tc .story-card__title span { text-decoration: none; }
.tc .story-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; width: 100%; color: var(--ivory); font-size: var(--t-small); }
.tc .story-card__more { font: 500 var(--t-small)/1.4 var(--font-ui); text-transform: uppercase; letter-spacing: 0.16em; white-space: nowrap; }
.tc .story-card__more span { display: inline-block; transition: transform var(--dur-state) var(--ease-glass); }
@media (hover: hover) and (pointer: fine) {
  .tc .story-card:hover .story-card__body { --g-sheen: 0.4; --lx: 70%; }
  .tc .story-card:hover .story-card__more span { transform: translate3d(4px, 0, 0); }
  .tc .story-card:hover .ph img { transform: scale(1.03); }
}
.tc .story-card .ph img { transition: transform 700ms var(--ease-out); }

/* ---------- Lists, steps, chapters ---------- */
.tc .steps > li::before { color: var(--accent); letter-spacing: 0.18em; }
.tc .steps p, .tc .rule-item__text, .tc .chapter__body p { color: var(--text-muted); }
.tc .steps p { line-height: 1.55; }   /* short lines in narrow panes read better set a little closer */
/* On a phone the ways to reach the studio stand in one column under the invitation, on one left edge. */
@media (max-width: 639px) { .tc .invite__row { flex-direction: column; align-items: flex-start; gap: var(--space-4); } }

/* ---------- Portfolio: larger rows, more space between photographs ---------- */
.tc .rows { --row-h: 300px; --row-gap: var(--space-5); }
@media (min-width: 1024px) { .tc .rows { --row-h: 520px; --row-gap: clamp(32px, 3vw, 48px); } }
.tc .portfolio-group + .portfolio-group { margin-top: clamp(80px, 9vw, 160px); }
.tc .portfolio-group__head { padding-bottom: var(--space-5); margin-bottom: clamp(28px, 3.5vw, 56px); }

/* ---------- Story pages: the lead photograph runs under the floating navigation, its title on glass ---------- */
.tc .story-lead .story-lead__slab {
  position: absolute;
  left: max(var(--gutter), calc(env(safe-area-inset-left, 0px) + 12px));
  bottom: clamp(16px, 4vw, 48px);
  width: min(calc(100% - 2 * var(--gutter)), 640px);
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2.4vw, 28px) clamp(20px, 3vw, 36px);
}
.tc .story-lead__slab .label { color: var(--ivory); }
.tc .story-lead__slab .label .text-link { color: var(--pale-gold); }
.tc .story-lead__slab .h1 { color: var(--ivory); font-size: calc(clamp(2.25rem, 1.5rem + 3vw, 4.25rem) * var(--hs, 1)); max-width: 14ch; }
.tc .story-lead__slab .accent-word { color: var(--color-saffron); }
/* The lead photograph fills the first screen, so its title slab is in view as the page opens. */
.story-page .story-lead .ph { height: 100svh; min-height: 560px; max-height: 1100px; aspect-ratio: auto; }
.tc .story-head > :only-child { grid-column: 1 / span 7; }
.story-page .site-header { margin-bottom: calc(-1 * (var(--header-h) + env(safe-area-inset-top, 0px))); }
.tc .story-lead { position: relative; background: var(--ph-bg, var(--cine)); }
.tc .story-lead .ph { max-height: 100svh; }

.tc .story-head { padding-block: clamp(48px, 5vw, 96px); align-items: end; }
.tc .story-blocks { gap: clamp(32px, 6vw, 120px); }
.tc .placeholder { background: rgb(8 12 13 / 0.35); border: 1px dashed rgb(246 242 234 / 0.42); border-radius: var(--r-2); color: var(--text-muted); padding: var(--space-5) 22px; }
.tc .placeholder__tag { display: block; margin: 0 0 var(--space-2); color: var(--ivory); }
.tc .placeholder--frame { border-radius: var(--r-3); }
.tc .placeholder-inline { background: rgb(8 12 13 / 0.5); color: var(--ivory); border-radius: var(--r-1); }

/* ---------- Forms on the night page: fields are dark wells with ivory words ---------- */
.tc { --color-error: #F2998A; --color-moss: #8FD0A5; }
.tc .input, .tc .select, .tc .textarea {
  background: rgb(8 12 13 / 0.55);
  color: var(--ivory);
  font-family: var(--font-ui);
  border-radius: var(--r-2);
  border-color: rgb(246 242 234 / 0.42);
  transition: border-color var(--dur-state) var(--ease-glass), background-color var(--dur-state) var(--ease-glass), box-shadow var(--dur-state) var(--ease-glass);
}
.tc .input:focus-visible, .tc .select:focus-visible, .tc .textarea:focus-visible { outline: 2px solid var(--color-saffron); outline-offset: 2px; background: rgb(8 12 13 / 0.75); box-shadow: none; }
.tc .select option { background: var(--color-ink); color: var(--ivory); }
.tc .field label, .tc .field .field__label { font-family: var(--font-ui); font-weight: 500; }
.tc .error-summary { border-radius: var(--r-2); }

/* ---------- Footer: a pane of deep teal glass over the studio's opening photograph (decision 36) ---------- */
.tc .site-footer { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(96px, 12vw, 200px) clamp(24px, 4vw, 48px); background: var(--color-ink); }
.tc .site-footer__photo { position: absolute; inset: 0; z-index: -1; }
.tc .site-footer__photo picture, .tc .site-footer__photo img { width: 100%; height: 100%; }
.tc .site-footer__photo img { object-fit: cover; }
/* The page fades into the footer's photograph instead of meeting it at a hard line (decision 47). */
.tc .site-footer__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--color-ink) 0%, color-mix(in srgb, var(--color-ink) 40%, transparent) 14%, color-mix(in srgb, var(--color-ink) 18%, transparent) 38%, color-mix(in srgb, var(--color-ink) 30%, transparent) 100%); }
.tc .site-footer__pane { padding: clamp(28px, 4vw, 56px) clamp(22px, 4vw, 56px) clamp(16px, 2.4vw, 28px); }
.tc .site-footer__grid { gap: var(--space-7) var(--space-6); }
.tc .site-footer .label { color: var(--pale-gold); letter-spacing: 0.18em; }
.tc .site-footer__tagline { margin-bottom: var(--space-3); font-family: var(--font-display); font-style: italic; font-size: calc(clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem) * var(--hs, 1)); line-height: 1.2; color: var(--color-mist); max-width: 18ch; }
.tc .site-footer p, .tc .site-footer li, .tc .site-footer .footer-meta { color: var(--color-mist); }
.tc .site-footer a.foot-link, .tc .site-footer .text-link { text-decoration-color: rgb(246 242 234 / 0.4); transition: text-decoration-color var(--dur-state), color var(--dur-state); }
@media (hover: hover) and (pointer: fine) {
  .tc .site-footer a.foot-link:hover, .tc .site-footer .text-link:hover { color: var(--color-saffron); text-decoration-color: currentColor; }
}
.tc .footer-meta { border-top-color: rgb(238 243 240 / 0.14); }

/* ---------- Scroll motion on photographs ----------
   src/js/title-card.js moves [data-drift] pieces and the pictures inside [data-window] frames.
   The wipe opens a photograph once as it arrives. The hidden start state exists only while motion
   is on, and a failsafe opens everything if the script does not run. */
.js-motion .tc [data-drift], .js-motion .tc [data-window] picture { will-change: transform; }
.js-motion .tc .b2-wipe { clip-path: inset(0 0 100% 0); }
.js-motion .tc .b2-wipe--left { clip-path: inset(0 100% 0 0); }
.js-motion .tc .b2-wipe--right { clip-path: inset(0 0 0 100%); }
.js-motion .tc .b2-wipe.is-visible { clip-path: inset(0); transition: clip-path 1100ms cubic-bezier(0.77, 0, 0.175, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.js-motion:not(.b2-ready) .tc .b2-wipe { animation: b2-failsafe 0.01s 2.5s forwards; }
@keyframes b2-failsafe { to { clip-path: inset(0); } }

/* Headlines set in lines rise into place, one line after another, as they arrive. */
.js-motion .tc .reveal--lines { opacity: 1; transform: none; }
.js-motion .tc .reveal--lines .line__inner { transform: translate3d(0, 105%, 0); }
.js-motion .tc .reveal--lines.is-visible .line__inner { transform: none; transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js-motion:not(.js-ready) .tc .reveal--lines .line__inner { animation: failsafe 0.01s 2.5s forwards; }

/* Moving between pages: the old page fades out and the new one fades in (browsers that support it).
   (The navigation is deliberately not given its own view-transition-name: that would make it a "backdrop root"
   and its glass could no longer see, or blur, the page behind it.) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out 220ms var(--ease-out) both; }
::view-transition-new(root) { animation: page-in 420ms var(--ease-out) 60ms both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } }

@media (prefers-reduced-motion: reduce) {
  .tc .b2-wipe, .tc .b2-wipe--left, .tc .b2-wipe--right { clip-path: none !important; }
  .tc [data-drift], .tc [data-window] picture { transform: none !important; will-change: auto !important; }
  .tc .reveal--lines .line__inner { transform: none !important; }
  /* Fewer and gentler: between pages a short plain fade, no movement. */
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms !important; transform: none !important; }
  @keyframes page-in { from { opacity: 0; } }
}
:root[data-motion="off"] .tc .b2-wipe { clip-path: none !important; }
:root[data-motion="off"] .tc [data-drift], :root[data-motion="off"] .tc [data-window] picture { transform: none !important; }
:root[data-motion="off"] .tc .reveal--lines .line__inner { transform: none !important; }
:root[data-motion="off"]::view-transition-group(*), :root[data-motion="off"]::view-transition-old(*), :root[data-motion="off"]::view-transition-new(*) { animation: none !important; }

/* ---------- Portfolio photographs fade in (studio's request, 21 October 2026) ----------
   A plain fade as each row arrives, a few hundredths of a second apart, instead of the wipe;
   no zoom while fading, so the gentle zoom under a mouse still works afterwards. */
.js-motion .tc .portfolio-group .reveal-img:not(.is-visible) .tile img { transform: none; }
.js-motion .tc .portfolio-group .reveal-img.is-visible .tile img { transition: opacity var(--dur-image) var(--ease-out) calc(var(--i, 0) * 70ms), transform 600ms var(--ease-out); }

/* ---------- The studio's logo: the camera from it beside the name (decision 33) ---------- */
.tc .wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.tc .wordmark__mark { display: block; width: auto; height: 30px; flex: none; }
@media (min-width: 1100px) { .tc .site-header__inner > .wordmark .wordmark__mark { height: 34px; } }
.tc .menu-panel .wordmark__mark { height: 30px; }
.tc .footer-mark { display: block; width: auto; height: 44px; margin-bottom: var(--space-4); }

/* Contact opens without a page head: its label takes the accent like every other page's. */
.tc .contact-grid > div > .label:first-child { color: var(--accent); }
