/* ==========================================================================
   The Kautuka — theKautuka.com
   Design system v2: deep ink-navy base, bone type, and the mauli —
   two intertwined strands of red and marigold, like spun cotton yarn.
   ========================================================================== */

:root {
  /* Colour */
  --navy-950: #03081A;   /* footer / deepest */
  --navy-900: #050E28;   /* page base, darkest edge */
  --navy-800: #081638;   /* royal ink surface */
  --navy-700: #0F2150;   /* raised panels */
  --navy-600: #16306E;   /* hover / flare */
  --bone: #F4EFE6;
  --bone-dim: rgba(244, 239, 230, 0.72);
  --bone-faint: rgba(244, 239, 230, 0.45);
  --line: rgba(244, 239, 230, 0.13);
  --ink-line: rgba(8, 23, 65, 0.15);

  /* The mauli — red and marigold, spun together */
  --thread-red: #DA4222;
  --thread-gold: #E8A33D;
  --thread: var(--thread-red);              /* back-compat alias */
  --thread-bright: #FF7050;                 /* red for small text on navy */
  --gold-bright: #F6BE5A;                   /* gold for small text on navy */
  --gold-deep: #A96A10;                     /* gold for small text on bone */
  --mauli: repeating-linear-gradient(
    45deg,
    var(--thread-red) 0 5px,
    var(--thread-gold) 5px 10px
  );

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --size-hero: clamp(2.5rem, 6.5vw, 4.75rem);
  --size-h2: clamp(1.9rem, 4vw, 3rem);
  --size-h3: clamp(1.35rem, 2.4vw, 1.75rem);
  --size-body: 1.0625rem;
  --size-small: 0.875rem;

  --measure: 38em;
  --space: clamp(4.5rem, 10vw, 8.5rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max-w: 72rem;
  --radius: 16px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--navy-900);
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.97 0 0 0 0 0.9 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(90rem 55rem at 112% -18%, rgba(232, 163, 61, 0.09), transparent 58%),
    radial-gradient(80rem 60rem at -25% 118%, rgba(218, 66, 34, 0.08), transparent 55%),
    linear-gradient(172deg, #050E28 0%, #071433 42%, #0A1B44 100%);
  background-attachment: fixed;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: var(--size-hero); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }

p { margin: 0 0 1.2em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--thread-red); text-underline-offset: 3px; }
a:hover { color: var(--thread-bright); }

em, .accent-word { font-family: var(--font-display); font-style: italic; font-weight: 500; }

::selection { background: var(--thread-red); color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--thread-red); color: var(--bone);
  padding: 0.6rem 1.2rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space); position: relative; }

.section--bone {
  background:
    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.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.15 0 0 0 0 0.3 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--bone);
  color: var(--navy-900);
}
.section--bone .eyebrow { color: var(--gold-deep); }
.section--bone .muted { color: rgba(8, 23, 65, 0.66); }
.section--bone ::selection { background: var(--navy-800); color: var(--bone); }
.section--bone a:hover { color: var(--thread-red); }

.eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.4rem;
}

.muted { color: var(--bone-dim); }
.small { font-size: var(--size-small); }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (max-width: 820px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* The mauli divider — a short length of the spun thread */
.mauli-divider {
  width: min(220px, 40vw);
  height: 3px;
  border-radius: 3px;
  background: var(--mauli);
  border: 0;
  margin: 0 auto;
}
.mauli-divider--left { margin-left: 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(175deg, #E14A28, #C2371A);
  color: var(--bone);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(218, 66, 34, 0.25);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), filter 0.25s var(--ease);
}
.btn:hover { filter: brightness(1.08); color: var(--bone); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(218, 66, 34, 0.32); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--bone);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { background: rgba(244, 239, 230, 0.06); color: var(--bone); box-shadow: inset 0 0 0 1.5px var(--bone-faint); filter: none; }

.section--bone .btn--ghost { color: var(--navy-900); box-shadow: inset 0 0 0 1.5px rgba(8, 23, 65, 0.25); }
.section--bone .btn--ghost:hover { background: rgba(8, 23, 65, 0.05); color: var(--navy-900); }

.btn--small { padding: 0.55rem 1.25rem; font-size: 0.9rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--gold-bright);
}
.text-link::after { content: "→"; transition: transform 0.25s var(--ease); }
.text-link:hover::after { transform: translateX(4px); }
.text-link:hover { color: var(--thread-bright); }
.section--bone .text-link { color: var(--gold-deep); }
.section--bone .text-link:hover { color: var(--thread-red); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(4, 10, 31, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--bone);
}
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.site-nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--bone-dim);
  transition: color 0.2s ease;
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--bone); }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--thread-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--bone);
}
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    top: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: rgba(3, 8, 26, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .site-nav a:not(.btn) { font-size: 1.4rem; font-family: var(--font-display); }
  body.nav-open .site-nav { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle { position: relative; z-index: 110; }
  body.nav-open .nav-toggle .icon-open { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }
}

/* --------------------------------------------------------------------------
   The mauli — signature motif
   -------------------------------------------------------------------------- */

/* Fixed scroll-progress thread: spun red + marigold */
.thread-progress {
  position: fixed;
  left: max(calc((100vw - var(--max-w)) / 2 - 2.5rem), 0.6rem);
  top: 0;
  bottom: 0;
  width: 3px;
  z-index: 90;
  pointer-events: none;
}
.thread-progress__track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 3px;
}
.thread-progress__line {
  position: absolute;
  inset: 0;
  background: var(--mauli);
  border-radius: 3px;
  transform-origin: top;
  transform: scaleY(0);
}
.thread-progress__bead {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--thread-red);
  box-shadow: 0 0 0 2px var(--thread-gold), 0 0 14px rgba(232, 163, 61, 0.65);
  transform: translate(-50%, -50%);
}
@media (max-width: 700px) {
  .thread-progress { left: 0.45rem; width: 2px; }
  .thread-progress__bead { width: 7px; height: 7px; box-shadow: 0 0 0 1.5px var(--thread-gold), 0 0 10px rgba(232, 163, 61, 0.6); }
}

/* Drawable SVG thread paths — two strands, drawn on scroll into view */
.thread-svg { color: var(--thread-red); overflow: visible; }
.thread-svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.thread-svg .strand-red { stroke: var(--thread-red); }
.thread-svg .strand-gold { stroke: var(--thread-gold); stroke-width: 1.8; }
.js .draw-path { transition: stroke-dashoffset 1.8s var(--ease) 0.15s; }
.js .strand-gold.draw-path { transition-delay: 0.45s; }

/* Vertical connector between sections */
.thread-connector {
  display: flex;
  justify-content: center;
  height: clamp(90px, 14vw, 150px);
  margin-block: calc(var(--space) * -0.45);
  position: relative;
  z-index: 5;
  pointer-events: none;
}
.thread-connector svg { height: 100%; width: auto; }

/* --------------------------------------------------------------------------
   Imagery — placeholder-friendly framed images with an inked treatment
   -------------------------------------------------------------------------- */

.img-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--navy-700);
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.05) brightness(0.94);
}
.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(168deg, rgba(5, 14, 40, 0) 42%, rgba(5, 14, 40, 0.55));
  pointer-events: none;
}
.section--bone .img-frame { border-color: var(--ink-line); }

.case-hero-img { aspect-ratio: 21 / 9; margin: 0; }
@media (max-width: 700px) { .case-hero-img { aspect-ratio: 16 / 10; } }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  min-height: 92svh;
  display: flex;
  align-items: center;
  padding-block: clamp(7.5rem, 15vh, 10rem) var(--space);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { max-width: 15em; margin-bottom: 0.5em; }
.hero .lede {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--bone-dim);
  max-width: 34em;
  margin-bottom: 2.4rem;
}

.hero-figure {
  position: relative;
  aspect-ratio: 4 / 5;
}
.hero-figure .img-frame { position: absolute; inset: 0; }
.hero-figure .hero-figure-thread {
  position: absolute;
  left: -10%;
  bottom: 9%;
  width: 120%;
  z-index: 2;
  filter: drop-shadow(0 4px 14px rgba(3, 8, 26, 0.55));
}
@media (max-width: 900px) {
  .hero-figure { aspect-ratio: 16 / 10; max-height: 340px; width: 100%; }
}

.hero-thread {
  width: min(30rem, 70vw);
  height: auto;
  margin-top: 3.2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --------------------------------------------------------------------------
   Idea section (two meanings)
   -------------------------------------------------------------------------- */

.idea-halves {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: stretch;
  margin-top: 3rem;
}
.idea-half h3 { margin-bottom: 0.5em; }
.idea-half .sanskrit {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  margin-bottom: 1rem;
  display: block;
}
.idea-divider { display: flex; align-items: stretch; justify-content: center; }
.idea-divider svg { height: 100%; min-height: 180px; width: 40px; }

@media (max-width: 820px) {
  .idea-halves { grid-template-columns: 1fr; }
  .idea-divider svg { min-height: 90px; height: 90px; }
}

.idea-kicker {
  margin-top: 3.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: inherit;
  max-width: none;
}
.idea-kicker .thread-word { color: var(--thread-red); }

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services-intro { max-width: 44em; }

.service-list { margin-top: 3.5rem; display: grid; gap: 0; }

.service-item {
  display: grid;
  grid-template-columns: 4rem 1fr 2fr;
  gap: clamp(1.2rem, 3vw, 3rem);
  padding-block: clamp(1.8rem, 3.5vw, 2.8rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.section--bone .service-item { border-top-color: var(--ink-line); }
.service-item:last-child { border-bottom: 1px solid var(--line); }
.section--bone .service-item:last-child { border-bottom-color: var(--ink-line); }

.service-index {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-bright);
  padding-top: 0.35rem;
}
.section--bone .service-index { color: var(--gold-deep); }
.service-item h3 { margin: 0; }
.service-item .disciplines {
  margin-top: 1.1rem;
  font-size: var(--size-small);
  color: var(--bone-faint);
  letter-spacing: 0.02em;
  max-width: none;
}
.section--bone .service-item .disciplines { color: rgba(8, 23, 65, 0.5); }

@media (max-width: 820px) {
  .service-item { grid-template-columns: 2.6rem 1fr; }
  .service-item > p, .service-item .service-body { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   Work tiles
   -------------------------------------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin-top: 3rem;
}
@media (max-width: 820px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(244, 239, 230, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  transition: transform 0.3s var(--ease), border-color 0.3s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.work-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--mauli);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
  z-index: 2;
}
.work-card:hover { transform: translateY(-4px); border-color: var(--bone-faint); background: rgba(244, 239, 230, 0.07); color: inherit; }
.work-card:hover::before { transform: scaleY(1); }

.work-card-img {
  aspect-ratio: 8 / 5;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
}
.work-card:hover .work-card-img img { filter: saturate(1) contrast(1.05) brightness(1); }
.work-card-img img { transition: filter 0.4s ease, transform 0.6s var(--ease); }
.work-card:hover .work-card-img img { transform: scale(1.03); }

.work-card-body { padding: clamp(1.6rem, 3vw, 2.2rem); }

.work-card .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}
.work-card h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-bottom: 0.5em; }
.work-card p { color: var(--bone-dim); font-size: 0.98rem; margin: 0; }
.work-card .result {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--bone);
  font-size: 1.05rem;
}

.section--bone .work-card { background: rgba(8, 23, 65, 0.04); border-color: var(--ink-line); }
.section--bone .work-card:hover { border-color: rgba(8, 23, 65, 0.3); background: rgba(8, 23, 65, 0.07); }
.section--bone .work-card p { color: rgba(8, 23, 65, 0.66); }
.section--bone .work-card .tag { color: var(--gold-deep); }
.section--bone .work-card .result { color: var(--navy-900); }

/* --------------------------------------------------------------------------
   Approach steps
   -------------------------------------------------------------------------- */

.steps {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  position: relative;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.step { position: relative; padding-top: 2rem; }
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3.5rem;
  height: 3px;
  border-radius: 3px;
  background: var(--mauli);
}
.step h3 { font-size: 1.4rem; }
.step .step-num {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 0.6rem;
}
.section--bone .step .step-num { color: var(--gold-deep); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band { text-align: center; }
.cta-band h2 { max-width: 16em; margin-inline: auto; }
.cta-band p { margin-inline: auto; }
.cta-band .btn { margin-top: 2rem; }
.cta-knot { width: 84px; height: auto; margin: 0 auto 2.2rem; }

/* --------------------------------------------------------------------------
   Page hero (interior pages)
   -------------------------------------------------------------------------- */

.page-hero { padding-top: clamp(9rem, 18vh, 13rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.page-hero h1 { max-width: 14em; }
.page-hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--bone-dim); max-width: 36em; }

/* --------------------------------------------------------------------------
   Case study & article layouts
   -------------------------------------------------------------------------- */

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-block: 1.6rem;
  border-block: 1px solid var(--line);
  margin-block: 2.5rem;
  font-size: var(--size-small);
}
.meta-row div span { display: block; }
.meta-row .meta-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bone-faint);
  margin-bottom: 0.3rem;
}

