:root {
  color-scheme: light;
  --paper: #f4f3ed;
  --white: #fffef9;
  --ink: #20251f;
  --subtle: #555b51;
  --line: #d8dbce;
  --lime: #def371;
  --dark: #182722;
  --mint: #e5eedb;
  --sand: #f3e9d2;
  --lilac: #ece6f3;
  --rose: #f1e6db;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; width: 100%; height: auto; }
p { margin: 0; }
:focus-visible { outline: 2px solid #167c5a; outline-offset: 4px; }
::selection { background: var(--lime); color: var(--ink); }
[aria-hidden="true"] { user-select: none; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 28px; }
.site-width { width: min(100% - 104px, 1280px); margin-inline: auto; }
.skip { position: absolute; z-index: 10; top: 6px; left: 6px; transform: translateY(-150%); background: white; padding: 10px; }
.skip:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 74px; }
.wordmark { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; font-size: 23px; font-weight: 800; letter-spacing: -.07em; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; margin-right: 4px; border-radius: 8px; background: var(--dark); color: var(--lime); font-size: 21px; line-height: 1; letter-spacing: 0; }
nav { display: flex; gap: clamp(16px, 3vw, 38px); align-items: center; }
nav a { font-size: 14px; font-weight: 700; white-space: nowrap; }
nav a:hover, .text-link:hover { color: #276044; }

.hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); margin-top: 32px; min-height: 504px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 11px 35px #2a39200a; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; position: relative; z-index: 1; background: linear-gradient(148deg, #fffef9, #f3f4e7); padding: clamp(30px, 4.5vw, 69px); }
.kicker { font-size: 11px; font-weight: 800; line-height: 1.4; letter-spacing: .13em; }
.hero-kicker, .proposal-kicker { display: flex; align-items: center; gap: 9px; }
.hero-kicker span, .proposal-kicker span, .art-caption i { display: block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.hero-kicker { color: #3f5946; }
.hero-kicker span { background: #75944c; box-shadow: 0 0 0 4px #b9d47a38; }
.hero h1 { margin: 21px 0 23px; font-size: clamp(51px, 6.1vw, 96px); line-height: 1.07; letter-spacing: -.087em; font-weight: 900; }
.hero-period { font-family: Arial, sans-serif; font-size: .86em; margin-left: .075em; color: #6f8948; }
.hero-intro { max-width: 345px; font-size: clamp(14px, 1.4vw, 17px); line-height: 1.72; color: #465348; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: space-between; gap: 20px; width: fit-content; padding: 0 17px; border: 1px solid transparent; border-radius: 6px; font-weight: 800; font-size: 13px; }
.button-dark { color: white; background: var(--ink); }
.button-dark:hover { background: #344038; }
.button-outline { border-color: #9da497; background: var(--white); }
.button-outline:hover { background: var(--mint); }
.hero-copy .button { margin-top: 27px; }
.hero-art { position: relative; min-width: 0; isolation: isolate; overflow: hidden; background-color: #172621; background-image: radial-gradient(ellipse at 71% 22%, #3f614a 0, transparent 63%), linear-gradient(0deg, #a7d1aa15 1px, transparent 1px), linear-gradient(90deg, #a7d1aa15 1px, transparent 1px); background-size: auto, 33px 33px, 33px 33px; }
.art-orbit { position: absolute; width: 103%; aspect-ratio: 1; top: -19%; left: 16%; border: 1px solid #a9caa260; border-radius: 50%; box-shadow: inset 0 0 0 37px #c7dbb10b, 0 0 0 39px #c7dbb10e; pointer-events: none; }
.hero-window { position: absolute; overflow: hidden; background: #e6ede1; border: 1px solid #aabda6; border-radius: 10px; box-shadow: 0 23px 56px #09120dc7; }
.hero-window img { aspect-ratio: 1.64; object-fit: cover; object-position: center top; }
.hero-window-main { width: 79%; top: 15%; left: 11%; transform: translate(var(--main-x, 0), var(--main-y, 0)) rotate(-7deg); }
.hero-window-small { width: 52%; right: 1%; bottom: 16%; transform: translate(var(--small-x, 0), var(--small-y, 0)) rotate(7deg); }
.window-bar { display: flex; align-items: center; gap: 4px; height: 24px; background: #e1eadb; border-bottom: 1px solid #acbbaa; padding-inline: 9px; color: #3d5546; }
.window-bar i { width: 5px; height: 5px; background: #768b77; border-radius: 50%; }
.window-bar span { margin-left: 5px; font-size: 8px; font-weight: 800; letter-spacing: .13em; white-space: nowrap; }
.hero-art-mark { position: absolute; line-height: 1; top: 7%; right: 6%; font-size: clamp(27px, 4vw, 56px); color: var(--lime); transform: rotate(12deg); text-shadow: 0 4px 8px #16291c80; }
.art-caption { position: absolute; left: 18px; bottom: 16px; display: flex; align-items: center; gap: 7px; padding: 5px 7px; border-radius: 4px; background: #182722ed; color: #f2f7eb; font-size: 11px; letter-spacing: .075em; }
.art-caption i { width: 6px; height: 6px; background: var(--lime); }

.section { margin-top: 76px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 15px 24px; margin-bottom: 23px; }
.section-kicker { color: #42634d; }
.section-heading h2 { margin: 6px 0 0; font-size: clamp(33px, 3.5vw, 48px); font-weight: 900; line-height: 1.15; letter-spacing: -.065em; }
.text-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; align-self: flex-end; padding: 5px 0; background: transparent; border: 0; border-bottom: 1px solid #8b9786; font-weight: 800; font-size: 13px; line-height: 1.4; }
.section-aside { max-width: 340px; color: var(--subtle); font-size: 14px; line-height: 1.6; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.featured-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.card-media { display: block; position: relative; isolation: isolate; aspect-ratio: 1.65; overflow: hidden; padding: 9% 9% 0; background: #dce6e5; }
.card-media img { height: 100%; object-fit: cover; object-position: top center; border: 1px solid #67817140; border-bottom: 0; border-radius: 7px 7px 0 0; box-shadow: 0 6px 24px #102d2552; transition: transform .25s ease; }
.card-media:hover img { transform: translateY(-4px); }
.card-media:focus-visible { outline-offset: -4px; }
.media-literature { background: #e0e9d5; }
.media-low-power { background: #e9e1ce; }
.media-arrow { display: grid; place-items: center; position: absolute; right: 10px; top: 10px; width: 31px; height: 31px; border: 1px solid #2f3e3238; border-radius: 50%; background: #fffefaee; font-weight: 700; }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: 18px 19px 20px; }
.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; font-weight: 800; color: #4b584c; }
.category-dot { width: 8px; height: 8px; display: block; background: #457b58; border-radius: 50%; }
.category-dot.rose { background: #9f5948; }
.card-copy h3 { font-size: clamp(18px, 2vw, 24px); margin: 10px 0 7px; letter-spacing: -.035em; line-height: 1.21; }
.card-copy h3 a:hover { color: #276044; }
.card-copy > p:not(.card-meta) { color: var(--subtle); font-size: 14px; line-height: 1.65; margin-bottom: 13px; }
.card-link { align-self: flex-start; margin-top: auto; }

.graph-section .section-heading { margin-bottom: 20px; }
.map-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mint { --tile: var(--mint); }
.sand { --tile: var(--sand); }
.lilac { --tile: var(--lilac); }
.rose { --tile: var(--rose); }
.map-item { text-align: left; display: grid; gap: 6px; border: 1px solid #20272020; border-radius: 9px; padding: 15px 16px 16px; min-width: 0; background: var(--tile); }
.map-item:hover { border-color: #637565; }
.map-item[aria-pressed="true"] { border-color: #334934; box-shadow: inset 0 0 0 1px #334934; }
.map-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-weight: 800; font-size: 11px; color: #454e42; }
.map-symbol { font-size: 30px; color: var(--ink); line-height: 1; }
.map-item > strong { font-size: clamp(13px, 1.45vw, 19px); letter-spacing: -.02em; }
.map-description { font-size: 12px; color: #414b40; line-height: 1.45; }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 27px 0 8px; }
.list-toolbar p { color: var(--subtle); font-size: 13px; }
.list-toolbar .is-active { border-color: transparent; }
.project-list { border-top: 1px solid #bfc6b6; }
.project-row { border-bottom: 1px solid var(--line); }
.project-group { margin: 12px 0; padding: 0 12px; border: 1px solid #ccd4be; border-radius: 9px; background: #fafbf3; }
.project-group .project-row:last-child { border-bottom: 0; }
.group-header { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 5px 15px; padding: 11px 4px 8px; border-bottom: 1px solid var(--line); }
.group-header h3 { margin: 0 0 3px; font-size: 15px; }
.group-header p { color: var(--subtle); font-size: 12px; }
.group-header .text-link { align-self: center; }
.row-main { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 18px; align-items: center; gap: 14px; padding: 13px 8px 13px 3px; }
.row-main:hover { background: #e8ecdf; }
.row-symbol { background: var(--tile); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; font: 20px/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.row-symbol img { width: 24px; height: 24px; object-fit: contain; border-radius: 5px; }
.project-row h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.3; font-weight: 800; }
.project-row p { margin: 0; font-size: 13px; color: var(--subtle); line-height: 1.4; }
.row-status { font-size: 11px; font-weight: 800; white-space: nowrap; color: #465448; }
.row-arrow { text-align: right; font-weight: 700; }

.proposal { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); gap: clamp(26px, 4vw, 78px); align-items: center; overflow: hidden; position: relative; isolation: isolate; border-radius: 16px; background: #202e25; color: #f8faee; padding: clamp(26px, 4.7vw, 67px); }
.proposal::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 95% 5%, #3b593a, transparent 60%); }
.proposal-kicker { color: var(--lime); margin-bottom: 15px; }
.proposal h2 { font-size: clamp(30px, 5.5vw, 76px); line-height: 1; letter-spacing: -.075em; margin: 0 0 9px; }
.proposal-subtitle { font-weight: 800; color: #edf3dc; font-size: clamp(17px, 2vw, 23px); margin-bottom: 16px; line-height: 1.3; }
.proposal-copy > p:not([class]) { color: #e0ead9; line-height: 1.75; max-width: 510px; font-size: 14px; }
.proposal-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 11px 15px; align-items: center; }
.button-lime { background: var(--lime); color: var(--ink); }
.button-lime:hover { background: #f1ffa3; }
.proposal-link { font-size: 13px; font-weight: 800; padding: 9px 0; border-bottom: 1px solid #c3d8b0a6; }
.proposal-link:hover { color: var(--lime); }
.proposal :focus-visible { outline-color: var(--lime); }
.proposal-diagram { padding: 19px 16px; border: 1px solid #9bbc8b58; border-radius: 12px; background: #121f1790; text-align: center; }
.diagram-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.diagram-inputs span { background: #354834; border: 1px solid #6b8163; padding: 11px 3px; border-radius: 5px; font-size: clamp(10px, 1.15vw, 14px); white-space: nowrap; }
.diagram-stem { position: relative; height: 24px; margin-inline: 16.66%; border: 1px solid #83a878; border-top: 0; border-bottom-left-radius: 5px; border-bottom-right-radius: 5px; }
.diagram-stem::before { content: ''; position: absolute; width: 1px; height: 26px; left: 50%; top: 0; background: #83a878; }
.diagram-engine { display: flex; gap: 12px; justify-content: center; align-items: center; background: #536c4655; border: 1px solid #8ca87b; border-radius: 7px; padding: 12px; font-weight: 800; }
.diagram-engine > span { color: var(--lime); font-size: 26px; }
.diagram-engine small { display: block; margin-top: 4px; color: #d2e6c9; font-weight: 400; font-size: 11px; }
.diagram-output { color: #eaf6c2; padding-top: 12px; font-size: 13px; }
.site-footer { margin-top: 52px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); min-height: 83px; }
.footer-inner .wordmark { justify-self: start; }
.footer-farewell { color: var(--subtle); font-size: 12px; text-align: center; }
.footer-inner .text-link { align-self: auto; justify-self: end; white-space: nowrap; }

dialog { width: min(740px, 100% - 28px); max-height: calc(100dvh - 34px); padding: 0; background: var(--white); color: var(--ink); border: 1px solid #899585; border-radius: 14px; box-shadow: 0 16px 70px #101b1452; overscroll-behavior: contain; }
dialog::backdrop { background: #0c1b15a0; }
body:has(dialog[open]) { overflow: hidden; }
.wide-dialog { width: min(1210px, 100% - 30px); }
.dialog-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 15px clamp(15px, 3vw, 30px); background: var(--white); border-bottom: 1px solid var(--line); }
.dialog-category { color: #42634d; }
.dialog-bar h2 { margin: 5px 0 0; font-size: clamp(18px, 3vw, 25px); line-height: 1.2; }
.dialog-bar h2:focus { outline: 0; }
.dialog-close { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); font-size: 24px; line-height: 1; }
.dialog-close:hover { background: var(--mint); }
.detail-content { padding: 20px clamp(15px, 3vw, 30px) 27px; font-size: 15px; line-height: 1.75; }
.detail-content p + p { margin-top: 10px; }
.detail-subtitle { color: #526455; font-weight: 800; font-size: 12px; }
.detail-summary { font-size: 17px; font-weight: 800; }
.detail-note { border-left: 3px solid #78936c; background: #eef2e8; padding: 8px 11px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.detail-cover { margin: 21px 0 0; border-radius: 7px; overflow: hidden; border: 1px solid var(--line); }
.detail-gallery { margin-top: 21px; }
.detail-gallery h3 { font-size: 15px; margin: 0 0 9px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.gallery-tile { display: grid; position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--white); padding: 0; text-align: left; }
.gallery-tile:hover { border-color: #647d61; }
.gallery-thumb { display: grid; align-items: center; aspect-ratio: 1.75; overflow: hidden; background: #e9ede2; padding: 8px; }
.gallery-thumb img { width: 100%; height: 100%; max-height: 280px; min-height: 0; object-fit: contain; }
.gallery-portrait .gallery-thumb { aspect-ratio: 1.2; }
.gallery-tile > span:last-child { display: flex; justify-content: space-between; gap: 5px; padding: 5px 8px; font-size: 12px; }
.image-dialog { width: min(1190px, 100% - 26px); }
.gallery-studio {
  --gallery-line: #d2e2d52b;
  --gallery-muted: #bfd0c4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(205px, 260px);
  background: #0d1d17;
  color: #eff5ed;
}
.gallery-studio :focus-visible { outline-color: #c8eb68; outline-offset: -2px; }
.gallery-stage { min-width: 0; position: relative; isolation: isolate; overflow: hidden; background: #142820; }
.gallery-stage::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 46% 33%, #4f755a8a, transparent 63%),
    linear-gradient(0deg, #c4e6c313 1px, transparent 1px), linear-gradient(90deg, #c4e6c313 1px, transparent 1px);
  background-size: auto, 27px 27px, 27px 27px;
}
.gallery-stage-bar { display: flex; justify-content: space-between; align-items: center; gap: 7px; padding: 9px 14px 4px; color: #dce9dc; font-size: 12px; }
.gallery-count { margin-left: 5px; color: #c7e888; font-variant-numeric: tabular-nums; }
.gallery-fit, .gallery-arrows button {
  min-height: 35px; padding: 5px 9px; color: #eff5ed; border: 1px solid #b4d5bb5c;
  border-radius: 7px; background: #12251de0; font: inherit;
}
.gallery-fit:hover, .gallery-arrows button:hover { border-color: #c1dfb3; background: #284235; }
.gallery-scroll {
  height: clamp(300px, calc(100dvh - 260px), 760px);
  overflow: auto; overscroll-behavior: contain; touch-action: pan-y;
  padding: 13px clamp(13px, 4vw, 44px) 19px;
  scrollbar-color: #a4bb96 #1c3027; scrollbar-width: thin;
}
.gallery-image-shell {
  width: min(100%, 900px); margin-inline: auto; overflow: hidden;
  border: 1px solid #c8e6c98f; border-radius: 12px;
  background: #f1f2ec; box-shadow: 0 18px 46px #07100bd9;
}
.gallery-current { display: block; width: 100%; height: auto; object-fit: contain; }
.gallery-studio[data-portrait] .gallery-image-shell { width: min(100%, 450px); border: 5px solid #101d18; border-radius: 24px; }
.gallery-studio[data-fit="true"] .gallery-image-shell { width: fit-content; max-width: 100%; }
.gallery-studio[data-fit="true"] .gallery-current { width: auto; max-width: 100%; max-height: clamp(267px, calc(100dvh - 300px), 718px); }
.gallery-scroll-note { display: flex; gap: 12px; min-height: 28px; margin: 0; padding: 4px 14px 10px; color: var(--gallery-muted); font-size: 11px; }
.gallery-studio[data-fit="true"] .gallery-reading-hint, .gallery-mobile-hint { display: none; }
@media (hover: none) {
  .gallery-desktop-hint { display: none; }
  .gallery-mobile-hint { display: inline; }
}
.gallery-sidebar { display: flex; flex-direction: column; gap: 13px; justify-content: center; padding: 20px 14px; border-left: 1px solid var(--gallery-line); }
.gallery-caption h3 { margin: 0; color: #f1f7ec; font-size: 20px; line-height: 1.3; }
.gallery-description { margin: 7px 0 0; color: var(--gallery-muted); font-size: 12px; line-height: 1.6; }
.gallery-strip { display: grid; gap: 6px; }
.gallery-strip button {
  display: flex; align-items: center; gap: 8px; padding: 4px 7px; min-width: 0; min-height: 43px;
  border: 1px solid var(--gallery-line); border-radius: 7px; background: #12271e;
  color: #dae6dc; text-align: left; font-size: 12px;
}
.gallery-strip button:hover { border-color: #b3c8ac9c; }
.gallery-strip button[aria-pressed="true"] { color: #f7fce9; border-color: #b9d880a1; background: #284330; }
.gallery-strip img { width: 35px; height: 35px; flex: 0 0 auto; object-fit: cover; object-position: center 19%; border-radius: 4px; }
.gallery-arrows { display: flex; gap: 7px; }
.gallery-arrows button { width: 41px; font-size: 16px; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; padding: 0; margin: 17px 0 0; list-style: none; }
.detail-tags li { border-radius: 4px; background: var(--paper); border: 1px solid var(--line); padding: 2px 7px; font-size: 12px; }
.project-example { margin-top: 20px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: #f0f2e8; }
.project-example h3 { font-size: 15px; margin: 0 0 8px; }
.example-flow { margin: 0; padding: 0 0 0 24px; }
.example-flow li::marker { color: #3f5e42; font-weight: 800; }
.sample-table { overflow: auto; }
.sample-table table { border-collapse: collapse; width: 100%; text-align: left; font-size: 13px; }
.sample-table th, .sample-table td { padding: 5px; border-bottom: 1px solid #cbd4c0; }
.example-bars { display: grid; gap: 6px; margin: 0; }
.example-bars > div { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 8px; }
.example-bars dt, .example-bars strong { font-size: 13px; }
.example-bars dd { margin: 0; display: grid; grid-template-columns: 1fr 40px; gap: 6px; align-items: center; }
.bar-track { height: 8px; border-radius: 4px; background: #dde7d6; overflow: hidden; }
.bar-track span { display: block; height: 100%; background: #4f7853; }
.preview-toolbar { display: flex; gap: 8px 15px; align-items: center; justify-content: space-between; min-height: 42px; padding: 4px clamp(15px, 3vw, 30px); background: #f6f7f0; border-bottom: 1px solid var(--line); }
.preview-toolbar a { font-size: 12px; align-self: center; }
.video-default-rate { color: var(--subtle); font-size: 12px; font-variant-numeric: tabular-nums; }
.preview-message { padding: 22px clamp(15px, 3vw, 30px); color: var(--subtle); }
.demo-frame { display: block; width: 100%; height: max(310px, calc(100dvh - 157px)); border: 0; background: white; }
.demo-frame[hidden], .preview-message[hidden] { display: none; }
.video-wrap { display: grid; place-items: center; padding: 8px; background: #202b24; }
.video-wrap video { display: block; width: min(100%, 540px); height: max(260px, calc(100dvh - 175px)); object-fit: contain; }
.video-landscape video { width: min(100%, 1120px); aspect-ratio: 2.01; height: auto; max-height: max(145px, calc(100dvh - 304px)); }
.video-chapters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px clamp(15px, 3vw, 30px) 11px; }
.chapter-link { display: inline-grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 7px; flex: 1 1 auto; padding: 6px 9px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.chapter-time { grid-column: 1 / -1; font-size: 10px; font-variant-numeric: tabular-nums; opacity: .82; }
.chapter-link strong { font-weight: 750; }
.chapter-link:hover { background: var(--mint); }
.chapter-link[aria-current] { color: #fffef9; border-color: var(--dark); background: var(--dark); }
.player-panel { padding: 9px clamp(15px, 3vw, 30px) 12px; border-top: 1px solid #586458; background: #f6f7f0; }
.player-timeline { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 7px; }
.player-timeline input { width: 100%; margin: 0; accent-color: #3d6247; }
.player-time { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--subtle); }
.player-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; margin-top: 7px; font-size: 12px; }
.player-actions button, .player-rate { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); font: inherit; }
.player-actions button:hover:enabled { background: var(--mint); }
.player-actions button:disabled { opacity: .5; cursor: default; }
.player-mode { margin-left: auto; font-size: 12px; }
.player-status:not(:empty) { margin-top: 6px; color: var(--subtle); font-size: 12px; }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-pointer-surface] { isolation: isolate; }
  .map-item, .row-main { position: relative; }
  [data-pointer-surface]::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
    border-radius: inherit; background: radial-gradient(ellipse at var(--pointer-x, 50%) var(--pointer-y, 50%), #e4f7a74f, transparent 53%);
    transition: opacity .42s ease;
  }
  .card-media::after, .map-item::after, .gallery-tile::after { background: radial-gradient(ellipse at var(--pointer-x, 50%) var(--pointer-y, 50%), #fffdf5ee, transparent 63%); }
  [data-pointer-active]::after { opacity: 1; }
  .hero-window { transition: transform .42s cubic-bezier(.2,.7,.3,1); }
  .featured-card, .map-item, .button, .row-main, .row-arrow, .media-arrow, .gallery-tile, .gallery-strip button { transition: transform .28s cubic-bezier(.2,.75,.2,1), box-shadow .28s ease, background-color .22s ease, border-color .22s ease; }
  .featured-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #28362312; }
  .map-item:hover { transform: translateY(-3px); box-shadow: 0 7px 16px #28362310; }
  .button:hover { transform: translateY(-2px); }
  .row-main:hover .row-arrow, .card-media:hover .media-arrow { transform: translate(var(--pointer-dx, 2px), var(--pointer-dy, -2px)); }
  .gallery-tile:hover, .gallery-strip button:hover { transform: translateY(-2px); }
  .gallery-image-shell { transform: translateX(calc(var(--pointer-dx, 0px) * .45)); transition: transform .4s cubic-bezier(.2,.75,.2,1); }
}

@media (max-width: 1000px) {
  .site-width { width: calc(100% - 64px); }
  .hero { min-height: 410px; }
}
@media (max-width: 760px) {
  .gallery-studio { grid-template-columns: minmax(0, 1fr); grid-template-areas: "caption" "choices" "stage" "arrows"; }
  .gallery-sidebar { display: contents; }
  .gallery-caption { grid-area: caption; padding: 11px 12px 8px; }
  .gallery-caption h3 { font-size: 17px; }
  .gallery-description { margin-top: 4px; }
  .gallery-strip { grid-area: choices; display: flex; padding: 0 12px 9px; overflow-x: auto; }
  .gallery-strip button { flex: 0 0 auto; min-height: 38px; }
  .gallery-strip img { width: 24px; height: 26px; }
  .gallery-stage { grid-area: stage; }
  .gallery-arrows { grid-area: arrows; padding: 5px 12px 9px; }
  .gallery-scroll { height: clamp(245px, calc(100dvh - 355px), 535px); padding-inline: 12px; }
  .gallery-studio[data-fit="true"] .gallery-current { max-height: clamp(210px, calc(100dvh - 388px), 502px); }
  .site-width { width: calc(100% - 40px); }
  .header-inner { min-height: 64px; }
  .wordmark { font-size: 19px; }
  .brand-mark { width: 26px; height: 26px; font-size: 17px; }
  nav { gap: 13px; }
  nav a { font-size: 12px; }
  .hero { min-height: 345px; margin-top: 21px; }
  .hero h1 { font-size: clamp(40px, 7.2vw, 57px); }
  .hero-art-mark { top: 8%; }
  .section { margin-top: 57px; }
  .featured-grid { gap: 9px; }
  .card-copy { padding: 13px 10px 14px; }
  .card-copy > p:not(.card-meta) { font-size: 12px; }
  .map-item { padding: 11px; }
  .map-description { font-size: 11px; }
}
@media (max-width: 575px) {
  .site-width { width: calc(100% - 28px); }
  .header-inner { min-height: 56px; gap: 7px; }
  .wordmark { font-size: 17px; gap: 3px; }
  .brand-mark { margin-right: 2px; }
  nav { gap: 10px; }
  nav a { font-size: 11px; }
  .hero { grid-template-columns: 1fr; min-height: 0; margin-top: 15px; border-radius: 13px; }
  .hero-copy { padding: 26px 23px 28px; }
  .hero h1 { font-size: clamp(44px, 11.5vw, 65px); margin: 13px 0 14px; }
  .hero-intro { max-width: 290px; font-size: 14px; }
  .hero-copy .button { margin-top: 17px; }
  .hero-art { min-height: 235px; aspect-ratio: 1.47; }
  .hero-window-main { width: 74%; left: 10%; top: 11%; }
  .hero-window-small { width: 49%; right: 1%; bottom: 15%; }
  .window-bar { height: 18px; }
  .window-bar span { font-size: 7px; }
  .art-caption { left: 11px; bottom: 10px; font-size: 9px; }
  .section { margin-top: 45px; }
  .section-heading { gap: 8px; margin-bottom: 15px; }
  .section-heading h2 { font-size: 32px; }
  .featured-grid { grid-template-columns: 1fr; gap: 13px; }
  .card-media { aspect-ratio: 1.85; }
  .card-copy { padding: 13px 13px 14px; }
  .card-copy h3 { font-size: 20px; }
  .card-copy > p:not(.card-meta) { font-size: 14px; }
  .map-grid { grid-template-columns: 1fr 1fr; }
  .map-item > strong { font-size: 14px; }
  .row-main { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 5px 8px; padding: 10px 2px; }
  .row-symbol { width: 26px; height: 26px; font-size: 16px; grid-row: span 2; align-self: start; }
  .row-symbol img { width: 19px; height: 19px; border-radius: 4px; }
  .project-row h3 { font-size: 14px; margin-bottom: 3px; }
  .project-row p { font-size: 12px; }
  .row-status { grid-row: 2; grid-column: 2; font-size: 10px; }
  .row-arrow { grid-column: 3; grid-row: 1; font-size: 12px; }
  .proposal { grid-template-columns: 1fr; gap: 20px; padding: 24px 16px 16px; }
  .proposal h2 { font-size: clamp(32px, 10.5vw, 57px); }
  .proposal-diagram { padding: 12px; }
  .site-footer { margin-top: 34px; }
  .footer-inner { min-height: 67px; gap: 6px; }
  .footer-inner p, .footer-inner .text-link { font-size: 10px; }
}
@media (max-width: 345px) {
  .brand-mark { display: none; }
  nav { gap: 7px; }
  .player-mode { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
