/* Shamal Consulting — design system
   Concept: the shamal is the north-westerly wind of the Gulf. Calm, directional, clearing.
   One memorable element (the wind-line motif), everything else quiet. */

:root {
  --ink: #0e2a33;
  --ink-2: #1c404c;
  --paper: #fbfcfb;
  --mist: #eff3f2;
  --line: #d3dcda;
  --muted: #4a6168;
  --saffron: #e3a92f;
  --saffron-deep: #84590a;
  --sea: #6fa89b;

  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-read: "Literata", Georgia, "Times New Roman", serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.6vw, 4.6rem);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1180px;
  --measure: 62ch;
  --radius: 2px;
  --section: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.7rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .lead, .section--ink p { color: #dce6e4; }
.section--ink a { color: #fff; }

.kicker {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--saffron-deep);
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}
.section--ink .kicker { color: var(--saffron); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; }
.brand { text-decoration: none; display: inline-flex; align-items: baseline; gap: 0.45rem; font-family: var(--font-head); }
.brand b { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.04em; }
.brand span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) { text-decoration: none; font-size: 0.95rem; font-weight: 500; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--saffron); }
.nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--ink); border-radius: var(--radius); padding: 0.55rem 0.9rem; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; inset: 100% 0 auto 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 1.25rem var(--gutter) 1.75rem;
    flex-direction: column; align-items: flex-start; gap: 1.25rem; display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0.35rem; width: 100%; }
  .nav a:not(.btn) { font-size: 1.1rem; display: inline-block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  text-decoration: none; padding: 0.95rem 1.5rem; border-radius: var(--radius);
  border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn--accent { background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.btn--accent:hover { background: #efba4b; border-color: #efba4b; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.section--ink .btn--ghost { color: #fff; border-color: #fff; }
.section--ink .btn--ghost:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--saffron); padding-bottom: 0.1rem; }
.link-arrow:hover { border-bottom-color: var(--ink); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero .wind { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wind path { fill: none; stroke: var(--sea); stroke-width: 1.2; stroke-linecap: round; opacity: 0.55; stroke-dasharray: 1800; stroke-dashoffset: 1800; animation: draw 3.2s cubic-bezier(.3,.1,.2,1) forwards; }
.hero .wind path:nth-child(2) { animation-delay: 0.25s; opacity: 0.4; }
.hero .wind path:nth-child(3) { animation-delay: 0.5s; opacity: 0.3; stroke: var(--saffron); }
.hero .wind path:nth-child(4) { animation-delay: 0.75s; opacity: 0.25; }
.hero .wind path:nth-child(5) { animation-delay: 1s; opacity: 0.2; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; padding-block: clamp(4rem, 9vw, 8rem) clamp(3.5rem, 7vw, 6rem); }
.hero h1 { color: #fff; margin-bottom: 0.45em; }
.hero .lead { color: #dce6e4; }
.hero .kicker { color: var(--saffron); }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--ink-2); }
.figcap { font-size: 0.8rem; color: #b6c6c3; margin-top: 0.6rem; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .wind path { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); background: var(--mist); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; }
.page-hero .lead { margin-bottom: 0; }
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--muted); }

/* ---------- Split / intro ---------- */
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.statement { font-family: var(--font-head); font-size: var(--step-3); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; max-width: 22ch; margin: 0; }

/* ---------- Area list (home) ---------- */
.area-list { list-style: none; margin: 3rem 0 0; padding: 0; border-top: 1px solid var(--ink); }
.area-list li { border-bottom: 1px solid var(--line); }
.area-list a { display: grid; grid-template-columns: 1fr 1.1fr 2rem; gap: 1.5rem; align-items: baseline; padding: 1.5rem 0; text-decoration: none; transition: padding-left 0.2s; }
.area-list a:hover { padding-left: 0.6rem; }
.area-list a:hover .arrow { color: var(--saffron-deep); transform: translateX(4px); }
.area-list h3 { margin: 0; font-size: var(--step-1); }
.area-list p { margin: 0; color: var(--muted); }
.area-list .arrow { font-size: 1.3rem; transition: transform 0.2s; }
@media (max-width: 760px) { .area-list a { grid-template-columns: 1fr 1.5rem; } .area-list p { grid-column: 1 / 2; } .area-list .arrow { grid-row: 1; grid-column: 2; } }

/* ---------- Who we work with ---------- */
.who { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,0.3); }
.who > div { padding: 1.5rem 1.25rem 0 0; }
.who h3 { color: #fff; font-size: 1.15rem; }
.who p { font-size: 0.95rem; margin: 0; }
@media (max-width: 1000px) { .who { grid-template-columns: repeat(2, 1fr); gap: 0 2rem; } .who > div { padding-bottom: 1.5rem; } }
@media (max-width: 560px) { .who { grid-template-columns: 1fr; } }

/* ---------- Ways to work ---------- */
.ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(2rem, 5vw, 5rem); margin-top: 3rem; }
.ways > div { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.ways h3 { margin-bottom: 0.4rem; }
.ways p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .ways { grid-template-columns: 1fr; } }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.founder img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--mist); }
.founder figure { margin: 0; }
.founder figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.6rem; }
@media (max-width: 860px) { .founder { grid-template-columns: 1fr; } .founder figure { max-width: 380px; } }

