/* ============================================================
   Particle design株式会社 — Design System
   white · large whitespace · typography-first · quiet
   ============================================================ */

:root {
  /* ---- color (preview: neutral grays) ---- */
  --bg:          #ffffff;
  --bg-tint:     #f9fafb;        /* gray-50 */
  --ink:         #111111;        /* foreground */
  --ink-soft:    #4b5563;        /* gray-600 body */
  --muted:       #6b7280;        /* gray-500 */
  --faint:       #9ca3af;        /* gray-400 eyebrow */
  --line:        #f3f4f6;        /* gray-100 */
  --line-soft:   #f9fafb;        /* gray-50 */
  --line-mid:    #d1d5db;        /* gray-300 border hover */
  --accent:      #111111;        /* preview has no accent hue; CTA = near-black */
  --accent-deep: #1f2937;        /* gray-800 hover */
  --accent-soft: #9ca3af;        /* gray-400 */
  --accent-wash: #f9fafb;

  /* ---- type (preview: Inter + Noto Sans JP, no serif) ---- */
  --serif: "Inter", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --sans:  "Inter", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;

  /* ---- layout (preview: max-w-6xl, px-6, py-32) ---- */
  --shell: 72rem;
  --gutter: 1.5rem;
  --section-pad: 8rem;
  --radius: 0px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: .01em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- particle canvas (fixed background, behind content) ---- */
#particle-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* everything else rides above the stage */
.site-header,
main,
.site-footer { position: relative; z-index: 1; }

/* ============================================================
   Shell / utility
   ============================================================ */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--faint);
  display: block;
  margin: 0 0 2rem;
}

.section-title {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.lead {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.body-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 42rem;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
  transition: background .5s ease, border-color .5s ease, backdrop-filter .5s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  text-decoration: none;
  color: var(--ink);
}
.wordmark-img {
  display: block;
  height: 30px;
  width: auto;
}
.wordmark .mark {
  font-family: var(--sans);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .02em;
}
.wordmark .mark em { font-style: normal; color: var(--ink); }
.wordmark .sub {
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--faint);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 2.4vw, 2.6rem);
}
.nav a {
  font-size: .875rem;
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
  transition: color .3s ease;
}
.nav a:hover { color: var(--muted); }
.nav-cta {
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line-mid);
  border-radius: var(--radius);
  padding: .55em 1.1em;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.nav a.nav-cta:hover,
.nav a.nav-cta:focus-visible {
  background: var(--bg-tint);
  color: var(--ink) !important;
  border-color: var(--line-mid);
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 0; background: none; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px;
  padding: 0;
}
.nav-toggle span {
  display: block; height: 1px; width: 24px; margin-inline: auto;
  background: var(--ink); transition: transform .35s ease, opacity .3s ease;
}

/* ============================================================
   Section frame
   ============================================================ */
.section {
  padding-block: var(--section-pad);
  position: relative;
  scroll-margin-top: 76px;
}
.section--tint { background: var(--bg-tint); }

