/* sedohara.com — docs/design/DESIGN.md のトークンをそのまま使う。hex はここ（:root）以外に書かない。2026-10-14 刷新（§11 仕掛け） */
:root {
  --color-bg: #17181A;
  --color-bg-raised: #1E1F22;
  --color-text: #ECEAE4;
  --color-text-strong: #FFFFFF;
  --color-text-muted: #9A9893;
  --color-line: #4A4B4E;
  --color-line-strong: #ECEAE4;
  --color-link: #ECEAE4;
  --color-focus: #FFFFFF;

  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", system-ui, sans-serif;
  --font-latin: "Space Grotesk", "Noto Sans JP", system-ui, sans-serif;
  --line-height-body: 1.9;
  --line-height-display: 1.35;
  --tracking-display: 0.04em;

  --text-xs: 0.75rem;  --text-sm: 0.875rem; --text-md: 1rem;
  --text-lg: 1.25rem;  --text-xl: 1.625rem;  --text-2xl: 2.25rem; --text-3xl: clamp(2.25rem, 5vw, 3.5rem);

  --space-1: 4px;  --space-2: 8px;  --space-3: 16px;
  --space-4: 24px; --space-5: 32px; --space-6: 48px; --space-7: 64px; --space-8: 96px; --space-9: 144px;
  --measure: 36em;
  --gutter: 16px;
  --max: 1120px;

  --radius: 0;
  --shadow: none;
  --motion-fast: 120ms; --motion-base: 200ms;
  --tw: 300px;   /* 三角タイルの幅 */
  --batch: 5;    /* 一列に並ぶ三角の数 */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }   /* 全幅の帯（100vw）で横スクロールが出ないように */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--line-height-body);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

/* リンク: 下線が「書かれる」 */
a { color: var(--color-link); text-decoration: none; background-image: linear-gradient(var(--color-line-strong), var(--color-line-strong)); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1px; transition: background-size var(--motion-base) ease; }
a:hover { background-size: 100% 2px; }
.nav a, .brand, .tris a, .face { background-image: none; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: var(--line-height-display); letter-spacing: var(--tracking-display); color: var(--color-text-strong); margin: 0; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); }
p { margin: 0; max-width: var(--measure); }
p + p { margin-top: 1em; }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--text-sm); }

/* チョークの点（PC・pointer:fine のときだけ JS が has-chalk を付ける） */
.chalk { position: fixed; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--color-line-strong); opacity: 0; pointer-events: none; z-index: 1000; mix-blend-mode: difference; transition: width var(--motion-fast), height var(--motion-fast), margin var(--motion-fast), opacity var(--motion-base); }
.has-chalk { cursor: none; }
.has-chalk a, .has-chalk button, .has-chalk [tabindex] { cursor: none; }
.has-chalk .chalk { opacity: 0.9; }
.has-chalk .chalk.press { width: 16px; height: 16px; margin: -8px 0 0 -8px; }

/* ヘッダー */
.site-header { border-bottom: 1px solid var(--color-line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); min-height: 64px; padding-top: var(--space-2); padding-bottom: var(--space-2); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-text-strong); letter-spacing: var(--tracking-display); }
.brand img { width: 32px; height: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); margin: 0; padding: 0; list-style: none; }
.nav a { display: inline-block; padding: 10px 12px; min-height: 44px; color: var(--color-text); font-family: var(--font-latin); font-size: var(--text-sm); letter-spacing: 0.02em; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; }
/* 右上の日程調整ボタン（白枠・白文字・小さめ。2026-10-16 本人指示） */
.nav a.nav-meet { display: inline-flex; align-items: center; margin-left: var(--space-2); padding: 0 12px; min-height: 32px; border: 1px solid var(--color-line-strong); color: var(--color-text-strong); font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.06em; line-height: 1.6; transition: background-color var(--motion-base), color var(--motion-base); }
.nav a.nav-meet:hover { text-decoration: none; background: var(--color-text-strong); color: var(--color-bg); }

