/* Iwa Analytica — site styles
   Palette from Brand Guidelines v001 (2026.08.03)
   Main #012D48 · Sub #0969AC, #32A4C3 · Accent #B99754 (small areas only) */

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/eb-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 800; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --navy: #012D48;
  --navy-deep: #01243a;
  --blue: #0969AC;
  --turquoise: #32A4C3;
  --gold: #B99754;
  --gold-text: #8a6c2f;         /* darker gold for text on light bg (AA) */

  --paper: #FAF8F4;             /* warm off-white, washi-like */
  --paper-2: #F2EEE6;
  --white: #FFFFFF;
  --ink: #012D48;
  --ink-soft: #3d5566;
  --rule: rgba(1, 45, 72, 0.14);

  --on-dark: #F4F1EA;
  --on-dark-soft: #b9c7d1;
  --rule-dark: rgba(244, 241, 234, 0.16);

  --serif: "EB Garamond", "Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(80px, 12vw, 160px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: inherit; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.1rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.1; }
h3 { font-size: 1.45rem; line-height: 1.25; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: block; padding: 8px 0; }  /* logo isolation zone */
.brand img { width: 190px; height: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(18px, 2.6vw, 36px); align-items: center; }
.site-nav a {
  font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  color: var(--ink); text-decoration: none; padding: 6px 0; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav .nav-cta { border: 1px solid var(--navy); padding: 9px 18px; border-radius: 1px; }
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--navy); color: var(--white); }

.nav-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; margin-right: -12px; cursor: pointer; color: var(--navy);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 24px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .header-inner { height: 68px; }
  .brand { position: relative; z-index: 2; }
  .brand img { width: 160px; }
  .nav-toggle { display: flex; position: relative; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0; min-height: 100vh;
    padding: 104px var(--gutter) 40px;
    background: var(--paper);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform .25s ease, opacity .25s ease, visibility .25s;
  }
  .site-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .site-nav li { border-top: 1px solid var(--rule); }
  .site-nav li:first-child { border-top: 0; }
  .site-nav a { display: block; padding: 17px 0; font-family: var(--serif); font-size: 1.7rem; letter-spacing: 0; text-transform: none; font-weight: 400; }
  .site-nav .nav-cta { width: fit-content; margin-top: 22px; padding: 12px 20px; font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
  .site-nav .nav-cta:hover { background: none; color: var(--blue); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; padding: 16px 28px; border-radius: 1px; transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary { background: var(--navy); color: var(--white); border: 1px solid var(--navy); }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy) !important; border: 1px solid var(--white); }
.btn-light:hover { background: var(--turquoise); border-color: var(--turquoise); color: var(--navy-deep) !important; }
.btn-quiet { color: var(--navy); border: 1px solid transparent; padding-left: 4px; padding-right: 4px; }
.btn-quiet:hover { color: var(--blue); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 12vw, 150px) 0 clamp(88px, 13vw, 170px); }
.hero-ripples {
  position: absolute; right: -14vw; top: 50%; width: min(78vw, 860px); transform: translateY(-50%);
  color: var(--turquoise); opacity: .32; pointer-events: none;
}
.hero-ripples ellipse { stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-inner { position: relative; }
.eyebrow, .kicker {
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 28px; display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
.hero h1 { max-width: 17ch; margin-bottom: 36px; }
.hero .lead { max-width: 36em; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.7; color: var(--ink-soft); max-width: 40em; margin-bottom: 36px; }
.triad { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2vw, 1.5rem); color: var(--navy); margin-bottom: 44px; }
.triad span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); margin: 0 14px 0 4px; vertical-align: middle; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-anchor { scroll-margin-top: 24px; }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-dark .kicker { color: var(--turquoise); }
.section-dark a { color: var(--on-dark); }
.section-paper { background: var(--paper-2); }
.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head h2 { margin-bottom: 28px; }
.kicker .num { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.04em; color: var(--gold); text-transform: none; }
.section-dark .kicker .num { color: var(--gold); }
.kicker .num::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 14px; opacity: .7; }
.section-intro { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.7; color: var(--ink-soft); }
.section-dark .section-intro { color: var(--on-dark-soft); }

