/* Hallmark · tokens · theme: studied-DNA (source: sonae.ltd + iPicss official logo vectors)
 * paper oklch(99.2% 0.003 230) · brand oklch(50.8% 0.135 250) #1268AF · accent oklch(71.2% 0.151 358) #EB76A1
 * display + body: Noto Sans JP (sonae.ltd) · Latin numerals: Outfit
 */
:root {
  color-scheme: light; /* sonae.ltd ships light only; the brand is kept in one mode */

  /* Canvas and the few surfaces that are allowed to hold content */
  --color-paper: oklch(99.2% 0.003 230);        /* page canvas */
  --color-paper-2: oklch(95.6% 0.02 232);       /* cloud panel, no border */
  --color-paper-3: oklch(91.5% 0.04 232);       /* rails and rings */
  --color-sky-field: oklch(85% 0.06 236);       /* top of the hero sky */
  --color-surface: oklch(99.6% 0.002 230);
  --color-rule: oklch(88% 0.015 240);
  --color-rule-strong: oklch(80% 0.03 240);

  /* Text: navy for headings, sonae's warm grey-brown for running copy */
  --color-ink: oklch(27% 0.07 255);
  --color-ink-soft: oklch(35% 0.06 255);        /* running copy on the sky field */
  --color-text: oklch(45% 0.02 67);
  --color-muted: oklch(53% 0.018 67);

  /* iPicss logo colours */
  --color-brand: oklch(50.8% 0.135 250);        /* wordmark blue #1268AF */
  --color-brand-strong: oklch(43% 0.13 252);
  --color-sky: oklch(67.2% 0.121 232);          /* ring blue #31A2D3, graphics only */
  --color-sky-ink: oklch(52% 0.11 235);         /* sky hue at text contrast */
  --color-pink: oklch(71.2% 0.151 358);         /* stork pink #EB76A1, graphics only */
  --color-pink-ink: oklch(53% 0.17 358);        /* pink at text contrast */
  --color-on-brand: oklch(99.6% 0.002 230);
  --color-focus: oklch(50.8% 0.135 250);
  --color-shadow: oklch(35% 0.06 250 / 0.14);

  /* Type */
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-display: "Outfit", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --text-2xl: clamp(1.875rem, 1.3rem + 2.2vw, 3rem);
  --text-display: clamp(2.5rem, 1.2rem + 5vw, 5.25rem);

  /* 4pt spacing scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: clamp(4.5rem, 3rem + 6vw, 8rem);

  /* Shape: rounded fields and panels without borders (Refero: Letters, Bevel), full pills for controls */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: clamp(20px, 1rem + 1.5vw, 36px);
  --radius-pill: 999px;
  --rule-hair: 1px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;

  --page-max: 1200px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
}


/* Hallmark · genre: modern-minimal · macrostructure: Map / Diagram · theme: studied-DNA (source: sonae.ltd + iPicss logo)
 * paper oklch(99.2% 0.003 230) · brand oklch(50.8% 0.135 250) · accent oklch(71.2% 0.151 358) · Noto Sans JP + Outfit
 * enrichment: Tier B official brand vectors (.ai to SVG) · nav: N5 floating pill · footer: Ft1 mast-headed
 * refero: open-sky hero field (Letters), borderless cloud panels used sparingly (Bevel)
 * box budget: effect figure, disaster mode, contact. Everything else is grouped by space and hairlines.
 * Hallmark · pre-emit critique: P4 H5 E4 S5 R5 V4
 */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scroll-padding-top: 6rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.9;
  letter-spacing: 0.03em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: 0.02em;
  font-feature-settings: "palt";
  text-wrap: balance;
}
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--color-brand); text-underline-offset: 0.2em; }
a:hover { color: var(--color-brand-strong); }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }
.nw { display: inline-block; } /* keeps a Japanese phrase on one line */
.skip-link {
  position: absolute; left: var(--space-md); top: -4rem; z-index: 40;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-surface); color: var(--color-ink);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-md); }