/* セクション */
.section { padding-top: var(--space-8); padding-bottom: var(--space-8); border-top: 1px solid var(--color-line); }
.section-head { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.section-head .label, .hero .label { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-latin); font-size: var(--text-sm); color: var(--color-text-muted); letter-spacing: 0.08em; }
.label .gc { color: var(--color-line-strong); flex: none; }

/* ===== Why: 線描・縦書き・三角錐 ===== */
.hero { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); gap: var(--space-6); align-items: center; padding-top: var(--space-7); padding-bottom: var(--space-8); }
.hero-mark { display: flex; justify-content: center; }
.hero-mark svg { width: min(100%, 300px); height: auto; }
/* ペンで描く: 線（path）は stroke-dashoffset を線の長さぶん戻す。点は後から打つ。順番と長さは tools/build_top.py が計算 */
.mark-draw .pen { fill: none; stroke: var(--color-line-strong); stroke-width: var(--thick); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len) calc(var(--len) + var(--thick) * 2); stroke-dashoffset: calc(var(--len) + var(--thick)); animation: pen var(--dur) linear var(--delay) forwards; }   /* 丸い線端が描く前に点として見えないよう、太さぶん余計にずらす */
.mark-draw .pen-dot { fill: var(--color-line-strong); opacity: 0; animation: dot 160ms ease-out var(--delay) forwards; }
@keyframes pen { to { stroke-dashoffset: 0; } }
@keyframes dot { to { opacity: 1; } }
/* 描き終わったら元の画像に切り替え（線は下に残るが画像で覆う） */
.mark-draw .mark-final { opacity: 0; animation: fade 500ms ease var(--delay) forwards; }
.mark-draw.done .pen, .mark-draw.done .pen-dot { opacity: 0; }
@keyframes fade { to { opacity: 1; } }
.hero-text { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: var(--space-6); row-gap: var(--space-4); align-items: start; }
.hero-text .label { grid-column: 1 / -1; }
.hero h1.vertical { grid-row: 2 / span 2; writing-mode: vertical-rl; text-orientation: mixed; font-size: clamp(1.8rem, 3vw, 2.4rem); height: 12.5em; line-height: 1.7; letter-spacing: 0.1em; margin: 0; }
.hero .lead { max-width: var(--measure); }
.hero .lead p { font-size: var(--text-sm); line-height: 2; }
.hero .meta { grid-column: 2; color: var(--color-text-muted); font-size: var(--text-sm); }
.hero .meta span + span::before { content: "／"; margin: 0 0.4em; color: var(--color-line); }

