:root {
  color-scheme: dark;
  --background: #091019;
  --background-deep: #060a10;
  --surface: #101923;
  --surface-raised: #15212e;
  --surface-soft: #0d151e;
  --line: #293848;
  --line-bright: #3c5367;
  --text: #edf5f8;
  --muted: #91a1ae;
  --blue: #58a6ff;
  --cyan: #63d9e6;
  --green: #4bd48b;
  --orange: #f2a65a;
  --shell: 1180px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--background); }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
    var(--background);
  background-size: 48px 48px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.ambient { position: absolute; z-index: 0; border-radius: 999px; filter: blur(2px); pointer-events: none; }
.ambient-one { top: -24rem; right: -18rem; width: 56rem; height: 56rem; background: radial-gradient(circle, rgba(88, 166, 255, .15), transparent 68%); }
.ambient-two { top: 64rem; left: -28rem; width: 58rem; height: 58rem; background: radial-gradient(circle, rgba(99, 217, 230, .08), transparent 67%); }

.section-shell { position: relative; z-index: 1; width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  width: min(calc(100% - 40px), var(--shell));
  margin: 0 auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(145, 161, 174, .18);
}

.wordmark { display: inline-flex; width: max-content; align-items: center; gap: 10px; font: 800 13px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .18em; }
.wordmark-mark { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line-bright); border-radius: 8px; background: linear-gradient(145deg, rgba(88, 166, 255, .18), rgba(99, 217, 230, .04)); color: var(--cyan); font-size: 15px; letter-spacing: 0; }
.site-nav { display: flex; align-items: center; gap: 28px; color: var(--muted); font-size: 13px; font-weight: 650; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover { color: var(--text); }
.language-switch { display: inline-grid; justify-self: end; grid-template-columns: repeat(2, 1fr); padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); }
.language-switch a { display: grid; min-width: 36px; place-items: center; border-radius: 5px; padding: 6px 8px; color: var(--muted); font: 800 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.language-switch a[aria-current="page"] { background: var(--surface-raised); color: var(--cyan); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); }