.wrap {
  width: 100%; max-width: calc(var(--page-max) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.source { margin-top: var(--space-md); font-size: var(--text-xs); color: var(--color-muted); }

/* ---------- Buttons (full pill) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 3.25rem; padding: 0.75rem 1.75rem;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-base);
  letter-spacing: 0.06em; line-height: 1.2; white-space: nowrap; text-decoration: none;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-short) var(--ease-out),
    color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-fill { background: var(--color-brand); color: var(--color-on-brand); }
.btn-fill:hover { background: var(--color-brand-strong); color: var(--color-on-brand); }
.btn-ghost { background: var(--color-surface); color: var(--color-brand-strong); border-color: var(--color-surface); }
.btn-ghost:hover { border-color: var(--color-brand); color: var(--color-brand-strong); }
.btn-sm { min-height: 2.5rem; padding: 0.5rem 1.125rem; font-size: var(--text-sm); }

/* ---------- Nav · N5 floating pill ---------- */
.nav-pill {
  position: fixed; z-index: 30; top: calc(var(--space-md) + env(safe-area-inset-top, 0px)); left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--space-lg);
  width: max-content; max-width: calc(100% - 2 * var(--space-md));
  padding: 0.4rem 0.45rem 0.4rem 0.6rem;
  background: color-mix(in oklab, var(--color-surface) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: var(--rule-hair) solid var(--color-rule);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px -14px var(--color-shadow);
}
.nav-brand {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--color-ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.02em;
}
.nav-brand img { width: 2.25rem; height: 2.25rem; }
.nav-brand sup { font-size: 0.55em; }
.nav-links { display: flex; gap: var(--space-lg); }
.nav-links a {
  color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); font-weight: 500;
  white-space: nowrap; padding-block: 0.25rem;
  background: linear-gradient(var(--color-pink), var(--color-pink)) left bottom / 0 2px no-repeat;
  transition: background-size var(--dur-short) var(--ease-out);
}
.nav-links a:hover { background-size: 100% 2px; color: var(--color-ink); }
@media (max-width: 767px) {
  .nav-links { display: none; } /* ponytail: one-page LP, sections are a scroll away; add a menu if the page grows */
  .nav-pill { gap: var(--space-md); }
}

/* ---------- Hero · open-sky field (Refero: Letters + Bevel) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  margin: var(--space-xs) var(--space-xs) 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--color-sky-field), var(--color-paper-2));
  padding-top: clamp(6rem, 4.5rem + 3vw, 7.5rem);
  padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.hero__grid { display: grid; align-items: center; gap: var(--space-2xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-xl); }
}
.hero__kicker {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.75rem;
  color: var(--color-brand-strong); font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.1em;
}
.hero__kicker b { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: 0.04em; color: var(--color-ink); }
.hero__title { margin-top: var(--space-md); font-size: var(--text-display); font-weight: 900; line-height: 1.22; letter-spacing: 0.01em; }
.hero__title .ln { display: block; }
.hero__title em { font-style: normal; color: var(--color-brand); }
.hero__lead { margin-top: var(--space-lg); max-width: 34em; color: var(--color-ink-soft); font-size: var(--text-md); line-height: 2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
@media (max-width: 559px) { .hero__lead { font-size: var(--text-base); } }

/* The logo's stork leads its speed stripes off the right edge of the field, above the app screens */
.hero__visual { position: relative; padding-top: clamp(5.5rem, 11vw, 10rem); }
.hero__screens { position: relative; z-index: 1; width: min(100%, 540px); margin-inline: auto; filter: drop-shadow(0 30px 40px var(--color-shadow)); }
.hero__flight { position: absolute; z-index: 2; inset: -1.5rem 0 auto 0; height: clamp(7rem, 15vw, 13rem); }
.hero__stork { position: absolute; z-index: 1; width: clamp(220px, 28vw, 400px); left: -12%; top: 0; }
.stripes { position: absolute; z-index: 0; top: 14%; bottom: 0; left: 30%; right: -50vw; display: grid; grid-template-rows: repeat(5, 1fr); }
.stripes span { display: block; background: var(--color-surface); clip-path: polygon(1.4rem 0, 100% 0, 100% 100%, 1.4rem 100%, 0 50%); }
.stripes span:nth-child(1) { opacity: 0.25; margin-left: 26%; }
.stripes span:nth-child(2) { opacity: 0.45; margin-left: 8%; }
.stripes span:nth-child(3) { opacity: 0.7;  margin-left: 0; }
.stripes span:nth-child(4) { opacity: 0.55; margin-left: 12%; }
.stripes span:nth-child(5) { opacity: 0.35; margin-left: 30%; }
@media (max-width: 959px) {
  .hero__stork { left: 0; width: clamp(180px, 46vw, 320px); }
  .stripes { left: 34%; right: calc(-1 * var(--gutter)); }
}

/* ---------- Section rhythm ---------- */
.section { padding-block: var(--space-4xl); }
.section + .section { padding-top: 0; }
.section-head { max-width: 46rem; }
.section-head h2 { font-size: var(--text-2xl); font-weight: 900; }
.section-head p { margin-top: var(--space-md); font-size: var(--text-md); }
.label-en {
  display: block; margin-bottom: var(--space-sm);
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-sky-ink);
}