/* 三角錐: 3 面（Why/How/What）の白線。ゆっくり回り、ポインタに少し追従 */
.hero-pyramid { display: flex; justify-content: center; }
.scene { width: 240px; height: 260px; perspective: 900px; }
.pyr { --tx: 0deg; --ty: 0deg; --start: 0deg; position: relative; width: 240px; height: 240px; transform-style: preserve-3d; transform: rotateX(calc(-8deg + var(--tx))) rotateY(var(--ty)); transition: transform 600ms ease; }
.pyr-rot { animation: spin 40s linear infinite; transform-style: preserve-3d; position: absolute; inset: 0; transform: rotateY(var(--start, 0deg)); }   /* 静止時も指定の面を正面に */
.pyr .face { position: absolute; left: 16px; bottom: 30px; width: 208px; height: 209px; transform-origin: 50% 100%; color: var(--color-text-strong); display: block; backface-visibility: hidden; }
.pyr .face svg { width: 100%; height: 100%; display: block; fill: rgba(236, 234, 228, 0.02); stroke: var(--color-line-strong); stroke-width: 1.5; transition: fill var(--motion-base); }
.pyr .face:hover svg, .pyr .face:focus-visible svg { fill: rgba(236, 234, 228, 0.1); }
.pyr .face span { position: absolute; left: 0; right: 0; top: 58%; text-align: center; font-family: var(--font-latin); font-size: var(--text-md); letter-spacing: 0.06em; }
.pyr .face.f0 { transform: rotateY(0deg) translateZ(60px) rotateX(16.7deg); }
.pyr .face.f1 { transform: rotateY(120deg) translateZ(60px) rotateX(16.7deg); }
.pyr .face.f2 { transform: rotateY(240deg) translateZ(60px) rotateX(16.7deg); }
.pyr .base { position: absolute; left: 0; bottom: 30px; width: 240px; height: 240px; transform: rotateX(90deg) translateZ(-120px); transform-origin: 50% 50%; opacity: 0.35; }
.pyr .base svg { width: 100%; height: 100%; fill: none; stroke: var(--color-line-strong); stroke-width: 1; }
@keyframes spin { from { transform: rotateY(var(--start, 0deg)); } to { transform: rotateY(calc(var(--start, 0deg) + 360deg)); } }
/* 節の見出し用の小さな三角錐（How / What） */
.section-head.with-pyr { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--space-6); }
.section-head.with-pyr > div:first-child { display: grid; gap: var(--space-3); }
.scene.small { width: 150px; height: 160px; perspective: 600px; }
.scene.small .pyr { width: 150px; height: 150px; }
.scene.small .pyr .face { left: 10px; bottom: 18px; width: 130px; height: 131px; }
.scene.small .pyr .face span { font-size: var(--text-sm); }
.scene.small .pyr .face.f0, .scene.small .pyr .face.f1, .scene.small .pyr .face.f2 { transform: rotateY(var(--ry)) translateZ(37.5px) rotateX(16.7deg); }
.scene.small .pyr .face.f0 { --ry: 0deg; } .scene.small .pyr .face.f1 { --ry: 120deg; } .scene.small .pyr .face.f2 { --ry: 240deg; }
.scene.small .pyr .base { width: 150px; height: 150px; bottom: 18px; transform: rotateX(90deg) translateZ(-75px); }

/* いま: 1 行の帯 */
.now { border-top: 1px solid var(--color-line); padding: var(--space-3) 0; }
.now .wrap { display: flex; align-items: center; gap: var(--space-4); }
.now-label { font-family: var(--font-display); color: var(--color-text-strong); flex: none; letter-spacing: 0.1em; }
.ticker { overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent); }
.ticker .track { display: flex; gap: var(--space-7); width: max-content; margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); color: var(--color-text-muted); white-space: nowrap; animation: marquee 90s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }

/* 考えていること: 本文と、三角形の図 */
.think-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-7); align-items: start; }
.think-text p { font-size: var(--text-md); line-height: 2; }
.think-fig { margin: 0; position: sticky; top: var(--space-6); }
.think-fig img { width: 100%; max-width: 528px; }
.think-fig figcaption { margin-top: var(--space-3); color: var(--color-text-muted); font-size: var(--text-sm); }

/* 略歴: 年数字と、伸びる線 */
.year-big { font-family: var(--font-display); font-size: clamp(4rem, 12vw, 9rem); line-height: 1; color: var(--color-text-strong); letter-spacing: 0.04em; margin: 0 0 var(--space-4); font-variant-numeric: tabular-nums; position: sticky; top: var(--space-3); pointer-events: none; }
.history { overflow-x: auto; margin: 0; color: var(--color-line-strong); -webkit-overflow-scrolling: touch; }
.history .history-svg { display: block; min-width: 860px; width: 100%; height: auto; }
.history a { color: inherit; background-image: none; }
.scroll-hint { display: none; }
.history a:hover text { fill-opacity: 0.75; }
.history svg line, .history svg circle, .history svg text, .history svg a { transition: opacity var(--motion-base) linear; }

