/* ==========================================================================
   Pipeline Foundry — shared design system
   Tokens are the exact values from the Brand & Website Brief v2.0.
   Motion rule (CLAUDE.md): only transform + opacity are ever transitioned.
   ========================================================================== */

:root {
  --pf-ink: #0D0D0D;
  --pf-paper: #FFFFFF;
  --pf-molten: #FF5A1F;
  --pf-molten-hover: #E64A12;
  --pf-graphite: #1A1A1A;
  --pf-iron: #2B2B2B;
  --pf-ash: #8C8C8C;
  --pf-slate: #5E5E5E;
  --pf-mist: #E6E6E6;
  --pf-fog: #F3F3F3;

  --pf-font-sans: 'Geist', system-ui, sans-serif;
  --pf-font-mono: 'Geist Mono', ui-monospace, monospace;

  /* Sharp, 90° corners everywhere (client direction, Nov 2026). The brief's 2/6/10px radii are
     kept only on the logo's own blocks (glyphs, block fields), which come from the mark. */
  --pf-radius-sm: 0px;
  --pf-radius: 0px;
  --pf-radius-lg: 0px;
  --pf-container: 1200px;
  --pf-gutter: 24px;
  --pf-section-y: 120px;
  --nav-h: 72px;

  /* Spring-style easing */
  --ease-spring: cubic-bezier(.34, 1.32, .64, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* Depth system: base → elevated → floating */
  --shadow-elevated: 0 1px 2px rgba(13, 13, 13, .04), 0 8px 20px -12px rgba(13, 13, 13, .14), 0 24px 48px -32px rgba(13, 13, 13, .22);
  --shadow-floating: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 16px 36px -16px rgba(0, 0, 0, .55), 0 40px 80px -40px rgba(0, 0, 0, .65);
  --shadow-molten: 0 10px 28px -12px rgba(255, 90, 31, .6), 0 2px 8px -2px rgba(255, 90, 31, .3);

  --z-nav: 50;
  --z-widget: 60;
  --z-modal: 80;
}

@media (max-width: 767px) {
  :root { --pf-section-y: 72px; --pf-gutter: 16px; --nav-h: 64px; }
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--pf-ink);
  color: var(--pf-paper);
  font-family: var(--pf-font-sans);
  font-size: 17px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (max-width: 767px) { body { font-size: 16px; line-height: 25px; } }

::selection { background: var(--pf-molten); color: var(--pf-ink); }
:focus-visible { outline: 2px solid var(--pf-molten); outline-offset: 2px; }
img, svg { max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  background: var(--pf-molten); color: var(--pf-ink);
  padding: 10px 14px; border-radius: var(--pf-radius); font-weight: 600;
  transform: translateY(-160%); transition: transform .3s var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--pf-container) + var(--pf-gutter) * 2); margin-inline: auto; padding-inline: var(--pf-gutter); }
.section { position: relative; padding-block: var(--pf-section-y); }

