/* Ashlyticss — site stylesheet
   The look is an analyst's notebook: warm paper, ink, a ballpoint blue for
   data and a red pen for the notes in the margin. */

:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d7;
  --card: #fbf8f2;
  --white: #fffdf9;
  --ink: #1c1a17;
  --ink-2: #3a362f;
  --muted: #5d564b;
  --faint: #8a8274;
  --line: rgba(28, 26, 23, 0.12);
  --line-2: rgba(28, 26, 23, 0.22);

  --blue: #1f3fbf;
  --blue-2: #3b58d6;
  --blue-wash: rgba(31, 63, 191, 0.07);
  --red: #c8361d;
  --red-wash: rgba(200, 54, 29, 0.08);
  --hi: rgba(255, 220, 70, 0.78);
  --ok: #2f7d4f;
  --warn: #c8361d;

  /* ShapedOps keeps its own colours where it appears on this site */
  --so-ink: #151613;
  --so-lime: #a8ff00;
  --so-lime-deep: #4a6400;
  --so-manila: #efe4c8;

  --f-display: "Newsreader", Georgia, "Times New Roman", serif;
  --f-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --f-hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
  --gutter: 32px;
  --header-h: 68px;
  --shadow: 0 1px 0 rgba(60, 45, 20, 0.05), 0 22px 44px -28px rgba(60, 45, 20, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  /* switched on after load (site.js) so deep links jump instead of gliding */
  html.smooth { scroll-behavior: smooth; }
}
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* paper grain over everything, like print */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; opacity: 0.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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.27 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--hi); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 4px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------------------------------------------------------------- type */
h1, h2, h3, .h3 { font-family: var(--f-display); font-weight: 500; letter-spacing: -0.015em; line-height: 1.04; margin: 0; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(46px, 6.2vw, 92px); letter-spacing: -0.03em; line-height: 0.98; }
h2 { font-size: clamp(34px, 4.2vw, 60px); letter-spacing: -0.025em; }
h3, .h3 { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.15; }
h2 .soft, h1 .soft, h3 .soft { font-style: italic; font-weight: 400; color: var(--ink-2); }
.mark { color: inherit; }
.lede { font-size: clamp(16.5px, 1.25vw, 19px); color: var(--muted); max-width: 54ch; line-height: 1.6; }
.body-muted { color: var(--muted); }
.kicker { font-family: var(--f-display); font-style: italic; font-size: 18px; color: var(--muted); display: inline-flex; align-items: center; gap: 12px; margin: 0; }
.kicker::before { content: ""; width: 28px; height: 1.5px; background: var(--red); }
.mono-label { font-family: var(--f-display); font-style: italic; font-size: 18px; color: var(--muted); margin: 0; }
em { font-family: var(--f-display); font-style: italic; font-size: 1.08em; color: var(--ink); }

/* section marker: a name on the left, a rule, the page number on the right */
.sec-label {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.sec-label .tag { order: -1; font-family: var(--f-display); font-style: italic; font-size: 19px; color: var(--ink-2); }
.sec-label .rule { height: 0; border-top: 1px solid var(--line-2); }
.sec-label .n { font-family: var(--f-mono); font-size: 12px; color: var(--faint); }
.section-head { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(28px, 4vw, 56px); }
.section-head .lede { justify-self: end; }

/* the red pen */
.hand-note { font-family: var(--f-hand); font-weight: 700; font-size: 23px; line-height: 1.1; color: var(--red); transform: rotate(-2.5deg); transform-origin: left center; margin: 18px 0 0; display: inline-block; }
.hand-note::after { content: ""; display: inline-block; width: 34px; height: 22px; margin-left: 8px; vertical-align: -6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 22' fill='none' stroke='%23c8361d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4c10 0 20 2 26 14M28 18l-1-9M28 18l-9-2'/%3E%3C/svg%3E") no-repeat center / contain; }

/* ------------------------------------------------------------- buttons */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  height: 50px; padding: 0 22px; border-radius: 6px; border: 1.5px solid var(--ink);
  background: var(--bg); color: var(--fg); font-family: var(--f-body); font-weight: 500; font-size: 15.5px;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out), background 0.2s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--red); }
