/* =====================================================================
   R&J Services · "The Digital Mill"
   A design rooted in Lowell, MA: mill brick, cotton paper, dyed thread,
   Jacquard punch cards. One stylesheet for the public site + pay page.
   ===================================================================== */
:root {
  --paper: #f3ede2;
  --paper2: #e9e0cf;
  --paper3: #ddd1bb;
  --card: #fbf8f2;
  --ink: #1d1913;
  --ink2: #3b342a;
  --muted: #6b6255;
  --dim: #8f8576;
  --line: rgba(29, 25, 19, .14);
  --line2: rgba(29, 25, 19, .28);
  --night: #191510;
  --night2: #241f18;
  --on-night: #f3ede2;
  --on-night-muted: #b5aa98;

  --brick: #b4432a;
  --brick-dk: #923420;
  --indigo: #2c3d8f;
  --gold: #d49b1f;
  --teal: #1d7566;

  /* legacy names so older markup keeps working */
  --bg: var(--paper);
  --bg2: var(--night);
  --lime: var(--brick);
  --lime-ink: #fff;

  --serif: 'Fraunces', 'Bricolage Grotesque', Georgia, 'Times New Roman', serif;
  --sans: 'Instrument Sans', 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: 1.02; letter-spacing: -.02em; font-variation-settings: 'SOFT' 30, 'WONK' 0; }