.section--ink   { background: var(--pf-ink);   color: var(--pf-paper); --muted: var(--pf-ash);   --line: var(--pf-iron); --card: var(--pf-graphite); --fg: var(--pf-paper); }
.section--paper { background: var(--pf-paper); color: var(--pf-ink);   --muted: var(--pf-slate); --line: var(--pf-mist); --card: var(--pf-fog);      --fg: var(--pf-ink); }
.section--fog   { background: var(--pf-fog);   color: var(--pf-ink);   --muted: var(--pf-slate); --line: #DADADA;        --card: var(--pf-paper);    --fg: var(--pf-ink); }

.muted { color: var(--muted, var(--pf-ash)); }
.text-molten { color: var(--pf-molten); }

/* Subtle film grain for dark sections (SVG noise) */
.grain { isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .045;
}

/* ---------- Type scale (brief §03) ---------- */
.t-display { font-size: 88px; line-height: 88px; font-weight: 600; letter-spacing: -0.045em; margin: 0; }
.t-h1 { font-size: 56px; line-height: 59px; font-weight: 600; letter-spacing: -0.04em; margin: 0; }
.t-h2 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.03em; margin: 0; }
.t-h3 { font-size: 24px; line-height: 31px; font-weight: 500; letter-spacing: -0.01em; margin: 0; }
.t-lead { font-size: 20px; line-height: 31px; margin: 0; }
.t-body { font-size: 17px; line-height: 26px; margin: 0; }
.t-small { font-size: 15px; line-height: 23px; margin: 0; }
.t-label { font-family: var(--pf-font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.t-mono { font-family: var(--pf-font-mono); font-feature-settings: "tnum" 1; }
.tnum { font-variant-numeric: tabular-nums; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

@media (max-width: 1023px) {
  .t-display { font-size: 64px; line-height: 66px; }
  .t-h1 { font-size: 46px; line-height: 50px; }
}
@media (max-width: 767px) {
  .t-display { font-size: 48px; line-height: 50px; }
  .t-h1 { font-size: 38px; line-height: 41px; }
  .t-h2 { font-size: 28px; line-height: 32px; }
  .t-h3 { font-size: 20px; line-height: 27px; }
  .t-lead { font-size: 18px; line-height: 28px; }
  .t-body { font-size: 16px; line-height: 25px; }
}

/* ---------- Buttons (brief §04) ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--pf-radius);
  font-family: var(--pf-font-sans); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer; user-select: none;
  background: none; color: inherit;
  transition: transform .4s var(--ease-spring);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .2s var(--ease-out); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: scale(.97); transition-duration: .12s; }
.btn:focus-visible { outline: 2px solid var(--pf-molten); outline-offset: 2px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.btn-primary { background: var(--pf-molten); color: var(--pf-ink); border-color: var(--pf-molten); }
.btn-primary::before { background: var(--pf-molten-hover); }

.btn-secondary { color: var(--fg, var(--pf-paper)); border-color: currentColor; }
.btn-secondary::before { background: currentColor; }
.btn-secondary:hover::before { opacity: .08; }

.btn-ink { background: var(--pf-ink); color: var(--pf-paper); border-color: var(--pf-ink); }
.btn-ink::before { background: var(--pf-iron); }

.btn-ghost { padding: 0 12px; color: var(--fg, var(--pf-paper)); }
.btn-ghost::before { background: currentColor; }
.btn-ghost:hover::before { opacity: .07; }

.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { height: 60px; padding: 0 32px; }
.btn-block { width: 100%; }

.btn .btn__icon { width: 16px; height: 16px; flex: none; transition: transform .4s var(--ease-spring); }
.btn:hover .btn__icon--nudge { transform: translateX(3px); }

/* Shine sweep on hero / key CTAs */
.btn-shine::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: 0; width: 34%; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .55) 50%, transparent 100%);
  transform: translateX(-140%) skewX(-18deg);
  animation: pf-shine 5.2s var(--ease-in-out) 1.4s infinite;
}
@keyframes pf-shine {
  0% { transform: translateX(-140%) skewX(-18deg); }
  26%, 100% { transform: translateX(420%) skewX(-18deg); }
}