.btn:active { transform: none; box-shadow: 0 0 0 var(--red); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.btn .arr { transition: transform 0.25s var(--ease-out); }
.btn:hover .arr { transform: translateX(3px); }
.btn-ghost { --bg: transparent; --fg: var(--ink); }
.btn-ghost:hover { --bg: var(--white); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 500; color: var(--blue); border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.link-arrow:hover { color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 14px; padding: 6px 12px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--white); }

/* -------------------------------------------------------------- header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: background 0.3s ease, border-color 0.3s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(244, 239, 230, 0.92); border-bottom-color: var(--line-2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; will-change: transform; pointer-events: none; transition: opacity 0.3s ease; }
.in-journey .scroll-progress { opacity: 0; }
.header-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; line-height: 1; }
.brand svg { flex: none; }
.brand b { font-weight: 600; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 14.5px; color: var(--muted); transition: color 0.2s ease; background: linear-gradient(var(--red), var(--red)) no-repeat left bottom / 0 1.5px; padding-bottom: 2px; transition: background-size 0.3s var(--ease-out), color 0.2s ease; }
.nav a:hover { color: var(--ink); background-size: 100% 1.5px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 6px; border: 1.5px solid var(--ink); background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease-out); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--paper);
  padding: 24px var(--gutter); display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu a:not(.btn) { font-family: var(--f-display); font-weight: 500; font-size: 30px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 28px; }
.menu-open { overflow: hidden; }

/* ------------------------------------------------------------- journey */
/* One 3D scene, drawn like ink on graph paper, sits behind the whole page;
   the camera follows the scroll. After the journey it stays behind the
   pages, faded and still. */
.journey { position: relative; }
.journey-stage {
  position: fixed; left: 0; right: 0; top: 0; z-index: -1;
  height: 100vh; height: 100lvh; pointer-events: none; overflow: hidden;
}
.journey-canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.journey-canvas.ready { opacity: 1; }
.past-journey .journey-canvas.ready { opacity: 0.22; }
.no-webgl .journey-stage { display: none; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; z-index: 1; isolation: isolate; overflow: hidden;
  min-height: max(720px, 100svh);
  padding-top: calc(var(--header-h) + clamp(40px, 8vh, 96px));
}
/* graph paper until the 3D scene is up, and a wash so the words stay clear */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(rgba(31, 63, 191, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 63, 191, 0.09) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 60%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 60%, #000 10%, transparent 75%);
  transition: opacity 1.2s ease;
}
.journey.gl-ready .hero::before { opacity: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(244,239,230,0.97) 0%, rgba(244,239,230,0.75) 38%, rgba(244,239,230,0) 62%);
}
.hero-copy { position: relative; max-width: 700px; padding-bottom: 190px; }
.hero h1 { margin: 20px 0 26px; }
.hero .lede { margin-bottom: 34px; font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--ink-2); }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta li::before { content: "✓"; font-family: var(--f-hand); font-weight: 700; font-size: 19px; line-height: 1; color: var(--red); }
.hero-legend { position: absolute; left: 0; right: 0; bottom: 28px; }
.hero-legend ol { list-style: none; margin: 0; padding: 16px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; border-top: 1px solid var(--line-2); }
.hero-legend li { font-family: var(--f-display); font-style: italic; font-size: 18px; color: var(--ink-2); }
.hero-legend b { font-family: var(--f-mono); font-style: normal; font-size: 11px; font-weight: 400; color: var(--red); margin-right: 8px; vertical-align: 2px; }

/* the highlighter goes over "work harder." once the words are in */
.hero .mark { background: linear-gradient(transparent 56%, var(--hi) 56%, var(--hi) 90%, transparent 90%) no-repeat 0 0 / 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.06em; margin: 0 -0.06em; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero .mark { background-size: 0 100%; transition: background-size 0.75s cubic-bezier(0.65, 0, 0.35, 1) 1.15s; }
  .js .hero .split.in .mark { background-size: 100% 100%; }
}

/* ShapedOps announcement: a line of text with a red-pen "new" */
.announce { display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 26px; max-width: 100%; font-size: 15px; color: var(--ink-2); }
.announce > span:nth-child(2) { border-bottom: 1px solid var(--line-2); transition: border-color 0.2s ease; }
.announce:hover > span:nth-child(2) { border-color: var(--ink); }
.announce-tag { flex: none; font-family: var(--f-hand); font-weight: 700; font-size: 20px; line-height: 1; color: var(--red); transform: rotate(-7deg); padding: 3px 8px; border: 1.5px solid var(--red); border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%; }
.announce .arr { color: var(--red); transition: transform 0.25s var(--ease-out); }
.announce:hover .arr { transform: translateX(3px); }
.hero .kicker { display: flex; }

