/* ---------- Self-hosted font (no external Google Fonts request) ---------- */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/regular.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/semibold.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/italic.woff2") format("woff2");
}

/* ---------- Tokens (Broadsheet design system) ---------- */
:root {
  --paper: #f3f2f2;
  --ink: #201e1d;
  --ink-soft: #444141;
  --muted: #605d5d;
  --line: color-mix(in srgb, #201e1d 16%, transparent);
  --line-soft: color-mix(in srgb, #201e1d 8%, transparent);

  --accent: #006786;
  --accent-hover: #004961;
  --accent-active: #62c5ee;
  --accent-2: #aa0b56;
  --growth: #167a45;

  --neutral-200: #eae7e7;
  --neutral-300: #d7d3d3;
  --neutral-400: #bab6b6;

  --dark: #201e1d;
  --dark-line: rgba(255, 255, 255, 0.16);
  --dark-soft: #bab6b6;

  --sans: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "Source Serif 4", Georgia, "Times New Roman", serif;

  --max: 1200px;
  --pad: clamp(1.25rem, 5vw, 4.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Restrained reveal — headings only, opacity only ---------- */
.reveal {
  opacity: 0;
  transition: opacity 0.5s ease;
}
.reveal.in { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--pad);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
  font-family: var(--sans);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mark-primary { font-weight: 600; color: var(--ink); }
.mark-italic { font-weight: 400; font-style: italic; color: var(--ink); }
.mark-dot { font-weight: 600; color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.main-nav a:hover { color: var(--ink); }
.main-nav .nav-say-hello {
  color: var(--accent);
  font-weight: 600;
}

.nav-dropdown { position: relative; padding-bottom: 0.9rem; margin-bottom: -0.9rem; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.4rem;
  min-width: 260px;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  flex-direction: column;
  gap: 0.1rem;
  z-index: 50;
  transition: opacity 0.15s ease;
  transition-delay: 0.15s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  max-height: min(75vh, 620px);
  overflow-y: auto;
  visibility: visible;
  opacity: 1;
  display: flex;
  transition-delay: 0s;
}
.nav-group { border-top: 1px solid var(--line-soft); margin-top: 0.2rem; }
.nav-group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.7rem 0.35rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary:hover { color: var(--ink-soft); }
.nav-group-arrow {
  font-size: 0.65rem;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.nav-group[open] .nav-group-arrow { transform: rotate(180deg); }
.nav-group-links { display: flex; flex-direction: column; padding-bottom: 0.3rem; }
.nav-dropdown-menu a {
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  border-radius: 2px;
}
.nav-dropdown-menu a:hover { color: var(--accent); background: var(--line-soft); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 20px;
  position: relative;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--ink);
}
.menu-toggle span:first-child { top: 0; }
.menu-toggle span:last-child { bottom: 0; }

/* ---------- Section shared ---------- */
section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5.5rem var(--pad);
}

.section-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0 0 3rem;
  max-width: 22ch;
}
.section-title.small {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  margin-bottom: 2rem;
  max-width: none;
}
.section-intro {
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: -1.6rem 0 2.6rem;
}
.section-subtitle {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: -1.8rem 0 2.2rem;
  max-width: 50ch;
}

/* ---------- Article (blog) ---------- */
.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1.6rem 0 0;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}
.article-byline strong { color: var(--ink-soft); font-weight: 600; }

.takeaways li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}
.takeaways li:last-child { margin-bottom: 0; }
.takeaways li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 2px;
  background: var(--accent);
}

