/* Kelp Advisory — shared styles
   Brand: Inter; Deep Charcoal, Soft Cobalt (actions and key callouts only), Warm Ivory (calm sections),
   White (dense text), Warm Stone (dividers only). Single light identity. */
:root {
  color-scheme: light;
  --charcoal: #2B2D31;
  --cobalt: #3C60AB;
  --cobalt-hover: #31508F;
  --ivory: #F7F4EF;
  --white: #FFFFFF;
  --stone: #C4B8A8;
  --black: #0F0F0F;
  --muted: #5B5D62;          /* charcoal softened, AA on ivory and white */
  --rule: #E3DCD2;           /* stone lightened for hairlines */
  --on-dark: #F7F4EF;
  --on-dark-muted: #C4B8A8;  /* stone on charcoal, ~7:1 */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ivory); color: var(--charcoal);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ivory); }
img { max-width: 100%; }
.wrap {
  max-width: calc(var(--wrap) + 64px); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -0.025em; line-height: 1.08; }
p { margin: 0; }
a { color: var(--cobalt); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--ivory); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--white); padding: 8px 12px; }

/* Section marker: eyebrow over the logo's short cobalt rule */
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: grid; gap: 12px; justify-items: start; }
.eyebrow::after { content: ""; width: 40px; height: 2px; background: var(--cobalt); }
.dark .eyebrow { color: var(--on-dark-muted); }

/* Buttons: cobalt is reserved for primary actions */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .98rem/1 var(--font); text-decoration: none;
  padding: 15px 22px; border-radius: 6px; border: 1.5px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--cobalt); color: #FFFFFF; }
.btn-primary:hover { background: var(--cobalt-hover); }
.btn-secondary { border-color: var(--charcoal); color: var(--charcoal); background: transparent; }
.btn-secondary:hover { background: var(--charcoal); color: var(--ivory); }
.dark .btn-secondary { border-color: var(--ivory); color: var(--ivory); }
.dark .btn-secondary:hover { background: var(--ivory); color: var(--charcoal); }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }
.textlink { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; }
.textlink:hover { text-decoration: underline; }

