/* Crumbella by Ireen
   Layout: a fixed 3D stage (the workbench) under scrolling editorial sheets;
   espresso-dark neutrals, crisp white type, electric blue reserved for CTAs, active states and hover. */
:root {
  color-scheme: dark;
  --bg: #0d0907;          /* walnut-black workshop wall */
  --bg-raise: #15100c;    /* bench top */
  --bg-deep: #070504;
  --cocoa: #2a1c14;       /* warm structural brown */
  --line: rgba(240, 226, 210, 0.10);
  --line-2: rgba(240, 226, 210, 0.22);
  --text: #f7f4ef;        /* crisp white */
  --muted: #b6a899;
  --faint: #7c6f64;
  --accent: #3d7eff;      /* the neon through the window */
  --accent-hi: #74a2ff;
  --accent-glow: rgba(61, 126, 255, 0.45);
  --on-accent: #ffffff;

  --display: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 64px);
  --nav-h: 76px;
  --ease: cubic-bezier(0.19, 0.8, 0.22, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
body::before { /* the desk lamp, warm pool of light top right */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 78% 30%, rgba(176, 104, 46, 0.16), transparent 62%),
    radial-gradient(70vmax 60vmax at 10% 110%, rgba(64, 36, 20, 0.35), transparent 60%),
    radial-gradient(120vmax 90vmax at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.55));
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; margin: 0; }
p { margin: 0; text-wrap: pretty; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

[hidden] { display: none !important; }
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: .6rem 1rem; background: var(--accent); color: var(--on-accent);
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  display: flex; align-items: center; gap: .9rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: var(--line-2); flex: none; }

.section-title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.section-title em, .step__title em { font-weight: 400; color: var(--muted); }

/* ---------- Buttons & links ---------- */
.btn {
  --bd: var(--line-2);
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--bd); border-radius: 999px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .35s var(--ease), box-shadow .5s var(--ease), color .3s, border-color .3s, transform .5s var(--ease);
}
.btn span { transition: transform .5s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn--primary {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent);
  box-shadow: 0 0 0 0 rgba(61, 126, 255, 0), 0 12px 44px -14px var(--accent-glow);
}
.btn--primary:hover {
  background: #4f8bff;
  box-shadow: 0 0 0 6px rgba(61, 126, 255, 0.14), 0 16px 60px -12px var(--accent-glow);
}
.btn--sm { padding: .7rem 1.1rem; font-size: .68rem; }

.link {
  position: relative; display: inline-flex; gap: .5rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  padding-block: .35rem;
  transition: color .3s;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(.35); opacity: .6;
  transition: transform .6s var(--ease), background-color .3s;
}
.link:hover { color: var(--accent-hi); }
.link:hover::after { transform: scaleX(1); transform-origin: left; opacity: 1; }
.details .link, .details a.link { text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 1rem; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: var(--bg-deep);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.2s var(--ease-io) .1s;
}
.is-loaded .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__inner { width: min(420px, calc(100vw - 32px)); display: grid; gap: 1.25rem; }
.loader__label, .loader__foot { color: var(--muted); }
.loader__foot { display: flex; justify-content: space-between; color: var(--faint); }
.loader__temp {
  font-family: var(--display); font-size: clamp(5rem, 18vw, 9rem); line-height: .9;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.loader__unit { font-size: .32em; vertical-align: top; margin-left: .15em; color: var(--muted); letter-spacing: 0; }
.loader__bar { height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; background: var(--text); transform-origin: left; transform: scaleX(0); }

/* ---------- 3D stage ---------- */
.stage { position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100lvh; z-index: 1; pointer-events: none; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dial {
  position: absolute; left: 0; top: 0; width: 600px; height: 600px;
  color: var(--text); opacity: 0; will-change: transform, opacity; overflow: visible;
}
.dial text { font-family: var(--mono); font-size: 9.5px; letter-spacing: 3.2px; fill: currentColor; }
.dial .dial__num { font-family: var(--display); font-size: 26px; font-style: italic; letter-spacing: 0; }
.stage__fallback { display: none; }
.no-webgl .stage__fallback {
  display: block; position: absolute; right: 4vw; top: 50%; width: min(46vw, 640px);
  transform: translateY(-50%) rotate(-8deg); opacity: .9;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .6));
}
.no-webgl .process .process__sticky { background: linear-gradient(90deg, var(--bg) 40%, transparent); }