/* Text link (brief: 1px underline offset 3px; hover Molten on dark, Slate on light) */
.link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.section--ink .link:hover, .on-ink .link:hover { color: var(--pf-molten); }
.section--paper .link:hover, .section--fog .link:hover { color: var(--pf-slate); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; }
.link-arrow span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link-arrow svg { width: 14px; height: 14px; transition: transform .4s var(--ease-spring); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow:active { opacity: .7; }

/* ---------- Tags & stage glyphs (brief §04) ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--pf-font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid currentColor; border-radius: var(--pf-radius-sm); white-space: nowrap;
}
.tag--line { border-color: var(--line); color: var(--muted); }
.tag--solid { background: var(--pf-ink); color: var(--pf-paper); border-color: var(--pf-ink); }
.tag--booked { background: var(--pf-molten); color: var(--pf-ink); border-color: var(--pf-molten); }
.tag--invert { background: var(--pf-paper); color: var(--pf-ink); border-color: var(--pf-paper); }

/* Glyph geometry mirrors the mark: radius ≈ 19%, stroke ≈ 12%, core ≈ 50% */
.glyph { --g: 14px; position: relative; display: inline-block; flex: none; width: var(--g); height: var(--g); border-radius: calc(var(--g) * .19); color: inherit; }
.glyph--cold { box-shadow: inset 0 0 0 calc(var(--g) * .12) currentColor; }
.glyph--engaged { box-shadow: inset 0 0 0 calc(var(--g) * .12) currentColor; }
.glyph--engaged::after { content: ""; position: absolute; inset: 25%; border-radius: calc(var(--g) * .1); background: currentColor; }
.glyph--qualified { background: currentColor; }
.glyph--booked { background: var(--pf-molten); }
.glyph--sm { --g: 10px; }
.glyph--lg { --g: 18px; }

/* ---------- Cards ---------- */
.card { position: relative; border-radius: var(--pf-radius-lg); padding: 32px; }
.card-dark { background: var(--pf-graphite); border: 1px solid var(--pf-iron); color: var(--pf-paper); }
.card-light { background: var(--pf-fog); color: var(--pf-ink); }
.card-paper { background: var(--pf-paper); color: var(--pf-ink); box-shadow: var(--shadow-elevated); }
@media (max-width: 767px) { .card { padding: 24px; } }

/* Hairline rules */
.rule { height: 1px; background: var(--line, var(--pf-iron)); border: 0; margin: 0; }

/* Corner ticks — crisp 90° framing */
.ticks { position: relative; }
.ticks::before, .ticks::after { content: ""; position: absolute; width: 9px; height: 9px; pointer-events: none; border-color: var(--tick, var(--pf-iron)); border-style: solid; }
.ticks::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.ticks::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); height: var(--nav-h); pointer-events: none; }
.nav > * { pointer-events: auto; }
/* The toolbar is solid Ink: nothing behind it ever shows through the links or buttons. */
.nav__bar-bg {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--pf-ink);
  border-bottom: 1px solid var(--pf-iron);
  opacity: 1; transition: opacity .35s var(--ease-out);
}
.nav.is-compact .nav__bar-bg { opacity: 0; }
.nav__pill-bg {
  position: absolute; top: 10px; left: 50%; height: 52px; width: var(--pill-w, 760px); margin-left: calc(var(--pill-w, 760px) / -2);
  pointer-events: none; border-radius: var(--pf-radius-lg);
  background: var(--pf-ink);
  border: 1px solid var(--pf-iron);
  box-shadow: var(--shadow-floating);
  opacity: 0; transform: scaleX(1.28) scaleY(.9);
  transition: opacity .45s var(--ease-out), transform .7s var(--ease-spring);
}
.nav.is-compact .nav__pill-bg { opacity: 1; transform: none; }

.nav__inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__logo, .nav__links, .nav__ctas, .nav__cta-book { transition: transform .7s var(--ease-spring); will-change: transform; }
.nav__logo { display: inline-flex; align-items: center; gap: 9px; color: var(--pf-paper); text-decoration: none; border-radius: var(--pf-radius-sm); }
.nav__logo img { width: 32px; height: auto; display: block; }
.nav__wordmark { font-size: 16px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; transition: opacity .3s var(--ease-out); }
.nav__links { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; transform: translate(-50%, -50%); }
.nav__item { position: relative; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  color: #C9C9C9; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none;
  background: none; border: 0; border-radius: var(--pf-radius); cursor: pointer; font-family: inherit;
}
.nav__link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 255, 255, .07); opacity: 0; transition: opacity .2s var(--ease-out); }
.nav__link:hover, .nav__link[aria-expanded="true"], .nav__link[aria-current="page"] { color: var(--pf-paper); }
.nav__link:hover::before, .nav__link[aria-expanded="true"]::before { opacity: 1; }
.nav__link:active { opacity: .7; }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--pf-molten); }
.nav__chev { width: 10px; height: 10px; transition: transform .35s var(--ease-spring); }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

.nav__ctas { display: flex; align-items: center; gap: 10px; }
.nav__cta-leads { transition: opacity .3s var(--ease-out), transform .7s var(--ease-spring); }
.nav.is-compact .nav__wordmark,
.nav.is-compact .nav__cta-leads { opacity: 0; pointer-events: none; }
.nav.is-compact .nav__logo { transform: translateX(var(--dx-logo, 0px)); }
.nav.is-compact .nav__links { transform: translate(calc(-50% + var(--dx-links, 0px)), -50%); }
.nav.is-compact .nav__cta-book { transform: translateX(var(--dx-book, 0px)); }

/* Dropdowns */
.nav__dd {
  position: absolute; top: calc(100% + 12px); left: 50%; width: 360px; margin-left: -180px;
  background: var(--pf-graphite); border: 1px solid var(--pf-iron); border-radius: var(--pf-radius-lg);
  box-shadow: var(--shadow-floating); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top center;
  transition: opacity .2s var(--ease-out), transform .45s var(--ease-spring), visibility 0s linear .2s;
}
.nav__dd.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease-out), transform .45s var(--ease-spring), visibility 0s; }
.nav__dd::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dd-link { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 4px 14px; padding: 12px 14px; border-radius: var(--pf-radius); text-decoration: none; color: var(--pf-paper); }
.dd-link::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(255, 255, 255, .06); opacity: 0; transition: opacity .2s var(--ease-out); }
.dd-link:hover::before, .dd-link:focus-visible::before { opacity: 1; }
.dd-link:active { opacity: .75; }
.dd-link .glyph { margin-top: 4px; }
.dd-link strong { font-weight: 600; font-size: 15px; line-height: 22px; }
.dd-link span:last-child { grid-column: 2; color: var(--pf-ash); font-size: 14px; line-height: 20px; }

/* Mobile nav */
.nav__menu-btn {
  display: none; position: relative; width: 44px; height: 44px; border: 1px solid var(--pf-iron); border-radius: var(--pf-radius);
  background: rgba(13, 13, 13, .6); color: var(--pf-paper); cursor: pointer; align-items: center; justify-content: center;
}
.nav__menu-btn:active { transform: scale(.96); }
.nav__menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-spring), opacity .2s; }
.nav__menu-btn span:nth-child(1) { transform: translateY(-5px); }
.nav__menu-btn span:nth-child(3) { transform: translateY(5px); }
.nav__menu-btn[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.nav__menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__menu-btn[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

.nav__mobile {
  position: fixed; inset: 0; z-index: -1; background: var(--pf-ink); padding: calc(var(--nav-h) + 16px) var(--pf-gutter) 32px;
  display: flex; flex-direction: column; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .25s var(--ease-out), transform .5s var(--ease-spring), visibility 0s linear .25s;
}
.nav__mobile.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease-out), transform .5s var(--ease-spring), visibility 0s; }
.m-group { border-top: 1px solid var(--pf-iron); padding: 18px 0; }
.m-group .t-label { color: var(--pf-ash); margin-bottom: 8px; }
.m-link { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none; color: var(--pf-paper); }
.m-link:active { opacity: .6; }
.m-ctas { margin-top: auto; display: grid; gap: 10px; padding-top: 24px; }

@media (max-width: 1099px) {
  .nav__links, .nav__cta-leads { display: none; }
  .nav__menu-btn { display: inline-flex; }
}
@media (max-width: 479px) { .nav__cta-book { display: none; } }

