/* ==========================================================================
   GROWSMART — styles
   Warm minimalism: Scandinavian simplicity, Japanese attention to detail.
   Layout idea: left-aligned editorial columns with hairlines, one serif
   italic voice for the second half of each headline, terracotta used only
   for small accents and the map. Only the footer is dark.
   ========================================================================== */

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-ext-wght-italic.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* The five base colours are overridden from config.js (brandColors). */
  --paper: #F8F5EE;   /* warm paper: page background */
  --brand: #262622;   /* soft black: text, headlines, buttons */
  --accent: #B66D50;  /* terracotta: small accents and the map */
  --sand: #E6D9C8;    /* natural sand: tinted bands, drawings */
  --muted: #61584F;   /* muted brown: secondary text */

  /* derived */
  --paper-2: color-mix(in srgb, var(--paper) 55%, var(--sand));
  --sand-2: color-mix(in srgb, var(--sand) 78%, var(--muted));
  --ink: var(--brand);
  --ink-soft: var(--muted);
  --rule: color-mix(in srgb, var(--brand) 16%, transparent);
  --rule-strong: color-mix(in srgb, var(--brand) 70%, transparent);
  --hover: color-mix(in srgb, var(--brand) 7%, transparent);

  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(88px, 12vw, 168px);
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; text-wrap: balance; }
::selection { background: var(--sand); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.site-footer :focus-visible { outline-color: var(--paper); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--paper); padding: 10px 16px; text-decoration: none; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 880px; }

/* ---------- type ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); flex: none; }

h2 { font-size: clamp(2.2rem, 5.2vw, 4.25rem); line-height: 1.02; letter-spacing: -.04em; }

/* the serif voice: second half of headlines */
.soft { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.025em; color: var(--ink-soft); }

.sub { font-size: clamp(1.125rem, 1.7vw, 1.3125rem); line-height: 1.5; letter-spacing: -.005em; color: var(--ink-soft); max-width: 34em; }

/* section heads: headline left, supporting line right, label on top */
.head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px clamp(28px, 6vw, 88px); align-items: end;
  margin-bottom: clamp(44px, 7vw, 88px); text-align: left;
}
.head .eyebrow { grid-column: 1 / -1; }
.head h2 { grid-column: 1; }
.head h2:last-child { grid-column: 1 / -1; max-width: 16em; }
.head .sub { grid-column: 2; padding-bottom: .5em; }

.list-title { margin: clamp(48px, 7vw, 88px) 0 18px; font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.caption { margin-top: 22px; font-size: .875rem; color: var(--ink-soft); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
}
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 20px; }

.wordmark { font-size: 1.375rem; font-weight: 700; letter-spacing: -.045em; line-height: 1; color: var(--brand); text-decoration: none; }
.wordmark span { color: var(--accent); }
.site-footer .wordmark { color: var(--paper); }

.site-header .nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.nav a { position: relative; font-size: .875rem; text-decoration: none; color: var(--ink-soft); padding: 8px 0; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--brand); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 2px; }
.icon-link { width: 40px; height: 40px; display: grid; place-items: center; color: var(--brand); border-radius: 50%; transition: background-color .25s, color .25s; }
.icon-link:hover { background: var(--sand); }
.icon-link svg { width: 17px; height: 17px; fill: currentColor; }

