/* Engine Carbon Clear — site stylesheet (no build step) */

:root {
  --green: #4fd05a;
  --green-deep: #2fa63d;
  --green-soft: rgba(79, 208, 90, 0.14);
  --blue: #15b4f0;
  --blue-deep: #0a8ec4;
  --blue-soft: rgba(21, 180, 240, 0.14);

  --ink: #070b11;
  --ink-2: #0d131c;
  --ink-3: #141d29;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --paper: #f6f8f7;
  --paper-2: #eaf0ec;
  --line-dark: rgba(10, 20, 30, 0.1);

  --text: #eaf0f4;
  --muted: #9fadba;
  --text-dark: #0f1620;
  --muted-dark: #566574;

  --radius: 20px;
  --radius-sm: 12px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --shadow-light: 0 18px 50px rgba(15, 30, 45, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p { margin: 0 0 1em; }

.container {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.container--narrow { width: min(820px, 100% - 2 * var(--gutter)); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: 2px;
}
.section--light .eyebrow { color: var(--green-deep); }

.h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 700; }
.h2 { font-size: clamp(30px, 4.2vw, 50px); }
.h3 { font-size: clamp(20px, 2.2vw, 26px); }

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
  max-width: 62ch;
}
.section--light .lede { color: var(--muted-dark); }

.gradient-text {
  background: linear-gradient(92deg, var(--green) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: linear-gradient(135deg, var(--green) 0%, #37c7a4 60%, var(--blue) 100%);
  color: #06120a;
  box-shadow: 0 10px 30px rgba(79, 208, 90, 0.28);
}
.btn--primary:hover { box-shadow: 0 16px 40px rgba(21, 180, 240, 0.35); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.3); }

.section--light .btn--ghost {
  background: transparent;
  border-color: rgba(15, 22, 32, 0.2);
  color: var(--text-dark);
}
.section--light .btn--ghost:hover { background: rgba(15, 22, 32, 0.05); }

.btn--dark {
  background: var(--text-dark);
  color: #fff;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled,
.nav.is-open {
  background: rgba(7, 11, 17, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo img { height: 46px; width: auto; }
.nav__logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 15px;
  line-height: 1.05;
}
.nav__logo-text small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 600;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover, .nav__links a.is-active { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav__links .nav__cta {
  margin-left: 10px;
  padding: 11px 20px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #06120a;
  font-weight: 600;
}
.nav__links .nav__cta:hover { color: #06120a; filter: brightness(1.06); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  place-items: center;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: 0.25s;
}
.nav__toggle span::before, .nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: 0.25s;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px var(--gutter) 24px;
    background: rgba(7, 11, 17, 0.96);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 14px 12px; font-size: 16px; border-radius: 12px; }
  .nav__links .nav__cta { margin: 10px 0 0; text-align: center; }
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(72px, 9vw, 130px) 0;
  position: relative;
}
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--light {
  background: var(--paper);
  color: var(--text-dark);
}
.section--light h1, .section--light h2, .section--light h3 { color: var(--text-dark); }
.section--paper2 { background: var(--paper-2); }
.section--ink2 { background: var(--ink-2); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lede { margin-inline: auto; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(79, 208, 90, 0.35); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }

.section--light .card {
  background: #fff;
  border-color: var(--line-dark);
  box-shadow: 0 1px 0 rgba(15, 30, 45, 0.04);
}
.section--light .card:hover { box-shadow: var(--shadow-light); border-color: rgba(47, 166, 61, 0.4); }
.section--light .card p { color: var(--muted-dark); }

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--green-soft), var(--blue-soft));
  border: 1px solid rgba(79, 208, 90, 0.25);
  color: var(--green);
}
.card__icon svg { width: 26px; height: 26px; }
.section--light .card__icon { color: var(--green-deep); }

.card__num {
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--blue);
  margin-bottom: 14px;
  font-weight: 600;
}

/* Project cards */
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-3);
  isolation: isolate;
  display: block;
}
.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s;
  filter: saturate(0.9);
}
.project-card:hover img { transform: scale(1.06); filter: saturate(1.05); }
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 17, 0) 30%, rgba(7, 11, 17, 0.85) 100%);
  z-index: 1;
}
.project-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px;
  z-index: 2;
}
.project-card__tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #06120a;
  background: var(--green);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.project-card__tag--blue { background: var(--blue); }
