/* ============================================================
   aceloop — shared site styles (home + project pages)
   The "showroom" look (2026-11-18): a near-black hero, one sturdy
   grotesque (Inter), hairlines instead of cards. The product render
   is the page; the interface stays quiet. Orange is kept to the logo
   and a few small marks.
   Since 2026-11-19 the page is white, not greige: the greige image
   tiles and the black blocks stand out from it, which Victor wanted
   ("punchy"). The secondary greys were darkened the same day because
   they were hard to read.
   ============================================================ */

:root {
  color-scheme: light;

  --bg:     #ffffff;  /* the page */
  --stage:  #e2dfda;  /* image tiles: greige, like a studio sweep */
  --white:  #f8f7f4;  /* a warm off-white for panels that sit on ink */
  --ink:    #121110;  /* near-black — hero, closing block, headings */
  --text:   #1f1e1b;
  --soft:   #3f3c38;  /* secondary text: about 11:1 on the page */
  --mute:   #6a665f;  /* small labels: about 5.7:1 — keep above 4.5:1 */
  --line:   rgba(18, 17, 16, 0.14);
  --orange: #e8923c;  /* accent only */

  --bone:      #edebe7;  /* text on ink */
  --bone-soft: rgba(237, 235, 231, 0.76);
  --bone-mute: rgba(237, 235, 231, 0.52);
  --bone-line: rgba(237, 235, 231, 0.16);

  --font: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --ease: cubic-bezier(0.23, 1, 0.32, 1);   /* the loop curve — use everywhere */
  --fast: 150ms;
  --base: 320ms;
  --slow: 700ms;

  --wrap: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(96px, 12vw, 184px);
  --nav-h: 76px;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px);
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 1.5px solid var(--orange); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--ink); color: var(--bone); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bone); padding: 10px 16px;
  text-decoration: none; font-size: 14px;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */

