/* ==========================================================================
   curvegrid.com — site styles
   One stylesheet for the whole site. Sections:
     1. Tokens & reset        5. Footer & social strip   9.  Home page
     2. Layout helpers        6. Cookie banner           10. Product pages (frame/grid system)
     3. Buttons, chips        7. Reveal animations       11. Blog, events, legal, contact
     4. Navigation            8. Prose (article bodies)  12. Responsive overrides
   Breakpoints (same as the old Framer site): desktop >= 1200px, tablet 810–1199px, phone < 810px.
   ========================================================================== */

/* 1. Tokens & reset ------------------------------------------------------- */
:root {
  --red: #ee2121;
  --red-dark: #c5292a;
  --navy: #060921;
  --green: #2ac9a3;
  --black: #000;
  --white: #fff;
  --grey-50: #f9f9f9;
  --grey-100: #f0f1f4;
  --grey-200: #d4d4d4;
  --grey-400: #9e9e9e;
  --grey-500: #6c6c6c;
  --grey-700: #3a3a3a;
  --grey-800: #2a2a2a;
  --grey-900: #1a1a1a;
  --grey-950: #0a0a0a;
  --line: var(--grey-100);

  /* Japanese text uses the visitor's system Japanese font (see fonts.css). */
  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, "Noto Sans JP", "Noto Sans CJK JP";
  --font-heading: "General Sans", "General Sans Placeholder", var(--font-ja), sans-serif;
  --font-body: "Inter Display", "Inter Display Placeholder", var(--font-ja), system-ui, sans-serif;
  --font-ui: "Inter", "Inter Placeholder", var(--font-ja), system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "JetBrains Mono Placeholder", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1136px;  /* nav, hero, footer content width */
  --frame: 1128px;      /* bordered product-page frame */
  --gutter: 32px;
  --nav-h: 64px;
  --radius: 10px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--grey-900);
  font: 400 16px/1.2 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 500; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 12px; background: var(--black); color: var(--white); border-radius: 8px; }
.skip-link:focus { top: 8px; }
.lang-ja { word-break: normal; line-break: strict; }

/* 2. Layout helpers ------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
main { display: block; padding-top: 60px; } /* Framer overlapped the 64px nav by 4px */

