:root {
  --bg: #f7f9fa;
  --paper: #ffffff;
  --text: #062b48;
  --muted: #667582;
  --line: rgba(6, 43, 72, .13);
  --line-strong: rgba(6, 43, 72, .24);
  --navy: #062b48;
  --navy-deep: #041f35;
  --cyan: #087f98;
  --cyan-soft: #dceff2;
  --green-soft: #edf4e8;
  --max: 1220px;
  --ease: cubic-bezier(.22,.78,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::selection { background: rgba(8,127,152,.18); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 52px), var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247,249,250,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(247,249,250,.98); }
.nav { min-height: 96px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand img { width: 222px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  position: relative;
  padding: 9px 0;
  color: #395164;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.01em;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .28s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { color: var(--navy); }
.lang-switch { display: flex; align-items: center; gap: 5px; padding-left: 18px; border-left: 1px solid var(--line); color: #9ba5ad; }
.lang-switch button { border: 0; background: none; padding: 7px 5px; color: #7a8790; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.lang-switch button.is-active, .lang-switch button:hover { color: var(--cyan); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: none; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 6px 0; transition: transform .25s ease; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 11px; color: var(--cyan); font-size: 11px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.eyebrow.light { color: #8fd5e2; }
h1, h2, h3 { margin-top: 0; text-wrap: balance; }
h1 { margin-bottom: 26px; font-size: clamp(58px, 7vw, 94px); line-height: .98; letter-spacing: -.057em; font-weight: 690; }
h2 { margin-bottom: 20px; font-size: clamp(39px, 5vw, 64px); line-height: 1.02; letter-spacing: -.045em; font-weight: 670; }
h3 { letter-spacing: -.025em; }
p { color: var(--muted); }
.section-heading { max-width: 850px; margin-bottom: 58px; }
.section-heading .eyebrow { margin-bottom: 21px; }
.section-heading p { max-width: 720px; margin: 0; font-size: 18px; }
.section-heading.compact { margin-bottom: 44px; }

/* Buttons */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid transparent; text-decoration: none; font-size: 14px; font-weight: 760; transition: transform .24s var(--ease), background-color .24s ease, color .24s ease, border-color .24s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--cyan); border-color: var(--cyan); }
.btn-link { min-height: auto; padding: 0 0 4px; border-bottom: 1px solid var(--line-strong); }
.btn-link::after { content: "↗"; margin-left: 9px; transition: transform .2s ease; }
.btn-link:hover::after { transform: translate(2px,-2px); }
.btn-outline { color: var(--navy); border-color: var(--line-strong); background: transparent; }
.btn-white { color: var(--navy); background: #fff; border-color: #fff; }
.btn-dark-outline { color: #fff; border-color: rgba(255,255,255,.45); }
.btn-dark-outline:hover { border-color: #fff; }
.text-link { color: var(--navy); text-underline-offset: 4px; }

/* Home hero */
.hero { position: relative; overflow: hidden; padding: 92px 0 0; border-bottom: 1px solid var(--line); }
.hero-lines { position: absolute; inset: 0; pointer-events: none; opacity: .55; background-image: linear-gradient(to right, transparent calc(100% - 1px), rgba(6,43,72,.05) 1px), linear-gradient(to bottom, transparent calc(100% - 1px), rgba(6,43,72,.04) 1px); background-size: 92px 92px; mask-image: linear-gradient(to right, transparent 0, #000 52%, #000 100%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.16fr) minmax(390px,.84fr); gap: 72px; align-items: center; min-height: 555px; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 50px; }
.hero-copy .eyebrow { margin-bottom: 28px; }
.hero-copy p { max-width: 700px; margin: 0 0 34px; font-size: clamp(17px,1.8vw,20px); }
.logo-stage { position: relative; min-height: 490px; display: grid; place-items: center; isolation: isolate; }
.logo-stage::before { content: ""; position: absolute; inset: 7% -16% 0 7%; background: var(--cyan-soft); z-index: -2; }
.logo-stage::after { content: ""; position: absolute; left: 7%; top: 7%; width: 84px; height: 7px; background: var(--cyan); z-index: -1; animation: accentSlide 5.5s var(--ease) infinite alternate; }
.logo-stage img { width: min(118%, 650px); max-width: none; position: relative; z-index: 2; animation: logoDrift 7s ease-in-out infinite; }
.logo-accent { position: absolute; width: 210px; height: 210px; right: -12px; bottom: 20px; border: 1px solid rgba(6,43,72,.18); border-radius: 50%; }
.logo-accent::after { content: ""; position: absolute; width: 12px; height: 12px; background: var(--cyan); border-radius: 50%; top: 18px; left: 36px; transform-origin: 69px 87px; animation: orbit 9s linear infinite; }
@keyframes logoDrift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes accentSlide { from { width: 84px; } to { width: 148px; } }
@keyframes orbit { to { transform: rotate(360deg); } }
.fact-strip { position: relative; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line-strong); }
.fact-strip > div { padding: 23px 30px 24px 0; border-right: 1px solid var(--line); }
.fact-strip > div + div { padding-left: 30px; }
.fact-strip > div:last-child { border-right: 0; }
.fact-strip span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.fact-strip strong { display: block; color: var(--navy); font-size: 15px; font-weight: 720; }

/* Sections */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section-topics { background: var(--paper); }
.topic-list { border-top: 1px solid var(--line-strong); }
.topic-item { display: grid; grid-template-columns: 90px minmax(220px,.7fr) minmax(0,1.3fr) 160px; gap: 28px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); }
.topic-number { color: var(--cyan); font-size: 12px; font-weight: 850; letter-spacing: .12em; }
.topic-item h3 { margin: -3px 0 0; font-size: clamp(23px,3vw,31px); font-weight: 660; }
.topic-item p { max-width: 650px; margin: 0; }
.status { justify-self: end; display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 12px; font-weight: 750; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(8,127,152,.10); }

/* Projects, linear not glossy cards */
.section-projects { background: #f3f7f8; }
.project-feature { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.project-visual { min-height: 450px; display: grid; place-items: center; padding: clamp(36px,6vw,76px); background: var(--green-soft); overflow: hidden; }
.project-visual img { width: min(100%, 650px); transition: transform .75s var(--ease); }
.project-feature:hover .project-visual img { transform: scale(1.025); }
.project-copy { padding: clamp(40px,6vw,78px); display: flex; flex-direction: column; justify-content: center; background: var(--paper); }
.project-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: 15px; color: var(--muted); font-size: 12px; font-weight: 750; }
.project-topline span + span::before { content: "·"; margin-right: 20px; }
.project-copy h3 { margin: 0 0 16px; font-size: clamp(39px,5vw,60px); line-height: 1; font-weight: 670; }
.project-copy p { max-width: 590px; margin: 0 0 29px; font-size: 17px; }
.project-list { display: grid; }
.project-row { display: grid; grid-template-columns: minmax(320px,.92fr) minmax(0,1.08fr); border-top: 1px solid var(--line-strong); }
.project-row:last-child { border-bottom: 1px solid var(--line-strong); }
.project-row-media { min-height: 390px; display: grid; place-items: center; padding: 52px; background: var(--green-soft); overflow: hidden; }
.project-row-media img { width: min(100%, 590px); transition: transform .75s var(--ease); }
.project-row:hover .project-row-media img { transform: scale(1.025); }
.project-row-body { padding: 54px 0 54px clamp(38px,6vw,80px); display: flex; flex-direction: column; justify-content: center; }
.project-row-body h2 { margin: 10px 0 14px; font-size: clamp(40px,5vw,64px); line-height: 1; }
.project-row-body p { max-width: 640px; margin: 0 0 30px; font-size: 17px; }

/* Contact */
.contact-section { position: relative; overflow: hidden; padding: 92px 0; background: var(--navy); color: #fff; }
.contact-section::after { content: "&"; position: absolute; right: -20px; bottom: -155px; color: rgba(255,255,255,.035); font-size: 420px; line-height: 1; font-weight: 700; pointer-events: none; }
.contact-panel { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 58px; align-items: end; }
.contact-panel h2 { color: #fff; max-width: 760px; margin-bottom: 18px; }
.contact-panel p { max-width: 690px; margin: 0; color: rgba(255,255,255,.67); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Secondary pages */
.page-hero { position: relative; overflow: hidden; padding: 100px 0 70px; border-bottom: 1px solid var(--line); }
.page-hero-accent { position: absolute; right: -8vw; top: -110px; width: 42vw; height: 390px; background: var(--cyan-soft); transform: skewX(-12deg); opacity: .75; }
.page-hero .wrap { position: relative; z-index: 2; max-width: 970px; }
.page-hero .eyebrow { margin-bottom: 25px; }
.page-hero h1 { margin-bottom: 24px; font-size: clamp(54px,7vw,86px); }
.page-hero p { max-width: 760px; margin: 0; font-size: 18px; }
.legal-hero { padding-bottom: 78px; }

/* Legal / map */
.legal-layout { display: grid; grid-template-columns: minmax(0,.78fr) minmax(0,1.22fr); gap: clamp(50px,8vw,112px); align-items: start; }
.legal-details { display: grid; gap: 46px; }
.legal-block { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.legal-block h2 { margin: 0 0 15px; font-size: 20px; font-weight: 700; }
.legal-block p { margin: 6px 0; }
.legal-block a { color: var(--navy); text-underline-offset: 4px; }
.location-copy { margin-bottom: 24px; }
.location-copy .eyebrow { margin-bottom: 17px; }
.location-copy h2 { margin-bottom: 12px; font-size: clamp(33px,4vw,48px); }
.location-copy p { margin: 0; }
.map-shell { position: relative; min-height: 430px; background: #e8edf0; border: 1px solid var(--line); overflow: hidden; }
.map-canvas { width: 100%; height: 430px; }
.map-shell .maplibregl-map { font: inherit; }
.map-shell .maplibregl-ctrl-group { border-radius: 0; box-shadow: none; border: 1px solid rgba(6,43,72,.18); overflow: hidden; }
.map-shell .maplibregl-popup-content { border-radius: 0; box-shadow: 0 10px 30px rgba(6,43,72,.12); padding: 12px 14px; font-size: 13px; line-height: 1.45; }
.map-pin { width: 20px; height: 20px; border-radius: 50%; background: var(--cyan); border: 4px solid #fff; box-shadow: 0 2px 12px rgba(6,43,72,.25); cursor: pointer; }
.map-credit { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.map-credit a { color: inherit; text-underline-offset: 2px; }
.map-fallback { min-height: 430px; display: grid; place-items: center; padding: 38px; text-align: center; }
.map-fallback-inner { max-width: 430px; }
.map-fallback strong { display: block; margin-bottom: 8px; font-size: 19px; }
.map-fallback p { margin: 0 0 22px; }

/* Footer */
.site-footer { padding: 42px 0 34px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px; align-items: center; color: var(--muted); font-size: 13px; }
.footer-brand { display: flex; align-items: center; gap: 22px; }
.footer-brand img { width: 155px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--navy); }

/* Motion */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .78s var(--ease), transform .78s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }

@media (max-width: 980px) {
  .hero-grid, .project-feature, .project-row, .contact-panel, .legal-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 68px; }
  .hero-grid { gap: 30px; min-height: auto; }
  .hero-copy { padding-bottom: 10px; }
  .logo-stage { min-height: 390px; }
  .logo-stage::before { inset: 5% 0 0 12%; }
  .logo-stage img { width: min(90%, 660px); }
  .topic-item { grid-template-columns: 70px minmax(190px,.75fr) minmax(0,1.25fr); }
  .topic-item .status { grid-column: 2 / -1; justify-self: start; }
  .contact-actions { justify-content: flex-start; }
  .project-row-body { padding: 45px 0; }
}

@media (max-width: 740px) {
  .container { width: min(calc(100% - 30px), var(--max)); }
  .nav { min-height: 84px; gap: 8px; }
  .brand img { width: 180px; }
  .nav-toggle { display: block; order: 2; }
  .lang-switch { order: 3; padding-left: 6px; border-left: 0; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 84px; padding: 13px 15px 20px; flex-direction: column; align-items: stretch; gap: 2px; background: rgba(247,249,250,.99); border-bottom: 1px solid var(--line); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; }
  h1 { font-size: clamp(48px,13vw,68px); }
  h2 { font-size: clamp(36px,10vw,50px); }
  .hero { padding-top: 52px; }
  .hero-lines { background-size: 70px 70px; }
  .hero-copy .eyebrow { margin-bottom: 22px; }
  .logo-stage { min-height: 280px; margin-top: 10px; }
  .logo-stage img { width: min(96%, 560px); }
  .logo-accent { width: 150px; height: 150px; right: 0; bottom: 8px; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact-strip > div, .fact-strip > div + div { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .fact-strip > div:last-child { border-bottom: 0; }
  .section { padding: 68px 0; }
  .section-heading { margin-bottom: 40px; }
  .topic-item { grid-template-columns: 52px 1fr; gap: 12px 18px; padding: 26px 0; }
  .topic-item p, .topic-item .status { grid-column: 2; }
  .project-visual, .project-row-media { min-height: 270px; padding: 30px; }
  .project-copy { padding: 38px 24px; }
  .project-row-body { padding: 35px 0; }
  .project-topline span { display: block; width: 100%; }
  .project-topline span + span::before { content: none; }
  .contact-section { padding: 68px 0; }
  .page-hero { padding: 64px 0 44px; }
  .page-hero-accent { width: 65vw; height: 280px; top: -90px; }
  .map-shell, .map-canvas, .map-fallback { min-height: 350px; height: 350px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { align-items: flex-start; flex-direction: column; }
  .footer-brand img { width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
