:root {
  --gold: #f8b000;
  --ink: #1d1c19;
  --muted: #524f48;
  --paper: #fff;
  --soft: #f5f4f0;
  --cream: #fffdf7;
  --line: #d9d6cd;
  --radius: 1.25rem;
  --width: 77rem;
  font: 100%/1.55 "Bryant Pro Alternate", "Bryant Pro", "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .14em; }
[hidden] { display: none !important; }
:focus-visible { outline: .1875rem solid #164dc0; outline-offset: .2rem; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: #ffce53; }
::selection { color: var(--ink); background: #ffdb6b; }
html { scroll-padding-top: 1.35rem; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 750; line-height: 1.07; text-wrap: balance; }
h1 { font-size: clamp(3rem, 6.05vw, 5.8rem); letter-spacing: -.065em; }
h2 { font-size: clamp(2.25rem, 4.25vw, 4.15rem); letter-spacing: -.055em; }
h3 { font-size: clamp(1.25rem, 1.9vw, 1.7rem); letter-spacing: -.032em; }
p, dd { text-wrap: pretty; }
.shell { width: min(var(--width), calc(100% - 5rem)); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; z-index: 10; top: .5rem; left: .5rem;
  max-width: calc(100% - 1rem);
  padding: .7rem 1.1rem; border-radius: .5rem; color: var(--ink); background: var(--paper);
}

.site-header { background: var(--cream); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.header-inner { min-height: 5rem; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.brand img { width: 8.1rem; height: auto; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; column-gap: clamp(.9rem, 2.65vw, 2.5rem); }
.site-header nav a, .language { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .95rem; font-weight: 650; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.language { flex: 0 0 auto; gap: .42rem; border: 1px solid #8d887b; border-radius: 999px; padding-inline: .9rem; }
.language:hover { background: #f2efe6; border-color: var(--ink); text-decoration: none; }
.language:focus-visible { text-decoration: none; }
.language-flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 1.1rem; line-height: 1; }
.language-mobile { display: none; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.05rem; padding: .65rem 1.16rem;
  border: 1px solid transparent; border-radius: 999px; font-weight: 720; line-height: 1.22;
  color: var(--ink); text-align: center; text-decoration: none; cursor: pointer;
}
.button-small { min-height: 2.75rem; padding: .5rem .95rem; font-size: .94rem; }
.button-gold, :is(.filters, .variant-picker) .button[aria-pressed="true"] { background: var(--gold); border-color: transparent; }
.button-gold:hover, :is(.filters, .variant-picker) .button[aria-pressed="true"]:hover { background: #ffc93e; }
.button-outline { border-color: #8d887b; background: transparent; }
.button-outline:hover { background: #f0eee7; border-color: var(--ink); }
.button:hover { text-decoration: none; }
.text-link { font-weight: 720; text-decoration: underline; }
button.text-link {
  appearance: none; border: 0; padding: 0; background: none; color: inherit;
  cursor: pointer; text-align: left; min-height: 2.75rem; text-underline-offset: .22em;
}

.hero { padding-block: clamp(2.7rem, 5.1vw, 5.15rem); }
.hero-grid {
  display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; gap: clamp(2.2rem, 5.25vw, 5.4rem);
}
.hero h1 span { display: block; }
.hero h1 { text-wrap: initial; }
.hero-lead { margin-top: 1.4rem; font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.3; font-weight: 720; max-width: 30rem; }
.hero-text { margin-top: .9rem; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.12rem); max-width: 32rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.55rem; }
.hero-media {
  display: grid; grid-template-rows: minmax(0, 1fr) auto; min-width: 0; min-height: 0;
  padding: .55rem .55rem .1rem; border-radius: 1.5rem; background: var(--gold);
}
.hero-media img {
  width: 100%; height: auto; aspect-ratio: 1.04; object-fit: cover; object-position: 50% 46%;
  border-radius: 1.04rem;
}
.hero-media figcaption { padding: .65rem .55rem .58rem; color: var(--ink); font-size: .94rem; font-weight: 720; }
.route-band { background: #fff1ca; border-block: 1px solid #eddaa1; }
.route-grid { display: grid; grid-template-columns: 1fr 1fr; }
.route { padding-block: clamp(1.45rem, 3vw, 2.3rem); }
.route + .route { border-left: 1px solid #c5a963; padding-left: clamp(1.7rem, 4vw, 4rem); }
.route:first-child { padding-right: clamp(1.4rem, 4vw, 4rem); }
.route h2 { font-size: clamp(1.5rem, 2.25vw, 2rem); letter-spacing: -.04em; }
.route p { margin-top: .45rem; color: #443a23; max-width: 28rem; }
.route a { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .3rem; }

.section-light { background: var(--soft); }
.catalog, .stations, .responsible, .impact, .about, .contact { padding-block: clamp(3.5rem, 7.15vw, 7rem); }
.section-intro {
  display: grid; grid-template-columns: 1.18fr .82fr; align-items: end;
  gap: clamp(1rem, 4vw, 4.5rem); margin-bottom: 1.8rem;
}
.section-intro p { color: var(--muted); max-width: 33rem; }
.eyebrow {
  margin-bottom: .85rem; color: var(--muted); font-size: .88rem;
  font-weight: 750; letter-spacing: .09em; text-transform: uppercase;
}
.filters, .variant-picker { display: flex; flex-wrap: wrap; gap: .65rem; }
.filters .button, .variant-picker .button { gap: .4em; }
:is(.filters, .variant-picker) .button[aria-pressed="true"] { border-color: var(--ink); }
.selection-mark { visibility: hidden; }
[aria-pressed="true"] .selection-mark { visibility: visible; }
.filters { margin-bottom: 1.45rem; }
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.app-card {
  display: flex; flex-direction: column; min-width: 0; background: var(--paper);
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
}
.app-art {
  position: relative; isolation: isolate; display: flex; justify-content: center; align-items: start;
  gap: .65rem; height: clamp(10.3rem, 14.8vw, 13.2rem); overflow: hidden; padding-top: 1.4rem;
}
.app-art::before {
  content: ""; z-index: -1; position: absolute; width: 64%; aspect-ratio: 1; left: 18%; top: 18%;
  border: 1px solid #fff9; border-radius: 2rem; transform: rotate(-20deg);
}
.app-art img {
  width: clamp(5rem, 8.3vw, 7.2rem); height: auto; border-radius: .65rem;
  box-shadow: 0 .4rem 1rem #201b2036; transform: rotate(-9deg);
}
.app-art img + img { transform: translateY(.85rem) rotate(7deg); }
.art-vision { background: #deddd7; }
.art-visionai { background: #cbe9f1; }
.art-edusight { background: #d8e6ff; }
.art-object { background: #e5e8df; }
.art-speakliz { background: #ffdf87; }
.art-audio { background: #e7dcf8; }
.art-emergency { background: #f9d9d3; }
.app-copy { flex: 1; display: flex; flex-direction: column; gap: .58rem; padding: 1.25rem; }
.app-type { font-size: .875rem; font-weight: 660; color: var(--muted); }
.app-copy > p:not(.app-type) { color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 1rem; margin-top: auto; padding-top: .3rem; }
.card-actions a { display: inline-flex; min-height: 2.75rem; align-items: center; font-weight: 660; }
.emergency-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(14rem, 1fr) 2fr; }
.emergency-card .app-art { height: 100%; min-height: 12rem; }
.emergency-card .app-copy { padding: 1.45rem 1.65rem; }
.emergency-card .app-art img + img { width: clamp(4.25rem, 7vw, 6rem); margin-top: 1rem; }

.section-dark { background: #20201d; color: #fffdf7; }
.section-dark .eyebrow { color: #ffd05c; }
.station-lead, .station-detail, .ai-grid, .about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 5.4vw, 5.4rem);
}
.station-lead { align-items: center; margin-bottom: clamp(2.4rem, 4.6vw, 4.65rem); }
.section-summary { color: #e8e5d9; margin-block: 1.15rem 1.45rem; max-width: 33rem; }
.station-carousel img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain;
  background: #171714; border-radius: var(--radius);
}
.station-carousel figcaption { margin-top: .65rem; min-height: 3.1em; color: #dfdcd1; }
.station-photo-link { display: block; position: relative; border-radius: var(--radius); cursor: zoom-in; }
.station-photo-link span {
  position: absolute; inset-inline-end: .7rem; inset-block-end: .7rem;
  border-radius: 2rem; padding: .35rem .7rem; background: #171714; color: #fff;
  font-size: .85rem;
}
.station-photo-link:hover span, .station-photo-link:focus-visible span { text-decoration: underline; }
.station-photo-controls {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  flex-wrap: wrap; margin-top: .55rem; color: #dfdcd1;
}
.station-photo-controls .button { color: inherit; }
.station-photo-controls .button:hover { background: #35342e; border-color: #dfdcd1; }
.sector-grid, .evidence-grid, .contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.sector-grid article { border: 1px solid #666357; border-radius: 1rem; padding: 1.25rem; }
.sector-grid h3 { color: #ffd05c; }
.sector-grid p, .station-detail details p { color: #e6e3d9; margin-top: .7rem; }
.station-detail { margin-top: clamp(2.5rem, 5vw, 4.6rem); }
.station-detail h3 { margin-bottom: 1rem; }
.station-detail details, .process li { border-top: 1px solid #6e6a5d; }
.station-detail details:last-child, .process li:last-child { border-bottom: 1px solid #6e6a5d; }
.station-detail summary { cursor: pointer; font-weight: 680; min-height: 2.75rem; padding: .66rem .15rem; }
.station-detail details p { margin: .12rem 0 .95rem; padding-left: 1.1rem; }
.process { list-style-position: inside; padding: 0; margin: 0; }
.process li { padding: .64rem .15rem; }
.process li::marker { color: #ffce53; font-weight: 720; }

.responsible { background: #fff1ca; }
.ai-grid { grid-template-columns: .92fr 1.08fr; }
.ai-grid > div:first-child p, .about-lead { color: var(--muted); margin-top: 1rem; max-width: 32rem; }
.principles article { padding: .85rem 0 1.05rem; border-top: 1px solid #bdac80; }
.principles article:first-child { padding-top: 0; border-top: 0; }
.principles article:last-child { padding-bottom: 0; }
.principles h3 { font-size: 1.24rem; }
.principles p, .evidence-grid p, .contact-grid p { margin-top: .55rem; color: var(--muted); }

.impact { background: var(--paper); }
.evidence-grid article, .contact-grid article {
  display: flex; flex-direction: column; align-items: start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem;
}
.evidence-grid a, .contact-grid a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-block: .4rem; }
.evidence-grid p, .contact-grid p { margin-bottom: .4rem; }
.evidence-grid a, .contact-grid a { margin-top: auto; }
.timeline-title { margin-block: 2.7rem 1rem; }
.timeline {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.7rem;
  list-style: none; margin: 0; padding: 0;
}
.timeline li {
  display: grid; grid-template-columns: 4.1rem 1fr; align-items: start; gap: .75rem;
  border-top: 1px solid var(--line); padding: .82rem 0;
}
.timeline time { font-weight: 750; }

.about-grid { grid-template-columns: .95fr 1.05fr; }
.values > div { border-top: 1px solid #b8b4ab; padding: .76rem 0 1.05rem; }
.values dt { font-weight: 750; font-size: 1.22rem; }
.values dd { margin-top: .42rem; color: var(--muted); }
.contact { background: var(--gold); }
.contact .section-intro p, .contact-grid p { color: #3b2c12; }
.contact-grid article { border-color: #7e5a16; }
.contact-grid a { font-weight: 750; }
.contact .section-intro a { display: inline-block; font-weight: 680; overflow-wrap: anywhere; }
.accessibility-contact { margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid #7e5a16; }
.accessibility-contact p { margin-top: .45rem; color: #3b2c12; }
.accessibility-contact a { display: inline-block; min-height: 2.75rem; padding-block: .45rem; overflow-wrap: anywhere; }

.site-footer { background: #20201d; color: #fffdf7; padding-block: 1.5rem; }
.site-footer p { font-size: .94rem; }
.footer-social { display: flex; align-items: center; gap: .45rem; }
.footer-social a {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border: 1px solid #666357; border-radius: 50%; color: inherit;
}
.footer-social a:hover { color: #ffce53; border-color: currentColor; }
.footer-social svg { width: 1.35rem; height: 1.35rem; }
.site-footer .brand img { width: 7.35rem; }

dialog {
  max-width: min(43rem, calc(100% - 1.5rem)); width: 100%; max-height: calc(100% - 1.5rem);
  padding: 0; border: 1px solid #a9a398; border-radius: var(--radius);
  color: var(--ink); background: var(--paper); overscroll-behavior: contain;
}
dialog::backdrop { background: #141312c7; }
body:has(dialog[open]) { overflow: hidden; }
#station-photo-dialog {
  width: min(94vw, 88rem); max-width: none; max-height: 94dvh;
  padding: clamp(.65rem, 2vw, 1.25rem);
  background: #20201c; color: #fff;
}
#station-photo-dialog .button { color: inherit; }
#station-photo-dialog .button:hover { background: #35342e; border-color: #dfdcd1; }
#station-photo-dialog :focus-visible { outline-color: #ffce53; }
#station-photo-dialog-controls { margin-block: .65rem; }
#station-photo-dialog-controls .button { gap: .4em; }
#station-photo-enlarged {
  display: block; width: 100%; height: clamp(8rem, calc(94dvh - 10rem), 70dvh);
  margin-inline: auto; border-radius: .65rem; object-fit: contain;
}
.station-photo-dialog-caption { margin-top: .65rem; text-align: center; }
.dialog-main { padding: clamp(1.05rem, 4vw, 2.1rem); }
.dialog-close { display: flex; justify-content: flex-end; margin-bottom: .4rem; }
.dialog-main h2 { font-size: clamp(1.95rem, 6vw, 3.3rem); margin-bottom: .75rem; }
.dialog-main h3 { margin-top: 1.7rem; }
.dialog-main .eyebrow { margin-bottom: .45rem; }
.dialog-tagline { margin-bottom: .4rem; font-size: 1.16rem; font-weight: 720; }
.dialog-main ul { padding-inline-start: 1.3rem; }
.dialog-main li + li { margin-top: .35rem; }
.variant-picker { margin-bottom: .95rem; }
.app-facts > div { display: grid; grid-template-columns: minmax(6.6rem, .3fr) 1fr; gap: .5rem; border-top: 1px solid var(--line); padding: .55rem 0; }
.app-facts dt { font-weight: 720; }
.app-facts dd { min-width: 0; }
.gallery {
  margin-top: .65rem; border-radius: 1rem; background: var(--soft); padding: clamp(.75rem, 3vw, 1.3rem);
  text-align: center;
}
.gallery-media:not(.watch-mockup) {
  display: flex; align-items: center; justify-content: center; height: min(54dvh, 27rem);
}
.gallery-media:not(.watch-mockup) img { max-height: 100%; border-radius: .85rem; }
.watch-mockup {
  position: relative; width: min(100%, 45dvh, 23.5rem); aspect-ratio: 676 / 1048;
  margin-inline: auto; background: url("assets/apple-watch-series-12-black.webp") center / contain no-repeat;
}
.watch-mockup img {
  position: absolute; top: 22.33%; left: 11.54%; width: 72.49%; height: 57.25%;
  border-radius: 22% / 18%; object-fit: contain;
}
.gallery-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem; margin-top: .7rem; }
#gallery-caption { margin-top: .75rem; }
#gallery-index, #gallery-note { font-size: .94rem; color: var(--muted); }
#gallery-note { margin-top: .45rem; }

@media (max-width: 65rem) {
  .shell { width: calc(100% - 3.5rem); }
  .site-header nav { column-gap: 1rem; }
  .hero-grid { gap: 2rem; }
}
@media (max-width: 53rem) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-inner { flex-wrap: wrap; padding-block: .65rem .25rem; gap: .3rem .75rem; }
  .site-header nav { width: 100%; justify-content: space-between; }
  .sector-grid, .contact-grid { gap: .8rem; }
  .sector-grid article, .contact-grid article, .evidence-grid article { padding: .95rem; }
}
@media (max-width: 43rem) {
  .shell { width: calc(100% - 2rem); }
  .header-inner {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: .5rem .75rem; padding-block: .75rem .5rem;
  }
  .header-inner > .brand { justify-self: start; min-width: 0; }
  .language-mobile { display: inline-flex; justify-content: center; }
  .language-desktop { display: none; }
  .site-header nav {
    display: grid; grid-column: 1 / -1; grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .125rem .25rem; border-top: 1px solid var(--line); padding-top: .25rem;
  }
  .site-header nav a {
    grid-column: span 2; justify-content: center; min-width: 0; padding: .2rem .25rem;
    text-align: center; line-height: 1.2; overflow-wrap: anywhere;
  }
  .site-header nav a:nth-child(-n + 2) { grid-column: span 3; }
  .hero-grid, .section-intro, .station-lead, .station-detail, .ai-grid, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 2.5rem; }
  .hero-grid { gap: 1.65rem; }
  .hero-media img { aspect-ratio: 1.38; }
  .hero-lead { margin-top: .9rem; }
  .hero-text { margin-top: .65rem; }
  .sector-grid, .evidence-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .sector-grid article, .contact-grid article, .evidence-grid article { padding: 1.2rem; }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 31rem) {
  h1 { font-size: clamp(2.6rem, 10.7vw, 3.9rem); }
  .route-grid, .app-grid, .emergency-card { grid-template-columns: minmax(0, 1fr); }
  .route + .route { border-left: 0; border-top: 1px solid #c5a963; padding-left: 0; }
  .route:first-child { padding-right: 0; }
  .app-art, .emergency-card .app-art { height: 10.5rem; min-height: 0; }
  .app-art img { width: 6.2rem; }
  .emergency-card .app-copy { padding: 1.25rem; }
  .app-facts > div { grid-template-columns: 1fr; gap: 0; }
  h1, h2, h3, p, dd, .button { overflow-wrap: anywhere; }
}

@media (orientation: landscape) and (min-width: 30rem) and (max-width: 62rem) and (max-height: 32rem) {
  #station-photo-dialog[open] {
    display: grid;
    grid-template: "photo close" auto "photo caption" minmax(min-content, 1fr) "photo controls" auto
      / minmax(0, 1fr) clamp(13.25rem, 34vw, 21rem);
    width: calc(100% - 1rem); height: calc(100dvh - 1rem); max-height: none;
    gap: .5rem .9rem; padding: .65rem;
  }
  #station-photo-dialog .dialog-close { grid-area: close; margin: 0; }
  .station-photo-dialog-media { grid-area: photo; position: relative; min-height: 0; }
  #station-photo-enlarged { position: absolute; inset: 0; height: 100%; }
  .station-photo-dialog-caption {
    grid-area: caption; align-self: center; margin: 0; overflow-wrap: anywhere;
  }
  #station-photo-dialog-controls {
    grid-area: controls; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem; margin: 0;
  }
  #station-photo-dialog-controls .button { padding-inline: .4rem; }
  #station-photo-dialog-index { grid-column: 1 / -1; grid-row: 1; text-align: center; }

  #app-dialog {
    width: calc(100% - 1rem); max-width: none; max-height: calc(100dvh - 1rem);
  }
  #app-dialog .dialog-main { padding: .65rem; }
  .app-screenshots {
    --shot-height: max(9rem, calc(100dvh - 3.5rem));
    display: grid;
    grid-template: "media title" auto "media note" auto "media details" 1fr
      / minmax(0, 1fr) minmax(11rem, 30%);
    align-items: start; column-gap: .75rem;
    margin-top: 1rem; padding: .55rem;
    border-radius: 1rem; background: var(--soft);
  }
  .app-screenshots .gallery { display: contents; }
  #gallery-title { grid-area: title; margin: 0; }
  #gallery-note { grid-area: note; margin-top: .3rem; }
  .gallery-media { grid-area: media; align-self: center; min-width: 0; }
  .gallery-media:not(.watch-mockup) { height: var(--shot-height); }
  .gallery-media.watch-mockup { width: min(100%, calc(var(--shot-height) * 676 / 1048)); }
  .gallery-details { grid-area: details; align-self: center; text-align: center; overflow-wrap: anywhere; }
  #gallery-caption { margin-top: .35rem; }
  .gallery-controls { gap: .35rem; }
  .gallery-controls .button { padding-inline: .65rem; }
}

@media (forced-colors: active) {
  :focus-visible, .section-dark :focus-visible, .site-footer :focus-visible,
  #station-photo-dialog :focus-visible { outline-color: Highlight; }
  :is(.filters, .variant-picker) .button[aria-pressed="true"] { border-color: ButtonText; }
}
