/* ==========================================================================
   J.BASSIM — motion layer.
   The scroll film, the ink statement, the hand plane, the kitchen built in
   layers, the sideways work reel, the tape-measure progress, the veneer wipe
   and the poured wordmark. Same palette and type as site.css.
   Everything is readable without JavaScript and with reduced motion.
   ========================================================================== */

:root { --oak: #C8A27A; --oak-pale: #E3C9A8; --grain: repeating-linear-gradient(100deg, rgba(200,162,122,.07) 0 2px, transparent 2px 9px); }

/* ------------------------------------------------------------------ film */
.film { position: relative; height: 560vh; background: #0E1110; color: #fff; }
.film__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.film__poster, .film__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film__poster { object-position: 70% 50%; }
.film__poster { transition: opacity .4s; } .film.drawn .film__poster { opacity: 0; }
.film__canvas { display: block; }
.film__veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,17,16,.5) 0%, rgba(14,17,16,0) 24%, rgba(14,17,16,0) 52%, rgba(14,17,16,.66) 100%),
              linear-gradient(90deg, rgba(14,17,16,.42) 0%, rgba(14,17,16,0) 55%); }
.film__grain { position: absolute; inset: -50%; pointer-events: none; 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");
  animation: fgrain 1.2s steps(6) infinite; }
@keyframes fgrain { 0%{transform:translate(0,0)} 25%{transform:translate(-4%,3%)} 50%{transform:translate(3%,-2%)} 75%{transform:translate(-2%,-4%)} 100%{transform:translate(0,0)} }
.film__load { position: absolute; left: 0; top: 0; z-index: 3; height: 2px; width: 0; background: var(--sage-light); transition: width .3s, opacity .8s; }

.film__intro { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 26px; text-align: center; padding: 0 var(--gut); pointer-events: none; will-change: transform, opacity, filter; }
.film__brand { display: flex; align-items: center; gap: 14px; font-family: var(--sans); font-weight: 300; font-size: 12px; letter-spacing: .42em; color: rgba(255,255,255,.86); }
.film__brand img { width: 30px; height: 30px; border-radius: 50%; }
.film__brand span { color: var(--sage-light); font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.25); }
.film__title { font-size: clamp(46px, 8vw, 128px); font-weight: 300; line-height: .96; letter-spacing: -.025em; text-shadow: 0 2px 40px rgba(0,0,0,.28); }
.film__title em { color: var(--oak-pale); }
.film__cue { position: absolute; left: 50%; bottom: 36px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--sans); font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.film__cue i { width: 1px; height: 46px; background: linear-gradient(#fff, transparent); animation: drip 2s ease-in-out infinite; }

.fcap { position: absolute; left: var(--gut); bottom: clamp(96px, 15vh, 160px); max-width: min(600px, 86vw); pointer-events: none; }
.fcap__k { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; font-family: var(--sans); font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--sage-light); }
.fcap__k::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.fcap__h { font-size: clamp(38px, 5vw, 76px); font-weight: 300; line-height: 1.02; letter-spacing: -.02em; }
.fcap__h em { color: var(--oak-pale); }
.fcap__t { margin-top: 18px; max-width: 30em; font-family: var(--sans); font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.8); }
.fcap .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.fcap .ln > span { display: block; transform: translateY(108%); transition: transform 1s var(--ease); }
.fcap__k, .fcap__t { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .9s var(--ease); }
.fcap.on .ln > span { transform: none; }
.fcap.on .ln + .ln > span { transition-delay: .08s; }
.fcap.on .fcap__k { opacity: 1; transform: none; }
.fcap.on .fcap__t { opacity: 1; transform: none; transition-delay: .16s; }
.fcap.out .ln > span { transform: translateY(-108%); transition-duration: .6s; }
.fcap.out .fcap__k, .fcap.out .fcap__t { opacity: 0; transform: translateY(-10px); transition-duration: .4s; }