/* ---------- Logo marquee (moves left → right) ---------- */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.marquee__track { display: flex; width: max-content; animation: pf-marquee var(--marquee-dur, 46s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes pf-marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.logo-cell {
  position: relative; flex: none; width: 132px; height: 54px; display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--pf-iron); background: rgba(13, 13, 13, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.logo-cell img { max-width: 66px; max-height: 15px; width: auto; height: auto; filter: brightness(0) invert(1); opacity: .62; transition: opacity .3s var(--ease-out), transform .5s var(--ease-spring); }
.logo-cell:hover img { opacity: 1; transform: scale(1.04); }
.logo-cell--tall img { max-height: 19px; }
@media (max-width: 767px) { .logo-cell { width: 112px; height: 48px; } .logo-cell img { max-width: 58px; max-height: 13px; } }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--pf-ink); color: var(--pf-paper); border-top: 1px solid var(--pf-iron); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px 32px; }
.footer__col h3 { margin: 0 0 16px; color: var(--pf-ash); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col a { color: #D4D4D4; text-decoration: none; font-size: 15px; line-height: 22px; border-radius: 2px; }
.footer__col a:hover { color: var(--pf-paper); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.footer__col a:active { opacity: .6; }
.footer__brand p { color: var(--pf-ash); max-width: 300px; }
.footer__legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--pf-iron); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; color: var(--pf-ash); font-size: 14px; }
.footer__legal a { color: var(--pf-ash); text-decoration: none; }
.footer__legal a:hover { color: var(--pf-paper); }
.social { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--pf-iron); border-radius: var(--pf-radius); color: var(--pf-paper); transition: transform .4s var(--ease-spring); }
.social:hover { border-color: #555; }
.social:active { transform: scale(.94); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 1023px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; }
.field > span { font-family: var(--pf-font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--pf-ash); }
.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: var(--pf-radius);
  background: var(--pf-ink); border: 1px solid var(--pf-iron); color: var(--pf-paper);
  font: 400 16px/1.2 var(--pf-font-sans);
}
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; line-height: 24px; resize: vertical; }
.input::placeholder { color: #6E6E6E; }
.input:hover { border-color: #3C3C3C; }
.input:focus-visible { outline: 2px solid var(--pf-molten); outline-offset: 1px; border-color: transparent; }
.input--light { background: var(--pf-paper); border-color: var(--pf-mist); color: var(--pf-ink); }
.input--light:hover { border-color: #CFCFCF; }
.form-note { font-size: 13px; line-height: 19px; color: var(--pf-ash); }

/* Chips as radio buttons */
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--pf-radius);
  border: 1px solid var(--line, var(--pf-mist)); font-weight: 500; font-size: 15px; cursor: pointer; user-select: none;
  transition: transform .35s var(--ease-spring);
}
.chip input:hover + span { border-color: var(--pf-slate); }
.chip input:active + span { transform: scale(.96); }
.chip input:checked + span { background: var(--pf-ink); border-color: var(--pf-ink); color: var(--pf-paper); }
.chip input:focus-visible + span { outline: 2px solid var(--pf-molten); outline-offset: 2px; }

/* Range slider */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 2px; border-radius: 0; background: linear-gradient(90deg, var(--pf-ink) var(--fill, 50%), #D4D4D4 var(--fill, 50%)); }
.range::-moz-range-track { height: 2px; border-radius: 0; background: #D4D4D4; }
.range::-moz-range-progress { height: 2px; border-radius: 0; background: var(--pf-ink); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 0; background: var(--pf-paper); border: 2px solid var(--pf-ink); box-shadow: 0 2px 6px rgba(13, 13, 13, .2); transition: transform .3s var(--ease-spring); }
.range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 0; background: var(--pf-paper); border: 2px solid var(--pf-ink); }
.range:active::-webkit-slider-thumb { transform: scale(1.15); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--pf-molten); outline-offset: 2px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: 16px; visibility: hidden; transition: visibility 0s linear .3s; }
.modal.is-open { visibility: visible; transition: visibility 0s; }
.modal__scrim { position: absolute; inset: 0; background: rgba(8, 8, 8, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s var(--ease-out); }
.modal.is-open .modal__scrim { opacity: 1; }
.modal__dialog {
  position: relative; width: min(540px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--pf-graphite); color: var(--pf-paper); border: 1px solid var(--pf-iron); border-radius: var(--pf-radius-lg);
  box-shadow: var(--shadow-floating); padding: 36px;
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .3s var(--ease-out), transform .55s var(--ease-spring);
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: var(--pf-radius); border: 1px solid var(--pf-iron); background: transparent; color: var(--pf-ash); cursor: pointer;
}
.modal__close:hover { color: var(--pf-paper); border-color: #444; }
.modal__close:active { transform: scale(.94); }
.modal__success { display: none; }
.modal.is-done .modal__form { display: none; }
.modal.is-done .modal__success { display: block; }
@media (max-width: 767px) { .modal__dialog { padding: 28px 20px; } }

/* ---------- Booking widget (bottom-right) ---------- */
.book-widget { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-widget); display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.book-widget > * { pointer-events: auto; }
.book-widget__launcher {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px 0 8px;
  background: var(--pf-graphite); color: var(--pf-paper); border: 1px solid var(--pf-iron); border-radius: var(--pf-radius-lg);
  box-shadow: var(--shadow-floating); cursor: pointer; font: 600 15px/1 var(--pf-font-sans); letter-spacing: -0.01em;
  opacity: 0; transform: translateY(16px); transition: opacity .35s var(--ease-out), transform .6s var(--ease-spring);
}
.book-widget.is-ready .book-widget__launcher { opacity: 1; transform: none; }
.book-widget.is-open .book-widget__launcher { opacity: 0; transform: translateY(8px) scale(.96); pointer-events: none; }
.book-widget__launcher:hover { border-color: #3A3A3A; }
.book-widget__launcher:active { transform: scale(.97); }
.book-widget__launcher small { display: block; margin-top: 4px; font: 500 11px/1 var(--pf-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--pf-ash); }
.avatar {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: var(--pf-radius); overflow: hidden;
  background: var(--pf-ink); border: 1px solid var(--pf-iron); display: grid; place-items: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar__dot { position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 0; background: var(--pf-molten); border: 2px solid var(--pf-graphite); }

.book-widget__panel {
  width: 348px; max-width: calc(100vw - 32px); background: var(--pf-graphite); color: var(--pf-paper);
  border: 1px solid var(--pf-iron); border-radius: var(--pf-radius-lg); box-shadow: var(--shadow-floating); padding: 20px;
  opacity: 0; transform: translateY(16px) scale(.97); transform-origin: bottom right; visibility: hidden;
  transition: opacity .25s var(--ease-out), transform .55s var(--ease-spring), visibility 0s linear .25s;
}
.book-widget.is-open .book-widget__panel { opacity: 1; transform: none; visibility: visible; transition: opacity .25s var(--ease-out), transform .55s var(--ease-spring), visibility 0s; }
.book-widget__head { display: flex; align-items: center; gap: 12px; padding-right: 36px; }
.book-widget__close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--pf-iron); border-radius: var(--pf-radius); background: none; color: var(--pf-ash); cursor: pointer; }
.book-widget__close:hover { color: var(--pf-paper); }
.book-widget__close:active { transform: scale(.94); }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 16px 0; }
.day {
  display: grid; justify-items: center; gap: 4px; padding: 10px 0; border-radius: var(--pf-radius);
  border: 1px solid var(--pf-iron); background: transparent; color: var(--pf-paper); cursor: pointer; font-family: inherit;
  transition: transform .35s var(--ease-spring);
}
.day:hover { border-color: #4A4A4A; }
.day:active { transform: scale(.95); }
.day span:first-child { font: 500 11px/1 var(--pf-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--pf-ash); }
.day span:last-child { font-size: 18px; line-height: 1; font-weight: 600; }
.day[aria-pressed="true"] { background: var(--pf-paper); color: var(--pf-ink); border-color: var(--pf-paper); }
.day[aria-pressed="true"] span:first-child { color: var(--pf-slate); }
@media (max-width: 767px) {
  .book-widget { right: 12px; bottom: 12px; }
  .book-widget__launcher { height: 52px; }
  .book-widget__launcher .bw-text { display: none; }
  .book-widget__launcher { padding: 0 6px; }
}

/* ---------- Reveal (used sparingly, once per section at most) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .btn-shine::after { display: none; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* Utility */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.no-scroll { overflow: hidden; }

/* ==========================================================================
   Subpage kit — shared by tools, resources, about, services and blog pages
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: calc(var(--nav-h) + 96px) 0 88px;
  background:
    radial-gradient(60% 60% at 85% 0%, rgba(255, 90, 31, .08), transparent 60%),
    radial-gradient(50% 50% at 10% 100%, rgba(255, 255, 255, .04), transparent 70%),
    var(--pf-ink);
  border-bottom: 1px solid var(--pf-iron);
}
.page-hero::before { /* 90° engineering grid */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(80% 90% at 50% 0%, #000 40%, transparent 85%); mask-image: radial-gradient(80% 90% at 50% 0%, #000 40%, transparent 85%);
}
.page-hero .t-display, .page-hero .t-h1 { max-width: 16ch; margin-top: 18px; }
.page-hero .t-lead { margin-top: 22px; max-width: 60ch; color: var(--pf-ash); }
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--pf-ash); }
.crumbs a { color: var(--pf-ash); text-decoration: none; }
.crumbs a:hover { color: var(--pf-paper); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted, var(--pf-ash)); }

