/* ==========================================================================
   Made By Juice · "Cut Pile"
   The rug shot like a flagship product. Dark studio sections hold the 3D pieces,
   paper sections hold the real photos. Grammar: every edge is rounded like a
   sheared rug corner (one radius, --corner), and carton yellow is the only
   button colour. Colours are the old site's palette, nothing else carried over.
   ========================================================================== */
/* Geist, self-hosted (one variable file, latin, weights 400-800) */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/geist-latin.woff2) format('woff2');
}

:root {
  /* grounds */
  --night: oklch(0.165 0.022 300);        /* the studio, grape-tinted black */
  --night-2: oklch(0.205 0.028 300);      /* raised panels in the studio */
  --night-line: oklch(0.32 0.03 300);
  --paper: oklch(0.978 0.006 300);        /* photo sections */
  --paper-2: oklch(0.952 0.012 300);
  --paper-line: oklch(0.87 0.02 300);

  /* ink */
  --ink: oklch(0.185 0.02 300);
  --ink-prose: oklch(0.3 0.02 300);       /* body copy on paper, 8.6:1 */
  --ink-dim: oklch(0.44 0.02 300);        /* captions, notes. not prose */
  --snow: oklch(0.97 0.006 300);          /* headings in the studio */
  --snow-prose: oklch(0.88 0.012 300);    /* body copy in the studio, 12:1 */
  --snow-dim: oklch(0.72 0.02 300);       /* captions in the studio, 6:1 */

  /* yarn */
  --carton: oklch(0.87 0.165 95);         /* carton yellow: buttons, the one hot colour */
  --carton-ink: oklch(0.2 0.03 90);       /* text on carton */
  --grape: oklch(0.55 0.18 300);          /* the mascot's circle: links, numbers on paper */
  --grape-hi: oklch(0.72 0.14 300);       /* grape that reads on night */
  --yarn: oklch(0.66 0.105 225);          /* yarn-ball teal, tiny doses only */
  --cream: oklch(0.95 0.012 90);

  --display: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --body: 'Geist', ui-sans-serif, system-ui, sans-serif;

  --corner: 18px;                         /* a sheared rug corner */
  --pill: 999px;
  --wrap: 1200px;
  --sec: clamp(3.75rem, 7vw, 5.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --z-canvas: 0;
  --z-content: 1;
  --z-nav: 40;
  --z-skip: 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--night);
  color: var(--snow-prose);
  font: 450 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--carton); color: var(--carton-ink); }
:focus-visible { outline: 2px solid var(--carton); outline-offset: 3px; border-radius: 6px; }
.paper :focus-visible, .paper-2 :focus-visible { outline-color: var(--grape); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: var(--z-skip); background: var(--carton); color: var(--carton-ink); padding: .6rem 1rem; border-radius: var(--pill); font-weight: 600; }
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.6rem; border-radius: var(--pill);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.005em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .5s var(--ease), background-color .3s, box-shadow .5s var(--ease), color .3s;
}
.btn-sm { min-height: 42px; padding: 0 1.15rem; font-size: .94rem; }
.btn-carton { background: var(--carton); color: var(--carton-ink); box-shadow: 0 10px 30px -12px oklch(0.87 0.165 95 / .55); }
.btn-carton:hover { transform: translateY(-2px); background: oklch(0.9 0.15 95); box-shadow: 0 18px 38px -14px oklch(0.87 0.165 95 / .7); }
.btn-carton:active { transform: translateY(0); }
.btn-ghost { border-color: var(--night-line); color: var(--snow); }
.btn-ghost:hover { border-color: var(--snow-dim); transform: translateY(-2px); }
.btn-wide { width: 100%; }