/* "what brings you here?" — three doors, like index tabs */
.hero-paths { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 760px; }
.hero-paths-label { grid-column: 1 / -1; margin: 0 0 2px; font-family: var(--f-hand); font-weight: 700; font-size: 22px; color: var(--red); transform: rotate(-1.5deg); transform-origin: left center; }
.hero-paths a { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 80px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--white); box-shadow: 0 1px 0 rgba(60,45,20,0.06); transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s ease; cursor: pointer; }
.hero-paths a::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; border-radius: 4px 4px 0 0; background: var(--blue); }
.hero-paths a:nth-of-type(2)::before { background: var(--red); }
.hero-paths a:nth-of-type(3)::before { background: #c9a227; }
.hero-paths a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ink); }
.hero-paths b { font-family: var(--f-display); font-size: 19px; font-weight: 500; line-height: 1.15; color: var(--ink); }
.hero-paths span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* ------------------------------------------------------------ chapters */
.chapter {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 48px;
}
.chapter > .wrap { width: 100%; }
/* each step is a sheet taped over the drawing */
.chapter-card {
  position: relative; max-width: 470px; padding: 32px 30px 26px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 2px;
  box-shadow: var(--shadow); transform: rotate(-0.6deg);
}
.chapter:nth-of-type(odd) .chapter-card { transform: rotate(0.5deg); }
.chapter-card::before {
  content: ""; position: absolute; top: -13px; left: 50%; width: 96px; height: 26px; margin-left: -48px;
  background: rgba(240, 222, 160, 0.72); transform: rotate(-2.5deg);
  clip-path: polygon(2% 8%, 8% 0, 16% 10%, 24% 0, 33% 8%, 42% 0, 51% 9%, 60% 0, 69% 8%, 78% 0, 87% 9%, 95% 0, 100% 10%, 98% 92%, 92% 100%, 84% 91%, 75% 100%, 66% 92%, 57% 100%, 48% 91%, 39% 100%, 30% 92%, 21% 100%, 12% 91%, 4% 100%, 0 90%);
}
.ch-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-family: var(--f-display); font-style: italic; font-size: 19px; color: var(--ink-2); }
.ch-kicker .n { font-family: var(--f-hand); font-style: normal; font-weight: 700; font-size: 18px; color: var(--red); min-width: 40px; height: 34px; display: inline-grid; place-items: center; border: 1.5px solid var(--red); border-radius: 50% 46% 54% 48% / 52% 50% 48% 50%; transform: rotate(-6deg); }
.ch-title { font-size: clamp(27px, 2.5vw, 38px); margin-bottom: 16px; }
.ch-lede { color: var(--muted); font-size: 16px; line-height: 1.62; margin: 0; }
.ch-lede + .ch-lede { margin-top: 12px; }
.ch-turn b { color: var(--ink); font-weight: 500; background: linear-gradient(transparent 62%, var(--hi) 62%); }
.ch-rows { margin: 22px 0 0; }
.ch-rows div { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 10px 0; border-top: 1px dashed var(--line-2); }
.ch-rows dt { font-family: var(--f-hand); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--red); }
.ch-rows dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ch-rows div:last-child dd { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); padding-top: 2px; }
.ch-note { font-family: var(--f-display); font-style: italic; font-size: 14.5px; color: var(--faint); margin: 14px 0 0; }
.ch-chips { margin: 20px 0 22px; }
.ch-chips .chip { font-size: 13px; padding: 5px 10px; }

