/* ==========================================================================
   JS Business Advisory & Accounting: site styles
   Tokens first. Brand values are locked by the build brief, section 2.
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --paper: #F3F4F8;
  --indigo: #2B328B;
  --indigo-deep: #161A4A;
  --muted: #5A5F86;
  --rule: #C9CBDD;
  --yellow: #FFFF2B;

  --yellow-hover: color-mix(in oklab, var(--yellow), black 4%);
  --indigo-hover: color-mix(in oklab, var(--indigo), white 8%);

  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;

  /* modular scale, 1.25 from 17.5px */
  --t-1: 0.8rem;
  --t0: 1.094rem;
  --t1: 1.367rem;
  --t2: 1.709rem;
  --t3: 2.136rem;
  --t4: 2.67rem;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --stroke: 1.5px;
  --radius: 999px;

  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(96px, 11vw, 168px);
}

/* Fonts: self-hosted variable woff2 (Fontsource builds, OFL). */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--indigo-deep);
  font-family: var(--sans);
  font-size: var(--t0);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
}

::selection { background: var(--yellow); color: var(--indigo); }

h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p, li, blockquote { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: var(--indigo); text-decoration: none; }

.num, time, .tel { font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}
.on-indigo :focus-visible {
  outline-color: var(--yellow);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px; top: 12px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: var(--radius);
  background: var(--indigo);
  color: var(--white);
  font-weight: 600;
  translate: 0 -200%;
}
.skip:focus-visible { translate: 0 0; outline-color: var(--yellow); }

/* Link underline: draws left to right */
.link {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 250ms var(--ease);
  padding-bottom: 1px;
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.link--under { background-size: 100% 1px; }
.link--under:hover, .link--under:focus-visible {
  animation: redraw 250ms var(--ease);
}
@keyframes redraw { from { background-size: 0% 1px; } to { background-size: 100% 1px; } }

/* ---------- Buttons: the pill is the system ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.45em;
  border-radius: var(--radius);
  border: var(--stroke) solid var(--indigo);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 220ms var(--ease), transform 120ms var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--yellow { background: var(--yellow); color: var(--indigo); }
.btn--yellow:hover { background: var(--yellow-hover); }
.btn--indigo { background: var(--indigo); color: var(--yellow); }
.btn--indigo:hover { background: var(--indigo-hover); border-color: var(--indigo-hover); }

/* ==========================================================================
   Hero. Every size comes from --fs (the word's font size).
   ========================================================================== */

.hero {
  --fs: min(22vh, 15.5vw);
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--white);
  opacity: 0;
}

/* Nav */
.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: calc(var(--fs) * .14) calc(var(--fs) * .27) 0;
  font-size: max(13px, calc(var(--fs) * .072));
  font-weight: 450;
  color: var(--indigo-deep);
  line-height: 1.2;
}
.nav-group {
  display: flex;
  align-items: center;
  gap: 1.75em;
}
.nav-group a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.nav-group a.link { min-height: 0; padding-block: 12px; background-position: 0 calc(100% - 11px); }
.nav-mark {
  color: var(--indigo) !important;
  margin-right: .35em;
  padding: 4px;
  margin-left: -4px;
}
.nav-mark svg {
  height: calc(var(--fs) * .16);
  width: auto;
}

/* Stage + word */
.hero-stage {
  display: grid;
  place-items: center;
  padding-block: calc(var(--fs) * .04) calc(var(--fs) * .42);
}

.hero-word {
  display: flex;
  align-items: center;
  gap: .085em;
  font-size: var(--fs);
  font-weight: 880;
  line-height: .8;
  color: var(--indigo);
}
.hero-j, .hero-s {
  display: block;
  position: relative;
  letter-spacing: 0;
}
/* Optical centring on the pill: measured, the cap centre already sits on the pill's centre line. */
.hero-j, .hero-s { top: 0; }

.pill {
  position: relative;
  flex: none;
  width: 3.62em;
  height: 1.81em;
  border-radius: var(--radius);
  background: var(--indigo);
  clip-path: inset(0% 0% round 999px);
}
.pill-hair {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--indigo);
  opacity: 0;
  pointer-events: none;
}
.pill-line {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: calc(var(--fs) * .13);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.012em;
  white-space: nowrap;
}