.film__end { position: absolute; left: var(--gut); right: var(--gut); bottom: max(12vh, 96px); max-width: 920px; opacity: 0; transform: translateY(30px); pointer-events: none; transition: opacity 1s ease, transform 1.1s var(--ease); }
.film__end.on { opacity: 1; transform: none; pointer-events: auto; }
.film__k { color: var(--sage-light); }
.film h1 { font-size: clamp(44px, 7vw, 104px); font-weight: 300; line-height: 1; letter-spacing: -.025em; max-width: 13ch; }
.film h1 em { color: var(--oak-pale); }
.film__lede { margin-top: 22px; max-width: 31em; font-family: var(--sans); font-weight: 300; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.75; color: rgba(255,255,255,.78); }
.film__end .btns { margin-top: 30px; }

.rail { position: absolute; right: var(--gut); top: 50%; translate: 0 -50%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rail__n { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.8); }
.rail__track { position: relative; width: 1px; height: 190px; background: rgba(255,255,255,.2); }
.rail__fill { position: absolute; inset: 0 0 auto; height: 0; background: #fff; }
.rail__tick { position: absolute; left: -3px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: #0E1110; translate: 0 -50%; transition: background .3s; }
.rail__tick.on { background: var(--oak-pale); border-color: var(--oak-pale); }
.film__skip { position: absolute; right: var(--gut); bottom: 34px; font-family: var(--sans); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.28); padding: 11px 20px; transition: .35s; }
.film__skip:hover { background: #fff; color: var(--ink); }
.film.is-end .film__skip, .film.is-end .film__cue { opacity: 0; pointer-events: none; }
/* the nav is hidden while the film opens, then comes back */
.has-film .nav.film-hide { opacity: 0; transform: translateY(-12px); pointer-events: none; }
@media (max-width: 880px) {
  .film { height: 480vh; }
  .rail { display: none; }
  .fcap { bottom: calc(150px + env(safe-area-inset-bottom)); }
  .film__skip { right: auto; left: var(--gut); bottom: calc(26px + env(safe-area-inset-bottom)); }
  .film__cue { display: none; }
  .film__end { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .film__end .btns .btn { flex: 1 1 150px; }
  .film__brand span { display: none; }
}
@media (max-height: 640px) and (max-width: 880px) { .film__lede, .fcap__t { display: none; } }

/* ------------------------------------------------------------ statement */
.statement { padding: 20vh var(--gut) 8vh; max-width: 1320px; margin: 0 auto; }
.ink { font-size: clamp(30px, 4.3vw, 64px); font-weight: 300; line-height: 1.18; letter-spacing: -.02em; }
.ink .iw { color: rgba(20,24,22,.14); transition: color .35s ease; }
.ink .iw.on { color: var(--ink); }
.ink mark { position: relative; background: none; color: inherit; font-style: italic; }
.ink mark .iw.on { color: var(--walnut); }
.ink mark::after { content: ""; position: absolute; left: -.05em; right: -.05em; bottom: .08em; height: .32em; z-index: -1; background: rgba(200,162,122,.34); transform: scaleX(var(--m, 0)); transform-origin: left; }
.manifesto { padding-top: 8vh; }
html:not(.js) .ink .iw { color: var(--ink); }

/* ---------------------------------------------------------------- plane */
.plane { position: relative; height: 320vh; background: var(--ink); color: var(--paper); }
.plane__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--nav-h) + 4vh) var(--gut) 7vh; background-image: var(--grain); }
.plane__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.plane__head .kicker { color: var(--sage-light); margin: 0; }
.plane__meter { font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(238,240,237,.6); }
.plane__meter b { font-weight: 400; color: var(--oak-pale); font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.plane__stage { position: relative; align-self: center; height: min(46vh, 420px); }
.plane__board { position: absolute; left: -2vw; right: -2vw; bottom: 0; height: 30%; background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 40px, transparent 40px 90px),
    linear-gradient(180deg, #5b4131, #3f2d22); box-shadow: inset 0 10px 18px rgba(0,0,0,.35); }
.plane__smooth { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x, 0%)) 0 0); background:
    repeating-linear-gradient(178deg, rgba(255,255,255,.05) 0 2px, transparent 2px 11px),
    linear-gradient(180deg, #b58b63, #8b6445); box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.plane__rough, .plane__clean { position: absolute; left: 0; right: 0; bottom: 34%; font-size: clamp(46px, 9.2vw, 150px); font-weight: 300; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.plane__rough { color: #7c705f; text-shadow: 2px 2px 0 rgba(0,0,0,.25); }
.plane__rough .ch { display: inline-block; will-change: transform, opacity; }
.plane__clean { color: var(--paper); clip-path: inset(0 calc(100% - var(--x, 0%)) 0 0); }
.plane__clean em { color: var(--oak-pale); }
.plane__tool { position: absolute; bottom: 29%; left: 0; width: clamp(180px, 25vw, 360px); translate: -100% 0; will-change: transform; filter: drop-shadow(0 18px 18px rgba(0,0,0,.45)); }
.plane__svg { display: block; width: 100%; height: auto; }
.plane__curls { position: absolute; left: 44%; top: -8%; width: 40%; height: 60%; pointer-events: none; }
.curl { position: absolute; width: 46%; opacity: 0; transform-origin: 20% 80%; transition: opacity .3s; }
.curl--1 { left: 0; top: 10%; } .curl--2 { left: 34%; top: -20%; width: 36%; } .curl--3 { left: 60%; top: 16%; width: 30%; }
.plane.is-cutting .curl { opacity: 1; }
.plane__note { max-width: 34em; font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.75; color: rgba(238,240,237,.62); }
@media (max-width: 880px) {
  .plane { height: 260vh; }
  .plane__rough, .plane__clean { font-size: clamp(36px, 11vw, 64px); bottom: 36%; }
  .plane__stage { height: 38vh; }
}

/* -------------------------------------------------------------- anatomy */
.anatomy { position: relative; height: 380vh; background: var(--paper-2); }
.anatomy__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 5vw; align-items: center; padding: calc(var(--nav-h) + 2vh) var(--gut) 5vh; overflow: hidden; }
.anatomy__txt .h2 { font-size: clamp(32px, 3.6vw, 54px); }
.anatomy__steps { list-style: none; margin-top: 30px; display: grid; gap: 4px; counter-reset: st; }
.anatomy__steps li { counter-increment: st; position: relative; display: grid; gap: 2px; padding: 12px 0 12px 46px; border-top: 1px solid var(--line); opacity: .34; transition: opacity .5s, transform .6s var(--ease); }
.anatomy__steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 13px; font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--sage-mid); }
.anatomy__steps li::after { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--walnut); transition: width .8s var(--ease); }
.anatomy__steps li.on { opacity: 1; }
.anatomy__steps li.on::after { width: 100%; }
.anatomy__steps b { font-weight: 400; font-size: 20px; }
.anatomy__steps span { font-family: var(--sans); font-weight: 300; font-size: 14px; line-height: 1.6; color: rgba(20,24,22,.62); max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
.anatomy__steps li.cur span { max-height: 4.8em; }
.anatomy__art { position: relative; }
.anat { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 50px rgba(20,24,22,.12)); }
.anat .L { opacity: 0; will-change: transform, opacity; }
.anat .L1 { opacity: 1; }
.anat .draw { fill: none; stroke: #141816; stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: var(--d, 1); }
.anatomy__cap { margin-top: 18px; font-family: var(--sans); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--sage-mid); }
html:not(.js) .anat .L { opacity: 1; } html:not(.js) .anat .draw { stroke-dashoffset: 0; }
@media (max-width: 980px) {
  .anatomy { height: 340vh; }
  .anatomy__pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 18px; align-content: start; }
  .anatomy__steps { margin-top: 14px; }
  .anatomy__steps li { padding: 8px 0; display: none; }
  .anatomy__steps li::before { display: none; }
  .anatomy__steps li.cur { display: grid; }
  .anatomy__steps li.cur span { max-height: none; }
  .anatomy__txt .h2 { font-size: 30px; }
}