/* ---------- chips (designs, sizes) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px; padding: 0 1.05rem; border-radius: var(--pill);
  background: oklch(0.22 0.03 300 / .7); border: 1px solid var(--night-line); color: var(--snow-prose);
  font-weight: 500; font-size: .95rem; cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s, transform .4s var(--ease);
}
.chip i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px oklch(1 0 0 / .25); }
.chip:hover { border-color: var(--snow-dim); color: var(--snow); transform: translateY(-1px); }
.chip.is-on { background: var(--snow); border-color: var(--snow); color: var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  transition: background-color .4s, border-color .4s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: oklch(0.165 0.022 300 / .86); backdrop-filter: saturate(1.4) blur(14px); border-color: oklch(0.32 0.03 300 / .6); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-in { display: flex; align-items: center; gap: 2rem; height: 72px; }
.lockup { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--snow); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.03em; }
.lockup .logo { height: 54px; width: auto; transition: transform .6s var(--ease); filter: drop-shadow(0 6px 10px oklch(0 0 0 / .35)); }
.lockup:hover .logo { transform: rotate(-6deg) scale(1.06); }
.lockup-foot .logo { height: 72px; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--snow-prose); transition: color .25s; }
.nav-links a:hover { color: var(--snow); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: 112px 0 1.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(60% 70% at 66% 52%, oklch(0.27 0.05 300) 0%, transparent 70%),
    var(--night);
  isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: var(--z-canvas); touch-action: pan-y; }
.hero-in { position: relative; z-index: var(--z-content); display: grid; grid-template-columns: minmax(0, 30rem) 1fr; gap: 2rem; align-items: center; flex: 1; pointer-events: none; }
.hero-in a, .hero-in button { pointer-events: auto; }
.hero-town { font-weight: 500; color: var(--snow-dim); margin-bottom: 1.1rem; font-size: .98rem; }
.hero-title {
  font-family: var(--display); font-weight: 700; color: var(--snow);
  font-size: clamp(3.4rem, 8vw, 6.4rem); line-height: .92; letter-spacing: -0.055em;
  margin-bottom: 1.4rem;
}
.hero-title .rise { display: inline-block; }
.hero-lede { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--snow-prose); max-width: 30ch; text-wrap: pretty; margin-bottom: 2rem; font-weight: 450; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-tools { align-self: end; justify-self: end; display: grid; justify-items: end; gap: .7rem; padding-bottom: 1rem; }
.hint { font-size: .9rem; color: var(--snow-dim); }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }

.specs {
  position: relative; z-index: var(--z-content);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--night-line); padding-top: 1.1rem; margin-top: 1rem;
}
.specs div { padding-right: 1rem; }
.specs div + div { border-left: 1px solid var(--night-line); padding-left: 1.25rem; }
.specs dt { color: var(--snow); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.specs dd { color: var(--snow-dim); font-size: .92rem; }

/* ---------- sections ---------- */
.sec { padding-block: var(--sec); position: relative; }
.night { background: var(--night); color: var(--snow-prose); }
.paper { background: var(--paper); color: var(--ink-prose); }
.paper-2 { background: var(--paper-2); color: var(--ink-prose); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); gap: 1rem 3rem; align-items: end; margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.h2 { font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.night .h2 { color: var(--snow); }
.paper .h2, .paper-2 .h2 { color: var(--ink); }
.head p { text-wrap: pretty; }
.paper a, .paper-2 a { color: var(--grape); text-underline-offset: 3px; font-weight: 500; }
.night .head a { color: var(--grape-hi); }
h3 { font-weight: 600; letter-spacing: -0.02em; font-size: 1.15rem; line-height: 1.25; }
.paper h3, .paper-2 h3 { color: var(--ink); }
.night h3 { color: var(--snow); }

/* ---------- photo frames ---------- */
.shot { display: grid; gap: .7rem; }
.frame { position: relative; overflow: hidden; border-radius: var(--corner); background: var(--paper-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(1.06) contrast(1.04) brightness(1.06); }
.shot:hover .frame img { transform: scale(1.04); }
figcaption { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
figcaption b { font-weight: 600; color: var(--ink); }
figcaption span { color: var(--ink-dim); text-align: right; }

.work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.25rem; }
.work .frame { display: block; aspect-ratio: 1 / 1; }   /* his posts are square: shown whole, no crop */

/* ---------- layers ---------- */
.layers { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.layers-stage { position: relative; aspect-ratio: 5 / 4; border-radius: var(--corner); background: radial-gradient(70% 70% at 50% 45%, oklch(0.25 0.04 300), var(--night-2) 75%); overflow: hidden; }
.layers-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.layer-list { display: grid; gap: .5rem; counter-reset: l; position: relative; z-index: 2; }
.layer-list li {
  padding: 1.05rem 1.2rem; border-radius: var(--corner); border: 1px solid transparent; cursor: default;
  transition: background-color .35s, border-color .35s, transform .5s var(--ease);
}
.layer-list li:hover, .layer-list li.is-on { background: var(--night-2); border-color: var(--night-line); transform: translateX(-4px); }
.layer-list h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.layer-list h3::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--carton); flex: none; }
.layer-list p { color: var(--snow-prose); font-size: .98rem; }
.leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1; }
.leaders path { fill: none; stroke: oklch(0.72 0.02 300 / .45); stroke-width: 1; }
.leaders circle { fill: var(--carton); }
.leaders .on path { stroke: var(--carton); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); position: relative; }
.steps li { position: relative; padding-top: 3.6rem; }
.steps .num {
  position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grape); color: #fff; font-weight: 600; font-size: 1.05rem;
}
.steps li::after { content: ''; position: absolute; top: 21px; left: 56px; right: -.6rem; height: 2px; background: var(--paper-line); transform-origin: left; transform: scaleX(var(--draw, 1)); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: .4rem; }
.steps p { font-size: .98rem; max-width: 30ch; }