/* Bottom bar */
.hero-bar {
  display: flex;
  align-items: flex-end;
  gap: calc(var(--fs) * .12);
  padding: 0 calc(var(--fs) * .27) calc(var(--fs) * .14);
}
.hero-lede {
  flex: none;
  width: calc(var(--fs) * 1.42);
  font-size: max(14px, calc(var(--fs) * .066));
  line-height: 1.45;
  color: var(--indigo-deep);
}
.hero-lede::first-letter {
  float: left;
  font-size: 2.35em;
  line-height: .86;
  font-weight: 650;
  color: var(--indigo);
  margin: .04em .025em 0 -.03em;
}
.hero-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
  margin-bottom: 23.5px;
  transform-origin: 50% 50%;
}
.hero-bar .btn { font-size: max(14px, calc(var(--fs) * .066)); }

/* Reveal start state. Added by the inline head script only when the reveal
   will play; hero.js takes over from exactly these values. */
.hero-intro .pill { clip-path: inset(50% 49.834% round 999px); }
.hero-intro .hero-j { translate: 1.804em 0; transform: translateX(.059em); }
.hero-intro .hero-s { translate: -1.804em 0; transform: translateX(-.059em); }
.hero-intro .pill-hair { opacity: 1; }
.hero-intro .pill-line { opacity: 0; }
.hero-intro .hero-bg { opacity: 1; }
.hero-intro .hero-nav { transform: translateY(-140%); }
.hero-intro .hero-bar { transform: translateY(160%); }
.hero-intro .hero-rule { transform: scaleX(0); }

/* Phone */
@media (max-width: 720px) {
  .hero { --fs: min(34vw, 16.5svh); }
  .hero-nav {
    padding: 14px 20px 0;
    font-size: 13px;
  }
  .hero-nav .nav-group { gap: 15px; }
  .nav-social { display: none; }
  .nav-mark { margin-right: 2px; }
  .nav-mark svg { height: 22px; }

  .hero-stage { padding-block: 12px 24px; }
  .hero-word { flex-direction: column; gap: .1em; }
  .hero-j, .hero-s { top: 0; }
  .pill {
    width: calc(100vw - 40px);
    height: auto;
    aspect-ratio: 1.85;
  }
  .pill-line { font-size: min(calc(var(--fs) * .13), calc((100vw - 40px) * .052)); }
  .pill-line { padding: 0 16px; }

  .hero-bar {
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 0 20px 20px;
  }
  .hero-lede { width: 100%; font-size: 15px; line-height: 1.5; }
  .hero-rule { margin-bottom: 0; }
  .hero-bar .btn { min-height: 44px; font-size: 15px; }

  .hero-intro .pill { clip-path: inset(calc(50% - .75px) 50% round 999px); }
  .hero-intro .hero-j { translate: 0 calc((100vw - 40px) / 3.7 - .75px); transform: translateY(.07em); }
  .hero-intro .hero-s { translate: 0 calc((100vw - 40px) / -3.7 + .75px); transform: translateY(-.07em); }
}

/* ==========================================================================
   Page sections
   ========================================================================== */

.wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.col-main { grid-column: 2 / span 10; }

.section {
  padding-block: var(--section);
  scroll-margin-top: 24px;
}
.section + .section { padding-top: 0; }

.h2 {
  font-size: clamp(var(--t3), 3vw, var(--t4));
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--indigo);
  font-weight: 600;
}

/* About / position */
.position {
  grid-column: 2 / span 9;
  max-width: 20ch;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.028em;
  color: var(--indigo);
}
.stats {
  grid-column: 2 / span 7;
  margin-top: clamp(28px, 3.4vw, 48px);
  max-width: 36ch;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.6;
  color: var(--muted);
}
.stats .num { color: var(--indigo); font-weight: 500; }

/* Services: index list */
.services-head { grid-column: 2 / span 10; margin-bottom: clamp(28px, 3.5vw, 48px); }
.services { grid-column: 2 / span 10; border-top: 1px solid var(--rule); }
.service { border-bottom: 1px solid var(--rule); position: relative; }
.service-btn {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
  align-items: baseline;
  column-gap: 24px;
  width: 100%;
  padding: clamp(22px, 2.4vw, 32px) 0;
  border: 0;
  background: none;
  text-align: left;
  color: var(--indigo-deep);
}
.service-name {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -.018em;
  font-weight: 600;
  color: var(--indigo);
}
.service-sum { color: var(--muted); max-width: 46ch; }
.service-btn:hover .service-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.service-btn:focus-visible { outline-offset: -2px; border-radius: 4px; }