/* How */
.how-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin: var(--space-6) 0 0; padding: 0; list-style: none; position: relative; }
.how-list li { padding: var(--space-4) var(--space-3); position: relative; }
/* 罫線をチョークで引く: 上の横線（左→右）→ 各枠の縦線（上→下）→ 下の横線。その後に項目が順に現れる */
.how-list::before, .how-list::after, .how-list li::before, .how-list li::after { content: ""; position: absolute; background: var(--color-line); }
.how-list::before { left: 0; right: 0; top: 0; height: 1px; transform: scaleX(0); transform-origin: left; }
.how-list::after { left: 0; right: 0; bottom: 0; height: 1px; transform: scaleX(0); transform-origin: left; }
.how-list li::before { left: 0; top: 0; bottom: 0; width: 1px; transform: scaleY(0); transform-origin: top; }
.how-list li:last-child::after { right: 0; top: 0; bottom: 0; width: 1px; transform: scaleY(0); transform-origin: top; }
.how-list li > * { opacity: 0; transform: translateY(6px); transition: opacity 500ms ease, transform 500ms ease; }
.how-list.in::before { transition: transform 700ms cubic-bezier(.4,0,.2,1); transform: scaleX(1); }
.how-list.in li::before, .how-list.in li:last-child::after { transition: transform 500ms cubic-bezier(.4,0,.2,1) calc(600ms + var(--i, 0) * 120ms); transform: scaleY(1); }
.how-list.in::after { transition: transform 700ms cubic-bezier(.4,0,.2,1) 1150ms; transform: scaleX(1); }
.how-list.in li > * { opacity: 1; transform: none; transition-delay: calc(1300ms + var(--i, 0) * 140ms); }
.how-list:not(.rule), .how-list:not(.rule) li { border-color: var(--color-line); }
.how-list h3 { font-size: var(--text-lg); }
.how-list small { display: block; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-1); letter-spacing: 0.02em; }
.how-list p { font-size: var(--text-sm); margin-top: var(--space-3); line-height: 1.8; }

