:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --paper-deep: #eeeae0;
  --ink: #19252c;
  --ink-soft: #405058;
  --muted: #78858a;
  --line: #d8ddd9;
  --green: #cce84b;
  --green-dark: #355d45;
  --pink: #f2a5bc;
  --blue: #68b9dc;
  --card: #fffefa;
  --shadow: 0 18px 45px rgba(31, 50, 50, .07);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
button, input, select { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.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; }

.topbar {
  height: 68px; padding: 0 clamp(20px, 5.5vw, 88px); display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(25, 37, 44, .09); background: rgba(246, 244, 238, .92); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px);
}
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 14px; font-weight: 750; letter-spacing: .035em; }
.brand-mark { width: 27px; height: 27px; border-radius: 9px 9px 9px 2px; background: var(--green); display: inline-grid; place-items: center; color: #20332c; font-family: Georgia, serif; font-size: 18px; font-style: italic; font-weight: 700; }
.topbar nav { display: flex; gap: clamp(16px, 3vw, 38px); align-items: center; }
.topbar nav a { text-decoration: none; color: #516067; font-size: 12px; font-weight: 650; transition: color .2s; }
.topbar nav a:hover { color: var(--green-dark); }

.hero { min-height: 520px; padding: 74px clamp(24px, 8vw, 130px) 68px; display: grid; grid-template-columns: minmax(340px, .92fr) minmax(330px, 1fr); column-gap: clamp(36px, 8vw, 122px); align-items: center; position: relative; overflow: hidden; }
.hero-copy { max-width: 545px; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 15px; color: #66766d; font-size: 10px; letter-spacing: .15em; font-weight: 800; }
.eyebrow-dot { display: inline-block; width: 8px; height: 8px; margin: 0 8px 0 1px; border-radius: 50%; background: #86a958; vertical-align: 1px; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { font-size: clamp(48px, 6.2vw, 82px); line-height: 1.07; letter-spacing: -.055em; margin: 0 0 24px; font-weight: 820; }
.hero h1 em { color: #577b54; font-style: normal; }
.hero-lead { max-width: 510px; color: #536168; font-size: clamp(15px, 1.5vw, 17px); line-height: 1.9; margin: 0 0 28px; }
.button { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid transparent; border-radius: 3px; text-decoration: none; font-size: 12px; font-weight: 750; cursor: pointer; transition: transform .18s, background .18s; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #314841; }
.button-light { background: var(--card); border-color: var(--line); color: var(--ink); }

.hero-art { height: 340px; max-width: 485px; width: 100%; margin-left: auto; position: relative; border: 1px solid #d5d9d2; overflow: hidden; background: #e6e2d7; box-shadow: 18px 18px 0 #e6e2d7; }
.hero-sample { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hero-art-label { position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; background: rgba(39, 31, 40, .86); color: #fff; font: 700 10px/1 monospace; letter-spacing: .06em; }
.hero-art-label strong { color: #ffc5ff; font-family: inherit; }
.hero-note { position: absolute; bottom: 30px; left: clamp(24px, 8vw, 130px); color: #748078; font-size: 10px; letter-spacing: .05em; }
.hero-note span { color: #4d7650; font-weight: 800; margin-right: 8px; }

.section-pad { padding: 88px clamp(24px, 8vw, 130px); }
.lab-section { background: #e9eee7; }
.section-heading { display: flex; gap: 40px; align-items: end; justify-content: space-between; margin: 0 auto 34px; max-width: 1250px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.2; letter-spacing: -.04em; }
.section-intro { max-width: 430px; color: #5e6b6b; font-size: 14px; line-height: 1.8; margin: 0 0 2px; }
.workbench { max-width: 1250px; margin: 0 auto; padding: clamp(18px, 3vw, 32px); border: 1px solid #d4ddd4; background: var(--card); box-shadow: var(--shadow); }
.workbench-top { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.sample-picker { min-width: 0; flex: 1 1 560px; }
.control-label, .control-card legend { display: block; color: #2d3e3e; font-size: 12px; font-weight: 800; }
.sample-buttons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 560px; margin-top: 9px; }
.sample-button { min-width: 0; padding: 5px; border: 1px solid #d6ded8; border-radius: 2px; background: #fff; color: #53625f; font-size: 9px; font-weight: 700; cursor: pointer; }
.sample-button img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.sample-button span { display: block; padding-top: 5px; white-space: nowrap; }
.sample-button span b { margin-right: 3px; color: #929b96; font: 700 8px/1 monospace; }
.sample-warning { display: block; margin-top: 3px; color: #a4483b; font-size: 7px; font-weight: 800; line-height: 1.2; }
.sample-button:hover { border-color: #829984; }
.sample-button.is-active { background: #fff7ff; border-color: #b72bab; color: #65255f; box-shadow: 0 0 0 1px #b72bab; }
.upload-button { position: relative; white-space: nowrap; flex-shrink: 0; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; inset: 0; cursor: pointer; }
.upload-button:focus-within { outline: 2px solid #608c70; outline-offset: 3px; }

.control-grid { display: grid; grid-template-columns: 1.15fr 1.22fr 1fr .95fr; gap: 11px; }
.control-card { min-width: 0; margin: 0; padding: 15px 15px 12px; border: 1px solid #dfe4de; }
.control-card:disabled { opacity: .55; }
.control-card legend { padding: 0 4px; }
.control-card legend label { cursor: pointer; }
.control-help { min-height: 34px; margin: 4px 0 10px; color: #84908e; font-size: 10px; line-height: 1.5; }
.color-row { display: flex; gap: 7px; align-items: center; }
.color-swatch { min-width: 48px; padding: 0; display: grid; justify-items: center; gap: 3px; border: 0; background: transparent; color: #63706e; font-size: 9px; cursor: pointer; }
.color-swatch span:first-child { width: 28px; height: 22px; border: 2px solid transparent; outline: 1px solid #dce1da; }
.color-swatch.is-selected span:first-child { outline: 2px solid #355d45; outline-offset: 1px; }
.swatch-green { background: #00ff00; }.swatch-magenta { background: #ff00ff; }.swatch-blue { background: #0000ff; }
.custom-color { display: grid; gap: 3px; justify-items: center; color: #63706e; font-size: 9px; cursor: pointer; }
.custom-color input { width: 28px; height: 22px; border: 0; padding: 0; background: transparent; cursor: pointer; }
.custom-color input::-webkit-color-swatch-wrapper { padding: 0; }
.custom-color input::-webkit-color-swatch { border: 1px solid #cbd4cd; }
.text-button { display: inline-block; margin: 10px 0 0; padding: 0; border: 0; background: transparent; color: #547754; font-size: 10px; font-weight: 750; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.select-wrap { position: relative; display: block; }
.select-wrap select { width: 100%; min-height: 38px; padding: 0 32px 0 10px; appearance: none; border: 1px solid #d4ddd7; border-radius: 1px; background: #fff; color: #344341; font-size: 11px; font-weight: 700; cursor: pointer; }
.select-wrap > span:not(.sr-only) { position: absolute; top: 3px; right: 11px; color: #718078; pointer-events: none; }
.method-summary { margin: 9px 0 0; color: #547754; font-size: 10px; line-height: 1.5; }
.slider-card input[type="range"] { width: 100%; height: 20px; margin: 2px 0 0; accent-color: #688854; cursor: pointer; }
.control-card legend output { float: right; min-width: 25px; text-align: right; color: #628150; font-variant-numeric: tabular-nums; }
.range-ends { display: flex; justify-content: space-between; color: #a0aaa5; font-size: 9px; }
.toggle-row { display: flex; align-items: center; gap: clamp(18px, 4vw, 52px); min-height: 72px; padding: 7px 4px 13px; }
.toggle { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; }
.toggle > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-ui { width: 30px; height: 17px; border-radius: 10px; background: #c7ceca; position: relative; flex: 0 0 auto; transition: background .15s; }
.toggle-ui::after { content: ""; width: 13px; height: 13px; background: white; border-radius: 50%; position: absolute; left: 2px; top: 2px; transition: transform .15s; box-shadow: 0 1px 2px #75817c; }
.toggle > input:checked + .toggle-ui { background: #70945f; }
.toggle > input:checked + .toggle-ui::after { transform: translateX(13px); }
.toggle.is-disabled { opacity: .48; cursor: not-allowed; }
.toggle > input:focus-visible + .toggle-ui { outline: 2px solid #355d45; outline-offset: 2px; }
.toggle strong, .toggle small { display: block; }
.toggle strong { color: #44524f; font-size: 10px; }.toggle small { margin-top: 1px; color: #929c97; font-size: 9px; }
.privacy-note { margin: 0 0 0 auto; color: #637d66; font-size: 10px; font-weight: 750; white-space: nowrap; }
.privacy-note span { display: inline-grid; width: 18px; height: 18px; margin-right: 4px; place-items: center; border: 1px solid #c3d3bd; border-radius: 50%; }

.canvas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.canvas-card { min-width: 0; margin: 0; border: 1px solid #dce2db; background: #fff; }
.canvas-card figcaption { min-height: 51px; padding: 9px 12px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #e5e9e4; }
.canvas-index { width: 23px; height: 23px; display: inline-grid; place-items: center; background: #edf2e9; color: #587050; font: 700 10px/1 monospace; }
.canvas-card figcaption strong, .canvas-card figcaption small { display: block; }
.canvas-card figcaption strong { font-size: 11px; }.canvas-card figcaption small { color: #919b97; font-size: 9px; line-height: 1.4; }
.canvas-frame { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background-color: #fff; }
.canvas-frame canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.mask-frame { background: #e2e4df; }
.checker-bg { background-color: #fff; background-image: linear-gradient(45deg, #dfe4dc 25%, transparent 25%), linear-gradient(-45deg, #dfe4dc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #dfe4dc 75%), linear-gradient(-45deg, transparent 75%, #dfe4dc 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.readout-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: center; padding: 20px 2px 4px; }
.readout-label { display: block; margin-bottom: 8px; color: #596965; font-size: 10px; font-weight: 750; }
.meter { display: flex; width: 100%; height: 8px; overflow: hidden; border-radius: 5px; background: #e7ebe6; }
.meter span { display: block; height: 100%; transition: width .2s; }
#meter-transparent { background: #b9c2bd; }#meter-partial { background: #edb267; }#meter-opaque { background: #708b62; }
.meter-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 7px; color: #8a9490; font-size: 9px; }
.meter-legend span { white-space: nowrap; }.meter-legend b { margin-left: 3px; color: #5f6b66; font-variant-numeric: tabular-nums; }
.meter-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 3px; border-radius: 50%; vertical-align: 0; }
.legend-transparent { background: #b9c2bd; }.legend-partial { background: #edb267; }.legend-opaque { background: #708b62; }
.live-insight { min-height: 57px; padding: 10px 14px; display: flex; align-items: flex-start; gap: 10px; background: #f1f4ed; }
.insight-icon { color: #618355; font-size: 19px; line-height: 1.2; }
.live-insight p { margin: 0; color: #5e6e62; font-size: 10px; line-height: 1.65; }
.demo-disclaimer { margin: 16px 0 0; color: #99a29e; font-size: 9px; }

.methods-section { background: var(--paper); }
.method-cards { max-width: 1250px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--card); }
.method-explainer { min-height: 310px; padding: 23px 24px 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-explainer:nth-child(2n) { border-right: 0; }
.method-explainer:nth-child(n+3) { border-bottom: 0; }
.method-featured { background: #f0f4e8; }
.method-model { background: #f3f5f7; }
.method-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.method-number { color: #6f865c; font: 700 11px/1 monospace; letter-spacing: .08em; }
.method-tag { padding: 4px 8px; background: rgba(112,139,98,.1); color: #628052; font-size: 9px; font-weight: 750; }
.method-explainer h3 { margin: 0 0 9px; font-size: 19px; letter-spacing: -.025em; }
.method-explainer > p { min-height: 68px; margin: 0; color: #687470; font-size: 11px; line-height: 1.8; }
.method-tradeoff { padding-top: 14px; border-top: 1px solid #e2e6df; }
.method-tradeoff strong { display: inline-block; margin-right: 4px; color: #4f6947; font-size: 10px; }
.method-tradeoff strong:nth-of-type(2) { margin-left: 9px; }
.model-flow { display: grid; grid-template-columns: 1fr 18px 1fr 18px 1fr; align-items: center; gap: 4px; margin: 18px 0; text-align: center; }
.model-flow span { min-height: 43px; padding: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #dfe4de; background: #fffefa; color: #53625f; font-size: 9px; font-weight: 700; line-height: 1.35; }
.model-flow b { color: #7d9183; font-size: 13px; }
.model-flow .model-flow-model { border-color: #d5decf; background: #eef3e8; color: #4f6947; }
.model-flow .model-flow-mask { border-color: #38434a; background: #38434a; color: #fff; }
.method-source-link { display: inline-block; margin-top: 10px; color: #56754f; font-size: 10px; font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.model-runtime-note { min-height: 0 !important; margin: 6px 0 0 !important; color: #88928e !important; font-size: 9px !important; }
.formula-board { max-width: 1250px; margin: 17px auto 0; padding: 22px 24px; border: 1px solid #dbe1d8; background: #f1f4ec; }
.formula-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.formula-heading .eyebrow { margin-bottom: 6px; font-size: 8px; }
.formula-heading h3 { margin: 0; font-size: 19px; letter-spacing: -.025em; }
.formula-heading > p { max-width: 480px; margin: 0; color: #78847e; font-size: 10px; line-height: 1.7; }
.formula-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 17px; }
.formula-tile { min-height: 92px; padding: 12px 14px; display: grid; grid-template-columns: 12px auto 1fr; grid-template-rows: 17px 25px 16px; align-items: center; column-gap: 7px; border: 1px solid #e1e5de; background: rgba(255,255,255,.62); opacity: .62; transition: opacity .18s, border-color .18s, background .18s; }
.formula-tile.is-current { border-color: #9daf8d; background: #fffefa; opacity: 1; box-shadow: inset 0 0 0 1px #dfe8d6; }
.formula-chip { width: 9px; height: 9px; border-radius: 50%; grid-column: 1; grid-row: 1; }
.formula-green { background: #00df3b; }.formula-magenta { background: #ed36ca; }.formula-blue { background: #2557ef; }
.formula-name { grid-column: 2 / 4; grid-row: 1; color: #6d7973; font-size: 9px; font-weight: 750; }
.formula-tile strong { grid-column: 1 / 4; grid-row: 2; color: #354b3c; font: 700 15px/1.2 Georgia, "Times New Roman", serif; letter-spacing: .01em; }
.formula-tile small { grid-column: 1 / 4; grid-row: 3; color: #89938e; font-size: 8px; }
.formula-note { margin: 13px 0 4px; color: #526b4f; font-size: 10px; font-weight: 700; }
.formula-footnote { margin: 0; color: #849089; font-size: 9px; line-height: 1.7; }
.mini-diagram { position: relative; height: 56px; margin: 13px 0 16px; display: flex; align-items: flex-start; padding: 3px 7% 0; }
.diagram-dot { width: 18px; height: 18px; border-radius: 50%; border: 3px solid white; box-shadow: 0 0 0 1px #bec9bf; position: relative; z-index: 1; }
.dot-key { background: #00e440; }.dot-edge { background: linear-gradient(90deg,#00e440,#ddad91); }.dot-subject { background: #d99470; }
.diagram-line { flex: 1; height: 2px; margin-top: 8px; background: #d8dfd7; }
.diagram-caption { position: absolute; top: 28px; width: 28%; color: #8b9690; font-size: 8px; text-align: center; }
.diagram-caption:nth-of-type(4) { left: 0; }.diagram-caption:nth-of-type(5) { left: 36%; }.diagram-caption:nth-of-type(6) { right: 0; }
.equation-card { margin: 13px 0 16px; padding: 10px 12px; display: grid; gap: 1px; border-left: 3px solid #89a16c; background: rgba(255,255,255,.65); }
.equation-card span { color: #7a8780; font-size: 8px; }.equation-card strong { color: #395444; font: 700 15px/1.45 Georgia, serif; }.equation-card strong + strong { font-size: 11px; }.equation-card small { color: #7e8b81; font-size: 8px; }
.small-equation { min-height: 62px; margin-bottom: 8px; }.small-equation strong { font-size: 10px; white-space: nowrap; }
.connectivity-diagram { height: 56px; position: relative; margin: 13px 0 16px; border: 1px solid #dfe5dc; background: #f7f8f2; overflow: hidden; }
.connect-outline { position: absolute; left: 42%; top: 7px; width: 70px; height: 34px; border: 2px solid #61785f; border-radius: 48%; }
.connect-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #00e440; }
.dot-edge-a { left: 9px; top: 9px; }.dot-edge-b { left: 25px; top: 26px; }.dot-inner { left: calc(42% + 30px); top: 18px; }
.connect-path { position: absolute; left: 15px; top: 17px; width: 34%; height: 1px; border-top: 1px dashed #92a387; }
.connect-label { position: absolute; top: 43px; left: 3px; color: #8b9690; font-size: 8px; }.connect-label:last-child { left: calc(42% + 86px); top: 10px; width: 84px; line-height: 1.2; }
.edge-notes { max-width: 1250px; margin: 23px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.edge-notes article { min-height: 139px; padding: 17px; display: flex; gap: 12px; border: 1px solid #e0e3da; background: #fbfaf5; }
.edge-icon { width: 25px; height: 25px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #edf1e7; color: #6c865b; font-size: 15px; font-weight: 700; }
.edge-notes h3 { margin: 2px 0 6px; font-size: 12px; }.edge-notes p { margin: 0; color: #77827e; font-size: 10px; line-height: 1.7; }

.choose-section { background: #e9eee7; }
.decision-table { max-width: 1250px; margin: 0 auto; border: 1px solid #d6ded5; background: var(--card); }
.decision-row { display: grid; grid-template-columns: 1.13fr 1.05fr 1.35fr; gap: 20px; align-items: center; padding: 15px 20px; border-bottom: 1px solid #e6eae4; color: #68746f; font-size: 11px; line-height: 1.6; }
.decision-row:last-child { border-bottom: 0; }
.decision-header { min-height: 41px; background: #f4f6ef; color: #738079; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.decision-row strong { color: #435843; font-size: 11px; }
.condition { display: flex; align-items: center; gap: 9px; color: #43504c; font-weight: 700; }
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; }.status-good { background: #7d9b65; }.status-warn { background: #e0ae57; }.status-ai { background: #70a9bd; }.status-stop { background: #d98283; }
.decision-footnote { max-width: 1250px; margin: 13px auto 0; color: #77847c; font-size: 10px; }

.projects-section { background: var(--paper); }
.project-grid { max-width: 1250px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.project-card { min-height: 225px; padding: 20px 18px; display: flex; flex-direction: column; border: 1px solid #dce0d7; background: #fffefa; text-decoration: none; transition: transform .18s, border-color .18s, box-shadow .18s; }
.project-card:hover { transform: translateY(-3px); border-color: #aab99d; box-shadow: 0 10px 28px rgba(31, 50, 50, .06); }
.project-index { color: #799064; font: 700 9px/1 monospace; letter-spacing: .08em; }
.project-card h3 { margin: 13px 0 8px; font-size: 19px; letter-spacing: -.02em; }
.project-card p { margin: 0 0 18px; color: #78827e; font-size: 10px; line-height: 1.75; }
.project-link { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 11px; border-top: 1px solid #ebeee8; color: #5a7552; font-size: 9px; font-weight: 750; }.project-link b { font-size: 13px; }
.related-article { max-width: 1250px; margin: 15px auto 0; padding: 15px 17px; display: flex; align-items: center; gap: 16px; background: #ecefe7; text-decoration: none; }
.related-article span { color: #798773; font-size: 9px; font-weight: 750; white-space: nowrap; }.related-article strong { flex: 1; color: #4d5d51; font-size: 10px; }.related-article b { color: #68815a; }

.closing-section { padding: 74px 24px 83px; display: grid; justify-items: center; text-align: center; background: #dfe8d7; }
.closing-mark { width: 38px; height: 38px; margin-bottom: 19px; display: grid; place-items: center; border-radius: 12px 12px 12px 2px; background: var(--green); color: #304537; font: italic 700 23px/1 Georgia, serif; }
.closing-section .eyebrow { margin-bottom: 10px; }.closing-section h2 { margin-bottom: 12px; font-size: clamp(32px, 4vw, 49px); line-height: 1.2; letter-spacing: -.045em; }
.closing-section > p:not(.eyebrow) { max-width: 510px; margin: 0 0 23px; color: #617066; font-size: 12px; line-height: 1.8; }
.footer { min-height: 64px; padding: 12px clamp(24px, 8vw, 130px); display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #7b8580; font-size: 9px; }
.footer .brand { color: var(--ink); font-size: 11px; }.footer .brand-mark { width: 23px; height: 23px; font-size: 15px; }
.footer .footer-links { display: flex; align-items: center; gap: 8px; }
.footer .footer-icon { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d5ddd4; border-radius: 50%; color: #718078; transition: color .15s, background .15s, border-color .15s, transform .15s; }
.footer .footer-icon:hover { color: #355d45; background: #e9eee7; border-color: #aabca8; transform: translateY(-1px); }
.footer .footer-icon[aria-label^="請作者"]:hover { color: #946b13; border-color: #c2a75f; }

@media (max-width: 1000px) {
  .hero { padding-right: 6vw; padding-left: 6vw; column-gap: 5vw; }
  .hero-note { left: 6vw; }
  .section-pad { padding-right: 6vw; padding-left: 6vw; }
  .control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-explainer { padding-right: 17px; padding-left: 17px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 66px; }
  .topbar { height: 60px; padding: 0 18px; }
  .topbar nav { gap: 13px; }.topbar nav a { font-size: 10px; }.topbar nav a:nth-child(3) { display: none; }
  .hero { min-height: unset; padding: 52px 22px 59px; grid-template-columns: 1fr; gap: 30px; }
  .hero h1 { font-size: clamp(48px, 13vw, 72px); }
  .hero-lead { font-size: 14px; }
  .hero-art { max-width: 520px; height: min(67vw, 310px); margin: 0 auto; }
  .hero-note { left: 22px; bottom: 17px; }
  .section-pad { padding: 58px 18px; }
  .section-heading { display: block; margin-bottom: 22px; }.section-heading h2 { font-size: 32px; }.section-intro { margin-top: 12px; font-size: 12px; }
  .workbench { padding: 14px; }
  .workbench-top { display: block; }
  .upload-button { margin-top: 13px; }
  .sample-buttons { gap: 5px; }.sample-button { padding: 4px; font-size: 8px; }
  .control-grid { gap: 8px; }.control-card { padding: 12px 10px 10px; }.control-help { font-size: 9px; min-height: 40px; }
  .color-row { gap: 4px; }.color-swatch { min-width: 38px; }.color-swatch span:first-child { width: 24px; height: 20px; }
  .control-card legend { font-size: 11px; }.select-wrap select { font-size: 9px; padding-left: 7px; }
  .toggle-row { flex-wrap: wrap; gap: 11px 16px; padding-top: 13px; }.toggle { width: calc(50% - 8px); align-items: flex-start; }.toggle small { font-size: 8px; }.privacy-note { margin-left: 0; }
  .canvas-grid { grid-template-columns: 1fr; gap: 9px; }.canvas-card figcaption { min-height: 43px; }
  .canvas-frame { max-height: 68vw; }
  .readout-row { grid-template-columns: 1fr; gap: 14px; }
  .method-cards { grid-template-columns: 1fr; }.method-explainer { min-height: unset; padding: 18px; border-right: 0; border-bottom: 1px solid var(--line); }.method-explainer:nth-child(n+3) { border-bottom: 1px solid var(--line); }.method-explainer:last-child { border-bottom: 0; }
  .method-explainer > p { min-height: 0; }.method-tradeoff { margin-top: 13px !important; }
  .formula-board { padding: 17px; }.formula-heading { display: block; }.formula-heading > p { margin-top: 8px; }.formula-grid { gap: 5px; }.formula-tile { min-height: 83px; padding: 8px; column-gap: 4px; }.formula-tile strong { font-size: 11px; }.formula-tile small { font-size: 7px; }
  .edge-notes { grid-template-columns: 1fr; gap: 8px; }.edge-notes article { min-height: 0; }
  .decision-row { grid-template-columns: 1fr; gap: 4px; padding: 12px; font-size: 10px; }.decision-header { display: none; }.decision-row strong { display: block; }.condition { margin-bottom: 3px; }
  .project-grid { grid-template-columns: 1fr; }.project-card { min-height: 0; }.project-card p { font-size: 11px; }
  .related-article { gap: 9px; padding: 12px; align-items: flex-start; }.related-article strong { font-size: 9px; line-height: 1.6; }
  .closing-section { padding: 57px 22px 63px; }.closing-section h2 { font-size: 36px; }
  .footer { min-height: 64px; padding: 10px 18px; }.footer > span { display: none; }
}
@media (max-width: 390px) {
  .topbar nav { gap: 9px; }.topbar nav a { font-size: 9px; }
  .sample-button { font-size: 7px; padding: 3px; }.sample-button span { padding-top: 3px; }.sample-button span b { font-size: 7px; margin-right: 2px; }.control-grid { grid-template-columns: 1fr; }.control-help { min-height: 0; }
  .color-row { justify-content: flex-start; }.toggle { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