/* ---------- sizes ---------- */
.sizer { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; align-items: stretch; }
.sizer-stage { position: relative; min-height: 460px; border-radius: var(--corner); overflow: hidden; background: oklch(0.13 0.02 300); }
.sizer-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.sizer-panel { display: grid; align-content: start; gap: 1.6rem; }
.sizes { display: flex; flex-wrap: wrap; gap: .5rem; }
.price-big { font-size: clamp(3.2rem, 6vw, 4.6rem); font-weight: 700; color: var(--snow); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-what { color: var(--snow); font-weight: 500; margin-top: .5rem; }
.price-plus { color: var(--snow-dim); font-size: .95rem; margin-top: .2rem; max-width: 34ch; }
.terms { display: grid; gap: .55rem; border-top: 1px solid var(--night-line); padding-top: 1.2rem; }
.terms li { display: grid; grid-template-columns: 14px 1fr; gap: .7rem; font-size: .98rem; }
.terms li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--yarn); margin-top: .55rem; }
.sizer-panel .btn { justify-self: start; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-shots .frame { aspect-ratio: 4 / 5; }
.about-shots .shot:last-child .frame img { object-position: 50% 0; }   /* keep the headline */
.about-copy { position: relative; display: grid; gap: 1.1rem; }
.about-copy .h2 { margin-bottom: .3rem; }
.about-copy > p { max-width: 50ch; text-wrap: pretty; }
.facts { display: grid; gap: 0; border-top: 1px solid var(--paper-line); margin-top: .6rem; max-width: 36rem; }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--paper-line); }
.facts b { color: var(--ink); font-weight: 600; }
.facts span { color: var(--ink-dim); }
.about-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.mascot { flex: none; width: 118px; margin-bottom: -.4rem; transform: rotate(6deg); filter: drop-shadow(0 18px 24px oklch(0.2 0.05 300 / .22)); mix-blend-mode: multiply; transition: transform .7s var(--ease); }
.mascot:hover { transform: rotate(0deg) translateY(-6px); }

/* ---------- questions ---------- */
.qa { display: grid; }
.qa div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem 3rem; padding: 1.25rem 0; border-top: 1px solid var(--paper-line); }
.qa div:last-child { border-bottom: 1px solid var(--paper-line); }
.qa dt { color: var(--ink); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.015em; }
.qa dd { max-width: 58ch; }