.project-card h3 { color: #fff; font-size: 22px; margin: 0 0 6px; }
.project-card p { color: rgba(255, 255, 255, 0.78); font-size: 14.5px; margin: 0; }
.project-card--wide { grid-column: span 2; aspect-ratio: 16 / 7; }
@media (max-width: 640px) { .project-card--wide { grid-column: span 1; aspect-ratio: 4 / 3; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% 40%, rgba(21, 180, 240, 0.12), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(79, 208, 90, 0.1), transparent 60%),
    var(--ink);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  position: relative;
  z-index: 2;
}
.hero__copy { max-width: 620px; }
.hero__copy .h1 { margin-bottom: 22px; }
.hero__copy .lede { margin-bottom: 34px; }

.globe-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  width: min(100%, 640px);
  margin-inline: auto;
  justify-self: center;
}
.globe-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: grab;
  touch-action: pan-y;
}
.globe-wrap canvas:active { cursor: grabbing; }
.globe-wrap__glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 180, 240, 0.28), rgba(79, 208, 90, 0.08) 55%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.globe-fallback {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 40%),
    radial-gradient(circle at 60% 60%, #2fa63d, #0a3d66 70%, #04101f 100%);
  box-shadow: 0 0 80px rgba(21, 180, 240, 0.35), inset -30px -30px 80px rgba(0, 0, 0, 0.6);
  display: none;
}
.globe-wrap.no-webgl .globe-fallback { display: block; }
.globe-wrap.no-webgl canvas { display: none; }

.globe-legend {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  gap: 16px;
  font-size: 12.5px;
  color: var(--muted);
  z-index: 3;
}
.globe-legend span { display: inline-flex; align-items: center; gap: 7px; }
.globe-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px currentColor;
}
.globe-legend .dot-green { color: var(--green); background: var(--green); }
.globe-legend .dot-blue { color: var(--blue); background: var(--blue); }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--green), transparent);
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@media (max-width: 980px) {
  .hero { padding-top: 110px; min-height: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .globe-wrap { width: min(100%, 460px); order: -1; }
  .hero__scroll { display: none; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: clamp(40px, 6vw, 72px);
}
.stats > div {
  background: rgba(13, 19, 28, 0.9);
  padding: 26px 24px;
}
.stats b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.stats span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Image blocks ---------- */
.img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-frame--tall { aspect-ratio: 4 / 5; }
.img-frame--wide { aspect-ratio: 16 / 10; }
.section--light .img-frame { box-shadow: var(--shadow-light); border-color: var(--line-dark); }

.img-caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.section--light .img-caption { color: var(--muted-dark); }

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--muted);
}
.section--light .checklist li { color: var(--muted-dark); }
.checklist li::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-top: 2px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306120a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat,
    linear-gradient(135deg, var(--green), var(--blue));
}
.checklist strong { color: inherit; }
.checklist li strong { color: var(--text); }
.section--light .checklist li strong { color: var(--text-dark); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border-radius: 28px;
  padding: clamp(40px, 6vw, 80px);
  overflow: hidden;
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(79, 208, 90, 0.35), transparent 60%),
    radial-gradient(700px 300px at 100% 100%, rgba(21, 180, 240, 0.35), transparent 60%),
    var(--ink-3);
  border: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 54ch; }
.cta-band__art {
  justify-self: end;
  width: min(100%, 230px);
}
@media (max-width: 880px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__art { justify-self: start; width: 220px; }
}