/* the hero pill, tiny, at the open row's left edge */
.service::before {
  content: "";
  position: absolute;
  left: -38px;
  top: calc(clamp(22px, 2.4vw, 32px) + .55em);
  width: 22px;
  height: 11px;
  border-radius: var(--radius);
  background: var(--indigo);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 280ms var(--ease);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}
.service.is-open::before { transform: scaleX(1); }

.service-panel { overflow: hidden; }
.service-panel[hidden] { display: none; }
.service-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
  column-gap: 24px;
  padding-bottom: clamp(26px, 3vw, 40px);
}
.service-inner ul {
  grid-column: 2;
  columns: 2;
  column-gap: 32px;
}
.service-inner li {
  break-inside: avoid;
  padding: 0 0 10px;
  line-height: 1.45;
}
.service-ask {
  grid-column: 2;
  justify-self: start;
  margin-top: 18px;
  font-weight: 600;
}

/* Vision */
.vision-text { grid-column: 2 / span 6; align-self: center; }
.vision-line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.012em;
  color: var(--indigo);
  max-width: 14ch;
}
.vision-body { margin-top: clamp(24px, 3vw, 40px); max-width: 46ch; }
.portrait { grid-column: 9 / span 3; align-self: center; }
.portrait-frame {
  aspect-ratio: 1 / 1.75;
  border-radius: var(--radius);
  background: #E6E8F1;
  overflow: hidden;
}
/* The studio white multiplies into a cool paper tint, so the pill reads on --paper. */
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% 0%;
  mix-blend-mode: multiply;
}
.portrait figcaption { margin-top: 18px; color: var(--muted); font-size: .94rem; line-height: 1.45; }
.portrait figcaption strong { display: block; color: var(--indigo); font-weight: 600; font-size: var(--t0); }

/* Testimonials */
.quotes { grid-column: 2 / span 8; }
.quotes .h2 { margin-bottom: clamp(28px, 3.5vw, 48px); }
.quote-stage { display: grid; }
.quote {
  grid-area: 1 / 1;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  max-width: 34ch;
  color: var(--indigo-deep);
  transition: opacity 280ms var(--ease);
}
.quote[hidden] { display: block; visibility: hidden; opacity: 0; }
.quote-lead { font-size: 1em; }
.quote-rest {
  margin-top: 18px;
  max-width: 62ch;
  font-family: var(--sans);
  font-size: var(--t0);
  line-height: 1.6;
  color: var(--indigo-deep);
}
.quote-lead + .quote-rest { margin-top: 24px; }
.quote figcaption {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: var(--t0);
  color: var(--muted);
}
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(28px, 3vw, 40px); }
.quotes .all-posts { margin-top: 24px; }
.tab {
  min-height: 44px;
  padding: 0 1.15em;
  border-radius: var(--radius);
  border: var(--stroke) solid var(--indigo);
  background: transparent;
  color: var(--indigo);
  font-weight: 500;
  transition: background-color 220ms var(--ease), color 220ms var(--ease), transform 120ms var(--ease);
}
.tab:active { transform: scale(.98); }
.tab[aria-selected="true"] { background: var(--indigo); color: var(--white); }
.tab:not([aria-selected="true"]):hover { background: color-mix(in oklab, var(--indigo), transparent 92%); }

/* Insights */
.insights { grid-column: 2 / span 10; }
.insights .h2 { margin-bottom: clamp(28px, 3.5vw, 48px); }
.posts { border-top: 1px solid var(--rule); }
.post {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) 6rem;
  column-gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.post time, .post-read { color: var(--muted); font-size: .94rem; }
