@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/geist-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #100f11;
  --surface: #1b191a;
  --surface-raised: #292526;
  --text: #f2eee5;
  --muted: #b6b9b1;
  --accent: #edbb8e;
  --accent-ink: #1a211f;
  --secondary: #cdb7a5;
  --line: #443a36;
  --header: #100f11f0;
  --sans: 'Geist', 'Segoe UI', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Consolas, monospace;
  --section-scroll-offset: 110px;
  --footer-min-height: 100px;
}

:root[data-theme='neblina'] {
  color-scheme: dark;
  --bg: #0b1419;
  --surface: #112129;
  --surface-raised: #1c303b;
  --text: #edf4f5;
  --muted: #b0c1c9;
  --accent: #9bd5e2;
  --accent-ink: #0b1419;
  --secondary: #bcc9da;
  --line: #344954;
  --header: #0b1419f0;
}

:root[data-theme='iris'] {
  color-scheme: dark;
  --bg: #100e1b;
  --surface: #1c182d;
  --surface-raised: #2a243a;
  --text: #f2efff;
  --muted: #b7b8ce;
  --accent: #b29aff;
  --accent-ink: #171627;
  --secondary: #88d8c9;
  --line: #3d415c;
  --header: #100e1bf0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--section-scroll-offset); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 400; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { cursor: pointer; }
button, a, input { outline-offset: 6px; }
:focus-visible { outline: 2px solid var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button, fieldset { margin: 0; }
fieldset { padding: 0; border: 0; min-width: 0; }
svg { display: block; }
button svg { stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; line-height: 1.12; letter-spacing: -.045em; }
em { font-style: normal; font-weight: 600; color: var(--accent); }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.shell { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: 98px; }
.eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .17em; font-weight: 600; line-height: 1.5; }
.genesis__role { margin-top: .5rem; font-size: clamp(.875rem, 1.15vw, 1.0625rem); line-height: 1.4; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 18px; padding: 0 0 5px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 12px; font-weight: 500; }
.text-link > span:last-child { font-size: 18px; line-height: 1; transition: transform .18s; }
.text-link:hover > span:last-child { transform: translate(2px, -2px); }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 49px; padding: 13px 20px; border-radius: 3px; font-size: 12px; font-weight: 600; transition: transform .2s, filter .2s; }
.button--accent { background: var(--accent); color: var(--accent-ink); }
.button:hover { filter: brightness(1.1); transform: translateY(-2px); }
.button > span:last-child { font-size: 20px; line-height: 1; }
.icon-button { border: 0; border-radius: 4px; background: transparent; width: 40px; height: 40px; display: inline-grid; place-items: center; }
.icon-button:hover { background: var(--surface-raised); color: var(--accent); }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 18px; transform: translateY(-150%); background: var(--accent); color: var(--accent-ink); }
.skip-link:focus { transform: none; }

.header { position: sticky; top: 0; z-index: 20; background: var(--header); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header__inner { min-height: 92px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 15px; margin-right: auto; }
.brand__mark { display: block; flex: none; width: 82px; height: 40px; background: var(--accent); -webkit-mask: url('/assets/cae-mark.png') center / contain no-repeat; mask: url('/assets/cae-mark.png') center / contain no-repeat; transition: background-color .2s; }
.brand__name { font-size: 9px; font-weight: 500; line-height: 1.6; letter-spacing: .16em; }
.nav { display: flex; gap: 27px; font-size: 12px; color: var(--muted); }
.nav a { padding-block: 6px; position: relative; }
.nav a::after { content: ''; position: absolute; bottom: 1px; left: 0; right: 100%; height: 1px; background: var(--accent); transition: right .2s; }
.nav a:hover, .nav a[aria-current='location'] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current='location']::after { right: 0; }
.header__actions { display: flex; align-items: center; gap: 18px; margin-left: 15px; }
.language { display: flex; align-items: center; gap: 3px; font-size: 9px; color: var(--muted); }
.language button { padding: 10px 5px; min-height: 40px; border: 0; background: transparent; color: var(--muted); font-size: 10px; }
.language button[aria-pressed='true'] { color: var(--accent); font-weight: 700; }
.appearance { position: relative; }
.appearance__panel { position: absolute; right: 0; top: calc(100% + 13px); padding: 21px; width: 265px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: 0 16px 50px #0003; }
.appearance__panel legend { font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.theme-option { display: flex; align-items: center; gap: 11px; padding-block: 12px; cursor: pointer; }
.theme-option + .theme-option { border-top: 1px solid var(--line); }
.theme-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.theme-option strong { display: block; font-size: 12px; font-weight: 500; }
.theme-option small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.theme-swatch { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; border: 1px solid #8886; }
.swatch-cobre { background: linear-gradient(135deg, #100f11 50%, #edbb8e 50%); }
.swatch-neblina { background: linear-gradient(135deg, #0b1419 50%, #9bd5e2 50%); }
.swatch-iris { background: linear-gradient(135deg, #100e1b 50%, #b29aff 50%); }
.menu-toggle { display: none; }

h1 { margin-top: 26px; font-size: clamp(68px, 7.2vw, 104px); line-height: .96; font-weight: 500; letter-spacing: -.04em; }
h1 em { display: inline-block; margin-top: 4px; font-size: 1.05em; letter-spacing: inherit; }
h1 em > span { color: var(--secondary); }
.coin { width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--accent); perspective: 1200px; touch-action: pan-y; user-select: none; }
.coin:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }
.coin__turn { display: block; width: 100%; height: 100%; position: relative; transform-style: preserve-3d; }
.coin__face { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: inset 0 0 0 7px var(--surface), inset 0 0 0 8px var(--line); }
.coin__face::after { content: ''; position: absolute; inset: 17px; border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.coin__front { background: radial-gradient(circle at 35% 25%, var(--surface-raised), var(--surface) 70%); }
.coin__back { transform: rotateY(180deg); align-content: center; gap: 15px; }
.coin__engraving { width: 100%; height: 100%; stroke: none; }
.coin__rim, .coin__field { fill: none; stroke: var(--accent); stroke-width: 1; }
.coin__rim--outer { opacity: .45; }
.coin__rim--ticks { opacity: .7; stroke-width: 3; stroke-dasharray: 1 11; stroke-linecap: round; }
.coin__rim--inner { opacity: .4; }
.coin__field { opacity: .2; }
.coin__lettering { fill: var(--secondary); font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .19em; stroke: none; }
.coin__diamond { fill: var(--secondary); stroke: none; }
.coin__emblem { position: absolute; width: 56%; height: 32%; filter: drop-shadow(0 2px 0 var(--bg)); }
.coin__emblem-mark { display: block; width: 100%; height: 100%; background: var(--accent); -webkit-mask: url('/assets/cae-mark.png') center / contain no-repeat; mask: url('/assets/cae-mark.png') center / contain no-repeat; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
h2 { font-size: clamp(32px, 3.25vw, 45px); font-weight: 500; line-height: 1.16; }
.projects { padding-block: 110px 150px; min-height: 360px; }
.projects__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-top: .8rem; }
.projects__view-switch { display: flex; }
.projects__view-switch[hidden], .project-wheel[hidden], .project-card[hidden] { display: none; }
.project-wheel__hint { color: var(--muted); font-size: 14px; }
.projects__view-controls { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: var(--surface); }
.projects__view-controls button { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding-inline: .75rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 500 .8125rem/1.25 var(--sans); }
.projects__view-controls button[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); }
.projects__view-controls svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.project-wheel { display: grid; justify-items: center; gap: 18px; margin-top: 34px; }
.project-wheel__rim { position: relative; width: min(100%, 390px); aspect-ratio: 1; border: 5px double var(--accent); border-radius: 50%; padding: 7px; background: var(--surface); }
.project-wheel__face { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.project-wheel__segment { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: var(--surface-raised); overflow: hidden; }
.project-wheel__segment:nth-child(1) { clip-path: polygon(50% 50%, 0 21.13%, 0 0, 100% 0, 100% 21.13%); }
.project-wheel__segment:nth-child(2) { clip-path: polygon(50% 50%, 100% 21.13%, 100% 100%, 50% 100%); }
.project-wheel__segment:nth-child(3) { clip-path: polygon(50% 50%, 50% 100%, 0 100%, 0 21.13%); }
.project-wheel__segment img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.project-wheel__segment span { position: absolute; padding: 8px 6px; border: 2px solid transparent; border-radius: 3px; color: #fff; background: #100f11ed; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: center; }
.project-wheel__segment:nth-child(1) span { top: 18%; left: 50%; transform: translate(-50%, -50%); }
.project-wheel__segment:nth-child(2) span { top: 69%; left: 74%; transform: translate(-50%, -50%); }
.project-wheel__segment:nth-child(3) span { top: 69%; left: 26%; transform: translate(-50%, -50%); }
.project-wheel__segment[aria-pressed='true'] img, .project-wheel__segment:hover img { opacity: 1; }
.project-wheel__segment[aria-pressed='true'] span { border-color: var(--accent); }
.project-wheel__segment:focus-visible { outline: none; z-index: 1; }
.project-wheel__segment:focus-visible span { outline: 3px solid #fff; outline-offset: 2px; }
.project-wheel__center { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 50px; height: 50px; transform: translate(-50%, -50%); border: 1px solid var(--accent); border-radius: 50%; background: var(--bg); color: var(--accent); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .project-wheel__face.is-turning { animation: project-wheel-turn .65s ease-in-out; } .project-card.is-entering { animation: project-card-enter .4s ease-out; } @keyframes project-wheel-turn { to { transform: rotate(360deg); } } @keyframes project-card-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } } }
.projects__grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 32px; }
.project-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.project-card__visual { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-raised); }
.project-card__visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.project-card__content { display: flex; flex: 1; flex-direction: column; padding: clamp(22px, 3vw, 36px); }
.project-card__type { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.project-card h3 { font-family: var(--sans); font-size: clamp(28px, 3vw, 38px); margin-top: 14px; }
.project-card__content > p:not(.project-card__type) { color: var(--muted); font-size: 16px; line-height: 1.7; margin-top: 14px; }
.project-card__links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
.project-card__links a { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid var(--line); font-weight: 600; }
.project-card__links a:hover { color: var(--accent); border-color: var(--accent); }
.project-card__details { margin-top: 12px; border-top: 1px solid var(--line); }
.project-card__details summary { min-height: 44px; display: flex; gap: 12px; align-items: center; justify-content: space-between; cursor: pointer; touch-action: manipulation; list-style: none; font-weight: 600; outline-offset: 3px; }
.project-card__details summary::-webkit-details-marker { display: none; }
.project-card__details summary::after { content: ''; width: 8px; height: 8px; flex: none; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.project-card__details[open] summary::after { transform: rotate(225deg); }
.project-card__details summary:hover, .project-card__details[open] summary { color: var(--accent); }
.project-card__details > p { padding-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.project-card__details .project-card__links { margin-top: 8px; }
.project-card__tech { padding-top: 16px; }
.project-card__tech-label { font-family: var(--mono); border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-size: 12px; letter-spacing: .08em; font-weight: 600; text-transform: uppercase; }
.project-card__tech-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 4.25rem), 1fr));
  gap: .625rem .4375rem;
  margin-top: .75rem;
  font: 500 .6875rem/1.4 var(--mono);
}
.project-card__tech-list li {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: .375rem;
  text-align: center;
  overflow-wrap: anywhere;
}
.project-card__tech-list img, .project-card__tech-mark {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--line);
  border-radius: .375rem;
  background: var(--surface-raised);
}
.project-card__tech-list img { padding: .1875rem; object-fit: contain; }
.project-card__tech-mark { display: grid; place-items: center; color: var(--accent); font-size: .625rem; font-weight: 600; }
@media (min-width: 701px) { .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 48px; } }
@media (min-width: 1100px) { .projects__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.projects[data-view='wheel'] .projects__grid { grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 851px) { .projects[data-view='wheel'] .projects__layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: 48px; } .projects[data-view='wheel'] .projects__grid, .projects[data-view='wheel'] .project-wheel { margin-top: 42px; } }

.journey { background: transparent; padding-block: 100px 110px; }
.journey__intro h2 { margin-top: 21px; }
.journey__intro > p:not(.eyebrow) { max-width: 530px; margin-top: 24px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin-top: 58px; }
.timeline > li { position: relative; border-top: 1px solid var(--line); padding-top: 26px; min-width: 0; }
.timeline > li::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border: 1px solid var(--secondary); background: var(--surface); border-radius: 50%; transition: box-shadow .2s, background .2s; }
.timeline > li:has(details[open])::before, .timeline > .timeline__now::before { background: var(--accent); box-shadow: 0 0 15px var(--accent); }
.timeline summary { cursor: pointer; list-style: none; }
.timeline summary::-webkit-details-marker { display: none; }
.timeline summary::after { content: '+'; display: inline-block; color: var(--secondary); margin-top: 8px; }
.timeline details[open] summary::after { content: '−'; }
.timeline summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.timeline__date { font-family: var(--mono); display: block; font-size: 9px; letter-spacing: .1em; color: var(--secondary); }
.timeline__title { display: block; font-size: 19px; line-height: 1.35; margin-top: 10px; font-weight: 500; }
.timeline details p { font-size: 13px; color: var(--muted); line-height: 1.85; margin-top: 12px; }
.timeline details[open] p { animation: reveal-detail .2s ease-out; }
@keyframes reveal-detail { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }


.contact__arrow { display: grid; place-items: center; width: 78px; height: 78px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 39px; font-family: Arial, sans-serif; transition: background .2s, color .2s; }
.contact__arrow:hover { background: var(--accent); color: var(--accent-ink); }
.contact__email { display: flex; align-items: center; gap: 9px; position: relative; min-width: 0; }
.contact__email > a { font-size: 15px; overflow-wrap: anywhere; }
.contact__email > a:hover { color: var(--accent); }
.copy-feedback { position: absolute; left: 0; top: calc(100% + 1px); font-size: 10px; color: var(--secondary); }
.footer { display: flex; align-items: center; gap: 28px; min-height: var(--footer-min-height); color: var(--muted); font-size: 10px; }
.footer__brand { display: inline-flex; align-items: center; }
.footer__brand .brand__mark { width: 70px; height: 34px; }
.footer > a:last-child { margin-left: auto; }
.footer > a:last-child:hover { color: var(--accent); }

@media (max-width: 1100px) {
  .shell { width: calc(100% - 64px); }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { gap: 21px; }
}
@media (max-width: 850px) {
  .header__inner { min-height: 80px; gap: 20px; }
  .brand__name { font-size: 8px; }
  .header__actions { margin-left: 0; gap: 8px; }
  .nav { gap: 18px; font-size: 11px; }
  h1 { font-size: 73px; }
  .section { padding-block: 75px; }
}
@media (max-width: 700px) {
  html { --section-scroll-offset: 76px; }
  .shell { width: calc(100% - 40px); }
  .header__inner { min-height: 64px; gap: .5rem; }
  .header .brand { min-height: 44px; }
  .header .brand__mark { width: clamp(58px, 17vw, 76px); }
  .header .icon-button, .header .language button { width: 44px; height: 44px; }
  .header .language { gap: 0; }
  .header .language button { font: 500 .75rem var(--mono); padding: 0; }
  .header .language button[aria-pressed='true'] { font-weight: 650; }
  .brand__name { display: none; }
  .menu-toggle { display: inline-grid; }
  .nav { display: none; position: absolute; inset: 100% 0 auto; padding: .5rem max(1.25rem, env(safe-area-inset-left)) 1rem; max-height: calc(100dvh - 65px); overflow-y: auto; background: var(--bg); border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav.is-open { display: grid; gap: 0; }
  .nav a { display: flex; align-items: center; min-height: 48px; }
  .nav a + a { border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav a[aria-current='location'] { color: var(--accent); }
  .header__actions { gap: .375rem; }
  .appearance__panel { right: -46px; width: min(265px, calc(100vw - 32px)); }
  h1 { font-size: clamp(76px, 16vw, 110px); margin-top: 27px; }
  .section { padding-block: 54px; }
  h2 { font-size: clamp(33px, 7.2vw, 43px); }
  .journey__intro > p:not(.eyebrow) { max-width: 530px; margin-top: 19px; }
  .journey__intro .text-link { margin-top: 19px; }
  .timeline > li { padding-bottom: 28px; }
  .timeline p { font-size: 13px; }
  .contact__arrow { width: 53px; height: 53px; font-size: 29px; flex-shrink: 0; }
  .contact__email > a { font-size: 14px; }
  .footer { min-height: 97px; gap: 19px; font-size: 9px; }
  .footer__brand .brand__mark { width: 62px; height: 30px; }
}
@media (max-width: 370px) {
  .shell { width: calc(100% - 32px); }
  .header__actions { gap: 6px; }
  h1 { font-size: clamp(63px, 20vw, 70px); }
  .button { font-size: 11px; padding-inline: 16px; gap: 20px; }
  .footer > a:last-child { font-size: 8px; }
}
@media (max-width: 700px) and (scripting: none) {
  .header { position: static; }
  .header__inner { display: grid; padding-block: .5rem; }
  .header__actions { display: none; }
  .nav { position: static; display: flex; flex-wrap: wrap; gap: 0 1rem; padding: 0; border: 0; font-size: .875rem; }
  .nav a + a { border: 0; }
}
@media (pointer: coarse) and (min-width: 701px) {
  .header .icon-button, .header .language button { width: 44px; height: 44px; }
  .header .nav a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (pointer: coarse) and (min-width: 701px) and (max-width: 849px) {
  .header .brand__name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.language-switch { display: inline-flex; position: relative; border: 1px solid var(--line); border-radius: 30px; padding: 3px; isolation: isolate; touch-action: pan-y; }
.language-switch::before { content: ''; position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 24px; background: var(--accent); transition: transform .2s; }
.language-switch[data-active="en"]::before { transform: translateX(100%); }
.language-switch button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 6px 9px; font: inherit; }
.language-switch button[aria-pressed="true"] { color: var(--accent-ink); }
@media (max-width: 700px) {
  .projects { padding-block: clamp(2.75rem, 9vw, 4rem); }
  .journey { padding-block: 75px; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
}
@media (max-width: 390px) { .timeline { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .language-switch::before { transition: none; } }

.journey-slider { --frame-top-duration: 280ms; --frame-side-duration: 220ms; --frame-bottom-duration: 280ms; }
.journey-slider .slider-instruction, .journey-slider .featured p { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0; }
.journey-slider .featured .date { color: var(--secondary); font-size: 11px; letter-spacing: .09em; }
.journey-slider .featured strong { display: block; font-size: 16px; line-height: 1.3; }
.journey-slider .slider-guide { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; }
.journey-slider .halo-control { min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.journey-slider .time-slider { display: flex; flex-direction: column; margin-top: 30px; }
.journey-slider .slider-rail { position: relative; height: 32px; display: flex; align-items: center; }
.journey-slider .slider-grid { position: absolute; inset: 0 14px; z-index: 2; pointer-events: none; }
.journey-slider .slider-marks, .journey-slider .slider-dust { position: absolute; inset: 0; }
.journey-slider .slider-marks { z-index: 3; }
.journey-slider .slider-marks span { position: absolute; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); transform: translate(-50%, -50%); }
.journey-slider .slider-marks span:nth-child(1) { left: 0%; }
.journey-slider .slider-marks span:nth-child(2) { left: 25%; }
.journey-slider .slider-marks span:nth-child(3) { left: 50%; }
.journey-slider .slider-marks span:nth-child(4) { left: 75%; }
.journey-slider .slider-marks span:nth-child(5) { left: 100%; }
.journey-slider .drawer-line { position: absolute; z-index: 1; top: 50%; left: 0%; height: 33px; width: 1px; background: var(--accent); opacity: .8; transform: translateX(-50%) scaleY(0); transform-origin: top; transition: transform var(--connector-duration) ease-in-out 180ms; }
.journey-slider .drawer-line.is-open { transform: translateX(-50%) scaleY(1); transition-delay: 0ms; }
.journey-slider .slider-handle { position: absolute; z-index: 2; top: 50%; left: 0%; width: 22px; height: 22px; border: 2px solid var(--accent); border-radius: 50%; background: var(--surface); box-shadow: 0 0 15px var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent), 0 0 14px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 25px color-mix(in srgb, var(--accent) 30%, transparent); transform: translate(-50%, -50%); transition: left var(--travel-duration) cubic-bezier(.22,.7,.25,1); }
.journey-slider .slider-handle::after { content: ''; position: absolute; inset: -6px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 50%; animation: timeline-halo 2.8s ease-in-out infinite; }
.journey-slider.halo-paused .slider-handle::after { animation-play-state: paused; }
@keyframes timeline-halo { 0%, 100% { transform: scale(.95); opacity: .55; box-shadow: 0 0 3px var(--accent); } 50% { transform: scale(1.1); opacity: .95; box-shadow: 0 0 10px var(--accent); } }
.journey-slider .sparkle { position: absolute; top: 50%; width: var(--size); height: var(--size); border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); pointer-events: none; animation: timeline-dust 800ms ease-out forwards; }
@keyframes timeline-dust { from { opacity: .9; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, calc(-50% - var(--rise))) scale(.3); } }
.journey-slider .time-range { appearance: none; -webkit-appearance: none; position: relative; z-index: 1; display: block; width: 100%; height: 32px; margin: 0; background: transparent; cursor: grab; touch-action: pan-y; }
.journey-slider .time-range:active { cursor: grabbing; }
.journey-slider .time-range::-webkit-slider-runnable-track { height: 2px; background: var(--line); }
.journey-slider .time-range::-moz-range-track { height: 2px; background: var(--line); }
.journey-slider .time-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 28px; height: 28px; margin-top: -13px; border: 0; background: transparent; }
.journey-slider .time-range::-moz-range-thumb { width: 28px; height: 28px; border: 0; background: transparent; }
.journey-slider .time-range:focus-visible { outline: 2px solid var(--secondary); outline-offset: 4px; }
.journey-slider .periods { order: -1; position: relative; height: 44px; margin: 0 14px 3px; }
.journey-slider .period-choice { position: absolute; top: 0; min-width: 44px; min-height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--secondary); font: inherit; font-size: 12px; transform: translateX(-50%); cursor: pointer; }
.journey-slider .period-choice:nth-child(1) { left: 0%; }
.journey-slider .period-choice:nth-child(2) { left: 25%; }
.journey-slider .period-choice:nth-child(3) { left: 50%; }
.journey-slider .period-choice:nth-child(4) { left: 75%; }
.journey-slider .period-choice:nth-child(5) { left: 100%; }
.journey-slider .period-choice[aria-pressed="true"] { color: var(--accent); font-weight: 700; }
.journey-slider .featured { --frame-anchor: 14px; position: relative; margin-top: 17px; padding: 18px; }
.journey-slider .featured::before { content: ''; position: absolute; inset: 1px; border-radius: 9px; background: var(--surface-raised); opacity: 0; transition: opacity 240ms ease; }
.journey-slider .drawer-content { position: relative; opacity: 0; transform: translateY(-5px); transition: opacity 240ms ease, transform 240ms ease; }
.journey-slider .featured.is-open::before, .journey-slider .featured.is-open .drawer-content { opacity: 1; transition-delay: calc(var(--frame-top-duration) + var(--frame-side-duration) + var(--frame-bottom-duration)); }
.journey-slider .featured.is-open .drawer-content { transform: translateY(0); }
.journey-slider .drawer-frame { position: absolute; inset: 0; pointer-events: none; }
.journey-slider .drawer-frame span { position: absolute; box-sizing: border-box; opacity: .8; }
.journey-slider .frame-top-left { top: 0; left: 0; width: var(--frame-anchor); height: 10px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); border-top-left-radius: 10px; transform: scaleX(0); transform-origin: right; transition: transform 200ms ease-in-out 180ms; }
.journey-slider .frame-top-right { top: 0; left: var(--frame-anchor); right: 0; height: 10px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); border-top-right-radius: 10px; transform: scaleX(0); transform-origin: left; transition: transform 200ms ease-in-out 180ms; }
.journey-slider .frame-side-left, .journey-slider .frame-side-right { top: 10px; bottom: 10px; width: 1px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 130ms ease-in-out 80ms; }
.journey-slider .frame-side-left { left: 0; }
.journey-slider .frame-side-right { right: 0; }
.journey-slider .frame-bottom-left, .journey-slider .frame-bottom-right { bottom: 0; width: 50%; height: 10px; border-bottom: 1px solid var(--accent); transform: scaleX(0); transition: transform 100ms ease-in-out; }
.journey-slider .frame-bottom-left { left: 0; border-left: 1px solid var(--accent); border-bottom-left-radius: 10px; transform-origin: left; }
.journey-slider .frame-bottom-right { right: 0; border-right: 1px solid var(--accent); border-bottom-right-radius: 10px; transform-origin: right; }
.journey-slider .featured.is-open .frame-top-left, .journey-slider .featured.is-open .frame-top-right { transform: scaleX(1); transition-duration: var(--frame-top-duration); transition-delay: 0ms; }
.journey-slider .featured.is-open .frame-side-left, .journey-slider .featured.is-open .frame-side-right { transform: scaleY(1); transition-duration: var(--frame-side-duration); transition-delay: var(--frame-top-duration); }
.journey-slider .featured.is-open .frame-bottom-left, .journey-slider .featured.is-open .frame-bottom-right { transform: scaleX(1); transition-duration: var(--frame-bottom-duration); transition-delay: calc(var(--frame-top-duration) + var(--frame-side-duration)); }
.journey-slider .featured strong { margin: 8px 0; }
.journey-slider button:focus-visible, .journey-slider summary:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .journey-slider .slider-handle, .journey-slider .drawer-line, .journey-slider .drawer-content, .journey-slider .drawer-frame span, .journey-slider .featured::before { transition: none; } .journey-slider .slider-handle::after { animation: none; } .journey-slider .sparkle, .journey-slider .halo-control { display: none; } }