/* ---------- CTA band ---------- */
.cta-band h2 { max-width: 20ch; }

/* ---------- Areas of work (detail page) ---------- */
.area { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.area:first-of-type { border-top: 1px solid var(--ink); }
.area .icon { width: 56px; height: 56px; color: var(--ink); margin-bottom: 1.25rem; }
.area .icon * { vector-effect: non-scaling-stroke; }
.area .audience { font-size: var(--step--1); color: var(--muted); }
.area .audience strong { color: var(--ink); }
.area ul { margin: 0 0 1.5rem; padding-left: 1.1rem; }
.area li { margin-bottom: 0.35rem; max-width: 56ch; }
.area h4 { font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0; font-weight: 700; margin-bottom: 0.5rem; }
@media (max-width: 860px) { .area { grid-template-columns: 1fr; } }
.thread { border-left: 3px solid var(--saffron); padding-left: 1.5rem; max-width: 60ch; }

/* ---------- Programmes ---------- */
.format { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(1.5rem, 5vw, 5rem); padding-block: 2rem; border-top: 1px solid var(--line); }
.format:first-of-type { border-top: 1px solid var(--ink); }
.format h3 { font-size: var(--step-2); margin: 0; letter-spacing: -0.02em; }
.format p { margin: 0 0 0.8em; }
@media (max-width: 760px) { .format { grid-template-columns: 1fr; gap: 0.75rem; } }
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps li { counter-increment: s; border-top: 2px solid var(--saffron); padding-top: 1rem; }
.steps li::before { content: counter(s); font-family: var(--font-head); font-weight: 800; font-size: 2rem; display: block; line-height: 1; margin-bottom: 0.6rem; }
.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; color: #dce6e4; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-top: 2rem; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: var(--step-1); padding: 1.25rem 2.5rem 1.25rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 1rem; font-size: 1.6rem; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1.25rem; margin: 0; color: var(--ink-2); }

/* ---------- Insights ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2.5rem; }
.chip { font: inherit; font-size: 0.9rem; font-weight: 500; background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 999px; padding: 0.4rem 1rem; cursor: pointer; }
.chip:hover { background: var(--mist); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.featured { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; padding-bottom: 3rem; border-bottom: 1px solid var(--ink); margin-bottom: 3rem; }
.featured img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--mist); border-radius: var(--radius); }
.featured h2 { font-size: var(--step-3); }
@media (max-width: 860px) { .featured { grid-template-columns: 1fr; } }
.meta { font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-bottom: 0.8rem; }
.meta .cat { color: var(--saffron-deep); font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--mist); border-radius: var(--radius); margin-bottom: 1rem; }
.card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { color: var(--muted); font-size: 0.97rem; }
.sample-tag { display: inline-block; font-size: 0.75rem; font-weight: 600; border: 1px dashed var(--saffron-deep); color: var(--saffron-deep); padding: 0.1rem 0.5rem; border-radius: var(--radius); }
.notice { border: 1px dashed var(--saffron-deep); background: #fff8e6; color: #4d3705; padding: 1rem 1.25rem; font-size: 0.95rem; max-width: 62ch; border-radius: var(--radius); }

/* ---------- Article ---------- */
.article-head { padding-block: clamp(3rem, 7vw, 5.5rem) 2rem; }
.article-head h1 { font-size: var(--step-4); max-width: 20ch; }
.article-cover { width: 100%; max-height: 520px; object-fit: cover; aspect-ratio: 21 / 9; background: var(--mist); border-radius: var(--radius); }
.article-body { max-width: 680px; padding-block: 3rem 4rem; font-family: var(--font-read); font-size: 1.15rem; line-height: 1.75; }
.article-body h2 { font-size: var(--step-2); margin-top: 2em; }
.article-body h3 { margin-top: 1.6em; }
.article-body p, .article-body li { max-width: none; }
.article-body blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 3px solid var(--saffron); font-size: 1.3rem; font-style: italic; }
.article-body a { color: var(--ink); }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 1.4rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.97rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #7d8f93; border-radius: var(--radius); padding: 0.85rem 1rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--saffron); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #a32020; border-width: 2px; }
.error { color: #a32020; font-size: 0.9rem; margin: 0.35rem 0 0; min-height: 0; }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1.25rem 1.5rem; border-radius: var(--radius); font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #e6f3ee; border-left: 4px solid #1f7a5c; color: #0f3d2e; }
.form-status.err { background: #fbeaea; border-left: 4px solid #a32020; color: #5c1010; }
.aside-block { border-top: 1px solid var(--ink); padding-top: 1.25rem; margin-bottom: 2rem; }
.aside-block h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.aside-block ul { padding-left: 1.1rem; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #dce6e4; padding-block: 4rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.site-footer .brand b { color: #fff; }
.site-footer .brand span { color: #b6c6c3; }
.site-footer h2 { font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em; color: #fff; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { color: #dce6e4; font-size: 0.95rem; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.85rem; color: #b6c6c3; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; align-content: center; }

@media print {
  .site-header, .site-footer, .btn, .filters { display: none; }
  body { color: #000; }
}

.plain-list { list-style: none; margin: 0 0 1.5rem; padding: 0; border-top: 1px solid var(--ink); max-width: 56ch; }
.plain-list li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 600; font-size: var(--step-1); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.hero .btn--ghost { color: #fff; border-color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); }
.hero .wrap { align-items: center; }
.hero-figure { max-width: 400px; justify-self: end; }

/* =====================================================================
   v2 interactive layer
   ===================================================================== */
@view-transition { navigation: auto; }
:root { --sea-tint: #dcebe6; --saffron-tint: #f8ecc9; --ink-3: #2a5563; }
[hidden] { display: none !important; }

/* progressive enhancement guards */
html:not(.js) [role="tablist"] { display: none; }
html.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* header: progress + auto-hide */
.site-header { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(14,42,51,.08); }
.site-header.is-hidden { transform: translateY(-101%); }
.progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 3px; background: var(--saffron); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }
.btn { transition: background-color .15s, color .15s, border-color .15s, transform .2s; }
.btn:hover { transform: translateY(-2px); }

/* shared wind motif */
.wind { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wind path { fill: none; stroke: var(--sea); stroke-width: 1.2; stroke-linecap: round; opacity: .5; }
.page-hero, .cta-band { position: relative; overflow: hidden; }
.page-hero .wrap, .cta-band .wrap { position: relative; }
.page-hero .wind path { stroke: var(--sea); opacity: .55; }
.page-hero .wind path:nth-child(3) { stroke: var(--saffron); opacity: .6; }
.cta-band .wind path { opacity: .35; }
.cta-band .wind path:nth-child(3) { stroke: var(--saffron); }
.page-hero .wind path, .cta-band .wind path { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }

/* ---------- Hero v2 ---------- */
.hero { min-height: min(94vh, 880px); display: grid; align-items: center; }
html.js .hero .wind { display: none; }
.hero canvas.flow { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; padding-block: clamp(4rem, 8vw, 7rem); width: 100%; }
.hero h1 { font-size: clamp(2.7rem, 1.6rem + 5.4vw, 6.2rem); line-height: .98; letter-spacing: -.045em; margin-bottom: .4em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero h1 .line > span { display: block; animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
.hero h1 .line:nth-child(1) > span { animation-delay: .15s; }
.hero h1 .line:nth-child(2) > span { animation-delay: .3s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .45s; color: var(--saffron); }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
.hero .lead, .hero .btn-row, .hero .kicker { animation: fadeup .9s ease .75s both; }
.hero .kicker { animation-delay: .05s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hint { font-size: .85rem; color: #b6c6c3; margin: 2.25rem 0 0; animation: fadeup .9s ease 1.4s both; }
@media (hover: none) { .hint { display: none; } }
.arch { position: relative; margin: 0; width: 100%; max-width: 420px; justify-self: end; animation: fadeup 1.1s ease .5s both; }
.arch-frame { aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); overflow: hidden; background: var(--ink-2); box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 30px 60px -25px rgba(0,0,0,.5); }
.arch-frame svg, .arch-frame img { width: 100%; height: 100%; object-fit: cover; }
.arch-frame [data-depth] { transition: transform .25s ease-out; }
.arch figcaption { font-size: .8rem; color: #b6c6c3; margin-top: .75rem; }
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero .wrap { grid-template-columns: 1fr; }
  .arch { justify-self: start; max-width: 320px; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--saffron); color: var(--ink); overflow: hidden; border-block: 1px solid var(--ink); }
.marquee-track { display: flex; width: max-content; animation: marq 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { display: flex; align-items: center; gap: 2.5rem; padding: .9rem 1.25rem .9rem 0; margin-right: 1.25rem; white-space: nowrap; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 3.2vw, 2.7rem); letter-spacing: -.03em; }
.marquee li::after { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--ink); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Story (scroll-linked words) ---------- */
.story { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.9rem); line-height: 1.08; letter-spacing: -.035em; max-width: 26ch; margin: 0 0 3rem; }
.story .w { transition: color .3s; }
html.js .story .w { color: #5d7773; }
html.js .story .w.on { color: var(--ink); }
.story-more { align-items: start; }

/* ---------- Explorer (areas) ---------- */
.explorer { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 5vw, 5rem); margin-top: 3rem; align-items: start; }
.explorer [role="tablist"] { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.explorer [role="tab"] { display: flex; align-items: center; gap: 1rem; text-align: left; width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 1.05rem .25rem; font: inherit; font-family: var(--font-head); font-weight: 600; font-size: var(--step-1); letter-spacing: -.01em; line-height: 1.2; color: var(--ink); cursor: pointer; transition: padding-left .25s, background-color .25s; }
.explorer [role="tab"] .icon { width: 30px; height: 30px; flex: none; color: var(--muted); transition: color .25s; }
.explorer [role="tab"]:hover { padding-left: .6rem; }
.explorer [role="tab"][aria-selected="true"] { background: #fff; padding-left: 1rem; box-shadow: inset 4px 0 0 var(--saffron); }
.explorer [role="tab"][aria-selected="true"] .icon { color: var(--ink); }
.explorer-panel { background: #fff; border: 1px solid var(--line); padding: clamp(1.5rem, 3.5vw, 3rem); position: sticky; top: 6.5rem; }
.explorer-panel:not([hidden]) { animation: panelin .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes panelin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.explorer-panel .icon-lg { width: 84px; height: 84px; color: var(--ink); margin-bottom: 1.25rem; }
.explorer-panel h3 { font-size: var(--step-2); }
.explorer-panel .audience { font-size: var(--step--1); color: var(--muted); }
.explorer-panel .audience strong { color: var(--ink); }
.explorer-panel ul { margin: 0 0 1.5rem; padding-left: 1.1rem; }
.explorer-panel .btn-row { margin-top: 1.25rem; }
html:not(.js) .explorer { grid-template-columns: 1fr; }
html:not(.js) .explorer-panel { position: static; margin-bottom: 1.5rem; }
.explorer-panel:not([hidden]) .icon-lg *, .success .check * { stroke-dasharray: 1; animation: stroke 1s ease .1s both; }
@keyframes stroke { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (max-width: 860px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer [role="tablist"] { flex-direction: row; overflow-x: auto; border-top: 0; gap: .5rem; padding-bottom: .5rem; scrollbar-width: thin; }
  .explorer [role="tab"] { width: auto; white-space: nowrap; border: 1px solid var(--ink); border-radius: 999px; padding: .55rem 1rem; font-size: .95rem; }
  .explorer [role="tab"] .icon { display: none; }
  .explorer [role="tab"]:hover { padding-left: 1rem; }
  .explorer [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: none; padding-left: 1rem; }
  .explorer-panel { position: static; }
}

/* ---------- Finder (who we work with) ---------- */
.finder { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 5vw, 5rem); margin-top: 3rem; align-items: start; }
.finder [role="tablist"] { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.35); }
.finder [role="tab"] { display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); padding: 1.1rem 0; font: inherit; font-family: var(--font-head); font-weight: 600; font-size: var(--step-2); letter-spacing: -.02em; line-height: 1.1; color: #fff; cursor: pointer; transition: color .2s, padding-left .25s; }
.finder [role="tab"]::after { content: "\2192"; font-size: 1.4rem; opacity: 0; transform: translateX(-10px); transition: opacity .2s, transform .25s; }
.finder [role="tab"]:hover { padding-left: .5rem; }
.finder [role="tab"][aria-selected="true"] { color: var(--saffron); }
.finder [role="tab"][aria-selected="true"]::after, .finder [role="tab"]:hover::after { opacity: 1; transform: none; }
.finder-panel { background: var(--ink-2); border-left: 4px solid var(--saffron); padding: clamp(1.5rem, 3.5vw, 3rem); border-radius: 0 var(--radius) var(--radius) 0; }
.finder-panel:not([hidden]) { animation: panelin .45s cubic-bezier(.2,.7,.2,1) both; }
.finder-panel h3 { color: #fff; font-size: var(--step-2); }
.finder-panel p { color: #dce6e4; }
.finder-panel .rel { font-size: var(--step--1); color: #b6c6c3; margin: 1.75rem 0 .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.chips a { display: inline-block; text-decoration: none; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: .4rem 1rem; font-size: .92rem; color: #fff; transition: background-color .2s, color .2s; }
.chips a:hover { background: #fff; color: var(--ink); }
html:not(.js) .finder { grid-template-columns: 1fr; }
html:not(.js) .finder-panel { margin-bottom: 1.5rem; }
@media (max-width: 860px) {
  .finder { grid-template-columns: 1fr; }
  .finder [role="tablist"] { flex-direction: row; flex-wrap: wrap; border-top: 0; gap: .5rem; }
  .finder [role="tab"] { width: auto; font-size: 1rem; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: .55rem 1rem; }
  .finder [role="tab"]::after { display: none; }
  .finder [role="tab"]:hover { padding-left: 1rem; }
  .finder [role="tab"][aria-selected="true"] { background: var(--saffron); color: var(--ink); border-color: var(--saffron); }
}

/* ---------- Tiles (ways to work) ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 3rem; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem; min-height: 16rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); text-decoration: none; transition: background-color .3s, color .3s; }
.tile:nth-child(1) { background: var(--sea-tint); }
.tile:nth-child(4) { background: var(--saffron-tint); }
.tile h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.tile p { margin: 0; color: var(--ink-2); max-width: 36ch; }
.tile .arrow { align-self: flex-end; font-size: 1.8rem; line-height: 1; transition: transform .3s; }
.tile:hover, .tile:focus-visible { background: var(--ink); color: #fff; }
.tile:hover p, .tile:focus-visible p { color: #dce6e4; }
.tile:hover .arrow { transform: translate(6px, -6px); color: var(--saffron); }
@media (max-width: 700px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 12rem; } }

/* ---------- Founder / arch ---------- */
.founder .arch { justify-self: start; animation: none; max-width: 420px; }
.founder .arch-frame { box-shadow: none; background: var(--mist); }
.section--mist .founder .arch-frame { background: var(--ink-2); }
.founder .arch figcaption { color: var(--muted); }
.float-card { position: absolute; right: -1.25rem; bottom: 3.25rem; max-width: 15rem; background: var(--saffron); color: var(--ink); padding: 1.1rem 1.25rem; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.15; letter-spacing: -.02em; border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(14,42,51,.5); }
@media (max-width: 860px) { .float-card { right: .75rem; } }

/* ---------- Areas page ---------- */
.areas-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.area-index { position: sticky; top: 6.5rem; font-size: .95rem; }
.area-index p { font-size: var(--step--1); font-weight: 600; margin: 0 0 .75rem; }
.area-index ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.area-index a { display: block; padding: .45rem 0 .45rem 1rem; margin-left: -1px; border-left: 3px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.3; transition: color .2s, border-color .2s; }
.area-index a:hover { color: var(--ink); }
.area-index a[aria-current="true"] { color: var(--ink); font-weight: 600; border-left-color: var(--saffron); }
.areas-layout .area { grid-template-columns: .75fr 1.25fr; scroll-margin-top: 5.5rem; }
.areas-layout .area:first-of-type { border-top: 0; padding-top: 0; }
.area .icon * { vector-effect: none; }
html.js .area .icon * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s ease .25s; }
html.js .area.is-in .icon * { stroke-dashoffset: 0; }
.area h2 { font-size: var(--step-2); }
.area h3 { font-size: 1rem; }
.thread-lead { margin-bottom: 3rem; }
@media (max-width: 960px) {
  .areas-layout { grid-template-columns: 1fr; }
  .area-index { position: static; }
  .area-index ol { display: flex; gap: .5rem; border-left: 0; overflow-x: auto; padding-bottom: .5rem; }
  .area-index a { border: 1px solid var(--ink); border-radius: 999px; padding: .4rem .9rem; white-space: nowrap; margin: 0; color: var(--ink); }
  .area-index a[aria-current="true"] { background: var(--ink); color: #fff; }
  .areas-layout .area { grid-template-columns: 1fr; }
}

/* ---------- Accordion (formats) ---------- */
.acc { border-top: 1px solid var(--ink); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.5rem; cursor: pointer; list-style: none; padding: 1.5rem 0; font-family: var(--font-head); font-weight: 700; font-size: var(--step-2); letter-spacing: -.02em; line-height: 1.1; transition: padding-left .25s; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { padding-left: .6rem; }
.pm { position: relative; width: 2.5rem; height: 2.5rem; border: 1.5px solid var(--ink); border-radius: 50%; transition: background-color .3s, border-color .3s; }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: .9rem; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .3s; }
.pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc details[open] .pm { background: var(--saffron); border-color: var(--saffron); }
.acc details[open] .pm::after { transform: translate(-50%, -50%) rotate(0); }
.acc-body { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.5rem 3rem; padding: 0 0 2.25rem; animation: panelin .4s ease both; }
.acc-body p { margin: 0 0 1rem; }
.acc-body .suited { font-size: var(--step--1); color: var(--muted); margin: 0 0 1rem; }
@media (max-width: 760px) { .acc-body { grid-template-columns: 1fr; } }

/* ---------- Insights extras ---------- */
.search { position: relative; max-width: 440px; margin-bottom: 1.25rem; }
.search input { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #7d8f93; border-radius: 999px; padding: .8rem 1rem .8rem 2.9rem; }
.search svg { position: absolute; left: 1.05rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.thumb { overflow: hidden; border-radius: var(--radius); margin-bottom: 1rem; background: var(--mist); }
.thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin: 0; border-radius: 0; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card:hover .thumb img, .featured:hover .thumb img { transform: scale(1.05); }
.featured .thumb { margin: 0; }
.no-results { padding: 2rem 0; color: var(--muted); }
.filters-wrap { margin-top: 2rem; }
.mt-2 { margin-top: 2rem; }
.mt-1 { margin-top: 1rem; }
.mb-3 { margin-bottom: 3rem; }
.sub-h { margin-top: 2rem; }
.card { transition: transform .3s; }

/* ---------- Contact v2 ---------- */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; margin-bottom: .6rem; padding: 0; font-size: .97rem; }
.tile-radios { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.tile-radio { position: relative; }
.tile-radio input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
.tile-radio span { display: block; height: 100%; border: 1.5px solid #7d8f93; border-radius: var(--radius); padding: .9rem 1rem; background: #fff; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.tile-radio b { display: block; font-family: var(--font-head); font-size: 1.05rem; line-height: 1.2; }
.tile-radio small { display: block; color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.tile-radio:hover span { border-color: var(--ink); transform: translateY(-2px); }
.tile-radio input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.tile-radio input:checked + span small { color: #dce6e4; }
.tile-radio input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
fieldset[aria-invalid="true"] .tile-radio span { border-color: #a32020; }
@media (max-width: 520px) { .tile-radios { grid-template-columns: 1fr; } }
.form-progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.form-progress i { display: block; width: 100%; height: 100%; background: var(--saffron); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.progress-label { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }
.success { background: var(--sea-tint); padding: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius); }
.success .check { width: 76px; height: 76px; color: var(--ink); margin-bottom: 1.25rem; }
.success h2 { font-size: var(--step-2); }
.success:focus { outline: none; }

/* ---------- Footer / misc ---------- */
.mt-brand { margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero h1 .line > span, .hero .lead, .hero .btn-row, .hero .kicker, .hint, .arch { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee ul:nth-child(2) { display: none; }
  .explorer-panel:not([hidden]), .finder-panel:not([hidden]), .acc-body { animation: none; }
  .explorer-panel:not([hidden]) .icon-lg *, .success .check * { animation: none; stroke-dashoffset: 0; }
  html.js .area .icon * { transition: none; stroke-dashoffset: 0; }
  .thumb img, .card, .btn, .tile-radio span { transition: none; }
  @view-transition { navigation: none; }
}

/* grid children must be allowed to shrink so horizontal strips scroll inside themselves */
.areas-layout > *, .explorer > *, .finder > *, .split > *, .founder > *, .form-grid > * { min-width: 0; }

/* hero sizing fix: fixed-width arch, headline takes the rest */
.hero .wrap { grid-template-columns: minmax(0, 1fr) 340px; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.2vw, 5rem); }
.hero h1 .line > span { white-space: normal; }
.hero .arch { max-width: 340px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero .arch { max-width: 280px; } }