.grain {
  position: fixed; inset: -50%; z-index: 120; pointer-events: none; opacity: .07;
  background-image: 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Cursor follower ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 130; pointer-events: none;
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 1px solid rgba(247, 244, 239, .5);
  display: grid; place-items: center;
  opacity: 0; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), border-color .3s, background-color .3s, opacity .3s;
}
.has-cursor .cursor { opacity: 1; }
.cursor.is-link { border-color: var(--accent); background: rgba(61, 126, 255, .08); }
.cursor.is-label { width: 86px; height: 86px; margin: -43px 0 0 -43px; border-color: var(--accent); background: rgba(61, 126, 255, .16); backdrop-filter: blur(2px); }
.cursor__label { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text); opacity: 0; transition: opacity .3s; }
.cursor.is-label .cursor__label { opacity: 1; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 100;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  transition: background-color .5s, border-color .5s, transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(13, 9, 7, .72); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: inline-flex; align-items: baseline; gap: .45rem; justify-self: start; }
.nav__mark { font-family: var(--display); font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; }
.nav__brand em { font-family: var(--display); font-size: 1rem; color: var(--muted); }
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2.4rem); }
.nav__links a, .menu nav a {
  position: relative; display: inline-flex; align-items: baseline; gap: .45rem;
  font-size: .9rem; color: var(--muted); padding-block: .4rem; transition: color .3s;
}
.nav__links a .mono, .menu nav a .mono { font-size: .6rem; color: var(--faint); transition: color .3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent); transform: translateX(-50%) scale(0);
  transition: transform .4s var(--ease);
}
.nav__links a:hover, .menu nav a:hover { color: var(--accent-hi); }
.nav__links a.is-active, .menu nav a.is-active { color: var(--accent-hi); }
.nav__links a.is-active .mono, .menu nav a.is-active .mono { color: var(--accent); }
.nav__links a.is-active::after { transform: translateX(-50%) scale(1); }
.nav__meta { display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem; }
.nav__clock { color: var(--muted); }
.nav__clock time { color: var(--text); }
.preview-badge {
  padding: .3rem .6rem; border: 1px solid var(--line-2); border-radius: 999px;
  color: var(--muted); font-size: .56rem; letter-spacing: .12em; white-space: nowrap;
}
.nav__menu { display: none; padding: .6rem 1rem; border: 1px solid var(--line-2); border-radius: 999px; transition: border-color .3s, color .3s; }
.nav__menu:hover { border-color: var(--accent); color: var(--accent-hi); }

.menu[hidden] { display: none; }
.menu {
  position: fixed; inset: 0; z-index: 90;
  padding: calc(var(--nav-h) + env(safe-area-inset-top, 0px) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 7, 5, .97);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.menu nav { display: grid; gap: .25rem; }
.menu nav a { font-family: var(--display); font-size: clamp(2.6rem, 11vw, 4rem); color: var(--text); line-height: 1.15; }
.menu .btn { align-self: flex-start; }

/* ---------- Layering ---------- */
main { position: relative; z-index: 2; }
.footer { position: relative; z-index: 2; }
.anno { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .12em; margin: 0 -.06em -.12em; }
.js [data-split] .wi { display: inline-block; transform: translateY(108%); transition: transform 1.25s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
.js [data-split].is-in .wi { transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(2rem, 9vh, 7rem)) var(--gutter) 2rem;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: clamp(1.25rem, 3vh, 2rem);
}
.hero__title {
  font-family: var(--display);
  text-shadow: 0 4px 40px rgba(8, 5, 3, .45);
  font-size: clamp(4rem, 15vw, 16rem);
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.045em;
  margin-left: -.05em;
}
.hero__by {
  display: block;
  font-size: .3em; font-style: italic; font-weight: 400; letter-spacing: -.01em;
  margin: .32em 0 0 .18em; color: var(--muted);
}
.hero__body { display: grid; gap: 2rem; align-content: end; max-width: 34rem; }
.hero__line { font-size: clamp(1.1rem, 1.55vw, 1.4rem); line-height: 1.5; color: var(--text); font-weight: 300; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; }
.hero__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted);
}
.hero__hint { display: inline-flex; align-items: center; gap: .8rem; color: var(--text); }
.hero__hint i { position: relative; width: 1px; height: 26px; background: var(--line-2); overflow: hidden; }
.hero__hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--text); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }
.hero__status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: .6rem; border-radius: 50%; background: var(--text); vertical-align: middle; opacity: .8; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- Process (pinned) ---------- */
.process { position: relative; height: 520vh; }
.process__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  padding: var(--nav-h) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 33rem) 1fr; align-items: center;
}
.process__steps { display: grid; }
.step { grid-area: 1 / 1; display: grid; gap: 1.5rem; align-content: center; pointer-events: none; }
.step > * { opacity: 0; transform: translateY(22px); filter: blur(6px); transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s var(--ease); }
.step.is-active { pointer-events: auto; }
.step.is-active > * { opacity: 1; transform: none; filter: none; }
.step.is-active > :nth-child(2) { transition-delay: .06s; }
.step.is-active > :nth-child(3) { transition-delay: .12s; }
.step.is-active > :nth-child(4) { transition-delay: .18s; }
.step__title { font-family: var(--display); font-size: clamp(2.3rem, 4.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.025em; }
.step__body { color: var(--muted); max-width: 31rem; font-size: 1.04rem; }
.step__specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: .5rem 0 0; border-top: 1px solid var(--line); max-width: 31rem; }
.step__specs div { padding: 1rem 1rem 0 0; display: grid; gap: .3rem; }
.step__specs div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.step__specs dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.step__specs dd { margin: 0; font-family: var(--display); font-size: 1.7rem; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }

.rail {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: grid; gap: .3rem;
}
.rail button { display: grid; grid-template-columns: 2.2rem auto; align-items: center; justify-items: start; padding: .45rem 0; color: var(--faint); transition: color .3s; text-align: left; }
.rail button b { font-weight: 400; font-size: .85rem; opacity: 0; transform: translateX(-6px); transition: opacity .4s, transform .5s var(--ease); }
.rail button .mono { position: relative; padding-left: .9rem; }
.rail button .mono::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.rail button:hover { color: var(--accent-hi); }
.rail button:hover b { opacity: 1; transform: none; }
.rail button.is-active { color: var(--accent-hi); }
.rail button.is-active .mono { color: var(--accent); }
.rail button.is-active b { opacity: 1; transform: none; color: var(--text); }
.rail button.is-active .mono::before { width: 10px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.readout {
  position: absolute; left: var(--gutter); bottom: 2rem;
  display: flex; align-items: center; gap: 1rem; color: var(--muted);
}
.readout__bar { width: 120px; height: 1px; background: var(--line); }
.readout__bar i { display: block; height: 100%; background: var(--text); transform-origin: left; transform: scaleX(0); }
#readout-val { color: var(--text); }

/* Annotations */
.anno__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.anno__svg path { fill: none; stroke: rgba(247, 244, 239, .55); stroke-width: 1; }
.anno__label {
  position: absolute; left: 0; top: 0; display: grid; grid-template-columns: auto 1fr; column-gap: .7rem;
  width: 15rem; padding: .7rem .9rem; will-change: transform;
  background: rgba(13, 9, 7, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line);
}
.anno__label .mono { grid-row: span 2; color: var(--muted); padding-top: .2rem; }
.anno__label b { font-weight: 500; font-size: .9rem; }
.anno__label small { font-size: .78rem; color: var(--muted); }

/* ---------- Work ---------- */
.work, .about { position: relative; z-index: 2; background: var(--bg); }
.work {
  padding-block: clamp(6rem, 12vw, 11rem) clamp(5rem, 10vw, 9rem);
  padding-inline: var(--gutter);
  border-top: 1px solid var(--line);
  box-shadow: 0 -60px 120px -20px rgba(0, 0, 0, .7);
}
.work::before, .about::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50vmax 36vmax at 85% 0%, rgba(176, 104, 46, .10), transparent 70%);
}
.work__head {
  position: relative;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem var(--gutter);
  align-items: end; margin-bottom: clamp(3rem, 7vw, 6rem);
}
.work__head .eyebrow { grid-column: 1 / -1; }
.work__head .section-title { grid-column: 1 / span 7; }
.work__aside { grid-column: 9 / -1; display: grid; gap: 1.75rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .55rem .9rem; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted);
  transition: color .3s, border-color .3s, background-color .3s;
}
.filters button span { color: var(--faint); margin-left: .35rem; transition: color .3s; }
.filters button:hover { color: var(--accent-hi); border-color: var(--accent); }
.filters button.is-active { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.filters button.is-active span { color: rgba(255, 255, 255, .7); }

.grid {
  position: relative;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2.4vw, 2.5rem); row-gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.card { grid-column: span var(--span, 6); min-width: 0; transition: opacity .6s var(--ease), filter .6s var(--ease); }
.card--5 { --span: 5; }
.card--7 { --span: 7; }
.card--6 { --span: 6; }
.card--drop { margin-top: clamp(0rem, 8vw, 8rem); }
.card.is-dim { opacity: .18; filter: grayscale(1); }
.card__media {
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: var(--ratio, 4 / 5); max-width: 100%;
  background: radial-gradient(80% 70% at 50% 45%, #2b1c13, #120c09 75%);
}
.card__media img {
  position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.001);
  transition: transform 1.4s var(--ease), filter .8s var(--ease);
  filter: saturate(.92) contrast(1.04);
}
.card__media--cutout img, .card__media--render img { top: 0; height: 100%; object-fit: contain; padding: 7%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.card__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border: 1px solid var(--line); transition: border-color .45s, box-shadow .6s var(--ease);
}
.card:hover .card__media img { transform: translate3d(0, var(--py, 0px), 0) scale(1.045); filter: saturate(1.05) contrast(1.06); }
.card:hover .card__media::after { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), inset 0 0 60px -20px var(--accent-glow); }
.card__meta {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; column-gap: 1rem; row-gap: .35rem;
  align-items: baseline; padding-top: 1.1rem; margin-top: 1.1rem; border-top: 1px solid var(--line);
}
.card__no { color: var(--faint); }
.card__title { font-family: var(--display); font-size: clamp(1.45rem, 2.1vw, 2rem); line-height: 1.15; letter-spacing: -.01em; transition: color .3s; }
.card__cat { color: var(--muted); text-align: right; }
.card__client { grid-column: 2 / 3; color: var(--muted); font-size: .92rem; }
.card__order { grid-column: 3 / 4; justify-self: end; color: var(--faint); transition: color .3s; font-size: .66rem; }
.card__order span { display: inline-block; transition: transform .5s var(--ease); }
.card:hover .card__title { color: var(--text); }
.card:hover .card__order, .card__order:hover { color: var(--accent-hi); }
.card__order:hover span { transform: translateX(4px); }