.section-head { margin-bottom: 4rem; max-width: 48rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.1s cubic-bezier(.22,.61,.36,1), transform 1.1s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 90vh;
  min-height: 90svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 64px clamp(4rem, 10vh, 8rem);
}
.hero-inner { width: fit-content; max-width: 100%; margin-inline: auto; text-align: left; }
.hero h1 {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 2rem;
  color: var(--ink);
}
.hero h1 .accent { color: var(--ink); }
.hero h1 .line2 { color: var(--ink); font-size: 1em; display: block; margin-top: .5rem; }
#problem-h { text-wrap: balance; }
.hero-sub {
  margin: 0 0 3rem;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.625;
  color: var(--muted);
  max-width: 42rem;
}
.hero-actions {
  margin-top: 0;
  display: flex; align-items: stretch; gap: 1rem; flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .8em;
  white-space: nowrap;
  font-size: .875rem; letter-spacing: .05em;
  color: #fff; background: var(--ink);
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  transition: background .3s ease;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-primary .arrow { transition: transform .35s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-text {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-size: .875rem; letter-spacing: .05em;
  color: var(--ink); text-decoration: none;
  background: #fff;
  border: 1px solid var(--line-mid);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  transition: background .3s ease;
}
.btn-text:hover { background: var(--bg-tint); border-color: var(--line-mid); color: var(--ink); }

.scroll-cue {
  position: absolute; bottom: 2.4rem; left: var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: .85rem;
}
.scroll-cue .label {
  font-size: .6rem; letter-spacing: .34em; text-transform: uppercase; color: var(--faint);
}
.scroll-cue .track {
  position: relative; width: 1px; height: 66px; background: var(--line); overflow: hidden;
}
.scroll-cue .track::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 42%;
  background: linear-gradient(180deg, transparent, var(--muted) 55%, var(--ink));
  animation: scrollGlide 2.3s cubic-bezier(.65,.05,.36,1) infinite;
}
@keyframes scrollGlide {
  0%   { transform: translateY(-100%); opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translateY(252%); opacity: 0; }
}

/* ============================================================
   Concept groups (intro)
   ============================================================ */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}
.concept {
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.concept .idx {
  font-family: var(--serif); font-size: .9rem; color: var(--accent-soft);
  letter-spacing: .1em;
}
.concept h3 {
  font-family: var(--serif); font-weight: 600;
  font-size: 1.3rem; margin: .8rem 0 .7rem; letter-spacing: .04em;
}
.concept p { margin: 0; font-size: .9rem; line-height: 1.95; color: var(--ink-soft); }
.concept .en { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }

/* connective line under intro */
.flow-note {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  font-size: .82rem; letter-spacing: .08em; color: var(--muted);
}
.flow-note .chev { color: var(--accent-soft); }

/* ============================================================
   Problem — split statement
   ============================================================ */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.statement {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  max-width: 18em;
}
.statement .break { color: var(--ink); position: relative; }
.gap-row {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(1rem,3vw,2.5rem);
  max-width: 40rem;
}
.gap-row .node {
  text-align: center; padding: 1.4rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .85rem; color: var(--ink-soft); letter-spacing: .06em;
}
.gap-row .node .en { display:block; font-size:.64rem; letter-spacing:.2em; text-transform:uppercase; color:var(--muted); margin-bottom:.4rem; }
.gap-row .sever {
  display:flex; align-items:center; justify-content:center; color: var(--faint);
  font-size: .7rem; letter-spacing:.2em; min-width: 80px;
}
.gap-row .sever svg { display:block; }

/* ============================================================
   What we do — big value statement
   ============================================================ */
.value-statement {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 1.875rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 22em;
}
.value-statement .hl { color: var(--ink); }
.value-meta {
  margin-top: clamp(2.5rem,4vw,3.5rem);
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(1.5rem,3vw,3rem); max-width: 46rem;
}
.value-meta .item { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.value-meta .item .k { font-size:.75rem; letter-spacing:.04em; text-transform:uppercase; color:var(--faint); margin-bottom:.6rem; }
.value-meta .item p { margin:0; font-size:.95rem; line-height:1.75; color:var(--ink-soft); }

/* ============================================================
   Service areas — card grid (preview)
   ============================================================ */
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.service-item {
  display: block;
  padding: 2rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  border-radius: var(--radius);
  transition: border-color .3s ease, background .3s ease;
}
.service-item:hover { border-color: var(--line-mid); background: rgba(255,255,255,.8); }
.service-item .num { display:block; font-family: var(--sans); font-size: .875rem; color: var(--faint); letter-spacing:.05em; margin-bottom: 1rem; }
.service-item .name { display:block; font-family: var(--sans); font-weight: 500; font-size: 1.125rem; letter-spacing:-0.01em; color: var(--ink); margin-bottom: .75rem; }
.service-item .name .ja { display:block; font-family: var(--sans); font-weight:400; font-size:.75rem; letter-spacing:.04em; color: var(--muted); margin-top:.5rem; }
.service-item .desc { font-size:.875rem; line-height:1.625; color: var(--muted); margin:0; }

/* ============================================================
   Approach — process line
   ============================================================ */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  margin-top: 1rem;
  position: relative;
}
.process::before {
  content:""; position:absolute; top: 9px; left: 4%; right: 4%; height:1px;
  background: var(--line);
}
.step { position: relative; }
.step .dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-mid);
  position: relative; z-index:1; display:grid; place-items:center;
}
.step .dot::after { content:""; width:5px; height:5px; border-radius:50%; background: var(--ink); }
.step .ph { font-size:.75rem; letter-spacing:.04em; color:var(--faint); margin: 1.4rem 0 .5rem; }
.step h3 { font-family: var(--sans); font-weight:500; font-size:1.125rem; margin:0 0 .6rem; letter-spacing:-0.01em; }
.step p { margin:0; font-size:.875rem; line-height:1.625; color: var(--muted); }

