/* ============================================================
   那須ダグバ研究室 / Nasu Dagba Lab — site styles
   Palette: warm paper, deep indigo, terracotta, sage
   ============================================================ */
:root {
  --paper: #faf6ef;
  --paper-2: #f3ece0;
  --ink: #1f2433;
  --ink-soft: #4a5063;
  --muted: #7a7f8f;
  --line: #e4dccd;
  --indigo: #23346b;
  --indigo-2: #31478f;
  --terra: #c8603a;
  --terra-soft: #f4d9cb;
  --sage: #6f8f72;
  --sage-soft: #dfe9dc;
  --sun: #e8b04a;
  --sun-soft: #f8ead0;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(31,36,51,.04), 0 8px 28px rgba(31,36,51,.07);
  --shadow-lg: 0 2px 4px rgba(31,36,51,.05), 0 24px 60px rgba(31,36,51,.12);
  --max: 1160px;
  --serif: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  --latin: "Fraunces", Georgia, serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*,*::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(--sans); font-size: 16px; line-height: 1.9;
  letter-spacing: .02em; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--terra); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 600; line-height: 1.45; margin: 0 0 .6em; letter-spacing: .04em; }
p { margin: 0 0 1.2em; }
.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); margin-inline: auto; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip-link { position:absolute; left:16px; top:-60px; background:var(--indigo); color:#fff; padding:10px 16px; border-radius:8px; z-index:200; }
.skip-link:focus { top:12px; color:#fff; }

/* ---------- Language switching ---------- */
html[data-lang="ja"] [lang="en"]:not(html) { display: none !important; }
html[data-lang="en"] [lang="ja"]:not(html) { display: none !important; }
html[data-lang="en"] body { letter-spacing: 0; line-height: 1.75; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,246,239,.82); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(31,36,51,.05); }
.header-inner { display:flex; align-items:center; gap: 20px; height: 76px; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--ink); margin-right:auto; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display:flex; flex-direction:column; line-height:1.2; }
.brand-name { font-family: var(--serif); font-weight:700; font-size: 18px; letter-spacing:.08em; }
.brand-sub { font-family: var(--latin); font-size: 11.5px; color: var(--muted); letter-spacing:.06em; }
.nav { display:flex; align-items:center; gap: 2px; }
.nav a {
  position:relative; padding: 8px 12px; font-size: 14px; font-weight:500; color: var(--ink-soft);
  text-decoration:none; border-radius: 999px; transition: color .2s, background .2s; white-space: nowrap;
}
.nav a:hover { color: var(--indigo); background: rgba(35,52,107,.06); }
.nav a[aria-current="page"] { color: var(--indigo); }
.nav a[aria-current="page"]::after {
  content:""; position:absolute; left:50%; bottom:2px; width:5px; height:5px; border-radius:50%;
  background: var(--terra); transform: translateX(-50%);
}
.header-actions { display:flex; align-items:center; gap: 10px; }
.lang-toggle {
  display:inline-flex; border:1px solid var(--line); border-radius:999px; padding:3px; background:var(--white);
}
.lang-toggle button {
  border:0; background:transparent; font: 600 12px/1 var(--sans); letter-spacing:.08em; color:var(--muted);
  padding: 7px 11px; border-radius:999px; cursor:pointer; transition: all .2s;
}
.lang-toggle button[aria-pressed="true"] { background: var(--indigo); color:#fff; }
.btn-contact-head { display:none; }
.menu-btn {
  display:none; width:44px; height:44px; border:1px solid var(--line); background:var(--white);
  border-radius: 12px; cursor:pointer; position:relative;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  position:absolute; left:12px; width:18px; height:2px; background:var(--ink); border-radius:2px; transition: transform .3s var(--ease), opacity .2s;
}
.menu-btn span { top:21px; }
.menu-btn span::before { content:""; left:0; top:-6px; }
.menu-btn span::after { content:""; left:0; top:6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1081px) { .btn-contact-head { display:inline-flex; } }
@media (max-width: 1080px) {
  .menu-btn { display:block; }
  .nav {
    position: fixed; inset: 76px 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch;
    padding: 24px; gap: 4px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s, transform .3s var(--ease), visibility .3s; overflow-y:auto;
  }
  .menu-open .nav { opacity: 1; transform: none; visibility: visible; }
  .nav a { font-size: 18px; padding: 16px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-family: var(--serif); }
  .nav a[aria-current="page"]::after { left: auto; right: 12px; top: 50%; transform: translateY(-50%); }
  .nav .nav-contact { margin-top: 20px; text-align:center; border:0; }
  body.menu-open { overflow: hidden; }
  /* backdrop-filter makes the header the containing block for the fixed .nav,
     which would shrink the open menu to zero height */
  .menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
}
@media (min-width: 1081px) { .nav .nav-contact { display:none; } }

/* ---------- Buttons ---------- */
.btn {
  display:inline-flex; align-items:center; gap:10px; padding: 13px 24px; border-radius: 999px;
  font: 600 14.5px/1.2 var(--sans); letter-spacing:.06em; text-decoration:none; cursor:pointer; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s, background .2s, color .2s;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 8px 20px rgba(35,52,107,.22); }
.btn-primary:hover { background: var(--indigo-2); color:#fff; transform: translateY(-2px); }
.btn-terra { background: var(--terra); color:#fff; box-shadow: 0 8px 20px rgba(200,96,58,.25); }
.btn-terra:hover { color:#fff; transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-row { display:flex; flex-wrap:wrap; gap: 12px; }

/* ---------- Hero (home) ---------- */
.hero { position:relative; overflow:hidden; padding: 72px 0 96px; }
.hero-grid { display:grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items:center; }
.eyebrow {
  display:inline-flex; align-items:center; gap:10px; font: 600 12px/1 var(--sans); letter-spacing:.2em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 22px;
}
.eyebrow::before { content:""; width: 28px; height: 1.5px; background: currentColor; }
.hero h1 { font-size: clamp(32px, 4.6vw, 58px); line-height: 1.38; letter-spacing: .06em; margin-bottom: 26px; }
.hero h1 .hl { position:relative; white-space: nowrap; }
.hero h1 .hl::after {
  content:""; position:absolute; left:-2%; right:-2%; bottom:.08em; height:.32em; background: var(--sun-soft); z-index:-1; border-radius: 4px;
  transform-origin:left; animation: hl 1.2s .6s var(--ease) both;
}
@keyframes hl { from { transform: scaleX(0);} to { transform: scaleX(1);} }
html[data-lang="en"] .hero h1 { letter-spacing: -.01em; font-family: var(--latin); font-weight: 500; }
.hero-lead { font-size: 17px; color: var(--ink-soft); max-width: 34em; margin-bottom: 34px; }
.hero-art { position:relative; aspect-ratio: 1/1; }
.hero-art svg { width:100%; height:100%; overflow: visible; }
.blob { transform-origin: center; animation: float 14s ease-in-out infinite; }
.blob.b2 { animation-duration: 17s; animation-delay: -4s; }
.blob.b3 { animation-duration: 20s; animation-delay: -8s; }
@keyframes float {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  33% { transform: translate(8px,-12px) rotate(4deg); }
  66% { transform: translate(-10px,6px) rotate(-3deg); }
}
.stat b { display:block; font-family: var(--latin); font-size: 34px; font-weight: 500; color: var(--indigo); line-height:1.1; }
.stat span { font-size: 12.5px; color: var(--muted); letter-spacing:.06em; }
.hero-deco { position:absolute; inset:0; pointer-events:none; z-index:-1;
  background: radial-gradient(600px 400px at 85% 10%, rgba(232,176,74,.16), transparent 70%),
              radial-gradient(500px 400px at 0% 100%, rgba(111,143,114,.14), transparent 70%); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { position:relative; padding: 64px 0 56px; overflow:hidden; }
.page-hero::before {
  content:""; position:absolute; right:-120px; top:-140px; width: 460px; height: 460px; border-radius: 50%;
  background: var(--accent-soft, var(--sun-soft)); z-index:-1; opacity:.8;
}
.page-hero .crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.page-hero .crumbs a { color: var(--muted); text-decoration:none; }
.page-hero .crumbs a:hover { color: var(--terra); }
.page-hero h1 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 10px; }
.page-hero .en-title { font-family: var(--latin); font-style: italic; color: var(--accent, var(--terra)); font-size: 18px; margin-bottom: 18px; display:block; }
.page-hero .lead { font-size: 17px; color: var(--ink-soft); max-width: 40em; }
.theme-nursing { --accent: var(--indigo); --accent-soft: #dfe4f3; }
.theme-childcare { --accent: var(--terra); --accent-soft: var(--terra-soft); }
.theme-akc { --accent: #b9832a; --accent-soft: var(--sun-soft); }
.theme-about { --accent: var(--sage); --accent-soft: var(--sage-soft); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--indigo); color: #e9ecf6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 0; }
.section-head .kicker { font-family: var(--latin); font-style: italic; color: var(--terra); font-size: 16px; display:block; margin-bottom: 6px; letter-spacing: .02em; }
.section-head p { color: var(--ink-soft); margin: 10px 0 0; max-width: 36em; }

/* ---------- Pillars (home) ---------- */
.pillars { display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
  position:relative; display:flex; flex-direction:column; padding: 34px 30px 30px; border-radius: var(--radius);
  background: var(--white); text-decoration:none; color: var(--ink); box-shadow: var(--shadow); overflow:hidden;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.pillar::before { content:""; position:absolute; inset:0 0 auto 0; height: 5px; background: var(--c); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.pillar .p-icon { width: 58px; height: 58px; border-radius: 16px; display:grid; place-items:center; background: var(--cs); margin-bottom: 22px; }
.pillar .p-icon svg { width: 30px; height: 30px; color: var(--c); }
.pillar h3 { font-size: 22px; margin-bottom: 4px; }
.pillar .p-en { font-family: var(--latin); font-style: italic; color: var(--c); font-size: 14px; margin-bottom: 14px; }
.pillar p { color: var(--ink-soft); font-size: 14.5px; flex:1; }
.pillar .p-more { display:inline-flex; align-items:center; gap: 8px; font-weight: 600; font-size: 13.5px; color: var(--c); letter-spacing:.06em; }
.pillar .p-more svg { width: 15px; transition: transform .3s var(--ease); }
.pillar:hover .p-more svg { transform: translateX(4px); }
.c-indigo { --c: var(--indigo); --cs: #e3e7f4; }
.c-terra { --c: var(--terra); --cs: var(--terra-soft); }
.c-sun { --c: #b9832a; --cs: var(--sun-soft); }
.c-sage { --c: var(--sage); --cs: var(--sage-soft); }

/* ---------- News ---------- */
.news-filters { display:flex; flex-wrap:wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); background: var(--white); color: var(--ink-soft); border-radius: 999px;
  padding: 7px 15px; font: 500 13px/1.2 var(--sans); cursor:pointer; transition: all .2s;
}
.chip:hover { border-color: var(--indigo); color: var(--indigo); }
.chip[aria-pressed="true"] { background: var(--ink); color:#fff; border-color: var(--ink); }
.news-list { list-style:none; padding:0; margin:0; border-top: 1px solid var(--line); }
.news-item {
  display:grid; grid-template-columns: 120px 120px 1fr auto; gap: 20px; align-items: center;
  padding: 22px 8px; border-bottom: 1px solid var(--line); transition: background .2s;
}
.news-item:hover { background: rgba(255,255,255,.6); }
.news-date { font-family: var(--latin); color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tag { display:inline-block; font-size: 11.5px; font-weight: 600; letter-spacing:.06em; padding: 4px 10px; border-radius: 999px; text-align:center; white-space:nowrap; }
.tag-talk { background: #e3e7f4; color: var(--indigo); }
.tag-paper { background: var(--sage-soft); color: #4b6b4f; }
.tag-event { background: var(--sun-soft); color: #8a6420; }
.tag-award { background: var(--terra-soft); color: #9c4422; }
.tag-media { background: #ece3f1; color: #6b4a80; }
.tag-info { background: #eceae4; color: #615c50; }
.news-title { font-size: 15px; color: var(--ink); }
.news-link { font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration:none; display:inline-flex; align-items:center; gap:6px; }
.news-link svg { width: 13px; height: 13px; }
.news-more { margin-top: 28px; text-align:center; }
@media (max-width: 760px) {
  .news-item { grid-template-columns: auto 1fr; gap: 6px 14px; padding: 18px 4px; }
  .news-item .news-title { grid-column: 1 / -1; }
  .news-item .news-link { grid-column: 1 / -1; }
}

/* ---------- Feature split ---------- */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items:center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(24px, 2.8vw, 34px); }
.split .num { font-family: var(--latin); font-size: 15px; color: var(--accent, var(--terra)); font-style: italic; display:block; margin-bottom: 10px; }
.figure-card { border-radius: var(--radius); overflow:hidden; background: var(--white); box-shadow: var(--shadow); }
.figure-card img { width:100%; }
.figure-card figcaption { padding: 14px 18px; font-size: 13px; color: var(--muted); }

/* ---------- Cards ---------- */
.cards { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 20px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s;
}
a.card { text-decoration:none; color: var(--ink); display:block; }
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 0; }
.card .meta { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; display:block; }
.card .ext { display:inline-flex; gap: 6px; align-items:center; margin-top: 16px; font-weight:600; font-size:13px; color: var(--indigo); }
.card .ext svg { width: 13px; height: 13px; }

/* Paper / publication highlight */
.pub {
  display:grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start;
  background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); border-left: 5px solid var(--accent, var(--indigo));
}
.pub .pub-badge { font-family: var(--latin); font-size: 13px; text-transform: uppercase; letter-spacing:.14em; color: var(--accent, var(--indigo)); font-weight:600; }
.pub h3 { font-family: var(--latin); font-size: 22px; font-weight: 500; line-height:1.4; letter-spacing: 0; }
.pub .pub-meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.pub-year { font-family: var(--latin); font-size: 48px; color: var(--accent, var(--indigo)); line-height: 1; opacity:.85; }
@media (max-width: 640px) { .pub { grid-template-columns: 1fr; padding: 26px; } }

/* ---------- Problem → solution (childcare) ---------- */
.ps-tabs { display:flex; gap: 10px; flex-wrap:wrap; margin-bottom: 28px; }
.ps-tab {
  flex:1; min-width: 200px; text-align:left; border: 1.5px solid var(--line); background: var(--white); border-radius: 14px;
  padding: 16px 18px; cursor:pointer; font: 600 15px/1.4 var(--sans); color: var(--ink-soft); transition: all .25s;
  display:flex; gap: 12px; align-items:center;
}
.ps-tab .n { font-family: var(--latin); font-size: 22px; color: var(--terra); font-weight: 500; }
.ps-tab[aria-selected="true"] { border-color: var(--terra); color: var(--ink); box-shadow: 0 8px 22px rgba(200,96,58,.12); }
.ps-panel { display:grid; grid-template-columns: 1fr 64px 1fr; gap: 0; align-items: stretch; }
.ps-panel[hidden] { display:none; }
.ps-box { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.ps-box.sol { background: var(--sage-soft); box-shadow: none; }
.ps-box .lbl { font-size: 12px; font-weight: 700; letter-spacing:.14em; text-transform:uppercase; margin-bottom: 12px; display:block; }
.ps-box.prob .lbl { color: var(--terra); }
.ps-box.sol .lbl { color: #4b6b4f; }
.ps-box img { max-height: 170px; margin: 0 auto 18px; }
.ps-box ul { margin: 0; padding-left: 1.2em; }
.ps-box li { margin-bottom: 6px; }
.ps-arrow { display:grid; place-items:center; color: var(--terra); }
.ps-arrow svg { width: 32px; height: 32px; }
@media (max-width: 820px) { .ps-panel { grid-template-columns: 1fr; } .ps-arrow { padding: 10px 0; transform: rotate(90deg); } }

/* Callout / quote */
.callout {
  font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.7; padding: 40px 44px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow); position:relative; letter-spacing:.05em;
}
.callout::before { content:"“"; position:absolute; left: 18px; top: -18px; font-family: var(--latin); font-size: 96px; color: var(--terra); line-height:1; }

/* Downloads */
.dl {
  display:flex; align-items:center; gap: 18px; padding: 20px 22px; border-radius: 14px; background: var(--white);
  border: 1px solid var(--line); text-decoration:none; color: var(--ink); transition: all .25s;
}
.dl:hover { border-color: var(--indigo); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
.dl .dl-ic { width: 46px; height: 54px; border-radius: 8px; background: var(--terra); color:#fff; display:grid; place-items:center; font: 700 11px/1 var(--sans); letter-spacing:.06em; flex:none; }
.dl b { display:block; font-size: 15px; }
.dl small { color: var(--muted); font-size: 12.5px; }
.dl-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }

/* People */
.people { display:grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.person { display:flex; gap: 14px; align-items:center; padding: 18px; border-radius: 14px; background: var(--white); border:1px solid var(--line); text-decoration:none; color: var(--ink); transition: all .25s; }
a.person:hover { border-color: var(--terra); color: var(--ink); transform: translateY(-2px); }
.avatar { width: 46px; height: 46px; border-radius: 50%; display:grid; place-items:center; font-family: var(--serif); font-weight:700; color:#fff; background: var(--indigo); flex:none; font-size: 17px; }
.person b { display:block; font-size: 15px; font-family: var(--serif); }
.person small { display:block; color: var(--muted); font-size: 12.5px; line-height:1.5; }
.person .role { font-size: 11px; color: var(--terra); font-weight:700; letter-spacing:.1em; }

/* Timeline */
.timeline { list-style:none; margin:0; padding:0; position:relative; }
.timeline::before { content:""; position:absolute; left: 86px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display:grid; grid-template-columns: 70px 1fr; gap: 34px; padding: 10px 0 22px; position:relative; }
.timeline li::before { content:""; position:absolute; left: 81px; top: 18px; width: 12px; height: 12px; border-radius:50%; background: var(--paper); border: 3px solid var(--accent, var(--terra)); }
.timeline .y { font-family: var(--latin); font-size: 18px; color: var(--accent, var(--terra)); text-align:right; }
.timeline .t { font-size: 15.5px; }
.timeline .t small { display:block; color: var(--muted); font-size: 13px; }

/* Profile */
.profile { display:grid; grid-template-columns: 340px 1fr; gap: 56px; align-items:start; }
.profile-card { position: sticky; top: 100px; background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); text-align:center; }
.profile-photo { width: 180px; height: 180px; border-radius: 50%; margin: 0 auto 20px; overflow:hidden; background: var(--sage-soft); display:grid; place-items:center; }
.profile-photo img { width:100%; height:100%; object-fit: cover; }
.profile-card h2 { font-size: 24px; margin-bottom: 2px; }
.profile-card .kana { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.profile-card .aff { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
.profile-card .btn { width: 100%; justify-content:center; margin-top: 8px; }
.pill-list { display:flex; flex-wrap:wrap; gap: 8px; list-style:none; padding:0; margin: 0; }
.pill-list li { background: var(--white); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.role-list { list-style:none; padding:0; margin:0; display:grid; gap: 10px; }
.role-list li { display:flex; justify-content:space-between; gap: 16px; padding: 14px 18px; background: var(--white); border-radius: 12px; border: 1px solid var(--line); font-size: 15px; }
.role-list li span:last-child { color: var(--terra); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; } .profile-card { position: static; } }

/* Social buttons */
.social { display:flex; gap: 10px; flex-wrap: wrap; }
.social a { display:inline-flex; align-items:center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--white); border:1px solid var(--line); text-decoration:none; color: var(--ink); font-size: 13.5px; font-weight: 600; transition: all .2s; }
.social a:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.social svg { width: 17px; height: 17px; }

/* AKC */
.akc-org { display:grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.akc-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); position:relative; overflow:hidden; }
.akc-card::after { content:""; position:absolute; right: -50px; bottom: -50px; width: 160px; height: 160px; border-radius:50%; background: var(--sun-soft); z-index:0; }
.akc-card > * { position:relative; z-index:1; }
.akc-card h3 { font-size: 22px; }
.year-block { margin-bottom: 40px; }
.year-block h3 { font-family: var(--latin); font-size: 28px; font-weight: 500; color: #b9832a; display:flex; align-items:center; gap: 14px; }
.year-block h3::after { content:""; flex:1; height:1px; background: var(--line); }
.act { display:grid; grid-template-columns: 140px 1fr auto; gap: 18px; padding: 18px 20px; background: var(--white); border-radius: 12px; margin-bottom: 10px; align-items:center; border: 1px solid var(--line); }
.act .d { font-family: var(--latin); color: var(--muted); font-size: 14.5px; }
.act .n { font-size: 13px; background: var(--sun-soft); color: #8a6420; padding: 4px 12px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.act a { font-weight: 500; }
@media (max-width: 720px) { .akc-org { grid-template-columns: 1fr; } .act { grid-template-columns: 1fr; gap: 4px; } .act .n { justify-self:start; } }

/* CTA band */
.cta-band { border-radius: 28px; padding: 64px; background: var(--indigo); color: #e9ecf6; display:grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items:center; position:relative; overflow:hidden; }
.cta-band::before { content:""; position:absolute; right:-80px; top:-80px; width: 320px; height: 320px; border-radius:50%; background: rgba(232,176,74,.22); }
.cta-band::after { content:""; position:absolute; right: 140px; bottom:-120px; width: 240px; height: 240px; border-radius:50%; background: rgba(200,96,58,.25); }
.cta-band > * { position:relative; z-index:1; }
.cta-band h2 { color:#fff; font-size: clamp(24px, 2.8vw, 34px); }
.cta-band p { color: #c9cfe3; margin:0; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.5); color:#fff; }
.cta-band .btn-ghost:hover { background:#fff; color: var(--indigo); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 40px 28px; } .cta-band .btn-row { justify-content: flex-start; } }

/* Forms */
.form { display:grid; gap: 18px; }
.form-row { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display:block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field .req { color: var(--terra); font-size: 11.5px; margin-left: 6px; font-weight:700; }
.field input, .field select, .field textarea {
  width:100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white);
  font: 15px/1.6 var(--sans); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(35,52,107,.1); }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--terra); }
.field .err { display:none; color: var(--terra); font-size: 12.5px; margin-top: 6px; }
.field.invalid .err { display:block; }
.radio-cards { display:grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 10px; }
.radio-cards label { display:flex; gap: 10px; align-items:center; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); cursor:pointer; font-weight:500; font-size: 14px; margin:0; transition: all .2s; }
.radio-cards input { accent-color: var(--indigo); width: 18px; height: 18px; }
.radio-cards label:has(input:checked) { border-color: var(--indigo); background: #eef1f9; }
.check { display:flex; gap: 10px; align-items:flex-start; font-size: 14px; }
.check input { margin-top: 5px; accent-color: var(--indigo); width: 18px; height: 18px; flex:none; }
.form-success { display:none; text-align:center; padding: 48px 24px; background: var(--sage-soft); border-radius: var(--radius); }
.form-success.show { display:block; }
.form-success svg { width: 56px; height: 56px; color: var(--sage); margin: 0 auto 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.contact-aside { display:grid; gap: 14px; }
.contact-aside .card { padding: 24px; }

/* Prose (privacy) */
.prose h2 { font-size: 21px; margin-top: 2.2em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.toc { background: var(--white); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); margin-bottom: 48px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc a { text-decoration:none; font-size: 14.5px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: #171b28; color: #b6bccd; padding: 72px 0 32px; margin-top: 0; font-size: 14px; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer .brand { color: #fff; }
.site-footer .brand-sub { color: #8a90a3; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform:uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style:none; padding:0; margin:0; display:grid; gap: 8px; }
.site-footer a { color: #b6bccd; text-decoration:none; }
.site-footer a:hover { color: var(--sun); }
.footer-about { margin-top: 18px; max-width: 30em; line-height: 1.8; }
.footer-bottom { display:flex; justify-content:space-between; gap: 16px; padding-top: 24px; font-size: 12.5px; color: #7d8396; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1/-1; } }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; border:0; background: var(--ink); color: #fff; cursor:pointer; box-shadow: var(--shadow-lg); opacity:0; transform: translateY(12px); pointer-events:none; transition: all .3s var(--ease); z-index: 90; display:grid; place-items:center; }
.to-top.show { opacity:1; transform:none; pointer-events:auto; }
.to-top svg { width: 20px; height: 20px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .hero-art { max-width: 440px; margin: 0 auto; }
  .pillars { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 520px) {
  .container, .narrow { width: calc(100% - 36px); }
  .brand-sub { display:none; }
  .hero { padding: 40px 0 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .to-top, .news-filters { display:none !important; }
  body { background: #fff; }
}

/* Contact layout */
.contact-grid { display:grid; grid-template-columns: 1fr 340px; gap: 48px; align-items:start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Header fit fixes */
.brand-name, .btn, .nav a { white-space: nowrap; }
.header-actions .btn-contact-head { display: none; }
@media (min-width: 1400px) { .header-actions .btn-contact-head { display: inline-flex; } }
@media (min-width: 1081px) and (max-width: 1399px) {
  .nav .nav-contact { display: none; }
  .nav a { padding: 8px 9px; font-size: 13.5px; }
  .brand-sub { display: none; }
  .header-inner { gap: 14px; }
}

/* ---------- Real logo + original images ---------- */
.brand-logo { height: 46px; width: auto; max-width: 240px; }
.brand-fallback { display: none; align-items: center; gap: 12px; }
.brand.no-logo .brand-logo { display: none; }
.brand.no-logo .brand-fallback { display: flex; }
.brand-dark .brand-logo { background: #fff; padding: 8px 14px; border-radius: 12px; height: 60px; box-sizing: content-box; }
@media (max-width: 520px) { .brand-logo { height: 36px; } }

.hero-mv { position: absolute; inset: 0; z-index: 2; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--paper-2); }
.hero-mv img { width: 100%; height: 100%; object-fit: cover; }

.page-mv { display: block; margin: -8px 0 48px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.page-mv img { width: 100%; max-height: 420px; object-fit: cover; }

.profile-photo { position: relative; }
.profile-photo img { position: absolute; inset: 0; z-index: 1; }

.news-item { grid-template-columns: 76px 110px 110px 1fr auto; }
.news-thumb { width: 76px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--paper-2); }
.news-thumb-empty { display: block; background: linear-gradient(135deg, var(--sun-soft), var(--terra-soft)); opacity: .55; }
@media (max-width: 760px) {
  .news-item { grid-template-columns: 64px auto 1fr; }
  .news-thumb { width: 64px; height: 48px; grid-row: span 2; }
  .news-item .news-title, .news-item .news-link { grid-column: 2 / -1; }
}

.akc-leaf { position: absolute; right: -40px; top: 20px; width: 220px; opacity: .5; pointer-events: none; z-index: 0; }
.section-alt > .container { position: relative; z-index: 1; }

/* ============================================================
   BRAND RE-SKIN: matches the lab's existing identity
   (JAZY branding): yellow #FFE036, slate #536060, cream #FFFADD,
   orange #FF9114, Zen Maru Gothic + Noto Sans JP + Montserrat
   ============================================================ */
:root {
  --paper: #fffef8;
  --paper-2: #fffadd;
  --ink: #2f3a3a;
  --ink-soft: #536060;
  --muted: #7d8a8a;
  --line: #ece6c8;
  --indigo: #536060;          /* primary = brand slate */
  --indigo-2: #3f4b4b;
  --terra: #ff9114;           /* accent = brand orange */
  --terra-soft: #ffe7cc;
  --sun: #ffe036;             /* brand yellow */
  --sun-soft: #fff4a8;
  --sage: #5f9a8f;
  --sage-soft: #e3f1ec;
  --serif: "Zen Maru Gothic", "Noto Sans JP", sans-serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --latin: "Montserrat", "Noto Sans JP", sans-serif;
  --radius: 26px;
}
body { color: var(--ink-soft); }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; }
a:hover { color: #e07a00; }
:focus-visible { outline-color: var(--terra); }

/* Brand logo is a round yellow badge */
.brand-logo { height: 64px; max-width: none; filter: drop-shadow(0 4px 10px rgba(83,96,96,.15)); transition: transform .4s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.04); }
.brand-dark .brand-logo { background: none; padding: 0; height: 96px; }
.header-inner { height: 84px; }
@media (max-width: 1080px) { .nav { inset: 84px 0 0 0; } }
@media (max-width: 520px) { .brand-logo { height: 54px; } }
.site-header { background: rgba(255,254,248,.88); }

/* Buttons: yellow primary like the brand */
.btn-primary { background: var(--sun); color: var(--ink); box-shadow: 0 8px 20px rgba(255,200,0,.35); }
.btn-primary:hover { background: #ffd600; color: var(--ink); }
.btn-terra { background: var(--terra); color: #fff; box-shadow: 0 8px 20px rgba(255,145,20,.3); }
.btn-ghost { border-color: var(--ink-soft); color: var(--ink-soft); }
.btn-ghost:hover { background: var(--ink-soft); color: #fff; }
.lang-toggle button[aria-pressed="true"] { background: var(--sun); color: var(--ink); }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { background: var(--sun); width: 8px; height: 8px; bottom: 0; }
.chip[aria-pressed="true"] { background: var(--ink-soft); border-color: var(--ink-soft); }

/* Typography accents */
.eyebrow { color: var(--terra); font-family: var(--latin); }
.eyebrow::before { background: var(--sun); height: 3px; border-radius: 2px; }
.hero h1 { font-family: var(--serif); font-weight: 900; color: var(--ink); }
html[data-lang="en"] .hero h1 { font-family: var(--latin); font-weight: 700; letter-spacing: -.02em; }
.hero h1 .hl::after { background: var(--sun); height: .38em; opacity: .9; }
.section-head .kicker, .page-hero .en-title, .pillar .p-en, .split .num { font-family: var(--latin); font-weight: 600; }
.stat b, .pub-year, .year-block h3, .timeline .y, .news-date { font-family: var(--latin); font-weight: 600; }
.stat b { color: var(--ink); }
.callout { font-family: var(--serif); font-weight: 500; background: var(--paper-2); box-shadow: none; border: 2px dashed var(--sun); }
.callout::before { color: var(--sun); font-family: var(--latin); }

/* Hero: rounded photo frame + yellow dashed ring like the original site */
.hero-deco { background: radial-gradient(520px 420px at 92% 0%, rgba(255,224,54,.35), transparent 70%), radial-gradient(420px 380px at 0% 100%, rgba(255,145,20,.12), transparent 70%); }
.hero-mv { border-radius: 50% 50% 46% 54% / 52% 48% 52% 48%; border: 10px solid #fff; box-shadow: 0 30px 60px rgba(83,96,96,.18); }
.hero-art::before { content: ""; position: absolute; inset: -18px; border: 3px dashed var(--sun); border-radius: 50%; z-index: 1; animation: spin 60s linear infinite; }
.hero-art::after { content: ""; position: absolute; width: 22%; aspect-ratio: 1; right: -2%; bottom: 4%; background: var(--sun); border-radius: 50%; z-index: 3; box-shadow: 0 10px 24px rgba(255,200,0,.35); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Wavy section edges (from the original design language) */
.section-alt { background: var(--paper-2); }
.section-alt::before, .section-alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 28px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14 Q15 0 30 14 T60 14 T90 14 T120 14 V0 H0Z' fill='%23fffef8'/%3E%3C/svg%3E") repeat-x;
  background-size: 120px 28px;
}
.section-alt::before { top: -1px; }
.section-alt::after { bottom: -1px; transform: rotate(180deg); }

/* Cards & pillars: softer, rounder, brand colours */
.c-indigo { --c: #536060; --cs: #e6eeee; }
.c-terra { --c: #ff9114; --cs: var(--terra-soft); }
.c-sun { --c: #c9a400; --cs: var(--sun-soft); }
.pillar { border: 2px solid transparent; }
.pillar::before { height: 8px; }
.pillar:hover { border-color: var(--sun); }
.pillar .p-icon { border-radius: 50%; }
.figure-card, .page-mv { border: 8px solid #fff; }
.page-mv { border-radius: 32px; }
.profile-photo { border: 6px solid var(--sun); box-shadow: 0 0 0 8px var(--paper-2); }
.avatar { background: var(--ink-soft); font-family: var(--serif); }
.timeline li::before { border-color: var(--sun); }
.tag-talk { background: #e6eeee; color: #3f4b4b; }
.tag-event { background: var(--sun-soft); color: #7a6400; }
.tag-award { background: var(--terra-soft); color: #b35c00; }
.news-thumb { border-radius: 50%; width: 60px; height: 60px; border: 3px solid var(--sun); }
.news-item { grid-template-columns: 60px 110px 110px 1fr auto; }
@media (max-width: 760px) { .news-item { grid-template-columns: 52px auto 1fr; } .news-thumb { width: 52px; height: 52px; } }
.ps-tab .n { color: var(--terra); font-family: var(--latin); font-weight: 700; }
.ps-tab[aria-selected="true"] { border-color: var(--sun); box-shadow: 0 8px 22px rgba(255,200,0,.25); background: #fffdf0; }
.ps-box.sol { background: #fff7c2; }
.ps-panel { scroll-margin-top: 100px; }
/* Phones: three tabs in one row, so the panel that changes stays in view */
@media (max-width: 640px) {
  .ps-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
  .ps-tab { min-width: 0; flex-direction: column; gap: 4px; text-align: center; justify-content: center; padding: 12px 4px; font-size: 13px; line-height: 1.3; letter-spacing: 0; word-break: keep-all; }
}
.ps-box.sol .lbl { color: #8a7200; }
.dl .dl-ic { background: var(--terra); border-radius: 10px; }
.page-hero::before { background: var(--sun); opacity: .28; }
.theme-nursing { --accent: #536060; }
.theme-childcare { --accent: #ff9114; }
.theme-akc { --accent: #c9a400; }
.theme-about { --accent: #5f9a8f; }

/* CTA band + footer in brand slate */
.cta-band { background: var(--ink-soft); border-radius: 36px; }
.cta-band::before { background: rgba(255,224,54,.55); }
.cta-band::after { background: rgba(255,145,20,.35); }
.cta-band .btn-terra { background: var(--sun); color: var(--ink); box-shadow: none; }
.site-footer { background: #3f4b4b; color: #d5dcdc; }
.site-footer a { color: #d5dcdc; }
.site-footer a:hover { color: var(--sun); }
.to-top { background: var(--sun); color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--sun); box-shadow: 0 0 0 4px rgba(255,224,54,.35); }
.radio-cards label:has(input:checked) { border-color: var(--sun); background: #fffbe0; }
.radio-cards input, .check input { accent-color: var(--terra); }

/* ---------- Her original artwork (already framed: dashed ovals, wavy edges) ---------- */
.figure-card { background: none; box-shadow: none; border: 0; border-radius: 0; }
.figure-card img { filter: drop-shadow(0 14px 24px rgba(83,96,96,.14)); }
.page-mv { border: 0; box-shadow: none; border-radius: 32px 32px 0 0; background: none; }
.page-mv img { max-height: none; }
.hero-mv img { height: 116%; object-position: center top; }
.hero-mv { border-radius: 46% 54% 50% 50% / 50% 46% 54% 50%; }
.profile-photo { overflow: hidden; }
.profile-photo img { object-fit: cover; object-position: 50% 30%; transform: scale(1.45); }
.pillar.has-photo { padding-top: 22px; }
.p-photo { display: block; margin: 0 -8px 14px; }
.p-photo img { width: 100%; transition: transform .5s var(--ease); }
.pillar:hover .p-photo img { transform: scale(1.04) rotate(-1deg); }
.pillar.has-photo .p-icon { width: 48px; height: 48px; margin: -46px 0 14px 8px; position: relative; z-index: 2; border: 4px solid #fff; }
.pillar.has-photo .p-icon svg { width: 22px; height: 22px; }
.site-header .brand-logo { height: 96px; margin: 14px 0 -26px; position: relative; z-index: 2; }
.site-header.scrolled .brand-logo { height: 64px; margin: 0; }
.site-header .brand-logo { transition: height .3s var(--ease), margin .3s var(--ease), transform .4s var(--ease); }
@media (max-width: 520px) { .site-header .brand-logo { height: 66px; margin: 10px 0 -14px; } .site-header.scrolled .brand-logo { height: 50px; } }


/* ============================================================
   PREMIUM DESIGN PASS
   Calmer and more spacious. Yellow is an accent only (buttons,
   dots, underlines, dashed rings), never a large filled area.
   Spacing follows an 8px scale.
   ============================================================ */
:root {
  --paper: #fffdf7;            /* page */
  --paper-2: #fff9e6;          /* cream for alternate sections */
  --ink: #2f3a3a;              /* headings */
  --ink-soft: #536060;         /* body */
  --line: rgba(83,96,96,.12);
  --hairline: rgba(83,96,96,.08);
  --radius: 24px;
  --max: 1160px;
  --card-shadow: 0 1px 2px rgba(47,58,58,.04), 0 12px 32px rgba(47,58,58,.06);
  --card-shadow-hover: 0 2px 4px rgba(47,58,58,.05), 0 20px 44px rgba(47,58,58,.10);
  --shadow: var(--card-shadow);
  --shadow-lg: var(--card-shadow-hover);
  --sun-hover: #f4d21c;
  --ease: cubic-bezier(.2,.7,.2,1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .23 0 0 0 0 .23 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}

/* ---------- Base type ---------- */
body { background: var(--paper); color: var(--ink-soft); font-size: 16.5px; line-height: 2; }
html[data-lang="en"] body { line-height: 1.8; }
h1, h2, h3, h4 { color: var(--ink); }
.container { width: min(var(--max), 100% - 64px); }
@media (max-width: 520px) { .container, .narrow { width: calc(100% - 40px); } }

/* ---------- Sections and rhythm ---------- */
.section { padding: 128px 0; }
.section-tight { padding: 80px 0; }
.section-alt { background-color: var(--paper-2); background-image: var(--grain); }
.section-alt::before, .section-alt::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14 Q15 0 30 14 T60 14 T90 14 T120 14 V0 H0Z' fill='%23fffdf7'/%3E%3C/svg%3E");
}
.section-head { margin-bottom: 56px; gap: 32px; }
.section-head h2, .split h2 { font-size: clamp(34px, 3.2vw, 40px); line-height: 1.5; letter-spacing: .04em; margin-bottom: 0; }
.split h2 { margin-bottom: 24px; }
html[data-lang="en"] .section-head h2, html[data-lang="en"] .split h2 { letter-spacing: 0; line-height: 1.3; }
.section-head p { margin-top: 16px; }
@media (max-width: 960px) { .section { padding: 88px 0; } .section-tight { padding: 64px 0; } }

/* Kicker: small Montserrat label with a short yellow rule
   (!important beats the inline italic styles some pages still carry) */
.kicker, .split .num {
  display: inline-flex !important; align-items: center; gap: 12px; margin-bottom: 16px;
  font: 600 12.5px/1 var(--latin) !important; font-style: normal !important; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft) !important;
}
.kicker, .split .num { margin-bottom: 16px !important; }
.kicker::before, .split .num::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--sun); flex: none; }
.kicker + h2, .num + h2 { font-size: clamp(34px, 3.2vw, 40px); line-height: 1.5; letter-spacing: .04em; }
html[data-lang="en"] .kicker + h2, html[data-lang="en"] .num + h2 { letter-spacing: 0; line-height: 1.3; }
/* Headings and the quote wrap at phrase boundaries, never mid-word */
h1, h2, h3, .callout { text-wrap: balance; }
h1 [lang="ja"], h2 [lang="ja"], h3 [lang="ja"], .callout [lang="ja"] { word-break: auto-phrase; }
h1, h2, h3 { overflow-wrap: break-word; }   /* only when a phrase cannot fit the line */
.section-head > * { min-width: 0; max-width: 100%; }
.eyebrow { font: 600 12.5px/1 var(--latin); letter-spacing: .16em; color: var(--ink-soft); gap: 12px; margin-bottom: 24px; }
.eyebrow::before { width: 24px; height: 2px; }

/* ---------- Header: compacts to 64px on scroll ---------- */
.site-header { background: rgba(255,253,247,.0); border-bottom: 1px solid transparent; box-shadow: none; transition: background .3s, border-color .3s; }
.header-inner { transition: height .3s var(--ease); }
.site-header.scrolled { background: rgba(255,253,247,.86); border-bottom-color: var(--hairline); box-shadow: none; }
.site-header.scrolled .header-inner { height: 64px; }
.site-header.scrolled .brand-logo { height: 48px; }
@media (max-width: 520px) { .site-header.scrolled .brand-logo { height: 44px; } }
@media (max-width: 1080px) { .site-header.scrolled .nav { inset: 64px 0 0 0; } }
.nav a { color: var(--ink-soft); }
.nav a:hover { background: transparent; color: var(--ink); }
.nav a[aria-current="page"]::after { width: 6px; height: 6px; }
.lang-toggle { border-color: var(--line); }

/* ---------- Buttons ---------- */
.btn { min-height: 48px; padding: 0 28px; justify-content: center; font-size: 14.5px; letter-spacing: .06em; box-shadow: none; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 13.5px; }
.btn-primary { background: var(--sun); color: var(--ink); box-shadow: 0 1px 2px rgba(47,58,58,.06); }
.btn-primary:hover { background: var(--sun-hover); color: var(--ink); transform: none; }
.btn-ghost { border: 1.5px solid var(--ink-soft); color: var(--ink-soft); background: transparent; }
.btn-ghost:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: #fff; }
.btn-terra { box-shadow: none; }
.btn-terra:hover { transform: none; filter: brightness(.97); }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-row { gap: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 104px 0 152px; }
.hero-deco { display: none; }
.hero-grid { gap: 72px; }
.hero h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: .04em; line-height: 1.45; margin-bottom: 32px; }
html[data-lang="en"] .hero h1 { font-weight: 700; letter-spacing: .01em; line-height: 1.2; }
.hero h1 .hl::after { height: .2em; bottom: .06em; opacity: 1; }
.hero-lead { font-size: 17px; line-height: 2; margin-bottom: 40px; }
html[data-lang="en"] .hero-lead { line-height: 1.8; }
.hero-mv { animation: frame-float 8s ease-in-out infinite; }
@keyframes frame-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.hero-art::after { width: 13%; right: 2%; bottom: 8%; background: #ffeb7a; box-shadow: none; }
@media (max-width: 960px) { .hero-grid { gap: 56px; } }
@media (max-width: 760px) { .hero { padding: 48px 0 112px; } }


/* ---------- Cards and surfaces ---------- */
.card, .pillar, .akc-card, .ps-box, .profile-card, .toc, .pub, .cta-band {
  border-radius: var(--radius);
}
.card, .pillar, .akc-card, .ps-box.prob, .profile-card, .toc, .pub {
  background: #fff; border: 1px solid var(--hairline); box-shadow: var(--card-shadow);
}
.card { padding: 32px; transition: translate .4s var(--ease), box-shadow .4s var(--ease); }
/* Lift uses `translate`, so it never fights the reveal transform */
a.card:hover, .pillar:hover { transform: none; translate: 0 -4px; box-shadow: var(--card-shadow-hover); border-color: var(--hairline); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 15px; line-height: 1.9; }
.card .meta { font-family: var(--latin); font-size: 12px; letter-spacing: .06em; margin-bottom: 16px; }
.card .ext { margin-top: 24px; color: var(--ink); }
.cards { gap: 24px; }
.pillars { gap: 24px; }
.pillar { padding: 24px 32px 32px; transition: opacity .8s var(--ease), transform .8s var(--ease), translate .4s var(--ease), box-shadow .4s var(--ease); }
.pillar::before { display: none; }
.pillar h3 { font-size: 22px; }
.pillar p { font-size: 15px; line-height: 1.9; }
.p-photo { overflow: hidden; border-radius: 16px; }
.p-photo img { transition: transform .6s var(--ease); }
.pillar:hover .p-photo img { transform: scale(1.03); }
.pub { border-left: 1px solid var(--hairline); padding: 40px; }
.ps-box { padding: 32px; }
.ps-box.sol { background: var(--paper-2); border: 1px solid var(--hairline); box-shadow: none; }
.akc-card::after { background: var(--paper-2); }
.dl, .person, .role-list li, .act, .pill-list li { border-color: var(--hairline); }
.dl, a.person { transition: translate .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.dl:hover, a.person:hover { transform: none; translate: 0 -4px; box-shadow: var(--card-shadow-hover); border-color: var(--hairline); }
.callout { padding: 48px; line-height: 1.9; border-radius: var(--radius); }
.figure-card img, .page-mv img { transition: transform .6s var(--ease); }
.news-thumb-empty { background: var(--paper-2); opacity: 1; }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { padding: 96px 0 72px; }
.page-hero::before { background: none; border: 2px dashed var(--sun); opacity: .7; width: 420px; height: 420px; right: -140px; top: -160px; }
.page-hero h1 { font-size: clamp(34px, 4.2vw, 52px); letter-spacing: .04em; margin-bottom: 16px; }
.page-hero .en-title { font: 600 14px/1.4 var(--latin); font-style: normal; letter-spacing: .08em; margin-bottom: 24px; }
.page-hero .lead { font-size: 17px; line-height: 2; }
@media (max-width: 760px) { .page-hero { padding: 56px 0 48px; } }

/* ---------- News list ---------- */
.news-list { border-top: 1px solid var(--line); }
.news-item { grid-template-columns: 56px 104px 112px 1fr auto; gap: 24px; padding: 20px 16px; border-bottom: 1px solid var(--line); border-radius: 12px; transition: background .25s; }
.news-item:hover { background: var(--paper-2); }
.news-thumb { width: 56px; height: 56px; border: 0; box-shadow: 0 0 0 1px var(--hairline); }
.news-date { font-family: var(--latin); font-weight: 500; font-size: 14px; letter-spacing: .04em; color: var(--muted); }
.tag { font-weight: 500; font-size: 12px; padding: 4px 12px; letter-spacing: .04em; }
.news-title { font-size: 15.5px; line-height: 1.8; color: var(--ink); }
@media (max-width: 760px) {
  .news-item { grid-template-columns: 48px auto 1fr; gap: 8px 16px; padding: 16px 8px; }
  .news-thumb { width: 48px; height: 48px; }
}

/* ---------- CTA band ---------- */
.cta-band { padding: 72px; background: var(--ink-soft); }
.cta-band::before { background: none; border: 2px dashed rgba(255,224,54,.55); }
.cta-band::after { background: none; border: 2px dashed rgba(255,255,255,.14); }
@media (max-width: 860px) { .cta-band { padding: 48px 32px; } }

/* ---------- Footer ---------- */
.site-footer { background: #3f4b4b; padding: 112px 0 40px; font-size: 14.5px; }
.footer-grid { gap: 64px; padding-bottom: 64px; border-bottom-color: rgba(255,255,255,.1); }
.site-footer .brand-dark .brand-logo { height: 120px; }
.footer-about { margin-top: 24px; font-family: var(--serif); font-weight: 500; font-size: 16px; line-height: 2; color: #e6ecec; }
.site-footer h4 { font-family: var(--latin); font-weight: 600; letter-spacing: .16em; margin-bottom: 24px; }
.site-footer ul { gap: 12px; }
.footer-bottom { padding-top: 32px; }
@media (max-width: 860px) { .site-footer { padding: 88px 0 32px; } .footer-grid { gap: 48px 32px; } }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal, .pillar.reveal, .dl.reveal, .person.reveal {
  transition: opacity .8s var(--ease), transform .8s var(--ease), translate .4s var(--ease), box-shadow .4s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .hero-mv, .hero-art::before { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  a.card:hover, .pillar:hover, .dl:hover, a.person:hover { translate: none; }
  .pillar:hover .p-photo img { transform: none; }
}

/* ============================================================
   PREMIUM MOTION + 3D
   Starting states for animations are scoped to html.motion-ok,
   which motion.js sets only when reduced motion is not requested.
   ============================================================ */

/* ---------- Global Nursing: globe hero ---------- */
.globe-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.globe-figure { margin: 0; position: relative; }
.globe-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin-inline: auto; }
.globe-static, .globe-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.globe-canvas { opacity: 0; transition: opacity .8s var(--ease); cursor: grab; }
.globe-figure.is-dragging .globe-canvas { cursor: grabbing; }
.globe-figure.is-live .globe-canvas { opacity: 1; }
.globe-figure.is-live .globe-static { opacity: 0; transition: opacity .8s var(--ease); }
.globe-figure figcaption { margin-top: 8px; text-align: center; font-size: 13px; line-height: 1.7; letter-spacing: .04em; color: var(--ink-soft); }
.globe-figure figcaption::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--terra); margin-right: 10px; vertical-align: 1px; }
.page-hero-globe { padding-bottom: 48px; }
@media (max-width: 960px) {
  .globe-hero { grid-template-columns: 1fr; gap: 24px; }
  .globe-stage { max-width: 320px; }
}

/* ---------- Waves drift slowly ---------- */
.section-alt::before, .section-alt::after { animation: wave-drift 12s linear infinite; }
@keyframes wave-drift { to { background-position-x: 120px; } }

/* ---------- Page transitions (browsers without support navigate normally) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: vt-out .25s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .25s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Home: headline line reveal ---------- */
.hero-title .line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line-inner { display: block; }
.motion-ok .hero-title:not(.lines-ready) { opacity: 0; }
.motion-ok .hero-title.lines-ready .line-inner { transform: translateY(105%); transition: transform .9s var(--ease); }
.motion-ok .hero-title.lines-in .line-inner { transform: none; }
.motion-ok .hero h1 .hl::after { animation: none; transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) var(--hl-delay, .6s); }
.motion-ok .hero h1.lines-in .hl::after { transform: scaleX(1); }

/* Home: photo frame tilt and parallax (values set by motion.js) */
.hero-grid { perspective: 1000px; }
.hero-art { transform-style: preserve-3d; }
.hero-mv { translate: calc(var(--px, 0) * 10px) calc(var(--py, 0) * 10px); }
.hero-art::before { translate: calc(var(--px, 0) * -6px) calc(var(--py, 0) * -6px); }


/* Home: research cards with large numbers, tilt and glare */
.pillars { counter-reset: pillar; perspective: 1200px; }
.pillar { counter-increment: pillar; transform-style: preserve-3d; }
.pillar::after {
  content: counter(pillar, decimal-leading-zero); position: absolute; right: 24px; bottom: 12px; z-index: 0;
  font: 700 72px/1 var(--latin); letter-spacing: -.02em; color: rgba(83,96,96,.07); pointer-events: none;
}
.pillar > * { position: relative; z-index: 1; }
.pillar::before {
  display: block; content: ""; position: absolute; inset: 0; height: auto; z-index: 3; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.5), rgba(255,255,255,0) 45%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.pillar.is-tilting::before { opacity: 1; }
.pillar.is-tilting { transition: opacity .8s var(--ease), transform .8s var(--ease), translate .4s var(--ease), box-shadow .4s var(--ease), rotate .15s linear; }
.pillar:not(.is-tilting) { transition: opacity .8s var(--ease), transform .8s var(--ease), translate .4s var(--ease), box-shadow .4s var(--ease), rotate .6s var(--ease); }
.motion-ok .pillar.reveal { transform: translateY(32px); }
.motion-ok .pillar.reveal.in { transform: none; }
.motion-ok .pillar.reveal-d1 { transition-delay: .12s; }
.motion-ok .pillar.reveal-d2 { transition-delay: .24s; }

/* Images that drift with scroll get a little room to move */
.motion-ok .p-photo img { scale: 1.08; }
.motion-ok .page-mv img { scale: 1.05; }

/* Magnetic buttons */
.btn { transition: transform .25s var(--ease), box-shadow .25s, background .2s, color .2s, translate .35s var(--ease); }
.btn.is-magnetic { transition: transform .25s var(--ease), box-shadow .25s, background .2s, color .2s, translate .12s linear; }

/* ---------- Global Childcare: sticky scroll story (desktop) ---------- */
.ps-story { display: none; }
@media (min-width: 1024px) {
  .ps-has-story [data-tabs] { display: none; }
  .ps-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
}
.ps-story-visual { position: relative; height: 100%; }
.ps-story-sticky { position: sticky; top: 112px; }
.ps-story-progress { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; font: 600 13px/1 var(--latin); letter-spacing: .12em; color: var(--ink-soft); }
.ps-story-progress .bar { display: flex; gap: 6px; flex: 1; max-width: 200px; }
.ps-story-progress .bar i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.ps-story-progress .bar i::after { content: ""; position: absolute; inset: 0; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.ps-story-progress .bar i.on::after { transform: scaleX(1); }
.ps-story-frame { position: relative; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--card-shadow); aspect-ratio: 5 / 6; overflow: hidden; }
.ps-story-fig { position: absolute; inset: 0; margin: 0; padding: 32px; display: grid; grid-template-rows: 1fr 1fr; gap: 16px; opacity: 0; transition: opacity .6s var(--ease), translate .6s var(--ease); translate: 0 12px; }
.ps-story-fig.is-active { opacity: 1; translate: 0 0; }
.ps-story-fig > div { position: relative; display: grid; place-items: center; min-height: 0; border-radius: 16px; padding: 32px 16px 12px; }
.ps-story-fig > div:last-child { background: var(--paper-2); }
.ps-story-fig img { max-height: 100%; max-width: 100%; object-fit: contain; }
.ps-story-fig .lbl { position: absolute; left: 16px; top: 12px; font: 700 11px/1 var(--sans); letter-spacing: .14em; color: var(--terra); }
.ps-story-fig > div:last-child .lbl { color: #8a7200; }
.ps-story-steps { list-style: none; margin: 0; padding: 0; }
.ps-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; opacity: .35; transition: opacity .5s var(--ease); }
.ps-step.is-active { opacity: 1; }
.ps-step-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.ps-step-head .n { font: 700 40px/1 var(--latin); color: var(--terra); }
.ps-step-head h3 { font-size: 26px; margin: 0; }
.ps-step .lbl { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; margin-bottom: 8px; color: var(--terra); }
.ps-step-sol { margin-top: 24px; padding: 24px 28px; background: var(--paper-2); border-radius: 16px; }
.ps-step-sol .lbl { color: #8a7200; }
.ps-step-sol ul { margin: 0; padding-left: 1.2em; }
.ps-step p { margin: 0; }

/* ---------- About: timeline draws on scroll ---------- */
.motion-ok .timeline::before { transform-origin: top; transform: scaleY(var(--tl, 0)); }
.motion-ok .timeline li::before { scale: 0; opacity: 0; transition: scale .5s cubic-bezier(.3,1.6,.5,1), opacity .3s var(--ease); }
.motion-ok .timeline li .y, .motion-ok .timeline li .t { opacity: 0; translate: 12px 0; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.motion-ok .timeline li .t { transition-delay: .08s; }
.motion-ok .timeline li.tl-in::before { scale: 1; opacity: 1; }
.motion-ok .timeline li.tl-in .y, .motion-ok .timeline li.tl-in .t { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .hero-mv, .hero-art::before { translate: none !important; }
  .hero-art, .pillar, .btn { rotate: none !important; translate: none !important; }
  .ps-story-fig { transition: none; translate: none; }
}

/* =====================================================================
   HERO SIZE FIX + MORE 3D / MOTION
   ===================================================================== */
/* Hero: two equal columns; the photo is a fixed square that ignores the text */
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-grid > * { min-width: 0; }
.hero-art { width: min(600px, 100%); height: auto; aspect-ratio: 1 / 1; justify-self: end; align-self: center; max-width: none; margin: 0; contain: size layout; }
html[data-lang="ja"] .hero h1 { font-size: clamp(34px, 4.4vw, 60px); word-break: keep-all; max-width: 100%; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { width: min(440px, 100%); justify-self: center; }
}
@media (max-width: 600px) { .hero-art { width: min(300px, 100%); } }

/* Footer globe next to the logo */
.footer-brandrow { display: flex; align-items: center; gap: 24px; }
.footer-globe { margin: 0; flex: none; width: 120px; height: 120px; }
.footer-globe .globe-stage { position: relative; width: 100%; height: 100%; }
.footer-globe .globe-static, .footer-globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.footer-globe canvas { opacity: 0; transition: opacity .8s var(--ease); }
.footer-globe.is-live canvas { opacity: 1; }
.footer-globe.is-live .globe-static { opacity: 0; transition: opacity .8s var(--ease); }
@media (max-width: 600px) { .footer-globe { width: 96px; height: 96px; } .footer-brandrow { gap: 16px; } }

/* Research cards flip up into place (stagger comes from reveal-d1/d2: 120ms steps) */
.motion-ok .pillar.reveal { transform: rotateX(18deg) translateY(28px); transform-origin: 50% 100%; }
.motion-ok .pillar.reveal.in { transform: none; }


/* Pamphlet cards: 3D booklet; the cover opens about 25deg on hover */
.booklet { position: relative; flex: none; width: 54px; height: 70px; perspective: 360px; transform-style: preserve-3d; }
.booklet-pages {
  position: absolute; inset: 2px 0 2px 2px; border-radius: 2px 6px 6px 2px; background: #fff; border: 1px solid #ece6d2;
  background-image: repeating-linear-gradient(to bottom, transparent 0 8px, #efe9d6 8px 9px); background-position: 0 10px; background-size: 70% 100%; background-repeat: no-repeat; background-origin: content-box; padding: 0 6px 0 10px;
  box-shadow: 1px 1px 0 #f3eedd, 2px 2px 0 #e7e0ca, 3px 3px 0 #f3eedd, 4px 4px 0 #ddd5bb, 6px 8px 14px rgba(83, 96, 96, .16);
  transition: box-shadow .5s var(--ease);
}
.booklet .dl-ic { position: absolute; inset: 0; width: auto; height: auto; border-radius: 3px 8px 8px 3px; transform-origin: 0 50%; transform: rotateY(0); backface-visibility: hidden;
  box-shadow: inset 5px 0 0 rgba(0, 0, 0, .12), 2px 0 0 rgba(0, 0, 0, .14), 3px 2px 0 rgba(0, 0, 0, .06); }
@media (prefers-reduced-motion: no-preference) {
  .booklet .dl-ic { transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
  .dl:hover .booklet .dl-ic, .dl:focus-visible .booklet .dl-ic { transform: rotateY(-25deg); box-shadow: inset 5px 0 0 rgba(0, 0, 0, .12), 2px 0 0 rgba(0, 0, 0, .14), 10px 6px 16px rgba(83, 96, 96, .22); }
  .dl:hover .booklet-pages { box-shadow: 1px 1px 0 #f3eedd, 2px 2px 0 #e7e0ca, 3px 3px 0 #f3eedd, 4px 4px 0 #ddd5bb, 10px 14px 22px rgba(83, 96, 96, .2); }
}

/* Scroll progress: 3px yellow bar at the very top */
.scroll-progress { position: fixed; left: 0; top: 0; width: 100%; height: 3px; background: var(--sun); transform: scaleX(0); transform-origin: 0 50%; z-index: 1000; pointer-events: none; }

/* Section headings: the text slides up out of a mask, then a short yellow rule draws in */
.h-mask { position: relative; }
.h-mask .h-inner, .h-mask .h-text { display: block; }
.motion-ok .h-mask .h-inner { overflow: clip; overflow-clip-margin: .15em; }
.motion-ok .h-mask .h-text { transform: translateY(105%); transition: transform 1s var(--ease); }
.motion-ok .h-mask.h-in .h-text { transform: none; }
.motion-ok .h-mask::after { content: ""; position: absolute; left: 0; bottom: -10px; width: 40px; height: 3px; border-radius: 3px; background: var(--sun); transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease) .35s; }
.motion-ok .h-mask.h-in::after { transform: scaleX(1); }
.motion-ok .section-head .h-mask::after { bottom: -8px; }
[style*="text-align:center"] .h-mask::after, .center .h-mask::after { left: 50%; margin-left: -20px; }

/* African Kids Club: leaves drifting slowly in 3D behind the content */
section:has(> .akc-leaves) { position: relative; }
section:has(> .akc-leaves) > .container { position: relative; z-index: 1; }
.akc-leaves { position: absolute; inset: 0; z-index: 0; pointer-events: none; perspective: 900px; overflow: hidden; }
.akc-leaf3d { position: absolute; display: block; opacity: .5; will-change: transform; animation: leaf-drift var(--dur, 24s) cubic-bezier(.45, 0, .55, 1) var(--delay, 0s) infinite alternate; }
.akc-leaf3d.l1 { left: -24px; top: 12%; width: 110px; opacity: .55; --dur: 26s; --dx: -40px; --dy: 50px; --rx: 28deg; --ry: -32deg; --rz: 14deg; }
.akc-leaf3d.l2 { left: 30%; bottom: 8%; width: 70px; opacity: .45; --dur: 31s; --delay: -9s; --dx: 50px; --dy: -40px; --rx: -24deg; --ry: 36deg; --rz: -20deg; }
.akc-leaf3d.l3 { right: 18%; bottom: -24px; width: 90px; opacity: .22; --dur: 22s; --delay: -14s; --dx: -30px; --dy: -60px; --rx: 34deg; --ry: 20deg; --rz: 26deg; }
.akc-leaf3d.l4 { left: 52%; top: 6%; width: 56px; opacity: .5; --dur: 35s; --delay: -5s; --dx: 36px; --dy: 44px; --rx: -30deg; --ry: -28deg; --rz: -32deg; }
@keyframes leaf-drift {
  0% { transform: translate3d(0, 0, 0) rotateX(0) rotateY(0) rotateZ(0); }
  50% { transform: translate3d(calc(var(--dx) * .6), calc(var(--dy) * .4), 60px) rotateX(calc(var(--rx) * .5)) rotateY(var(--ry)) rotateZ(calc(var(--rz) * .4)); }
  100% { transform: translate3d(var(--dx), var(--dy), -40px) rotateX(var(--rx)) rotateY(calc(var(--ry) * .3)) rotateZ(var(--rz)); }
}
.akc-leaf3d svg { display: block; width: 100%; height: auto; }
@media (max-width: 600px) { .akc-leaf3d.l2, .akc-leaf3d.l4 { display: none; } .akc-leaf3d.l1 { width: 80px; } }

/* About: profile card tilt and the slowly turning dashed ring */
.profile { perspective: 1200px; }
.profile-card { transform-style: preserve-3d; transition: opacity .8s var(--ease), transform .8s var(--ease), rotate .5s var(--ease); }
.profile-ring { position: relative; width: 180px; margin: 0 auto 20px; }
.profile-ring .profile-photo { margin: 0; }
.profile-ring::before { content: ""; position: absolute; inset: -22px; border: 2px dashed var(--sun); border-radius: 50%; pointer-events: none; }
.motion-ok .profile-ring::before { animation: spin 50s linear infinite; }

/* Banner images: room for the 1.06 -> 1.0 scale */
.motion-ok .page-mv img { scale: 1.06; translate: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  .profile-card, .profile-ring::before, .akc-leaf3d { rotate: none !important; animation: none !important; }
}

/* Reserve the header's height before main.js fills it in, so the page never jumps */
#site-header:empty { display: block; height: 85px; }

/* Home hero: simple row of numbers under the buttons */
.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats .stat b { display: block; font-family: var(--latin); font-weight: 600; font-size: 34px; line-height: 1.1; color: var(--ink); }
.hero-stats .stat span { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; word-break: keep-all; }
@media (max-width: 520px) { .hero-stats { gap: 24px; } }
@media (min-width: 961px) { .hero-stats { flex-wrap: nowrap; } }