.hero { display: grid; min-height: 680px; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr); align-items: center; gap: 64px; padding: 88px 0 104px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--cyan); font: 800 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .15em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(75, 212, 139, .75); }
.hero h1 { max-width: 790px; margin-bottom: 26px; font-size: clamp(48px, 6.7vw, 84px); font-weight: 750; line-height: .98; letter-spacing: -.06em; }
.hero-intro { max-width: 680px; margin-bottom: 34px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 16px; font-size: 13px; font-weight: 800; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.button:hover { border-color: var(--cyan); transform: translateY(-2px); }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-secondary svg { fill: currentColor; stroke: none; }
.button-primary { border-color: rgba(99, 217, 230, .6); background: linear-gradient(135deg, rgba(88, 166, 255, .18), rgba(99, 217, 230, .13)); color: #f4fdff; }
.button-secondary { background: var(--surface); }
.hero-context { display: flex; max-width: 640px; align-items: center; gap: 18px; margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-context-year { flex: 0 0 auto; color: var(--cyan); font: 800 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.hero-context-year strong { font: inherit; }
.hero-context p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.hero-visual { position: relative; min-height: 460px; }
.orbit { position: absolute; inset: 50% auto auto 50%; border: 1px solid rgba(99, 217, 230, .18); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit::before, .orbit::after { position: absolute; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px rgba(99, 217, 230, .7); content: ""; }
.orbit-large { width: 390px; height: 390px; animation: spin 30s linear infinite; }
.orbit-large::before { top: 47px; right: 47px; width: 7px; height: 7px; }
.orbit-large::after { bottom: 18px; left: 116px; width: 4px; height: 4px; }
.orbit-small { width: 255px; height: 255px; border-style: dashed; animation: spin-reverse 24s linear infinite; }
.orbit-small::before { top: -3px; left: 122px; width: 6px; height: 6px; }
.orbit-small::after { right: -2px; bottom: 95px; width: 5px; height: 5px; }
.core-mark { position: absolute; top: 50%; left: 50%; display: grid; width: 142px; height: 142px; place-items: center; border: 1px solid var(--line-bright); border-radius: 31% 69% 68% 32% / 42% 38% 62% 58%; background: radial-gradient(circle at 35% 30%, rgba(99, 217, 230, .25), transparent 55%), var(--surface); box-shadow: 0 25px 80px rgba(0, 0, 0, .38), inset 0 0 30px rgba(88, 166, 255, .06); transform: translate(-50%, -50%) rotate(8deg); }
.core-mark span { color: var(--cyan); font: 700 54px/1 ui-monospace, SFMono-Regular, Consolas, monospace; transform: rotate(-8deg); text-shadow: 0 0 28px rgba(99, 217, 230, .5); }
.signal-card { position: absolute; display: grid; min-width: 94px; gap: 7px; border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; background: rgba(13, 21, 30, .9); box-shadow: 0 18px 40px rgba(0, 0, 0, .28); backdrop-filter: blur(8px); }
.signal-card span { color: var(--muted); font: 700 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.signal-card b { color: var(--text); font: 800 11px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.signal-card-one { top: 52px; right: 16px; }
.signal-card-two { top: 232px; left: -6px; }
.signal-card-three { right: 34px; bottom: 28px; }

.projects { padding: 96px 0 120px; }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 70px; margin-bottom: 40px; }
.section-heading h2, .weather-heading h2, .about h2, .footer-cta h2 { margin-bottom: 0; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.045em; }
.section-heading > p { margin-bottom: 4px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-card { position: relative; display: grid; min-height: 390px; grid-template-rows: auto auto 1fr auto; gap: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: linear-gradient(145deg, rgba(21, 33, 46, .92), rgba(12, 20, 29, .96)); transition: border-color .24s ease, transform .24s ease, box-shadow .24s ease; }
.project-card::before { position: absolute; inset: auto -80px -100px auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, var(--card-glow, rgba(88, 166, 255, .13)), transparent 68%); content: ""; transition: transform .35s ease; }
.project-card:hover { border-color: var(--card-accent, var(--blue)); box-shadow: 0 24px 60px rgba(0, 0, 0, .22); transform: translateY(-4px); }
.project-card:hover::before { transform: scale(1.2); }
.project-card-featured { --card-accent: var(--orange); --card-glow: rgba(242, 166, 90, .17); grid-column: 1 / -1; min-height: 420px; }
.project-card-top { display: flex; align-items: center; justify-content: space-between; }
.project-index { color: var(--muted); font: 700 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.project-arrow { color: var(--muted); font-size: 20px; transition: color .2s ease, transform .2s ease; }
.project-card:hover .project-arrow { color: var(--text); transform: translate(2px, -2px); }
.project-icon { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid var(--line-bright); border-radius: 12px; background: var(--surface-soft); color: var(--cyan); }
.project-icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.project-icon-din { color: var(--orange); }
.project-icon-noscore { color: var(--green); }
.project-kind { margin-bottom: 9px; color: var(--card-accent, var(--cyan)); font: 800 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .13em; }
.project-card h3 { margin-bottom: 12px; font-size: 27px; letter-spacing: -.035em; }
.project-card div > p:last-child { max-width: 490px; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.62; }
.project-link { position: relative; z-index: 1; width: max-content; border-bottom: 1px solid var(--line-bright); padding-bottom: 4px; color: var(--text); font-size: 12px; font-weight: 750; }
.project-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.project-link-secondary { color: var(--muted); }
.project-link:hover { color: var(--cyan); }

.approach { padding: 20px 0 110px; }
.approach-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.approach-card { min-height: 280px; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: rgba(13, 21, 30, .72); }
.approach-card > span { display: block; margin-bottom: 44px; color: var(--cyan); font: 800 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.approach-card h3 { margin-bottom: 14px; font-size: 22px; letter-spacing: -.03em; }
.approach-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.weather-section { padding: 80px 0 120px; }
.weather-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 28px; }
.weather-heading > a { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; margin-bottom: 4px; color: var(--muted); font-size: 12px; font-weight: 750; }
.weather-heading > a:hover { color: var(--cyan); }
.weather-frame-shell { position: relative; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(21, 33, 46, .95), rgba(9, 16, 25, .95)); box-shadow: 0 28px 70px rgba(0, 0, 0, .28); }
.weather-frame-shell::before { position: absolute; top: -1px; left: 10%; width: 34%; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); content: ""; }
.weather-frame { display: block; width: 100%; height: 650px; border: 0; border-radius: 10px; background: #0d1118; }
.weather-caption { margin: 13px 2px 0; color: var(--muted); font-size: 11px; }
.weather-caption a { color: var(--blue); }

.about { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); align-items: center; gap: clamp(54px, 9vw, 120px); padding: 100px 0 150px; }
.about-photo-wrap { position: relative; width: min(100%, 350px); margin-left: 18px; }
.about-photo-wrap img { position: relative; z-index: 2; display: block; width: 100%; height: auto; border-radius: 5px; filter: saturate(.82) contrast(1.04); }
.about-photo-border { position: absolute; z-index: 1; inset: 20px -20px -20px 20px; border: 1px solid var(--line-bright); border-radius: 5px; }
.about-photo-label { position: absolute; z-index: 3; right: -40px; bottom: 22px; padding: 7px 9px; background: var(--background-deep); color: var(--muted); font: 700 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; transform: rotate(-90deg); transform-origin: right bottom; }
.about-copy > p:not(.eyebrow) { max-width: 690px; color: var(--muted); font-size: 15px; line-height: 1.72; }
.about-copy h2 { margin-bottom: 28px; }
.about-principles { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 30px; }
.about-principles span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; background: var(--surface-soft); color: var(--muted); font-size: 10px; font-weight: 750; }

.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: rgba(6, 10, 16, .8); }
.footer-cta { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.footer-links a { display: flex; align-items: center; gap: 15px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; color: var(--muted); font-size: 12px; font-weight: 750; }
.footer-links a:hover { border-color: var(--cyan); color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 24px; border-top: 1px solid rgba(145, 161, 174, .16); color: var(--muted); font: 700 9px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; }

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spin-reverse { to { transform: translate(-50%, -50%) rotate(-360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 72px; }
  .hero-visual { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-card { min-height: auto; }
  .approach-card > span { margin-bottom: 28px; }
  .project-card { min-height: 360px; }
  .about { grid-template-columns: .75fr 1.25fr; gap: 54px; }
  .footer-cta { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .section-shell, .site-header { width: min(calc(100% - 28px), var(--shell)); }
  .site-header { padding: 17px 0; }
  .hero { padding: 62px 0 76px; }
  .hero h1 { font-size: clamp(42px, 14vw, 62px); }
  .hero-context { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 42px; }
  .projects, .weather-section { padding: 70px 0 86px; }
  .approach { padding: 10px 0 86px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-featured { grid-column: auto; }
  .project-card { min-height: 350px; }
  .weather-heading { align-items: start; flex-direction: column; gap: 18px; }
  .weather-frame { height: 650px; }
  .about { grid-template-columns: 1fr; padding: 70px 0 110px; }
  .about-photo-wrap { width: min(calc(100% - 24px), 330px); margin: 0 auto; }
  .footer-links { display: grid; grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}