/* Phone mock */
.phone {
  width: 100%;
  aspect-ratio: 9 / 18;
  border-radius: 38px;
  background: #0b1018;
  border: 2px solid rgba(255, 255, 255, 0.14);
  padding: 14px;
  box-shadow: var(--shadow);
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  background: #0b1018;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone__screen {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, #102031, #0a1420);
  display: flex;
  flex-direction: column;
  padding: 40px 16px 16px;
  gap: 12px;
}
.phone__row {
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  font-size: 11px;
  color: var(--muted);
}
.phone__row i { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--green), var(--blue)); }
.phone__row b { color: #fff; font-weight: 600; }
.phone__score {
  margin-top: auto;
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(79, 208, 90, 0.25), rgba(21, 180, 240, 0.25));
  border: 1px solid rgba(79, 208, 90, 0.35);
}
.phone__score small { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.phone__score strong { display: block; font-family: var(--font-head); font-size: 28px; color: #fff; }

/* ---------- Press logos ---------- */
.press-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.press-logo {
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  height: 92px;
  display: grid;
  place-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.press-logo:hover { transform: translateY(-3px); box-shadow: var(--shadow-light); }
.press-logo img {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.8;
  transition: filter 0.2s, opacity 0.2s;
}
.press-logo:hover img { filter: none; opacity: 1; }

/* News list */
.news-item {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid var(--line-dark);
}
.news-item:last-child { border-bottom: 1px solid var(--line-dark); }
.news-item__logo {
  height: 56px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.news-item__logo img { max-height: 34px; width: auto; }
.news-item h3 { font-size: 19px; margin: 0 0 6px; }
.news-item time { font-size: 13px; color: var(--muted-dark); letter-spacing: 0.06em; text-transform: uppercase; }
.news-item .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 760px) {
  .news-item { grid-template-columns: 1fr; gap: 14px; }
  .news-item__logo { width: 140px; }
}

/* ---------- Offices ---------- */
.office {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.office__city {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 6px;
}
.office__city i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}
.office__role {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  font-weight: 600;
}
.office address { font-style: normal; color: var(--muted); font-size: 15px; line-height: 1.55; }
.section--light .office { background: #fff; border-color: var(--line-dark); }
.section--light .office address { color: var(--muted-dark); }

/* ---------- Team ---------- */
.team-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.team-card__photo {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-soft), var(--blue-soft));
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 700;
  color: var(--green-deep);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 2px; font-size: 22px; }
.team-card .role { color: var(--blue-deep); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.team-card p { color: var(--muted-dark); font-size: 15.5px; }
@media (max-width: 640px) {
  .team-card { grid-template-columns: 1fr; }
  .team-card__photo { width: 160px; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--muted);
}
.section--light .field label { color: var(--muted-dark); }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(79, 208, 90, 0.18);
}
.section--light .field input, .section--light .field textarea {
  background: #fff;
  border-color: rgba(15, 22, 32, 0.16);
  color: var(--text-dark);
}
.field .error { color: #ff7b7b; font-size: 13px; margin-top: 6px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.alert {
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(79, 208, 90, 0.45);
  background: var(--green-soft);
  color: var(--text);
  font-weight: 500;
  margin-bottom: 24px;
}
.section--light .alert { color: var(--text-dark); }
.alert--error { border-color: rgba(255, 123, 123, 0.5); background: rgba(255, 123, 123, 0.1); }

.newsletter {
  display: flex;
  gap: 10px;
  max-width: 520px;
}
.newsletter input {
  flex: 1;
  font: inherit;
  font-size: 16px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  outline: none;
}
.newsletter input:focus { border-color: var(--green); }
@media (max-width: 520px) { .newsletter { flex-direction: column; } }

/* ---------- Footer ---------- */
.footer {
  background: #04070b;
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  color: var(--muted);
  font-size: 14.5px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer__brand img { height: 56px; width: auto; margin-bottom: 18px; background: #fff; border-radius: 10px; padding: 6px 10px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.footer__leaf { color: var(--green); }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 150px 0 70px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(21, 180, 240, 0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(79, 208, 90, 0.12), transparent 60%),
    var(--ink);
}
.page-hero .h1 { font-size: clamp(36px, 5.4vw, 64px); }
.page-hero--image {
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 70px;
}
.page-hero--image .page-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
}
.page-hero--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 17, 0.2), rgba(7, 11, 17, 0.9));
}
.page-hero .container { position: relative; z-index: 2; }

/* ---------- Project detail ---------- */
.project-detail { scroll-margin-top: 100px; }
.project-detail + .project-detail { margin-top: clamp(64px, 8vw, 110px); }
.project-detail .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}
.pill {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 166, 61, 0.35);
  background: var(--green-soft);
  color: var(--green-deep);
}
.pill--blue { border-color: rgba(21, 180, 240, 0.35); background: var(--blue-soft); color: var(--blue-deep); }

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.anchor-nav a {
  font-size: 13.5px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: 0.2s;
}
.anchor-nav a:hover { color: #fff; border-color: var(--green); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.gallery .img-frame:first-child { grid-row: span 2; aspect-ratio: auto; min-height: 420px; }
.gallery .img-frame { aspect-ratio: 4 / 3; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .img-frame:first-child { grid-row: auto; min-height: 0; aspect-ratio: 16 / 10; }
}

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 0; border-left: 2px solid var(--line-dark); margin-left: 8px; }
.timeline > div { position: relative; padding: 0 0 36px 32px; }
.timeline > div::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 0 0 4px var(--paper);
}
.timeline b { font-family: var(--font-head); display: block; font-size: 18px; margin-bottom: 4px; }
.timeline p { color: var(--muted-dark); margin: 0; }

/* ---------- PDF embed ---------- */
.pdf-frame {
  width: 100%;
  height: min(80vh, 900px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: #fff;
}

.pdf-mobile { display: none; }
@media (max-width: 760px) {
  .pdf-frame, .pdf-frame-note { display: none; }
  .pdf-mobile { display: block; }
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
}
.lang-switch a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.lang-switch a.is-active { background: #fff; color: var(--text-dark); }

/* ---------- Map ---------- */
.map-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  filter: grayscale(0.2) contrast(1.05);
}

/* ---------- Prose (legal) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose h3 { font-size: 19px; margin-top: 28px; }
.prose p, .prose li { color: var(--muted-dark); }

/* ---------- Reveal animation ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal[data-delay="1"] { transition-delay: 0.1s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.2s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll::after { animation: none; }
  .btn, .card, .project-card img { transition: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-2 { margin-bottom: 16px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.section--light .muted { color: var(--muted-dark); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--green);
  color: #06120a;
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }
