/* Wet Ink Studio
   Layout: printed broadsheet on greige stock, interrupted by ink-black chapters.
   Two inks only: process black and Riso orange. A glass capsule floats above everything;
   motion is spring-driven and interruptible (see js/main.js). */
:root {
  --paper: #E8E3D6;        /* 120 gsm uncoated stock */
  --paper-2: #DCD5C4;      /* stock in shadow */
  --ink: #131214;          /* process black, the main colour */
  --ink-2: #1E1D21;        /* black, second pass */
  --accent: #FF6A2B;       /* Riso orange, used sparingly */
  --accent-deep: #B9440F;  /* orange for small text on paper (contrast) */
  --muted: #6B655A;        /* faded ink on stock */
  --line: rgba(19, 18, 20, .18);

  /* Glass materials: light over paper, heavier and darker over ink */
  --glass-light: rgba(240, 236, 226, .62);
  --glass-light-edge: rgba(255, 255, 255, .55);
  --glass-dark: rgba(28, 27, 31, .58);
  --glass-dark-edge: rgba(255, 255, 255, .14);

  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --label: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif; /* set narrow (wdth 80) */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --fraunces: "Fraunces", "Iowan Old Style", Georgia, serif;           /* archive mock-ups only */

  --gutter: clamp(1rem, 3.2vw, 2.75rem);
  /* Non-gesture transitions only. Anything a person can grab runs on springs in JS. */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --press: 100ms ease-out;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* paper grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90;
  opacity: .2; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .37 0 0 0 0 .3 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, canvas { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Page-wide ink layer (WebGL). Sits above content, below chrome. */
.ink-layer { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 80; pointer-events: none; }

/* Type scale: tracking tightens as size grows, leading tightens with it */
.label {
  font-family: var(--label); font-stretch: 80%; font-weight: 600;
  font-size: .78rem; line-height: 1.3; letter-spacing: .07em; text-transform: uppercase;
}
.muted { color: var(--muted); }
.serif, em.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }

/* ---------- Glass capsule header ---------- */
.bar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 100;
  padding: calc(.75rem + env(safe-area-inset-top, 0px)) var(--gutter) 0;
  display: flex; justify-content: center; pointer-events: none;
}
.bar__glass {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.75rem);
  padding: .375rem .375rem .375rem 1rem; border-radius: 999px;
  background: var(--glass-light);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 var(--glass-light-edge), 0 .5rem 1.75rem -.75rem rgba(19,18,20,.35), 0 0 0 .5px rgba(19,18,20,.12);
  color: var(--ink);
  transition: background .45s var(--ease-out), color .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.bar[data-tone="dark"] .bar__glass {
  background: var(--glass-dark); color: var(--paper);
  box-shadow: inset 0 1px 0 var(--glass-dark-edge), 0 .5rem 2rem -.5rem rgba(0,0,0,.6), 0 0 0 .5px rgba(255,255,255,.08);
}
.logo { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font: 800 1rem/1 var(--display); font-stretch: 112%; letter-spacing: -.02em; white-space: nowrap; }
.logo sup { font-size: .5em; font-weight: 500; }
.blot--sm { width: 15px; height: 18px; color: var(--accent); flex: none; }
.nav { position: relative; display: flex; }
.nav a {
  position: relative; z-index: 1; text-decoration: none;
  font-family: var(--label); font-stretch: 80%; font-weight: 600; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase;
  padding: .7rem .95rem; border-radius: 999px; white-space: nowrap;
  transition: color .3s var(--ease-out), transform var(--press);
}
.nav a:active { transform: scale(.94); }
.nav a.is-active { color: var(--paper); }
.bar[data-tone="dark"] .nav a.is-active { color: var(--ink); }
.nav__pill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 999px; background: var(--ink); will-change: transform, width; }
.bar[data-tone="dark"] .nav__pill { background: var(--accent); }
.drying { margin: 0 .5rem 0 0; display: flex; align-items: center; gap: .4rem; font: 600 .78rem/1 var(--label); font-stretch: 80%; letter-spacing: .07em; font-variant-numeric: tabular-nums; }
.drying__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Registration marks ---------- */
.reg { position: absolute; width: 22px; height: 22px; pointer-events: none; opacity: .5; border: 1px solid currentColor; border-radius: 50%; transform: scale(.6); }
.reg::before, .reg::after { content: ""; position: absolute; background: currentColor; }
.reg::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.reg::after { top: 50%; left: 0; right: 0; height: 1px; }
.reg--tl { top: 5.5rem; left: var(--gutter); }
.reg--tr { top: 5.5rem; right: var(--gutter); }
.reg--bl { bottom: 1.1rem; left: var(--gutter); }
.reg--br { bottom: 1.1rem; right: var(--gutter); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; touch-action: pan-y;
  padding: calc(8rem + env(safe-area-inset-top, 0px)) var(--gutter) 4rem;
  min-height: min(100svh, 61rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
}
.hero__eyebrow { margin: 0; position: relative; }
.hero__title {
  margin: 0; position: relative;
  font-family: var(--display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(4.75rem, 19vw, 18.75rem); line-height: .82; letter-spacing: -.045em;
}
.hero__title .line { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: .12em; }
.hero__title .rise { display: inline-block; }
.line--ink .serif { font-size: .42em; color: var(--accent); line-height: 1; letter-spacing: -.01em; transform: translateY(-.15em); }
/* Entrance: opacity + transform only, short, and never blocks input */
.js .rise { animation: rise .9s var(--ease-out) both; }
.js .line:nth-child(1) .rise { animation-delay: .05s; }
.js .line:nth-child(2) .rise { animation-delay: .14s; }
.js .line:nth-child(2) .rise.serif { animation-delay: .26s; }
@keyframes rise { from { transform: translateY(28%); opacity: 0; } }

/* Blot replaces the dot of the dotless ı */
.tittle-host { position: relative; display: inline-block; }
.mascot {
  position: absolute; left: 50%; bottom: 66%; width: .36em; height: .43em; margin-left: -.18em;
  padding: 0; border: 0; background: none; cursor: grab; color: var(--accent); font: inherit;
  transform-origin: 50% 85%; touch-action: none; z-index: 85;
  -webkit-tap-highlight-color: transparent; will-change: transform;
}
.mascot:active { cursor: grabbing; }
.mascot .blot { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 .04em 0 rgba(0,0,0,.14)); pointer-events: none; }
.mascot .eyes { transform-origin: 30px 44px; animation: blink 5s infinite; }
@keyframes blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.08); } }