/* Keep the reading panel in view for the length of its scroll range. */
.journey { padding-block: 0; }
.journey > .shell { padding-block: clamp(24px, 4svh, 48px); }
.journey[data-scroll-scene] {
  min-height: calc(100svh - var(--scene-top) + var(--scene-distance));
  overflow-anchor: none;
}
.journey[data-scroll-scene] > .shell {
  position: sticky;
  top: var(--scene-top);
}
.journey .journey__intro h2 { margin-top: 12px; }
.journey .journey__intro > p:not(.eyebrow) { margin-top: 16px; line-height: 1.65; }
.journey .slider-guide { margin-top: 12px; }
.journey .time-slider { margin-top: 18px; }
@media (max-width: 700px) {
  .journey > .shell { padding-block: 1.15rem; }
  .journey .featured { padding: 15px; }
}
.journey-slider .slider-instruction { display: grid; }
.slider-instruction > span { grid-area: 1 / 1; }
.slider-instruction__scroll, .journey[data-scroll-scene] .slider-instruction__manual { visibility: hidden; }
.journey[data-scroll-scene] .slider-instruction__scroll { visibility: visible; }
@media (max-width: 849px) {
  .journey .slider-guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
  }
  .journey .halo-control { padding-inline: .35rem; }
  .journey .time-slider { margin-block-start: .5rem; }
  .journey .slider-rail, .journey .time-range { height: 44px; }
  .journey .featured { margin-block-start: 11px; }
}
.journey-slider.is-following-scroll :is(.drawer-content, .drawer-line, .drawer-frame span, .featured::before) {
  transition: none;
}