.prose { max-width: var(--measure); }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.2em; scroll-margin-top: 6rem; }
.prose h2:first-child { margin-top: 0; }
.prose blockquote {
  margin: 2.2em 0;
  padding-left: 1.6rem;
  border-left: 3px solid transparent;
  border-image: var(--mauli) 1;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2em;
  line-height: 1.5;
  color: var(--bone);
}
.section--bone .prose blockquote { color: var(--navy-900); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5em; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-block: 3rem;
  padding-block: 2.5rem;
  border-block: 1px solid var(--line);
}
@media (max-width: 700px) { .stats-row { grid-template-columns: 1fr; gap: 1.6rem; padding-block: 2rem; } }
.stat .stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: var(--gold-bright);
  line-height: 1.1;
  display: block;
}
.stat .stat-label { color: var(--bone-dim); font-size: var(--size-small); margin-top: 0.4rem; display: block; }

.confidential-note {
  margin-top: 3rem;
  padding: 1.2rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-size: var(--size-small);
  color: var(--bone-faint);
  max-width: var(--measure);
}

.article-meta { color: var(--bone-faint); font-size: var(--size-small); margin-bottom: 2.5rem; }
.article-meta .dot { margin-inline: 0.5rem; color: var(--thread-gold); }

/* Files index cards */
.file-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-block: clamp(1.8rem, 3vw, 2.6rem);
  border-top: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease);
  position: relative;
}
.file-card:last-of-type { border-bottom: 1px solid var(--line); }
.file-card:hover { color: inherit; padding-left: 1.2rem; }
.file-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: var(--mauli);
  transform: translateY(-50%);
  transition: height 0.3s var(--ease);
}
.file-card:hover::before { height: 60%; }
.file-card h3 { margin-bottom: 0.4em; }
.file-card .file-excerpt { color: var(--bone-dim); margin: 0; }
.file-card .file-date { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-bright); opacity: 0.85; display: block; margin-bottom: 0.8rem; }

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 1.6rem; }
.form-field label {
  display: block;
  font-size: var(--size-small);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(244, 239, 230, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--thread-gold);
  background: rgba(244, 239, 230, 0.08);
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-field ::placeholder { color: var(--bone-faint); }

.form-note { font-size: var(--size-small); color: var(--bone-faint); margin-top: 1.2rem; }
.form-status { margin-top: 1.2rem; font-weight: 600; color: var(--gold-bright); min-height: 1.5em; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-aside .contact-block { margin-bottom: 2.2rem; }
.contact-aside .contact-block h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
.contact-aside a { text-decoration: none; color: var(--bone-dim); }
.contact-aside a:hover { color: var(--thread-bright); }

/* --------------------------------------------------------------------------
   Founder monogram panel
   -------------------------------------------------------------------------- */

.monogram-panel {
  aspect-ratio: 4 / 5;
  max-width: 320px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border: 1px solid var(--line);
  margin-top: 2rem;
}
.monogram-panel .monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(4rem, 8vw, 6rem);
  color: var(--bone);
  line-height: 1;
}
.monogram-panel .mauli-divider { width: 70px; }
.monogram-panel .monogram-role {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* --------------------------------------------------------------------------
   Digital Services page — answer box, plans, comparison, FAQ
   -------------------------------------------------------------------------- */

.answer-box {
  border: 1px solid rgba(246, 190, 90, 0.35);
  background: rgba(232, 163, 61, 0.07);
  border-radius: 14px;
  padding: 1.6rem 1.9rem;
  max-width: 52em;
  margin-top: 2.5rem;
}
.answer-box p { max-width: none; font-size: 1rem; }
.answer-box strong { color: var(--gold-bright); }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.2rem);
  margin-top: 3rem;
  align-items: stretch;
}
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }

.plan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 239, 230, 0.04);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--mauli);
}
.plan-card--featured {
  border-color: rgba(246, 190, 90, 0.5);
  background: rgba(232, 163, 61, 0.06);
}
.plan-card .plan-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.2em;
}
.plan-card .plan-tagline { color: var(--bone-dim); font-size: 0.95rem; min-height: 3em; }
.plan-card .plan-price {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  color: var(--gold-bright);
  margin: 1rem 0 0.2rem;
}
.plan-card .plan-price-note { font-size: 0.8rem; color: var(--bone-faint); margin-bottom: 1.4rem; }
.plan-card ul {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  font-size: 0.95rem;
  color: var(--bone-dim);
  flex: 1;
}
.plan-card li { padding: 0.4rem 0 0.4rem 1.6rem; position: relative; }
.plan-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-bright);
  font-weight: 700;
}
.plan-card .plan-outcome {
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  margin-bottom: 1.6rem;
  font-size: 0.9rem;
  color: var(--bone-dim);
}
.plan-card .plan-outcome strong { color: var(--bone); display: block; margin-bottom: 0.3rem; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.plan-card .btn { align-self: flex-start; }

.plan-note { font-size: var(--size-small); color: var(--bone-faint); margin-top: 1.6rem; max-width: 52em; }

/* Plan cards on the bone section */
.section--bone .plan-card { background: rgba(255, 255, 255, 0.55); border-color: var(--ink-line); }
.section--bone .plan-card--featured { background: rgba(232, 163, 61, 0.13); border-color: rgba(169, 106, 16, 0.4); }
.section--bone .plan-card .plan-tagline,
.section--bone .plan-card ul,
.section--bone .plan-card .plan-outcome { color: rgba(8, 23, 65, 0.72); }
.section--bone .plan-card .plan-price { color: var(--gold-deep); }
.section--bone .plan-card .plan-price-note { color: rgba(8, 23, 65, 0.5); }
.section--bone .plan-card li::before { color: var(--gold-deep); }
.section--bone .plan-card .plan-outcome { border-top-color: var(--ink-line); }
.section--bone .plan-card .plan-outcome strong { color: var(--navy-900); }
.section--bone .plan-note { color: rgba(8, 23, 65, 0.55); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 3rem; }
.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare-table th, .compare-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table thead th {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone-faint);
  border-bottom: 2px solid var(--line);
}
.compare-table thead th:first-child { width: 22%; }
.compare-table tbody th { font-weight: 600; color: var(--bone); }
.compare-table td { color: var(--bone-dim); }
.compare-table .col-us { background: rgba(232, 163, 61, 0.07); color: var(--bone); }
.compare-table thead .col-us { color: var(--gold-bright); }

.faq-list { margin-top: 3rem; max-width: 52em; }
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding: 1.4rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--gold-bright);
  font-family: var(--font-body);
  font-size: 1.3rem;
  flex: none;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-answer { padding: 0 0 1.6rem; color: var(--bone-dim); }
.faq-item .faq-answer p { max-width: 48em; }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  color: var(--bone-dim);
}
.section--bone .chip { border-color: var(--ink-line); color: rgba(8, 23, 65, 0.72); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-950);
  padding: calc(var(--space) * 0.9) 0 3rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--mauli);
  opacity: 0.85;
}

.footer-thread { display: flex; justify-content: center; margin-bottom: 3.5rem; }
.footer-thread svg { width: 130px; height: auto; }

.footer-line {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  max-width: none;
  margin-bottom: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  opacity: 0.9;
  margin-bottom: 1.1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a { text-decoration: none; color: var(--bone-dim); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--bone); }

.footer-about p { font-size: 0.95rem; color: var(--bone-dim); max-width: 24em; }
.footer-pronounce {
  font-size: var(--size-small);
  color: var(--bone-faint);
  margin-top: 1.2rem;
}
.footer-pronounce .say { color: var(--gold-bright); font-style: italic; }

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--bone-faint);
}

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.12s; }
.js .reveal-d2 { transition-delay: 0.24s; }
.js .reveal-d3 { transition-delay: 0.36s; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .draw-path { stroke-dashoffset: 0 !important; }
  .thread-progress { display: none; }
}
