:root {
  --ink: #071017;
  --ink-deep: #040a0f;
  --panel: #0d1a22;
  --panel-raised: #12232d;
  --line: rgba(178, 226, 232, 0.14);
  --line-strong: rgba(178, 226, 232, 0.28);
  --text: #e8f3f1;
  --muted: #8da7aa;
  --cyan: #62e9ec;
  --cyan-soft: #a5fbfa;
  --amber: #ffb65c;
  --danger: #ff907a;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--ink);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; min-width: 0; overflow-x: hidden; background: radial-gradient(circle at 84% 3%, rgba(27, 103, 110, 0.17), transparent 31rem), var(--ink); line-height: 1.55; }
button, input, select { font: inherit; }
button, a, select, input, label { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .42; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, label:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(4, 10, 15, .82); backdrop-filter: blur(12px); }
.header-shell { width: min(1240px, calc(100% - 48px)); min-height: 68px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--text); display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .12em; font-size: 14px; text-decoration: none; }
.brand span span { color: var(--cyan); }
.brand-mark { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--cyan); border-radius: 8px; color: var(--cyan); font-size: 18px; transform: rotate(-7deg); }
.privacy-chip { color: var(--muted); font-size: 12px; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 8px; }
.chip-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

.hero-shell { width: min(1240px, calc(100% - 48px)); min-height: 420px; margin: 0 auto 76px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 44px; position: relative; }
.hero-copy { padding: 68px 0 46px; position: relative; z-index: 1; }
.eyebrow { color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .18em; margin: 0 0 13px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); letter-spacing: -.075em; line-height: .98; max-width: 720px; margin-bottom: 26px; }
h1 em { color: var(--cyan); font-style: normal; }
.hero-lede { color: #b0c6c7; font-size: 16px; max-width: 530px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.button { min-height: 46px; border-radius: 9px; padding: 10px 17px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; font-weight: 750; font-size: 14px; letter-spacing: .01em; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { color: #041215; background: var(--cyan); box-shadow: 0 8px 28px rgba(98, 233, 236, .18); }
.button-primary:hover:not(:disabled) { background: var(--cyan-soft); }
.button-secondary { color: var(--cyan-soft); background: rgba(98, 233, 236, .08); border: 1px solid rgba(98, 233, 236, .4); }
.button-quiet { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.button-cancel { width: 100%; color: var(--danger); background: rgba(255, 144, 122, .08); border: 1px solid rgba(255, 144, 122, .3); margin-top: 10px; }
.text-link { color: var(--text); font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.text-link span { color: var(--cyan); padding-left: 3px; }
.hero-note { color: var(--muted); font-size: 12px; margin: 30px 0 0; display: flex; gap: 8px; align-items: center; }
.hero-note span { color: var(--cyan); font-size: 18px; }
.hero-visual { align-self: stretch; min-height: 390px; position: relative; overflow: hidden; border-left: 1px solid var(--line); }
.hero-visual::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink) 0%, rgba(7, 16, 23, .24) 34%, rgba(7, 16, 23, .06) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 24%); pointer-events: none; }
.hero-visual picture, .hero-visual img { display: block; width: 100%; height: 100%; }
.hero-visual img { object-fit: cover; object-position: 67% center; filter: saturate(.84) contrast(1.1); }
.hero-visual-label { position: absolute; z-index: 2; right: 22px; bottom: 20px; display: flex; gap: 14px; align-items: center; color: var(--cyan); font-size: 10px; letter-spacing: .14em; }
.hero-visual-label b { color: var(--amber); font-size: 24px; font-weight: 400; }