/* chapter bar under the header, shown while the chapters are on screen */
.journey-rail {
  position: fixed; z-index: 90; left: 0; right: 0; top: var(--header-h);
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 10px;
  padding: 0 max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  background: rgba(244, 239, 230, 0.96); border-bottom: 1px solid var(--line-2);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease-out), visibility 0s linear 0.35s;
}
.in-journey .journey-rail { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.journey-rail a {
  display: block; padding: 8px 0 9px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-top: 2px solid var(--line);
  font-family: var(--f-display); font-style: italic; font-size: 15px; color: var(--faint);
  transition: color 0.3s ease, border-color 0.4s ease;
}
.journey-rail a b { font-family: var(--f-mono); font-style: normal; font-size: 10.5px; font-weight: 400; margin-right: 7px; vertical-align: 1px; }
.journey-rail a:hover { color: var(--ink-2); }
.journey-rail a.done { border-top-color: rgba(31, 63, 191, 0.4); color: var(--muted); }
.journey-rail a.on { color: var(--ink); border-top-color: var(--blue); }
.journey-rail a.on b { color: var(--red); }

/* ------------------------------------------------------------ sections */
.section { position: relative; padding: clamp(72px, 9vw, 120px) 0; background: var(--paper); }
/* a ledger's double rule between pages */
.section + .section, .journey + .section { border-top: 3px double var(--line-2); }
.section.alt { background: var(--paper-2); }
/* off-screen pages skip layout and paint until they come near the screen */
.defer-render { content-visibility: auto; contain-intrinsic-size: auto 900px; }

/* the homepage reads as a stack of screens: on laptops and up every page is
   sized to one screen, and site.js glides onto the nearest page edge when a
   scroll stops close to one. Pages carry their own header space. */
html { scroll-padding-top: 0; }
@media (min-width: 901px) and (min-height: 640px) {
  main > .section {
    min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    padding: calc(var(--header-h) + 24px) 0 32px;
  }
  main > .section > .wrap { width: 100%; }
  main > .section .section-head { margin-bottom: clamp(20px, 3.5vh, 44px); }
  main > .section .sec-label { margin-bottom: clamp(16px, 3vh, 32px); }
}

/* cards */
.card { position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: 3px; padding: 24px; box-shadow: 0 1px 0 rgba(60,45,20,0.05); transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease; }
.card-n { font-family: var(--f-hand); font-weight: 700; font-size: 18px; color: var(--red); margin-bottom: 10px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.card p b { color: var(--ink); font-weight: 600; }
.illus { font-family: var(--f-display); font-style: italic; font-size: 13.5px !important; color: var(--faint) !important; margin-top: 10px; }

/* sideways rows (services, example builds) */
.row { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding: 6px 4px 14px; margin: -6px -4px 0; }
.row::-webkit-scrollbar { display: none; }
.row > .card { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; }
.row > .card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(28,26,23,0.45); }
@media (max-width: 1180px) { .row > .card { flex-basis: calc((100% - 20px) / 2); } }
.row-nav { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.row-nav .link-arrow { margin-right: auto; }
.row-btn { width: 42px; height: 42px; border-radius: 6px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; transition: background 0.2s ease, opacity 0.2s ease; }
.row-btn:hover:not(:disabled) { background: var(--white); }
.row-btn:disabled { opacity: 0.3; cursor: default; }

/* services are index cards: a red rule under the title, blue lines below */
.svc h3 { padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1.5px solid rgba(200, 54, 29, 0.55); }
.svc .svc-text { color: var(--ink-2); font-size: 15.5px; line-height: 27px; padding-top: 2px;
  background-image: repeating-linear-gradient(transparent 0 26px, rgba(31, 63, 191, 0.14) 26px 27px); }
.svc .svc-problem { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.svc-shift { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto !important; padding-top: 14px; font-family: var(--f-mono); font-size: 12px !important; }
.svc-shift span:first-child { color: var(--red); }
.svc-shift span:last-child { color: var(--blue); }
.svc-shift i { font-style: normal; color: var(--faint); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto !important; padding-top: 14px; }
.tags span { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--white); padding: 3px 8px; border-radius: 3px; }

/* example builds: a small report, with the spreadsheet it replaced behind it */
.build .mini { position: relative; margin-top: auto; border: 1px solid var(--line-2); border-radius: 3px; padding: 14px; background: var(--white); }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.mini-kpis span { font-family: var(--f-display); font-size: 21px; font-weight: 500; line-height: 1.1; }
.mini-kpis small { display: block; font-family: var(--f-mono); font-size: 9.5px; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); margin-bottom: 3px; }
.mini-bars { height: 64px; display: flex; align-items: flex-end; gap: 8px; border-bottom: 1.5px solid var(--ink); }
.mini-bars i { flex: 1; height: var(--h); background: var(--blue); transform-origin: bottom; }
.mini-bars i.warn { background: var(--red); }
.mini-line { height: 64px; border-bottom: 1.5px solid var(--ink); }
.mini-line svg { width: 100%; height: 100%; overflow: visible; }
.mini-line polyline { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: no-preference) {
  .js .build .mini-bars i { transform: scaleY(0.15); transition: transform 1s var(--ease-out); }
  .js .build.in .mini-bars i, .js .row.in .mini-bars i { transform: none; }
  .js .build.before .mini-bars i { transform: scaleY(0.15); }
}
.mini-sheet {
  position: absolute; inset: 0; padding: 12px; background: var(--white);
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.build.before .mini-sheet { opacity: 1; visibility: visible; transition-delay: 0s; }
.sheet-grid { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid #d6d0c4; border-left: 1px solid #d6d0c4; }
.sheet-grid b, .sheet-grid i { border-right: 1px solid #d6d0c4; border-bottom: 1px solid #d6d0c4; }
.sheet-grid b { background: #e9eef0; }
.sheet-grid i { background: var(--white); }
.sheet-grid i.x { background: rgba(200, 54, 29, 0.22); }
.sheet-grid i.q { background: rgba(255, 210, 60, 0.45); }
.mini-sheet p { margin: 0; font-family: var(--f-hand); font-weight: 700; font-size: 16px !important; color: var(--red) !important; transform: rotate(-1deg); }
.build-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.build-foot .illus { margin: 0; }
.ba { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 4px; padding: 2px; }
.ba button { border: 0; background: transparent; color: var(--muted); font-size: 12.5px; padding: 3px 10px; border-radius: 2px; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.ba button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ba button[data-ba="before"][aria-pressed="true"] { background: var(--red); }

/* split layouts */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split-grid h2 { margin-bottom: 20px; }
.split-grid .lede { margin-bottom: 24px; }
.ticks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); font-size: 15.5px; }
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: -2px; font-family: var(--f-hand); font-weight: 700; font-size: 20px; color: var(--red); }

/* forms: written on, not boxed in */
.form-card { position: relative; background: var(--card); border: 1px solid var(--line-2); border-radius: 3px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.form-card h3 { margin-bottom: 8px; }
.form-card > .body-muted { margin-bottom: 18px; font-size: 15px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .msf label, .msf-q { font-family: var(--f-display); font-size: 21px; font-weight: 500; color: var(--ink); }
.msf label .opt { font-family: var(--f-body); font-size: 13.5px; font-weight: 400; color: var(--faint); }
input:not([type="range"]), select, textarea {
  width: 100%; height: 46px; padding: 0 2px; border-radius: 0; border: 0; border-bottom: 1.5px solid var(--ink);
  background: transparent; color: var(--ink); font: inherit; font-size: 17px; outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
textarea { height: auto; padding: 10px 2px; resize: vertical; min-height: 84px; line-height: 27px;
  background-image: repeating-linear-gradient(transparent 0 26px, rgba(31, 63, 191, 0.16) 26px 27px); background-position: 0 9px; border-bottom: 0; }
input::placeholder, textarea::placeholder { color: var(--faint); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus { border-color: var(--blue); background: rgba(31, 63, 191, 0.04); }
textarea:focus { background-color: rgba(31, 63, 191, 0.04); }
.form-msg { margin: 12px 0 0; font-size: 14px; min-height: 0; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--warn); }
.direct { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.direct a, .lede a { color: var(--blue); border-bottom: 1px solid currentColor; }
.direct a:hover, .lede a:hover { color: var(--red); }

/* process: four steps along a line drawn in red pen */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--line-2); }
.steps::after {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 1.8s var(--ease);
}
.steps.in::after { transform: none; }
.steps li { padding: 28px 26px 0 0; }
.steps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.steps .n { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-hand); font-weight: 700; font-size: 17px; color: var(--red); }
.steps h3 { margin: 14px 0 10px; font-size: clamp(23px, 2vw, 30px); }
.steps p { color: var(--muted); font-size: 15px; }

/* founder: a photo pinned to the page */
.founder { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.founder-photo { position: relative; margin: 0; padding: 12px 12px 0; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); transform: rotate(-2deg); max-width: 400px; justify-self: center; }
.founder-photo::before { content: ""; position: absolute; z-index: 1; top: -14px; left: 50%; width: 110px; height: 28px; margin-left: -55px; background: rgba(240, 222, 160, 0.75); transform: rotate(3deg); clip-path: polygon(2% 8%, 8% 0, 16% 10%, 24% 0, 33% 8%, 42% 0, 51% 9%, 60% 0, 69% 8%, 78% 0, 87% 9%, 95% 0, 100% 10%, 98% 92%, 92% 100%, 84% 91%, 75% 100%, 66% 92%, 57% 100%, 48% 91%, 39% 100%, 30% 92%, 21% 100%, 12% 91%, 4% 100%, 0 90%); }
.founder-photo img { width: 100%; object-fit: cover; object-position: center top; aspect-ratio: 960 / 1005; max-height: calc(100svh - 300px); filter: saturate(0.92) contrast(1.02); }
.founder-photo figcaption { padding: 12px 4px 16px; text-align: center; }
.founder-photo b { display: block; font-family: var(--f-hand); font-weight: 700; font-size: 24px; line-height: 1.1; color: var(--ink); }
.founder-photo span { font-size: 13px; color: var(--muted); }
.founder h2 { margin-bottom: 20px; }
.founder .lede { margin-bottom: 14px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0; }
.facts div { border-top: 1.5px solid var(--ink); padding-top: 10px; }
.facts dt { font-size: 12.5px; color: var(--faint); }
.facts dd { margin: 2px 0 0; font-family: var(--f-display); font-weight: 500; font-size: 20px; line-height: 1.15; color: var(--ink); }

/* tools & industries: newspaper columns */
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1.5px solid var(--ink); }
.stack div { padding: 18px 22px 4px 0; }
.stack div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.stack h3 { font-size: 21px; font-style: italic; font-weight: 500; margin-bottom: 10px; }
.stack p { color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.industries { margin-top: clamp(24px, 4vh, 44px); display: grid; gap: 12px; }

/* ROI: the result prints out like a till receipt */
.roi-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
.roi-calc h2 { margin-bottom: 6px; font-size: clamp(26px, 2.4vw, 34px); }
.roi-calc > .body-muted { font-size: 14.5px; margin-bottom: 18px; }
.slider { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-bottom: 14px; }
.slider label { font-size: 14.5px; color: var(--ink-2); }
.slider output { font-family: var(--f-mono); font-size: 13px; color: var(--blue); }
.slider input { grid-column: 1 / -1; width: 100%; accent-color: var(--ink); height: 22px; margin: 0; }
.roi-out {
  margin-top: 18px; padding: 18px 20px 30px; display: grid; grid-template-columns: 1fr; gap: 12px;
  background: var(--white); border: 1px solid var(--line); font-family: var(--f-mono);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100%;
}
.roi-out .roi-main { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(36px, 3.4vw, 50px); color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.roi-main small { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: 11px; font-weight: 400; color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; }
.roi-out dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; border-top: 1px dashed var(--line-2); padding-top: 12px; }
.roi-out dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; border-bottom: 1px dashed var(--line-2); padding-bottom: 4px; }
.roi-out dt { color: var(--faint); }
.roi-out dd { margin: 0; color: var(--ink); }
.roi-out .illus { margin: 0; font-family: var(--f-mono); font-style: normal; font-size: 11px !important; line-height: 1.5; border-top: 1px dashed var(--line-2); padding-top: 10px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 18px 0; font-family: var(--f-display); font-weight: 500; font-size: 20px; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--blue); }
.faq .pm { flex: 0 0 22px; height: 22px; position: relative; }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease-out); }
.faq .pm::after { transform: rotate(90deg); }
.faq details[open] summary { color: var(--red); }
.faq details[open] .pm::after { transform: rotate(0deg); }
.faq details p { color: var(--muted); font-size: 15.5px; padding: 0 16px 20px 0; margin: 0; }