/* ---------- About ---------- */
.about {
  padding-block: clamp(6rem, 12vw, 11rem);
  padding-inline: var(--gutter);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem var(--gutter);
}
.about__seal { grid-column: 1 / span 5; margin: 0; position: sticky; top: calc(var(--nav-h) + 3rem); align-self: start; display: grid; gap: 1.5rem; justify-items: center; }
.about__seal img {
  width: min(100%, 440px); height: auto; aspect-ratio: 1; border-radius: 50%;
  transform: rotate(var(--seal-rot, 0deg));
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, .65)) drop-shadow(0 0 1px rgba(255, 220, 180, .2));
}
.about__seal figcaption { color: var(--faint); text-align: center; }
.about__body { grid-column: 7 / -1; display: grid; gap: clamp(2rem, 4vw, 3.25rem); min-width: 0; }
.about__copy { display: grid; gap: 1.2rem; color: var(--muted); font-size: 1.08rem; max-width: 36rem; }
.about__copy p:first-child { color: var(--text); font-size: 1.22rem; font-weight: 300; line-height: 1.55; }
.clients__title { color: var(--muted); font-weight: 400; margin-bottom: 1rem; }
.clients ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.clients li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: .3rem 2rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line); }
.clients b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.25; }
.clients span { color: var(--muted); }
.spec { border: 1px solid var(--line-2); background: rgba(21, 16, 12, .6); }
.spec__head { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line-2); color: var(--muted); }
.spec dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec dl div { padding: 1rem 1.2rem; display: grid; gap: .2rem; border-bottom: 1px solid var(--line); }
.spec dl div:nth-child(odd) { border-right: 1px solid var(--line); }
.spec dl div:nth-last-child(-n + 2) { border-bottom: 0; }
.spec dt { font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.spec dd { margin: 0; font-size: 1rem; }

/* ---------- Contact ---------- */
.contact {
  position: relative; min-height: 100vh;
  padding-block: clamp(7rem, 13vw, 11rem) clamp(4rem, 8vw, 7rem);
  padding-inline: var(--gutter);
}
.contact__inner { max-width: 44rem; display: grid; gap: 2rem; }
.contact__title { font-size: clamp(2.8rem, 6.4vw, 6rem); }
.contact__lead { color: var(--muted); max-width: 34rem; }
.order {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.75rem;
  padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line-2);
  background: rgba(13, 9, 7, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.field { display: grid; gap: .5rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: .64rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.02rem; color: var(--text);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  padding: .55rem 0 .65rem; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 3.2rem; }
.field select {
  cursor: pointer; padding-right: 1.6rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option { background: var(--bg-raise); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--accent); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 1px 0 0 var(--accent); }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.6); cursor: pointer; }