/* ===== What: 三角タイル ===== */
.tris { display: flex; flex-wrap: wrap; row-gap: var(--space-4); margin: 0; padding: 0 0 0 calc(var(--tw) / 2); list-style: none; }
.tris .tri { position: relative; width: var(--tw); height: calc(var(--tw) * 0.92); margin-left: calc(var(--tw) / -2); flex: none; }
.tris .tri::before { content: ""; position: absolute; inset: 0; background: var(--color-line); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tris .tri.down::before { clip-path: polygon(0 0, 100% 0, 50% 100%); }
.tris .tri-in { position: absolute; inset: 2px 2.5px 1.5px; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: var(--color-bg-raised); }
.tris .tri.down .tri-in { inset: 1.5px 2.5px 2px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.tris .logo, .tris .shot { position: absolute; width: 40%; height: auto; left: 30%; top: 34%; }
.tris .tri.down .logo, .tris .tri.down .shot { width: 34%; left: 33%; top: 5%; }
.tris .shot { opacity: 0; transition: opacity var(--motion-base); }
.tris .tri:hover .shot, .tris .tri:focus-visible .shot, .tris .tri.show .shot { opacity: 1; }
.tris .tri:hover .logo, .tris .tri:focus-visible .logo, .tris .tri.show .logo { opacity: 0; }
.tris .tile-text { position: absolute; left: 25%; width: 50%; top: 42%; text-align: center; font-family: var(--font-display); font-size: var(--text-sm); line-height: 1.3; color: var(--color-text-strong); }
.tris .tri.down .tile-text { top: 9%; left: 30%; width: 40%; }
.tris .tile-text.latin { font-family: var(--font-latin); }
.tris .cap { position: absolute; left: 15%; width: 70%; text-align: center; font-size: 0.7rem; line-height: 1.35; display: grid; gap: 1px; overflow-wrap: anywhere; }
.tris .tri.up .cap { bottom: 6%; }
.tris .tri.down .cap { top: 36%; left: 22%; width: 56%; }
.tris .cap .name { color: var(--color-text); }
.tris .cap .fact { color: var(--color-text-muted); font-family: var(--font-latin); font-size: 0.68rem; }

/* 見出しの下線が引かれる（What・連絡。節に入ったとき一度きり） */
h2.draw-line { position: relative; display: inline-block; justify-self: start; padding-bottom: var(--space-2); }
h2.draw-line::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px; background: var(--color-line-strong); transform: scaleX(0); transform-origin: left; transition: transform 900ms cubic-bezier(.4,0,.2,1) 150ms; }
.in h2.draw-line::after, h2.draw-line.in::after { transform: scaleX(1); }
/* 三角タイルが順に敷き詰められる（JS 無効・reduced-motion のときの表示） */
.tris.reveal .tri { opacity: 0; transform: translateY(10px); transition: opacity 500ms ease, transform 500ms ease; transition-delay: calc(var(--i, 0) * 28ms); }
.tris.reveal.in .tri { opacity: 1; transform: none; }
/* 三角タイルが右から転がってきて一列に並び、--batch 個たまると左へ転がって消える（JS が .roll を付ける） */
.tris.roll { display: block; position: relative; height: calc(var(--tw) * 1.25); padding: 0; width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; }
.tris.roll .tri { position: absolute; top: calc(var(--tw) * 0.165); margin: 0; left: calc(50% - (var(--b, 5) + 1) * var(--tw) / 4 + var(--s, 0) * var(--tw) / 2); opacity: 0; visibility: hidden; transform: translateX(100vw) rotate(360deg); transition: none; }
.tris.roll .tri.enter { visibility: visible; opacity: 1; }
.tris.roll .tri.on { visibility: visible; opacity: 1; transform: none; transition: transform 1100ms cubic-bezier(.2,.8,.3,1); }
.tris.roll .tri.out { visibility: visible; opacity: 0; transform: translateX(-100vw) rotate(-360deg); transition: transform 1000ms cubic-bezier(.5,0,.8,.5), opacity 400ms ease 500ms; }
/* メールの周りに楕円が一筆で描かれる */
.mail-wrap { position: relative; display: inline-block; padding: var(--space-3) var(--space-5); margin-left: calc(var(--space-5) * -1); }
.mail-ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--color-line-strong); stroke-width: 1.5; stroke-linecap: round; pointer-events: none; opacity: 0.9; }
.mail-ring path { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.contact.in .mail-ring path { animation: ring 1.6s cubic-bezier(.4,0,.2,1) 300ms forwards; }
@keyframes ring { to { stroke-dashoffset: 0; } }

/* ===== Models: 流れる 13 枚（一度だけ黒板消しの跡が消えるように現れる） ===== */
.marquee { overflow: hidden; }
.marquee.bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.marquee.wipe { clip-path: inset(0 100% 0 0); }
.marquee.wipe.in { animation: wipe 1.4s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.marquee .track { display: flex; gap: var(--space-5); width: max-content; margin: 0; padding: 0; list-style: none; animation: marquee 150s linear infinite; }
.marquee .track li { flex: 0 0 auto; width: min(80vw, 480px); }
.marquee .track img { width: 100%; height: auto; }
.marquee:hover .track, .marquee:focus-within .track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--space-5) / 2)); } }

/* 連絡 */
.contact h2 { font-size: var(--text-2xl); }
/* 日程調整への導線（/meet/。2026-10-15） */
.meet-cta { margin-top: var(--space-5); display: grid; gap: var(--space-2); max-width: none; }
.meet-cta-link { display: inline-flex; align-items: center; gap: var(--space-3); justify-self: start; padding: 12px 20px; min-height: 48px; border: 1px solid var(--color-line-strong); color: var(--color-text-strong); font-size: var(--text-sm); letter-spacing: 0.04em; background-image: none; transition: background-color var(--motion-base), color var(--motion-base); }
.meet-cta-link .arrow { font-family: var(--font-latin); transition: transform var(--motion-base); }
.meet-cta-link:hover { background: var(--color-text-strong); color: var(--color-bg); }
.meet-cta-link:hover .arrow { transform: translateX(4px); }
.meet-cta-note { color: var(--color-text-muted); font-size: var(--text-xs); }
.contact .mail { display: inline-block; margin-top: var(--space-4); font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-text-strong); letter-spacing: 0.02em; padding: var(--space-2) 0; overflow-wrap: anywhere; }