/* contact */
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; max-width: 460px; border-top: 1.5px solid var(--ink); }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 15.5px; }
.contact-list span { font-family: var(--f-display); font-style: italic; font-size: 17px; color: var(--muted); }
.contact-list a:hover { color: var(--blue); }
.msf-top { display: flex; justify-content: space-between; font-family: var(--f-hand); font-weight: 700; font-size: 17px; color: var(--red); margin-bottom: 8px; }
.msf-bar { height: 2px; background: var(--line); overflow: hidden; margin-bottom: 26px; }
.msf-bar i { display: block; height: 100%; background: var(--ink); transition: width 0.4s var(--ease-out); }
.msf-step { display: none; }
.msf-step.active { display: grid; gap: 12px; animation: stepIn 0.35s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msf-step label:not(:first-child) { margin-top: 8px; }
.msf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.msf-chip { border: 1.5px solid var(--line-2); background: var(--white); color: var(--ink-2); border-radius: 4px; padding: 8px 14px; font-size: 14.5px; cursor: pointer; transition: all 0.2s ease; }
.msf-chip:hover { border-color: var(--ink); }
.msf-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.msf-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 10px; }
.msf-done b { font-family: var(--f-hand); font-size: 30px; color: var(--red); display: block; margin-bottom: 8px; transform: rotate(-2deg); }
.msf-done p { color: var(--muted); }

