/* ------------------------------------------------------------------
   KloudDevs — tokens
------------------------------------------------------------------- */
:root {
  --chalk: #f7f8f6;
  --mist: #e4ecec;
  --mist-deep: #cfdddd;
  --petrol: #0e2f36;
  --petrol-2: #17454d;
  --verdigris: #23666a;
  --amber: #f0b429;
  --amber-soft: #fdf0d2;
  --moss: #2e7d4f;
  --moss-soft: #e1f0e6;
  --muted: #5b6b6e;
  --on-petrol-muted: rgba(247, 248, 246, .66);

  --font: "Schibsted Grotesk", system-ui, sans-serif;
  --measure: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
  --label-col: minmax(0, 3fr);
  --content-col: minmax(0, 9fr);
}

/* ------------------------------------------------------------------
   Base
------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--petrol);
  font: 400 1.0625rem/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, dl, dd, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.028em; line-height: 1.04; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); max-width: 22ch; }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; line-height: 1.2; }
.sub { color: var(--muted); font-size: 1.125rem; margin-top: 1rem; max-width: 52ch; }
.muted { color: var(--muted); }

.wrap { width: min(var(--measure), 100% - 2 * var(--gutter)); margin-inline: auto; }
.spec { display: grid; grid-template-columns: var(--label-col) var(--content-col); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.spec-label { color: var(--muted); font-weight: 500; padding-top: .35rem; }
@media (max-width: 800px) { .spec { grid-template-columns: 1fr; gap: 1rem; } .spec-label { padding-top: 0; } }

:focus-visible { outline: 2px solid var(--verdigris); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--petrol); color: #fff; padding: .6rem 1rem; border-radius: 4px; z-index: 100; }
.skip:focus { top: 1rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 1rem/1 var(--font);
  padding: .95rem 1.4rem;
  border-radius: 6px;
  border: 1px solid var(--petrol);
  background: var(--petrol); color: #fff;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--petrol-2); border-color: var(--petrol-2); }
.btn-sm { padding: .65rem 1rem; font-size: .95rem; }
.link { color: var(--verdigris); font-weight: 500; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.link:hover { color: var(--petrol); }

/* ------------------------------------------------------------------
   Nav
------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247, 248, 246, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--mist-deep); }
.nav-row { display: flex; align-items: center; gap: 2rem; height: 4.25rem; }
.brand img { height: 24px; width: auto; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav-links a:hover { color: var(--verdigris); }
.nav-cta-mobile { display: none; }
.menu-btn { display: none; }
@media (max-width: 1040px) {
  .nav-cta { display: none; }
  .menu-btn { display: grid; gap: 6px; margin-left: auto; width: 44px; height: 44px; place-content: center; background: none; border: 0; cursor: pointer; padding: 0; }
  .menu-btn span { display: block; width: 22px; height: 2px; background: var(--petrol); transition: transform .2s ease; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 4.25rem; flex-direction: column; gap: 0; margin: 0; background: var(--chalk); border-bottom: 1px solid var(--mist-deep); padding: .25rem var(--gutter) 1.25rem; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: .9rem 0; border-bottom: 1px solid var(--mist); font-size: 1.1rem; }
  .nav-cta-mobile { display: inline-flex; margin-top: 1rem; border-bottom: 0 !important; justify-content: center; color: #fff; }
}

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------- */
.hero { padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 { max-width: 13ch; }
.lead { font-size: 1.2rem; line-height: 1.5; max-width: 46ch; margin-top: 1.5rem; color: #223f45; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2rem; }

.eyebrow { font-weight: 700; font-size: .9rem; letter-spacing: .02em; color: var(--verdigris); margin-bottom: 1rem; }
.hero h1 { max-width: 14ch; font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.03em; }
.hero h1 .hl { display: inline; color: var(--petrol); background: linear-gradient(transparent 62%, var(--amber) 62%, var(--amber) 92%, transparent 92%); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .lead { font-size: 1.15rem; max-width: 36ch; margin-top: 1.25rem; }
.btn-lg { padding: 1.1rem 1.8rem; font-size: 1.1rem; font-weight: 700; }
.hero .muted { color: var(--muted); font-size: .95rem; }
.hero-alt { margin-top: 1rem; font-size: .95rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--mist-deep); }
.hero-stats > div { display: grid; gap: .2rem; }
.hero-stats dt { font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -0.02em; line-height: 1; color: var(--petrol); font-variant-numeric: tabular-nums; }
.hero-stats dd { color: var(--muted); font-size: .9rem; max-width: 18ch; line-height: 1.35; }
.hero-built { margin-top: 2rem; display: grid; gap: .9rem; padding: 1.1rem 1.4rem 1.3rem; background: #fff; border: 1px solid var(--mist-deep); border-radius: 10px; box-shadow: 0 1px 0 rgba(14, 47, 54, .04), 0 10px 24px -14px rgba(14, 47, 54, .25); color: var(--muted); font-size: .8rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.hero-built ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.25rem; }
.hero-built img { display: block; height: 24px; width: auto; }
@media (max-width: 560px) { .hero-built img { height: 20px; } .hero-built ul { gap: .9rem 1.5rem; } }

/* The run */
.run { background: #fff; border: 1px solid var(--mist-deep); border-radius: 10px; padding: 1.25rem 1.25rem 1rem; font-size: .95rem; }
.run-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 1px solid var(--mist); }
.run-name { font-weight: 700; }
.run-state { color: var(--muted); font-size: .85rem; }
.run-steps { list-style: none; position: relative; padding-top: .5rem; }
.run-steps::before { content: ""; position: absolute; left: 7px; top: 1rem; bottom: 1.2rem; width: 2px; background: var(--mist-deep); }
.run-steps li { position: relative; display: grid; grid-template-columns: 1rem 1fr auto; gap: .9rem; padding: .6rem 0; align-items: start; }
.run-steps li div { display: grid; gap: .1rem; }
.run-steps strong { font-weight: 700; }
.run-steps li div > span { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.run-steps time { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; padding-top: .2rem; }
.pip { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; margin-top: .2rem; background: var(--chalk); border: 2px solid var(--mist-deep); }
.done .pip { background: var(--petrol); border-color: var(--petrol); }
.done .pip::after { content: ""; position: absolute; left: 4px; top: 1px; width: 3px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gate { background: var(--amber-soft); margin: .25rem -.75rem; padding: .85rem .75rem !important; border-radius: 8px; }
.gate .pip { background: var(--amber); border-color: var(--amber); animation: breathe 3s ease-in-out infinite; }
.gate strong { color: var(--petrol); }
.gate .btn { justify-self: start; margin-top: .6rem; }
.next strong, .next span { opacity: .55; }
.run.is-approved .gate { background: var(--moss-soft); }
.run.is-approved .gate .pip { background: var(--moss); border-color: var(--moss); animation: none; }
.run.is-approved .gate .pip::after { content: ""; position: absolute; left: 4px; top: 1px; width: 3px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.run.is-approved .gate .btn { display: none; }
.run.is-approved .next strong, .run.is-approved .next span { opacity: 1; }
.run.is-approved .next .pip { background: var(--petrol); border-color: var(--petrol); }
.run.is-approved .next .pip::after { content: ""; position: absolute; left: 4px; top: 1px; width: 3px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.run .pip, .run .gate { transition: background-color .3s ease, border-color .3s ease; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 180, 41, .45); } 50% { box-shadow: 0 0 0 6px rgba(240, 180, 41, 0); } }
@media (prefers-reduced-motion: reduce) { .gate .pip { animation: none; } .run .pip, .run .gate { transition: none; } }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .run { max-width: 34rem; } }

/* ------------------------------------------------------------------
   Clients
------------------------------------------------------------------- */
.clients { padding: 1rem 0 var(--section); }
.client-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--petrol-2); padding-top: .35rem; }

/* ------------------------------------------------------------------
   Point of view
------------------------------------------------------------------- */
.pov { padding-bottom: var(--section); }
.pov h2 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 20ch; }
.pov-text { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; font-size: 1.1rem; line-height: 1.6; color: #223f45; }
@media (max-width: 720px) { .pov-text { grid-template-columns: 1fr; gap: 1.25rem; } }

/* ------------------------------------------------------------------
   Services
------------------------------------------------------------------- */
.services { padding: var(--section) 0; background: var(--mist); }
.svc-list { margin-top: 2.5rem; border-top: 1px solid var(--mist-deep); }
.svc { border-bottom: 1px solid var(--mist-deep); }
.svc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 2.25rem; gap: .25rem 1rem; padding: 1.4rem 0; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary h3 { grid-column: 1; font-size: clamp(1.25rem, 2vw, 1.5rem); }
.svc summary p { grid-column: 1; color: var(--muted); max-width: 56ch; }
.svc summary:hover h3 { color: var(--verdigris); }
.toggle { grid-column: 2; grid-row: 1 / span 2; justify-self: end; position: relative; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--petrol); transition: background-color .15s ease; }
.toggle::before, .toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--petrol); transform: translate(-50%, -50%); transition: transform .2s ease, background-color .15s ease; }
.toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc[open] .toggle, .svc summary:hover .toggle { background: var(--petrol); }
.svc[open] .toggle::before, .svc[open] .toggle::after, .svc summary:hover .toggle::before, .svc summary:hover .toggle::after { background: #fff; }
.svc[open] .toggle::after { transform: translate(-50%, -50%) rotate(0deg); }
.svc-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; padding: 0 0 1.75rem; }
.svc-body > p { color: #223f45; max-width: 52ch; }
.svc-first { grid-column: 2; grid-row: 1 / span 2; background: #fff; border-left: 3px solid var(--verdigris); padding: 1rem 1.1rem; font-size: .95rem; line-height: 1.5; align-self: start; }
.svc-first dt { font-weight: 700; margin-bottom: .3rem; }
.svc-first dd { color: #223f45; }
.svc-body ul { grid-column: 1; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-body li { background: #fff; border: 1px solid var(--mist-deep); border-radius: 4px; padding: .4rem .75rem; font-size: .9rem; }
@media (max-width: 720px) { .svc-body { grid-template-columns: 1fr; } .svc-first { grid-column: 1; grid-row: auto; } }
@media (prefers-reduced-motion: reduce) { .toggle, .toggle::before, .toggle::after { transition: none; } }

/* ------------------------------------------------------------------
   Process: Gantt drawn to scale (18-week track, gridline every 2 weeks)
------------------------------------------------------------------- */
.process { padding: var(--section) 0; }
.plan { margin-top: 2.5rem; }
.plan-axis { position: relative; height: 1.4rem; margin-left: calc(18rem + 2rem); }
.plan-axis span { position: absolute; left: calc(100% * var(--at) / 18); top: 0; transform: translateX(-50%); color: var(--muted); font-size: .8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-axis span:first-child { transform: none; }
.plan-axis span:last-child { transform: translateX(-100%); }
.plan-rows { list-style: none; margin-top: 1.6rem; border-top: 1px solid var(--mist-deep); }
.plan-rows li { display: grid; grid-template-columns: 18rem 1fr; gap: 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--mist-deep); align-items: start; }
.plan-label h3 { font-size: 1.35rem; }
.dur { color: var(--muted); font-size: .95rem; margin: .2rem 0 .7rem; }
.plan-label p:last-child { color: #223f45; font-size: .98rem; line-height: 1.5; max-width: 40ch; }
.track { position: relative; height: 2.25rem; margin-top: .3rem; background: repeating-linear-gradient(90deg, var(--mist-deep) 0 1px, transparent 1px calc(100% / 9)); }
.bar { position: absolute; top: .45rem; height: 1.35rem; left: calc(100% * var(--x) / 18); width: calc(100% * var(--w) / 18); background: var(--petrol); border-radius: 3px; }
.bar-open { background: linear-gradient(90deg, var(--petrol) 30%, rgba(14, 47, 54, 0)); border-radius: 3px 0 0 3px; }
@media (max-width: 760px) {
  .plan-axis { display: none; }
  .plan-rows li { grid-template-columns: 1fr; gap: .75rem; }
  .track { height: 1.6rem; }
  .bar { top: .2rem; height: 1.2rem; }
}

/* ------------------------------------------------------------------
   Model (petrol)
------------------------------------------------------------------- */
.model { background: var(--petrol); color: var(--chalk); padding: var(--section) 0; }
.model .spec-label, .model .sub { color: var(--on-petrol-muted); }
.commit { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; margin-top: 2.5rem; border-top: 1px solid rgba(247, 248, 246, .18); }
.commit > div { padding: 1.4rem 0; border-bottom: 1px solid rgba(247, 248, 246, .18); }
.commit dt { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.25; }
.commit dd { margin-top: .5rem; color: var(--on-petrol-muted); line-height: 1.55; max-width: 44ch; }
@media (max-width: 720px) { .commit { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Team
------------------------------------------------------------------- */
.team { padding: var(--section) 0; }
.team-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem clamp(2rem, 5vw, 4rem); margin-top: 2.5rem; align-items: start; }
.bio p { color: #223f45; font-size: 1.1rem; line-height: 1.6; max-width: 54ch; }
.bio p + p { margin-top: 1rem; }
.creds { display: grid; gap: 0; border-top: 1px solid var(--mist-deep); }
.creds > div { padding: 1.1rem 0; border-bottom: 1px solid var(--mist-deep); }
.creds dt { font-weight: 800; font-size: 2rem; letter-spacing: -0.02em; line-height: 1; }
.creds dd { margin-top: .35rem; color: var(--muted); font-size: .95rem; line-height: 1.45; max-width: 30ch; }
@media (max-width: 720px) { .team-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Testimonials
------------------------------------------------------------------- */
.testimonials { padding: var(--section) 0; background: var(--mist); }
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tcard { background: #fff; border: 1px solid var(--mist-deep); border-radius: 10px; padding: 1.5rem 1.5rem 1.4rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem; }
.tcard blockquote p { font-size: 1.05rem; line-height: 1.55; color: #223f45; }
.tcard blockquote p::before { content: "\201C"; color: var(--amber); font-weight: 800; margin-right: .1em; }
.tcard figcaption { font-weight: 700; font-size: .95rem; color: var(--petrol); }
@media (max-width: 960px) { .quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .quote-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Work
------------------------------------------------------------------- */
.work { padding: var(--section) 0; }
.case { padding: 1.75rem 0; border-top: 1px solid var(--mist-deep); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .5rem 3rem; }
.case:last-of-type { border-bottom: 1px solid var(--mist-deep); }
.case-meta { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; }
.case h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.case > p:not(.case-meta) { color: #223f45; line-height: 1.6; }
.case .link { grid-column: 2; justify-self: start; margin-top: .25rem; }
@media (max-width: 720px) { .case { grid-template-columns: 1fr; } .case .link { grid-column: 1; } }
.case-stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: .75rem; padding-top: 1rem; border-top: 1px solid var(--mist); }
.case-stats > div { display: grid; gap: .15rem; }
.case-stats dt { font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 1; color: var(--petrol); }
.case-stats dd { color: var(--muted); font-size: .9rem; }
.case-stats-lg { margin: 1rem 0 1.5rem; padding: 1.25rem 1.5rem; border: 0; background: var(--mist); border-radius: 10px; gap: 1rem 3rem; }
.case-stats-lg dt { font-size: 2rem; }
.case-stats-lg dd { font-size: .95rem; color: #223f45; max-width: 24ch; }
.cs-list .case-stats { margin-top: 1rem; }
.method { margin-top: 2rem; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--mist-deep); padding-top: 1rem; }
.method a { text-decoration: none; color: var(--verdigris); }
.quote { margin-top: 3.5rem; max-width: 44rem; }
.quote blockquote p { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 500; line-height: 1.35; letter-spacing: -0.015em; }
.quote figcaption { margin-top: 1rem; color: var(--muted); }

/* ------------------------------------------------------------------
   FAQ
------------------------------------------------------------------- */
.faq { padding: var(--section) 0; background: var(--mist); }
.faq-list { border-top: 1px solid var(--mist-deep); }
.faq-list details { border-bottom: 1px solid var(--mist-deep); }
.faq-list summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--verdigris); }
.faq-list summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 0 1.4rem; color: #223f45; max-width: 60ch; line-height: 1.6; }

/* ------------------------------------------------------------------
   Contact
------------------------------------------------------------------- */
.contact { padding: var(--section) 0; }
.contact .spec { grid-template-columns: 1fr; }
.contact-copy h2 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
.contact-copy p { font-size: 1.1rem; line-height: 1.6; margin-top: 1.25rem; max-width: 36ch; color: #223f45; }
.contact-copy .muted { color: var(--muted); font-size: 1rem; }
.contact-copy .muted a { color: var(--verdigris); }
.form { background: #fff; border: 1px solid var(--mist-deep); border-radius: 10px; padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-size: .95rem; font-weight: 500; }
.form input, .form textarea { font: inherit; font-weight: 400; color: var(--petrol); padding: .8rem .95rem; border: 1px solid var(--mist-deep); border-radius: 6px; background: var(--chalk); width: 100%; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--verdigris); box-shadow: 0 0 0 3px rgba(35, 102, 106, .15); background: #fff; }
.form ::placeholder { color: #8a9799; }
.form .btn { justify-self: start; margin-top: .25rem; }
@media (max-width: 800px) { .contact .spec { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .form-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--mist-deep); padding: 2rem 0 2.5rem; }
.footer-row { display: flex; align-items: center; gap: 1.5rem 2.5rem; flex-wrap: wrap; color: var(--muted); font-size: .95rem; }
.footer-row img { height: 20px; width: auto; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-row nav a { text-decoration: none; color: var(--petrol); }
.footer-row nav a:hover { color: var(--verdigris); }
.footer-row p { margin-left: auto; }

/* ------------------------------------------------------------------
   Inner pages (case studies)
------------------------------------------------------------------- */
.page { padding: clamp(3rem, 6vw, 5rem) 0 var(--section); }
.page-title { font-size: clamp(2.4rem, 5vw, 4rem); }
.nav-links a[aria-current="page"] { color: var(--verdigris); }
.crumb { color: var(--muted); text-decoration: none; font-weight: 500; }
.crumb:hover { color: var(--verdigris); text-decoration: underline; text-underline-offset: .2em; }
.cs-meta { color: var(--muted); font-size: .95rem; }
.cs-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); max-width: 20ch; margin-top: .5rem; }
.cs-intro { font-size: 1.2rem; line-height: 1.5; margin-top: 1.25rem; max-width: 54ch; color: #223f45; }
.cs-cover { margin: 3rem 0; background: var(--mist); border-radius: 10px; padding: clamp(1rem, 4vw, 3rem); }
.cs-cover img { margin: 0 auto; border-radius: 6px; box-shadow: 0 20px 50px -30px rgba(14, 47, 54, .45); }
.facts dl { display: grid; gap: 1.1rem; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { font-weight: 500; margin-top: .15rem; line-height: 1.45; }
.prose { max-width: 62ch; font-size: 1.1rem; line-height: 1.65; color: #223f45; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--petrol); margin-top: 2.75rem; max-width: 30ch; }
.prose h2:first-child { margin-top: 0; }
.prose h2 + p { margin-top: .9rem; }
.prose p + p, .prose p + ul, .prose p + ol { margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose ul + p, .prose ol + p { margin-top: 1rem; }
.prose li + li { margin-top: .35rem; }
.prose figure, .prose .fig-row { margin: 2.25rem 0; }
.prose figure img { border-radius: 8px; border: 1px solid var(--mist-deep); }
.fig-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fig-row figure { margin: 0; }
.pull { margin: 2rem 0; padding-left: 1.25rem; border-left: 3px solid var(--amber); }
.pull p { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; color: var(--petrol); }
.cs-cta { margin-top: 3.5rem; padding: 1.75rem 2rem; background: var(--mist); border-radius: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.cs-cta-title { font-weight: 700; font-size: 1.2rem; color: var(--petrol); letter-spacing: -0.015em; }
.cs-cta p + p { margin-top: .3rem; font-size: 1rem; max-width: 40ch; }
.cs-list { margin-top: 2.5rem; border-top: 1px solid var(--mist-deep); }
.cs-list article { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem 2.5rem; padding: 2rem 0; border-bottom: 1px solid var(--mist-deep); align-items: center; }
.cs-thumb { display: block; background: var(--mist); border-radius: 8px; padding: 1.25rem; }
.cs-thumb img { border-radius: 4px; }
.cs-list h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: .4rem; }
.cs-list h2 a { text-decoration: none; }
.cs-list h2 a:hover { color: var(--verdigris); }
.cs-list h2 + p { margin-top: .8rem; color: #223f45; line-height: 1.6; }
.cs-list .link { display: inline-block; margin-top: 1rem; }
@media (max-width: 720px) {
  .fig-row { grid-template-columns: 1fr; }
  .cs-list article { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .facts { padding-bottom: 1.5rem; border-bottom: 1px solid var(--mist-deep); margin-bottom: 1rem; }
}

/* Thanks page */
.thanks { min-height: 72vh; display: grid; place-content: center; justify-items: start; gap: 1.25rem; padding: 4rem 0; }
.thanks h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }

/* ------------------------------------------------------------------
   Insights
------------------------------------------------------------------- */
.post-list { margin-top: 2.5rem; border-top: 1px solid var(--mist-deep); }
.post-list article { padding: 1.75rem 0; border-bottom: 1px solid var(--mist-deep); display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: .5rem 2.5rem; }
.post-list .cs-meta { white-space: nowrap; }
.post-list .cs-meta { padding-top: .35rem; }
.post-list h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); max-width: 28ch; }
.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { color: var(--verdigris); }
.post-list p:not(.cs-meta) { color: #223f45; line-height: 1.6; max-width: 60ch; margin-top: .6rem; }
.post-list .link { display: inline-block; margin-top: .8rem; }
@media (max-width: 720px) { .post-list article { grid-template-columns: 1fr; gap: .25rem; } }
.prose h3 { font-size: 1.2rem; color: var(--petrol); margin-top: 1.75rem; }
.prose h3 + p { margin-top: .5rem; }
.prose .callout { margin: 1.75rem 0; padding: 1.1rem 1.3rem; background: var(--mist); border-radius: 8px; font-size: 1rem; line-height: 1.55; }
.prose .callout strong { color: var(--petrol); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .98rem; }
.prose th, .prose td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--mist-deep); vertical-align: top; }
.prose th { color: var(--petrol); font-weight: 700; }
.post-foot { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--mist-deep); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .95rem; color: var(--muted); }
.post-foot a { color: var(--verdigris); }

/* ------------------------------------------------------------------
   Local page
------------------------------------------------------------------- */
.local-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.local-grid > div { background: #fff; border: 1px solid var(--mist-deep); border-radius: 10px; padding: 1.4rem 1.4rem 1.3rem; }
.local-grid h3 { font-size: 1.15rem; }
.local-grid p { margin-top: .6rem; color: #223f45; font-size: .98rem; line-height: 1.55; }
@media (max-width: 900px) { .local-grid { grid-template-columns: 1fr; } }
.page-section { margin-top: clamp(3rem, 6vw, 4.5rem); }
.page-section h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.page-section .faq-list { margin-top: 1.5rem; }
.page-section .sub { max-width: 60ch; }
.commit-light { border-top-color: var(--mist-deep); }
.commit-light > div { border-bottom-color: var(--mist-deep); }
.commit-light dt { color: var(--petrol); }
.commit-light dd { color: #223f45; }
.steps { margin-top: 1.25rem; padding-left: 1.3rem; max-width: 62ch; }
.after-steps { margin-top: 1rem; }
.cs-cta-page { margin-top: clamp(3rem, 6vw, 4.5rem); }
.post-body { margin-top: 2.5rem; }
.prose sup a { text-decoration: none; color: var(--verdigris); font-weight: 700; }

/* ------------------------------------------------------------------
   Assessment
------------------------------------------------------------------- */
.page-assess { padding-top: clamp(2.5rem, 5vw, 4rem); }
.assess { max-width: 46rem; margin-inline: auto; }
.assess-intro .page-title { max-width: 16ch; }
.assess-points { list-style: none; display: grid; gap: .5rem; margin: 1.75rem 0 .5rem; color: #223f45; }
.assess-points li { padding-left: 1.4rem; position: relative; }
.assess-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--amber); }
.btn-ghost { background: transparent; color: var(--petrol); }
.btn-ghost:hover { background: var(--mist); border-color: var(--petrol); }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.assess-progress { height: 4px; background: var(--mist-deep); border-radius: 2px; overflow: hidden; }
.assess-progress span { display: block; height: 100%; width: calc(100% * var(--p)); background: var(--petrol); transition: width .3s ease; }
.assess-count { margin-top: .6rem; font-size: .9rem; }
.assess-form { margin-top: 1.5rem; }
.assess-q h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 24ch; }
.assess-q .muted { margin-top: .6rem; max-width: 52ch; }
.assess-field { display: grid; gap: .4rem; margin-top: 1.25rem; font-size: .95rem; font-weight: 500; }
.assess-input { font: inherit; font-weight: 400; color: var(--petrol); padding: .9rem 1rem; border: 1px solid var(--mist-deep); border-radius: 6px; background: #fff; width: 100%; }
textarea.assess-input { resize: vertical; min-height: 6rem; font-size: 1.05rem; }
.assess-input:focus { outline: none; border-color: var(--verdigris); box-shadow: 0 0 0 3px rgba(35, 102, 106, .15); }
.assess-counter { margin-top: .5rem; font-size: .85rem; }
.assess-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.assess-grid .assess-field:first-child { grid-column: 1 / -1; }
@media (max-width: 540px) { .assess-grid { grid-template-columns: 1fr; } }
.opts { list-style: none; display: grid; gap: .6rem; margin-top: 1.25rem; }
.opt { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; background: #fff; border: 1px solid var(--mist-deep); border-radius: 8px; cursor: pointer; font-weight: 500; transition: border-color .12s ease, background-color .12s ease; }
.opt:hover { border-color: var(--verdigris); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-mark { width: 1.15rem; height: 1.15rem; border: 2px solid var(--mist-deep); border-radius: 50%; flex: none; position: relative; transition: border-color .12s ease, background-color .12s ease; }
.opt input[type="checkbox"] + .opt-mark { border-radius: 4px; }
.opt input:checked + .opt-mark { background: var(--petrol); border-color: var(--petrol); }
.opt input:checked + .opt-mark::after { content: ""; position: absolute; left: 5px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.opt input:focus-visible + .opt-mark { outline: 2px solid var(--verdigris); outline-offset: 2px; }
.opt:has(input:checked) { border-color: var(--petrol); background: var(--mist); }
.assess-other { margin-top: .25rem; }
.assess-error { margin-top: 1rem; color: #9b2c2c; font-weight: 500; }
.assess-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }
.assess-actions [data-next] { margin-left: auto; }
.assess-run { max-width: 30rem; }
.assess-run .run-steps time { display: none; }
.assess-run .run-steps li:not(.done) strong { opacity: .5; }
.assess-run .run-steps li:not(.done) .pip { border-color: var(--amber); animation: breathe 2s ease-in-out infinite; }

.report .spec-label { color: var(--verdigris); font-weight: 700; }
.report-title { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-top: .5rem; max-width: 20ch; }
.report-summary { font-size: 1.15rem; line-height: 1.55; color: #223f45; margin-top: 1.25rem; max-width: 56ch; }
.report-block { margin-top: 2.25rem; }
.report-block h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.report-block h3 { font-size: 1.05rem; margin-top: 1.4rem; color: var(--petrol); }
.report-block h2 + h3 { margin-top: 1rem; }
.report-block p { margin-top: .5rem; color: #223f45; line-height: 1.6; max-width: 60ch; }
.report-block ul, .report-block ol { margin-top: .5rem; padding-left: 1.3rem; color: #223f45; line-height: 1.6; max-width: 60ch; }
.report-block li + li { margin-top: .35rem; }
.report-chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: 1rem !important; }
.chip { background: #fff; border: 1px solid var(--mist-deep); border-radius: 4px; padding: .3rem .6rem; font-size: .9rem; color: var(--petrol); }
.report-est { background: var(--mist); border-radius: 10px; padding: 1.5rem 1.75rem; }
.report-num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--petrol); margin-top: .75rem !important; }
.report-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
@media (max-width: 640px) { .report-cols { grid-template-columns: 1fr; } }
.report-fine { margin-top: 2rem; font-size: .9rem; }
.report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid var(--mist-deep); }
.report-note { margin-top: .75rem; font-size: .95rem; }
.lock { display: inline-block; flex: none; width: .8rem; height: .62rem; border-radius: 2px; background: currentColor; position: relative; margin-top: .3rem; }
.lock::before { content: ""; position: absolute; left: .13rem; top: -.38rem; width: .54rem; height: .46rem; border: 2px solid currentColor; border-bottom: 0; border-radius: .3rem .3rem 0 0; box-sizing: border-box; }
.gate-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .gate-layout { grid-template-columns: 1fr; gap: 1.75rem; } }
.pdf-viewer { background: #dfe6e7; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 0 rgba(14, 47, 54, .06), 0 18px 40px -18px rgba(14, 47, 54, .35); }
.pdf-bar { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; background: var(--petrol); color: #fff; }
.pdf-icon { font-size: .68rem; font-weight: 800; letter-spacing: .04em; background: #c0392b; border-radius: 4px; padding: .3rem .4rem; }
.pdf-meta { display: grid; min-width: 0; line-height: 1.25; }
.pdf-meta strong { font-size: .88rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-meta small { font-size: .75rem; opacity: .7; }
.pdf-lock { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; color: var(--amber); }
.pdf-lock .lock { margin-top: .25rem; }
.pdf-stage { padding: 1.25rem 1.25rem 0; }
.pdf-paper { position: relative; background: #fff; padding: 2rem 2rem 0; min-height: 30rem; max-height: 34rem; overflow: hidden; box-shadow: 0 2px 10px rgba(14, 47, 54, .18); border-radius: 2px 2px 0 0; }
.pdf-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: .6rem; border-bottom: 2px solid var(--amber); font-size: .72rem; color: #5b6b6e; }
.pdf-head b { font-size: 1rem; color: var(--petrol); }
.pdf-label { margin-top: 1.1rem; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--verdigris); }
.pdf-title { margin-top: .4rem; font-size: clamp(1.15rem, 2.4vw, 1.55rem); line-height: 1.22; color: var(--petrol); }
.pdf-body { margin-top: 1.1rem; }
.pdf-sec { margin-top: 1rem; }
.pdf-sec h3 { font-size: .74rem; font-weight: 700; color: var(--verdigris); margin-bottom: .4rem; }
.pdf-sec .bar { display: block; height: .55rem; margin-top: .4rem; border-radius: 2px; background: #cfd9da; }
.pdf-veil { position: absolute; inset: 55% 0 0 0; display: grid; place-items: center; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, .92) 45%, #fff); color: var(--petrol); }
.pdf-veil .lock { width: 1.6rem; height: 1.25rem; border-radius: 3px; margin-top: 1rem; }
.pdf-veil .lock::before { left: .28rem; top: -.78rem; width: 1rem; height: .9rem; border-width: 3px; border-radius: .55rem .55rem 0 0; }
.gate-form h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: .4rem; }
.gate-form .muted { margin-top: .6rem; max-width: 40ch; }
.gate-form .spec-label { color: var(--verdigris); font-weight: 700; }
.gate-form .assess-actions { justify-content: flex-start; }
.assess-unavailable h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.assess-unavailable .sub { margin-top: 1rem; }

@media print {
  .nav, .footer, .report-actions, .report-note, .skip { display: none !important; }
  .page { padding: 0; }
  body { font-size: 11pt; }
  .report-est { background: #eef3f3; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