.post-read { text-align: right; }
.post-title { font-size: var(--t1); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.post-title a { color: var(--indigo); }
.post-title a:hover, .post-title a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.all-posts { display: inline-block; margin-top: 28px; font-weight: 600; }

/* Working with us */
.process { grid-column: 2 / span 10; }
.process .h2 { margin-bottom: clamp(28px, 3.5vw, 48px); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
  counter-reset: step;
}
.step {
  counter-increment: step;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  font-size: var(--t1);
  line-height: 1.3;
  letter-spacing: -.01em;
  font-weight: 500;
  color: var(--indigo-deep);
  max-width: 15ch;
}
.step::before {
  content: counter(step);
  display: block;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: var(--t2);
  line-height: 1;
  color: var(--indigo);
  font-variant-numeric: tabular-nums;
}

/* ---------- Contact band: the yellow moment ---------- */

.contact {
  background: var(--yellow);
  color: var(--indigo);
  padding-block: var(--section);
  scroll-margin-top: 0;
}
.contact ::selection { background: var(--indigo); color: var(--yellow); }
.contact-head { grid-column: 2 / span 10; margin-bottom: clamp(40px, 5vw, 72px); }
.contact-title {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 800;
}
.contact-sub { margin-top: 20px; font-size: var(--t1); line-height: 1.4; max-width: 34ch; }

.form { grid-column: 2 / span 7; }
.details { grid-column: 10 / span 3; font-size: var(--t0); line-height: 1.6; }
.details p + p { margin-top: 14px; }
.details > p { display: flex; align-items: center; min-height: 44px; margin: 0; }
.details > p + p { margin-top: 0; }
.details > p a { color: var(--indigo); font-weight: 500; display: inline-flex; align-items: center; min-height: 44px; background-position: 0 calc(100% - 9px); }
.details .prefer { margin-top: 16px; font-weight: 600; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.field { display: flex; flex-direction: column; margin-bottom: 30px; }
.field label, .legend {
  font-weight: 600;
  font-size: .94rem;
  margin-bottom: 6px;
}
.hint { font-weight: 400; color: var(--indigo); opacity: .85; }
.field input, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: var(--stroke) solid var(--indigo);
  border-radius: 0;
  background: transparent;
  color: var(--indigo);
  padding: 8px 0 10px;
  font-size: var(--t1);
  line-height: 1.3;
  appearance: none;
}
.field textarea { min-height: 7.5rem; resize: vertical; font-size: var(--t0); line-height: 1.5; }
.field input::placeholder { color: color-mix(in oklab, var(--indigo), var(--yellow) 45%); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-width: 3px; padding-bottom: 8.5px; }
.err {
  min-height: 0;
  margin-top: 8px;
  font-size: .94rem;
  font-weight: 600;
  color: var(--indigo-deep);
}
.err:empty { display: none; }

fieldset.field { border: 0; padding: 0; min-width: 0; }
.legend { padding: 0; margin-bottom: 14px; }
.toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.toggle { position: relative; }
.toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.toggle span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.1em;
  border-radius: var(--radius);
  border: var(--stroke) solid var(--indigo);
  color: var(--indigo);
  font-weight: 500;
  transition: background-color 220ms var(--ease), color 220ms var(--ease), transform 120ms var(--ease);
  pointer-events: none;
}
.toggle input:checked + span { background: var(--indigo); color: var(--yellow); }
.toggle input:active + span { transform: scale(.98); }
.toggle input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: 3px; }
.toggle input:hover:not(:checked) + span { background: color-mix(in oklab, var(--indigo), transparent 90%); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 6px; }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.btn[disabled] { opacity: .6; cursor: progress; }

.success { grid-column: 2 / span 7; }
.success h3 { font-size: clamp(var(--t2), 3vw, var(--t4)); line-height: 1.12; letter-spacing: -.02em; max-width: 22ch; }
.success:focus { outline: none; }

/* ---------- Footer: the indigo moment ---------- */