.menu-btn { display: none; width: 40px; height: 40px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--brand); place-items: center; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .2s, background-color .2s; }
.menu-btn__bars { position: relative; }
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -6px; }
.menu-btn__bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* language selector */
.lang ul { display: flex; align-items: center; }
.lang li + li::before { content: "·"; color: var(--sand-2); margin: 0 .15em; }
.lang a { display: inline-block; padding: 8px 4px; font-size: .75rem; font-weight: 600; letter-spacing: .06em; color: var(--ink-soft); text-decoration: none; transition: color .2s; }
.lang a:hover { color: var(--brand); }
.lang a[aria-current="true"] { color: var(--brand); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.lang--footer { grid-column: 1 / -1; }
.lang--footer a { color: color-mix(in srgb, var(--paper) 70%, transparent); font-size: .8125rem; }
.lang--footer a:hover, .lang--footer a[aria-current="true"] { color: var(--paper); }
.lang--footer li + li::before { color: color-mix(in srgb, var(--paper) 40%, transparent); }
.lang--doc { margin-left: auto; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px;
  font: 500 1.0625rem/1 var(--font); letter-spacing: -.01em; text-decoration: none;
  border-radius: 999px; border: 1px solid var(--brand);
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.btn svg { width: 17px; height: 17px; fill: currentColor; flex: none; }
.btn--primary { background: var(--brand); color: var(--paper); }
.btn--primary:hover { background: var(--muted); border-color: var(--muted); }
.btn--ghost { color: var(--brand); }
.btn--ghost:hover { background: var(--sand); }
.btn:active { transform: translateY(1px); }

.text-link { font-size: .9375rem; color: var(--ink-soft); text-decoration-color: var(--accent); text-underline-offset: 5px; padding: 10px 0; transition: color .2s; }
.text-link:hover { color: var(--brand); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding-block: clamp(72px, 11vw, 150px) clamp(64px, 9vw, 120px); }
/* a quiet sand disc, half off the page: the only ornament */
.hero::before {
  content: ""; position: absolute; z-index: 0;
  width: clamp(280px, 46vw, 660px); aspect-ratio: 1; border-radius: 50%;
  right: clamp(-200px, -9vw, -60px); top: clamp(-120px, -6vw, -40px);
  background: var(--sand); opacity: .7;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 270px);
  column-gap: clamp(28px, 6vw, 88px); justify-items: start;
}
.hero .wrap > * { grid-column: 1; }
.hero .wrap > h1 { grid-column: 1 / -1; }
.hero h1 { margin-top: 30px; font-size: clamp(2.9rem, 9.4vw, 7.5rem); line-height: .94; letter-spacing: -.05em; }
.hero h1 .soft { color: var(--accent); font-weight: 300; letter-spacing: -.035em; }
.hero .sub { margin-top: clamp(28px, 4vw, 44px); max-width: 31em; color: var(--ink); }
.hero .cta-row { margin-top: 36px; }
.hero .text-link { margin-top: 8px; }

.hero .hero__id {
  grid-column: 2; grid-row: 3 / span 3; align-self: end;
  display: grid; gap: 6px; padding-top: 18px; border-top: 1px solid var(--rule-strong);
  font-size: .9375rem; color: var(--ink-soft);
}
.hero__name { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.75rem; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); margin-bottom: 4px; }
.markets-inline { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.markets-inline li:not(:last-child)::after { content: "·"; margin: 0 .6em; color: var(--accent); }
.monogram { display: block; margin-bottom: 12px; }
.monogram img { width: 52px; height: 52px; object-fit: contain; }

/* ---------- sections ---------- */

.section { padding-block: var(--section); }

/* ---------- maps ---------- */

.mapsec { background: var(--paper-2); }
.map { margin: 0 0 clamp(56px, 8vw, 104px); }
.map__world { width: 100%; height: auto; overflow: visible; }
.map__arcs path { fill: none; stroke: var(--brand); stroke-width: 1.2; stroke-linecap: round; opacity: .55; }
.map__flow circle { fill: var(--accent); }
.map__origins circle { fill: var(--paper); stroke: var(--brand); stroke-width: 1.6; }
.map__hub circle { fill: var(--accent); }
.map__ring { fill: none; stroke: var(--paper); stroke-width: 1.5; opacity: .6; transform-box: fill-box; transform-origin: center; animation: map-pulse 3.2s ease-out infinite; }
.map__ring--hub { stroke: var(--accent); opacity: .5; }
@keyframes map-pulse { from { transform: scale(.5); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
.map__label { font: 600 17px/1 var(--font); fill: var(--brand); letter-spacing: .01em; }
.map__label--muted { fill: var(--muted); font-size: 15px; font-weight: 500; }
.map__label--hub { fill: var(--brand); font-size: 19px; }
.map__label--on { fill: var(--paper); font-size: 19px; }
.map figcaption { display: grid; gap: 10px; justify-items: start; margin-top: clamp(20px, 3vw, 36px); padding-top: 22px; border-top: 1px solid var(--rule); }
.map figcaption .caption { margin-top: 0; max-width: 48em; }
.map__open { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }

.map__below { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.map__inset { margin: 0; }
.map__inset svg { width: 100%; height: auto; border-radius: 4px 120px 4px 4px; background: var(--sand); }
.map__nb { fill: var(--sand-2); stroke: var(--paper); stroke-width: 1.4; stroke-linejoin: round; }
.map__pl { fill: var(--accent); stroke: var(--paper); stroke-width: 1.4; stroke-linejoin: round; }
.map__reach { fill: none; stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .7; }
.map__hubdot { fill: var(--paper); }

.map__side { display: grid; gap: 18px; align-content: center; }
.map__local { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.map__text { color: var(--ink-soft); }
.map__markets { border-top: 1px solid var(--rule-strong); }
.map__markets li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.map__markets i { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--sand-2); }
.map__markets .is-hub i { background: var(--accent); }
.map__markets .is-open i { background: none; border: 1.5px dashed var(--muted); }
.map__markets span { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: .875rem; color: var(--ink-soft); }
.map__markets strong { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.map__markets .is-open span { color: var(--ink); font-size: .9375rem; }
.map__side .caption { margin-top: 0; }

/* ---------- what I can do: an index, not cards ---------- */

.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); border-top: 1px solid var(--rule-strong); }
.services li { display: grid; gap: 10px; align-content: start; padding: 30px 0 34px; border-bottom: 1px solid var(--rule); transition: transform .35s ease; }
.services li:hover { transform: translateY(-3px); }
.services svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.services h3 { font-size: clamp(1.3rem, 2.1vw, 1.65rem); letter-spacing: -.03em; line-height: 1.12; }
.services p { color: var(--ink-soft); font-size: .9375rem; }

/* ---------- industries: tabs set as large type ---------- */

.chooser { padding-bottom: 0; }
.chooser .head { margin-bottom: clamp(36px, 5vw, 60px); }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); border-bottom: 1px solid var(--rule); }
.choice {
  position: relative; display: grid; gap: 8px; align-content: end;
  padding: 0 0 22px; text-decoration: none; color: var(--ink-soft);
  transition: color .25s;
}
.choice strong { font-size: clamp(1.3rem, 2.6vw, 2.1rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; color: inherit; }
.choice span { font-size: .875rem; }
.choice::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.choice:hover { color: var(--ink); }
.choice[aria-selected="true"] { color: var(--ink); }
.choice[aria-selected="true"]::after { transform: scaleX(1); }

.panel[hidden] { display: none; }
.panel:focus { outline: none; }
.sector { padding-top: clamp(48px, 7vw, 88px); }
.sector.dark { background: var(--sand); margin-top: clamp(48px, 7vw, 88px); padding-top: var(--section); }
.sector__intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.sector__intro--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.sector__intro--reverse .sector__media { order: -1; }
.sector__text { display: grid; gap: 20px; justify-items: start; }
.sector__text h2 { font-size: clamp(2.1rem, 4.6vw, 3.75rem); }
.sector__media { margin: 0; }
.tile__media { position: relative; overflow: hidden; background: var(--sand); border-radius: 160px 160px 6px 6px; }
.sector__intro--reverse .tile__media { border-radius: 6px 6px 160px 160px; }
.sector.dark .tile__media { background: var(--paper-2); }
.tile__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tile__media figcaption { position: absolute; right: 12px; bottom: 8px; font-size: .6875rem; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }

/* line drawings */
.ill { width: 100%; height: auto; color: var(--brand); }
.ill .a { fill: var(--paper); }
.ill .b { fill: color-mix(in srgb, var(--sand-2) 55%, var(--paper)); }
.ill .ball, .ill > path[fill="currentColor"], .ill g[fill="currentColor"] { fill: var(--accent); }
.ill .shade { fill: color-mix(in srgb, var(--brand) 7%, transparent); stroke: none; }
.ill .limb-o path { stroke: currentColor; stroke-width: 24; }
.ill .limb-i path { stroke: var(--paper); stroke-width: 18; }

/* the same short list under each industry, set as a quiet row */
.coop { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--rule-strong); }
.coop li { flex: 1 1 0; min-width: 150px; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); font-size: clamp(1rem, 1.5vw, 1.1875rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.coop li::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-bottom: 12px; }
.sector .caption + .list-title { margin-top: clamp(40px, 6vw, 64px); }

.flags { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 24px 12px; justify-items: start; }
.flags li { display: grid; gap: 12px; justify-items: start; }
.flags img { width: 48px; height: 36px; object-fit: cover; border-radius: 50%; aspect-ratio: 1; width: 40px; height: 40px; box-shadow: 0 0 0 1px var(--rule), 0 0 0 5px var(--paper); }
.flags span { font-size: .8125rem; font-weight: 500; }

.player__grid { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 clamp(24px, 4vw, 56px); border-top: 1px solid var(--rule-strong); }
.player__item { padding-block: 24px; display: grid; gap: 6px; align-content: start; border-bottom: 1px solid var(--rule); }
.player__label { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.player__value { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.1rem); letter-spacing: -.02em; line-height: 1.1; }
.player__note { font-size: .875rem; color: var(--ink-soft); }

/* ---------- about ---------- */

.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 7vw, 104px); align-items: start; }
.about h2 { font-size: clamp(2.2rem, 4.8vw, 3.9rem); }
.about h2 .soft { color: var(--accent); }
.about__body { display: grid; gap: 20px; padding-top: .4em; }
.about__body p { color: var(--ink-soft); }
.about__body .lead { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.4; letter-spacing: -.012em; color: var(--ink); }
.employers { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 36px; padding-top: 22px; border-top: 1px solid var(--rule-strong); }
.employers__name { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.employers__note { flex-basis: 100%; font-size: .875rem; color: var(--ink-soft); }

.exp { margin-top: clamp(72px, 10vw, 136px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--rule-strong); display: grid; gap: 22px; justify-items: start; }
.exp h2 { max-width: 14em; }
.exp__close { margin-top: clamp(20px, 3vw, 36px); font-size: clamp(1.7rem, 4vw, 3rem); font-weight: 600; line-height: 1.05; letter-spacing: -.04em; text-wrap: balance; }
html:is(:lang(ja), :lang(ko), :lang(zh)) .exp__close { letter-spacing: 0; line-height: 1.4; font-size: clamp(1.4rem, 3vw, 2.25rem); }
.results { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: clamp(24px, 4vw, 44px); padding-block: clamp(28px, 4vw, 44px); border-block: 1px solid var(--rule); }
.results li { display: grid; gap: 10px; align-content: start; }
.results strong { font-family: var(--serif); font-weight: 300; font-size: clamp(3.4rem, 8vw, 6.25rem); line-height: .9; letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.results li:first-child strong { color: var(--accent); }
.results span { font-size: .9375rem; color: var(--ink-soft); max-width: 16em; }

/* ---------- who I work with ---------- */

.who { background: var(--paper-2); }
.who .wrap { display: grid; gap: 22px; justify-items: start; max-width: 1200px; }
.who h2 { max-width: 13em; }
.who h2 .soft { display: block; }
.who .sub { max-width: 36em; }
.who__close {
  margin-top: clamp(24px, 4vw, 48px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--rule-strong); width: 100%;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(2rem, 5.4vw, 4.25rem); line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; color: var(--accent);
}

/* ---------- contact ---------- */

.contact { background: var(--sand); padding-block: var(--section); }
.contact .wrap { display: grid; justify-items: start; }
.contact h2 { margin-top: 22px; font-size: clamp(2.6rem, 7.6vw, 6rem); line-height: .96; max-width: 11em; }
.contact .sub { margin-top: 26px; color: var(--ink); }
.contact__id { margin-top: clamp(36px, 5vw, 56px); display: grid; gap: 2px; font-size: .9375rem; color: var(--ink-soft); }
.contact__name { font-family: var(--serif); font-style: italic; font-size: 1.75rem; letter-spacing: -.02em; color: var(--ink); }
.contact .cta-row { margin-top: 28px; }
.contact .btn { min-height: 58px; padding: 0 32px; }
.contact .btn--ghost:hover { background: var(--paper); }
.contact__note { margin-top: 22px; font-size: .875rem; color: var(--ink-soft); }
#email-option { margin-top: 14px; }
#email-option a { display: inline-flex; gap: 8px; align-items: center; }
#email-option svg { width: 18px; height: 18px; }

/* ---------- footer (the only dark surface) ---------- */

.site-footer { background: var(--brand); color: color-mix(in srgb, var(--paper) 70%, transparent); padding-block: 40px 48px; font-size: .8125rem; }
.footer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: center; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer-nav a { text-decoration: none; padding: 6px 0; display: inline-block; transition: color .2s; }
.footer-nav a:hover { color: var(--paper); }
.footer-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; }
.footer-links a { color: var(--paper); text-underline-offset: 4px; text-decoration-color: var(--accent); }
.footer-legal { grid-column: 1 / -1; max-width: 90ch; }

/* ---------- legal pages ---------- */

.doc { padding-top: clamp(40px, 6vw, 72px); }
.doc .wrap { display: grid; gap: 16px; }
html .doc h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1; letter-spacing: -.04em; margin: 8px 0 12px; }
html .doc h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.2; letter-spacing: -.025em; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--rule); }
.doc p { color: var(--ink-soft); max-width: 68ch; }
.doc p a { color: var(--brand); text-decoration-color: var(--accent); }

