/* ==========================================================================
   Long Barn Hay — "Studio Bale"
   The bale is shot like a flagship product: a field-green studio sweep, one
   warm key, one cool rim. Their own colours from the first rebuild: field
   green grounds, straw sheets, orange for anything you press (dark ink on it),
   yellow for numbers, ticks and hover. Strings on the buttons go slack to taut.
   Grammar: green "loft" sections carry the product and the work, straw
   "sweep" sections carry the reading. One radius (4px), uppercase expanded
   display, sentence-case everything else.
   ========================================================================== */
:root {
  /* grounds: field green, never neutral */
  --loft:    oklch(23.5% 0.036 150);   /* the page ground */
  --loft-2:  oklch(27.5% 0.040 150);   /* raised panels */
  --loft-3:  oklch(32% 0.042 148);     /* fields and wells */
  --loft-deep: oklch(19% 0.032 152);   /* footer, the studio floor */
  --sweep:   oklch(96.4% 0.024 92);    /* straw sheet, light sections */
  --sweep-2: oklch(92.4% 0.050 94);    /* pale hay panels on the sheet */
  --seamless: oklch(99.3% 0.008 92);   /* paper cards, the brightest thing */

  /* lines */
  --rule-d:  oklch(43% 0.036 146 / 0.7);
  --rule-d2: oklch(55% 0.04 140 / 0.8);
  --rule-l:  oklch(80% 0.04 100 / 0.8);
  --rule-l2: oklch(70% 0.04 100);

  /* ink */
  --bone:     #FBF6E9;                 /* prose on green */
  --bone-dim: oklch(82% 0.030 118);    /* labels on green */
  --soot:     oklch(24% 0.040 150);    /* prose on straw */
  --soot-dim: oklch(42% 0.032 140);    /* labels on straw */

  /* brand, from the first rebuild */
  --orange:     #F28A26;               /* buttons, picked options. dark ink on it */
  --orange-on:  oklch(22% 0.040 150);  /* text sitting on orange */
  --orange-txt: #F7A452;               /* orange as small text or line on green */
  --orange-ink: #A3460B;               /* orange as text on straw */
  --yellow:     #F5C531;               /* step numbers, ticks, button hover */
  --yellow-dk:  #C99206;               /* yellow as a mark on straw */
  --leaf:       oklch(56% 0.120 140);  /* the one mid green, ticks on straw */

  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --pad: clamp(4rem, 8vw, 6.25rem);
  --r: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --punch: cubic-bezier(.16, 1, .3, 1);
  --glow: 0 8px 22px -12px oklch(70% 0.17 55 / .9);

  /* z: 1 content lifts, 10 stage hint, 50 header, 90 lightbox */
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; overflow-x: clip;
  background: var(--loft); color: var(--bone);
  font: 400 1.03rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--orange-on); }
:focus-visible { outline: 2px solid var(--orange-txt); outline-offset: 3px; border-radius: 2px; }
.sheet :focus-visible { outline-color: var(--orange-ink); }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--orange); color: var(--orange-on); padding: .6rem 1rem; border-radius: var(--r); }
.skip:focus { left: 8px; }

/* ----------------------------------------------------------- display type */
.studio__name, .head h2 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  line-height: .9;
  text-wrap: balance;
}
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; margin-bottom: -.04em; }
.split-c { display: inline-block; will-change: transform; }

/* ------------------------------------------------------------------- mark */
.mk { fill: currentColor; }

/* ----------------------------------------------------------------- button */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 1.4rem; border-radius: var(--r);
  font: 600 .98rem/1 var(--body); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn--orange { background: var(--orange); color: var(--orange-on); box-shadow: 0 1px 0 oklch(100% 0 0 / .3) inset, var(--glow); }