.footer {
  background: var(--indigo);
  color: var(--white);
  padding-block: clamp(72px, 8vw, 120px) 40px;
}
.footer a { color: var(--white); transition: color 220ms var(--ease); }
.footer a:hover, .footer a:focus-visible { color: var(--yellow); }
.footer-top {
  grid-column: 2 / span 10;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 2fr);
  column-gap: 24px;
  row-gap: 40px;
  padding-bottom: clamp(48px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.footer-brand svg { height: 56px; width: auto; color: var(--white); }
.footer-brand p { margin-top: 20px; font-size: var(--t1); line-height: 1.3; font-weight: 600; max-width: 16ch; letter-spacing: -.01em; }
.footer-col h2 { font-size: .94rem; font-weight: 600; margin-bottom: 14px; color: rgba(255, 255, 255, .72); }
.footer-col li { min-height: 36px; display: flex; align-items: center; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; margin-block: -4px; }
.tpb {
  grid-column: 2 / span 10;
  padding-top: 40px;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .72);
  text-wrap: pretty;
}
.tpb ol { list-style: none; counter-reset: tpb; padding: 0; margin-top: 12px; }
.tpb li { counter-increment: tpb; position: relative; padding-left: 2em; }
.tpb li::before {
  content: counter(tpb) ".";
  position: absolute;
  left: 0;
  letter-spacing: 0;
  word-spacing: 0;
}
.tpb li + li { margin-top: 6px; }
.tpb a { color: inherit; text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.footer-bottom {
  grid-column: 2 / span 10;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
}

/* ---------- Simple pages (privacy, 404) ---------- */

.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--gutter);
  max-width: 1320px;
  margin-inline: auto;
}
.page-nav svg { height: 34px; width: auto; color: var(--indigo); }
.page-main { padding-block: clamp(64px, 9vw, 140px) var(--section); }
.page-main .col-main > * + * { margin-top: 24px; }
.page-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -.035em;
  font-weight: 800;
  color: var(--indigo);
}
.page-main .col-main > p { max-width: 62ch; font-size: var(--t1); line-height: 1.5; }