/* ---------- quiet scroll reveal (added by script.js, never hides content without it) ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- multilingual typography ---------- */

:lang(ja) { --font: "Instrument Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", sans-serif; --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Serif CJK JP", serif; }
:lang(ko) { --font: "Instrument Sans", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif; --serif: "AppleMyungjo", "Batang", "Noto Serif KR", "Noto Serif CJK KR", serif; }
:lang(zh) { --font: "Instrument Sans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif; --serif: "Songti SC", "SimSun", "Noto Serif SC", "Noto Serif CJK SC", serif; }

html:is(:lang(ja), :lang(ko), :lang(zh)) body { line-height: 1.8; font-family: var(--font); }
html:is(:lang(ja), :lang(ko), :lang(zh)) :is(h1, h2, h3, h4, .sub, .soft, .choice strong, .player__value, .map__open, .map__local, .who__close, .results strong, .coop li, .services h3, .hero__name, .contact__name) { letter-spacing: 0; font-style: normal; }
html:is(:lang(ja), :lang(ko), :lang(zh)) .soft { font-weight: 500; }
html:is(:lang(ja), :lang(ko), :lang(zh)) .hero h1 { font-size: clamp(2.3rem, 6.6vw, 5.25rem); line-height: 1.2; font-weight: 700; }
html:is(:lang(ja), :lang(ko), :lang(zh)) .hero h1 .soft { font-weight: 500; }
html:is(:lang(ja), :lang(ko), :lang(zh)) h2 { font-size: clamp(1.75rem, 4vw, 3.1rem); line-height: 1.3; font-weight: 700; }
html:is(:lang(ja), :lang(ko), :lang(zh)) .sector__text h2, html:is(:lang(ja), :lang(ko), :lang(zh)) .about h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); }
html:is(:lang(ja), :lang(ko), :lang(zh)) .contact h2 { font-size: clamp(1.9rem, 5vw, 3.75rem); line-height: 1.3; max-width: none; }
html:is(:lang(ja), :lang(ko), :lang(zh)) .who__close { font-size: clamp(1.5rem, 3.6vw, 2.75rem); line-height: 1.45; font-weight: 500; }
html:is(:lang(ja), :lang(ko), :lang(zh)) :is(.map__open, .map__local) { font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.45; }
html:is(:lang(ja), :lang(ko), :lang(zh)) .sub { line-height: 1.85; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }
html:is(:lang(ja), :lang(ko), :lang(zh)) :is(.eyebrow, .list-title, .player__label) { letter-spacing: .08em; }
html:is(:lang(ja), :lang(ko), :lang(zh)) :is(.services h3, .coop li, .choice strong) { line-height: 1.4; }
html:is(:lang(ja), :lang(zh)) body { line-break: strict; overflow-wrap: anywhere; }
html:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }
html:is(:lang(ja), :lang(ko), :lang(zh)) .doc h1 { letter-spacing: 0; font-size: clamp(1.8rem, 4vw, 2.75rem); line-height: 1.3; }
html:is(:lang(ja), :lang(ko), :lang(zh)) .doc h2 { letter-spacing: 0; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.5; }