.label {
  font-size: 12px; line-height: 1.5; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--soft);
}
.display {
  font-weight: 500;
  font-size: clamp(42px, 5.6vw, 92px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.h2 {
  font-weight: 500;
  font-size: clamp(31px, 3.7vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.033em;
  color: var(--ink);
  text-wrap: balance;
}
.h3 { font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }
.lede { font-size: clamp(17.5px, 1.4vw, 20px); line-height: 1.55; letter-spacing: -0.008em; color: var(--soft); max-width: 46ch; text-wrap: pretty; }
.num { font-feature-settings: "tnum" 1, "lnum" 1; }

.on-ink, .on-ink .display, .on-ink .h2, .on-ink .h3 { color: var(--bone); }
.on-ink .label { color: var(--bone-soft); }
.on-ink .lede { color: var(--bone-soft); }

/* ---------- buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 15.5px/1 var(--font); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition:
    background-color var(--base) var(--ease), border-color var(--base) var(--ease),
    color var(--base) var(--ease), transform var(--fast) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn .arrow { transition: transform var(--base) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-solid { background: var(--ink); color: var(--bone); }
.btn-solid:hover { background: #2b2926; }
.btn-line { border-color: rgba(18, 17, 16, 0.3); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); background: var(--ink); color: var(--bone); }

.on-ink .btn-solid { background: var(--bone); color: var(--ink); }
.on-ink .btn-solid:hover { background: #fff; }
.on-ink .btn-line { border-color: rgba(237, 235, 231, 0.34); color: var(--bone); }
.on-ink .btn-line:hover { border-color: var(--bone); background: var(--bone); color: var(--ink); }

.btn-sm { height: 42px; padding: 0 20px; font-size: 14.5px; }

.text-link {
  color: inherit; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
  transition: opacity var(--fast) var(--ease);
}
.text-link:hover { opacity: 0.6; }

/* ---------- nav ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  color: var(--ink);
  transition: background-color var(--base) var(--ease), color var(--base) var(--ease), box-shadow var(--base) var(--ease);
}
.nav-inner {
  max-width: var(--wrap); height: var(--nav-h);
  margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 40px;
}
.brand { display: block; flex: none; }
.brand img { height: 28px; width: auto; }
.brand .logo-light { display: none; }

.nav-menu { flex: 1; display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 32px; margin-left: auto; }
.nav-links a, .nav-login {
  position: relative;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; opacity: 0.9;
  transition: opacity var(--fast) var(--ease);
}
.nav-links a:hover, .nav-login:hover { opacity: 1; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--base) var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }
/* the section you are in */
.nav-links a.is-current { opacity: 1; }
.nav-links a.is-current::after { transform: scaleX(1); }
.nav-toggle:active { transform: scale(0.94); }
.nav-actions { display: flex; align-items: center; gap: 26px; }

/* over the dark hero: bone text and the light logo, until the page scrolls */
.nav.on-dark:not(.scrolled):not(.open) { color: var(--bone); }
.nav.on-dark:not(.scrolled):not(.open) .logo-dark { display: none; }
.nav.on-dark:not(.scrolled):not(.open) .logo-light { display: block; }
.nav.on-dark:not(.scrolled):not(.open) .btn-solid { background: var(--bone); color: var(--ink); }
.nav.on-dark:not(.scrolled):not(.open) .nav-toggle { border-color: var(--bone-line); }

.nav.scrolled, .nav.open {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(1.3) blur(16px);
  backdrop-filter: saturate(1.3) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-toggle {
  display: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 16px; height: 1px; background: currentColor;
  transition: transform var(--base) var(--ease), background-color var(--fast) var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--bg); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(18, 17, 16, 0.3);
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), visibility 0s linear var(--base);
  }
  .nav.open .nav-menu {
    opacity: 1; transform: none; pointer-events: auto; visibility: visible;
    transition: opacity var(--base) var(--ease), transform var(--base) var(--ease);
  }
  .nav-links { flex-direction: column; gap: 0; margin: 0; }
  .nav-links a { display: block; padding: 18px 0; font-size: 19px; opacity: 1; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav-actions { flex-direction: column-reverse; align-items: stretch; gap: 14px; padding-top: 24px; }
  .nav-actions .btn { height: 50px; }
  .nav-login { text-align: center; padding: 8px; opacity: 1; }
}

/* ---------- hero ---------- */

/* The hero is as tall as its contents plus the padding on .hero-inner, and no
   taller. It used to stretch to the full height of the window, which on a large
   screen left a wide empty band above and below the product (136px each at
   1920 × 1080). Victor asked twice for that space to go; don't bring back a
   full-window height. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--ink); color: var(--bone);
}
/* the floor falling away into shadow */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(to bottom, rgba(18, 17, 16, 0) 62%, #0c0b0a 100%);
}
/* Studio light: one soft lamp behind the product. With a mouse it leans a little
   toward the pointer, like a light being moved (site.js); otherwise it stays put.
   It is 20% wider and taller than the hero so that moving it never shows an edge;
   the numbers below place its centre at 70% across and 44% down the hero. */
.hero-lamp {
  position: absolute; inset: -10%; z-index: -2; pointer-events: none;
  background: radial-gradient(48.3% 50% at 66.7% 45%, #37322d 0%, #201e1b 44%, rgba(18, 17, 16, 0) 76%);
}
/* the big word behind everything */
.hero-ghost {
  position: absolute; left: 50%; top: 45%; z-index: -1;
  transform: translate(-50%, -50%);
  font-weight: 600; font-size: 14.2vw; line-height: 0.8;
  letter-spacing: -0.03em; text-transform: uppercase; white-space: nowrap;
  color: transparent;
  background: linear-gradient(to bottom, rgba(237, 235, 231, 0.085), rgba(237, 235, 231, 0.015));
  -webkit-background-clip: text; background-clip: text;
  user-select: none; pointer-events: none;
}
.hero-inner {
  flex: 1; width: 100%;
  max-width: var(--wrap); margin: 0 auto;
  /* the breathing room above and below the content: about 64px on a laptop, 86px on
     a large screen, never more than 96px. Victor's call (2026-11-19), settled in
     three steps: a bit of room, not a lot. */
  padding: calc(var(--nav-h) + clamp(52px, 8vh, 96px)) var(--gutter) clamp(52px, 8vh, 96px);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 72px); align-items: center;
}
.hero .display { font-size: clamp(40px, 5.1vw, 82px); }
.hero-copy .label { display: inline-flex; align-items: center; gap: 12px; }
.hero-copy .label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.hero-copy .display { margin: 28px 0 28px; }
.hero-copy .lede { margin-bottom: 40px; max-width: 40ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stage { position: relative; min-width: 0; }
/* The stand-in drawing is cropped close (see its viewBox in index.html) so the
   product fills this slot: the drawing's own margins used to leave an empty
   band above and below it. */
.hero-obj {
  width: 100%; max-width: 660px; margin: 0 auto;
  aspect-ratio: 420 / 372; max-height: 56svh;
}
.hero-obj svg { width: 100%; height: 100%; overflow: visible; transform-origin: 50% 86%; transition: transform var(--slow) var(--ease); }
.hero-obj.is-small svg { transform: scale(0.84); }

/* the finish bar: what a configurator is, in one line */
.finish {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px 28px;
  margin: 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--bone-line);
}
.finish-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; min-width: 0; }
.finish-group { display: flex; align-items: center; gap: 14px; border: 0; margin: 0; padding: 0; min-width: 0; }
.finish-group legend { float: left; padding: 0; margin-right: 14px; font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-soft); }
.finish label { position: relative; cursor: pointer; display: block; }
.finish input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dot {
  display: block; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  outline: 1px solid transparent; outline-offset: 4px;
  transition: outline-color var(--base) var(--ease), transform var(--fast) var(--ease);
}
.finish label:hover .dot { transform: scale(1.1); }
.finish input:checked + .dot { outline-color: var(--bone); }
.finish input:focus-visible + .dot { outline-color: var(--orange); }
.seg {
  display: block; padding: 4px 0; font-size: 14px; font-weight: 500; letter-spacing: -0.005em;
  color: var(--bone-mute); border-bottom: 1px solid transparent;
  transition: color var(--base) var(--ease), border-color var(--base) var(--ease);
}
.finish label:hover .seg { color: var(--bone); }
.finish input:checked + .seg { color: var(--bone); border-bottom-color: var(--bone); }
.finish input:focus-visible + .seg { outline: 1.5px solid var(--orange); outline-offset: 4px; }
.finish-name {
  font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em; color: var(--bone);
  padding: 7px 14px; border: 1px solid var(--bone-line); border-radius: 999px; white-space: nowrap;
}
.finish-price { text-align: right; }
.finish-price output { display: block; font-size: 27px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--bone); }
.finish-price small { display: block; margin-top: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-mute); }

.hero-foot {
  width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
}
.hero-foot div {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px;
  padding: 20px 0 24px; border-top: 1px solid var(--bone-line);
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-mute);
}
.hero-foot strong { font-weight: 500; color: var(--bone); }
.hero-foot .scroll { margin-left: auto; color: inherit; text-decoration: none; transition: color var(--fast) var(--ease); }
.hero-foot .scroll:hover { color: var(--bone); }

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--nav-h) + 36px); }
  .hero-copy .display { max-width: none; }
  .hero-ghost { top: 58%; font-size: 26vw; }
  .hero-obj { max-height: none; max-width: 520px; }
  .hero-foot .scroll { display: none; }
}
@media (max-width: 560px) {
  .finish { grid-template-columns: minmax(0, 1fr); }
  .finish-price { text-align: left; }
}

/* the stand-in object — colours are registered so a finish change fades */
@property --f { syntax: "<color>"; inherits: true; initial-value: #cfc4b0; }
.obj { --f: #cfc4b0; transition: --f var(--slow) var(--ease); }
.obj-fill { fill: var(--f); }

/* load-in for the top of each page (everything else reveals on scroll) */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.rise { animation: rise var(--slow) var(--ease) backwards; animation-delay: var(--d, 0ms); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero-ghost { animation: fade 1600ms var(--ease) 200ms backwards; }

/* Only the big image blocks reveal on scroll. Text is simply there: animating
   every section made the page feel slow, and looked like a template. */
.js .works > .reveal, .js .studio-pic.reveal, .js .cal.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .works > .reveal.in, .js .studio-pic.reveal.in, .js .cal.reveal.in { opacity: 1; transform: none; }

/* ---------- sections ---------- */

.section { padding-top: var(--section); }

/* label on the left, content on the right, a hairline above: the page's rhythm */
.split {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 20px clamp(24px, 4vw, 64px);
  padding-top: 22px; border-top: 1px solid var(--line);
}
.split > .label { padding-top: 6px; }
.split .h2 + .lede { margin-top: 26px; }
.on-ink .split { border-top-color: var(--bone-line); }
.block { margin-top: clamp(48px, 6vw, 88px); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- the problem ---------- */

/* One sum across the page: 12 × 4 × 3 = 144. The × and = are large, at the height
   of the numbers, because Victor found the first version's small signs (19px, on
   dividing lines) hard to read. */
.sum {
  --n: clamp(52px, 7.6vw, 124px);   /* the size of the numbers */
  display: flex; align-items: flex-start; justify-content: space-between; gap: clamp(10px, 2vw, 32px);
  padding: clamp(28px, 3.4vw, 52px) 0 clamp(24px, 3vw, 44px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.sum-term b {
  display: block; font-weight: 500; font-size: var(--n);
  line-height: 0.9; letter-spacing: -0.055em; color: var(--ink);
}
.sum-term .label { display: block; margin-top: 18px; }
.sum-op {
  flex: none; display: grid; place-items: center; height: calc(var(--n) * 0.9);
  font-size: calc(var(--n) * 0.62); line-height: 1; color: var(--orange);
}
/* Drawn signs. width sets their size, stroke-width their thickness; the two are
   independent, so a sign can be made slimmer without getting smaller. */
.sum-op svg {
  width: calc(var(--n) * 0.3); height: calc(var(--n) * 0.3); overflow: visible;
  fill: none; stroke: currentColor; stroke-width: calc(var(--n) * 0.03); vector-effect: non-scaling-stroke;
}
.sum-op path { vector-effect: non-scaling-stroke; }
.sum-note { margin-top: 22px; color: var(--soft); max-width: 62ch; }
/* On a phone it is written the way you would on paper: one line per number,
   the sign in front, and a rule above the answer. */
@media (max-width: 720px) {
  .sum { --n: clamp(52px, 15vw, 68px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px 0; align-items: stretch; padding: 26px 0; }
  .sum-term { display: flex; align-items: baseline; gap: 16px; }
  .sum-term:first-child { grid-column: 2; }
  .sum-term .label { margin-top: 0; }
  .sum-op { height: auto; min-width: 0.9em; padding-right: 16px; place-items: center start; }
  /* the two cells of the last row share one unbroken rule */
  .sum-eq, .sum-total { padding-top: 18px; border-top: 1px solid var(--line); }
}

.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px clamp(24px, 4vw, 64px); }
.col .label { color: var(--mute); }
.col .h3 { margin: 16px 0 10px; }
.col p { color: var(--soft); font-size: 16.5px; max-width: 36ch; }
@media (max-width: 860px) { .cols3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- how it works: a spec table ---------- */

.rows { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 12px clamp(20px, 3vw, 48px); align-items: baseline;
  padding: clamp(26px, 3vw, 40px) 0; border-top: 1px solid var(--line);
}
.row .label { color: var(--mute); }
.row h3 { font-weight: 500; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.12; letter-spacing: -0.03em; color: var(--ink); }
.row p { color: var(--soft); max-width: 48ch; }
@media (max-width: 720px) { .row { grid-template-columns: 44px minmax(0, 1fr); } .row p { grid-column: 2; } }

/* ---------- showcase ---------- */

.works { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(36px, 4vw, 64px) clamp(16px, 2vw, 28px); }
.works > :nth-child(4n + 1), .works > :nth-child(4n + 4) { grid-column: span 7; }
.works > :nth-child(4n + 2), .works > :nth-child(4n + 3) { grid-column: span 5; }
@media (max-width: 860px) { .works > * { grid-column: 1 / -1 !important; } }

.work { display: block; text-decoration: none; color: inherit; }
.work-media {
  position: relative; overflow: hidden;
  height: clamp(300px, 36vw, 560px);
  background: radial-gradient(75% 70% at 50% 38%, #eeece8 0%, var(--stage) 62%, #d6d2cb 100%);
}
.work-media > img, .work-media > svg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms var(--ease);
}
.work-media > svg { inset: 9% 16% 4%; width: auto; height: auto; }
/* A second picture on hover. Put two pictures straight inside a showcase tile's
   .work-media, or inside a .tile: the first shows at rest and the second fades in
   while the pointer is over it (on a phone, on a tap — see site.js). Two only:
   Victor wanted one alternative image, not a tile that cycles through several. */
.work-media > :is(img, svg) ~ :is(img, svg), .tile > :is(img, svg) ~ :is(img, svg) {
  opacity: 0; transition: opacity 450ms var(--ease), transform 600ms var(--ease);
}
.work-media.is-alt > :is(img, svg) ~ :is(img, svg), .tile.is-alt > :is(img, svg) ~ :is(img, svg) { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .work:hover .work-media > :is(img, svg) ~ :is(img, svg), .tile:hover > :is(img, svg) ~ :is(img, svg) { opacity: 1; }
}

/* a tile with no picture yet: a faint spade in the middle, so it reads as a frame
   waiting for its render and not as something broken */
.empty-mark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(40px, 4.4vw, 64px); aspect-ratio: 1;
  background: var(--ink); opacity: 0.13;
  -webkit-mask: url("/assets/aceloop-spade-light.svg") center / contain no-repeat;
  mask: url("/assets/aceloop-spade-light.svg") center / contain no-repeat;
}
.tile-dark .empty-mark { background: var(--bone); opacity: 0.2; }
/* a note to ourselves about what to render in a slot — only used on the
   project page template, which is not published */
.slot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  text-align: center; font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute);
  line-height: 1.9;
}
.slot b { display: block; font-weight: 500; color: var(--soft); }
.work-tag {
  position: absolute; left: 16px; top: 16px;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
  padding: 7px 12px; border-radius: 999px; background: rgba(248, 247, 244, 0.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.work-go {
  position: absolute; right: 16px; bottom: 16px;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--bone);
  transition: opacity var(--base) var(--ease), transform var(--base) var(--ease), background-color var(--base) var(--ease);
}
a.work:active .work-go { transform: scale(0.94); }
/* With a mouse the arrow waits for the hover. Every tile has it, even one whose
   project page is not built yet and so is not a link (Victor's call, 2026-11-19).
   On a touch screen there is no hover, so the arrow is simply there on a real
   link, and left out on the others, where a tap swaps the picture instead. */
@media (hover: hover) and (pointer: fine) {
  .work-go { opacity: 0; transform: translateY(8px); }
  .work:hover .work-go, a.work:focus-visible .work-go { opacity: 1; transform: none; }
  .work:hover .work-media > img, .work:hover .work-media > svg { transform: scale(1.035); }
}
@media not all and (hover: hover) and (pointer: fine) { article.work .work-go { display: none; } }
.work-cap { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-top: 18px; }
.work-cap .h3 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 500; }
.work-cap .label { text-align: right; flex: none; }

.work-cta {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 22px;
  height: clamp(300px, 36vw, 560px);
  padding: clamp(28px, 4vw, 56px);
  background: var(--ink); color: var(--bone);
}
.work-cta .h2 { font-size: clamp(32px, 3.7vw, 54px); }
.work-cta p { color: var(--bone-soft); max-width: 40ch; }
@media (max-width: 860px) { .work-cta { height: auto; min-height: 320px; } }

/* ---------- features: a spec sheet ---------- */

.spec + .spec { margin-top: clamp(40px, 5vw, 72px); }
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spec-grid > div { padding: 4px clamp(16px, 2vw, 32px) 4px; border-left: 1px solid var(--line); }
.spec-grid > div:first-child { border-left: 0; padding-left: 0; }
.spec-grid h3 { font-size: 18px; font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 10px; }
.spec-grid p { font-size: 15.5px; color: var(--soft); }
/* One drawn set (2026-11-19): fine 1.25px lines on a 32px grid, like a furniture
   spec sheet, using things from the furniture world where it can (swatches, a
   sofa with a dimension line, a price tag, a shopfront). Shapes with class "bg"
   are filled with the page colour so overlapping lines hide behind them. */
.spec-grid .icon { display: block; width: 32px; height: 32px; margin-bottom: 24px; color: var(--ink); }
.spec-grid .icon .bg { fill: var(--bg); }
.spec-grid .icon svg { width: 100%; height: 100%; }
@media (max-width: 1020px) {
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .spec-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) {
  .spec-grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .spec-grid > div { border-left: 0; padding-left: 0; }
}

/* ---------- studio ---------- */

/* Two panels, each a picture on the left with its own text on the right (Victor,
   2026-11-19). The first holds the lifestyle render, the bigger picture, across
   the whole picture column. The second holds the studio shot, narrower and set
   against the text, which swaps to the clay render on hover. Tried before this
   and rejected: the two pictures small side by side, full width under the
   heading, and the lifestyle render overlapping the studio shot. */
.studio { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); gap: 32px clamp(32px, 5vw, 88px); align-items: center; }
.studio + .studio { margin-top: clamp(64px, 8vw, 120px); }
.studio-pic .tile-life { aspect-ratio: 3 / 2; }
.studio-pic .tile-shot { aspect-ratio: 4 / 5; width: 60%; margin-left: auto; }
@media (max-width: 940px) { .studio { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .studio-pic .tile-life { aspect-ratio: 4 / 3; }
  .studio-pic .tile-shot { width: 72%; }
}
.tile {
  position: relative; overflow: hidden;
  background: radial-gradient(75% 70% at 50% 38%, #eeece8 0%, var(--stage) 62%, #d6d2cb 100%);
}
.tile > img, .tile > svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-tall { aspect-ratio: 4 / 5; }
.tile-small { aspect-ratio: 3 / 4; }
.tile-wide { aspect-ratio: 3 / 2; }
.tile-dark { background: radial-gradient(70% 60% at 50% 40%, #37322d 0%, #1d1b19 60%, #121110 100%); }
/* A small label in the corner of a tile. With two <span>s inside, the second one
   shows while the tile's second picture does ("Final render" / "Clay render"). */
.tile-tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 1; pointer-events: none;
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text);
  padding: 7px 12px; border-radius: 999px; background: rgba(248, 247, 244, 0.78);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tile-tag span + span, .tile.is-alt .tile-tag span:first-child:not(:only-child) { display: none; }
.tile.is-alt .tile-tag span + span { display: inline; }
@media (hover: hover) and (pointer: fine) {
  .tile:hover .tile-tag span:first-child:not(:only-child) { display: none; }
  .tile:hover .tile-tag span + span { display: inline; }
}

.tile-dark .slot { color: var(--bone-mute); }
.tile-dark .slot b { color: var(--bone-soft); }
.studio-copy .h2 { margin: 24px 0 24px; }
.studio-copy > .h2:first-child { margin-top: 0; font-size: clamp(27px, 2.8vw, 42px); }
.studio-copy > p:not(.label):not(.lede) { color: var(--soft); max-width: 44ch; }
/* "Hover over (or tap) the picture…" only shows once the studio shot really has
   its two pictures, so the page never invites a hover that does nothing. */
.hover-hint { display: none; margin-top: 12px; }
.studio:has(.tile > :is(img, svg) ~ :is(img, svg)) .hover-hint { display: block; }
.say-hover { display: none; }
@media (hover: hover) and (pointer: fine) { .say-hover { display: inline; } .say-tap { display: none; } }
.studio-list { margin: 36px 0 40px; border-bottom: 1px solid var(--line); }
.studio-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16.5px; font-weight: 500; color: var(--ink); }
.studio-list span { color: var(--mute); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; }

/* ---------- pricing ---------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3vw, 44px) clamp(20px, 2.6vw, 40px) clamp(28px, 3vw, 40px); }
.plan + .plan { border-left: 1px solid var(--line); }
.plan:first-child { padding-left: 0; }
.plan:last-child { padding-right: 0; }
.plan-name { display: flex; justify-content: space-between; gap: 12px; }
.plan-for { margin-top: 18px; font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); max-width: 20ch; }
.plan-price { margin: 40px 0 8px; display: flex; align-items: baseline; gap: 10px; }
.plan-price b { font-weight: 500; font-size: clamp(44px, 4.2vw, 62px); line-height: 1; letter-spacing: -0.045em; color: var(--ink); }
.plan-note { font-size: 14.5px; color: var(--mute); margin-bottom: 30px; }
.plan ul { margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.plan li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; }
.plan .btn { margin-top: auto; width: 100%; }

.plan-featured { background: var(--ink); padding-left: clamp(20px, 2.6vw, 40px) !important; padding-right: clamp(20px, 2.6vw, 40px) !important; border-left: 0 !important; margin: -1px 0; }
.plan-featured + .plan { border-left: 0; }
.plan-featured .plan-for, .plan-featured .plan-price b, .plan-featured li { color: var(--bone); }
.plan-featured .plan-note { color: var(--bone-mute); }
.plan-featured ul, .plan-featured li { border-color: var(--bone-line); }
.plan-flag { color: var(--orange) !important; }
.plans-foot { margin-top: 22px; font-size: 14.5px; color: var(--mute); }
@media (max-width: 940px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { padding-left: 0; padding-right: 0; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- faq ---------- */

.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0;
  font-weight: 500; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink);
}
.qa summary::-webkit-details-marker { display: none; }
.qa .plus { position: relative; flex: none; width: 16px; height: 16px; }
.qa .plus::before, .qa .plus::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1.5px;
  background: var(--ink); transition: transform var(--base) var(--ease);
}
.qa .plus::after { transform: rotate(90deg); }
.qa[open] .plus::after { transform: rotate(0deg); }
.qa p { padding: 0 48px 30px 0; color: var(--soft); max-width: 62ch; }
/* the answer slides open where the browser can do it; elsewhere it just appears */
@supports (interpolate-size: allow-keywords) {
  .qa { interpolate-size: allow-keywords; }
  .qa::details-content {
    block-size: 0; overflow: clip;
    transition: block-size 220ms var(--ease), content-visibility 220ms allow-discrete;
  }
  .qa[open]::details-content { block-size: auto; transition-duration: 280ms; }
}
.faq-more { margin-top: 26px; color: var(--soft); font-size: 16px; }

/* ---------- closing block: book a call + footer, on ink ---------- */

.close { margin-top: var(--section); background: var(--ink); color: var(--bone); position: relative; isolation: isolate; overflow: hidden; }
.close::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 44% at 76% 26%, #2f2b27 0%, rgba(18, 17, 16, 0) 72%);
}
.book { padding: clamp(88px, 11vw, 168px) 0 clamp(72px, 9vw, 136px); }
.book-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 104px); align-items: center; }
.book .display { margin: 28px 0 30px; font-size: clamp(42px, 5.6vw, 92px); }
.book .lede { margin-bottom: 36px; }
.checks { margin-bottom: 44px; border-bottom: 1px solid var(--bone-line); max-width: 520px; }
.checks li { display: flex; gap: 20px; padding: 14px 0; border-top: 1px solid var(--bone-line); font-size: 16.5px; }
.checks span { color: var(--bone-mute); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; padding-top: 4px; }
.book-alt { margin-top: 24px; font-size: 15px; color: var(--bone-mute); }
.book-alt a { color: var(--bone); }