.sec-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 48px; align-items: end; margin-bottom: 48px; }
.sec-head .t-h1, .sec-head .t-h2 { margin-top: 14px; max-width: 16ch; }
.sec-head .t-lead { color: var(--muted); }
@media (max-width: 1023px) { .sec-head { grid-template-columns: 1fr; } }

.cta-band { position: relative; padding: 96px 0; background: var(--pf-ink); color: var(--pf-paper); border-top: 1px solid var(--pf-iron); overflow: hidden; }
.cta-band__inner { display: grid; grid-template-columns: 1fr auto; gap: 32px 56px; align-items: center; position: relative; z-index: 1; }
.cta-band__inner p { color: var(--pf-ash); margin-top: 12px; max-width: 54ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1023px) { .cta-band__inner { grid-template-columns: 1fr; } }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1023px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 639px) { .card-grid { grid-template-columns: 1fr; } }

.stage-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--pf-radius-lg); background: var(--pf-graphite); border: 1px solid var(--pf-iron); }
.stage-card .t-label { display: flex; align-items: center; gap: 10px; color: var(--pf-ash); }
.stage-card h3 { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 0; }
.stage-card p { color: var(--pf-ash); font-size: 15px; line-height: 23px; margin: 0; }

/* Tick list shared */
.list-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list-ticks li { position: relative; padding-left: 22px; font-size: 16px; line-height: 24px; }
.list-ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 0; background: currentColor; }
.list-ticks--open li::before { background: none; box-shadow: inset 0 0 0 1.3px currentColor; }

