/* NewRD Network — matches the newrd.com palette and type */
:root {
  --primary: #0c2d3f;
  --primary-light: #13475f;
  --accent: #2a8b72;
  --accent-light: #e0f3ee;
  --accent-dark: #1e6a54;
  --text: #1a1a2e;
  --text-secondary: #4d5c6b;
  --text-muted: #66778a;
  --bg: #ffffff;
  --bg-alt: #f5f8fa;
  --border: #dee5ed;
  --focus: #1b6fd1;
  --th: #13475f; --th-bg: #e6eef4;
  --us: #1e6a54; --us-bg: #e0f3ee;
  --cn: #8a4b00; --cn-bg: #fbeedd;
  --ph: #8a4b00; --ph-bg: #fff7e8;
  --max-w: 1200px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-md: 0 4px 16px rgba(0,0,0,.06);
  --nav-height: 64px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-height) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 1rem; }
a { color: var(--accent-dark); }
a:hover { color: var(--primary); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -100px; left: 0; background: var(--accent-dark); color: #fff; padding: 8px 16px; z-index: 9999; }
.skip-link:focus { top: 0; color: #fff; }
main:focus { outline: none; }
.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; vertical-align: -4px; }

/* ---------- Nav ---------- */
.site-nav { position: sticky; top: 0; z-index: 1000; background: rgba(12,45,63,.98); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-height); gap: 12px; }
.logo, .footer-logo { font-size: 1.35rem; font-weight: 800; letter-spacing: -.5px; color: #fff; text-decoration: none; white-space: nowrap; }
.logo:hover { color: #fff; }
.logo span:first-child, .footer-logo span:first-child { color: #4cc3a2; }
.logo-sub { font-size: .75rem; font-weight: 500; color: rgba(255,255,255,.7); letter-spacing: .3px; }
.hamburger { display: none; background: none; border: 0; color: #fff; padding: 10px; cursor: pointer; border-radius: var(--radius-sm); }
.nav-links { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .84rem; font-weight: 500; padding: 8px 10px; border-radius: var(--radius-sm); }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 0 -2px 0 #4cc3a2; }
.nav-links .nav-cta { background: var(--accent-dark); color: #fff; margin-left: 6px; padding: 8px 16px; }
.nav-links .nav-cta:hover { background: var(--accent); }
@media (max-width: 1099px) {
  .hamburger { display: inline-flex; }
  .js .nav-links { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--primary); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; border-top: 1px solid rgba(255,255,255,.08); }
  .js .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: .95rem; }
  .nav-links .nav-cta { margin: 8px 0 0; text-align: center; }
  html:not(.js) .nav-inner { flex-wrap: wrap; padding-bottom: 8px; }
  html:not(.js) .hamburger { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 24px; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; font-size: .95rem; cursor: pointer; border: 2px solid transparent; font-family: inherit; transition: background-color .2s, border-color .2s; }
.btn-primary { background: var(--accent-dark); color: #fff; }
.btn-primary:hover { background: var(--primary); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-outline-dark { border-color: var(--border); color: var(--text); background: #fff; }
.btn-outline-dark:hover { border-color: var(--accent-dark); color: var(--accent-dark); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
@media (min-width: 768px) { section { padding: 72px 0; } }
.bg-alt { background: var(--bg-alt); }
.section-tag { font-size: .75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-dark); font-weight: 700; margin-bottom: 8px; }
.section-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.3px; margin-bottom: 20px; line-height: 1.25; }
.section-title-sm { font-size: 1.2rem; font-weight: 700; margin: 8px 0 8px; }
@media (min-width: 768px) { .section-title { font-size: 1.9rem; } }
.section-sub { color: var(--text-secondary); font-size: 1.05rem; max-width: 68ch; }
.help { color: var(--text-secondary); font-size: .9rem; margin-bottom: 16px; max-width: 75ch; }
.positioning { font-size: 1.15rem; line-height: 1.6; max-width: 70ch; margin-bottom: 28px; color: var(--primary); font-weight: 500; }
.grid-3, .grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.hero { background: linear-gradient(160deg, var(--primary) 0%, #0d3b4f 45%, var(--primary-light) 100%); color: #fff; padding: 72px 0 64px; }
.hero .section-tag { color: #7fd8bf; }
.hero h1 { font-size: 2rem; font-weight: 800; line-height: 1.15; letter-spacing: -.5px; max-width: 20ch; margin-bottom: 20px; }
.hero-sub { font-size: 1.1rem; max-width: 62ch; color: rgba(255,255,255,.9); margin-bottom: 28px; }
@media (min-width: 768px) { .hero { padding: 104px 0 88px; } .hero h1 { font-size: 3rem; } }

.page-head { background: var(--primary); color: #fff; padding: 48px 0 44px; }
.page-head .section-tag { color: #7fd8bf; }
.page-head h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.4px; line-height: 1.2; margin-bottom: 12px; }
.page-head .section-sub, .page-head .help { color: rgba(255,255,255,.88); }
.page-head .positioning { color: #fff; margin: 0; }
.page-head .ph { color: #ffd9a3; background: rgba(255,255,255,.06); border-color: #ffd9a3; }
.ip-note { margin-top: 12px; font-size: .9rem; color: rgba(255,255,255,.88); }
@media (min-width: 768px) { .page-head h1 { font-size: 2.4rem; } }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.card p { color: var(--text-secondary); font-size: .95rem; }
.card p + p { margin-top: 10px; }
.card-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; background: var(--accent-light); color: var(--accent-dark); margin-bottom: 14px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; color: var(--accent-dark); text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.router-tile { display: block; text-decoration: none; color: inherit; transition: box-shadow .2s, border-color .2s; }
.router-tile:hover { border-color: var(--accent); box-shadow: var(--shadow-md); color: inherit; }
.router-tile:hover .card-link { text-decoration: underline; }
.proof { margin-top: 12px !important; padding-top: 12px; border-top: 1px dashed var(--border); font-size: .88rem !important; }

/* ---------- Placeholders ---------- */
.ph { display: inline; color: var(--ph); background: var(--ph-bg); border: 1px dashed var(--ph); border-radius: 4px; padding: 0 4px; font-size: .92em; font-weight: 500; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.img-ph { display: flex; align-items: center; justify-content: center; text-align: center; aspect-ratio: 4 / 3; width: 100%; background: repeating-linear-gradient(45deg, var(--bg-alt), var(--bg-alt) 10px, #edf2f6 10px, #edf2f6 20px); border: 1px dashed var(--text-muted); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.img-ph .ph { background: #fff; }
.cert-block { border: 2px dashed var(--ph); background: var(--ph-bg); border-radius: var(--radius); padding: 28px; }

/* ---------- Diagram ---------- */
.glance { margin: 8px 0 12px; }
.diagram { width: 100%; height: auto; display: block; font-family: var(--font); }
.diagram-desktop { display: none; }
.diagram-mobile { max-width: 520px; margin: 0 auto; }
@media (min-width: 1024px) { .diagram-desktop { display: block; } .diagram-mobile { display: none; } }
.band { fill: var(--bg-alt); stroke: var(--border); }
.band-1 { fill: #eef4f8; }
.band-label { font-size: 13px; font-weight: 700; fill: var(--text-secondary); letter-spacing: .5px; text-transform: uppercase; }
.diagram-mobile .band-label { font-size: 12px; }
.ed-line { fill: none; stroke: #7b8b9a; stroke-width: 1.8; transition: opacity .2s, stroke .2s; }
.ed-hit { fill: none; stroke: transparent; stroke-width: 16; }
.arrow-head { fill: #7b8b9a; }
.nd-box { fill: #fff; stroke-width: 2; }
.nd-th .nd-box { fill: var(--th-bg); stroke: var(--th); }
.nd-us .nd-box { fill: var(--us-bg); stroke: var(--us); }
.nd-cn .nd-box { fill: var(--cn-bg); stroke: var(--cn); }
.nd-hub .nd-box { fill: var(--primary); stroke: var(--primary); }
.nd-label { font-size: 13.5px; font-weight: 600; fill: var(--text); }
.diagram-mobile .nd-label { font-size: 12.5px; }
.nd-hub .nd-label { fill: #fff; font-weight: 800; font-size: 15px; }
.nd-reg { font-size: 9.5px; font-weight: 700; letter-spacing: .5px; }
.nd-th .nd-reg { fill: var(--th); } .nd-us .nd-reg { fill: var(--us); } .nd-cn .nd-reg { fill: var(--cn); } .nd-hub .nd-reg { fill: #b9e6d9; }
.nd-flag { fill: var(--ph); font-weight: 800; }
.nd, .ed { transition: opacity .2s; }
.diagram-wrap .nd { cursor: pointer; }
.diagram-wrap .ed { cursor: pointer; }
.diagram-wrap .nd:focus { outline: none; }
.diagram-wrap .nd:focus-visible .nd-box { stroke: var(--focus); stroke-width: 4; }
.nd.is-sel .nd-box { stroke-width: 4; filter: drop-shadow(0 2px 6px rgba(12,45,63,.25)); }
.is-dim { opacity: .18; }
.ed.is-hl .ed-line { stroke: var(--accent-dark); stroke-width: 3.2; }
.arrow-head-hl { fill: var(--accent-dark); }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .88rem; color: var(--text-secondary); justify-content: center; }
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 20px; padding: 0 4px; border-radius: 4px; font-size: .68rem; font-weight: 800; border: 2px solid; letter-spacing: .5px; line-height: 1; }
.sw-th { color: var(--th); background: var(--th-bg); border-color: var(--th); }
.sw-us { color: var(--us); background: var(--us-bg); border-color: var(--us); }
.sw-cn { color: var(--cn); background: var(--cn-bg); border-color: var(--cn); }
.sw-flag { color: var(--ph); background: var(--ph-bg); border-color: var(--ph); border-style: dashed; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 16px; }
.filters-label { font-size: .88rem; font-weight: 600; color: var(--text-secondary); margin-right: 4px; }
.chip { font: inherit; font-size: .88rem; font-weight: 600; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--border); background: #fff; color: var(--text); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip[aria-pressed="true"]::before { content: "✓ "; }
html:not(.js) .filters { display: none; }

.diagram-wrap { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 40px; }
@media (min-width: 1024px) { .diagram-wrap { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.diagram-canvas { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; min-width: 0; }
.diagram-panel { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-height: 120px; }
@media (min-width: 1024px) { .diagram-panel { position: sticky; top: calc(var(--nav-height) + 16px); } }
html:not(.js) .diagram-panel { display: none; }
.panel-empty { color: var(--text-secondary); font-size: .92rem; }
.panel-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.panel-region { display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--text-secondary); margin-bottom: 10px; }
.panel-summary { margin-bottom: 12px; }
.panel-h { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); font-weight: 700; margin: 14px 0 6px; }
.panel-flows { list-style: none; display: grid; gap: 6px; }
.panel-flows button { width: 100%; text-align: left; font: inherit; font-size: .88rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; cursor: pointer; color: var(--text); }
.panel-flows button:hover, .panel-flows button[aria-pressed="true"] { border-color: var(--accent-dark); background: var(--accent-light); }
.panel-flows .who { font-weight: 600; }
.panel-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.panel-close { float: right; font: inherit; font-size: .85rem; background: none; border: 0; color: var(--accent-dark); cursor: pointer; text-decoration: underline; padding: 4px; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.data-table caption { text-align: left; font-weight: 600; color: var(--text-secondary); padding: 0 0 10px; font-size: .9rem; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.data-table thead th { background: var(--primary); color: #fff; font-size: .82rem; font-weight: 600; }
.data-table tbody th { font-weight: 600; color: var(--primary); }
.data-table .col-us { background: #f1faf7; }
.data-table thead .col-us { background: var(--accent-dark); }
.flow-table td:first-child { color: var(--text-muted); width: 3ch; }
.cmp { display: inline-flex; gap: 6px; align-items: flex-start; }
.cmp .icon { margin-top: 2px; }
.cmp-yes .icon { color: var(--accent-dark); }
.cmp-no .icon { color: #b3261e; }
.cmp-partial .icon { color: var(--text-muted); }
@media (max-width: 639px) {
  .cmp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; width: 100%; }
  .cmp-table { border: 0; background: none; }
  .cmp-table tr { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
  .cmp-table tbody th { background: var(--primary); color: #fff; }
  .cmp-table td { display: grid; grid-template-columns: 44% 1fr; gap: 10px; }
  .cmp-table td::before { content: attr(data-label); font-weight: 600; font-size: .82rem; color: var(--text-secondary); }
  .cmp-table caption { display: block; width: 100%; }
  .who-table, .who-table tbody, .who-table tr, .who-table th, .who-table td { display: block; width: 100%; }
  .who-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .who-table { border: 0; background: none; }
  .who-table tr { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
  .who-table th, .who-table td { border: 0; padding: 10px 14px 0; }
  .who-table td:last-child { padding-bottom: 14px; }
  .who-table td:empty { display: none; }
}

/* ---------- Page specifics ---------- */
.steps { padding-left: 1.3em; display: grid; gap: 8px; color: var(--text-secondary); font-size: .95rem; }
.steps li::marker { color: var(--accent-dark); font-weight: 700; }
.path-card { border-top: 4px solid var(--accent); }
.check-list { list-style: none; display: grid; gap: 8px; margin: 4px 0 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--accent-dark); margin-top: 3px; }
.check-list-lg li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; }
.tech-detail { display: grid; gap: 32px; }
.tech-detail h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--accent-dark); margin: 20px 0 6px; }
.tech-detail p { max-width: 68ch; }
.tech-detail .btn { margin-top: 20px; }
@media (min-width: 900px) { .tech-detail { grid-template-columns: 3fr 2fr; align-items: start; } }
.partner-head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.name-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 48px; padding: 4px 10px; border-radius: 8px; background: var(--primary); color: #fff; font-weight: 800; font-size: .8rem; text-align: center; line-height: 1.2; max-width: 110px; }
.partner-name { font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.partner-loc { display: flex; gap: 6px; align-items: center; font-size: .88rem !important; margin-top: 2px; }
.cap-h { font-size: .78rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-secondary); margin: 16px 0 6px; font-weight: 700; }
.cap-list { padding-left: 1.2em; color: var(--text-secondary); font-size: .93rem; }
.partner-url { margin-top: 14px !important; font-size: .9rem !important; }
.market-card .partner-name { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.cta-band { background: var(--primary); color: #fff; text-align: center; }
.cta-band h2 { font-size: 1.6rem; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.88); margin-bottom: 24px; }
.cta-band .btn-group { justify-content: center; }
.prose { max-width: 75ch; }
.prose h2 { font-size: 1.3rem; margin: 28px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 10px; }
.disclaimer { font-style: italic; border-left: 4px solid var(--accent); padding-left: 14px; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 2fr 1fr; align-items: start; } }
.contact-form { display: grid; gap: 16px; background: #fff; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 10px 12px; min-height: 44px; border: 1.5px solid #8a9aaa; border-radius: var(--radius-sm); background: #fff; color: var(--text); }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-err { color: #b3261e; font-size: .85rem; margin-top: 4px; }
.field-err:empty, .field-hint:empty { display: none; }
.field-hint { font-size: .85rem; color: var(--text-secondary); margin-top: 4px; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; }
.field-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent-dark); }
.field-check label { font-weight: 400; margin: 0; }
.field-check .field-err { grid-column: 2; }
.req { color: #b3261e; margin-left: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.form-status.ok { background: var(--accent-light); color: var(--accent-dark); border: 1px solid var(--accent); }
.form-status.err { background: #fdecea; color: #8c1d18; border: 1px solid #b3261e; }
.route-list { list-style: none; display: grid; gap: 12px; font-size: .9rem; color: var(--text-secondary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: rgba(255,255,255,.8); padding: 48px 0 32px; font-size: .9rem; }
.footer-inner { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand p { max-width: 42ch; margin-top: 6px; }
.footer-h { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 10px; }
.footer-links { list-style: none; display: grid; gap: 6px; }
.site-footer a { color: #8fe0c8; }
.site-footer a:hover { color: #fff; }
.site-footer .ph { color: #ffd9a3; background: transparent; border-color: #ffd9a3; }
.footer-copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: .8rem; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Photography ---------- */
.hero, .page-head { position: relative; overflow: hidden; isolation: isolate; }
.head-photo { position: absolute; inset: 0; z-index: -1; }
.head-photo .bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.head-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,45,63,.88) 0%, rgba(12,45,63,.8) 60%, rgba(12,45,63,.92) 100%); }
@media (min-width: 768px) {
  .head-photo::after { background: linear-gradient(90deg, rgba(12,45,63,.95) 0%, rgba(12,45,63,.86) 45%, rgba(12,45,63,.45) 100%); }
}
.hero { background: var(--primary); min-height: min(88vh, 720px); display: flex; align-items: center; }
.hero .container { width: 100%; }
.page-head.has-photo { padding: 56px 0 52px; }
@media (min-width: 768px) { .page-head.has-photo { padding: 80px 0 72px; } }

.hero-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: -8px 0 28px; }
.hero-chips li { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(4px); }
.hero-chips .icon { color: #7fd8bf; }

.crumbs { font-size: .82rem; color: rgba(255,255,255,.75); margin-bottom: 18px; }
.crumbs a { color: rgba(255,255,255,.9); }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { margin: 0 6px; }

/* Story strip */
.story-grid { list-style: none; display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: none; }
@media (min-width: 768px) { .story-grid { grid-template-columns: repeat(3, 1fr); } }
.story-card { position: relative; border-radius: 14px; overflow: hidden; background: var(--primary); color: #fff; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.story-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.story-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,45,63,0) 20%, rgba(12,45,63,.75) 55%, rgba(12,45,63,.96) 100%); }
.story-card:hover img { transform: scale(1.04); }
.story-body { padding: 24px; }
.story-step { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: 1.5px; color: #7fd8bf; border: 1px solid rgba(127,216,191,.6); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.story-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.story-body p { color: rgba(255,255,255,.9); font-size: .95rem; }
.photo-note { font-size: .8rem; color: var(--text-muted); margin-top: 12px; }

/* Photo cards */
.photo-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-photo { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.photo-card:hover .card-photo img { transform: scale(1.04); }
.photo-tag { position: absolute; right: 10px; top: 10px; font-size: .7rem; font-weight: 600; color: #fff; background: rgba(12,45,63,.75); padding: 2px 8px; border-radius: 4px; }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body .card-link { margin-top: auto; padding-top: 14px; }
.photo-card .card-icon { margin-top: -44px; position: relative; background: #fff; box-shadow: 0 4px 12px rgba(12,45,63,.15); }

.card { transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: 0 10px 30px rgba(12,45,63,.1); }
.router-tile:hover { transform: translateY(-2px); }

.tech-figure { margin: 0; }
.tech-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; box-shadow: 0 12px 32px rgba(12,45,63,.15); }
.tech-figure figcaption { font-size: .78rem; color: var(--text-muted); margin-top: 8px; }
@media (min-width: 900px) { .tech-figure { position: sticky; top: calc(var(--nav-height) + 24px); } }

.jump { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: var(--nav-height); z-index: 50; }
.jump .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.jump a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 14px 12px; font-size: .88rem; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 3px solid transparent; }
.jump a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }
.jump .icon { color: var(--accent-dark); }
.jump .ph { display: none; }

.cta-band { background: linear-gradient(135deg, var(--primary) 0%, #0d3b4f 55%, var(--accent-dark) 140%); }
.btn-on-dark { background: #2fa383; color: #04261c; }
.btn-on-dark:hover { background: #fff; color: var(--primary); }

.credits { padding-left: 1.2em; display: grid; gap: 4px; font-size: .92rem; color: var(--text-secondary); }
.site-nav { transition: box-shadow .2s; }
.site-nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.18); }
.jump ~ section[id] { scroll-margin-top: 56px; }