.btn--orange:hover { background: var(--yellow); transform: translateY(-1px); }
.btn--line { color: var(--bone); box-shadow: 0 0 0 1px var(--rule-d2) inset; }
.btn--line:hover { background: oklch(100% 0 0 / .06); box-shadow: 0 0 0 1px var(--bone-dim) inset; }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* the strings: slack at rest, pulled taut when you reach for it */
.taut { position: absolute; left: 10px; right: 10px; bottom: 5px; width: calc(100% - 20px); height: 8px; overflow: visible; pointer-events: none; }
.taut path { fill: none; stroke: oklch(22% 0.04 150 / .35); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: d .55s var(--punch), stroke .3s; }
.taut path:last-child { opacity: .6; }
.btn:hover .taut path:first-child, .btn:focus-visible .taut path:first-child { d: path("M0 3 Q50 3 100 3"); stroke: oklch(22% 0.04 150 / .7); }
.btn:hover .taut path:last-child, .btn:focus-visible .taut path:last-child { d: path("M0 6 Q50 6 100 6"); stroke: oklch(22% 0.04 150 / .7); }

/* ------------------------------------------------------------------ header */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .4s var(--ease), box-shadow .4s var(--ease), transform .45s var(--ease); }
.bar.is-solid { background: oklch(23.5% 0.036 150 / .95); box-shadow: 0 1px 0 var(--rule-d); }
.bar.is-hidden { transform: translateY(-100%); }
.bar__in { display: flex; align-items: center; gap: 2rem; height: 72px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { position: relative; text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--bone-dim); padding: .4rem 0; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--orange-txt); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--punch); }
.nav a:hover { color: var(--bone); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.bar__end { display: flex; align-items: center; gap: 1.2rem; }
.bar__phone { text-decoration: none; font-weight: 600; font-size: .93rem; white-space: nowrap; }
.bar__phone:hover { color: var(--yellow); }

/* logo arrival: their lockup wipes in from the left */
.logo img { animation: logo-in 1.1s var(--punch) both .1s; }
@keyframes logo-in { from { clip-path: inset(0 100% 0 0); opacity: .2; } }

/* ------------------------------------------------------------------ studio */
.studio { position: relative; min-height: min(100svh, 940px); padding: 104px 0 3rem; display: grid; align-items: center; overflow: hidden; }
.studio__sweep {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 52% at 66% 58%, oklch(37% 0.05 138 / .95), transparent 70%),
    radial-gradient(90% 60% at 66% 100%, oklch(26% 0.04 148), transparent 70%),
    linear-gradient(180deg, oklch(20% 0.032 152), var(--loft) 55%, var(--loft-deep));
}
.studio__sweep::after { /* paper grain, so the sweep is a surface and not a gradient */
  content: ""; position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.studio__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.studio__name { font-size: clamp(3rem, 6vw, 5.7rem); color: var(--bone); }
.studio__lede { margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1.05rem, 1.25vw, 1.2rem); line-height: 1.55; font-weight: 400; color: var(--bone); text-wrap: pretty; }
.studio__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.facts { margin-top: 2.2rem; display: grid; gap: .55rem; }
.facts li { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--bone-dim); }
.facts svg { width: 18px; height: 18px; color: var(--yellow); flex: none; }

.studio__stage { position: relative; }
.stage { position: relative; }
.stage__canvas { display: block; width: 100%; height: clamp(320px, 58vh, 600px); cursor: grab; touch-action: pan-y; }
.stage__canvas.is-dragging { cursor: grabbing; }
.stage__still { display: none; width: 100%; height: clamp(320px, 58vh, 600px); object-fit: contain; }
.no-webgl .stage__canvas, .no-webgl .stage__hint, .no-webgl .config { display: none; }
.no-webgl .stage__still { display: block; }
.stage__hint { position: absolute; right: .5rem; top: .5rem; z-index: 10; font-size: .82rem; color: var(--bone-dim); display: flex; align-items: center; gap: .45rem; pointer-events: none; transition: opacity .5s; }
.stage__hint::before { content: ""; width: 22px; height: 10px; border: 1.5px solid currentColor; border-top: 0; border-radius: 0 0 12px 12px; }
.stage__hint.is-gone { opacity: 0; }