.author-bio {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
  margin-top: 1rem;
}
.author-bio-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.8rem;
}
.author-bio h3 {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.author-bio p {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(4rem, 10vh, 6rem);
  padding-bottom: 4rem;
}
.hero-tag {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1.6rem;
}
.hero-headline {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 3rem;
  max-width: 18ch;
}
.hero-headline .accent { color: var(--accent); }

.hero-grid {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}
.hero-meta {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  font-family: var(--sans);
  font-size: 0.95rem;
  margin-top: 1.75rem;
}
.hero-meta a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.hero-meta a:hover { color: var(--accent-hover); }

/* ---------- Results band ---------- */
.results-band {
  max-width: none;
  padding: 0 var(--pad) 3.5rem;
  border-bottom: 1px solid var(--line);
}
.results-row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--line);
}
.result { display: flex; flex-direction: column; }
.result-num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.result-num.accent-num { color: var(--accent); }
.result-label {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Summary / TLDR ---------- */
.summary { padding-top: 4rem; padding-bottom: 3rem; }
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2rem clamp(1.75rem, 5vw, 6rem);
}
.results-heading {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  max-width: 20ch;
  margin: 0;
}
.tldr-text {
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 2rem;
}
.tldr-text strong { color: var(--ink); font-weight: 600; }
.pull-quote {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 26ch;
  margin: 0 0 2.2rem;
  color: var(--ink);
}
.summary-body {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ---------- Ledger (services) ---------- */
.ledger-row {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) minmax(0, 4fr) minmax(0, 6fr);
  gap: 1.4rem clamp(1.25rem, 4vw, 4rem);
  align-items: start;
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.35s cubic-bezier(.2,.7,.2,1);
}
.ledger-row:last-child { border-bottom: 1px solid var(--line); }
.ledger-row:hover { padding-left: 0.9rem; }
.ledger-num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--neutral-300);
  font-feature-settings: "tnum" 1;
  transition: color 0.35s ease;
}
.ledger-row:hover .ledger-num { color: var(--accent); }
.ledger-title { display: flex; flex-direction: column; gap: 0.85rem; }
.ledger-row h3 {
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}
.ledger-row p {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}
.inline-link {
  color: var(--accent);
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-link:hover { color: var(--accent-hover); }

/* ---------- Process steps ---------- */
.process-step {
  border-top: 1px solid var(--line);
  padding: 1.8rem 0;
}
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-step-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.process-step-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
}
.process-step-head h3 {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
}
.process-step p {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ---------- Mistake list ---------- */
.mistake-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.4rem;
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}
.mistake-list li:last-child { margin-bottom: 0; }
.mistake-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 2px;
  background: var(--accent);
}
.mistake-list li strong { color: var(--ink); }

/* ---------- Prose blocks (audience / manifesto / case study / bilingual) ---------- */
.prose p {
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 1.4rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose h3 { font-size: 1.3rem; color: var(--ink); margin: 2rem 0 1rem; }
.prose ul, .prose ol {
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 1.4rem;
  padding-left: 1.3rem;
}
.prose li { margin-bottom: 0.5rem; }
.prose li:last-child { margin-bottom: 0; }
.prose li strong { color: var(--ink); }
.prose-table-wrap { max-width: 74ch; overflow-x: auto; margin: 0 0 1.6rem; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}
.prose table caption { display: none; }
.prose th, .prose td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose thead th {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 2px solid var(--ink);
}
.prose tbody td { color: var(--ink-soft); }
.prose tbody tr:last-child td { border-bottom: 1px solid var(--line); }

.manifesto {
  max-width: none;
  padding: 5.5rem var(--pad);
  border-top: 1px solid var(--line);
}
.manifesto > .section-title {
  max-width: 26ch;
  color: var(--ink);
}
.manifesto .prose-dark {
  max-width: var(--max);
  margin: 0 auto;
}
.manifesto .prose-dark p {
  color: var(--ink-soft);
  max-width: 66ch;
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 1.75rem clamp(1.75rem, 5vw, 6rem);
  padding-top: 2.6rem;
}
.case-study .section-title { margin-bottom: 1.75rem; }
.case-study-all { display: inline-block; margin-top: 1rem; }
.case-study-stats { display: grid; align-content: start; gap: 1.75rem; }
.case-stat {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
}
.case-stat-unit { font-size: 0.45em; font-weight: 400; font-style: italic; letter-spacing: 0; }
.case-stat-accent2 { color: var(--accent-2); }
.case-stat-label {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Record (experience) ---------- */
.record-company {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.4rem clamp(1.75rem, 5vw, 6rem);
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 3.5rem;
}
.record-company:last-child { border-bottom: 1px solid var(--line); }
.record-sticky { align-self: start; }
.record-company-head {
  margin-bottom: 0;
}
.record-company-head h3 {
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin: 0;
  letter-spacing: -0.01em;
}
.record-company-head .amp { color: var(--accent); }
.record-loc {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}
.record-stat {
  margin: 2rem 0 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-feature-settings: "tnum" 1;
}
.record-stat-label {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 26ch;
}
.record-roles { display: grid; gap: 2rem; }
.record-role + .record-role { margin-top: 0; }
.record-role-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}
.record-role-head h4 {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
  color: var(--ink);
}
.record-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.record-role ul li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.65rem;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 68ch;
}
.record-role ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Skills ---------- */
.skills-grid { display: grid; }
.skill-group {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr);
  gap: 1.4rem clamp(1.75rem, 5vw, 6rem);
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.skill-group:last-child { border-bottom: 1px solid var(--line); }
.skill-group-head { display: flex; align-items: baseline; gap: 0.9rem; }
.skill-num { font-size: 0.8rem; color: var(--accent); font-feature-settings: "tnum" 1; }
.skill-group h4 {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem 1.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.skill-list li { position: relative; padding-left: 1rem; }
.skill-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  background: var(--accent);
}
.tags {
  font-size: 1rem;
  line-height: 2;
  color: var(--ink-soft);
}
.tags span:hover { color: var(--accent); }
.tags span:not(:last-child)::after {
  content: " / ";
  color: var(--line);
  margin: 0 0.05em;
}