/* footer: the back cover, in ink */
.site-footer { position: relative; padding: 72px 0 36px; background: var(--ink); color: #e9e2d4; }
.site-footer .brand { color: #f4efe6; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot-about p { color: #b9b0a0; font-size: 15px; margin-top: 16px; max-width: 42ch; }
.foot-about p a { color: #f4efe6; border-bottom: 1px solid rgba(244,239,230,0.4); }
.foot-about .foot-sign { font-family: var(--f-hand); font-weight: 700; font-size: 24px; color: #ff8a6b; transform: rotate(-2deg); display: inline-block; margin-top: 18px !important; }
.foot-grid h4 { margin: 0 0 14px; font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 18px; color: #8f8778; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-grid ul a { color: #d8d0c1; font-size: 15px; }
.foot-grid ul a:hover { color: #fff; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(244,239,230,0.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #8f8778; }

/* -------------------------------------------------------- ShapedOps page */
/* the product keeps its own look: charcoal, job-card manila, its lime */
.prod-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.prod-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-family: var(--f-body); font-weight: 700; letter-spacing: 0.08em; font-size: 14px; }
.prod-brand b { color: var(--so-lime-deep); font-weight: 700; }
.prod-brand img { border-radius: 6px; }
.prod-copy h2 { font-size: clamp(30px, 3.2vw, 48px); margin-bottom: 16px; }
.prod-copy .lede { font-size: 16.5px; margin-bottom: 18px; }
.prod-copy .lede b { color: var(--ink); }
.prod-copy .ticks { margin-bottom: 20px; }
.prod-copy .ticks li::before { color: var(--so-lime-deep); }
.prod-visual { position: relative; aspect-ratio: 16 / 11.5; perspective: 1600px; --rx: 4deg; --ry: -9deg; }
.browser {
  position: absolute; display: block; border-radius: 8px; overflow: hidden;
  border: 1px solid rgba(23, 24, 26, 0.5); background: var(--so-ink);
  box-shadow: 0 30px 60px -30px rgba(40, 30, 10, 0.6);
  transition: transform 0.7s var(--ease-out), box-shadow 0.3s ease;
}
.browser-bar { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: #26282b; font-family: var(--f-mono); font-size: 10.5px; color: #9a9c9f; white-space: nowrap; overflow: hidden; }
.browser-bar i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3c3f43; }
.browser-bar span { margin-left: 8px; }
.browser img { width: 100%; height: auto; }
.b-back { width: 70%; right: 0; top: 0; opacity: 0.85; transform: rotateY(var(--ry)) rotateX(var(--rx)) translateZ(-60px); }
.b-front { width: 80%; left: 0; bottom: 0; transform: rotateY(var(--ry)) rotateX(var(--rx)) translateZ(30px); }
.b-front:hover, .b-front:focus-visible { box-shadow: 0 40px 70px -30px rgba(40, 30, 10, 0.7), 0 0 0 2px var(--so-lime); }
.prod-strip {
  margin-top: clamp(20px, 3.5vh, 40px);
  display: grid; grid-template-columns: 1.25fr repeat(4, 1fr) auto; gap: 12px; align-items: end;
  padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--card);
}
.prod-strip-head { margin: 0; align-self: center; }
.prod-strip-head b { display: block; font-family: var(--f-display); font-weight: 500; font-size: 21px; line-height: 1.2; }
.prod-strip-head small { color: var(--muted); font-size: 14px; line-height: 1.45; display: block; }
.prod-strip .btn { height: 46px; }
.prod-strip .form-msg { grid-column: 1 / -1; margin: 0; }
.prod-strip .form-msg:empty { display: none; }
.prod-door { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (max-width: 1180px) {
  .prod-strip { grid-template-columns: 1fr 1fr; }
  .prod-strip-head, .prod-strip .btn { grid-column: 1 / -1; }
  .prod-door { display: flex; }
}

/* the tracker demo: a manila job card next to the customer's link */
.tracker { position: relative; margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(22px, 3vw, 36px); border: 1px solid rgba(120, 95, 40, 0.3); border-radius: 3px; background: var(--so-manila); box-shadow: var(--shadow); }
.tracker::before { content: "JOB CARD"; position: absolute; top: 14px; right: 18px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; color: rgba(90, 70, 30, 0.55); }
.tracker-copy h3 { font-size: clamp(24px, 2.3vw, 32px); margin: 4px 0 14px; }
.tracker-copy p:not(.hand-note) { color: #5a4f3a; max-width: 42ch; }
.tracker-demo { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 16px; align-items: stretch; }
.trk-phone, .trk-link { border-radius: 22px; padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.trk-phone { border-radius: 30px; background: var(--so-ink); color: #f1f1ee; border: 6px solid #2c2e31; }
.trk-link { background: var(--white); border: 1px solid rgba(120, 95, 40, 0.3); border-radius: 10px; }
.trk-who, .trk-url { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; margin: 0; }
.trk-who { color: #8d9093; }
.trk-url { color: var(--faint); }
.trk-url span { float: right; color: var(--muted); }
.trk-job { font-weight: 600; margin: 6px 0 0; }
.trk-now { color: #b2b5b8; font-size: 14px; margin: 0 0 10px; }
.trk-btn { --bg: var(--so-lime); --fg: #142000; width: 100%; justify-content: center; margin-top: auto; border-color: var(--so-lime); }
.trk-btn:hover { box-shadow: 3px 3px 0 #f1f1ee; }
.trk-reset { margin-top: auto; height: 46px; border-radius: 6px; border: 1.5px solid #5b5e62; background: transparent; color: #f1f1ee; cursor: pointer; }
.trk-steps { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; gap: 10px; }
.trk-steps li { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 15px; transition: color 0.3s var(--ease); }
.trk-steps i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d3cbbb; flex: none; transition: all 0.3s var(--ease-out); }
.trk-steps li.done { color: var(--ink); }
.trk-steps li.done i { background: var(--so-lime); border-color: var(--so-lime-deep); box-shadow: 0 0 0 4px rgba(120, 170, 0, 0.18); }
.trk-steps li.cur { color: var(--ink); font-weight: 600; }
.trk-steps li.cur i { border-color: var(--so-lime-deep); }
.trk-state { margin: auto 0 0; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--muted); }
.trk-link.is-done .trk-state { color: var(--so-lime-deep); font-weight: 600; }
.trk-link.pulse { animation: trkPulse 0.6s var(--ease-out); }
@keyframes trkPulse { 0% { box-shadow: 0 0 0 0 rgba(120, 170, 0, 0.45); } 100% { box-shadow: 0 0 0 18px rgba(120, 170, 0, 0); } }

.promo { margin: clamp(32px, 4vw, 56px) 0 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.promo-frame { border: 8px solid var(--white); outline: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; background: var(--so-ink); aspect-ratio: 16 / 9; }
.promo-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.promo figcaption { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 44ch; }
.promo figcaption b { display: block; color: var(--ink); font-family: var(--f-display); font-weight: 500; font-size: 26px; letter-spacing: -0.01em; margin-bottom: 8px; }

.audit-door .btn { margin-top: 6px; }
.audit-door .direct { margin-top: 16px; }

/* reveal (JS only) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.9s var(--ease-out); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .chapter-card.reveal.in { transform: rotate(-0.6deg); }
  .js .chapter:nth-of-type(odd) .chapter-card.reveal.in { transform: rotate(0.5deg); }
}
/* headline words rise in */
@media (prefers-reduced-motion: no-preference) {
  .js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
  .js .split .w > span { display: inline-block; transform: translateY(110%); transition: transform 0.95s var(--ease-out); }
  .js .split.in .w > span { transform: none; }
}

.sticky-cta { display: none; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1200px) {
  .hero { min-height: auto; padding-bottom: 28px; }
  .hero::after { display: none; }
  .hero-copy { padding-bottom: 0; }
  .hero-copy::before { content: ""; position: absolute; z-index: -1; inset: -400px -100vw -64px; background: linear-gradient(180deg, var(--paper) 0, var(--paper) calc(100% - 150px), rgba(244,239,230,0)); }
  .hero-legend { position: relative; bottom: auto; margin-top: min(62vw, 560px); }
  .nav { gap: 18px; }
  .stack { grid-template-columns: 1fr 1fr; }
  .stack div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stack div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .header-cta { margin-left: auto; }
  .menu-btn { margin-left: 0; }
}
@media (max-width: 1180px) { .journey-rail span { display: none; } }

@media (max-width: 900px) {
  :root { --gutter: 20px; --header-h: 62px; }
  .site-header.scrolled { background: rgba(244, 239, 230, 0.97); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header-cta { display: none; }
  .menu-btn { margin-left: auto; }
  .hero { padding-bottom: 46vh; padding-bottom: 46svh; }
  .hero-legend { display: none; }
  .hero-paths { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 150px; }
  .chapter { display: block; min-height: 0; padding: 54vh 0 6vh; padding: 54svh 0 6svh; }
  .chapter-card { max-width: none; padding: 26px 20px 18px; }
  .ch-title { font-size: 27px; margin-bottom: 12px; }
  .ch-lede { font-size: 15px; }
  .ch-rows div { grid-template-columns: 66px 1fr; gap: 10px; padding: 9px 0; }
  .ch-rows dd { font-size: 14px; }
  .journey-rail { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 6px; }
  .journey-rail a { text-align: center; padding: 8px 0; }
  .journey-rail a b { margin: 0; }
  .section-head, .split-grid, .founder, .roi-grid, .prod-grid { grid-template-columns: 1fr; }
  .prod-visual { aspect-ratio: 16 / 12.5; }
  .section-head .lede { justify-self: start; }
  .row { gap: 14px; margin: -6px calc(-1 * var(--gutter)) 0; padding: 6px var(--gutter) 14px; scroll-padding-left: var(--gutter); }
  .row > .card { flex-basis: 84%; }
  .row-btn { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li, .steps li + li { padding: 22px 16px 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps li:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .founder-photo { max-width: 330px; }
  .founder-photo img { max-height: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .faq { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .promo { grid-template-columns: 1fr; }
  .tracker { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-ctas .btn { flex: 1 1 100%; }
  .fgrid, .prod-strip { grid-template-columns: 1fr; }
  .stack { grid-template-columns: 1fr; }
  .stack div, .stack div + div { padding-left: 0; border-left: 0; }
  .stack div + div { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .roi-out dl { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) { .tracker-demo { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .sticky-cta { display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; padding: 8px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(251, 248, 242, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 16px 36px -14px rgba(60, 45, 20, 0.5); }
  .sticky-cta .btn { flex: 1; justify-content: center; height: 46px; }
  body { padding-bottom: 80px; }
}

/* short laptop screens: keep the ShapedOps page to one screen */
@media (min-width: 901px) and (max-height: 820px) {
  .prod-copy h2 { font-size: clamp(28px, 2.6vw, 38px); }
  .prod-copy .lede { font-size: 15px; margin-bottom: 12px; }
  .prod-copy .ticks { gap: 8px; margin-bottom: 14px; }
  .prod-copy .ticks li { font-size: 14.5px; }
  .prod-strip { margin-top: 14px; padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .hero-paths a:hover, .row > .card:hover, .btn:hover { transform: none; }
}