/* ---------- Issue · before / after as an open table ---------- */
.compare { width: 100%; margin-top: var(--space-2xl); border-collapse: collapse; }
.compare th { padding: 0 0 var(--space-sm); text-align: left; font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.1em; color: var(--color-muted); }
.compare th + th { color: var(--color-brand); }
.compare td { padding: var(--space-lg) 0; border-top: var(--rule-hair) solid var(--color-rule); vertical-align: top; }
.compare tr:last-child td { border-bottom: var(--rule-hair) solid var(--color-rule); }
.compare td + td { position: relative; color: var(--color-ink); font-weight: 700; }
@media (min-width: 900px) {
  .compare th, .compare td { width: 50%; }
  .compare th + th, .compare td + td { padding-left: 4.5rem; }
  .compare td + td::before {
    content: ""; position: absolute; left: 1.25rem; top: calc(var(--space-lg) + 0.45em); width: 2rem; height: 0.9rem;
    background: var(--color-pink); clip-path: polygon(0 35%, 60% 35%, 60% 0, 100% 50%, 60% 100%, 60% 65%, 0 65%);
  }
}
@media (max-width: 899px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr, .compare td { display: block; }
  .compare tr { padding-block: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); }
  .compare tr:last-child { border-bottom: var(--rule-hair) solid var(--color-rule); }
  .compare td, .compare tr:last-child td { padding: var(--space-2xs) 0; border: 0; }
  .compare td::before { content: attr(data-label); display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; color: var(--color-muted); }
  .compare td + td::before { color: var(--color-brand); }
  .compare td + td { margin-top: var(--space-xs); }
}

/* ---------- Map / Diagram: who iPicss connects ---------- */
.flow .section-head { margin-inline: auto; text-align: center; }
.flow .section-head p { text-wrap: balance; }
.map { position: relative; margin-top: var(--space-2xl); aspect-ratio: 1000 / 640; width: 100%; }
.map__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map__lines path { fill: none; stroke: var(--color-sky); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 10; }
.map__lines .draw { stroke-dasharray: 1; stroke-dashoffset: 0; stroke: var(--color-paper-3); stroke-width: 10; }
.map__lines .pk { stroke: var(--color-surface); stroke-width: 3; stroke-dasharray: none; }
.map__lines .pk--pink { fill: var(--color-pink); }
.map__lines .pk--blue { fill: var(--color-brand); }
@media (prefers-reduced-motion: reduce) { .map__lines .packets { display: none; } }
.map__node {
  position: absolute; left: calc(var(--x) / 10 * 1%); top: calc(var(--y) / 6.4 * 1%);
  transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: var(--space-xs); width: clamp(9rem, 17vw, 13rem); text-align: center;
}
.map__ring {
  display: grid; place-items: center; width: clamp(6.5rem, 11vw, 9rem); aspect-ratio: 1;
  border-radius: 50%; background: var(--color-surface); border: 4px solid var(--ring, var(--color-sky));
}
.map__ring img { width: 64%; }
.map__node h3 { font-size: var(--text-md); font-weight: 900; line-height: 1.4; }
.map__node p { font-size: var(--text-sm); line-height: 1.7; }
.map__node .who { color: var(--color-muted); font-size: var(--text-xs); }
.map__node p { text-wrap: balance; }
.map__node--pink { --ring: color-mix(in oklab, var(--color-pink) 70%, var(--color-surface)); }
.map__node--blue { --ring: color-mix(in oklab, var(--color-brand) 55%, var(--color-surface)); }
.map__node--sky { --ring: color-mix(in oklab, var(--color-sky) 70%, var(--color-surface)); }
.map__hub { position: absolute; left: 50%; top: calc(290 / 6.4 * 1%); transform: translate(-50%, -50%); width: clamp(8rem, 16vw, 12.5rem); }
.map__hub img { position: relative; z-index: 1; width: 100%; filter: drop-shadow(0 18px 30px var(--color-shadow)); }
.map__hub::before, .map__hub::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--color-sky); opacity: 0; }