.hero__foot { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.hero__lede { margin: 0; max-width: 40ch; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.38; letter-spacing: -.005em; text-wrap: balance; }
.hero__lede em { font-family: var(--serif); font-size: 1.15em; color: var(--accent-deep); }
.hero__hint { margin: 0; color: var(--muted); }

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; }
.ticker__track {
  display: flex; gap: 1.75rem; width: max-content; padding-block: .9rem; will-change: transform;
  font: 800 clamp(1.25rem, 2.6vw, 2.125rem)/1 var(--display); font-stretch: 110%; text-transform: uppercase; letter-spacing: -.01em;
}
.ticker__track b { font-weight: 400; color: var(--accent); }

/* ---------- Story (dark chapter) ---------- */
.story { background: var(--ink); color: var(--paper); height: 420vh; position: relative; }
.story__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 1fr minmax(0, 1.1fr) 1fr; grid-template-rows: 1fr auto;
  padding: 6rem var(--gutter) 2.25rem; gap: 1rem;
}
.story__side { position: absolute; left: calc(var(--gutter) - 4px); top: 50%; writing-mode: vertical-rl; transform: rotate(180deg) translateY(50%); opacity: .45; margin: 0; }
.story__object { grid-column: 2; grid-row: 1; position: relative; perspective: 900px; display: grid; place-items: center; min-height: 0; }
.disc {
  --d: clamp(110px, 16vw, 210px);
  position: absolute; left: 50%; top: 50%; width: var(--d); aspect-ratio: 1; max-width: 100%;
  margin-left: calc(var(--d) / -2); margin-top: calc(var(--d) / -2);
  border-radius: 50%; border: 1.5px solid rgba(232, 227, 214, .75);
  background: radial-gradient(circle at 50% 40%, rgba(232,227,214,.08), rgba(232,227,214,0) 65%);
  box-shadow: inset 0 0 0 9px rgba(232,227,214,.06), 0 0 40px rgba(0,0,0,.6);
  will-change: transform; transition: border-color .35s var(--ease-out), background .35s var(--ease-out);
}
.disc::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed rgba(232,227,214,.35); }
.disc.is-lit { border-color: var(--accent); background: radial-gradient(circle at 50% 40%, rgba(255,106,43,.32), rgba(255,106,43,0) 70%); }
.drop3d {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 38px; margin: -19px 0 0 -15px; z-index: 5;
  background: radial-gradient(circle at 35% 35%, #ffc3a6 0 10%, var(--accent) 38%, #8a2c05 100%);
  border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%;
  box-shadow: 0 0 30px rgba(255, 106, 43, .5); will-change: transform;
}
.story__steps { grid-column: 3; grid-row: 1; align-self: center; list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.story__steps li { display: flex; gap: .75rem; align-items: center; opacity: .3; transition: opacity .35s var(--ease-out); font: 600 .78rem/1.3 var(--label); font-stretch: 80%; letter-spacing: .08em; text-transform: uppercase; }
.story__steps li::before { content: ""; width: 48px; height: 1px; background: currentColor; transform-origin: left; transform: scaleX(.3); transition: transform .45s var(--ease-out); }
.story__steps li span { color: var(--accent); }
.story__steps li.is-on { opacity: 1; }
.story__steps li.is-on::before { transform: scaleX(1); }
.story__lines { grid-column: 1 / -1; grid-row: 2; position: relative; min-height: 2.1em; font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 5.6vw, 5.25rem); line-height: 1; letter-spacing: -.035em; text-align: center; }
.story__line { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-wrap: balance; opacity: 0; transform: translateY(var(--from, 30%)); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.story__line.is-on { opacity: 1; transform: none; }
.story__line em { font-family: var(--serif); color: var(--accent); font-weight: 400; }
.story__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.1rem; height: 1px; background: rgba(232,227,214,.15); }
.story__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding-bottom: 1.25rem; border-bottom: 1.5px solid var(--ink); }
.section-head p { margin: 0; }
.section-head--light { border-color: rgba(232,227,214,.35); }
.h2 { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 118%; font-size: clamp(2.75rem, 8.5vw, 8.25rem); line-height: .88; letter-spacing: -.045em; text-wrap: balance; }
.h2 em { color: var(--accent); font-size: 1.04em; }
.services .h2 em { color: var(--accent-deep); }