/* ---------- order form + ticket ---------- */
.order { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.form { display: grid; gap: 1.4rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.field { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: .5rem; align-content: start; }
.field label, .field legend { color: var(--snow); font-weight: 600; font-size: .98rem; padding: 0; margin-bottom: .1rem; }
.field small { color: var(--snow-dim); font-weight: 450; font-size: .85rem; margin-left: .3rem; }
input:not([type=radio]) { height: 52px; }
input:not([type=radio]), textarea {
  width: 100%; background: var(--night-2); border: 1px solid var(--night-line); border-radius: 12px;
  padding: .85rem 1rem; color: var(--snow); min-height: 50px; transition: border-color .25s, background-color .25s;
}
input::placeholder, textarea::placeholder { color: oklch(0.6 0.02 300); }
input:hover, textarea:hover { border-color: oklch(0.45 0.03 300); }
input:focus, textarea:focus { outline: none; border-color: var(--carton); background: oklch(0.22 0.03 300); }
input[type=date] { color-scheme: dark; }
textarea { resize: vertical; min-height: 120px; }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 46px; padding: 0 1.05rem; border-radius: var(--pill);
  border: 1px solid var(--night-line); background: var(--night-2); color: var(--snow-prose); font-weight: 500; font-size: .95rem;
  transition: background-color .25s, border-color .25s, color .25s, transform .4s var(--ease);
}
.opt span small { margin: 0; }
.opt:hover span { border-color: var(--snow-dim); }
.opt input:checked + span { background: var(--carton); border-color: var(--carton); color: var(--carton-ink); transform: translateY(-1px); }
.opt input:checked + span small { color: oklch(0.35 0.05 90); }
.opt input:focus-visible + span { outline: 2px solid var(--carton); outline-offset: 3px; }
.other { display: none; }
.other.show { display: block; }
.bigger { display: none; gap: .5rem; margin-top: .4rem; }
.bigger.show { display: grid; }
.bigger label { font-weight: 500; }
.bigger.invalid .err { display: block; }
.bigger.invalid input { border-color: oklch(0.7 0.15 30); }
.err { display: none; color: oklch(0.8 0.13 30); font-size: .9rem; }
.field.invalid .err { display: block; }
.field.invalid input:not([type=radio]), .field.invalid textarea { border-color: oklch(0.7 0.15 30); }
.note { color: var(--snow-dim); font-size: .9rem; }
.note a { color: var(--grape-hi); }

.ticket {
  position: sticky; top: 96px; border-radius: var(--corner); padding: 1.5rem;
  background: var(--cream); color: var(--ink-prose);
  box-shadow: 0 30px 60px -30px oklch(0 0 0 / .6);
  transform-origin: 50% 0;
}
.ticket::before {
  /* the punched hang hole */
  content: ''; position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--night); box-shadow: inset 0 2px 3px oklch(0 0 0 / .4);
}
.ticket-top { display: flex; align-items: center; gap: .6rem; margin: .8rem 0 1.1rem; }
.ticket-top .logo { height: 44px; width: auto; }
.ticket-top p { font-weight: 700; color: var(--ink); font-size: 1.15rem; letter-spacing: -0.03em; }
.ticket-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-top: 1px dashed oklch(0.75 0.02 90); }
.ticket-rows dt { color: var(--ink-dim); }
.ticket-rows dd { color: var(--ink); font-weight: 600; text-align: right; }
.ticket-rows dd.empty { color: var(--ink-dim); font-weight: 450; }   /* "Not picked", 4.5:1+ on the cream ticket */
.ticket-sum { border-top: 2px solid var(--ink); margin-top: .4rem; padding-top: 1rem; }
.ticket-est { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.05em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.ticket-note { color: var(--ink-dim); font-size: .9rem; margin-top: .35rem; }
.ticket-foot { margin-top: 1.1rem; font-size: .85rem; color: var(--ink-dim); }
.sent { grid-column: 1 / -1; display: grid; gap: 1rem; justify-items: start; padding: 2rem; border-radius: var(--corner); background: var(--night-2); border: 1px solid var(--night-line); }
.sent h3 { font-size: 1.7rem; letter-spacing: -0.04em; }

/* ---------- footer ---------- */
.foot { background: var(--night); border-top: 1px solid var(--night-line); padding: 2.2rem 0; color: var(--snow-dim); font-size: .95rem; }
.foot-in { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.foot address { display: flex; gap: 1.5rem; margin-left: auto; }
.foot address a { color: var(--snow-prose); text-decoration: none; }
.foot address a:hover { color: var(--snow); }

/* ---------- arrival states (JS adds .pre, removes on arrival) ---------- */
.js .pre-rise { opacity: 0; transform: translateY(26px); }
.js .pre-wipe .frame { clip-path: inset(0 0 100% 0 round var(--corner)); }
.js .pre-wipe .frame img { transform: scale(1.15); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav nav { margin-left: auto; }
  .head { grid-template-columns: 1fr; }
  .layers, .sizer, .about, .order { grid-template-columns: 1fr; }
  .leaders { display: none; }
  .ticket { position: relative; top: 0; }
  .order .ticket { order: -1; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .work { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2)::after { display: none; }
  .mascot { width: 92px; }
}
@media (max-width: 760px) {
  .hero { padding-top: 92px; min-height: 0; }
  .hero-in { display: contents; }
  .hero-copy, .hero-tools { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; position: relative; z-index: var(--z-content); }
  .hero-copy { order: 1; }
  .hero-canvas { order: 2; position: relative; inset: auto; height: 330px; margin: .5rem 0 -.5rem; }
  .hero-tools { order: 3; justify-items: start; padding-bottom: 0; }
  .hero > .wrap { order: 4; }
  .chip { min-height: 40px; padding: 0 .85rem; font-size: .9rem; }
  .specs { grid-template-columns: 1fr; row-gap: .8rem; }
  .specs div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--night-line); padding-top: .8rem; }
  .work { grid-template-columns: 1fr 1fr; gap: 1.4rem .9rem; }
  figcaption { flex-direction: column; gap: 0; }
  figcaption span { text-align: left; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }

  .qa div { grid-template-columns: 1fr; gap: .35rem; }
  .row2 { grid-template-columns: 1fr; }
  .sizer-stage { min-height: 320px; }
  .foot address { margin-left: 0; }
  .nav-in { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .pre-rise { opacity: 1; transform: none; }
  .js .pre-wipe .frame { clip-path: none; }
  .js .pre-wipe .frame img { transform: none; }
}

/* ---------- gallery page ---------- */
.page-gallery .gal-head { padding-top: calc(72px + clamp(2.5rem, 5vw, 4rem)); padding-bottom: clamp(2rem, 4vw, 3rem); }
.page-gallery .gal-head .head { margin-bottom: 0; }
.gal-count { color: var(--snow); font-weight: 600; }
.nav-links a[aria-current="page"] { color: var(--snow); text-decoration: underline; text-decoration-color: var(--carton); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.gal { display: flex; gap: 1.1rem; align-items: flex-start; }   /* masonry: every photo keeps its own shape */
.gal-col { flex: 1 1 0; min-width: 0; display: grid; gap: 1.8rem; }
.gal-card { position: relative; display: grid; gap: .65rem; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.gal-card .frame { display: block; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.gal-card img { width: 100%; height: 100%; object-fit: contain; }
.gal-card:hover .frame { transform: translateY(-4px); box-shadow: 0 22px 40px -24px oklch(0.2 0.05 300 / .55); }
.gal-card:hover img { transform: scale(1.04); }
.gal-cap { display: grid; gap: .1rem; font-size: .95rem; }
.gal-cap b { color: var(--ink); font-weight: 600; }
.gal-cap span { color: var(--ink-dim); font-size: .9rem; }
.gal-n { position: absolute; top: .7rem; right: .7rem; min-width: 30px; height: 30px; padding: 0 .55rem; border-radius: var(--pill); background: oklch(0.165 0.022 300 / .78); color: var(--snow); font-size: .82rem; font-weight: 600; display: grid; place-items: center; backdrop-filter: blur(6px); }
.gal-cta-in { display: grid; justify-items: start; gap: 1rem; }

.lb { padding: 0; border: 0; background: transparent; max-width: min(1100px, 100vw - 2rem); width: 100%; color: var(--snow-prose); }
.lb::backdrop { background: oklch(0.12 0.02 300 / .86); backdrop-filter: blur(6px); }
.lb-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--corner); overflow: hidden; }
.lb-stage { position: relative; background: oklch(0.13 0.02 300); aspect-ratio: 1 / 1; display: grid; place-items: center; touch-action: pan-y; }
.lb-stage img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 0; background: oklch(0.97 0.006 300 / .9); color: var(--ink); font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform .4s var(--ease); }
.lb-arrow:hover { transform: scale(1.08); }
.lb-prev { left: .8rem; } .lb-next { right: .8rem; }
.lb-dots { position: absolute; bottom: .8rem; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.lb-dots i { width: 7px; height: 7px; border-radius: 50%; background: oklch(1 0 0 / .4); }
.lb-dots i.on { background: var(--carton); }
.lb-info { padding: 2rem 1.75rem; display: grid; align-content: start; gap: 1.1rem; }
.lb-info h2 { color: var(--snow); font-size: 1.7rem; letter-spacing: -0.04em; line-height: 1.05; padding-right: 2rem; }
.lb-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--night-line); }
.lb-facts dt { color: var(--snow-dim); }
.lb-facts dd { color: var(--snow); font-weight: 500; text-align: right; }
.lb-note { font-size: .95rem; }
.lb-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.lb-close { position: absolute; top: .7rem; right: .7rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--night-line); background: var(--night); color: var(--snow); font-size: 1.4rem; cursor: pointer; }