.cal { position: relative; background: var(--white); color: var(--text); padding: 30px 28px 28px; }
/* until the real booking embed exists: an honest line, over a faded drawing */
.cal-soon { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; color: var(--soft); }
.cal-soon b { display: block; font-weight: 500; font-size: 17px; letter-spacing: -0.012em; color: var(--ink); }
.cal-body { opacity: 0.4; pointer-events: none; user-select: none; }
.cal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cal-top h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
.cal-top span, .cal-sub, .cal-month { font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.cal-sub { margin: 6px 0 26px; }
.cal-month { display: flex; justify-content: space-between; color: var(--ink); margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.cal-grid .dow { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); padding: 6px 0 10px; }
.cal-grid span:not(.dow) { display: grid; place-items: center; height: clamp(34px, 3.2vw, 42px); border-radius: 50%; font-size: 14px; color: #bbb7b0; }
.cal-grid span.open { color: var(--ink); font-weight: 500; }
.cal-grid span.picked { background: var(--ink); color: var(--bone); aspect-ratio: 1; margin: 0 auto; }
.cal-times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.cal-times span { text-align: center; padding: 11px 0; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--text); }
.cal-times span:first-child { border-color: var(--ink); background: var(--ink); color: var(--bone); }
@media (max-width: 940px) { .book-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .cal { padding: 24px 18px; } .cal-times { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.footer { padding: 0 0 34px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 6fr) repeat(3, minmax(0, 2fr)); gap: 40px; padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--bone-line); }
.footer .brand img { height: 32px; }
.decoder { margin-top: 20px; font-weight: 400; font-size: 18px; line-height: 1.45; letter-spacing: -0.01em; color: var(--bone-soft); max-width: 24ch; }
.footer h4 { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-mute); margin-bottom: 20px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 16px; color: var(--bone-soft); text-decoration: none; transition: color var(--fast) var(--ease); }
.footer-col a:hover { color: var(--bone); }
.footer-base {
  margin-top: clamp(56px, 7vw, 104px);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-mute);
}
.footer-base i { color: var(--orange); font-style: normal; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- project (case study) page ---------- */

.cs-head { padding: calc(var(--nav-h) + clamp(48px, 7vw, 112px)) 0 clamp(40px, 5vw, 72px); }
.crumbs { display: flex; gap: 12px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.cs-head .display { margin: 30px 0 30px; max-width: 12em; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(44px, 5vw, 80px); border-top: 1px solid var(--line); }
.facts > div { padding: 20px clamp(16px, 2vw, 32px) 0; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { margin-bottom: 12px; }
.facts dd { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .facts > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* the stage for the live configurator: full width, on ink */
.cs-stage { background: var(--ink); color: var(--bone); padding: clamp(16px, 2.4vw, 36px); }
.stage-slot {
  min-height: clamp(440px, 56vw, 760px);
  border: 1px dashed rgba(237, 235, 231, 0.22);
  display: grid; place-items: center; text-align: center; padding: 32px;
  background: radial-gradient(46% 50% at 50% 46%, #332f2a 0%, rgba(18, 17, 16, 0) 74%);
}
.stage-slot .spade { width: 56px; margin: 0 auto 26px; }
.stage-slot p { color: var(--bone-soft); max-width: 40ch; margin: 0 auto; }
.stage-slot code {
  display: inline-block; margin-top: 22px; padding: 10px 16px; border: 1px solid var(--bone-line); border-radius: 999px;
  color: var(--bone-soft); font: 400 12.5px/1.5 ui-monospace, Consolas, monospace; max-width: 100%; overflow-wrap: anywhere;
}

.story-part + .story-part { margin-top: clamp(64px, 8vw, 120px); }
.story-part .h2 { font-size: clamp(28px, 3.1vw, 46px); }
.story-part .h2 + p { margin-top: 26px; }
.story-part > div > p { color: var(--soft); max-width: 60ch; font-size: 18px; }
.story-part > div > p + p { margin-top: 16px; }
.gallery { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(12px, 1.6vw, 24px); margin-top: 40px; align-items: end; }
@media (max-width: 720px) { .gallery { grid-template-columns: minmax(0, 1fr); } }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-weight: 500; font-size: clamp(40px, 4.4vw, 66px); line-height: 1; letter-spacing: -0.045em; color: var(--ink); }
.stat span { display: block; margin-top: 14px; font-size: 15.5px; color: var(--soft); }
@media (max-width: 640px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { border-left: 0; padding-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
}
.quote { margin: clamp(48px, 6vw, 88px) 0 0; }
.story-part .quote p { font-weight: 500; font-size: clamp(23px, 2.5vw, 36px); line-height: 1.25; letter-spacing: -0.03em; color: var(--ink); max-width: 22em; }
.quote cite { display: block; margin-top: 22px; font-style: normal; }

/* ---------- contact: the tab on the right edge and its slide-in panel ----------
   Both are built by site.js, so every page gets the same one. */

.contact-tab {
  position: fixed; right: -4px; top: 50%; z-index: 40;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 18px 17px 20px 13px;
  background: var(--ink); color: var(--bone);
  border: 1px solid rgba(237, 235, 231, 0.22); border-right: 0; border-radius: 0;
  font: 500 12px/1 var(--font); letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--base) var(--ease), opacity var(--base) var(--ease);
  animation: tab-in var(--slow) var(--ease) 900ms backwards;
}
@keyframes tab-in { from { transform: translate(100%, -50%); } }
.contact-tab svg { width: 18px; height: 18px; }
.contact-tab span { writing-mode: vertical-rl; }
.contact-tab:active { transform: translate(2px, -50%); }
@media (hover: hover) and (pointer: fine) { .contact-tab:hover { transform: translate(-4px, -50%); } }
html:has(.contact[open]) { overflow: hidden; }
html:has(.contact[open]) .contact-tab { opacity: 0; pointer-events: none; }
@media (max-width: 560px) { .contact-tab { padding: 14px 13px 16px 10px; font-size: 11px; gap: 10px; } .contact-tab svg { width: 16px; height: 16px; } }

.contact {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(560px, calc(100vw - 40px)); max-width: none;
  height: 100dvh; max-height: none;
  padding: 0; border: 0;
  background: var(--bg); color: var(--text);
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform 260ms var(--ease);            /* leaving is quicker than arriving */
}
.contact.is-open {
  transform: none;
  transition: transform 460ms cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -40px 0 90px -40px rgba(18, 17, 16, 0.55);
}
.contact::backdrop { background: rgba(18, 17, 16, 0); transition: background-color 260ms ease; }
.contact.is-open::backdrop { background: rgba(18, 17, 16, 0.56); transition-duration: 460ms; }

.contact-inner {
  min-height: 100%; display: flex; flex-direction: column;
  padding: clamp(22px, 3.4vw, 40px) clamp(22px, 4vw, 48px) clamp(28px, 4vw, 44px);
}
.contact-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: clamp(28px, 6vh, 64px); }
.contact-close {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
  transition: background-color var(--base) var(--ease), color var(--base) var(--ease), border-color var(--base) var(--ease), transform var(--fast) var(--ease);
}
.contact-close:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.contact-close:active { transform: scale(0.94); }
.contact .h2 { font-size: clamp(30px, 3vw, 42px); }
.contact .lede { margin: 18px 0 36px; font-size: 17px; }

.field { display: block; margin-bottom: 20px; }
.field .label { display: block; margin-bottom: 9px; }
.field input, .field textarea {
  display: block; width: 100%;
  font: 400 17px/1.45 var(--font); color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 2px;
  padding: 15px 16px; -webkit-appearance: none; appearance: none;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.field textarea { min-height: 136px; resize: vertical; }
.field ::placeholder { color: var(--mute); }
.field input:hover, .field textarea:hover { border-color: rgba(18, 17, 16, 0.34); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.contact-form .btn { width: 100%; height: 56px; margin-top: 4px; }
.contact-note { margin-top: 14px; font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.contact-links { margin-top: auto; padding-top: 44px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- motion preferences ---------- */

/* Reduced motion means calmer, not abrupt: things fade, nothing slides or scales. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .hero-ghost, .contact-tab { animation: fade 400ms ease backwards; }
  .js .works > .reveal, .js .studio-pic.reveal, .js .cal.reveal { transform: none; transition: opacity 300ms ease; }
  .btn:active, .nav-toggle:active, .contact-close:active, a.work:active .work-go { transform: none; }
  .contact-tab:active, .contact-tab:hover { transform: translateY(-50%); }
  .work:hover .work-media > img, .work:hover .work-media > svg { transform: none; }
  .hero-obj svg, .btn .arrow { transition: none; }
  .contact { transform: none; opacity: 0; transition: opacity 200ms ease; }
  .contact.is-open { opacity: 1; transition: opacity 200ms ease; }
  .qa::details-content { transition: none; }
}
