:root {
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ink: color-mix(in srgb, indigo 45%, black);
  --surface: color-mix(in srgb, white 94%, lavender);
  --canvas: color-mix(in srgb, lavender 70%, white);
  --accent: color-mix(in srgb, blueviolet 72%, black);
  --accent-ink: var(--surface);
  --mint: color-mix(in srgb, aquamarine 55%, white);
  --lilac: color-mix(in srgb, mediumpurple 45%, white);
  --night: var(--surface);
  --panel: color-mix(in srgb, var(--surface) 90%, lavender);
  --panel-light: color-mix(in srgb, var(--surface) 80%, lavender);
  --white: var(--ink);
  --quiet: color-mix(in srgb, var(--ink) 72%, var(--surface));
  --line: color-mix(in srgb, var(--ink) 10%, var(--surface));
  --highlight: color-mix(in srgb, blueviolet 70%, black);
  --card-radius: 36px;
  --card-shadow: 0 1px 0 color-mix(in srgb, white 80%, transparent) inset, 0 30px 60px -40px color-mix(in srgb, indigo 35%, transparent);
}
* { box-sizing: border-box; }
html { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--highlight) 30%, transparent) transparent; }
body { margin: 0; background: radial-gradient(900px 600px at 95% -5%, color-mix(in srgb, var(--lilac) 70%, transparent), transparent 70%), radial-gradient(800px 560px at -10% 35%, color-mix(in srgb, var(--mint) 45%, transparent), transparent 70%), var(--canvas); color: var(--white); font-family: var(--font-body); }
h1,h2,h3 { font-family: var(--font-display); color: inherit; font-weight: 700; }
h1,h2,h3,p { margin-top: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button,a,summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--highlight); outline-offset: 4px; border-radius: 6px; }
::selection { background: var(--highlight); color: var(--night); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--highlight) 30%, transparent); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--highlight) 55%, transparent); }
::-webkit-scrollbar-button { display: none; }
.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.page-width { width: min(100% - var(--space-l) * 2, 1320px); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; vertical-align: -.15em; flex-shrink: 0; }
.skip-link { position: fixed; z-index: 100; top: 0; left: 0; padding: var(--space-s); background: var(--highlight); color: var(--night); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Header — floating pill */
.site-header { --motion-shell-bg: transparent; --motion-shell-border: transparent; position: sticky; top: 0; z-index: 50; padding-top: var(--space-s); }
.header-inner { width: min(100% - var(--space-l) * 2, 1320px); margin-inline: auto; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-l); padding-inline: var(--space-m) var(--space-xs); background: var(--night); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--card-shadow); }
.brand { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; flex-shrink: 0; color: var(--white); }
.brand-mark-icon { width: 30px; height: 30px; color: var(--highlight); }
.brand-name { color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); line-height: 1; letter-spacing: -.04em; white-space: nowrap; }
.brand-sub { color: var(--white); display: inline; margin-left: var(--space-2xs); font-family: var(--font-body); font-size: var(--step--1); font-weight: 400; letter-spacing: .14em; }
.desktop-nav { display: flex; align-items: center; gap: var(--space-l); font-size: var(--step--1); }
.desktop-nav > a { min-height: 44px; display: inline-flex; align-items: center; }
.nav-contact { gap: var(--space-xs); padding-inline: var(--space-m); border-radius: 999px; background: var(--highlight); color: var(--night); font-weight: 700; transition: transform 200ms cubic-bezier(.2,.7,.2,1), box-shadow 200ms cubic-bezier(.2,.7,.2,1); }
.nav-contact:hover { transform: translateY(-1px); box-shadow: var(--shadow-m); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; color: var(--white); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.mobile-nav { width: min(100% - var(--space-m) * 2, 1320px); margin: var(--space-xs) auto 0; padding: var(--space-xs) var(--space-m); background: var(--night); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--card-shadow); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; color: var(--highlight); font-weight: 700; }