/* Steps: an open numbered sequence, no cards */
.steps { display: grid; gap: var(--space-xl) var(--space-lg); margin-top: var(--space-2xl); grid-template-columns: minmax(0, 1fr); counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { position: relative; padding-left: 3.25rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0.1rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border-radius: 50%; background: var(--color-pink-ink); color: var(--color-on-brand);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); letter-spacing: 0;
  transition: transform var(--dur-short) var(--ease-out);
}
.steps h3 { font-size: var(--text-md); font-weight: 900; line-height: 1.5; }
.steps p { margin-top: var(--space-2xs); font-size: var(--text-sm); line-height: 1.8; }
.steps li.is-active::before { transform: scale(1.18); }
.steps li.is-active h3 { color: var(--color-pink-ink); }
.map__replay { display: flex; justify-content: center; margin-top: var(--space-xl); }
.map__replay button {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 2.75rem; padding: 0.5rem 1.25rem;
  font: inherit; font-size: var(--text-sm); font-weight: 700; color: var(--color-brand);
  background: transparent; border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-pill); cursor: pointer;
  transition: border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.map__replay button:hover { border-color: var(--color-brand); }
.map__replay button:active { transform: translateY(1px); }
.map__replay button[hidden] { display: none; }

/* Below desktop the spatial map would crowd its labels: it becomes a grid with the hub first */
@media (max-width: 1023px) {
  .map { aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--space-md); }
  .map__lines { display: none; }
  .map__hub { position: relative; left: auto; top: auto; transform: none; grid-column: 1 / -1; justify-self: center; width: 9rem; order: -1; }
  .map__node { position: relative; left: auto; top: auto; transform: none; width: auto; }
  .map__ring { width: 6.5rem; }
}
@media (min-width: 640px) and (max-width: 1023px) { .map { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Effect · one cited figure, three voices ---------- */
.proof__grid { display: grid; gap: var(--space-3xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .proof__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }
.proof__main h2 { font-size: var(--text-2xl); font-weight: 900; }
.pair {
  display: grid; grid-template-columns: minmax(0, 1fr) 3.5rem minmax(0, 1fr); align-items: center; gap: var(--space-sm);
  margin-top: var(--space-xl); padding: var(--space-xl); border-radius: var(--radius-lg); background: var(--color-paper-2);
}
.pair__item { display: grid; gap: var(--space-2xs); }
.pair__item > span:first-child { font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); letter-spacing: 0.06em; }
.pair__item--after > span:first-child { color: var(--color-pink-ink); }
.pair__item b { font-family: var(--font-display); font-weight: 700; line-height: 1; letter-spacing: -0.01em; font-size: clamp(2.75rem, 1rem + 4vw, 5.5rem); color: var(--color-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pair__item--after b { color: var(--color-brand); }
.pair__item b small { margin-left: 0.15em; font-family: var(--font-body); font-size: 0.32em; font-weight: 700; letter-spacing: 0; }
.pair__meta { font-size: var(--text-xs); color: var(--color-muted); line-height: 1.6; }
.pair__arrow { height: 1.5rem; background: var(--color-pink); clip-path: polygon(0 35%, 60% 35%, 60% 0, 100% 50%, 60% 100%, 60% 65%, 0 65%); }
@media (max-width: 559px) {
  .pair { grid-template-columns: minmax(0, 1fr); padding: var(--space-lg); }
  .pair__arrow { width: 1.5rem; height: 2rem; justify-self: start; margin-left: var(--space-md); clip-path: polygon(35% 0, 65% 0, 65% 60%, 100% 60%, 50% 100%, 0 60%, 35% 60%); }
}
.proof__note { margin-top: var(--space-lg); max-width: 40em; font-size: var(--text-sm); line-height: 1.9; }
.voices h3 { font-size: var(--text-lg); font-weight: 900; }
.voice { margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.voice blockquote p { color: var(--color-ink); font-size: var(--text-md); font-weight: 500; line-height: 1.85; }
.voice blockquote p::before { content: "「"; margin-left: -0.5em; }
.voice blockquote p::after { content: "」"; }
.voice figcaption { margin-top: var(--space-2xs); font-size: var(--text-xs); font-weight: 700; color: var(--color-muted); letter-spacing: 0.08em; }

/* ---------- Features · one lead feature, an open 2x2 list, one panel ---------- */
.lead-feature { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); align-items: center; margin-top: var(--space-2xl); }
@media (min-width: 900px) { .lead-feature { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-3xl); } }
.lead-feature img { width: 100%; aspect-ratio: 600 / 351; object-fit: cover; border-radius: var(--radius-lg); }
.lead-feature h3 { font-size: var(--text-xl); font-weight: 900; }
.lead-feature p { margin-top: var(--space-md); }
.feature-list { display: grid; gap: var(--space-2xl) var(--space-3xl); margin-top: var(--space-3xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature-list > li { padding-top: var(--space-lg); border-top: 2px solid var(--color-paper-3); }
.feature-list h3 { font-size: var(--text-lg); font-weight: 900; }
.feature-list p { margin-top: var(--space-xs); font-size: var(--text-sm); line-height: 1.9; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
.chips li { padding: 0.25rem 0.8rem; border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.04em; }
.marks { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); margin-top: var(--space-md); font-size: var(--text-xs); font-weight: 700; color: var(--color-ink); }
.marks li { display: inline-flex; align-items: center; gap: 0.4rem; }
.marks li::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--color-sky); }

.disaster {
  position: relative; display: grid; gap: var(--space-lg) var(--space-3xl); grid-template-columns: minmax(0, 1fr);
  margin-top: var(--space-3xl); padding: clamp(1.75rem, 1rem + 3vw, 3.5rem); padding-bottom: 7rem;
  border-radius: var(--radius-lg); background: var(--color-paper-2);
}
@media (min-width: 900px) { .disaster { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; padding-bottom: clamp(1.75rem, 1rem + 3vw, 3.5rem); padding-right: 12rem; } }
.disaster h3 { font-size: var(--text-xl); font-weight: 900; }
.disaster p { margin-top: var(--space-sm); }
.disaster .marks { margin-top: 0; font-size: var(--text-sm); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm) var(--space-lg); }
@media (max-width: 399px) { .disaster .marks { grid-template-columns: minmax(0, 1fr); } }
.disaster__bird { position: absolute; right: clamp(1rem, 3vw, 2.5rem); bottom: -0.6rem; width: clamp(6rem, 9vw, 8.5rem); }

/* ---------- History · regions, timeline ---------- */
.history__top { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 900px) { .history__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-2xl); } }
.history__top h2 { font-size: var(--text-2xl); font-weight: 900; }
.history__top p { margin-top: var(--space-md); font-size: var(--text-md); }
.regions { display: grid; gap: var(--space-xl) var(--space-2xl); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .regions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.region { padding-top: var(--space-md); border-top: 2px solid var(--color-brand); }
.region__status { display: inline-block; padding: 0.1rem 0.7rem; border-radius: var(--radius-pill); background: var(--color-brand); color: var(--color-on-brand); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; }
.region h3 { margin-top: var(--space-sm); font-size: var(--text-lg); font-weight: 900; }
.region p { margin-top: var(--space-2xs); font-size: var(--text-sm); line-height: 1.8; }

.timeline { position: relative; display: grid; gap: var(--space-lg); margin-top: var(--space-3xl); grid-template-columns: minmax(0, 1fr); }
.timeline li { position: relative; padding-left: var(--space-xl); }
.timeline li::before { content: ""; position: absolute; left: 0.36rem; top: 1rem; bottom: calc(-1 * var(--space-lg)); width: 2px; background: var(--color-paper-3); }
.timeline li:last-child::before { content: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 0.55rem; width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--color-surface); border: 3px solid var(--color-sky); }
.timeline li:last-child::after { background: var(--color-pink); border-color: var(--color-pink); }
.timeline .year { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1.2; color: var(--color-brand); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.timeline p { margin-top: var(--space-2xs); font-size: var(--text-sm); line-height: 1.8; }
@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .timeline li { padding-left: 0; padding-top: var(--space-xl); }
  .timeline li::before { content: ""; left: 0; right: calc(-1 * var(--space-lg)); top: 0.36rem; bottom: auto; width: auto; height: 2px; }
  .timeline li:last-child::before { content: ""; right: 0; }
  .timeline li::after { top: 0; }
}