/* 3. Buttons, chips ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 12px; border-radius: var(--radius);
  font: 500 14px/1.2 var(--font-body); white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; margin-right: -2px; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--grey-700); }
.btn svg { transition: transform .2s; }
.btn-block { display: flex; width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px;
  background: rgba(238, 33, 33, .1); color: var(--red);
  font: 700 13px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0;
}
.chip-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip svg { width: 18px; height: 18px; margin: -2px -4px -2px 0; }
a.chip:hover { background: rgba(238, 33, 33, .2); }

/* 4. Navigation ----------------------------------------------------------- */
/* The header scrolls away with the page, like the original (it is only pinned while the phone menu is open). */
.site-header { position: absolute; inset: 0 0 auto; z-index: 50; background: var(--white); }
body.menu-open .site-header { position: fixed; }
.nav { height: var(--nav-h); display: flex; align-items: center; gap: 36px; }
.nav-logo { display: block; width: 167px; flex: none; color: var(--navy); }
.nav-logo svg { width: 167px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 24px; flex: 1; }
.nav-item {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: var(--radius);
  font: 400 16px/1.2 var(--font-body); color: var(--grey-900); white-space: nowrap;
  transition: background-color .2s;
}
.nav-item:hover, .nav-dropdown.is-open > .nav-item { background: var(--grey-50); }
.nav-chevron { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.nav-dropdown { position: relative; }
.nav-menu {
  position: absolute; left: -91px; top: calc(100% + 8px); min-width: 292px; padding: 8px;
  background: var(--white); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .02);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .25s var(--ease-out), visibility 0s .25s;
}
.nav-dropdown.is-open .nav-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease-out); }
.nav-menu a { padding: 11px 10px; border-radius: 8px; font: 400 16px/1.2 var(--font-body); color: var(--grey-900); }
.nav-menu a:hover { background: var(--grey-50); }
.nav-narrow { display: none; }
.nav-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.lang-trigger { display: inline-flex; align-items: center; gap: 5px; height: 35px; padding: 0 8px 0 10px; border-radius: var(--radius); font: 400 14px/1 var(--font-ui); color: var(--black); transition: background-color .2s; }
.lang-trigger:hover, .lang-switch.is-open .lang-trigger { background: var(--grey-50); }
.lang-trigger svg:first-child { width: 18px; height: 18px; }
.lang-trigger .nav-chevron { width: 14px; height: 14px; color: var(--grey-500); }
.lang-menu { left: auto; right: 0; min-width: 168px; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 400 15px/1.2 var(--font-ui); }
.lang-menu a[aria-current] { font-weight: 500; }
.lang-menu svg { width: 16px; height: 16px; color: var(--red); }
.nav-actions .nav-login { margin-right: 4px; }
.nav-burger { display: none; width: 36px; height: 36px; position: relative; }
.burger-lines, .burger-lines::before, .burger-lines::after {
  position: absolute; left: 9px; width: 18px; height: 1.5px; background: var(--grey-900); border-radius: 2px;
  transition: transform .3s var(--ease-out), top .3s var(--ease-out), opacity .2s;
}
.burger-lines { top: 17px; background: transparent; }
.burger-lines::before, .burger-lines::after { content: ""; left: 0; }
.burger-lines::before { top: -4px; }
.burger-lines::after { top: 4px; }
.nav-burger[aria-expanded="true"] .burger-lines::before { top: 0; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-lines::after { top: 0; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; overflow-y: auto; background: var(--white);
  padding: 20px 16px 40px; display: flex; flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-label { padding: 12px 12px; font: 500 18px/1.2 var(--font-heading); color: var(--grey-500); }
.mobile-link { padding: 20px 12px; font: 500 18px/1.2 var(--font-heading); color: var(--grey-900); display: flex; align-items: center; gap: 6px; }
.mobile-sub { padding: 12px 28px; }
.mobile-sub:first-of-type { padding-top: 22px; }
.mobile-sub + .mobile-link:not(.mobile-sub) { margin-top: 18px; }
.mobile-lang { margin: 6px 0 22px; }
.mobile-lang svg { width: 18px; height: 18px; }
.mobile-menu .btn { height: 46px; font: 500 18px/1.2 var(--font-heading); }
.mobile-menu .btn svg { width: 22px; height: 22px; }
body.menu-open { overflow: hidden; }

/* 5. Footer & social strip ---------------------------------------------- */
.social-strip { display: flex; justify-content: flex-end; gap: 12px; padding-top: 32px; padding-bottom: 32px; padding-right: 64px; }
.social-strip a { color: var(--grey-400); width: 24px; height: 24px; transition: color .2s; }
.social-strip a:hover { color: var(--grey-700); }
.social-strip svg { width: 24px; height: 24px; }
.site-footer { background: var(--red-dark); color: var(--white); }
.footer-inner { padding-inline: 0; max-width: var(--container); border-inline: 1px solid rgba(255, 255, 255, .2); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.footer-col { padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-height: 343px; }
.footer-col + .footer-col { border-left: 1px solid rgba(255, 255, 255, .2); }
.footer-col h2 { font: 500 16px/1.2 var(--font-heading); color: rgba(255, 255, 255, .85); margin: 3px 0 18px; }
.footer-col a, .footer-cookie {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 22px;
  font: 500 16px/1.2 var(--font-body); color: var(--white); text-align: left;
  transition: opacity .2s;
}
.footer-col-legal h2 { margin-top: 0; }
.footer-col-legal a, .footer-cookie { font-family: var(--font-heading); }
.footer-col-legal a { margin-bottom: 22px; }
.footer-col-tight a { margin-bottom: 15px; }
.footer-col-tight a:last-child { margin-top: 4px; }
.footer-col a:hover, .footer-cookie:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-col a svg { width: 14px; height: 14px; margin-left: 2px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 32px; border-top: 1px solid rgba(255, 255, 255, .2); min-height: 72px; }
.footer-logo { display: inline-flex; align-items: center; gap: 7px; color: var(--white); }
.footer-mark { width: 24px; height: 24px; }
.footer-wordmark { width: 88px; height: 16px; }
.footer-bottom p { font: 500 16px/1.2 var(--font-heading); }

/* 6. Cookie banner ------------------------------------------------------- */
.cookie {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 360px; max-width: calc(100vw - 40px);
  padding: 20px; background: var(--white); border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05), 0 10px 40px rgba(0, 0, 0, .06);
  font: 400 14px/1.5 var(--font-ui); color: #444;
  animation: cookie-in .5s var(--ease-out) both;
}
.cookie[hidden] { display: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } }
.cookie-title { font-weight: 700; color: var(--black); margin-bottom: 10px; line-height: 1.2; }
.cookie-buttons { display: flex; gap: 10px; margin-top: 16px; }
.cookie-btn { flex: 1; height: 34px; padding: 0 10px; border-radius: 8px; background: #eee; color: #444; font: 400 14px/1 var(--font-ui); transition: opacity .2s; }
.cookie-btn:hover { opacity: .6; }
.cookie-btn-primary { background: var(--black); color: var(--white); }
.cookie-btn-save { width: 100%; margin-top: 16px; background: #555; color: var(--white); }
.cookie-options { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.cookie-options[hidden] { display: none; }
.cookie-option { display: block; padding: 12px; border-radius: 8px; background: #f7f7f7; font-size: 12px; cursor: pointer; }
.cookie-option-head { display: flex; justify-content: space-between; align-items: center; color: #222; margin-bottom: 6px; }
.cookie-option-text { color: #666; }
.cookie-option input { appearance: none; width: 24px; height: 14px; border-radius: 7px; background: #ccc; position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.cookie-option input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--white); transition: transform .2s; }
.cookie-option input:checked { background: var(--black); }
.cookie-option input:checked::after { transform: translateX(10px); }
.cookie-option input:disabled { opacity: .6; cursor: default; }

/* 7. Reveal animations ---------------------------------------------------
   Elements with [data-reveal] fade/slide in when scrolled into view (site.js adds .is-visible).
   Without JS, or with reduced motion, everything is simply visible. */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.96); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Page-load "appear" animations (home page). Values copied from the Framer site's appear effects:
   each element rises --appear-y px and fades in after --appear-delay, with a springy ease. */
.js .appear {
  opacity: 0; transform: translateY(var(--appear-y, 36px));
  animation: appear-fade calc(var(--appear-dur, 1s) * .5) ease-out var(--appear-delay, 0s) forwards,
             appear-rise var(--appear-dur, 1s) cubic-bezier(.2, 1.12, .4, 1) var(--appear-delay, 0s) forwards;
}
@keyframes appear-fade { to { opacity: 1; } }
@keyframes appear-rise { to { transform: none; } }
.appear-title { --appear-y: 240px; --appear-dur: 1.2s; --appear-delay: 0s; }
.appear-text { --appear-y: 36px; --appear-delay: 1s; }
.appear-btn { --appear-y: 36px; --appear-delay: 1.2s; }
.appear-chip { --appear-y: 30px; --appear-delay: 1.6s; }
.appear-cards { --appear-y: 260px; --appear-delay: 1.8s; }
@media (max-width: 1199.98px) { .appear-title { --appear-y: 206px; } }
@media (max-width: 809.98px) { .appear-title { --appear-y: 137px; } }
@media (prefers-reduced-motion: reduce) { .js .appear { opacity: 1; transform: none; animation: none; } }

/* 8. Prose (blog & legal bodies, rendered from Markdown) ------------------
   Metrics match the old Framer CMS rich text: 16px/1.2 text, paragraphs 20px apart,
   block elements (lists, code, tables, images, embeds) 32px, headings 40px. */
.prose { font: 400 16px/1.2 var(--font-body); color: var(--grey-900); overflow-wrap: break-word; }
.prose > * + * { margin-top: 20px; }
.prose > * + :is(ul, ol, pre, table, figure, blockquote, .video-embed, iframe, hr),
.prose > * + p:has(> img:only-child) { margin-top: 32px; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { font-family: var(--font-heading); font-weight: 500; color: var(--black); line-height: 1.4; letter-spacing: -.02em; }
.prose > * + :is(h1, h2, h3, h4, h5, h6) { margin-top: 40px; }
.prose > :is(h1, h2, h3, h4, h5, h6) + * { margin-top: 20px; }
.prose h1 { font-size: 32px; }
.prose h2, .prose h4 { font-size: 28px; }
.prose h3 { font-size: 24px; }
.prose h5 { font-size: 24px; font-weight: 600; letter-spacing: -.04em; }
.prose h6 { font-size: 20px; }
.prose a { text-decoration: underline; color: var(--grey-700); transition: color .2s; }
.prose strong { font-weight: 700; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li > * + * { margin-top: 8px; }
.prose li > :is(ul, ol) { margin-top: 0; }
.prose img { max-width: 100%; height: auto; }
.prose blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--grey-200); color: var(--grey-700); }
.prose blockquote > * + * { margin-top: 12px; }
.prose code { font: 400 1em/1.2 "Fragment Mono", var(--font-mono); background: rgba(0, 0, 0, .1); color: #333; border-radius: 6px; padding: .1em .2em; }
.prose pre { padding: 30px 30px 30px 34px; border-radius: 15px; background: #161820; color: #eee; overflow-x: auto; font: 400 14px/1.5 "Fragment Mono", var(--font-mono); tab-size: 4; }
.prose pre code { background: none; padding: 0; font: inherit; color: inherit; border-radius: 0; }
.prose table { width: 100%; border: 1px solid rgba(153, 153, 153, .25); border-radius: 8px; border-spacing: 0; }
.prose th, .prose td { padding: 10px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(153, 153, 153, .25); border-right: 1px solid rgba(153, 153, 153, .25); }
.prose tr > :last-child { border-right: 0; }
.prose tbody tr:last-child > *, .prose table:not(:has(tbody)) tr:last-child > * { border-bottom: 0; }
.prose th { background: rgba(153, 153, 153, .1); font-weight: 600; }
.prose td > * + *, .prose th > * + * { margin-top: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); }
.video-embed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Prism (build-time syntax highlighting) — dark theme close to the old Framer code block */
.token.comment, .token.prolog, .token.doctype, .token.cdata { color: #7a7f99; }
.token.punctuation { color: #999; }
.token.property, .token.tag, .token.constant, .token.symbol, .token.deleted { color: #ff8a80; }
.token.boolean, .token.number { color: #f7a35c; }
.token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: #9ce39a; }
.token.operator, .token.entity, .token.url { color: #89ddff; }
.token.atrule, .token.attr-value, .token.keyword { color: #66b3ff; }
.token.function, .token.class-name { color: #ffcb6b; }
.token.regex, .token.important, .token.variable { color: #ffcb6b; }

/* 9. Home page ------------------------------------------------------------ */
.home-hero { position: relative; display: flex; min-height: 616px; padding-top: 64px; padding-bottom: 96px; }
.home-hero-copy { position: relative; z-index: 2; width: 557px; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; }
.home-hero-copy > * { pointer-events: auto; }
.home-title { margin-top: 24px; font-size: 56px; line-height: 1.4; color: var(--grey-900); }
.home-text { margin-top: 24px; width: 512px; max-width: 100%; font-size: 18px; line-height: 1.2; color: var(--grey-900); }
.home-hero-copy .btn { margin-top: 36px; }
.title-nowrap { white-space: nowrap; }
.chain-ticker { display: inline-block; vertical-align: top; height: 78px; overflow: hidden; padding-left: 20px; margin-top: 1px; }
.lang-ja .chain-ticker { padding-left: 12px; margin-left: -12px; width: 372px; }
.chain-ticker-track { display: flex; flex-direction: column; will-change: transform; }
.chain-ticker-item { display: flex; align-items: center; height: 67.2px; margin-block: 5.6px; line-height: 1.2; white-space: nowrap; }
.chain-ticker-item img { width: 56px; height: 56px; margin-right: 0; flex: none; }

.home { position: relative; }
/* Lanyard badge (three.js canvas, see js/lanyard.js). The canvas box matches the Framer layout:
   it starts at the hero's left edge and extends right and up under the nav so the strap hangs from above. */
.lanyard { position: absolute; z-index: 1; left: max(0px, calc((100% - 1200px) / 2)); top: -236px; width: calc(min(100%, 1200px) + 532px); height: 906px; pointer-events: none; }
.lanyard canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: auto; touch-action: pan-y; }
.lanyard-fallback { position: absolute; left: calc(min(100vw, 1200px) * .7217 - 125px); top: 416px; width: 250px; height: auto; transition: opacity .3s; }
.js .lanyard-fallback { display: none; }
.js .lanyard.no-webgl .lanyard-fallback { display: block; }
.home { overflow-x: clip; }

.home-cards { display: flex; padding-bottom: 96px; position: relative; z-index: 2; }
/* Solution cards. Hover (desktop) mirrors the Framer card: a red layer fades in, the card widens,
   the icon gives way and the title slides up, and the description + arrow (parked below the card's
   clipped bottom edge) slide up into view — all on one ~0.6s ease-out. */
.home-card {
  --card-ease: .6s cubic-bezier(.33, 1, .68, 1);
  position: relative; flex: 1 1 0; min-width: 0; height: 260px; padding: 61px 36px 0;
  display: flex; flex-direction: column; justify-content: flex-start;
  background: var(--white); border: 1px solid var(--line); margin-left: -1px; overflow: hidden;
  transition: flex-grow var(--card-ease);
}
.home-card::before { content: ""; position: absolute; inset: -1px; background: var(--red-dark); opacity: 0; transition: opacity var(--card-ease); }
.home-card > * { position: relative; }
.home-card:first-child { margin-left: 0; }
.home-card h2 { font-size: 32px; line-height: 1.2; color: var(--grey-900); max-width: 260px; transition: color var(--card-ease); }
.home-card-icon { width: 36px; height: 36px; margin-bottom: 24px; color: var(--black); flex: none; overflow: hidden; transition: height var(--card-ease), margin var(--card-ease), opacity .15s; }
.home-card-icon svg, .home-card-arrow svg { width: 100%; height: 100%; }
.home-card-more { margin-top: 106px; transition: margin var(--card-ease); }
/* Fixed at its final (hovered-card) width, so it doesn't re-wrap while the card widens — the
   card's overflow clip simply unveils it, as on the original. */
.home-card p { width: 437px; font: 400 16px/1.2 var(--font-body); color: var(--white); }
.home-card-arrow { display: block; width: 36px; height: 36px; margin-top: 25px; color: var(--white); }
@media (hover: hover) and (min-width: 1200px) {
  /* hovered card ≈ 509px, the others ≈ 313px (content widths 437 : 241) */
  .home-card:hover { flex-grow: 1.81; z-index: 1; }
  .home-card:hover::before { opacity: 1; }
  .home-card:hover h2 { color: var(--white); max-width: 440px; }
  .home-card:hover .home-card-icon { height: 0; margin-bottom: 0; opacity: 0; }
  .home-card:hover .home-card-more { margin-top: 27px; }
}

/* 10. Product pages: hero + bordered "frame" of sections ---------------- */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-top: 92px; padding-bottom: 94px; min-height: 581px; }
.hero-copy { flex: 0 1 487px; display: flex; flex-direction: column; align-items: flex-start; }
.hero-title { margin-top: 24px; font-size: 56px; line-height: 1.2; color: var(--grey-950); }
.hero-copy > .hero-title:first-child { margin-top: 0; }
.hero-text { margin-top: 24px; font: 400 18px/1.2 var(--font-body); color: var(--grey-900); }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { flex: 0 1 568px; display: flex; justify-content: center; align-items: center; }
.hero-visual img { width: 100%; }

/* The frame: a 1128px column with hairline borders; sections stack inside it. */
.frame { width: calc(100% - 2 * var(--gutter)); max-width: var(--frame); margin-inline: auto; border-inline: 1px solid var(--line); }
.frame > * + * { border-top: 1px solid var(--line); }
.band { height: 60px; background: var(--grey-50); }
.section-title { padding: 24px; text-align: center; }
.section-title h2, .frame h2 { font-size: 40px; line-height: 1.2; color: var(--grey-950); }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.cell { padding: 32px; background: var(--white); }
/* hairlines between cells: right border except last in row, top border from second row */
.grid-2 > .cell:not(:nth-child(2n)), .grid-3 > .cell:not(:nth-child(3n)), .grid-4 > .cell:not(:nth-child(4n)) { border-right: 1px solid var(--line); }
.grid-2 > .cell:nth-child(n+3), .grid-3 > .cell:nth-child(n+4), .grid-4 > .cell:nth-child(n+5) { border-top: 1px solid var(--line); }
.feature { display: flex; flex-direction: column; gap: 16px; }
.feature-title { display: flex; align-items: center; gap: 10px; font: 500 16px/1.2 var(--font-heading); color: var(--grey-900); }
.feature-icon { width: 20px; height: 20px; flex: none; color: var(--grey-900); }
.feature-icon svg { width: 100%; height: 100%; }
.feature-text { font: 400 16px/1.2 var(--font-body); color: var(--grey-700); }
.number-cell { display: flex; flex-direction: column; gap: 16px; padding: 36px; }
.number { font: 500 40px/1.2 var(--font-heading); color: var(--grey-950); }
.number-title { font: 500 22px/1.2 var(--font-heading); color: var(--grey-950); }

.cta-block { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 96px 36px; text-align: center; }
.cta-block .cta-text { max-width: 528px; font: 400 18px/1.2 var(--font-body); color: var(--grey-900); }
.cta-block .cta-text p + p { margin-top: 16px; }

.faq { display: grid; grid-template-columns: 372px 1fr; }
.faq-intro { padding: 128px 36px 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; border-right: 1px solid var(--line); }
.faq-intro p { font: 400 16px/1.2 var(--font-body); color: var(--grey-700); max-width: 300px; }
.faq-intro .btn { margin-top: 0; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 76px; padding: 24px; font: 500 16px/1.2 var(--font-body); color: var(--grey-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; width: 14px; height: 14px; flex: none; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--grey-900); transition: transform .3s var(--ease-out); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0deg); }
.faq-body { overflow: hidden; transition: height .35s var(--ease-out); }
.faq-answer { margin: 0 24px; padding: 24px 0 24px; border-top: 1px solid var(--line); font: 400 16px/1.2 var(--font-body); color: var(--grey-900); }
.faq-answer p + p, .faq-answer p + ul, .faq-answer ul + p { margin-top: 20px; }
.faq-answer ul { padding-left: 20px; }
.faq-answer a { color: var(--grey-700); text-decoration: underline; }
.faq-answer strong { font-weight: 700; }

/* Marquee: a row that scrolls forever. Markup: .marquee > .marquee-track ×2 (identical copies). */
.marquee { --speed: 33s; display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; flex: none; gap: 26px; padding-right: 26px; animation: marquee var(--speed) linear infinite; }
.marquee-reverse .marquee-track { animation-direction: reverse; }
.marquee-vertical { flex-direction: column; -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-vertical .marquee-track { flex-direction: column; padding-right: 0; padding-bottom: 26px; animation-name: marquee-y; }
@keyframes marquee-y { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes marquee { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Tabs: [data-tabs] with role=tab buttons and role=tabpanel panels (site.js). */
[role="tabpanel"]:not([hidden]) { animation: tab-in .45s var(--ease-out); }
@keyframes tab-in { from { opacity: 0; transform: translateY(8px); } }

/* 11a/11b. Blog & events: shared list bits (page styles: css/pages/blog.css, events.css) --
   "Load More" lists use site.js [data-list]; items hidden by JS get [hidden]. */
[data-list] [data-item][hidden] { display: none; }
.item-in { animation: item-in .5s var(--ease-out) both; }
@keyframes item-in { from { opacity: 0; transform: translateY(12px); } }
.list-more { display: flex; justify-content: center; }
.btn-more {
  display: inline-flex; align-items: center; justify-content: center; width: 100px; height: 40px;
  border-radius: var(--radius); background: #444; color: var(--white); font: 600 14px/1.2 var(--font-ui);
  transition: background-color .2s;
}
.btn-more[hidden] { display: none; }

/* 12. Responsive overrides ------------------------------------------------
   Keep these at the end of the file. Page-specific overrides live in css/pages/<page>.css. */
@media (max-width: 1199.98px) {
  .prose { font-size: 15px; }
  .prose h1 { font-size: 28px; } .prose :is(h2, h4) { font-size: 24px; } .prose :is(h3, h5) { font-size: 18px; } .prose h6 { font-size: 17px; }
  :root { --gutter: 32px; }
  .nav { gap: 24px; padding-inline: 16px; max-width: none; }
  .nav-links { gap: 12px; }
  .nav-wide { display: none; }
  .nav-narrow { display: block; }
  .nav-item { font-size: 15px; }
  .nav-actions { gap: 16px; }
  .footer-col { padding: 32px; min-height: 336px; }
  .footer-col h2, .footer-col a { font-size: 15px; }
  .home-hero { min-height: 516px; padding-top: 64px; padding-bottom: 36px; }
  .home-hero-copy { width: 450px; }
  .home-title { font-size: 48px; }
  .home-text { width: 480px; font-size: 17px; }
  .chain-ticker { height: 67px; }
  .lang-ja .chain-ticker { width: 320px; }
  .chain-ticker-item { height: 57.6px; margin-block: 4.8px; }
  .chain-ticker-item img { width: 48px; height: 48px; }
  .home-cards { padding-top: 36px; padding-bottom: 64px; }
  .lanyard { left: 0; top: -138px; width: calc(100% + 443px); height: 618px; }
  .lanyard-fallback { left: 61%; top: 260px; width: 200px; }
  .home-card { height: 260px; }
  .home-card { padding-top: 47px; }
  .home-card h2 { font-size: 24px; max-width: 200px; }
  .home-card-icon { width: 32px; height: 32px; }
  .home-card p { display: none; }
  .home-card-arrow { position: absolute; right: 24px; bottom: 24px; width: 32px; height: 32px; margin: 0; color: var(--grey-400); }
  .footer-col-legal a { max-width: 200px; }
  .hero { gap: 32px; min-height: 0; padding-bottom: 64px; }
  .hero-title { font-size: 48px; }
  .hero-text { font-size: 17px; }
  .section-title h2, .frame h2 { font-size: 32px; }
  .cell { padding: 24px; }
  .feature-title, .feature-text { font-size: 15px; }
  .cta-block { padding: 64px 24px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 > .cell:nth-child(n) { border-right: 0; border-top: 0; }
  .grid-4 > .cell:nth-child(odd) { border-right: 1px solid var(--line); }
  .grid-4 > .cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .faq { grid-template-columns: 1fr; }
  .faq-intro { padding: 64px 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .faq-intro p { max-width: none; font-size: 15px; }
  .faq-item summary { font-size: 15px; }
}
@media (max-width: 809.98px) {
  :root { --gutter: 20px; }
  .nav { padding-inline: 16px; }
  .nav-links, .lang-switch, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav-actions { gap: 8px; }
  .nav-actions .nav-login { font: 500 18px/1.2 var(--font-heading); margin-right: 0; }
  .social-strip { justify-content: center; padding-right: var(--gutter); }
  .footer-inner { border-inline: 0; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-col { min-height: 0; padding: 32px 32px 24px; }
  .footer-col + .footer-col { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
  .footer-col-tight a { margin-bottom: 15px; }
  .footer-bottom { flex-direction: column; justify-content: center; text-align: center; gap: 20px; padding: 24px 32px; }
  .footer-bottom p { font-size: 15px; }
  .cookie { left: 20px; right: 20px; bottom: 20px; width: auto; max-width: none; }

  .home { display: flex; flex-direction: column; }
  .home-hero { min-height: 0; padding-top: 44px; padding-bottom: 36px; }
  .home-hero-copy { width: 100%; }
  .home-title { font-size: 32px; margin-top: 24px; }
  .home-text { width: 100%; font-size: 16px; margin-top: 24px; }
  .home-hero-copy .btn { margin-top: 36px; font-size: 13px; }
  .chip { font-size: 11px; }
  .chain-ticker { height: 45px; padding-left: 10px; }
  .lang-ja .chain-ticker { width: auto; margin-left: 0; padding-left: 0; padding-right: 8px; }
  .chain-ticker-item { height: 38.4px; margin-block: 3.2px; }
  .chain-ticker-item img { width: 32px; height: 32px; }
  .home-cards { flex-direction: column; padding-top: 20px; padding-bottom: 36px; }
  .home-card { flex: none; height: auto; margin-left: 0; margin-top: -1px; padding: 24px 20px; display: grid; grid-template-columns: 24px 1fr 24px; column-gap: 10px; row-gap: 20px; align-items: center; }
  .home-card:first-child { margin-top: 0; }
  .home-card-icon { width: 24px; height: 24px; margin: 0; grid-column: 1; grid-row: 1; }
  .home-card-more { display: contents; }
  .home-card h2 { grid-column: 2 / 4; font-size: 24px; max-width: none; }
  .home-card p { display: block; width: auto; grid-column: 1 / 3; color: var(--grey-700); font-size: 15px; }
  .home-card::before { display: none; }
  .home-card-arrow { display: block; position: static; grid-column: 3; width: 24px; height: 24px; margin: 0; color: var(--grey-400); align-self: end; }
  .lanyard { position: relative; left: 0; top: 0; width: 100%; height: 504px; order: 3; margin-top: -60px; }
  .lanyard-fallback { left: calc(50% - 70px); top: 150px; width: 140px; }

  .hero { flex-direction: column; align-items: stretch; padding-top: 44px; padding-bottom: 48px; }
  .hero-copy { flex: none; }
  .hero-title { font-size: 36px; }
  .hero-text { font-size: 16px; }
  .hero-visual { flex: none; }
  .frame { width: 100%; max-width: none; }
  .band { height: 36px; }
  .section-title { padding: 20px; }
  .section-title h2, .frame h2 { font-size: 28px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid > .cell:nth-child(n) { border-right: 0; border-top: 1px solid var(--line); }
  .grid > .cell:first-child { border-top: 0; }
  .cell { padding: 24px 20px; }
  .number-cell { padding: 24px 20px; }
  .cta-block { padding: 64px 20px; }
  .faq { grid-template-columns: 1fr; }
  .faq-intro { padding: 36px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .faq-item summary { padding: 20px; min-height: 64px; }
  .faq-answer { margin: 0 20px; }
  .prose table { display: block; overflow-x: auto; }
  .prose h1 { font-size: 24px; } .prose :is(h2, h4) { font-size: 20px; } .prose :is(h3, h5) { font-size: 16px; } .prose h6 { font-size: 15px; }
}