.site-footer { border-top: 1px solid var(--color-line); padding: var(--space-5) 0; color: var(--color-text-muted); font-size: var(--text-xs); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-4); }

/* 下層 */
.back { display: inline-block; margin: var(--space-5) 0 0; font-size: var(--text-sm); }
.page-head { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-6) var(--space-5); margin: 0; padding: 0; list-style: none; }
.models img { width: 100%; max-width: 528px; }

@media (max-width: 1000px) {
  :root { --tw: 220px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .hero-pyramid { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: var(--space-5); padding-top: var(--space-5); padding-bottom: var(--space-7); min-height: 0; }
  .hero-mark { justify-content: flex-start; }
  .hero-mark svg { width: min(48%, 180px); }
  .hero-text { grid-template-columns: 1fr; }
  .hero h1.vertical { writing-mode: horizontal-tb; grid-row: auto; font-size: var(--text-2xl); height: auto; max-height: none; max-width: 14em; letter-spacing: var(--tracking-display); line-height: var(--line-height-display); }
  .hero .meta { grid-column: 1; }
  .scene:not(.small) { width: 200px; height: 220px; } .scene:not(.small) .pyr { width: 200px; height: 200px; } .scene:not(.small) .pyr .face { left: 0; width: 200px; height: 200px; } .scene:not(.small) .pyr .base { width: 200px; height: 200px; }
  .section-head.with-pyr { grid-template-columns: 1fr; }
  .think-cols { grid-template-columns: 1fr; gap: var(--space-5); }
  .think-fig { position: static; max-width: 420px; }
  .head-pyr { justify-self: start; }
  .section { padding-top: var(--space-7); padding-bottom: var(--space-7); }
  .how-list li + li::after { left: 0; right: 0; top: 0; height: 1px; width: auto; transform: scaleX(0); transform-origin: left; bottom: auto; }
  .how-list.in li + li::after { transition: transform 500ms cubic-bezier(.4,0,.2,1) calc(600ms + var(--i, 0) * 120ms); transform: scaleX(1); }
  .how-list li:last-child::after { right: auto; }
  :root { --tw: 170px; --batch: 3; }
  .tris .cap .name { font-size: 0.7rem; }
  .contact .mail { font-size: var(--text-lg); }
  .year-big { position: static; }
  .history { mask-image: linear-gradient(to right, black calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(to right, black calc(100% - 40px), transparent); }
  .scroll-hint { display: block; margin: var(--space-2) 0 0; font-size: var(--text-xs); color: var(--color-text-muted); font-family: var(--font-latin); letter-spacing: 0.04em; }
}
@media (prefers-reduced-motion: reduce) {
  .how-list::before, .how-list::after, .how-list li::before, .how-list li:last-child::after { transform: none; transition: none; }
  .how-list li > * { opacity: 1; transform: none; transition: none; }
  h2.draw-line::after { transform: none; transition: none; }
  .tris.reveal .tri { opacity: 1; transform: none; transition: none; }
  .mail-ring path { stroke-dashoffset: 0; animation: none; }
  .mark-draw .pen, .mark-draw .pen-dot { display: none; }
  .mark-draw .mark-final { animation: none; opacity: 1; }
  .pyr-rot, .ticker .track, .marquee .track { animation: none; }
  .marquee.wipe { clip-path: none; }
  .pyr { transition: none; }
}