/* German and Polish need more room for long words. */
html:is(:lang(de), :lang(pl)) .hero h1 { font-size: clamp(2.4rem, 7.6vw, 6.25rem); }
html:is(:lang(de), :lang(pl)) h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); }
html:is(:lang(de), :lang(pl)) .sector__text h2, html:is(:lang(de), :lang(pl)) .about h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
html:is(:lang(de), :lang(pl)) .contact h2 { font-size: clamp(2.3rem, 6.4vw, 5rem); }
html:is(:lang(de), :lang(pl)) :is(h1, h2, h3, .choice strong, .coop li) { hyphens: auto; overflow-wrap: break-word; }
html:is(:lang(de), :lang(pl)) .choice strong { font-size: clamp(1.15rem, 2.1vw, 1.7rem); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  :root { --header-h: 88px; }
  .header-row { height: auto; flex-wrap: wrap; row-gap: 0; padding-top: 6px; }
  .site-header .lang { order: 5; flex-basis: 100%; display: flex; justify-content: flex-end; border-top: 1px solid var(--rule); margin-top: 4px; }
  .site-header .lang a { padding: 8px 6px; }
  .lang--doc { margin-left: 0; }

  .menu-btn { display: grid; }
  .site-header .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--paper); border-bottom: 1px solid var(--rule); display: none; }
  .site-header .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav a { display: block; padding: 15px 0; font-size: 1.6rem; font-weight: 600; letter-spacing: -.035em; color: var(--brand); border-bottom: 1px solid var(--rule); }
  .nav a::after { display: none; }
  .header-actions { margin-left: auto; }

  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero .hero__id { grid-column: 1; grid-row: auto; margin-top: clamp(44px, 8vw, 64px); max-width: 420px; width: 100%; }
  .head, .map__below, .sector__intro, .sector__intro--reverse, .about { grid-template-columns: minmax(0, 1fr); }
  .head h2, .head .sub { grid-column: 1; }
  .head .sub { padding-bottom: 0; }
  .sector__intro .sector__media { order: -1; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flags { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile__media, .sector__intro--reverse .tile__media { border-radius: 110px 110px 6px 6px; }
}

@media (max-width: 760px) {
  .map__world .map__label--muted { display: none; }   /* too small to read on a phone */
  .map__world .map__label--hub { font-size: 34px; }
  .map__arcs path { stroke-width: 2.4; }
  .map__origins circle { r: 8; stroke-width: 3; }
  .map__flow circle { r: 6; }
  .map__label { font-size: 22px; }
  .map__label--on { font-size: 24px; }
  .map__inset svg { border-radius: 4px 72px 4px 4px; }
  .choices { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .choice { padding: 16px 0; border-bottom: 1px solid var(--rule); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero .btn, .contact .btn { width: 100%; }
  .hero .cta-row, .contact .cta-row { width: 100%; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .coop li { flex-basis: 50%; }
  .footer-row { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .map__flow, .map__ring { display: none; }
  .reveal { opacity: 1; transform: none; }
}

@media print { .site-header { display: none; } }

@media (max-width: 560px) { .results { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- three partnership models ---------- */

.models3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 64px); border-top: 1px solid var(--rule-strong); }
.models3 li { display: grid; gap: 14px; align-content: start; padding: 30px 0 8px; }
.models3__no { font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 6vw, 4.75rem); line-height: .9; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: lining-nums; }
.models3 h3 { font-size: clamp(1.45rem, 2.5vw, 2rem); letter-spacing: -.035em; line-height: 1.08; margin-top: 8px; }
.models3 p { color: var(--ink-soft); max-width: 30em; }
html:is(:lang(ja), :lang(ko), :lang(zh)) .models3 h3 { letter-spacing: 0; line-height: 1.4; }
html:is(:lang(de), :lang(pl)) .models3 h3 { hyphens: auto; overflow-wrap: break-word; }

/* capabilities: titles only */
.services--plain li { padding: 26px 0 28px; }
.services--plain svg { margin-bottom: 4px; }

/* ---------- how I work: the personal note ---------- */

.approach .wrap { display: grid; gap: clamp(28px, 4vw, 44px); justify-items: start; }
.approach__quote { margin: 0; display: grid; gap: 22px; }
.approach__quote p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; max-width: 18em; color: var(--ink); }
.approach__quote footer { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-style: italic; font-size: 1.5rem; letter-spacing: -.02em; color: var(--accent); }
.approach__quote footer::before { content: ""; width: 44px; height: 1px; background: var(--accent); }
.approach__list { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); border-top: 1px solid var(--rule-strong); }
.approach__list li { padding: 18px 0; font-size: clamp(1rem, 1.5vw, 1.1875rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.approach__list li::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-bottom: 12px; }
.approach__note { font-size: .9375rem; color: var(--ink-soft); max-width: 44em; }
html:is(:lang(ja), :lang(ko), :lang(zh)) .approach__quote p { font-style: normal; font-weight: 500; letter-spacing: 0; font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.5; }
html:is(:lang(ja), :lang(ko), :lang(zh)) .approach__list li { letter-spacing: 0; line-height: 1.4; }
.footer-tag { grid-column: 1 / -1; font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--paper); margin-top: -6px; }
html:is(:lang(ja), :lang(ko), :lang(zh)) .footer-tag { font-style: normal; }
@media (max-width: 760px) { .approach__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.who__close { color: var(--ink); }
.who h2 .soft { color: var(--accent); }

@media (max-width: 900px) { .models3 { grid-template-columns: minmax(0, 1fr); } .models3 li { padding-bottom: 28px; border-bottom: 1px solid var(--rule); } .models3 li:last-child { border-bottom: 0; } }

/* Where the experience comes from + focus line */
.exp__from { display: grid; gap: 12px; margin-top: clamp(8px, 2vw, 20px); }
.exp__from-label { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.exp__from ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.exp__from li { padding: 8px 16px; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: .9375rem; color: var(--ink); }
html:is(:lang(ja), :lang(ko), :lang(zh)) .exp__from-label { letter-spacing: .04em; }
.who__focus { max-width: 36em; color: var(--muted); font-size: 1rem; padding-left: 16px; border-left: 2px solid var(--accent); }

/* Direct promise under the quote */
.approach__promise { max-width: 34em; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--ink); }

/* Outside business: table tennis */
.beyond { margin-top: clamp(40px, 6vw, 72px); padding: clamp(28px, 4vw, 44px); background: var(--sand); border-radius: 20px; display: grid; gap: 14px; max-width: 760px; }
.beyond__label { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.beyond__lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.5; color: var(--ink); }
.beyond__open { font-family: var(--serif); font-style: italic; font-size: clamp(1.125rem, 1.7vw, 1.375rem); line-height: 1.4; color: var(--accent); }
html:is(:lang(ja), :lang(ko), :lang(zh)) .beyond__label { letter-spacing: .04em; }
html:is(:lang(ja), :lang(ko), :lang(zh)) .beyond__open { font-style: normal; }
.beyond { max-width: none; gap: 18px; }
.beyond__title { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 600; }
.beyond__title .soft { color: var(--accent); }
.beyond__lead, .beyond__open { max-width: 40em; }
.beyond .flags { margin: clamp(8px, 2vw, 20px) 0; padding: clamp(20px, 3vw, 28px) 0; border-block: 1px solid var(--rule-strong); list-style: none; }
.beyond .flags img { box-shadow: 0 0 0 1px var(--rule-strong); }
html:is(:lang(ja), :lang(ko), :lang(zh)) .beyond__title { letter-spacing: 0; line-height: 1.3; }
.beyond .flags li { align-content: start; }