/* ------------------------------------------------------------ work reel */
.reelx { position: relative; background: var(--ink); color: var(--paper); }
.reelx__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; gap: 4vh; padding: calc(var(--nav-h) + 3vh) 0 5vh; }
.reelx__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 30px; padding: 0 var(--gut); }
.reelx__head .kicker { color: var(--sage-light); width: 100%; margin-bottom: 0; }
.reelx__head .h2 { color: var(--paper); }
.reelx__head .link { color: var(--sage-light); margin: 0; }
.reelx__track { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gut); will-change: transform; }
.reelx__tile { flex: none; width: clamp(260px, 30vw, 460px); margin: 0; }
.reelx__tile.is-tall { width: clamp(200px, 21vw, 330px); }
.reelx__img { overflow: hidden; aspect-ratio: 4 / 3.2; }
.reelx__tile.is-tall .reelx__img { aspect-ratio: 3 / 4; }
.reelx__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.2s var(--ease); }
.reelx__tile:hover .reelx__img img { transform: scale(1.04); }
.reelx__tile figcaption { display: flex; gap: 14px; margin-top: 14px; font-family: var(--sans); font-weight: 300; font-size: 13px; color: rgba(238,240,237,.7); }
.reelx__tile figcaption span { color: var(--oak-pale); letter-spacing: .12em; }
.reelx__more { flex: none; display: grid; place-items: center; align-content: center; gap: 14px; width: clamp(220px, 22vw, 320px); aspect-ratio: 1; border: 1px solid rgba(238,240,237,.2); border-radius: 50%; font-size: clamp(22px, 2vw, 30px); transition: background .5s, color .5s; }
.reelx__more i { font-style: normal; font-family: var(--sans); color: var(--oak-pale); }
.reelx__more:hover { background: var(--paper); color: var(--ink); }
.reelx__bar { margin: 0 var(--gut); height: 1px; background: rgba(238,240,237,.16); }
.reelx__bar i { display: block; height: 100%; width: 0; background: var(--oak-pale); }
/* phones and reduced motion: a plain swipe row */
@media (max-width: 880px) {
  .reelx { height: auto !important; }
  .reelx__pin { position: relative; height: auto; padding: 14vh 0 12vh; }
  .reelx__track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; transform: none !important; }
  .reelx__track::-webkit-scrollbar { display: none; }
  .reelx__tile, .reelx__more { scroll-snap-align: center; }
  .reelx__tile { width: 74vw; } .reelx__tile.is-tall { width: 58vw; }
  .reelx__bar { display: none; }
}