/* configurator: segmented picks with a sliding thumb */
.config { display: grid; grid-template-columns: auto 1fr; gap: .9rem 1.25rem; align-items: center; margin-top: .5rem; }
.seg { position: relative; display: inline-flex; gap: 0; margin: 0; padding: 4px; border: 0; border-radius: calc(var(--r) + 3px); background: oklch(100% 0 0 / .06); box-shadow: 0 0 0 1px var(--rule-d) inset; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg label { position: relative; z-index: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: .62rem 1rem; font-size: .9rem; font-weight: 500; color: var(--bone-dim); white-space: nowrap; transition: color .3s var(--ease); }
.seg label:hover span { color: var(--bone); }
.seg input:checked + span { color: var(--orange-on); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: -2px; border-radius: var(--r); }
.seg__thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: var(--r); background: var(--orange); box-shadow: var(--glow); transition: transform .5s var(--punch), width .5s var(--punch); }
.seg__thumb::after { /* the two strings, pulled tight across the pick */
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 4px;
  border-top: 1px solid oklch(22% 0.04 150 / .35); border-bottom: 1px solid oklch(22% 0.04 150 / .2);
}
.config__read { grid-column: 1 / -1; font-size: .92rem; color: var(--bone-dim); max-width: 46rem; min-height: 3em; }
.config__read b { color: var(--bone); font-weight: 600; }

/* ---------------------------------------------------------------- sections */
.sheet { background: var(--sweep); color: var(--soot); padding: var(--pad) 0; }
.loft { background: var(--loft); padding: var(--pad) 0; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.head h2 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.head p { max-width: 34rem; font-size: 1.08rem; color: var(--soot); text-wrap: pretty; justify-self: end; }
.head--dark p { color: var(--bone); }
.head p a { color: var(--orange-txt); font-weight: 600; text-decoration: none; }


/* ------------------------------------------------------------------ the hay */
.cuts { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.cut { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 3.5vw, 3rem); align-items: start; }
.cut + .cut { padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule-l); }
.cut__info { display: grid; gap: 1rem; align-content: start; justify-items: start; }
.cut__title { display: grid; gap: .35rem; }
.cut__title h3 { font: 800 clamp(2rem, 3.4vw, 2.6rem)/.95 var(--display); font-stretch: 125%; text-transform: uppercase; }
.cut__title span { font-size: .92rem; font-weight: 500; color: var(--soot-dim); }
.cut__info > p { color: var(--soot); text-wrap: pretty; }
.cut__for b { font-weight: 600; }
.cut__info .btn { margin-top: .4rem; }

/* point cards: a photo of what the point looks like, the point, one line */
.pts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.pt { background: var(--seamless); border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--rule-l); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pt:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--rule-l2), 0 22px 36px -26px oklch(28% .04 140 / .5); }
.pt__pic { display: block; aspect-ratio: 1; overflow: hidden; background: var(--sweep-2); }
.pt__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.pt:hover .pt__pic img { transform: scale(1.06); }
.pt figcaption { padding: .85rem .95rem 1rem; display: grid; gap: .25rem; }
.pt h4 { font-size: .98rem; font-weight: 700; line-height: 1.25; }
.pt p { font-size: .9rem; color: var(--soot); line-height: 1.45; }
.pt small { font-size: .74rem; color: var(--soot-dim); margin-top: .2rem; }

/* the one bale they sell */
.bale { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-top: clamp(3rem, 6vw, 4.5rem); background: var(--sweep-2); border-radius: var(--r); padding: clamp(1.2rem, 3vw, 2rem) clamp(1.2rem, 4vw, 3rem); }
.bale img { width: 100%; height: auto; transition: transform .8s var(--ease); }
.bale:hover img { transform: translateY(-6px) rotate(-1.2deg); }
.bale h3 { font: 800 clamp(1.6rem, 2.8vw, 2.2rem)/1 var(--display); font-stretch: 125%; text-transform: uppercase; margin-bottom: .8rem; }
.bale p { color: var(--soot); max-width: 30rem; text-wrap: pretty; }