/* ---------- Bilingual ---------- */
.bilingual-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2.5rem;
}
.bilingual-tag {
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--neutral-200);
  height: fit-content;
  user-select: none;
}

/* ---------- Education ---------- */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
}
.edu-item + .edu-item { margin-top: 2rem; }
.edu-date { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.edu-item h4 { font-weight: 600; font-size: 1.05rem; margin: 0.4rem 0 0.3rem; }
.edu-item p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.lang-row { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.lang-item h4 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.2rem; }
.lang-item p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.cert-line { margin-top: 1.6rem; font-size: 0.9rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { position: relative; overflow: hidden; isolation: isolate; }
.faq .section-intro::before {
  content: "?";
  position: absolute;
  top: 0.5rem;
  right: clamp(-1rem, 2vw, 2rem);
  font-family: var(--sans);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(9rem, 16vw, 15rem);
  line-height: 1;
  color: var(--neutral-200);
  z-index: -1;
  user-select: none;
  pointer-events: none;
}
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.7rem 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h2 {
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin: 0;
  flex: 1;
  letter-spacing: -0.01em;
}
.faq-toggle {
  font-family: var(--mono);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-answer { padding: 0 0 1.8rem; }
.faq-answer p {
  margin: 0;
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--accent); padding: 0.85rem 0.3rem; }
.btn-ghost:hover { text-decoration: underline; }

.inline-cta {
  max-width: 66ch;
  margin: 0 0 1.8rem;
  padding: 1.4rem 1.6rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
}
.inline-cta p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  flex: 1 1 28ch;
}
.inline-cta-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; flex-shrink: 0; }
.inline-cta .btn { padding: 0.65rem 1.2rem; font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact {
  max-width: none;
  padding: 0 var(--pad) 7rem;
}
.contact-title {
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  margin: 2.6rem 0;
}
.contact-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.contact-note {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0;
}
.contact-links {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
}
.contact-links a:hover { color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding: 2rem var(--pad) 2.6rem;
  max-width: var(--max);
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.site-footer a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 61px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .main-nav.open { max-height: calc(100vh - 61px); overflow-y: auto; }
  .main-nav a { padding: 1rem var(--pad); border-top: 1px solid var(--line-soft); width: 100%; }
  .menu-toggle { display: block; z-index: 101; }
  .menu-toggle.active span:first-child { transform: translateY(9px) rotate(45deg); }
  .menu-toggle.active span:last-child { transform: translateY(-9px) rotate(-45deg); }
  .menu-toggle span { transition: transform 0.25s ease; }

  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu {
    position: static;
    display: flex;
    border: none;
    margin-top: 0;
    padding: 0;
    min-width: 0;
  }
  .nav-dropdown-menu a { padding: 0.85rem var(--pad) 0.85rem calc(var(--pad) + 1rem); border-top: 1px solid var(--line-soft); border-radius: 0; }
  .nav-group summary { padding: 0.85rem var(--pad); border-top: 1px solid var(--line-soft); }
  .nav-group-links a { padding-top: 0.75rem; padding-bottom: 0.75rem; }


  .results-row { gap: 2rem 2.5rem; }

  .ledger-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .ledger-num { padding-top: 0; }

  .record-role-head { flex-direction: column; gap: 0.3rem; }

  .skill-group { grid-template-columns: 1fr; gap: 0.9rem; }

  .bilingual-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .bilingual-tag { flex-direction: row; border-left: none; border-top: 2px solid var(--accent); padding-left: 0; padding-top: 0.8rem; }

  .edu-grid { grid-template-columns: 1fr; gap: 3rem; }

  .site-footer { flex-direction: column; gap: 0.4rem; }
}

/* ---------- Floating Call / WhatsApp CTA ---------- */
.cta-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.cta-float-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 3.2rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(13, 13, 13, 0.2), 0 2px 6px rgba(13, 13, 13, 0.12);
  opacity: 0;
  transform: translateY(16px) scale(0.92);
  animation: ctaFloatIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta-float-call { background: var(--accent); animation-delay: 0.4s; }
.cta-float-whatsapp { background: #25d366; animation-delay: 0.58s; }

.cta-float-btn svg { flex: none; width: 1.4rem; height: 1.4rem; }

.cta-float-btn .cta-float-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.35s ease, opacity 0.25s ease;
  white-space: nowrap;
}
.cta-float-btn:hover .cta-float-label,
.cta-float-btn:focus-visible .cta-float-label {
  max-width: 8rem;
  opacity: 1;
}
.cta-float-btn:hover,
.cta-float-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(13, 13, 13, 0.24), 0 3px 8px rgba(13, 13, 13, 0.14);
}
.cta-float-btn:active { transform: translateY(-1px) scale(0.98); }