/* ============================================================
   Track record — timeline
   ============================================================ */
.timeline { margin-top: 1rem; border-left: 1px solid var(--line); padding-left: clamp(1.5rem, 3vw, 2.6rem); display: grid; gap: clamp(2rem, 3.5vw, 3rem); }
.tl-item { position: relative; }
.tl-item::before {
  content:""; position:absolute; left: calc(-1 * clamp(1.5rem, 3vw, 2.6rem) - 4.5px); top: .55em;
  width: 9px; height: 9px; border-radius:50%; background:#fff; border:1px solid var(--accent-soft);
}
.tl-item .yr { font-family: var(--sans); font-size:.875rem; letter-spacing:.02em; color: var(--muted); margin-bottom:.5rem; }
.tl-item h3 { font-family: var(--sans); font-weight:500; font-size:1.125rem; margin:0 0 .5rem; letter-spacing:-0.01em; }
.tl-item p { margin:0; font-size:.9rem; line-height:1.75; color: var(--ink-soft); max-width: 34em; }

/* ============================================================
   Proof — stable structure cards
   ============================================================ */
.proof-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top:4rem; }
.proof-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem;
  background: rgba(255,255,255,.6);
  transition: border-color .3s ease, background .3s ease;
}
.proof-card:hover { border-color: var(--line-mid); background: rgba(255,255,255,.85); }
.proof-card .num { font-family: var(--sans); font-size:.875rem; letter-spacing:.05em; color: var(--faint); display:block; margin-bottom:1rem; }
.proof-card .glyph { width: 28px; height: 28px; color: var(--ink); margin-bottom: 1.3rem; }
.proof-card h3 { font-family: var(--sans); font-weight:500; font-size:1.125rem; margin:0 0 .75rem; letter-spacing:-0.01em; line-height:1.5; }
.proof-card p { margin:0; font-size:.875rem; line-height:1.625; color: var(--muted); }
.proof-card--center {
  display:flex; align-items:center; justify-content:center; text-align:center;
  min-height: 160px;
}
.proof-card--center h3 { margin:0; line-height:1.6; }

/* problem — two-column statement + body */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .split-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ============================================================
   Future eggs — poetic
   ============================================================ */
.eggs {
  text-align: center; max-width: 48rem; margin-inline: auto;
}
.eggs .poem {
  font-family: var(--sans); font-weight:300;
  font-size: clamp(1.6rem, 3vw, 1.875rem); line-height: 1.3; letter-spacing:-0.02em;
  color: var(--ink); margin: 0;
}
.eggs .poem .soft { color: var(--ink); }
.eggs .body-text { margin: 2rem auto 0; text-align: left; }

/* ============================================================
   Founder
   ============================================================ */