.order__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding-top: .5rem; }
.order__note { color: var(--faint); font-size: .64rem; }
.order__note.is-done { color: var(--text); }
.order__preview textarea { font-size: 1rem; line-height: 1.55; color: var(--muted); border: 1px solid var(--line-2); padding: .75rem .9rem; }
.details { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.details div { padding: 1.1rem 1.2rem 1.1rem 0; display: grid; gap: .3rem; align-content: start; border-bottom: 1px solid var(--line); min-width: 0; }
.details dt { color: var(--faint); font-size: .64rem; }
.details .details__wide { grid-column: 1 / -1; }
.details dd { margin: 0; font-size: .95rem; color: var(--text); overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); border-top: 1px solid var(--line); overflow: hidden; }
.marquee { padding-block: clamp(2rem, 5vw, 4rem); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span {
  flex: none; padding-right: .4em; white-space: nowrap;
  font-family: var(--display); font-size: clamp(3.5rem, 11vw, 10rem); line-height: 1; letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1px rgba(247, 244, 239, .32);
}
.marquee em { color: var(--text); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; -webkit-text-stroke: 1px rgba(247, 244, 239, .2); }
@keyframes marquee { to { transform: translateX(-50%); } }
.footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  padding: 1.5rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__clock { display: none; }
  .work__head .section-title { grid-column: 1 / -1; }
  .work__aside { grid-column: 1 / span 8; }
  .about__seal { grid-column: 1 / span 4; }
  .about__body { grid-column: 6 / -1; }
}
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  :root { --nav-h: 64px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__cta { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__meta { gap: .6rem; }

  .hero { grid-template-rows: auto auto 1fr auto; padding-top: calc(var(--nav-h) + 1.5rem); }
  .hero__title { font-size: clamp(3.6rem, 19vw, 9rem); }
  .hero__body { align-self: end; padding-top: 34vh; }
  .hero__coords { display: none; }

  .process__sticky { grid-template-columns: minmax(0, 1fr); align-items: end; padding-bottom: 5.5rem; }
  .process__sticky::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 68%; pointer-events: none;
    background: linear-gradient(to top, var(--bg) 52%, rgba(13, 9, 7, .85) 75%, transparent);
  }
  .process__steps { position: relative; }
  .step { gap: 1rem; }
  .step__title { font-size: clamp(2rem, 8.5vw, 3rem); }
  .step__body { font-size: .96rem; }
  .step__specs dd { font-size: 1.3rem; }
  .rail { top: auto; bottom: 1.4rem; left: var(--gutter); right: auto; transform: none; display: flex; gap: 1.1rem; }
  .rail button { grid-template-columns: auto; }
  .rail button b { display: none; }
  .readout { left: auto; right: var(--gutter); bottom: 1.85rem; }
  .readout__bar, #readout-label { display: none; }

  .work__aside { grid-column: 1 / -1; }
  .card, .card--5, .card--6, .card--7 { grid-column: 1 / -1; }
  .card--drop { margin-top: 0; }
  .card__media { --ratio: 4 / 5 !important; }

  .about__seal { grid-column: 1 / -1; position: relative; top: 0; }
  .about__seal img { width: min(70vw, 340px); }
  .about__body { grid-column: 1 / -1; }
  .clients li { grid-template-columns: minmax(0, 1fr); }

  .contact { padding-top: clamp(22rem, 62vw, 30rem); }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .order { grid-template-columns: minmax(0, 1fr); }
  .details { grid-template-columns: minmax(0, 1fr); }
  .spec dl { grid-template-columns: minmax(0, 1fr); }
  .spec dl div:nth-child(odd) { border-right: 0; }
  .spec dl div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .card__meta { grid-template-columns: 2rem minmax(0, 1fr); }
  .card__cat { grid-column: 2; grid-row: 2; text-align: left; }
  .card__client { grid-row: 3; }
  .card__order { grid-column: 2; grid-row: 4; justify-self: start; margin-top: .4rem; }
  .hero__foot { font-size: .64rem; }
  .hero__status { display: none; }
}

@media (hover: none) {
  .grain { animation: none; inset: 0; }
  .card:active .card__media img { transform: translate3d(0, var(--py, 0px), 0) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-split] .wi { opacity: 1; transform: none; }
  .grain { animation: none; }
}