/* ---------- Tablet and phone ---------- */

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .details { grid-column: 2 / span 10; margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .details p + p { margin-top: 0; }
  .details .prefer { margin-top: 0; }
  .form, .success { grid-column: 2 / span 10; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

@media (max-width: 720px) {
  .wrap { column-gap: 0; }
  .col-main, .position, .stats, .services-head, .services, .vision-text, .quotes,
  .insights, .process, .contact-head, .form, .success, .details, .footer-top,
  .tpb, .footer-bottom { grid-column: 1 / -1; }
  .portrait { grid-column: 1 / -1; width: min(62%, 260px); margin-top: 56px; }

  .service-btn { grid-template-columns: 1fr; row-gap: 6px; }
  .service-inner { grid-template-columns: 1fr; }
  .service-inner ul { grid-column: 1; columns: 1; }
  .service-ask { grid-column: 1; }
  .service::before { left: auto; right: 0; top: calc(clamp(22px, 2.4vw, 32px) + 12px); }

  .post { grid-template-columns: 1fr auto; row-gap: 6px; }
  .post-title { grid-column: 1 / -1; grid-row: 2; }
  .post-read { grid-row: 1; grid-column: 2; }

  .steps { grid-template-columns: 1fr; row-gap: 28px; }
  .step { max-width: none; }

  .field-row { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; row-gap: 14px; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-col--contact { grid-column: 1 / -1; }
}

/* Reduced motion: no transitions anywhere (the hero already renders its final state). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Discovery meeting page (Cal.com) ---------- */
.book-call { font-weight: 500; color: var(--indigo-deep); }
.book.page-main { padding-top: clamp(40px, 6vw, 96px); }
.book-intro { grid-column: 2 / span 10; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); column-gap: 24px; align-items: end; }
.book-intro .page-title { grid-column: 1; grid-row: 1 / span 2; }
.book-intro p { grid-column: 2; font-size: var(--t1); line-height: 1.45; max-width: 30ch; margin-top: 24px; }
.book-intro .book-alt { font-size: var(--t0); line-height: 1.6; color: var(--muted); max-width: 34ch; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); }
.book-intro .book-alt a { color: var(--indigo); }
.book-cal {
  grid-column: 2 / span 10;
  margin-top: clamp(40px, 5vw, 72px);
  min-height: 480px;
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--rule);
  overflow: hidden;
}
.book-cal.is-live { min-height: 640px; }
.book-fallback { display: grid; align-content: center; gap: 14px; height: 100%; min-height: inherit; padding: clamp(28px, 4vw, 56px); }
.book-fallback p { font-size: var(--t1); line-height: 1.45; max-width: 30ch; color: var(--indigo-deep); }
.book-fallback p:first-child { font-weight: 600; color: var(--indigo); }
@media (max-width: 1024px) {
  .book-intro { grid-template-columns: 1fr; }
  .book-intro .page-title, .book-intro p { grid-column: 1; grid-row: auto; }
}
@media (max-width: 720px) {
  .book-intro, .book-cal { grid-column: 1 / -1; }
  .book-cal { border-radius: 22px; }
}
.book-cal.is-live { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.tel { white-space: nowrap; }

/* Outline pill (WhatsApp) and contact actions */
.btn--outline { background: transparent; color: var(--indigo); }
.btn--outline:hover { background: color-mix(in oklab, var(--indigo), transparent 90%); }
.details-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.details-actions .btn { font-size: .94rem; min-height: 44px; padding: 0 1.2em; }

/* Inner-page nav, matching the home nav */
.page-nav .nav-group { font-size: 15px; font-weight: 450; color: var(--indigo-deep); }
.page-nav .nav-mark svg { height: 34px; }
@media (max-width: 720px) {
  .page-nav { padding: 14px 20px; }
  .page-nav .nav-group { gap: 15px; font-size: 13px; }
  .page-nav .nav-mark svg { height: 22px; }
}
.details-actions .btn--yellow { font-weight: 650; }
.details-actions .btn--yellow:hover { background: color-mix(in oklab, var(--indigo), var(--yellow) 88%); }

/* ---------- Insights index and articles ---------- */
.insights-page .page-title { margin-bottom: clamp(32px, 4vw, 56px); }
.posts--full .post { grid-template-columns: 9.5rem minmax(0, 1fr) 6rem; padding: 28px 0; }
.post-main { min-width: 0; }
.post-excerpt { margin-top: 8px; color: var(--muted); max-width: 62ch; }

.article-page { padding-top: clamp(48px, 7vw, 112px); }
.article-head, .article-body, .article-cta { grid-column: 3 / span 7; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--muted); font-size: .94rem; }
.article-meta a { color: var(--indigo); font-weight: 600; }
.article-title {
  margin-top: 20px;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 750;
  color: var(--indigo);
}
.article-by { margin-top: 18px; color: var(--muted); }
.article-body {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--rule);
  max-width: 68ch;
  font-size: 1.06rem;
  line-height: 1.7;
}
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { margin-top: 2.2em; font-size: var(--t2); line-height: 1.2; letter-spacing: -.015em; color: var(--indigo); }
.article-body h3 { margin-top: 1.9em; font-size: var(--t1); line-height: 1.25; letter-spacing: -.01em; color: var(--indigo); }
.article-body h4 { margin-top: 1.6em; font-size: var(--t0); line-height: 1.3; color: var(--indigo); }
.article-body > :first-child { margin-top: 0; }
.article-body h2 + *, .article-body h3 + *, .article-body h4 + * { margin-top: .6em; }
.article-body strong { font-weight: 650; color: var(--indigo-deep); }
.article-body ul, .article-body ol { padding-left: 0; }
.article-body li { position: relative; padding-left: 26px; }
.article-body li + li { margin-top: .7em; }
.article-body ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 13px;
  height: 6.5px;
  border-radius: var(--radius);
  background: var(--indigo);
}
.article-body ol { counter-reset: li; }
.article-body ol > li { counter-increment: li; }
.article-body ol > li::before { content: counter(li) "."; position: absolute; left: 0; color: var(--indigo); font-weight: 600; font-variant-numeric: tabular-nums; }
.article-body li > strong { display: block; }
.article-body li p + p, .article-body li strong + p { margin-top: .25em; }
.article-label { margin-top: 2em !important; }
.article-table { overflow-x: auto; }
.article-table table { border-collapse: collapse; width: 100%; max-width: 520px; font-variant-numeric: tabular-nums; }
.article-table th, .article-table td { text-align: left; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--rule); }
.article-table th { font-weight: 600; color: var(--indigo); border-bottom-color: var(--indigo); }

.article-cta {
  margin-top: clamp(56px, 7vw, 88px);
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  background: var(--yellow);
  color: var(--indigo);
}
.article-cta h2 { font-size: var(--t2); font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.article-cta p { margin-top: 10px; font-size: var(--t1); line-height: 1.4; }
.article-cta .details-actions { margin-top: 24px; }
.article-cta :focus-visible { outline-color: var(--indigo); }
.article-more { padding-top: var(--section); }
.article-more .h2 { margin-bottom: clamp(24px, 3vw, 40px); }

@media (max-width: 1024px) {
  .article-head, .article-body, .article-cta { grid-column: 2 / span 10; }
}
@media (max-width: 720px) {
  .article-head, .article-body, .article-cta { grid-column: 1 / -1; }
  .posts--full .post { grid-template-columns: 1fr auto; }
  .post-main { grid-column: 1 / -1; grid-row: 2; }
  .article-cta { border-radius: 22px; }
}