@media (max-width: 1000px) { .lb-in { grid-template-columns: 1fr; } .lb-info { padding: 1.4rem 1.25rem 1.6rem; } }
@media (max-width: 760px) { .gal { gap: .8rem; } .gal-col { gap: 1.4rem; } .lb { max-width: 100vw; margin: auto 0 0; } .lb-in { border-radius: var(--corner) var(--corner) 0 0; max-height: 92svh; overflow-y: auto; } }

.btn-ghost-ink { border-color: var(--paper-line); color: var(--ink); }
.btn-ghost-ink:hover { border-color: var(--ink); transform: translateY(-2px); }
.see-all-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; }

/* ---------- store page ---------- */
.shop { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 1.4rem; }
.prod { display: flex; flex-direction: column; gap: 1rem; }
.prod-frame { position: relative; display: block; aspect-ratio: 1 / 1; }   /* square slot, photo sits whole inside it */
.prod-frame img { position: absolute; inset: 0; margin: auto auto 0; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: var(--corner); transition: transform 1s var(--ease); }   /* whole rug, never cropped, corners on the photo itself */
.prod:hover .prod-frame img { transform: scale(1.03); }
.prod-info { display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.prod-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.prod h2 { color: var(--ink); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.prod-price { color: var(--ink); font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prod-size { color: var(--ink-dim); font-size: .95rem; }
.prod-details { font-size: .95rem; }
.prod-actions { display: flex; align-items: center; gap: 1rem; margin-top: auto; padding-top: .6rem; }   /* buttons line up across a row */
.prod-post { font-size: .92rem; }
.sold { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.sold-item a { display: grid; gap: .5rem; text-decoration: none; }
.sold-item img { filter: saturate(.75); }
.sold-cap { display: flex; justify-content: space-between; font-size: .92rem; }
.sold-cap b { color: var(--ink); font-weight: 600; }
.sold-cap span { color: var(--ink-dim); }

.buy { padding: 0; border: 0; background: transparent; width: min(760px, 100vw - 2rem); max-width: none; color: var(--snow-prose); }
.buy::backdrop { background: oklch(0.12 0.02 300 / .86); backdrop-filter: blur(6px); }
.buy-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--corner); overflow: hidden; margin: 0; }
.buy-in > img { width: 100%; height: 100%; object-fit: contain; background: oklch(0.13 0.02 300); aspect-ratio: 1 / 1; }
.buy-body { padding: 1.8rem 1.6rem; display: grid; gap: .9rem; align-content: start; }
.buy-body h2 { color: var(--snow); font-size: 1.6rem; letter-spacing: -0.04em; line-height: 1.05; padding-right: 2rem; }
.buy-meta { color: var(--snow); font-weight: 600; }
.buy-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }

@media (max-width: 1000px) { .shop { grid-template-columns: 1fr 1fr; } .sold { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .shop { grid-template-columns: 1fr; }
  .sold { grid-template-columns: 1fr 1fr; }
  .buy { width: 100vw; margin: auto 0 0; }
  .buy-in { grid-template-columns: 1fr; border-radius: var(--corner) var(--corner) 0 0; max-height: 92svh; overflow-y: auto; }
  .buy-in > img { aspect-ratio: 4 / 3; }
}
.btn { white-space: nowrap; }
@media (max-width: 480px) { .nav .lockup span { display: none; } }
@media (max-width: 1180px) { .nav-links { gap: 1.1rem; } .nav-links a { font-size: .9rem; } }

/* tall phone-shaped covers (video stills) are capped so one card can't tower over the rest */
.gal-card .frame.is-tall { aspect-ratio: 4 / 5 !important; }
.gal-card .frame.is-tall img { object-fit: cover; }

/* sizer readout: the rate stays put, the size and comparison change */
.price-big span { font-size: .42em; font-weight: 600; letter-spacing: -0.02em; color: var(--snow-prose); }
.size-read { border-top: 1px solid var(--night-line); padding-top: 1.1rem; display: grid; gap: .2rem; }
.size-read .price-what { font-size: 1.35rem; font-weight: 600; color: var(--snow); margin: 0; letter-spacing: -0.02em; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.nf-in { display: grid; justify-items: center; gap: 1.2rem; }
.nf-logo { height: 120px; width: auto; }
.nf-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

/* ---------- phone menu ---------- */
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--night-line); background: var(--night-2); cursor: pointer; flex: none; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--snow); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav.menu-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.menu-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }
@media (max-width: 1000px) {
  /* the bar is always solid on phones so the logo, button and menu read over anything */
  .nav { background: oklch(0.165 0.022 300 / .94); backdrop-filter: saturate(1.4) blur(14px); border-color: oklch(0.32 0.03 300 / .7); }
  .nav-in { height: 64px; gap: .7rem; }
  .nav .lockup { margin-right: auto; }
  .nav-toggle { display: block; }
  .nav nav { position: fixed; left: 0; right: 0; top: 64px; margin: 0; background: var(--night); border-bottom: 1px solid var(--night-line);
    padding: .5rem 1.25rem 1.25rem; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s; }
  .nav.menu-open nav { opacity: 1; transform: none; visibility: visible; transition: opacity .3s, transform .4s var(--ease); }
  .nav-links { display: grid; gap: 0; }
  .nav-links a { display: flex; align-items: center; min-height: 54px; font-size: 1.15rem; font-weight: 600; color: var(--snow); border-bottom: 1px solid var(--night-line); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links a[aria-current="page"] { text-decoration: none; color: var(--carton); }
  .lockup .logo { height: 46px; }
}

/* ---------- about page ---------- */
.about-more { justify-self: start; margin-top: .4rem; }
.story { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.story-text { display: grid; gap: 1.1rem; max-width: 62ch; }
.story-text p { font-size: 1.12rem; line-height: 1.7; color: var(--ink-prose); text-wrap: pretty; }
.story-text p:nth-child(2) { font-size: 1.6rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.story-source { font-size: .95rem !important; color: var(--ink-dim) !important; font-weight: 500; }
.story-sign { font-weight: 700; color: var(--ink) !important; font-size: 1.3rem !important; }
.story-side { display: grid; gap: 1.6rem; position: sticky; top: 96px; }
.story-side .frame { aspect-ratio: 3 / 4; }
.story-side .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.timeline { display: grid; gap: 0; border-top: 1px solid var(--paper-line); }
.timeline li { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 1rem 2.5rem; padding: 1.15rem 0; border-bottom: 1px solid var(--paper-line); }
.timeline b { color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.timeline span { max-width: 58ch; }
@media (max-width: 1000px) { .story { grid-template-columns: 1fr; } .story-side { position: static; max-width: 460px; } }
@media (max-width: 760px) { .timeline li { grid-template-columns: 1fr; gap: .25rem; } .story-side { grid-template-columns: 1fr; } }

/* ---------- ways to pay: brand marks on white chips so each color reads ---------- */
.pay { display: flex; flex-wrap: wrap; gap: .5rem; }
.pay li { display: inline-flex; align-items: center; gap: .45rem; min-height: 36px; padding: 0 .85rem 0 .65rem; border-radius: var(--pill);
  background: #fff; color: var(--ink); font-weight: 600; font-size: .9rem; box-shadow: inset 0 0 0 1px oklch(0.87 0.02 300); }
.pay svg { width: 18px; height: 18px; flex: none; }
.pay-label { color: var(--snow); font-weight: 600; margin-top: .3rem; }
.foot-pay { display: grid; gap: .5rem; width: 100%; order: 3; }
.foot-pay > p { color: var(--snow-dim); font-size: .9rem; }
.foot-in { flex-wrap: wrap; }

/* stock tag on each piece: 1 of 1 (carton) or made to order (yarn teal) */
.prod-frame .prod-tag { position: absolute; top: .7rem; left: .7rem; z-index: 2; padding: .35rem .7rem; border-radius: var(--pill);
  background: var(--carton); color: var(--carton-ink); font-size: .8rem; font-weight: 700; letter-spacing: -0.005em; }
.prod-frame .prod-tag.is-order { background: var(--yarn); color: oklch(0.18 0.03 225); }

.shop-note { margin-top: 2.6rem; max-width: 60ch; color: var(--ink-prose); }