/* --------------------------------------------------------------- delivery */
.deliver { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.rig__view { position: relative; border-radius: var(--r); overflow: hidden; background: radial-gradient(80% 70% at 50% 35%, oklch(26% 0.03 70), oklch(15% 0.02 90)); box-shadow: 0 0 0 1px var(--rule-d); }
.rig__canvas { display: block; width: 100%; aspect-ratio: 16 / 11; }
.rig__counts { position: absolute; left: 1.1rem; top: 1rem; display: flex; gap: 1.6rem; pointer-events: none; }
.rig__counts p { display: grid; }
.rig__counts b { font: 800 clamp(1.8rem, 3.2vw, 2.6rem)/1 var(--display); font-stretch: 125%; font-variant-numeric: tabular-nums; }
.rig__counts p:last-child b { color: var(--yellow); }
.rig__counts span { font-size: .8rem; color: var(--bone-dim); margin-top: .3rem; }
.rig__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .85rem; flex-wrap: wrap; }
.replay { background: none; border: 0; padding: .5rem 0; cursor: pointer; font-size: .9rem; font-weight: 500; color: var(--bone-dim); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rule-d2); }
.replay:hover { color: var(--bone); text-decoration-color: var(--orange-txt); }

.services { display: grid; gap: 0; }
.services li { display: grid; grid-template-columns: 44px 1fr; gap: 1.1rem; padding: 1.25rem 0; border-top: 1px solid var(--rule-d); }
.services li:last-child { border-bottom: 1px solid var(--rule-d); }
.services svg { width: 40px; height: 40px; fill: none; stroke: var(--yellow); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.services h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .2rem; }
.services p { color: var(--bone-dim); font-size: .97rem; }

.wide { margin-top: clamp(2.5rem, 5vw, 4rem); border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 9; }
.wide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.pickup { margin-top: 1.25rem; font-size: 1rem; color: var(--bone-dim); }
.pickup b { color: var(--bone); font-weight: 600; margin-right: .5rem; }

/* ------------------------------------------------------------------- steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { position: relative; display: grid; gap: .55rem; align-content: start; padding-right: 1rem; }
.steps__n { position: relative; z-index: 1; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--orange-on); font: 800 1.15rem/1 var(--display); font-stretch: 125%; margin-bottom: .5rem; }
.steps li::before { content: ""; position: absolute; left: 46px; right: -1.5rem; top: 22px; height: 0; border-top: 2px solid var(--yellow-dk); transform-origin: left; transform: scaleX(var(--draw, 1)); transition: transform 1s var(--punch); }
.steps li:last-child::before { display: none; }
.steps h3 { font-size: 1.15rem; font-weight: 700; }
.steps p { color: var(--soot); font-size: .98rem; }
.steps small { font: 500 .82rem/1.3 var(--mono); color: var(--soot-dim); margin-top: .2rem; }

/* ----------------------------------------------------------------- gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 230px); grid-auto-flow: dense; gap: .7rem; }
.ph { position: relative; padding: 0; border: 0; background: var(--loft-2); border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.ph:hover img { transform: scale(1.05); }
.ph--tall { grid-row: span 2; }
.ph--wide { grid-column: span 2; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(94vw, 1500px); max-height: 92vh; }
.lightbox::backdrop { background: oklch(14% 0.03 150 / .92); }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: var(--r); }
.lightbox button { position: fixed; top: 1rem; right: 1rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--bone); color: var(--soot); font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* --------------------------------------------------------------- questions */
.qa > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: .5rem 3rem; padding: 1.35rem 0; border-top: 1px solid var(--rule-l); }
.qa > div:last-child { border-bottom: 1px solid var(--rule-l); }
.qa dt { font-weight: 600; font-size: 1.08rem; }
.qa dd { color: var(--soot); max-width: 40rem; }