h2 em, h1 em, .mega em { font-style: italic; font-weight: 500; color: var(--brick); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
p { margin: 0; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1240px, 100%); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.gtm-ns { display: none; visibility: hidden; }

/* paper grain + cursor yarn */
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.yarn { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 95; }
.spot { display: none; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); animation: rv-failsafe .01s 3.5s forwards; }
.js .reveal { animation: none; }
.reveal.in { opacity: 1; transform: none; }
@keyframes rv-failsafe { to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.btn { --bb: var(--ink); display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 1.5px solid var(--bb); background: var(--bb); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.1; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s; position: relative; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-brick, .btn-lime { --bb: var(--brick); color: #fff; }
.btn-brick:hover, .btn-lime:hover { background: var(--brick-dk); }
.btn-ink, .btn-dark { --bb: var(--ink); color: var(--paper); }
.btn-line, .btn-ghost { background: transparent; color: var(--ink); --bb: var(--ink); }
.btn-line:hover, .btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-lg { padding: 18px 28px; font-size: 17px; }
.btn-sm { padding: 10px 18px; font-size: 14.5px; }
.btn-sub { font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; opacity: .8; border-left: 1px solid rgba(255, 255, 255, .4); padding-left: 10px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.logo b, .logo span { font-weight: 800; font-variation-settings: 'SOFT' 0, 'WONK' 0; }
.logo i { font-style: italic; font-weight: 500; color: var(--brick); margin: 0 1px; display: inline-block; transition: transform .6s var(--ease); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.logo:hover i { transform: rotate(-12deg) scale(1.12); }
.logo small { font: 500 10px/1.25 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line2); }
.logo-lg { font-size: clamp(72px, 12vw, 150px); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 80; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(243, 237, 226, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.links { display: flex; gap: 6px; }
.links a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: 15.5px; color: var(--ink2); position: relative; }
.links a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: repeating-linear-gradient(90deg, var(--brick) 0 5px, transparent 5px 9px); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.links a:hover::after { transform: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font: 500 14px var(--mono); text-decoration: none; color: var(--ink2); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mnav { background: var(--paper); border-top: 1px solid var(--line); padding: 10px 24px 24px; display: grid; }
.mnav[hidden] { display: none; }
.mnav a { font: 600 28px/1.1 var(--serif); text-decoration: none; padding: 12px 0; border-bottom: 1px dashed var(--line2); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 40px 0 0; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(29, 25, 19, .05) 39px 40px); mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero-in { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; padding-bottom: 72px; position: relative; }
.eyebrow { font: 500 12.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink2); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eyebrow .sep { color: var(--brick); }
.stitch-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brick); box-shadow: 0 0 0 4px rgba(180, 67, 42, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(180, 67, 42, 0); } }
.hero h1 { font-size: clamp(48px, 7.2vw, 108px); line-height: .94; letter-spacing: -.035em; font-weight: 600; margin: 22px 0 26px; font-variation-settings: 'opsz' 144, 'SOFT' 20, 'WONK' 0; }
.rotator { display: inline-block; position: relative; white-space: nowrap; color: var(--indigo); }
.rotator::after { content: ''; position: absolute; left: 2%; right: 2%; bottom: -.02em; height: .065em; background: repeating-linear-gradient(90deg, currentColor 0 .22em, transparent .22em .34em); border-radius: 2px; }
.rot-word { display: inline-block; font-style: italic; font-weight: 500; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.rot-word.out { animation: rot-out .32s var(--ease) forwards; }
.rot-word.in { animation: rot-in .5s var(--ease); }
@keyframes rot-out { to { opacity: 0; transform: translateY(-.35em) skewX(-8deg); filter: blur(4px); } }
@keyframes rot-in { from { opacity: 0; transform: translateY(.35em) skewX(8deg); filter: blur(4px); } }
.lede { font-size: 19px; color: var(--ink2); max-width: 560px; }
.lede b { color: var(--ink); font-weight: 600; background: linear-gradient(transparent 62%, rgba(212, 155, 31, .38) 62%); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 34px 0 34px; }
.proof { list-style: none; margin: 0; padding: 22px 0 0; display: flex; gap: 0; border-top: 1px dashed var(--line2); max-width: 560px; }
.proof li { flex: 1; padding-right: 16px; }
.proof li + li { padding-left: 18px; border-left: 1px dashed var(--line2); }
.proof b { display: block; font: 600 30px/1 var(--serif); letter-spacing: -.02em; }
.proof span { font: 500 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* the loom */
.loom { margin: 0; position: relative; filter: drop-shadow(0 30px 40px rgba(60, 40, 20, .22)); }
.loom-beam { background: linear-gradient(180deg, #4a3423, #2b1d12); color: #e9d9bd; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font: 500 10.5px var(--mono); letter-spacing: .1em; position: relative; z-index: 2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), inset 0 -2px 0 rgba(0, 0, 0, .3); }
.loom-beam.top { border-radius: 10px 10px 4px 4px; }
.loom-beam.bottom { border-radius: 4px 4px 10px 10px; justify-content: center; gap: 22px; height: 30px; }
.spool { width: 40px; height: 14px; border-radius: 3px; position: relative; background: repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px), var(--sc); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.spool::before, .spool::after { content: ''; position: absolute; top: -3px; bottom: -3px; width: 5px; background: #c9a77a; border-radius: 2px; }
.spool::before { left: -4px; } .spool::after { right: -4px; }
.s1 { --sc: var(--brick); } .s2 { --sc: var(--indigo); } .s3 { --sc: var(--gold); } .s4 { --sc: var(--teal); }
.loom-cloth { position: relative; aspect-ratio: 16 / 10; background: #efe6d6; margin: 0 10px; overflow: hidden; border-left: 3px solid #3a2819; border-right: 3px solid #3a2819; }
.loom-cloth canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.loom-reveal { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; opacity: 0; transition: opacity 1.1s ease, transform 1.4s var(--ease); transform: scale(1.04); }
.loom-reveal img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.loom.show .loom-reveal { opacity: 1; transform: none; }
.loom.static .loom-reveal { opacity: 1; transform: none; transition: none; }
.shuttle { position: absolute; left: 0; top: 0; width: 54px; height: 12px; transform: translate(-60px, -6px); pointer-events: none; transition: opacity .3s; z-index: 2; }
.shuttle i { position: absolute; inset: 0; background: linear-gradient(180deg, #e7b84d, #a8761a); clip-path: polygon(0 50%, 18% 0, 82% 0, 100% 50%, 82% 100%, 18% 100%); box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.shuttle i::after { content: ''; position: absolute; left: 30%; right: 30%; top: 4px; height: 4px; border-radius: 2px; background: #5d3d10; }
.loom.show .shuttle, .loom.static .shuttle { opacity: 0; }
.loom figcaption { display: flex; align-items: center; gap: 8px; margin-top: 16px; font: 500 12.5px var(--mono); color: var(--muted); letter-spacing: .02em; }
.loom figcaption b { color: var(--ink); font-weight: 600; }
.loom-hint { margin-left: auto; text-transform: uppercase; font-size: 10.5px; letter-spacing: .1em; border: 1px solid var(--line2); padding: 4px 8px; border-radius: 99px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(29, 117, 102, .2); animation: pulse 2s infinite; }

/* woven client labels */
.labels { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper2); padding: 16px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.labels-track { display: flex; gap: 14px; width: max-content; animation: marquee 50s linear infinite; }
.labels:hover .labels-track { animation-play-state: paused; }
.labels span { font: 600 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; padding: 11px 16px; border-radius: 3px; color: #fbf5ea; background: var(--lc, var(--ink)); outline: 1.5px dashed rgba(255, 255, 255, .55); outline-offset: -5px; white-space: nowrap; }
.labels span:nth-child(4n+1) { --lc: var(--brick); }
.labels span:nth-child(4n+2) { --lc: var(--indigo); }
.labels span:nth-child(4n+3) { --lc: var(--ink); }
.labels span:nth-child(4n+4) { --lc: var(--teal); }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- sections ---------- */
main { position: relative; }
.section { padding: 130px 0; position: relative; z-index: 1; }
.sec-head { margin-bottom: 60px; max-width: 760px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; max-width: none; flex-wrap: wrap; }
.kicker { font: 500 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink2); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.kn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 11px; letter-spacing: 0; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--ink); }
.section h2 { font-size: clamp(40px, 5.6vw, 78px); letter-spacing: -.03em; font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0; }
.sec-sub { font-size: 18.5px; color: var(--ink2); margin-top: 22px; max-width: 580px; }

/* the golden thread that runs down the page */
.thread { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.thread path { fill: none; stroke: var(--brick); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.thread path.shadow { stroke: rgba(29, 25, 19, .1); stroke-width: 3; transform: translate(2px, 3px); }

/* ---------- services: swatches ---------- */
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.swatch { --c: var(--brick); background: var(--card); border-radius: 6px; position: relative; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line), 0 18px 40px -26px rgba(60, 40, 20, .45); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.swatch::after { content: ''; position: absolute; inset: 7px; border: 1.5px dashed var(--line2); border-radius: 3px; pointer-events: none; }
.swatch[data-c="indigo"] { --c: var(--indigo); }
.swatch[data-c="gold"] { --c: var(--gold); }
.swatch[data-c="teal"] { --c: var(--teal); }
.swatch:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: 0 1px 0 var(--line), 0 30px 50px -26px rgba(60, 40, 20, .55); }
.weave { height: 168px; border-radius: 6px 6px 0 0; position: relative; overflow: hidden; background-color: var(--c);
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 6px);
  background-size: 8px 8px, 8px 8px, auto; transition: background-position 1.2s var(--ease); }
.swatch:hover .weave { background-position: 16px 0, 0 16px, 0 0; }
.sw-no { position: absolute; left: 18px; top: 16px; font: 600 12px var(--mono); letter-spacing: .1em; color: rgba(255, 255, 255, .9); background: rgba(0, 0, 0, .18); padding: 4px 8px; border-radius: 3px; }
.sw-ico { position: absolute; right: 18px; bottom: 16px; width: 92px; height: 64px; display: grid; place-items: center; background: var(--card); border-radius: 6px; box-shadow: 0 6px 16px rgba(0,0,0,.2); transform: rotate(3deg); transition: transform .5s var(--ease); }
.swatch:hover .sw-ico { transform: rotate(-3deg) scale(1.06); }
.sw-ico svg { width: 64px; height: 44px; fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sw-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.sw-body h3 { font-size: 30px; margin-bottom: 10px; }
.sw-body p { color: var(--ink2); font-size: 15.5px; }
.sw-body ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 7px; font-size: 14.5px; }
.sw-body li { padding-left: 22px; position: relative; }
.sw-body li::before { content: ''; position: absolute; left: 0; top: .72em; width: 13px; height: 2px; background: repeating-linear-gradient(90deg, var(--c) 0 3px, transparent 3px 5px); }
.sw-link { margin-top: auto; font-weight: 600; text-decoration: none; color: var(--c); display: inline-flex; gap: 8px; align-items: center; position: relative; z-index: 1; filter: saturate(1.2) brightness(.85); }
.sw-link span { transition: transform .3s var(--ease); }
.sw-link:hover span { transform: translateX(5px); }

/* ---------- work: pattern book ---------- */
.work { background: var(--paper2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background .2s, color .2s; }
.filters button sup { font: 500 10px var(--mono); }
.filters button:hover { background: rgba(29, 25, 19, .06); }
.filters button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.work-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px 24px; }
.wcard { --wc: var(--brick); grid-column: span 2; text-align: left; border: 0; padding: 0; background: none; cursor: pointer; display: flex; flex-direction: column; animation: card-in .7s var(--ease) both; }
.wcard.big { grid-column: span 3; }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } }
.w-shot { position: relative; aspect-ratio: 16 / 10; background: var(--card); padding: 10px; border-radius: 4px; box-shadow: 0 1px 0 var(--line), 0 20px 40px -24px rgba(60, 40, 20, .5); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.w-shot::before { content: ''; position: absolute; left: 50%; top: -8px; width: 54px; height: 18px; transform: translateX(-50%) rotate(-2deg); background: rgba(212, 155, 31, .55); z-index: 2; }
.w-shot > img, .w-shot > .mock { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 2px; }
.wcard:hover .w-shot { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 1px 0 var(--line), 0 34px 50px -26px rgba(60, 40, 20, .6); }
.wcard:nth-child(even):hover .w-shot { transform: translateY(-6px) rotate(.6deg); }
.w-app { position: absolute; right: 18px; bottom: -22px; width: 22%; border-radius: 14px; overflow: hidden; border: 4px solid var(--ink); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.w-meta { padding: 20px 4px 0; }
.w-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.w-top h3 { font-size: 24px; }
.wcard.big .w-top h3 { font-size: 30px; }
.w-place { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--paper); background: var(--wc); padding: 4px 8px; border-radius: 2px; white-space: nowrap; flex-shrink: 0; }
.w-meta p { color: var(--ink2); font-size: 15px; margin-top: 6px; }
.w-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.w-tags span { font: 500 11px var(--mono); padding: 4px 9px; border: 1px dashed var(--line2); border-radius: 99px; color: var(--ink2); }
.work-more { text-align: center; margin-top: 50px; }
.work-more[hidden] { display: none; }

/* designed UI mocks for software without screenshots */
.mock { display: flex; background: #12161c; color: #e7ecf3; font: 500 11px var(--mono); overflow: hidden; }
.mock-side { width: 16%; background: rgba(255,255,255,.04); padding: 12px 8px; display: grid; gap: 8px; align-content: start; }
.mock-side i { height: 8px; border-radius: 3px; background: rgba(255,255,255,.12); }
.mock-side i:first-child { background: var(--wc); }
.mock-main { flex: 1; padding: 14px; display: grid; gap: 10px; align-content: start; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kpi { background: rgba(255,255,255,.05); border-radius: 6px; padding: 8px; color: #9aa4b2; font-size: 9.5px; }
.mock-kpi b { display: block; color: #fff; font-size: 17px; margin-top: 2px; }
.mock-list { display: grid; gap: 6px; }
.mock-li { display: flex; justify-content: space-between; background: rgba(255,255,255,.04); padding: 8px 10px; border-radius: 6px; font-size: 10px; }
.mock-li em { font-style: normal; color: var(--wc); }
.mock-chat { flex: 1; padding: 16px; display: grid; gap: 8px; align-content: center; }
.bubble { background: rgba(255,255,255,.07); padding: 9px 12px; border-radius: 12px; max-width: 85%; font-size: 10.5px; line-height: 1.45; }
.bubble.me { justify-self: end; background: var(--wc); color: #111; }
.bubble.tool { color: var(--wc); background: transparent; border: 1px dashed rgba(255,255,255,.2); }

/* ---------- why: mill notice ---------- */
.why { background: var(--night); color: var(--on-night); overflow: hidden; }
.why h2 { color: var(--on-night); }
.why h2 em { color: var(--gold); }
.why .kicker { color: var(--on-night-muted); }
.why .kn { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 3px var(--night), 0 0 0 4.5px var(--gold); }
.why-in { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.why-story > p:not(.kicker):not(.fineprint) { color: var(--on-night-muted); font-size: 18px; margin-top: 26px; max-width: 520px; }
.punch-art { margin-top: 40px; max-width: 520px; border-radius: 6px 26px 6px 6px; background: #e9dcc2; padding: 16px 16px 14px; display: grid; grid-template-columns: repeat(26, 1fr); gap: 4px 3px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); }
.punch-art i { aspect-ratio: 1 / 1.7; border-radius: 2px; border: 1px solid rgba(42, 31, 20, .14); transition: background .3s; }
.punch-art i.on { background: var(--night); border-color: var(--night); }
.punch-art .pa-cap { grid-column: 1 / -1; font: 600 9.5px var(--mono); letter-spacing: .16em; color: #7a2b1a; display: flex; justify-content: space-between; margin-top: 6px; }
.fineprint { font: 500 12.5px/1.6 var(--mono); color: var(--on-night-muted); margin-top: 16px; max-width: 520px; }
.notice { background: #efe3c9; color: #2a1f14; padding: 40px 40px 34px; position: relative; transform: rotate(1.2deg); box-shadow: 0 40px 70px -30px rgba(0,0,0,.7); text-align: center;
  background-image: radial-gradient(ellipse at 20% 0%, rgba(150, 100, 40, .16), transparent 60%), radial-gradient(ellipse at 100% 100%, rgba(150, 100, 40, .2), transparent 55%); }
.notice::before, .notice::after { content: ''; position: absolute; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d9d2c4, #6b6255 70%); box-shadow: 0 2px 3px rgba(0,0,0,.4); }
.notice::before { left: 14px; } .notice::after { right: 14px; }
.n-top { font: 600 11px var(--mono); letter-spacing: .22em; color: #7a2b1a; border-top: 2px solid #2a1f14; border-bottom: 2px solid #2a1f14; padding: 7px 0; }
.n-title { font: 900 clamp(60px, 8vw, 104px)/.9 var(--serif); letter-spacing: .06em; text-transform: uppercase; margin-top: 16px; font-variation-settings: 'opsz' 144, 'SOFT' 0, 'WONK' 0; }
.n-to { font: italic 500 22px var(--serif); color: #7a2b1a; margin: 6px 0 18px; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.notice ol { list-style: none; counter-reset: r; padding: 0; margin: 0; text-align: left; border-top: 1px solid rgba(42, 31, 20, .35); }
.notice li { counter-increment: r; padding: 13px 0 13px 46px; position: relative; border-bottom: 1px solid rgba(42, 31, 20, .2); font-size: 15px; line-height: 1.5; color: #4a3b2b; }
.notice li::before { content: counter(r, upper-roman) '.'; position: absolute; left: 0; top: 12px; font: 700 18px var(--serif); color: #7a2b1a; }
.notice li b { color: #2a1f14; font-family: var(--serif); font-size: 17px; font-weight: 700; }
.n-sign { font: italic 500 16px var(--serif); margin-top: 18px; color: #4a3b2b; }
.n-sign span { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; font-style: normal; }

/* ---------- journey ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.steps::before, .steps::after { content: ''; position: absolute; left: 30px; right: 30px; top: 30px; height: 3px; border-radius: 2px; }
.steps::before { background: repeating-linear-gradient(90deg, var(--line2) 0 8px, transparent 8px 14px); }
.steps::after { background: var(--brick); right: auto; width: calc((100% - 60px) * var(--pn, 0)); }
.step { position: relative; z-index: 1; }
.s-bob { width: 62px; height: 62px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center; position: relative; transition: background .5s, color .5s, transform .5s var(--ease); }
.s-bob::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 3px, rgba(29,25,19,.12) 3px 4px); }
.s-bob span { font: 700 22px var(--serif); position: relative; }
.step.lit .s-bob { background: var(--brick); color: #fff; border-color: var(--brick); transform: rotate(-12deg); }
.step.lit .s-bob::before { background: repeating-radial-gradient(circle, transparent 0 3px, rgba(255,255,255,.25) 3px 4px); }
.s-body { margin-top: 22px; }
.s-when { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--brick); }
.s-body h3 { font-size: 25px; margin: 8px 0 10px; }
.s-body p:last-child { color: var(--ink2); font-size: 15.5px; }

/* ---------- estimator ---------- */
.estimate { padding-top: 40px; }
.est-shell { display: grid; grid-template-columns: .92fr 1.08fr; background: var(--night); color: var(--on-night); border-radius: 28px; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(30, 20, 10, .6); }
.est-side { padding: 54px 48px; position: relative; }
.est-side h2 { font-size: clamp(36px, 4.4vw, 58px); color: var(--on-night); }
.est-side h2 em { color: var(--gold); }
.est-side .kicker, .est-side .sec-sub { color: var(--on-night-muted); }
.est-side .kn { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 3px var(--night), 0 0 0 4.5px var(--gold); }
.card-punch { margin-top: 34px; background: #eadfc8; color: #2a1f14; border-radius: 6px 30px 6px 6px; padding: 18px 20px 22px; position: relative; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.cp-head { display: flex; justify-content: space-between; font: 600 10.5px var(--mono); letter-spacing: .14em; color: #7a2b1a; border-bottom: 1px solid rgba(42,31,20,.3); padding-bottom: 10px; }
.cp-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px 5px; margin: 14px 0 6px; }
.cp-grid i { height: 14px; border-radius: 3px; border: 1px solid rgba(42, 31, 20, .22); font: 500 7.5px/12px var(--mono); color: rgba(42,31,20,.35); text-align: center; font-style: normal; transition: background .25s, border-color .25s, transform .3s var(--ease); }
.cp-grid i.on { background: var(--night); border-color: var(--night); color: transparent; transform: scale(1.06); }
.cp-grid i.pop { animation: punch .35s var(--ease); }
@keyframes punch { 40% { transform: scale(.6); } }
.cp-grid i.row-lbl { border: 0; font-size: 8px; text-align: left; color: #7a2b1a; font-weight: 600; letter-spacing: .04em; }
.meter { margin-top: 10px; }
.m-label { font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: #7a6a52; }
.m-val { font: 700 clamp(44px, 5vw, 64px)/1 var(--serif); letter-spacing: -.03em; margin: 6px 0 4px; font-variation-settings: 'opsz' 144; }
.m-mo-inline { font-size: .42em; color: var(--teal); letter-spacing: 0; margin-left: 8px; }
.m-mo-inline[hidden] { display: none; }
.m-time { font-size: 14px; color: #5a4b38; }
.unlocks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 12px; }
.u-svc > b { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #7a2b1a; }
.u-svc ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; font-size: 14.5px; }
.u-on { color: #2a1f14; }
.u-on::before { content: '✓ '; color: var(--teal); font-weight: 700; }
.u-on.pop { animation: u-pop .5s var(--ease); }
@keyframes u-pop { from { opacity: 0; transform: translateX(-8px); background: rgba(212,155,31,.35); } }
.u-lock { color: #8a7a62; }
.u-lock em { font-style: normal; font: 500 12px var(--mono); color: var(--brick); margin-left: 4px; }
.u-tight, .u-wait { color: #7a6a52; font-style: italic; }
.est-trust { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--on-night-muted); }
.est-trust li::before { content: '✓'; color: var(--gold); margin-right: 10px; font-weight: 700; }

.est-form { background: var(--card); color: var(--ink); padding: 48px 46px 40px; position: relative; display: flex; flex-direction: column; min-height: 640px; }
.est-progress { height: 4px; background: var(--paper2); border-radius: 4px; overflow: hidden; }
.est-progress i { display: block; height: 100%; width: 25%; background: repeating-linear-gradient(90deg, var(--brick) 0 10px, var(--brick-dk) 10px 14px); transition: width .6s var(--ease); }
.est-stepno { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 14px 0 0; }
.est-step { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; display: none; }
.est-step.active { display: block; animation: step-in .5s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(18px); } }
.est-step legend { font: 600 clamp(28px, 3vw, 36px)/1.1 var(--serif); letter-spacing: -.02em; padding: 0; margin-bottom: 24px; }
.est-step legend small { display: block; font: 500 15px var(--sans); letter-spacing: 0; color: var(--muted); margin-top: 8px; }
.sub-legend { font: 600 22px var(--serif); margin: 30px 0 14px; }
.opts { display: grid; gap: 12px; }
.opts-4 { grid-template-columns: 1fr 1fr; }
.opts-3 { grid-template-columns: repeat(3, 1fr); }
.opts-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.opt { --c: var(--ink); position: relative; cursor: pointer; display: block; }
.opt[data-c="brick"] { --c: var(--brick); } .opt[data-c="indigo"] { --c: var(--indigo); } .opt[data-c="gold"] { --c: #a97a10; } .opt[data-c="teal"] { --c: var(--teal); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt > span { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line2); border-radius: 12px; padding: 16px 18px; font-weight: 600; transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s; background: var(--card); height: 100%; }
.opts-4 .opt > span { flex-direction: column; align-items: flex-start; padding: 22px 20px; font-size: 17px; min-height: 120px; justify-content: space-between; }
.opts-chips .opt > span { padding: 10px 16px; border-radius: 99px; font-size: 14.5px; }
.o-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--paper2); color: var(--c); font-size: 18px; transition: background .2s, color .2s; }
.opt:hover > span { border-color: var(--ink); transform: translateY(-2px); }
.opt input:checked + span { border-color: var(--c); background: color-mix(in srgb, var(--c) 9%, var(--card)); box-shadow: inset 0 0 0 1.5px var(--c); }
.opt input:checked + span .o-ico { background: var(--c); color: #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--indigo); outline-offset: 3px; }
.opts-4 .opt input:checked + span::after { content: 'PUNCHED'; position: absolute; top: 14px; right: 14px; font: 600 9.5px var(--mono); letter-spacing: .12em; color: var(--c); border: 1.5px solid var(--c); padding: 3px 6px; border-radius: 3px; transform: rotate(6deg); }

.bud-q { padding: 20px 0 6px; transition: opacity .3s; }
.bud-q + .bud-q { border-top: 1px dashed var(--line2); }
.bud-q.off { opacity: .35; }
.bud-top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.bud-top h4 { font: 600 16px var(--sans); letter-spacing: 0; }
.bud-out { font: 700 36px var(--serif); letter-spacing: -.02em; color: var(--brick); }
.bud-out small { font-size: 15px; color: var(--muted); font-weight: 500; }
.bud-range { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 12px 0 4px; cursor: pointer; }
.bud-range::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--brick) var(--p), var(--paper3) var(--p)); }
.bud-range::-moz-range-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--brick) var(--p), var(--paper3) var(--p)); }
.bud-range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--card); border: 3px solid var(--ink); box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.bud-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--card); border: 3px solid var(--ink); }
.bud-ticks { display: flex; justify-content: space-between; font: 500 12px var(--mono); color: var(--muted); }
.bud-mood { font-weight: 600; margin-top: 10px; color: var(--ink2); min-height: 1.6em; }
.bud-unsure { margin-top: 18px; }
.bud-unsure > span { font-weight: 500; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields label { display: grid; gap: 7px; font: 600 13px var(--sans); color: var(--ink2); }
.fields .full { grid-column: 1 / -1; }
.opt-l { font-weight: 400; color: var(--muted); }
.fields input, .fields textarea, .audit-form input { width: 100%; border: 1.5px solid var(--line2); border-radius: 10px; padding: 13px 14px; background: #fff; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.fields input:focus, .fields textarea:focus, .audit-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(44, 61, 143, .18); }
.fields textarea { resize: vertical; }
input.bad { border-color: var(--brick) !important; box-shadow: 0 0 0 4px rgba(180, 67, 42, .16) !important; }

.est-done { margin-top: 30px; position: relative; text-align: left; }
.est-done h3 { font-size: 48px; margin-bottom: 14px; }
.est-done p { color: var(--ink2); margin-bottom: 12px; }
.est-done a { color: var(--brick); font-weight: 600; }
.stamp { display: inline-block; font: 800 22px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--brick); border: 3px solid var(--brick); border-radius: 6px; padding: 6px 14px; transform: rotate(-8deg); margin-bottom: 20px; animation: stamp .5s var(--ease); opacity: .9; }
@keyframes stamp { from { transform: rotate(-8deg) scale(2.4); opacity: 0; } }
.confetti { position: absolute; left: 0; right: 0; top: 0; height: 0; pointer-events: none; }
.confetti i { position: absolute; top: 0; width: 4px; height: 18px; border-radius: 2px; animation: fall 1.6s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes fall { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }
.est-err { color: var(--brick); font-weight: 600; margin-top: 16px; }
.est-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 30px; }
.est-nav #estNext { margin-left: auto; }
.est-nav[hidden] { display: none; }

/* ---------- audit ---------- */
.audit { background: var(--brick); color: #fff; padding: 80px 0; position: relative; z-index: 1; overflow: hidden;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 6px), repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 2px, transparent 2px 6px); }
.audit-in { display: grid; grid-template-columns: auto 1.1fr 1fr; gap: 44px; align-items: center; }
.audit h2 { font-size: clamp(32px, 3.6vw, 48px); }
.audit h2 em { color: #ffe2a8; }
.audit .kicker { color: #ffe2a8; }
.audit-copy > p:last-child { color: rgba(255,255,255,.85); margin-top: 14px; }
.tag { width: 150px; background: #f3e7cc; color: #2a1f14; padding: 40px 16px 18px; text-align: center; clip-path: polygon(22% 0, 78% 0, 100% 16%, 100% 100%, 0 100%, 0 16%); transform: rotate(-8deg); position: relative; box-shadow: 0 10px 20px rgba(0,0,0,.2); font-family: var(--mono); }
.tag-hole { position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--brick); box-shadow: inset 0 0 0 3px #d6c49c; }
.tag b { display: block; font: 800 20px var(--serif); letter-spacing: .02em; text-transform: uppercase; }
.tag span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }
.tag .tag-ok { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(42,31,20,.4); color: var(--brick); font-weight: 600; font-size: 9.5px; }
.audit-form { display: grid; gap: 10px; }
.audit-form input { border-color: transparent; color: var(--ink); }
.audit-form .btn { justify-content: center; }
.form-msg { font-weight: 600; font-size: 15px; min-height: 1.4em; }
.form-msg.ok { color: var(--teal); }
.form-msg.err { color: var(--brick); }
.audit .form-msg.ok, .audit .form-msg.err { color: #fff; }

/* ---------- faq ---------- */
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.faq-in .sec-head { position: sticky; top: 110px; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px dashed var(--line2); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font: 600 clamp(20px, 2vw, 25px)/1.25 var(--serif); letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 400 22px/1 var(--sans); transition: transform .4s var(--ease), background .3s, color .3s; }
.faq-list details[open] summary::after { transform: rotate(135deg); background: var(--brick); border-color: var(--brick); color: #fff; }
.faq-list summary:hover { color: var(--brick); }
.faq-list details p { padding: 0 60px 26px 0; color: var(--ink2); }

/* ---------- contact ---------- */
.contact { background: var(--night); color: var(--on-night); }
.contact .kicker { color: var(--on-night-muted); }
.contact .kn { background: var(--brick); color: #fff; box-shadow: 0 0 0 3px var(--night), 0 0 0 4.5px var(--brick); }
.contact-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: start; }
.mega { font-size: clamp(52px, 7.5vw, 112px) !important; line-height: .92; color: var(--on-night); }
.mega em { color: var(--gold) !important; }
.contact-ways { display: grid; margin-top: 46px; border-top: 1px solid rgba(243,237,226,.2); }
.cw { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(243,237,226,.2); text-decoration: none; transition: padding .35s var(--ease), color .2s; }
.cw span { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--on-night-muted); }
.cw b { font: 600 clamp(20px, 2.4vw, 30px) var(--serif); }
.cw:hover { padding-left: 12px; color: var(--gold); }
.contact-form { background: var(--card); color: var(--ink); border-radius: 6px; padding: 30px 30px 26px; position: relative; box-shadow: 0 40px 70px -30px rgba(0,0,0,.7); transform: rotate(-.8deg); }
.contact-form::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; background: radial-gradient(circle at 8px 10px, transparent 6px, var(--card) 6.5px) 0 0 / 16px 10px repeat-x; }
.cf-head { display: flex; justify-content: space-between; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--brick); border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 20px; }
.contact-form .btn { margin-top: 20px; width: 100%; justify-content: center; }
.contact-form .form-msg { margin-top: 12px; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--on-night); position: relative; z-index: 1; padding-bottom: 30px; }
.selvage { height: 30px; position: relative;
  background: repeating-linear-gradient(90deg, var(--brick) 0 14px, var(--gold) 14px 18px, var(--indigo) 18px 32px, var(--paper) 32px 34px, var(--teal) 34px 48px, var(--gold) 48px 52px); }
.selvage::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; background: repeating-linear-gradient(90deg, rgba(243,237,226,.45) 0 1.5px, transparent 1.5px 6px); mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.foot-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-top: 80px; padding-bottom: 50px; flex-wrap: wrap; }
.foot .logo i { color: var(--gold); }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-cols div { display: grid; gap: 8px; align-content: start; }
.foot-cols h4 { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--on-night-muted); margin-bottom: 6px; }
.foot-cols a, .foot-cols span { text-decoration: none; color: var(--on-night); font-size: 15.5px; }
.foot-cols a:hover { color: var(--gold); }
.foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px dashed rgba(243,237,226,.2); padding-top: 22px; font: 500 12.5px var(--mono); color: var(--on-night-muted); }
.admin-link { color: var(--on-night-muted); }

/* ---------- mobile bar ---------- */
.mbar { display: none; }

/* ---------- case modal ---------- */
.case { width: min(1000px, calc(100% - 24px)); max-height: calc(100% - 40px); padding: 0; border: 0; border-radius: 10px; background: var(--paper); color: var(--ink); box-shadow: 0 60px 120px rgba(0,0,0,.5); overflow-y: auto; }
.case::backdrop { background: rgba(25, 21, 16, .72); backdrop-filter: blur(6px); }
.case[open] { animation: case-in .5s var(--ease); }
@keyframes case-in { from { opacity: 0; transform: translateY(30px) scale(.98); } }
.case-x { position: sticky; top: 14px; float: right; margin: 14px 14px -58px 0; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); font-size: 16px; cursor: pointer; }
.case-hero { --wc: var(--brick); background: var(--wc); padding: 34px 34px 0; }
.case-hero > img, .case-hero > .mock { border-radius: 6px 6px 0 0; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
.case-phones { display: flex; gap: 14px; justify-content: center; padding: 26px; background: var(--paper2); }
.case-phones img { width: 26%; max-width: 200px; border-radius: 18px; border: 5px solid var(--ink); }
.case-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 36px 38px 44px; }
.case-in .kicker { margin-bottom: 12px; }
.case-in h2 { font-size: clamp(36px, 4.5vw, 54px); }
.case-tag { font-size: 19px; color: var(--ink2); margin: 14px 0 22px; }
.case-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.case-in h4 { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--brick); margin: 4px 0 12px; }
.case-in ul { padding: 0; margin: 0 0 26px; list-style: none; display: grid; gap: 8px; }
.case-in li { padding-left: 24px; position: relative; }
.case-in li::before { content: ''; position: absolute; left: 0; top: .75em; width: 14px; height: 2px; background: repeating-linear-gradient(90deg, var(--brick) 0 3px, transparent 3px 5px); }

/* ---------- simple pages (privacy, 404) ---------- */
.doc-page { min-height: 100vh; display: flex; flex-direction: column; }
.doc { width: min(780px, 100%); margin: 0 auto; padding: 40px 24px 100px; flex: 1; }
.doc h1 { font-size: clamp(46px, 8vw, 88px); letter-spacing: -.035em; margin: 50px 0 20px; font-variation-settings: 'opsz' 144; }
.doc h1 em { font-style: italic; color: var(--brick); font-weight: 500; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.doc h2 { font-size: 28px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--ink2); font-size: 17.5px; }
.doc a { color: var(--brick); font-weight: 600; }
.doc .stamp-date { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.doc-actions .btn { text-decoration: none; font-weight: 600; }
.doc-actions .btn-brick { color: #fff; }
.tangle { width: min(420px, 100%); margin: 30px 0 0; }
.tangle path { fill: none; stroke: var(--brick); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 3.5s var(--ease) forwards; }
.tangle path.t2 { stroke: var(--indigo); animation-delay: .4s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.doc-foot { border-top: 1px dashed var(--line2); padding: 22px 24px; text-align: center; font: 500 12.5px var(--mono); color: var(--muted); }

/* ---------- pay page (pay.html + pay.js; keep these class names) ---------- */
.pay-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; }
.pay-card { width: min(560px, 100%); background: #fff; color: #1d1913; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 40px 90px -30px rgba(60, 40, 20, .55); position: relative; }
.pay-head { padding: 26px 30px 28px; background: var(--night); color: var(--on-night); position: relative; overflow: hidden; }
.pay-head::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--brick) 0 14px, var(--gold) 14px 18px, var(--indigo) 18px 32px, var(--teal) 32px 46px); }
.pay-head .logo { font-size: 26px; color: var(--on-night); }
.pay-head .logo i { color: var(--gold); }
.pay-head .logo small { color: var(--on-night-muted); border-color: rgba(243,237,226,.25); }
.pay-amt { font: 700 50px/1.05 var(--serif); letter-spacing: -.03em; margin-top: 24px; position: relative; }
.pay-amt small { font: 500 17px var(--sans); color: var(--on-night-muted); letter-spacing: 0; }
.pay-sub { color: var(--on-night-muted); font-size: 15px; position: relative; margin-top: 4px; }
.pay-body { padding: 26px 30px 30px; }
.pay-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: 14.5px; margin-bottom: 20px; }
.pay-meta span { display: block; color: #6b7280; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.pay-items { width: 100%; border-collapse: collapse; font-size: 15px; }
.pay-items td { padding: 11px 0; border-bottom: 1px dashed #e3ddd2; }
.pay-items td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; font-family: var(--mono); font-size: 14px; }
.pay-items tr.tot td { border: 0; border-top: 2px solid #1d1913; font-weight: 700; font-size: 18px; padding-top: 16px; }
.pay-items tr.tot td:last-child { font-family: var(--serif); font-size: 22px; }
.pay-notes { background: #f6f2ea; border-radius: 10px; padding: 14px 16px; font-size: 14.5px; color: #3b342a; margin-top: 16px; white-space: pre-line; }
.pay-btn { width: 100%; justify-content: center; margin-top: 22px; --bb: var(--brick); background: var(--brick); color: #fff; padding: 18px; font-size: 17px; border-radius: 12px; }
.pay-btn:hover { background: var(--brick-dk); }
.pay-btn:disabled { opacity: .5; cursor: wait; }
.pay-secure { display: flex; align-items: center; justify-content: center; gap: 8px; color: #6b7280; font-size: 13px; margin-top: 12px; text-align: center; }
.pay-state { text-align: center; padding: 10px 0; }
.pay-state .big { font-size: 60px; line-height: 1; }
.pay-state h2 { font-size: 32px; margin: 14px 0 8px; }
.pay-state p { color: #6b7280; }
.badge { display: inline-block; font: 600 10.5px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.b-paid { background: #dcefe9; color: var(--teal); }
.b-open { background: #f8e2d9; color: var(--brick); }
.pay-foot { text-align: center; color: var(--dim); font-size: 13px; margin-top: 20px; }
.pay-foot a { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .links, .nav-phone { display: none; }
  .burger { display: block; }
  .hero-in { grid-template-columns: 1fr; gap: 44px; }
  .loom { max-width: 640px; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .why-in, .faq-in, .contact-in { grid-template-columns: 1fr; gap: 50px; }
  .faq-in .sec-head { position: static; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before, .steps::after { left: 30px; right: auto; top: 30px; bottom: 30px; width: 3px; height: auto; }
  .steps::before { background: repeating-linear-gradient(180deg, var(--line2) 0 8px, transparent 8px 14px); }
  .steps::after { height: calc((100% - 60px) * var(--pn, 0)); width: 3px; }
  .step { display: grid; grid-template-columns: 62px 1fr; gap: 24px; padding-bottom: 34px; }
  .s-body { margin-top: 6px; }
  .est-shell { grid-template-columns: 1fr; }
  .audit-in { grid-template-columns: 1fr 1fr; }
  .tag { display: none; }
  .thread { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-in { height: 66px; }
  .nav-cta .btn { display: none; }
  .logo small { display: none; }
  .hero { padding-top: 20px; }
  .hero h1 { font-size: clamp(42px, 12.5vw, 64px); }
  .lede { font-size: 17px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .proof b { font-size: 24px; }
  .loom-beam { font-size: 9px; }
  .loom-hint { display: none; }
  .section { padding: 84px 0; }
  .sec-head { margin-bottom: 40px; }
  .swatches { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; gap: 40px; }
  .wcard, .wcard.big { grid-column: auto; }
  .w-top { flex-direction: column; gap: 6px; }
  .notice { padding: 34px 20px 28px; transform: none; }
  .notice li { padding-left: 38px; }
  .est-side { padding: 38px 20px; }
  .est-form { padding: 32px 20px 26px; min-height: 0; }
  .est-shell { border-radius: 18px; }
  .opts-4 .opt > span { min-height: 100px; padding: 16px; font-size: 15.5px; }
  .opts-3 { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .audit-in { grid-template-columns: 1fr; gap: 26px; }
  .faq-list details p { padding-right: 0; }
  .contact-form { padding: 24px 18px; transform: none; }
  .case-hero { padding: 16px 16px 0; }
  .case-in { grid-template-columns: 1fr; padding: 26px 20px 34px; gap: 10px; }
  .foot { padding-bottom: 90px; }
  .foot-cols { gap: 34px; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 85; background: var(--night); padding: 8px; border-radius: 16px; box-shadow: 0 20px 40px rgba(0,0,0,.35); transform: translateY(140%); transition: transform .4s var(--ease); }
  .mbar.show { transform: none; }
  .mbar a { text-align: center; padding: 12px 6px; border-radius: 10px; text-decoration: none; color: var(--on-night); font-weight: 600; font-size: 15px; background: rgba(255,255,255,.07); }
  .mbar a.go { background: var(--brick); color: #fff; }
  .pay-meta { grid-template-columns: 1fr; }
}