.cta-float-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  animation: ctaPulse 2.6s ease-out infinite;
  animation-delay: 1.4s;
  pointer-events: none;
}

@keyframes ctaFloatIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 640px) {
  .cta-float-btn {
    width: 3.1rem;
    height: 3.1rem;
    padding: 0;
    justify-content: center;
  }
  .cta-float-btn .cta-float-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-float-btn { animation: none; opacity: 1; transform: none; }
  .cta-float-ring { animation: none; box-shadow: none; }
}

/* ---------- Broadsheet flourishes (homepage) ---------- */
@keyframes text-glint {
  0%, 30% { background-position: 100% 0; }
  70%, 100% { background-position: 0% 0; }
}
.hero-headline .glint {
  font-weight: 400;
  color: transparent;
  background-image: linear-gradient(100deg, var(--muted) 0%, var(--muted) 42%, var(--neutral-400) 50%, var(--muted) 58%, var(--muted) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: text-glint 7s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .hero-headline .glint { animation: none; } }

.hero-headline .detail {
  display: block;
  font-weight: 400;
  font-style: italic;
  font-size: 0.55em;
  line-height: 1.3;
  margin-top: 0.35em;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Double hairline: a heavier rule with a hairline running just under it */
.hairline-strip {
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  height: 5px;
}
.meta-strip {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0.9rem 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--ink);
}

/* Giant faded watermark numeral/glyph, sits behind a sticky intro column */
.watermark {
  margin: 2.6rem 0 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(5.5rem, 10vw, 9.5rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--neutral-200);
  user-select: none;
  pointer-events: none;
}
.watermark.italic-serif { font-style: italic; font-weight: 400; }

/* Sheen sweep across a solid button */
@keyframes btn-sheen {
  0% { transform: translateX(-160%) skewX(-20deg); }
  55%, 100% { transform: translateX(260%) skewX(-20deg); }
}
.btn-sheen {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-sheen::after {
  content: "";
  position: absolute;
  top: -20%; bottom: -20%; left: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 30%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.05) 70%, transparent 100%);
  animation: btn-sheen 4.2s cubic-bezier(.4,0,.2,1) infinite;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .btn-sheen::after { animation: none; display: none; } }

/* Sticky intro column, used to pin a section's lead-in next to longer content */
.sticky-col { position: sticky; top: 6.5rem; align-self: start; }

@media (max-width: 860px) {
  .sticky-col { position: static; }
}

/* ---------- Case studies (list) ---------- */
.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: -2rem 0 2.6rem;
}
.case-filter {
  font: inherit;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.case-filter:hover { border-color: var(--accent); color: var(--ink); }
.case-filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.case-list { display: grid; }
.case-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.4rem clamp(1.75rem, 5vw, 6rem);
  padding: 2.6rem 0;
  border-top: 1px solid var(--line);
}
.case-row:last-child { border-bottom: 1px solid var(--line); }
.case-row[hidden] { display: none; }

.case-row-head h3 {
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  margin: 0;
  letter-spacing: -0.01em;
}
.case-row-sector {
  margin: 0.4rem 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.case-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
}
.case-row-tags li {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.case-row-stat {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-feature-settings: "tnum" 1;
}
.case-row-stat-label {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 24ch;
}
.case-row-body p {
  margin: 0 0 1.3rem;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}
.case-row-body p:last-child { margin-bottom: 0; }