main { width: min(1240px, calc(100% - 48px)); margin: auto; }
.workspace-shell, .results-shell, .info-shell { margin-bottom: 92px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.02; letter-spacing: -.06em; margin-bottom: 0; }
.section-caption { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.workspace-grid { display: grid; grid-template-columns: minmax(260px, 332px) minmax(0, 1fr); gap: 16px; }
.panel { background: linear-gradient(145deg, rgba(18, 35, 45, .94), rgba(10, 23, 30, .96)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 22px 70px rgba(0, 0, 0, .18); }
.control-panel { padding: 22px; }
.panel-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .17em; margin-bottom: 12px; }
.dropzone { min-height: 163px; border: 1px dashed rgba(98, 233, 236, .42); background: rgba(98, 233, 236, .045); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; color: var(--muted); cursor: pointer; padding: 18px; transition: background .16s ease, border-color .16s ease; }
.dropzone:hover, .dropzone.is-dragging { background: rgba(98, 233, 236, .12); border-color: var(--cyan); }
.dropzone input { position: absolute; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.drop-icon { color: var(--cyan); width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(98, 233, 236, .5); border-radius: 50%; font-size: 23px; margin-bottom: 7px; }
.dropzone strong { color: var(--text); font-size: 14px; }
.dropzone small { color: #638487; margin-top: 9px; font-size: 11px; }
.file-row { min-height: 45px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.file-badge { color: var(--cyan); font-size: 9px; letter-spacing: .08em; border: 1px solid rgba(98,233,236,.35); border-radius: 4px; padding: 2px 4px; }
.file-name { color: #b6c9c9; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.icon-button { width: 44px; height: 44px; border-radius: 9px; background: transparent; color: var(--muted); font-size: 22px; }
.icon-button:hover { color: var(--danger); background: rgba(255,144,122,.1); }
.control-divider { height: 1px; background: var(--line); margin: 20px 0; }
.field-group { margin: 0 0 17px; }
.field-group label { display: flex; align-items: baseline; justify-content: space-between; color: #ccdddd; font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.unit-hint { color: var(--muted); font-size: 11px; font-weight: 400; }
select, .density-input { appearance: none; width: 100%; min-height: 44px; padding: 9px 33px 9px 12px; color: var(--text); font-size: 16px; border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; background: #0a171e; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%); background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.density-input { margin-top: 8px; }
.field-help { color: #779294; font-size: 11px; line-height: 1.45; margin: 7px 0 0; }
.control-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.control-actions .button { padding-inline: 8px; }
.progress-wrap { margin-top: 17px; }
.progress-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; margin-bottom: 6px; }
progress { width: 100%; height: 5px; border: 0; border-radius: 99px; overflow: hidden; }
progress::-webkit-progress-bar { background: rgba(178,226,232,.11); }
progress::-webkit-progress-value { background: var(--cyan); }
progress::-moz-progress-bar { background: var(--cyan); }
.status-box { margin-top: 17px; display: flex; gap: 9px; align-items: flex-start; padding: 11px; border-radius: 9px; color: var(--muted); background: rgba(178, 226, 232, .05); border: 1px solid transparent; }
.status-box p { margin: 0; font-size: 11px; line-height: 1.5; }
.status-icon { flex: 0 0 16px; width: 16px; height: 16px; display: grid; place-items: center; color: var(--ink); background: var(--cyan); border-radius: 50%; font-size: 11px; font-weight: 800; }
.status-success { background: rgba(98,233,236,.08); border-color: rgba(98,233,236,.22); }
.status-success .status-icon { background: var(--cyan); }
.status-error { background: rgba(255,144,122,.08); border-color: rgba(255,144,122,.28); color: #ffbeb1; }
.status-error .status-icon { background: var(--danger); }
.status-busy { background: rgba(255,182,92,.08); border-color: rgba(255,182,92,.28); color: #ffd09b; }
.status-busy .status-icon { background: var(--amber); }

.viewer-panel { min-width: 0; overflow: hidden; }
.viewer-toolbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px 13px; }
.viewer-toolbar .panel-label { margin-bottom: 3px; }
.viewer-toolbar h3 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.viewer-hint { color: var(--muted); font-size: 11px; white-space: nowrap; }
.viewport { min-height: 494px; height: min(54vw, 560px); max-height: 560px; margin: 0 10px; border: 1px solid rgba(98,233,236,.17); background: radial-gradient(circle at 52% 45%, rgba(29, 102, 109, .18), transparent 48%), linear-gradient(160deg, #08151c, #071017); border-radius: 13px; overflow: hidden; position: relative; }
.viewport::before { content: ""; position: absolute; inset: 0; opacity: .26; background-image: linear-gradient(rgba(98,233,236,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(98,233,236,.1) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); pointer-events: none; }
#glCanvas, #measureCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#glCanvas { cursor: grab; touch-action: none; }
#glCanvas:active { cursor: grabbing; }
#measureCanvas { pointer-events: none; }
.viewport-empty, .webgl-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; text-align: center; color: var(--muted); padding: 30px; pointer-events: none; }
.viewport-empty strong, .webgl-fallback strong { color: #cfdfdf; font-size: 14px; }
.viewport-empty span:last-child, .webgl-fallback span { font-size: 12px; }
.empty-glyph { color: var(--cyan); font-size: 66px; font-weight: 100; line-height: 1; opacity: .35; transform: rotate(12deg); margin-bottom: 8px; }
.webgl-fallback { z-index: 4; background: rgba(5,14,19,.88); color: #bdcfce; }
.viewport-corner { position: absolute; left: 17px; bottom: 14px; color: rgba(165,251,250,.55); font-size: 9px; letter-spacing: .18em; line-height: 1.5; pointer-events: none; }
.viewport-corner span { color: var(--amber); }
.viewer-footer { min-height: 48px; display: flex; align-items: center; gap: 15px; padding: 0 22px; color: var(--muted); font-size: 11px; }
.topology-chip { border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; color: var(--muted); }
.topology-chip.is-closed { border-color: rgba(98,233,236,.4); color: var(--cyan); }
.topology-chip.is-open, .topology-chip.is-warning { border-color: rgba(255,182,92,.4); color: var(--amber); }
.topology-chip.is-invalid { border-color: rgba(255,144,122,.4); color: var(--danger); }
.axis-key { margin-left: auto; white-space: nowrap; }
.axis-key i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.axis-x { background: #ef7972; }.axis-y { background: #74d590; }.axis-z { background: #72aaf6; }

.result-heading { align-items: center; }
.result-actions { display: flex; gap: 8px; }
.result-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
.metric-card { min-height: 190px; border: 1px solid var(--line); border-radius: 13px; padding: 19px; background: rgba(18,35,45,.72); }
.metric-accent { border-color: rgba(255,182,92,.3); background: linear-gradient(145deg, rgba(64, 48, 29, .5), rgba(18,35,45,.72)); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.metric-index { color: var(--cyan); font-size: 12px; }
.metric-number { color: var(--cyan-soft); font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -.06em; margin-top: 31px; display: inline-block; }
.metric-accent .metric-number { color: var(--amber); }
.metric-unit { color: var(--muted); font-size: 12px; margin-left: 8px; }
.metric-sub { color: #b3c7c7; font-size: 12px; margin: 10px 0 0; }
.metric-note { color: #779294; font-size: 11px; line-height: 1.45; margin: 13px 0 0; }
.dimension-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 28px; }
.dimension-values > div { min-width: 0; border-left: 2px solid var(--cyan); padding-left: 10px; }
.dimension-values span { color: var(--muted); font-size: 10px; display: block; }
.dimension-values strong { font-size: clamp(1.4rem, 3vw, 2.25rem); letter-spacing: -.06em; line-height: 1.15; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.dimension-values small { color: var(--muted); font-size: 10px; margin-left: 4px; }
.result-detail { margin-top: 12px; padding: 16px 19px; border: 1px solid var(--line); border-radius: 13px; background: rgba(8, 20, 27, .5); }
.detail-status { display: flex; gap: 8px; align-items: center; color: #cbdede; font-size: 12px; }
.detail-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.detail-dot.warning { background: var(--amber); }.detail-dot.invalid { background: var(--danger); }
.detail-status span:last-child { color: var(--muted); }
.detail-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 15px 0 0; }
.detail-list div { border-top: 1px solid var(--line); padding-top: 9px; min-width: 0; }
.detail-list dt { color: var(--muted); font-size: 10px; }
.detail-list dd { margin: 2px 0 0; font-size: 13px; color: #dbe8e7; overflow-wrap: anywhere; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.info-card { min-height: 185px; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: rgba(18,35,45,.47); }
.info-number { color: var(--amber); font-size: 11px; letter-spacing: .1em; }
.info-card h3 { margin: 27px 0 8px; font-size: 17px; }
.info-card p, .limits-grid p { color: var(--muted); font-size: 12px; line-height: 1.65; margin: 0; }
.limits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 26px 2px 0; }
.limits-grid h3 { color: #cde0df; font-size: 13px; margin-bottom: 7px; }
.site-footer { width: min(1240px, calc(100% - 48px)); border-top: 1px solid var(--line); padding: 24px 0 34px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; color: #668083; font-size: 10px; letter-spacing: .08em; }

@media (max-width: 900px) {
  .hero-shell { grid-template-columns: 1fr; min-height: 0; margin-bottom: 58px; gap: 0; }
  .hero-copy { padding: 58px 0 25px; }
  .hero-visual { min-height: 230px; height: 230px; border-left: 0; border-top: 1px solid var(--line); }
  .hero-visual img { object-position: 62% 50%; }
  .workspace-grid { grid-template-columns: 1fr; }
  .control-panel { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr); gap: 0 18px; }
  .control-panel > .panel-label:first-child, .control-panel > .dropzone, .control-panel > .file-row, .control-panel > .control-divider, .control-panel > .panel-label:nth-of-type(2), .control-panel > .control-actions, .control-panel > .button-cancel, .control-panel > .progress-wrap, .control-panel > .status-box { grid-column: 1 / -1; }
  .control-panel > .control-divider { margin: 18px 0; }
  .control-panel > .field-group { margin-bottom: 0; }
  .viewer-panel .viewport { min-height: 440px; height: 58vw; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .metric-wide { grid-column: 1 / -1; }
  .detail-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .header-shell, main, .hero-shell, .site-footer { width: min(100% - 28px, 1240px); }
  .header-shell { min-height: 59px; }
  .privacy-chip { font-size: 10px; }
  .hero-copy { padding-top: 43px; }
  h1 { font-size: clamp(2.45rem, 14vw, 4rem); }
  .hero-lede { font-size: 14px; }
  .hero-note { align-items: flex-start; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-caption { margin: 0; }
  .control-panel { display: block; padding: 17px; }
  .control-panel > .field-group { margin-bottom: 17px; }
  .viewer-toolbar { padding-inline: 17px; }
  .viewer-hint { display: none; }
  .viewport { min-height: 390px !important; height: 76vw !important; margin-inline: 7px; }
  .viewer-footer { padding-inline: 17px; gap: 8px; }
  .axis-key { display: none; }
  .result-actions { width: 100%; }
  .result-actions .button { flex: 1; }
  .result-grid { grid-template-columns: 1fr; }
  .metric-wide { grid-column: auto; }
  .dimension-values { gap: 5px; }
  .dimension-values strong { font-size: 1.55rem; }
  .dimension-values small { display: block; margin: 2px 0 0; }
  .detail-list { grid-template-columns: repeat(2, 1fr); }
  .info-grid, .limits-grid { grid-template-columns: 1fr; }
  .limits-grid { gap: 20px; padding-top: 20px; }
  .site-footer { flex-direction: column; gap: 7px; }
}

@media (max-width: 360px) {
  .privacy-chip { max-width: 116px; text-align: right; line-height: 1.2; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button, .hero-actions .text-link { width: 100%; text-align: center; }
  .viewer-footer { font-size: 10px; }
  .metric-card { padding: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  :root { color: #111; background: white; }
  body { background: white; }
  .site-header, .hero-shell, .control-panel, .viewer-panel, .info-shell, .site-footer, .result-actions { display: none !important; }
  main { width: 100%; }
  .results-shell { display: block !important; margin: 0; }
  .metric-card, .result-detail { color: #111; border-color: #ccc; background: white; }
  .metric-number, .metric-accent .metric-number, .dimension-values strong { color: #111; }
  .metric-note, .metric-sub, .detail-status span:last-child, .detail-list dt { color: #555; }
}

.reading-shell, .article-directory, .article-shell { width: min(1040px, calc(100% - 48px)); margin: 0 auto 72px; }
.reading-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.reading-card { position: relative; display: block; min-height: 218px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18,35,45,.92), rgba(9,20,27,.92)); color: var(--text); text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
.reading-card:hover { transform: translateY(-3px); border-color: rgba(98,233,236,.5); }
.reading-tag, .article-kicker { display: inline-block; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.reading-card h3 { margin: 14px 24px 10px 0; font-size: 19px; line-height: 1.4; letter-spacing: -.035em; }
.reading-card p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; }
.reading-arrow { position: absolute; right: 20px; top: 20px; color: var(--cyan); }
.article-directory { padding-top: 48px; }
.article-shell { max-width: 820px; padding-top: 44px; }
.article-breadcrumb { margin: 0 0 32px; color: var(--muted); font-size: 13px; }
.article-breadcrumb a, .article-backlinks a { color: var(--cyan-soft); }
.article-kicker { margin: 0 0 12px; }
.article-title { max-width: 760px; margin: 0 0 20px; font-size: clamp(2.2rem, 5.5vw, 3.75rem); line-height: 1.12; letter-spacing: -.06em; }
.article-lede { color: #b0c6c7; font-size: 18px; line-height: 1.75; }
.article-body { margin-top: 42px; }
.article-body h2 { margin: 44px 0 14px; padding-top: 20px; border-top: 1px solid var(--line); font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -.035em; }
.article-body h3 { margin: 24px 0 8px; font-size: 1.1rem; }
.article-body p, .article-body li { color: #bed0cf; line-height: 1.85; }
.article-body li + li { margin-top: 6px; }
.article-body ul, .article-body ol { padding-left: 1.4rem; }
.article-callout { margin: 24px 0; padding: 18px 20px; border: 1px solid rgba(98,233,236,.2); border-left: 3px solid var(--cyan); border-radius: 10px; background: rgba(98,233,236,.045); }
.article-callout p:last-child { margin-bottom: 0; }
.article-table-wrap { margin: 22px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.article-table { width: 100%; min-width: 520px; border-collapse: collapse; background: rgba(13,26,34,.72); }
.article-table th, .article-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-table th { color: var(--cyan-soft); font-size: 13px; }
.article-table td { color: #bed0cf; font-size: 14px; }
.article-table tr:last-child td { border-bottom: 0; }
.article-figure { margin: 24px 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(18,35,45,.92), rgba(9,20,27,.92)); }
.article-figure svg { display: block; width: 100%; height: auto; }
.article-figure figcaption, .article-source-note { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.article-backlinks { display: flex; flex-wrap: wrap; gap: 18px; margin: 42px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.article-directory .reading-grid { margin-top: 28px; }
.article-directory .article-title { margin-bottom: 14px; }
.article-footer { width: min(1040px, calc(100% - 48px)); margin: 0 auto; padding: 22px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 850px) {
  .reading-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .reading-shell, .article-directory, .article-shell, .article-footer { width: min(100% - 32px, 1040px); }
  .reading-grid { grid-template-columns: 1fr; }
  .reading-card { min-height: 0; }
  .article-shell { padding-top: 30px; }
  .article-directory { padding-top: 30px; }
  .article-lede { font-size: 16px; }
  .article-figure { padding: 10px; }
}

/* SOU100 Stage A: first-view */
.hero-shell { padding: 12px 0 12px; gap: clamp(18px, 4vw, 52px); }
.hero-shell h1 { font-size: clamp(1.9rem, 3.5vw, 3.2rem); line-height: 1.12; letter-spacing: -.035em; word-break: auto-phrase; }
.hero-lede { margin: 12px 0; line-height: 1.5; }
.hero-visual { max-width: 420px; align-self: center; }
.hero-visual img { max-height: 230px; object-fit: cover; }
.hero-steps { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; counter-reset: stage; padding: 0; margin: 12px 0 0; }
.hero-steps li { counter-increment: stage; position: relative; padding-left: 1.35rem; font-size: .86rem; line-height: 1.4; }
.hero-steps li::before { content: counter(stage); position: absolute; left: 0; top: .08em; font-weight: 800; }
.hero-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 8px; padding: 9px 17px; border: 2px solid #203c34; border-radius: 999px; background: #203c34; color: #fff; font-weight: 750; line-height: 1.25; text-decoration: none; }
.hero-cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px #203c34; }
.hero-privacy { margin: 8px 0 0; font-size: .78rem; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 640px) {
  .hero-shell { padding: 16px 0 12px; gap: 8px; }
  .hero-visual { display: none; }
  .hero-shell h1 { font-size: clamp(1.75rem, 8vw, 2.05rem); line-height: 1.14; }
  .hero-lede { margin: 7px 0; font-size: .94rem; line-height: 1.42; }
  .hero-steps { flex-direction: column; gap: 4px; margin-top: 7px; }
  .hero-steps li { font-size: .83rem; }
  .hero-actions { gap: 6px; margin-top: 5px; }
  .hero-cta { margin-top: 0; }
  .workspace-shell .section-heading .eyebrow { display: none; }
  .workspace-shell .section-heading h2 { font-size: 1.15rem; }
  .workspace-shell .section-heading { margin-bottom: .7rem; }
}