/* ---------- Archive wheel ---------- */
.archive { background: var(--ink); color: var(--paper); padding: 7rem var(--gutter) 5rem; overflow: hidden; }
.wheel { height: clamp(400px, 52vw, 640px); perspective: 1600px; display: grid; place-items: center; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.wheel.is-dragging { cursor: grabbing; }
.wheel__ring { position: relative; width: clamp(170px, 19vw, 270px); aspect-ratio: 3 / 4; max-width: 100%; transform-style: preserve-3d; will-change: transform; }
.panel { position: absolute; inset: 0; margin: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px rgba(232,227,214,.12); background: var(--paper); }
.panel > * { pointer-events: none; }
.panel > svg { display: block; width: 100%; height: 100%; }
.panel.is-front { box-shadow: 0 0 0 1.5px var(--accent), 0 30px 60px -20px rgba(0,0,0,.8); }
.panel > img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.panel figcaption { position: absolute; left: 8px; bottom: 8px; padding: .3rem .5rem; border-radius: 999px; background: rgba(19,18,20,.72); color: var(--paper); font: 600 .62rem/1 var(--label); font-stretch: 80%; letter-spacing: .08em; text-transform: uppercase; }
.wheel__controls { display: flex; justify-content: center; align-items: center; gap: .75rem; }
.wheel__now {
  display: flex; align-items: center; gap: .9rem; min-width: 0; max-width: 34rem; flex: 0 1 auto;
  padding: .55rem .6rem .55rem 1.1rem; border-radius: 999px; border: 0; cursor: pointer; color: var(--paper);
  background: var(--glass-dark); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 var(--glass-dark-edge), 0 0 0 .5px rgba(255,255,255,.1);
  font: 600 .78rem/1 var(--label); font-stretch: 80%; letter-spacing: .07em; text-transform: uppercase; font-variant-numeric: tabular-nums;
  transition: transform var(--press);
}
.wheel__now:active { transform: scale(.97); }
.wheel__count { opacity: .55; }
.wheel__count b { color: var(--accent); opacity: 1; }
.wheel__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wheel__kind { opacity: .55; white-space: nowrap; }
.wheel__open { background: var(--accent); color: var(--ink); padding: .55rem .8rem; border-radius: 999px; white-space: nowrap; }
.round {
  width: 2.75rem; height: 2.75rem; flex: none; border-radius: 50%; border: 1px solid rgba(232,227,214,.3);
  background: transparent; color: var(--paper); cursor: pointer; font-size: 1.05rem;
  transition: transform var(--press), background .25s, border-color .25s;
}
.round:hover { background: rgba(232,227,214,.08); border-color: rgba(232,227,214,.6); }
.round:active { transform: scale(.9); background: var(--accent); border-color: var(--accent); color: var(--ink); }
.round--ink { color: var(--ink); border-color: var(--line); }
.round--ink:hover { background: rgba(19,18,20,.06); border-color: var(--ink); }

/* ---------- Detail sheet (archive) ---------- */
.scrim { position: fixed; inset: 0; z-index: 190; background: rgba(10, 9, 11, .55); opacity: 0; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; margin-inline: auto;
  width: min(100%, 76rem); height: calc(100svh - 1.5rem - env(safe-area-inset-top, 0px));
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink); border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 -1rem 4rem -1rem rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.6);
  transform-origin: 0 0; will-change: transform;
}
.sheet__handle { flex: none; touch-action: none; cursor: grab; padding: .55rem var(--gutter) 1rem; user-select: none; -webkit-user-select: none; }
.sheet__handle:active { cursor: grabbing; }
.sheet__grabber { display: block; width: 2.6rem; height: .32rem; border-radius: 999px; background: rgba(19,18,20,.22); margin: 0 auto .9rem; }
.sheet__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.sheet__meta { margin: 0 0 .35rem; color: var(--muted); }
.sheet__title { margin: 0; font: 900 clamp(2rem, 5vw, 3.75rem)/.92 var(--display); font-stretch: 118%; letter-spacing: -.04em; }
.sheet__body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 var(--gutter) 3rem; }
.detail { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.detail__aside { display: grid; gap: 1rem; position: sticky; top: 0; }
.detail__aside p { margin: 0; max-width: 42ch; line-height: 1.5; }
.detail__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.detail__tags span { padding: .35rem .6rem; border-radius: 999px; border: 1px solid var(--line); }
.detail__try { padding: .9rem 1rem; border-radius: .9rem; background: var(--ink); color: var(--paper); }
.detail__try b { color: var(--accent); }
.detail__main { display: grid; gap: 1.25rem; min-width: 0; }
.detail__gallery { display: grid; gap: 1rem; }
.detail__gallery figure { margin: 0; display: grid; place-items: center; }
.detail__gallery img { border-radius: .75rem; }
.detail__gallery img { display: block; max-width: 100%; width: auto; height: auto; max-height: 80svh; }
.detail__link { justify-self: start; display: inline-flex; align-items: center; gap: .4rem; padding: .85rem 1.2rem; border-radius: 999px; background: var(--accent); color: var(--ink); text-decoration: none; font: 600 .78rem/1 var(--label); font-stretch: 80%; letter-spacing: .07em; text-transform: uppercase; transition: transform var(--press); }
.detail__link:active { transform: scale(.96); }
.detail__cover { border-radius: .75rem; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; }
.detail__cover svg { display: block; width: 100%; height: 100%; }

/* ---------- Browser frame + mock sites (sized in container units, so thumbnail and full view match) ---------- */
.browser { border-radius: .6rem; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(19,18,20,.12), 0 1.5rem 3rem -1.5rem rgba(19,18,20,.45); }
.panel .browser { height: 100%; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; }
.browser__bar { display: flex; align-items: center; gap: 4px; padding: 7px 9px; background: #EDEAE3; border-bottom: 1px solid rgba(0,0,0,.08); }
.browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: #CFC9BD; }
.browser__bar span { margin: 0 auto; padding: 2px 10px; border-radius: 6px; background: rgba(255,255,255,.75); font: 500 10px/1.3 var(--body); color: #6B655A; }
.site { container-type: inline-size; position: relative; overflow: hidden; }
.panel .site { flex: 1; }
.site button { cursor: pointer; }
.site * { margin: 0; }
.ws-nav { display: flex; align-items: center; gap: 3.2cqw; padding: 2.6cqw 4cqw; font-size: 1.9cqw; }
.ws-nav b { margin-right: auto; }

/* Screenshots inside a browser frame */
.browser .shot { display: block; width: 100%; height: auto; }
.panel .browser .shot { flex: 1; min-height: 0; height: 100%; object-fit: cover; object-position: 50% 0; background: #0B0F1A; }
.detail__gallery.is-screens img { max-height: none; border-radius: 0; width: 100%; }

/* Quiet Luxury / Loud Feet: socks on a line */
.socks { background: #000; display: grid; place-items: center; border-radius: .75rem; padding: 1rem; }
.panel .socks { height: 100%; border-radius: 0; padding: 0; }
.socks__scene { position: relative; width: min(100%, 30rem); aspect-ratio: 970 / 1254; max-width: 100%; background: center / 100% 100% no-repeat; touch-action: none; user-select: none; -webkit-user-select: none; }
.panel .socks__scene { width: auto; height: 100%; }
.sock { position: absolute; height: auto; cursor: grab; will-change: transform; -webkit-user-drag: none; }
.sock.is-grabbed { cursor: grabbing; }
.sock:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 8px; }

/* Atlas: type foundry with a live variable-font tester */
.ws-atlas { background: #FBFAF7; color: #111; font-family: var(--body); }
.ws-atlas .ws-nav b { font: 800 2.4cqw/1 var(--display); font-stretch: 125%; }
.ws-specimen { padding: 4cqw 4cqw 2cqw; font-family: var(--display); font-size: var(--size, 16cqw); font-weight: var(--wght, 800); font-stretch: var(--wdth, 100%); line-height: .9; letter-spacing: -.03em; outline: none; overflow-wrap: anywhere; }
.ws-specimen:focus { background: rgba(255,106,43,.08); }
.ws-axes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; padding: 2cqw 4cqw 5cqw; border-top: 1px solid #e5e2db; font: 600 1.6cqw/1.2 var(--label); font-stretch: 80%; letter-spacing: .06em; text-transform: uppercase; }
.ws-axes label { display: grid; gap: 1cqw; }
.ws-axes output { color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.ws-axes input { width: 100%; accent-color: #111; }
.ws-glyphs { display: grid; grid-template-columns: repeat(8, 1fr); border-top: 1px solid #e5e2db; }
.ws-glyphs span { display: grid; place-items: center; aspect-ratio: 1; font: 700 4.4cqw/1 var(--display); border-right: 1px solid #e5e2db; transition: background .2s, color .2s; }
.ws-glyphs span:hover { background: #111; color: #FBFAF7; }

/* Halo: calm clinic booking */
.ws-halo { background: #EEF0EA; color: #23302A; font-family: var(--body); }
.ws-halo .ws-nav b { font: 500 2.6cqw/1 var(--fraunces); font-style: italic; }
.ws-halo h3 { padding: 5cqw 4cqw 3cqw; font: 300 6.4cqw/1.02 var(--fraunces); letter-spacing: -.02em; }
.ws-book { margin: 0 4cqw 5cqw; padding: 3cqw; border-radius: 2.4cqw; background: #fff; display: grid; gap: 2.4cqw; box-shadow: 0 1cqw 4cqw -2cqw rgba(35,48,42,.3); }
.ws-row { display: flex; gap: 1.2cqw; flex-wrap: wrap; }
.ws-chip { border: 1px solid #D5DBD2; background: none; border-radius: 999px; padding: 1.4cqw 2.4cqw; font-size: 1.8cqw; transition: background .25s, color .25s, border-color .25s, transform var(--press); }
.ws-chip:active { transform: scale(.95); }
.ws-chip.is-on { background: #23302A; border-color: #23302A; color: #EEF0EA; }
.ws-cta { justify-self: start; border: 0; border-radius: 999px; padding: 1.8cqw 3.4cqw; background: #8FA58A; color: #fff; font-size: 1.9cqw; font-weight: 600; transition: transform var(--press); }
.ws-cta:active { transform: scale(.96); }
.ws-confirm { font-size: 1.8cqw; color: #5D7458; min-height: 2.4cqw; }

/* ---------- Services ---------- */
.services { padding: 7.5rem var(--gutter); }
.cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.cell {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 1.75rem 1.5rem 1.9rem; min-height: 22.5rem; display: flex; flex-direction: column; gap: .9rem;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: color .4s var(--ease-out);
}
/* Ink enters from the pointer's entry point and drains out the way it leaves */
.cell::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  clip-path: circle(0px at var(--x, 50%) var(--y, 50%)); transition: clip-path .6s var(--ease-out);
}
.cell.is-wet::before { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.cell.is-wet { color: var(--paper); }
.cell h3 { margin: auto 0 0; font-family: var(--display); font-weight: 900; font-stretch: 112%; font-size: clamp(1.875rem, 3vw, 2.875rem); line-height: .95; letter-spacing: -.035em; }
.cell p { margin: 0; line-height: 1.45; }
.cell__q { color: var(--accent-deep); transition: color .4s var(--ease-out); }
.cell.is-wet .cell__q { color: var(--accent); }
.cell__spec { opacity: .7; }

/* ---------- Contact ---------- */
.contact { padding: 8.75rem var(--gutter) 10rem; display: grid; gap: .6rem; justify-items: start; }
.contact__line {
  font-family: var(--display); font-weight: 900; font-stretch: 118%;
  font-size: clamp(1.375rem, 6.9vw, 7.25rem); line-height: .95; letter-spacing: -.045em; white-space: nowrap;
  text-decoration: none; position: relative; background: none; border: 0; padding: 0; cursor: pointer; text-align: left;
  transition: transform var(--press);
}
.contact__line:active { transform: scale(.985); }
.contact__line::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.04em; height: .06em; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .5s var(--ease-out); }
.contact__line:hover::after, .contact__line:focus-visible::after { transform: scaleX(1); }
.contact__line--ig { color: var(--accent-deep); margin-top: .5rem; }
.contact__state { color: var(--muted); min-height: 1em; }
.contact__state.is-done { color: var(--accent-deep); }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 1.6rem var(--gutter) 0; overflow: hidden; }
.foot__meta { display: flex; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; }
.foot__meta a { text-decoration: none; }
.foot__meta a:hover { color: var(--accent); }
.foot__word { margin: 4vw 0 -2.2vw; display: flex; justify-content: space-between; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 17.5vw; line-height: .8; letter-spacing: -.05em; }
.foot__word span { display: inline-block; position: relative; will-change: transform; transition: color .3s var(--ease-out); }
.foot__word span.is-up { color: var(--accent); }
.foot__word span.sp { width: .1em; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell { min-height: 17.5rem; }
  .story__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto auto; padding-top: 5.5rem; }
  .story__object { grid-column: 1; }
  .story__steps { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.1rem; }
  .story__steps li::before { display: none; }
  .story__lines { grid-row: 3; }
  .story__side { display: none; }
  .detail { grid-template-columns: minmax(0, 1fr); }
  .detail__aside { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .logo__word, .drying { display: none; }
  .bar__glass { padding-left: .85rem; gap: .35rem; }
  .nav a { padding: .65rem .6rem; font-size: .72rem; letter-spacing: .05em; }
  .cells { grid-template-columns: minmax(0, 1fr); }
  .cell { min-height: 13.75rem; }
  .hero { min-height: auto; padding-bottom: 3.5rem; padding-top: calc(7rem + env(safe-area-inset-top, 0px)); }
  .wheel__kind { display: none; }
  .wheel__now { flex: 1; gap: .6rem; padding-left: .9rem; }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  /* Keep feedback, drop travel: cross-fades instead of slides */
  .js .rise { animation: fadeIn .3s ease both; }
  .story__line { transform: none; transition: opacity .3s ease; }
  .cell::before { transition: none; }
  .mascot .eyes { animation: none; }
}
@keyframes fadeIn { from { opacity: 0; } }
@media (prefers-reduced-transparency: reduce) {
  .bar__glass { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .bar[data-tone="dark"] .bar__glass { background: var(--ink-2); }
  .wheel__now { background: var(--ink-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .bar__glass { background: var(--paper); box-shadow: 0 0 0 1.5px var(--ink); }
  .bar[data-tone="dark"] .bar__glass { background: var(--ink); box-shadow: 0 0 0 1.5px var(--paper); }
  .muted, .hero__hint { color: var(--ink); }
}