/* ---------- Company ---------- */
.company__grid { display: grid; gap: var(--space-2xl); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .company__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-3xl); } }
.company__title { font-size: var(--text-xl); font-weight: 900; line-height: 1.5; }
.company__mission { margin-top: var(--space-lg); font-size: var(--text-md); line-height: 2.1; }
.company__mission strong { color: var(--color-ink); font-weight: 700; background: linear-gradient(transparent 62%, color-mix(in oklab, var(--color-pink) 32%, transparent) 62%); }
.company__logos { display: flex; align-items: center; gap: var(--space-xl); margin-top: var(--space-xl); }
.company__logos .sonae { width: 200px; }
.company__logos .okadai { width: 92px; }
.facts { border-top: var(--rule-hair) solid var(--color-rule); }
.facts div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: var(--space-md); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.facts dt { color: var(--color-ink); font-weight: 700; font-size: var(--text-sm); }
.facts dd { font-size: var(--text-sm); line-height: 1.8; }
@media (max-width: 559px) { .facts div { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; } }
.facts dd small { display: block; color: var(--color-muted); font-size: var(--text-xs); }

/* ---------- Contact · the sky again, closing the page ---------- */
.section.contact { padding-top: var(--space-xl); padding-bottom: var(--space-xl); } /* the bird perches in the gap above the panel */
.contact__panel {
  position: relative; display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1fr);
  padding: clamp(2rem, 1rem + 4vw, 4.5rem);
  background: linear-gradient(180deg, var(--color-sky-field), var(--color-paper-2)); border-radius: var(--radius-xl);
}
@media (min-width: 900px) { .contact__panel { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; } }
.contact__panel h2 { font-size: var(--text-2xl); font-weight: 900; }
.contact__panel p { margin-top: var(--space-md); color: var(--color-ink-soft); }
.contact__lines { display: grid; }
.contact__line { display: grid; gap: 0.1rem; padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule-strong); color: var(--color-ink); text-decoration: none; }
.contact__line:first-child { border-top: var(--rule-hair) solid var(--color-rule-strong); }
.contact__line span { font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; color: var(--color-ink-soft); }
.contact__line b { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; letter-spacing: 0.02em; overflow-wrap: anywhere; transition: color var(--dur-short) var(--ease-out); }
.contact__line:hover { color: var(--color-ink); }
.contact__line:hover b { color: var(--color-brand-strong); }
.contact__bird { position: absolute; width: clamp(110px, 12vw, 170px); right: clamp(1rem, 4vw, 3.5rem); top: calc(-1 * clamp(3.5rem, 6vw, 5.5rem)); }