/* ------------------------------------------------------------------- order */
.loft--order { background: linear-gradient(180deg, var(--loft), var(--loft-deep)); }
.order { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem 1rem; background: var(--loft-2); border-radius: var(--r); padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: 0 0 0 1px var(--rule-d); }
.form > * { grid-column: 1 / -1; }
.field--half { grid-column: auto; }
.field { display: grid; gap: .45rem; }
.field label, .pick legend { font-size: .9rem; font-weight: 600; color: var(--bone); }
.field em { font-style: normal; font-weight: 400; color: var(--bone-dim); margin-left: .35rem; font-size: .84rem; }
.field input { width: 100%; height: 50px; padding: 0 1rem; border-radius: var(--r); border: 0; background: var(--loft-3); color: var(--bone); font: 400 1rem var(--body); box-shadow: 0 0 0 1px var(--rule-d) inset; transition: box-shadow .25s; }
.field input::placeholder { color: oklch(72% 0.03 120); }
.field input:hover { box-shadow: 0 0 0 1px var(--rule-d2) inset; }
.field input:focus { outline: 0; box-shadow: 0 0 0 1.5px var(--orange) inset; }
.field input[aria-invalid="true"] { box-shadow: 0 0 0 1.5px oklch(70% 0.16 30) inset; }
.pick { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pick legend { margin-bottom: .55rem; padding: 0; }
.pick label { cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.05rem; border-radius: var(--r); background: var(--loft-3); box-shadow: 0 0 0 1px var(--rule-d) inset; font-size: .95rem; font-weight: 500; color: var(--bone); transition: background-color .25s, box-shadow .25s, color .25s; }
.pick label:hover span { box-shadow: 0 0 0 1px var(--rule-d2) inset; }
.pick input:checked + span { background: var(--orange); color: var(--orange-on); box-shadow: none; font-weight: 600; }
.pick input:focus-visible + span { outline: 2px solid var(--yellow); outline-offset: 2px; }
.stepper { display: grid; grid-template-columns: 50px 1fr 50px; gap: .4rem; max-width: 280px; }
.stepper button { height: 50px; border-radius: var(--r); border: 0; background: var(--loft-3); box-shadow: 0 0 0 1px var(--rule-d) inset; font-size: 1.3rem; cursor: pointer; transition: background-color .2s; }
.stepper button:hover { background: oklch(37% 0.045 146); }
.stepper button:active { transform: scale(.96); }
.stepper input { text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.1rem; }
.form__say { font-size: .95rem; color: var(--bone); }
.form__say:empty { display: none; }
.form__note { font-size: .86rem; color: var(--bone-dim); }
.form__say.is-bad { color: oklch(80% 0.12 40); }
.form__say .btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }

/* the ticket: the same card that hangs off the 3D bale, filled in live */
.ticket { display: grid; gap: 1.5rem; position: sticky; top: 96px; }
.ticket__card {
  position: relative; background: var(--seamless); color: var(--soot);
  border-radius: 8px; padding: 1.5rem 1.5rem 0; overflow: hidden;
  transform-origin: 1.4rem 1.4rem; transform: rotate(-1.4deg);
  box-shadow: 0 30px 50px -30px oklch(0% 0 0 / .8), 0 2px 0 oklch(100% 0 0 / .5) inset;
}
.ticket__card::before { /* the punched hole */
  content: ""; position: absolute; left: 1rem; top: 1rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--loft); box-shadow: 0 0 0 2px oklch(85% 0.02 92) inset;
}
.ticket__card.is-swing { animation: swing 1.4s var(--ease); }
@keyframes swing { 0% { transform: rotate(-1.4deg); } 18% { transform: rotate(3.2deg); } 40% { transform: rotate(-3deg); } 62% { transform: rotate(1deg); } 82% { transform: rotate(-2deg); } 100% { transform: rotate(-1.4deg); } }
.ticket__top { display: grid; gap: .45rem; padding-left: 1.4rem; }
.ticket__top img { width: min(100%, 250px); height: auto; }
.ticket__top span { font: 500 .74rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soot-dim); }
.ticket__rows { margin-top: 1.4rem; }
.ticket__rows > div { display: flex; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-top: 1px dashed oklch(22% 0.02 125 / .25); font-size: .95rem; }
.ticket__rows dt { color: var(--soot-dim); }
.ticket__rows dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.ticket__rows dd.is-empty { font-weight: 400; color: var(--soot-dim); }
.ticket__stack { display: flex; flex-wrap: wrap-reverse; gap: 3px; min-height: 30px; padding: .9rem 0 1.1rem; align-content: flex-end; }
.ticket__stack i { width: 22px; height: 12px; border-radius: 2px; background: linear-gradient(180deg, oklch(80% 0.07 115), oklch(66% 0.07 120)); box-shadow: inset 6px 0 0 -5px #2a55d6, inset -6px 0 0 -5px #2a55d6; animation: bale-in .45s var(--punch) both; }
.ticket__stack em { font: 600 .85rem/12px var(--body); font-style: normal; color: var(--soot-dim); margin-left: .3rem; }
@keyframes bale-in { from { transform: translateY(-14px); opacity: 0; } }
.ticket__strip { margin: 0 -1.5rem; padding: .9rem 1.5rem; background: var(--orange); color: var(--orange-on); font-weight: 600; font-size: .95rem; }
.reach { display: grid; gap: 0; }
.reach a { display: grid; padding: .95rem 0; border-top: 1px solid var(--rule-d); text-decoration: none; font-weight: 600; font-size: 1.02rem; transition: color .2s; }
.reach a:hover { color: var(--yellow); }
.reach span { font-weight: 400; font-size: .86rem; color: var(--bone-dim); }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--loft-deep); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; border-top: 1px solid var(--rule-d); }
.foot__brand img { width: clamp(150px, 18vw, 230px); height: auto; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--rule-d); color: var(--bone-dim); font-size: .95rem; }
.foot__cols a { text-decoration: none; color: var(--bone); }
.foot__cols a:hover { color: var(--yellow); }
.foot__cols nav { display: grid; gap: .35rem; align-content: start; }
.foot__legal { margin-top: 2.5rem; font-size: .82rem; color: var(--bone-dim); }