/* Photo treatment (CLAUDE.md): gradient overlay + multiply colour layer */
.photo { position: relative; overflow: hidden; border-radius: var(--pf-radius-lg); background: var(--pf-graphite); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.photo::before { content: ""; position: absolute; inset: 0; background: var(--pf-iron); mix-blend-mode: multiply; opacity: .55; z-index: 1; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent 55%); z-index: 1; }
.photo figcaption { position: absolute; left: 16px; bottom: 14px; z-index: 2; color: #fff; }
@media (max-width: 1099px) { .nav__pill-bg { display: none; } }


/* ==========================================================================
   Sharp forms + corner-bracket frames (Frontal-style)
   ========================================================================== */
.frame {
  --fc: rgba(255, 255, 255, .45); --fs: 10px;
  position: relative; padding: 7px;
  background:
    linear-gradient(var(--fc), var(--fc)) top left / var(--fs) 1px no-repeat,
    linear-gradient(var(--fc), var(--fc)) top left / 1px var(--fs) no-repeat,
    linear-gradient(var(--fc), var(--fc)) top right / var(--fs) 1px no-repeat,
    linear-gradient(var(--fc), var(--fc)) top right / 1px var(--fs) no-repeat,
    linear-gradient(var(--fc), var(--fc)) bottom left / var(--fs) 1px no-repeat,
    linear-gradient(var(--fc), var(--fc)) bottom left / 1px var(--fs) no-repeat,
    linear-gradient(var(--fc), var(--fc)) bottom right / var(--fs) 1px no-repeat,
    linear-gradient(var(--fc), var(--fc)) bottom right / 1px var(--fs) no-repeat;
}
.frame--ink { --fc: rgba(13, 13, 13, .5); }
.frame--sm { --fs: 6px; padding: 4px; }
.joined { display: flex; align-items: stretch; }
.joined > .input { flex: 1; min-width: 0; border-right-width: 0; }
.joined > .input + .input { border-left: 1px solid var(--pf-iron); }
.joined > .btn { height: auto; min-height: 48px; flex: none; }
@media (max-width: 639px) {
  .joined { flex-direction: column; }
  .joined > .input { border-right-width: 1px; border-bottom-width: 0; }
  .joined > .input + .input { border-left-width: 1px; }
}
.form-label { font-family: var(--pf-font-mono); font-size: 11px; line-height: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--pf-ash); }
.input { border-radius: 0; }
.input:focus-visible { outline: 1px solid var(--pf-paper); outline-offset: -1px; border-color: var(--pf-paper); }
.input--light:focus-visible { outline-color: var(--pf-ink); border-color: var(--pf-ink); }

/* Tool icons (favicons on a white tile, sharp) */
.tool-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: #fff; border: 1px solid var(--pf-mist); overflow: hidden; }
.tool-ico img { width: 24px; height: 24px; object-fit: contain; display: block; }
.tool-ico--sm { width: 32px; height: 32px; }
.tool-ico--sm img { width: 20px; height: 20px; }
.tool-ico span { font: 600 12px/1 var(--pf-font-mono); color: var(--pf-ink); }

/* White button (used for the playbook CTA in the hero) */
.btn-white { background: var(--pf-paper); color: var(--pf-ink); border-color: var(--pf-paper); }
.btn-white::before { background: var(--pf-mist); }