/* ---------- Method (01) ---------- */
.method { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.method-figure { margin: 0; max-width: 440px; width: 100%; justify-self: center; }
.method-figure .r { stroke: var(--turquoise); }
.method-figure .r1 { opacity: .9; } .method-figure .r2 { opacity: .65; } .method-figure .r3 { opacity: .45; } .method-figure .r4 { opacity: .3; }
.method-figure .stone { fill: var(--gold); }
.method-figure .stone-label { font-family: var(--serif); font-size: 13px; fill: var(--navy); letter-spacing: .02em; }
.method-figure .ring-num circle { fill: var(--navy); stroke: var(--turquoise); stroke-width: 1; }
.method-figure .ring-num text { font-family: var(--sans); font-size: 10px; font-weight: 500; fill: var(--on-dark); }

.method-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.method-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--rule-dark); }
.method-steps li:last-child { border-bottom: 1px solid var(--rule-dark); }
.step-num { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--gold); }
.method-steps h3 { font-size: clamp(1.25rem, 1.8vw, 1.45rem); margin-bottom: 6px; color: var(--on-dark); }
.method-steps p { margin: 0; color: var(--on-dark-soft); font-size: 0.98rem; }
.method-note {
  margin: clamp(48px, 7vw, 80px) auto 0; max-width: 34em; text-align: center;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.7rem); line-height: 1.45; color: var(--on-dark);
}

/* ---------- Cards (02) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.card { padding: 40px clamp(20px, 3vw, 40px) 44px 0; }
.card + .card { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--rule); }
.card-num { font-family: var(--serif); color: var(--gold-text); font-size: 1.05rem; letter-spacing: .08em; margin-bottom: 28px; }
.card h3 { margin-bottom: 18px; }
.card p:last-child { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.card .card-outcome { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: .88rem; line-height: 1.55; }
.card-outcome strong { display: block; margin-bottom: 5px; color: var(--navy); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.aside-line { margin: clamp(40px, 6vw, 64px) 0 0; padding-top: 28px; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.95rem; max-width: 52em; }

/* ---------- Decision situations ---------- */
.compact-head { margin-bottom: clamp(40px, 6vw, 64px); }
.call-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.call-grid article { padding: 34px clamp(20px, 3vw, 38px) 40px 0; }
.call-grid article + article { padding-left: clamp(20px, 3vw, 38px); border-left: 1px solid var(--rule); }
.call-grid span { display: block; margin-bottom: 26px; color: var(--gold-text); font-family: var(--serif); }
.call-grid h3 { margin-bottom: 14px; }
.call-grid p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.section-actions { margin-top: 42px; }

/* ---------- Principles (03) ---------- */
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(40px, 7vw, 96px); margin: 0; }
.principle { padding: 32px 0 36px; border-top: 1px solid var(--rule); }
.principle dt { font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 1.8rem); margin-bottom: 12px; display: flex; align-items: baseline; gap: 14px; }
.principle dt::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--turquoise); transform: translateY(-4px); }
.principle dd { margin: 0; color: var(--ink-soft); max-width: 32em; }

/* ---------- Leadership (04) ---------- */
.leader { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.leader-head { margin-bottom: 0; position: sticky; top: 120px; }
.leader-head h2 { margin-bottom: 10px; }
.role { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-soft); margin-bottom: 28px; }
.text-link { font-size: 0.86rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 4px; color: var(--navy); }
.text-link:hover { color: var(--blue); }
.leader-lead { font-family: var(--serif); font-size: clamp(1.45rem, 2.3vw, 1.85rem); line-height: 1.35; color: var(--navy); margin-bottom: 28px; }
.leader-body > p { color: var(--ink-soft); }
.timeline-title { font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin: 52px 0 8px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 9.5em 1fr auto; gap: 8px 24px; padding: 16px 0; border-top: 1px solid var(--rule); font-size: 0.95rem; align-items: baseline; }
.timeline li:last-child { border-bottom: 1px solid var(--rule); }
.t-org { font-weight: 500; color: var(--navy); }
.t-role { color: var(--ink-soft); }
.t-date { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 0.88rem; }