/* --------------------------------------------------------- testimonials */
.voices { padding: 18vh var(--gut); }
.voices__row { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 420px)); justify-content: center; gap: 22px; }
.voice { margin: 0; padding: 34px 30px; background: #fff; border: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.voice__stars { color: var(--oak); letter-spacing: 4px; font-size: 14px; }
.voice blockquote { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.45; letter-spacing: -.01em; }
.voice figcaption { font-family: var(--sans); font-size: 13px; color: rgba(20,24,22,.6); }
.voice figcaption b { font-weight: 500; color: var(--ink); }
.voices__more { text-align: center; margin-top: 40px; }

/* ------------------------------------------------ footer: poured wordmark */
.pour { position: relative; max-width: 1320px; margin: 9vh auto 2vh; container-type: inline-size; font-weight: 300; line-height: .82; letter-spacing: -.04em; white-space: nowrap; user-select: none; text-align: center; }
.pour span { font-size: 40cqw; }
.pour span { display: block; }
.pour__out { color: transparent; -webkit-text-stroke: 1px rgba(238,240,237,.18); }
.pour__in { position: absolute; inset: 0; color: transparent; background:
    repeating-linear-gradient(96deg, rgba(0,0,0,.14) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(90deg, transparent 0 60px, rgba(255,255,255,.06) 60px 64px),
    linear-gradient(180deg, #d4b089, #9c714e 55%, #6b4a33);
  -webkit-background-clip: text; background-clip: text; clip-path: inset(calc(100% - var(--fill, 0%)) 0 0 0); }
html:not(.js) .pour__in { --fill: 100%; }

/* --------------------------------------------- scroll progress: tape rule */
.tape { position: fixed; left: 0; right: 0; bottom: 0; z-index: 58; height: 16px; pointer-events: none; opacity: 0; transition: opacity .5s; }
.tape.show { opacity: 1; }
.tape__rule { position: absolute; inset: 0; background:
    repeating-linear-gradient(90deg, rgba(20,24,22,.34) 0 1px, transparent 1px 10px) left bottom / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, rgba(20,24,22,.55) 0 1px, transparent 1px 50px) left bottom / 100% 10px no-repeat; }
.tape__fill { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--walnut), var(--oak)); }
.tape__tag { position: absolute; bottom: 12px; left: 0; translate: -50% 0; padding: 3px 7px; background: var(--ink); color: var(--oak-pale); font-family: var(--sans); font-size: 10px; letter-spacing: .12em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tape.on-dark .tape__rule { filter: invert(1); opacity: .7; }
@media (max-width: 880px) { .tape__tag { display: none; } }

/* ---------------------------------------------- veneer wipe between pages */
.veneer { position: fixed; inset: 0; z-index: 120; pointer-events: none; display: grid; place-items: center; background:
    repeating-linear-gradient(94deg, rgba(0,0,0,.12) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(90deg, transparent 0 120px, rgba(255,255,255,.05) 120px 124px),
    linear-gradient(180deg, #6b4a33, #4d3424);
  clip-path: inset(100% 0 0 0); }
.veneer span { opacity: 0; transform: scale(.9); transition: opacity .4s, transform .6s var(--ease); }
.veneer img { border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.veneer.enter { clip-path: inset(0 0 0 0); transition: clip-path .6s cubic-bezier(.7,0,.2,1); }
.veneer.enter span, .veneer.cover span { opacity: 1; transform: none; }
.veneer.cover { clip-path: inset(0 0 0 0); transition: none; }
.veneer.leave { clip-path: inset(0 0 100% 0); transition: clip-path .8s cubic-bezier(.7,0,.2,1) .1s; }
.wipe-in #loader { display: none; }

/* --------------------------------------------------- announcement strip */
.ann { position: relative; z-index: 61; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 10px var(--gut); background: var(--walnut); color: var(--paper); font-family: var(--sans); font-size: 12.5px; letter-spacing: .08em; }
.ann i { font-style: normal; transition: transform .3s; }
.ann:hover i { transform: translateX(4px); }
body:has(.ann) .nav { top: 38px; }
body:has(.ann) .nav.scrolled { top: 0; }

/* ------------------------------------------------------ magnetic buttons */
.magnet { transition: transform .5s var(--ease), color .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease); }

/* -------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .film { height: auto; }
  .film__stage { position: relative; }
  .film__poster { opacity: 1 !important; }
  .film__canvas, .film__intro, .fcap, .rail, .film__cue, .film__skip, .film__grain { display: none; }
  .film__end { opacity: 1; transform: none; pointer-events: auto; }
  .plane, .anatomy { height: auto; }
  .plane__pin, .anatomy__pin { position: relative; height: auto; min-height: 100vh; }
  .plane__rough, .plane__tool { display: none; }
  .plane__clean, .plane__smooth { clip-path: none; }
  .anat .L { opacity: 1 !important; transform: none !important; } .anat .draw { stroke-dashoffset: 0; }
  .anatomy__steps li { opacity: 1; } .anatomy__steps li span { max-height: none; }
  .reelx { height: auto !important; } .reelx__pin { position: relative; height: auto; }
  .reelx__track { overflow-x: auto; transform: none !important; }
  .ink .iw { color: var(--ink); }
  .veneer { display: none; }
}