/* Logo */
.logo { display: inline-flex; }
.logo img { height: 32px; width: auto; display: block; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--ivory); border-bottom: 1px solid var(--rule); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; font-weight: 500; font-size: .94rem; }
.nav ul a { text-decoration: none; color: var(--muted); }
.nav ul a:hover { color: var(--charcoal); }
.nav .btn { padding: 11px 18px; font-size: .9rem; }
@media (max-width: 960px) { .nav ul { display: none; } }
@media (max-width: 380px) { .nav .btn { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .motif { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: min(520px, 46%); height: auto; pointer-events: none; }
@media (max-width: 860px) { .hero .motif { display: none; } }
.hero .wrap { position: relative; padding-block: clamp(64px, 9vw, 128px) clamp(64px, 8vw, 112px); }
.hero h1 { margin-top: 28px; font-size: clamp(2.75rem, 7.2vw, 5.75rem); font-weight: 700; max-width: 12ch; }
.hero .lede { margin-top: 28px; max-width: 36em; font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--muted); }
.hero .ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Deadline strip */
.strip { background: var(--charcoal); color: var(--on-dark); }
.strip .wrap { display: grid; grid-template-columns: auto 1fr 1fr 1fr; }
.strip .label { padding: 22px 28px 22px 0; display: grid; align-content: center; gap: 4px; font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.strip .label a { color: var(--on-dark-muted); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .8rem; }
.strip .g { padding: 20px 24px; border-left: 1px solid rgba(196,184,168,.25); display: grid; gap: 2px; }
.strip .g b { font-size: 1.05rem; font-weight: 600; }
.strip .g span { font-size: .86rem; color: var(--on-dark-muted); }
.strip .g.now { background: var(--cobalt); border-left-color: transparent; }
.strip .g.now span { color: var(--on-dark); }
@media (max-width: 760px) {
  .strip .wrap { grid-template-columns: 1fr; }
  .strip .label { padding: 20px 0 10px; }
  .strip .g { border-left: 0; border-top: 1px solid rgba(196,184,168,.25); padding-inline: 0; }
  .strip .g.now { margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
}

section { padding-block: clamp(72px, 10vw, 128px); }
.sec-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 700; }
.sec-head p { color: var(--muted); font-size: 1.08rem; max-width: 36em; }
.dark { background: var(--charcoal); color: var(--on-dark); }
.dark .sec-head p { color: var(--on-dark-muted); }
.on-white { background: var(--white); }
.ruled { border-top: 1px solid var(--stone); }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1.5px solid var(--charcoal); }
.svc { padding: 36px 40px 40px 0; border-bottom: 1px solid var(--stone); display: grid; gap: 14px; align-content: start; }
.svc:nth-child(even) { padding: 36px 0 40px 40px; border-left: 1px solid var(--stone); }
.tag { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); }
.svc h3 { font-size: clamp(1.45rem, 2.3vw, 1.85rem); font-weight: 600; }
.svc p { color: var(--muted); max-width: 32em; }
.svc ul, .bullets { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.svc ul { font-size: .95rem; }
.svc li, .bullets li { display: flex; gap: 12px; }
.svc li::before, .bullets li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .62em; background: var(--charcoal); }
.svc .for { margin-top: 6px; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 14px; }
.svc .for b { color: var(--charcoal); font-weight: 600; }
@media (max-width: 760px) {
  .services { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(even) { padding: 30px 0 34px; border-left: 0; }
}

/* Selected previous work: cards */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case {
  background: var(--white); border: 1px solid var(--rule); border-radius: 8px;
  padding: clamp(24px, 3.4vw, 36px); display: grid; gap: 16px; grid-template-rows: auto auto 1fr auto auto;
  text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease;
}
.case:hover { border-color: var(--stone); transform: translateY(-2px); }
.case .tags { font-size: .8rem; color: var(--muted); }
.case h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 600; }
.case p { color: var(--muted); }
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--stone); }
.outcomes li { list-style: none; padding: 14px 12px 0 0; font-size: .9rem; font-weight: 600; line-height: 1.35; }
.outcomes li + li { padding-left: 12px; border-left: 1px solid var(--rule); }
.outcomes { margin: 0; padding: 0; }
.case .more { font-weight: 600; color: var(--cobalt); display: inline-flex; gap: 8px; }
.case:hover .more .arr { transform: translateX(3px); }
.case .more .arr { transition: transform .15s ease; }
.cases-note { margin-top: 20px; font-size: .86rem; color: var(--muted); }
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; } }
@media (max-width: 440px) { .outcomes { grid-template-columns: 1fr; } .outcomes li + li { padding-left: 0; border-left: 0; } }

/* Scope checker */
.checker { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.q { display: grid; gap: 26px; }
.q fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.q legend { font-weight: 600; font-size: 1rem; margin-bottom: 10px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  font-size: .9rem; font-weight: 500; padding: 10px 16px; border-radius: 6px;
  border: 1px solid rgba(196,184,168,.45); cursor: pointer; font-variant-numeric: tabular-nums;
  transition: background .12s, border-color .12s;
}
.seg label:hover { border-color: var(--stone); }
.seg input:checked + label { background: var(--cobalt); border-color: var(--cobalt); color: #FFFFFF; }
.seg input:focus-visible + label { outline: 2px solid var(--ivory); outline-offset: 3px; }
.result {
  background: var(--black); border-radius: 8px; padding: clamp(24px, 4vw, 36px);
  display: grid; gap: 14px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px);
  border-top: 3px solid var(--cobalt);
}
.result .k { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.result .big { font-size: clamp(2.4rem, 5.4vw, 3.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.result .when { font-size: .95rem; font-weight: 500; }
.result p { color: var(--on-dark-muted); font-size: .98rem; }
.result .btn { justify-self: start; margin-top: 4px; }
.result small { color: var(--on-dark-muted); font-size: .78rem; line-height: 1.55; border-top: 1px solid rgba(196,184,168,.2); padding-top: 14px; }
.result small a { color: var(--on-dark); }
@media (max-width: 860px) { .checker { grid-template-columns: 1fr; } .result { position: static; } }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { display: grid; gap: 10px; align-content: start; counter-increment: s; }
.steps li::before {
  content: counter(s, decimal-leading-zero); font-size: .85rem; font-weight: 600; color: var(--cobalt);
  font-variant-numeric: tabular-nums; padding-bottom: 16px; border-bottom: 1.5px solid var(--charcoal); margin-bottom: 8px;
}
.steps h3 { font-size: 1.3rem; font-weight: 600; }
.steps p { color: var(--muted); font-size: .97rem; }
.network { margin-top: clamp(36px, 5vw, 56px); padding-top: 20px; border-top: 1px solid var(--stone); color: var(--muted); max-width: 46em; }
.network b { color: var(--charcoal); font-weight: 600; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-intro { display: grid; gap: 24px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 100px); }
.about h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 700; }
.about .who { font-weight: 600; }
.about .who span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.about .copy { display: grid; gap: 20px; max-width: 38em; color: var(--muted); font-size: 1.04rem; }
.creds { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--stone); }
.creds li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .9rem; display: flex; gap: 12px; }
.creds li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .55em; background: var(--cobalt); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-intro { position: static; } }