/* ---------- Footer · Ft1 mast-headed ---------- */
.site-foot { padding-block: var(--space-3xl) var(--space-xl); }
.foot__mast { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-lg); }
.foot__mast img { width: 64px; height: 64px; }
.foot__mast .name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); color: var(--color-ink); line-height: 1.2; }
.foot__mast .name small { display: block; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; color: var(--color-text); letter-spacing: 0.08em; }
.foot__info { margin-top: var(--space-lg); font-size: var(--text-sm); line-height: 1.9; }
.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-md); font-size: var(--text-sm); }
.foot__links a { color: var(--color-ink); white-space: nowrap; }
.foot__copy { margin-top: var(--space-xl); font-size: var(--text-xs); color: var(--color-muted); }
.foot__okayama { display: flex; justify-content: center; margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.foot__okayama a {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 2.75rem; padding: 0.5rem 1.25rem;
  border: var(--rule-hair) solid var(--color-rule-strong); border-radius: var(--radius-pill);
  color: var(--color-ink); font-size: var(--text-sm); font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.foot__okayama a:hover { border-color: var(--color-brand); color: var(--color-brand); }

/* ---------- Motion: one orchestrated hero entrance and the map story; nothing waits for a scroll to be visible ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > :not(h1), .hero__screens { animation: rise var(--dur-long) var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms + 80ms); }
  .hero__title .ln { animation: rise 640ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
  .hero__stork { animation: glide 1200ms var(--ease-out) both 260ms; }
  .stripes span { animation: streak 900ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 200ms); }
  .js .map__lines .draw { stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms var(--ease-in-out); }
  .js .map.is-in .map__lines .draw { stroke-dashoffset: 0; }
  .map.is-playing .map__hub::before { animation: ping 1.6s var(--ease-out) 3 1s; }
  .map.is-playing .map__hub::after { animation: ping 1.6s var(--ease-out) 3 1.5s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes glide { from { opacity: 0; transform: translate(18%, 8%) scale(0.96); } }
@keyframes streak { from { opacity: 0; transform: translateX(18%); } }
@keyframes ping { from { opacity: 0.6; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