.founder { display: block; max-width: 42rem; }
.founder .id-card { border-top: none; padding-top: 0; margin-bottom: 1.5rem; }
.founder .id-card .role { display:block; font-size:.75rem; letter-spacing:.15em; text-transform:uppercase; color:var(--faint); margin-bottom:2rem; font-weight:400; }
.founder .id-card .name { font-family: var(--sans); font-weight:500; font-size: 1.5rem; letter-spacing:-0.01em; margin:0; }
.founder .id-card .name .en { display:block; font-size:.875rem; letter-spacing:.04em; color:var(--faint); font-weight:400; margin-top:.5rem; text-transform:none; }
.founder .roles { list-style:none; margin: 0 0 1.5rem; padding:0; display:block; }
.founder .role { font-size:.95rem; color: var(--ink-soft); margin: 0 0 1.5rem; line-height: 1.75; }
.founder .bio { font-size:1rem; line-height:1.75; color: var(--ink-soft); max-width: 42rem; }
.founder .bio p { margin: 0 0 1.5rem; }

/* ============================================================
   Company — table
   ============================================================ */
.company-table { width:100%; border-top: 1px solid var(--line); }
.company-table .row {
  display: grid; grid-template-columns: minmax(8rem, 1fr) 2fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.company-table .row dt { margin:0; font-size:.875rem; letter-spacing:0; text-transform:none; color: var(--muted); }
.company-table .row dd { margin:0; font-size:.875rem; color: var(--ink); line-height:1.75; }
.company-table .row dd .note { color: var(--faint); font-size:.82rem; }

/* ============================================================
   News — list
   ============================================================ */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-item { border-bottom: 1px solid var(--line); }
.news-link {
  display: grid;
  grid-template-columns: 7rem 6rem 1fr auto;
  align-items: baseline;
  gap: 1rem;
  padding: 1.5rem 0;
  text-decoration: none;
  transition: opacity .3s ease;
}
.news-link:hover { opacity: .6; }
.news-date { font-size: .8125rem; letter-spacing: .04em; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-cat {
  justify-self: start;
  font-size: .75rem; letter-spacing: .04em;
  color: var(--ink-soft);
  border: 1px solid var(--line-mid);
  border-radius: 999px;
  padding: .15rem .7rem;
}
.news-text { margin: 0; font-size: .875rem; color: var(--ink); line-height: 1.75; }
.news-arrow { color: var(--muted); font-size: .9rem; transition: transform .3s ease; }
.news-link:hover .news-arrow { transform: translateX(4px); }

.news-more { margin-top: 2rem; text-align: right; }
.news-more-link {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .875rem; letter-spacing: .02em; color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-mid);
  padding-bottom: .2rem;
  transition: color .3s ease, border-color .3s ease;
}
.news-more-link:hover { color: var(--muted); }
.news-more-link .arrow { transition: transform .3s ease; }
.news-more-link:hover .arrow { transform: translateX(4px); }

@media (max-width: 640px) {
  .news-link {
    grid-template-columns: auto auto 1fr;
    column-gap: 1rem; row-gap: .5rem;
  }
  .news-text { grid-column: 1 / -1; }
  .news-arrow { grid-row: 1; grid-column: 3; justify-self: end; }
}

/* ============================================================
   Contact CTA
   ============================================================ */
.contact {
  text-align: center;
  background: var(--bg-tint);
  padding-block: var(--section-pad);
}
.contact .eyebrow { text-align: center; }
.contact h2 {
  font-family: var(--sans); font-weight:300;
  font-size: clamp(1.6rem, 3vw, 1.875rem); line-height:1.4; letter-spacing:-0.02em;
  margin: 0 auto; max-width: 20em; color: var(--ink);
}
.contact p { margin: 1.5rem auto 0; max-width: 32rem; font-size:.875rem; line-height:1.625; color: var(--muted); }
.contact-lead {
  margin: 1.5rem auto 0;
  max-width: min(30rem, 100%);
  width: auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}
@media (max-width: 560px) {
  .contact-lead { font-size: .9375rem; }
  .contact-lead br { display: none; }
}
.contact .hero-actions { justify-content: center; margin-top: 3rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 3rem;
  background: #fff;
}
.footer-inner { display:flex; flex-wrap:wrap; justify-content:space-between; gap:1.5rem; align-items:center; }
.footer-brand .mark { font-family: var(--sans); font-weight:500; font-size:.9rem; letter-spacing:.02em; }
.footer-brand .mark em { font-style:normal; color: var(--ink); }
.footer-brand .tag { margin:.6rem 0 0; font-size:.75rem; color: var(--faint); letter-spacing:.02em; }
.footer-nav { display:flex; gap: 1.5rem; flex-wrap:wrap; }
.footer-nav a { font-size:.8rem; letter-spacing:0; color: var(--muted); text-decoration:none; transition: color .3s ease; }
.footer-nav a:hover { color: var(--ink); }
.footer-base { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; }
.footer-base small { font-size:.75rem; letter-spacing:0; color: var(--faint); }
.privacy-link { font-size:.75rem; letter-spacing:0; color: var(--muted); text-decoration:none; border-bottom:1px solid transparent; transition: color .3s ease, border-color .3s ease; }
.privacy-link:hover { color: var(--ink); border-color: var(--line-mid); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav { 
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 2rem;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { width:100%; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); font-size:.92rem; }
  .nav-cta { margin-top: 1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }

  .concept-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { white-space: normal; }
  .value-meta { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; }
  .process::before { display: none; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .founder { grid-template-columns: 1fr; gap: 2.5rem; }
  .gap-row { grid-template-columns: 1fr; gap: 1rem; max-width: 22rem; }
  .gap-row .sever { transform: rotate(90deg); min-width:auto; }
}

/* tablet: service/proof to 2 cols already; stack at small */
@media (max-width: 780px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  :root { --section-pad: 5rem; }
  .service-list { grid-template-columns: 1fr; }
  .company-table .row { grid-template-columns: 1fr; gap: .3rem; }
  .process { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .hero-inner { width: 100%; }
  .hero h1 { white-space: normal; }
  .hero-sub br { display: none; }
  #founder .lead { white-space: normal !important; }
  .hero-actions { gap: 1rem; }
  .hero-actions .btn-primary,
  .hero-actions .btn-text { width: 100%; justify-content: center; }
  .footer-base { flex-direction: column; gap: .4rem; }
}

/* ============================================================
   Chapter Navigator — fixed dotted rail, right edge
   dots only by default; label appears on hover / when active
   ============================================================ */
.chapter-nav {
  position: fixed;
  top: 50%;
  right: clamp(.9rem, 2vw, 1.8rem);
  transform: translateY(-50%);
  z-index: 60;
  pointer-events: none;
}
.chapter-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; align-items: flex-end;
  gap: clamp(.55rem, 1vw, .85rem);
}
.chapter-nav li { display: flex; }
.chapter-nav a {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none;
  padding: .25rem 0;
  flex-direction: row-reverse;        /* dot on the right, label slides left */
}
.chapter-nav .cn-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line-mid);
  flex: none;
  transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.chapter-nav .cn-label {
  font-size: .72rem; letter-spacing: .04em; line-height: 1;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0; transform: translateX(6px);
  transition: opacity .3s ease, transform .3s ease, color .3s ease;
}
/* hover: reveal label + emphasize dot */
.chapter-nav a:hover .cn-dot { background: var(--ink); transform: scale(1.25); }
.chapter-nav a:hover .cn-label { opacity: 1; transform: none; color: var(--ink); }
/* active chapter */
.chapter-nav a.active .cn-dot {
  background: var(--ink);
  transform: scale(1.35);
  box-shadow: 0 0 0 4px rgba(17,17,17,.07);
}
.chapter-nav a.active .cn-label { opacity: 1; transform: none; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .chapter-nav .cn-dot, .chapter-nav .cn-label { transition: none; }
}

/* hide on small screens — would crowd the content */
@media (max-width: 900px) {
  .chapter-nav { display: none; }
}

/* PC-only intentional line breaks: show on wide screens, collapse to a
   normal space (natural wrapping) on tablet / mobile so text stays clean. */
.pc-break { display: none; }
@media (min-width: 768px) {
  .pc-break { display: inline; }
}