/* Contact / footer */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); padding-block: clamp(72px, 10vw, 120px); }
.contact h2 { margin-top: 20px; font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
.contact .intro > p { margin-top: 20px; color: var(--on-dark-muted); max-width: 30em; }
.mail { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 1.05rem; font-weight: 500; }
.mail button { font: 500 .8rem var(--font); background: transparent; color: var(--on-dark); border: 1px solid rgba(196,184,168,.5); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.mail button:hover { border-color: var(--stone); }
form { display: grid; gap: 16px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { form .row { grid-template-columns: 1fr; } }
form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; color: var(--on-dark-muted); }
form input, form select, form textarea {
  font: 400 1rem var(--font); color: var(--on-dark); background: rgba(247,244,239,.06);
  border: 1px solid rgba(196,184,168,.35); border-radius: 6px; padding: 12px 14px; width: 100%;
}
form input:focus, form select:focus, form textarea:focus { border-color: var(--stone); outline: none; box-shadow: 0 0 0 2px var(--cobalt); }
form select option { color: var(--charcoal); background: var(--ivory); }
form textarea { min-height: 110px; resize: vertical; }
form .btn { justify-self: start; }
form .btn[disabled] { opacity: .6; cursor: progress; }
form .fine { font-size: .8rem; color: var(--on-dark-muted); }
form .fine a { color: var(--on-dark); }
.hp { position: absolute; left: -9999px; }
.status { font-size: .92rem; }
.status.ok { color: var(--on-dark); }
.status.err { color: var(--stone); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
footer.dark { background: var(--black); }
.foot { border-top: 1px solid rgba(196,184,168,.25); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 28px; font-size: .84rem; color: var(--on-dark-muted); }
.foot .logo img { height: 26px; }
.foot .why { flex: 1 1 280px; min-width: 0; max-width: 40em; }
.foot .legal { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot a { color: var(--on-dark-muted); }
.foot a:hover { color: var(--on-dark); }

/* Article pages (case studies, privacy): white for dense text */
.page { background: var(--white); }
.crumb { font-size: .88rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.article-head { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px); display: grid; gap: 22px; max-width: 900px; }
.article-head h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; }
.article-head .lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40em; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--stone); margin: 0; padding: 0; }
.stats li { list-style: none; padding: 22px 20px 22px 0; display: grid; gap: 4px; }
.stats li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.stats b { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stats span { font-size: .9rem; color: var(--muted); }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; } .stats li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 88px); padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 112px); align-items: start; }
.prose { display: grid; gap: 20px; max-width: 40em; font-size: 1.06rem; line-height: 1.7; }
.prose h2 { font-size: 1.4rem; font-weight: 600; margin-top: 16px; letter-spacing: -0.015em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.prose li { display: flex; gap: 14px; }
.prose li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .7em; background: var(--charcoal); }
.aside { display: grid; gap: 28px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 100px); }
.aside .block { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--stone); font-size: .92rem; }
.aside .block h2 { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.aside .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aside .chips span { border: 1px solid var(--stone); border-radius: 4px; padding: 4px 9px; font-size: .82rem; }
.aside .note { color: var(--muted); font-size: .86rem; }
.cta-band { background: var(--ivory); border-top: 1px solid var(--stone); }
.cta-band .wrap { padding-block: clamp(48px, 7vw, 80px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; max-width: 20ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .article { grid-template-columns: 1fr; } .aside { position: static; } }

