/* ===== AIMRIPPLE / design tokens ===== */
:root {
  --paper: #f0f1eb;
  --ink: #263a30;
  --muted: #53665a;
  --accent: #718875;
  --line: #cbd2c8;
  --card: #dce2d6;
  --max: 1120px;
  --gutter: clamp(22px, 5vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
h1,h2,h3,p { margin: 0; }
.wrap { width: min(calc(100% - var(--gutter) * 2), var(--max)); margin-inline: auto; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: .15em; color: var(--muted); }
.dot { display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
/* ===== Header ===== */
.header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 5; }
.wordmark { font-size: 29px; font-weight: 750; letter-spacing: -.075em; line-height: 1; }
.wordmark span, h2 span { color: var(--accent); }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a, .back-top { font-size: 11px; font-weight: 650; letter-spacing: .12em; }
.nav a:hover, .back-top:hover { text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; }
/* ===== Hero ===== */
.hero { position: relative; isolation: isolate; min-height: 510px; display: flex; align-items: center; padding: 66px 0 80px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(36px, 6.2vw, 76px); line-height: 1.4; letter-spacing: -.055em; font-weight: 700; margin: 24px 0; }
.hero-description { font-size: clamp(14px, 1.65vw, 17px); color: var(--muted); line-height: 2; }
.primary-button { margin-top: 34px; min-width: 218px; display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--ink); color: var(--paper); padding: 14px 22px; font-size: 12px; font-weight: 650; letter-spacing: .12em; transition: background .2s, transform .2s; }
.primary-button:hover { background: #405b47; transform: translateY(-2px); }
.primary-button span { font-size: 19px; line-height: 1; }
.ripples { position: absolute; width: min(62%, 650px); height: auto; right: -2%; top: 50%; transform: translateY(-50%); z-index: -1; pointer-events: none; }
.ripples ellipse { stroke: #829788; stroke-width: 1.1; opacity: .7; }
.ripples ellipse:nth-child(n+5) { opacity: .43; }
.ripple-center { fill: var(--ink); }
.hero-note { position: absolute; right: 0; bottom: 24px; font-size: 10px; font-weight: 650; letter-spacing: .14em; line-height: 1.5; color: var(--muted); text-align: right; }
.mobile-break { display: none; }
/* ===== Challenge ===== */
.section { padding-block: 52px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.challenge { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.challenge h2 { font-size: clamp(52px, 7vw, 86px); letter-spacing: -.075em; line-height: 1.1; margin: 8px 0 12px; }
.challenge-copy > p:last-child { color: var(--muted); font-size: 14px; }
.progress-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.progress-heading strong { font-size: 44px; letter-spacing: -.07em; font-weight: 650; line-height: 1; font-variant-numeric: tabular-nums; }
.progress-heading p span { color: var(--muted); font-size: 18px; }
.progress-label, .progress-caption { font-size: 11px; color: var(--muted); letter-spacing: .075em; }
progress { display: block; appearance: none; border: 0; width: 100%; height: 7px; background: #d7ded4; border-radius: 8px; overflow: hidden; margin: 16px 0 10px; }
progress::-webkit-progress-bar { background: #d7ded4; border-radius: 8px; }
progress::-webkit-progress-value { background: #526e58; border-radius: 8px; }
progress::-moz-progress-bar { background: #526e58; border-radius: 8px; }
/* ===== Project directory ===== */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; letter-spacing: -.055em; margin-top: 8px; }
.project-total { font-size: 11px; letter-spacing: .1em; color: var(--muted); white-space: nowrap; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project-card { min-height: 235px; padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; background: var(--card); border: 1px solid transparent; border-radius: 4px; transition: transform .2s, border-color .2s; }
a.project-card:hover { transform: translateY(-3px); border-color: #829788; }
.card-top, .card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-top { align-items: flex-start; }
.card-id, .card-status { font-size: 10px; font-weight: 650; letter-spacing: .1em; color: var(--muted); }
.card-status { letter-spacing: .03em; text-align: right; }
.card-icon { display: block; width: 32px; height: 32px; margin-bottom: 12px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.card-title { font-size: clamp(30px, 4vw, 45px); font-weight: 700; line-height: 1.1; letter-spacing: -.05em; overflow-wrap: anywhere; }
.card-description { margin-top: 10px; font-size: 13px; line-height: 1.6; }
.card-category { font-size: 11px; color: var(--muted); }
.card-arrow { font-size: 22px; line-height: 1; }
.next-card { background: transparent; border: 1px dashed #b4c0b3; color: var(--muted); }
.next-card .card-title { font-size: clamp(23px, 3vw, 33px); }
/* ===== About / footer ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about h2 { margin-top: 10px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.055em; line-height: 1.2; }
.about-copy { color: var(--muted); font-size: 14px; line-height: 2; }
.about-copy p + p { margin-top: 10px; }
.footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer .wordmark { font-size: 24px; }
.footer p { color: var(--muted); font-size: 10px; letter-spacing: .06em; }
/* ===== Mobile ===== */
@media (max-width: 700px) {
  .header { min-height: 70px; }
  .wordmark { font-size: 27px; }
  .menu-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: transparent; border: 0; width: 44px; height: 44px; padding: 8px; cursor: pointer; }
  .menu-toggle span { width: 23px; height: 1.5px; background: var(--ink); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav { display: none; position: absolute; inset: 65px 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); padding: 8px 20px; border: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; }
  .nav a + a { border-top: 1px solid var(--line); }
  .hero { min-height: 0; padding: 190px 0 40px; }
  .hero h1 { margin: 16px 0; font-size: clamp(33px, 8.7vw, 53px); }
  .ripples { width: 85%; top: 83px; right: -8%; opacity: .9; }
  .hero-note { top: 15px; bottom: auto; font-size: 9px; }
  .mobile-break { display: initial; }
  .primary-button { margin-top: 26px; }
  .section { padding-block: 35px; }
  .challenge, .about { grid-template-columns: 1fr; gap: 22px; }
  .challenge h2 { font-size: 64px; }
  .project-grid { gap: 10px; }
  .project-card { padding: 16px 12px; min-height: 200px; gap: 16px; }
  .card-title { font-size: 29px; }
  .next-card .card-title { font-size: 22px; }
  .card-top { flex-wrap: wrap; }
  .card-id, .card-status, .card-category { font-size: 9px; }
  .card-description { font-size: 12px; }
  .footer { flex-wrap: wrap; padding-block: 26px; min-height: 0; }
  .footer p { order: 3; width: 100%; }
}
@media (max-width: 340px) { .project-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