/* Hero — big rounded card with a soft gradient glow */
.hero { padding-top: var(--space-l); }
.hero-topline,.hero-footnote,.media-top,.project-meta,.contact-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-s); }
.hero-topline { padding-inline: var(--space-s); margin-bottom: var(--space-s); }
.eyebrow,.hero-footnote,.image-label,.process-number,.small-number { font-size: var(--step--1); letter-spacing: .1em; line-height: 1.5; }
.eyebrow { color: var(--quiet); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--highlight); box-shadow: 0 0 0 4px color-mix(in srgb, var(--highlight) 18%, transparent); margin-right: var(--space-2xs); vertical-align: middle; }
.hero-grid { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr 340px; gap: var(--space-2xl); padding: var(--space-2xl) var(--space-xl); align-items: end; background: var(--night); border-radius: var(--card-radius); box-shadow: var(--card-shadow); min-height: 560px; }
.hero-grid::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -180px; top: -220px; border-radius: 50%; background: radial-gradient(circle at 35% 40%, var(--lilac), transparent 62%), radial-gradient(circle at 65% 70%, var(--mint), transparent 60%); filter: blur(10px); opacity: .9; }
.hero-grid::after { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: 28%; bottom: -150px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.role { display: inline-block; font-size: var(--step--1); color: var(--highlight); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: var(--space-3xs) var(--space-s); margin-bottom: var(--space-l); }
h1 { font-size: var(--step-4); font-weight: 400; line-height: 1.05; letter-spacing: -.05em; margin-bottom: var(--space-l); }
h1 .motion-line { color: var(--white); background-color: var(--night); }
h1 span { color: var(--highlight); font-weight: 700; }
.hero-bottom { max-width: 600px; }
.hero-bottom p { max-width: 46ch; color: var(--quiet); line-height: 1.7; margin-bottom: var(--space-l); }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: space-between; gap: var(--space-m); padding: var(--space-xs) var(--space-xs) var(--space-xs) var(--space-l); border-radius: 999px; font-size: var(--step--1); font-weight: 700; transition: transform 220ms cubic-bezier(.2,.7,.2,1), box-shadow 220ms cubic-bezier(.2,.7,.2,1); }
.button .icon { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: color-mix(in srgb, var(--night) 18%, transparent); }
.primary { background: var(--highlight); color: var(--night); }
.button:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--highlight) 70%, transparent); }
.hero-index { padding: var(--space-m); background: color-mix(in srgb, var(--night) 72%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid color-mix(in srgb, white 70%, transparent); border-radius: 28px; box-shadow: var(--card-shadow); }
.hero-index > .eyebrow { display: block; margin-bottom: var(--space-s); letter-spacing: .08em; }
.hero-index a { display: flex; align-items: center; gap: var(--space-s); min-height: 56px; padding-inline: var(--space-s); margin-top: var(--space-2xs); background: var(--night); border-radius: 18px; font-size: var(--step--1); transition: color 200ms ease, transform 200ms cubic-bezier(.2,.7,.2,1); }
.hero-index a:hover { color: var(--highlight); transform: translateX(3px); }
.hero-index a > span { color: var(--highlight); font-family: 'JetBrains Mono', monospace; }
.hero-index .icon { margin-left: auto; }
.hero-media { position: relative; height: 420px; overflow: hidden; background: var(--panel); border-radius: var(--card-radius); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.media-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--ink) 70%, transparent)); }
.media-top { position: absolute; top: var(--space-m); left: var(--space-m); right: var(--space-m); }
.image-label { color: var(--white); }
.media-caption { position: absolute; bottom: var(--space-l); left: var(--space-l); right: var(--space-l); display: flex; align-items: end; justify-content: space-between; gap: var(--space-m); }
.media-caption .eyebrow { color: var(--highlight); }
.media-caption h2 { font-size: var(--step-2); line-height: 1.25; margin: var(--space-xs) 0 0; }
.round-link { display: grid; place-items: center; width: 54px; height: 54px; background: var(--night); border: 1px solid var(--line); border-radius: 50%; transition: background 200ms ease, color 200ms ease, transform 200ms ease; flex-shrink: 0; }
.round-link:hover { background: var(--highlight); color: var(--night); transform: translateY(-2px); }
.hero-footnote { padding: var(--space-s); color: var(--quiet); font-size: var(--step--1); }
section[id],article[id],#digital { scroll-margin-top: 120px; }

/* Rounded content cards */
.about,.approach { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-xl); margin-top: var(--space-l); padding: var(--space-2xl) var(--space-xl); background: var(--night); border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.section-rail { display: flex; align-items: center; gap: var(--space-s); align-self: start; padding-top: var(--space-xs); }
.section-rail .eyebrow { white-space: nowrap; color: var(--highlight); }
.rail-line { height: 1px; flex: 1; background: var(--line); }
.about h2,.section-heading h2,.approach h2 { font-size: var(--step-3); font-weight: 400; letter-spacing: -.045em; line-height: 1.15; margin-bottom: var(--space-xl); }
.muted { color: var(--quiet); }
.about-columns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.lead { font-size: var(--step-1); line-height: 1.55; }
.about-detail { color: var(--quiet); font-size: var(--step--1); line-height: 1.8; }
.about-detail p + p { margin-top: var(--space-m); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-s); margin-top: var(--space-xl); }
.fact { padding: var(--space-l); display: flex; flex-direction: column; gap: var(--space-xs); background: linear-gradient(135deg, color-mix(in srgb, var(--lilac) 35%, var(--night)), color-mix(in srgb, var(--mint) 30%, var(--night))); border-radius: 24px; }
.fact strong { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.1; font-weight: 400; letter-spacing: -.05em; color: var(--highlight); }
.fact-text strong { font-size: var(--step-2); }
.fact > span { color: var(--quiet); font-size: var(--step--1); }

.work { padding-block: var(--space-3xl) var(--space-l); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: var(--space-xl); margin-bottom: var(--space-xl); padding-inline: var(--space-s); }
.section-heading .eyebrow { color: var(--highlight); }
.section-heading h2 { margin: var(--space-m) 0 0; }
.section-heading > p { color: var(--quiet); font-size: var(--step--1); line-height: 1.8; }
.infrastructure { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--space-xs); padding: var(--space-xs); background: var(--night); border-radius: var(--card-radius); box-shadow: var(--card-shadow); overflow: hidden; }
.project-visual { position: relative; aspect-ratio: 2 / 1; align-self: start; overflow: hidden; background: var(--panel-light); border-radius: 28px; }
.project-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
.project-visual:hover img { transform: scale(1.04); }
.infrastructure > .project-visual { align-self: stretch; aspect-ratio: auto; min-height: 420px; }
.infrastructure > .project-visual img { position: absolute; inset: 0; }
.visual-number { position: absolute; top: var(--space-s); left: var(--space-s); min-width: 44px; min-height: 32px; display: grid; place-items: center; padding-inline: var(--space-xs); background: color-mix(in srgb, var(--night) 85%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--highlight); border-radius: 999px; font-size: var(--step--1); font-family: 'JetBrains Mono', monospace; }
.project-info { padding: var(--space-xl) var(--space-l); }
.project-meta { margin-bottom: var(--space-l); }
.project-meta .eyebrow { letter-spacing: .08em; }
.project-status { color: var(--highlight); font-size: var(--step--1); white-space: nowrap; padding: var(--space-3xs) var(--space-s); background: var(--panel); border-radius: 999px; }
.project-info h3 { font-size: var(--step-3); font-weight: 400; line-height: 1.1; letter-spacing: -.045em; margin-bottom: var(--space-m); }
.project-info > p,.digital-copy > p { color: var(--quiet); line-height: 1.8; font-size: var(--step--1); }
.project-specs { margin-block: var(--space-l); font-size: var(--step--1); display: grid; gap: var(--space-2xs); }
.project-specs > div { display: flex; justify-content: space-between; gap: var(--space-m); padding: var(--space-xs) var(--space-s); background: var(--panel); border-radius: 14px; }
.project-specs dt { color: var(--quiet); }
.project-specs dd { margin: 0; text-align: right; font-weight: 700; }
details { border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); min-height: 50px; cursor: pointer; list-style: none; font-size: var(--step--1); color: var(--highlight); font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--panel); transition: transform 220ms cubic-bezier(.2,.7,.2,1); }
details[open] summary .icon { transform: rotate(45deg); }
details > p { font-size: var(--step--1); color: var(--quiet); line-height: 1.8; padding-bottom: var(--space-s); }
.digital-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); padding: var(--space-2xl) var(--space-s) var(--space-l); }
.digital-header .eyebrow { color: var(--highlight); }
.digital-header p { margin: 0; color: var(--quiet); font-size: var(--step--1); line-height: 1.6; }
.digital-projects { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-m); }
.digital-project { padding: var(--space-xs); background: var(--night); border-radius: var(--card-radius); box-shadow: var(--card-shadow); min-width: 0; transition: transform 300ms cubic-bezier(.2,.7,.2,1); }
.digital-project:hover { transform: translateY(-4px); }
.digital-copy { padding: var(--space-l) var(--space-m) var(--space-s); }
.digital-copy .project-meta { margin-bottom: var(--space-xs); }
.small-number { color: var(--quiet); font-family: 'JetBrains Mono', monospace; }
.digital-copy h3 { font-size: var(--step-2); letter-spacing: -.035em; margin-bottom: var(--space-s); }
.digital-copy > p { max-width: 58ch; }
.wide-project { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-l); align-items: center; }
.wide-project .digital-copy { padding: var(--space-l) var(--space-l) var(--space-l) 0; }

.approach { margin-top: var(--space-xl); }
.process { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-s); }
.process > div { padding: var(--space-l); background: var(--panel); border-radius: 24px; transition: transform 250ms cubic-bezier(.2,.7,.2,1); }
.process > div:hover { transform: translateY(-3px); }
.process-number { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--night); color: var(--highlight); font-family: 'JetBrains Mono', monospace; letter-spacing: 0; }
.process h3 { font-size: var(--step-0); margin-block: var(--space-l) var(--space-s); letter-spacing: -.02em; }
.process p { font-size: var(--step--1); color: var(--quiet); line-height: 1.7; margin-bottom: 0; }

/* Contact — inverted deep-violet card */
.contact { position: relative; overflow: hidden; isolation: isolate; margin-top: var(--space-xl); padding: var(--space-2xl) var(--space-xl); background: var(--ink); color: var(--night); border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.contact::before { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; right: -160px; bottom: -280px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 65%); }
.contact .eyebrow { color: color-mix(in srgb, var(--night) 75%, var(--ink)); }
.contact-top { margin-bottom: var(--space-xl); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-2xl); align-items: end; }
.contact h2 { font-size: var(--step-4); font-weight: 400; letter-spacing: -.05em; line-height: 1.05; margin: 0; }
.contact h2 span { color: var(--mint); font-weight: 700; }
.contact-copy > p { color: color-mix(in srgb, var(--night) 80%, var(--ink)); line-height: 1.7; }
.contact .primary { background: var(--night); color: var(--ink); }
.contact .button .icon { background: color-mix(in srgb, var(--ink) 10%, transparent); }
.contact-copy .contact-note { font-size: var(--step--1); margin-top: var(--space-s); margin-bottom: 0; max-width: 35ch; }
.contact-note a { text-decoration: underline; text-underline-offset: 3px; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: var(--space-l); padding: var(--space-l) var(--space-s); }
.site-footer > span,.back-top { font-size: var(--step--1); color: var(--quiet); }
.back-top { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; }

@media (min-width: 1500px) {
  .hero-media { height: 480px; }
}
@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-xl); min-height: 0; }
  .hero-index { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-xs); }
  .hero-index > .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
  .hero-index a { margin-top: 0; }
  .about,.approach { grid-template-columns: 160px 1fr; gap: var(--space-l); padding-inline: var(--space-l); }
  .infrastructure { grid-template-columns: 1fr 1fr; }
  .project-info { padding: var(--space-l); }
  .project-meta { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  :root { --card-radius: 26px; }
  .page-width,.header-inner { width: calc(100% - var(--space-s) * 2); }
  .header-inner { min-height: 64px; padding-inline: var(--space-s) var(--space-2xs); }
  .desktop-nav { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .hero-location { display: none; }
  .hero-grid { padding: var(--space-xl) var(--space-m); }
  .hero-grid::before { width: 420px; height: 420px; right: -200px; top: -160px; }
  .hero-index { display: block; padding: var(--space-s); }
  .hero-index > .eyebrow { margin-bottom: var(--space-xs); }
  .hero-index a { margin-top: var(--space-2xs); }
  .hero-media { height: 350px; }
  .media-top .image-label:last-child { display: none; }
  .hero-footnote { flex-wrap: wrap; gap: var(--space-2xs); }
  .hero-footnote span:last-child { display: none; }
  .about,.approach { grid-template-columns: 1fr; padding: var(--space-xl) var(--space-m); gap: var(--space-l); }
  .section-rail { max-width: 300px; }
  .about-columns { grid-template-columns: 1fr; gap: var(--space-s); }
  .work { padding-block: var(--space-2xl) var(--space-s); }
  .section-heading { align-items: start; flex-direction: column; gap: var(--space-m); padding-inline: var(--space-2xs); }
  .section-heading > p { margin-bottom: 0; }
  .infrastructure { grid-template-columns: 1fr; }
  .infrastructure > .project-visual { aspect-ratio: 2 / 1; min-height: 0; }
  .project-visual { border-radius: 20px; }
  .project-info { padding: var(--space-l) var(--space-s); }
  .project-meta { margin-bottom: var(--space-m); }
  .digital-header { align-items: start; flex-direction: column; padding-inline: var(--space-2xs); }
  .digital-projects { grid-template-columns: 1fr; }
  .wide-project { display: block; }
  .wide-project .digital-copy { padding: var(--space-l) var(--space-m) var(--space-s); }
  .digital-copy { padding-inline: var(--space-s); }
  .process { grid-template-columns: 1fr; }
  .contact { padding: var(--space-xl) var(--space-m); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-l); }
  .contact-top { flex-wrap: wrap; }
  .site-footer { flex-wrap: wrap; gap: var(--space-m); }
  .site-footer > span { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .button:hover,.round-link:hover,.project-visual:hover img,details[open] summary .icon,.digital-project:hover,.process > div:hover,.hero-index a:hover,.nav-contact:hover { transform: none; }
}