/* ---------- Interior pages ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(90px, 13vw, 170px) 0 clamp(96px, 14vw, 180px); border-bottom: 1px solid var(--rule); }
.page-hero::after { content: ""; position: absolute; right: -9vw; top: 50%; width: min(52vw, 660px); aspect-ratio: 1; transform: translateY(-50%); border: 1px solid rgba(50,164,195,.28); border-radius: 50%; box-shadow: 0 0 0 48px rgba(50,164,195,.045), 0 0 0 96px rgba(9,105,172,.025); pointer-events: none; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { max-width: 16ch; margin-bottom: 16px; }
.page-hero .lead { max-width: 38em; margin-top: 30px; margin-bottom: 0; }
.page-hero .profile-link { margin-top: 30px; }
.page-role { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-style: italic; }
.model-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(44px, 8vw, 110px); align-items: start; }
.model-copy { padding-top: 4px; color: var(--ink-soft); font-size: 1.04rem; }
.model-copy p { max-width: 38em; }
.contact-action { align-self: end; }
.conversation-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 9vw, 120px); align-items: start; }
.prompt-list { border-top: 1px solid var(--rule); }
.prompt-list > div { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.prompt-list span { display: block; margin-bottom: 5px; color: var(--blue); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.prompt-list p { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 1.35rem; }
.direct-contact-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 9vw, 120px); align-items: end; }
.contact-email { color: var(--on-dark) !important; font-family: var(--serif); font-size: clamp(1.55rem, 3.4vw, 2.8rem); text-decoration: none; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--turquoise) !important; text-decoration: underline; }

/* ---------- Contact (05) ---------- */
.contact-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 96px); align-items: end; }
.contact h2 { margin-bottom: 24px; }
.contact .section-intro { margin: 0; max-width: 30em; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 20px 0; border-top: 1px solid var(--rule-dark); display: flex; flex-direction: column; gap: 4px; }
.contact-list li:last-child { border-bottom: 1px solid var(--rule-dark); }
.c-label { font-size: 0.74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.contact-list a { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.6rem); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--turquoise); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark-soft); padding: 56px 0; font-size: 0.85rem; border-top: 1px solid var(--rule-dark); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-logo { width: 170px; height: auto; }
.footer-meta { text-align: right; }
.footer-meta p { margin: 0 0 4px; }
.footer-triad { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--on-dark); margin-bottom: 10px !important; }
.site-footer a { color: var(--on-dark); }

/* ---------- Responsive ---------- */
@media (min-width: 1400px) {
  :root { --section-y: 136px; }
}
@media (max-width: 960px) {
  .method { grid-template-columns: 1fr; }
  .method-figure { max-width: 300px; }
  .cards { grid-template-columns: 1fr; }
  .card, .card + .card { padding: 36px 0; border-left: 0; }
  .card + .card { border-top: 1px solid var(--rule); }
  .leader { grid-template-columns: 1fr; }
  .leader-head { position: static; }
  .contact-inner { grid-template-columns: 1fr; align-items: start; }
  .call-grid { grid-template-columns: 1fr; }
  .call-grid article, .call-grid article + article { padding: 30px 0 34px; border-left: 0; }
  .call-grid article + article { border-top: 1px solid var(--rule); }
  .model-grid, .conversation-grid, .direct-contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .principles { grid-template-columns: 1fr; }
  .hero-ripples { right: -60vw; width: 125vw; opacity: .16; }
  .page-hero::after { right: -54vw; width: 120vw; opacity: .6; }
  .timeline li { grid-template-columns: 1fr auto; }
  .timeline .t-role { grid-column: 1 / -1; grid-row: 2; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: left; }
  .btn { width: 100%; justify-content: center; }
  .btn-quiet { width: auto; }
  .contact-action { width: 100%; }
}

@media print {
  .site-header, .hero-ripples, .nav-toggle { display: none; }
  .section-dark, .site-footer { background: none; color: #000; }
  body { background: #fff; }
}

/* 404 page */
.logo-404 { width: 190px; margin-bottom: 64px; }
.h1-404 { margin-bottom: 28px; }