/* ----------------------------------------------------------------- reveals */
.js [data-rise] { opacity: 0; transform: translateY(18px); }
.js [data-wipe] { clip-path: inset(0 0 100% 0 round var(--r)); }
.js [data-wipe] img { transform: scale(1.12); }
.js .ph { clip-path: inset(100% 0 0 0 round var(--r)); }
.js .steps li::before { --draw: 0; }
.js .steps.is-in li::before { --draw: 1; }
.js .steps.is-in li:nth-child(2)::before { transition-delay: .25s; }
.js .steps.is-in li:nth-child(3)::before { transition-delay: .5s; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .bar__end { margin-left: auto; }
  .cut { grid-template-columns: 1fr; }
  .cut__info { max-width: 40rem; }
}
@media (max-width: 900px) {
  .studio { min-height: auto; padding-top: 96px; }
  /* phone: name, line, buttons, then the bale, so all four land in the first screen */
  .studio__grid { grid-template-columns: 1fr; gap: 0; }
  .studio__copy { display: contents; }
  .studio__name { order: 1; }
  .studio__lede { order: 2; margin-top: 1rem; }
  .studio__ctas { order: 3; margin-top: 1.25rem; }
  .studio__stage { order: 4; margin-top: .25rem; }
  .facts { order: 5; margin-top: 1.5rem; }
  .stage__canvas, .stage__still { height: clamp(250px, 66vw, 440px); }
  .deliver, .order { grid-template-columns: 1fr; }
  .ticket { position: static; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.2rem; }
  .steps li:nth-child(2)::before { display: none; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__note { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .bar__phone { display: none; }
  .bar__in { height: 64px; gap: .75rem; }
  .logo img { height: 32px; }
  .head { grid-template-columns: 1fr; }
  .head p { justify-self: start; }

  .pts { grid-template-columns: 1fr 1fr; }
  .bale { grid-template-columns: 1fr; }
  .config { grid-template-columns: 1fr; }
  .seg { width: 100%; }
  .seg label { flex: 1; text-align: center; }
  .seg span { padding: .62rem .5rem; font-size: .86rem; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .ph--wide { grid-column: span 2; }
  .qa > div { grid-template-columns: 1fr; }
  .wide { aspect-ratio: 4 / 3; }
  .form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .steps li::before { display: none; }
  .rig__counts { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-rise], .js [data-wipe], .js .ph { opacity: 1; transform: none; clip-path: none; }
  .js [data-wipe] img { transform: none; }
}

/* Phones and touch: the blend-mode grain repaints the whole hero under the
   3D canvas on every frame. Drop it there; it's barely visible at that size. */
@media (max-width: 760px), (pointer: coarse) {
  .studio__sweep::after { display: none; }
}
