/* ==========================================================================
   Technofrigo by Clauger — Homepage
   ========================================================================== */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

:root {
  --page-pad: clamp(20px, 4vw, 64px);
  --col-max: 1440px;
}

.wrap {
  width: 100%;
  max-width: var(--col-max);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

/* ─────────────────────────────────────────────────────────────────────────
   TOP UTILITY BAR
   ───────────────────────────────────────────────────────────────────────── */
.utility {
  position: relative;
  z-index: 30;
  background: var(--tf-darkgreen);
  color: var(--fg-inverse-2);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}
.utility .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  gap: 16px;
}
.utility .group-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.utility .group-mark .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tf-sage); display: inline-block;
  transform: translateY(-1px);
}
.utility .group-mark strong { color: var(--fg-inverse); font-weight: 600; }
.utility nav { display: flex; gap: 22px; align-items: center; }
.utility nav a {
  color: var(--fg-inverse-2);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.utility nav a:hover { color: var(--fg-inverse); }
.utility .langs { display: inline-flex; gap: 2px; align-items: center; }
.utility .langs button {
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--fg-inverse-3);
  border-radius: 4px;
}
.utility .langs button.active { color: var(--fg-inverse); background: rgba(255,255,255,0.06); }

/* ─────────────────────────────────────────────────────────────────────────
   PRIMARY NAV — over the hero (transparent → solid on scroll)
   ───────────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              backdrop-filter var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-over-video { color: var(--fg-inverse); }
.nav.is-scrolled {
  background: rgba(14, 20, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255,255,255,0.06);
  color: var(--fg-inverse);
}
.nav .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 76px;
}
.nav .logo img { height: 38px; }
.nav .menu {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
}
.nav .menu a {
  position: relative;
  padding: 10px 14px;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav .menu a .caret {
  width: 8px; height: 8px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.5;
}
.nav .menu a:hover { background: rgba(255,255,255,0.08); }
.nav.is-scrolled .menu a:hover { background: rgba(255,255,255,0.10); }

/* ─── Solutions dropdown ─────────────────────────────────────────────── */
.nav .menu .has-dropdown { position: static; }
.nav .menu .has-dropdown > a {
  cursor: pointer;
}
.nav .menu .has-dropdown > a .caret {
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav .menu .has-dropdown.open > a .caret {
  transform: rotate(225deg) translate(2px,-2px);
}

.dropdown {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out),
    visibility 0s linear var(--dur-base);
  background: var(--surface);
  color: var(--fg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(14,20,16,0.18);
}
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.dropdown__inner {
  width: 100%;
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 48px var(--page-pad) 56px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
}
.dropdown__intro {
  border-right: 1px solid var(--border);
  padding-right: 48px;
}
.dropdown__eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 16px;
}
.dropdown__intro h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--fg);
}
.dropdown__intro h4 span { color: var(--tf-forest); font-style: italic; font-weight: 600; }
.dropdown__intro p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 28px;
}
.dropdown__all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  color: var(--tf-darkgreen);
  letter-spacing: 0;
}
.dropdown__all .arr {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid currentColor;
  display: grid; place-items: center;
}
.dropdown__all .arr svg { width: 12px; height: 12px; }
.dropdown__all:hover { color: var(--tf-forest); }

.dropdown__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  align-content: start;
}
.dd-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--fg);
  transition: background var(--dur-fast) var(--ease-out);
}
.dd-item:hover {
  background: var(--surface-muted);
}
.dd-item:hover .dd-num { color: var(--tf-forest); }
.dd-num {
  font-family: var(--font-mono), var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  padding-top: 4px;
  transition: color var(--dur-fast) var(--ease-out);
}
.dd-body { display: flex; flex-direction: column; gap: 4px; }
.dd-body strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.005em;
  color: var(--fg);
}
.dd-body em {
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-3);
}

@media (max-width: 1024px) {
  .dropdown__inner { grid-template-columns: 1fr; gap: 32px; padding: 32px var(--page-pad); }
  .dropdown__intro { border-right: 0; padding-right: 0; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
  .dropdown__grid { grid-template-columns: 1fr 1fr; }
}
.nav .cta-group { display: flex; align-items: center; gap: 12px; }
.nav .search {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid; place-items: center;
  opacity: 0.85;
}
.nav .search svg { width: 16px; height: 16px; stroke: currentColor; }
.nav .search:hover { opacity: 1; background: rgba(255,255,255,0.08); }

/* shared button */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.btn .arrow {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px;
}
.btn .arrow svg { width: 10px; height: 10px; }
.btn.primary {
  background: var(--tf-sage);
  color: var(--tf-darkgreen);
}
.btn.primary .arrow { background: var(--tf-darkgreen); color: var(--tf-sage); }
.btn.primary:hover { background: #b3d9b6; }
.btn.ghost-light {
  color: var(--fg-inverse);
  border-color: rgba(255,255,255,0.45);
}
.btn.ghost-light .arrow { border: 1px solid currentColor; }
.btn.ghost-light:hover { background: rgba(255,255,255,0.10); border-color: white; }
.btn.ghost-dark {
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn.ghost-dark .arrow { border: 1px solid currentColor; }
.btn.ghost-dark:hover { background: var(--state-hover-overlay); }

/* ─────────────────────────────────────────────────────────────────────────
   HERO — full-bleed corporate video
   ───────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  margin-top: -76px;          /* slide under sticky nav */
  height: 100vh;
  min-height: 720px;
  width: 100%;
  overflow: hidden;
  background: var(--tf-darkgreen);
  color: var(--fg-inverse);
}
.hero .video-stage {
  position: absolute; inset: 0;
  overflow: hidden;
}
/* keep YT iframe covering full hero regardless of viewport aspect (16:9 letterbox prevention) */
.hero .video-stage iframe {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: max(177.78vh, 100%);  /* 16/9 ratio against height */
  height: max(56.25vw, 100%);  /* 9/16 ratio against width  */
  min-width: 100%;
  min-height: 100%;
  pointer-events: none;
  border: 0;
}
.hero .video-stage .poster {
  position: absolute; inset: 0;
  background: center/cover no-repeat url("assets/photos/photo3.jpeg");
  transition: opacity var(--dur-slow) var(--ease-out);
  opacity: 1;
}
.hero[data-video-ready="1"] .video-stage .poster { opacity: 0; }

/* layered scrims for legibility */
.hero .scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,20,16,0.65) 0%, rgba(14,20,16,0.25) 28%, rgba(14,20,16,0.20) 55%, rgba(14,20,16,0.85) 100%),
    radial-gradient(ellipse at 18% 60%, rgba(14,20,16,0.55) 0%, rgba(14,20,16,0) 55%);
}
.hero .grain {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
}

.hero-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: 76px 1fr auto;
  height: 100%;
}
.hero-content {
  align-self: end;
  padding-bottom: clamp(48px, 8vh, 110px);
}
.hero-content .eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-inverse-2);
  margin-bottom: 28px;
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
}
.hero-content .eyebrow-row .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--tf-sage);
  box-shadow: 0 0 0 0 rgba(155, 204, 158, 0.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(155, 204, 158, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(155, 204, 158, 0); }
  100% { box-shadow: 0 0 0 0 rgba(155, 204, 158, 0); }
}
.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--fg-inverse);
  margin: 0 0 24px;
  max-width: 16ch;
  text-wrap: balance;
}
.hero-content h1 .sage { color: var(--tf-sage); font-style: italic; font-weight: 700; }
.hero-content .lede {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.55;
  color: var(--fg-inverse-2);
  max-width: 56ch;
  margin: 0 0 36px;
}
.hero-content .actions { display: inline-flex; gap: 12px; flex-wrap: wrap; }

/* hero footer rail */
.hero-foot {
  position: relative;
  z-index: 2;
  align-self: end;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 32px;
  padding-bottom: 26px;
  color: var(--fg-inverse-2);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.hero-foot .scroll-hint {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10.5px;
}
.hero-foot .scroll-hint .line {
  width: 64px; height: 1px; background: rgba(255,255,255,0.4);
  position: relative; overflow: hidden;
}
.hero-foot .scroll-hint .line::after {
  content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 30%;
  background: var(--tf-sage);
  animation: slide 2.6s ease-in-out infinite;
}
@keyframes slide {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(360%); }
}

.hero-foot .quick-meta {
  display: flex;
  justify-content: center;
  gap: 56px;
  font-family: var(--font-display);
}
.hero-foot .quick-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-foot .quick-meta .n {
  font-weight: 700;
  font-size: 22px;
  color: var(--fg-inverse);
  letter-spacing: -0.01em;
}
.hero-foot .quick-meta .l {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-inverse-3);
}

/* mute/unmute video control */
.video-controls {
  position: absolute;
  right: var(--page-pad);
  bottom: 26px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(14,20,16,0.55);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-inverse);
  cursor: pointer;
}
.video-controls .ic {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--tf-sage);
  color: var(--tf-darkgreen);
  display: grid; place-items: center;
}
.video-controls .ic svg { width: 14px; height: 14px; }
.video-controls:hover { border-color: rgba(255,255,255,0.45); }

/* ─────────────────────────────────────────────────────────────────────────
   MARKETS TICKER
   ───────────────────────────────────────────────────────────────────────── */
.ticker {
  background: var(--tf-darkgreen);
  color: var(--fg-inverse-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.ticker-row {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 22px 0;
  white-space: nowrap;
  animation: tickerScroll 50s linear infinite;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.ticker-row .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tf-sage);
  flex-shrink: 0;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────────────────────────────────────
   SECTION CHROME
   ───────────────────────────────────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section.dark { background: var(--tf-darkgreen); color: var(--fg-inverse); }
.section.cream { background: var(--tf-cream); }
.section.surface { background: var(--surface); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 64px;
}
.section-head .lhs .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 24px;
}
.section.dark .section-head .eyebrow { color: var(--fg-inverse-3); }
.section-head .lhs .eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--accent);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
}
.section.dark .section-head h2 { color: var(--fg-inverse); }
.section-head h2 .sage { color: var(--tf-sage); font-style: italic; font-weight: 600; }
.section-head .rhs {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 48ch;
  justify-self: end;
}
.section.dark .section-head .rhs { color: var(--fg-inverse-2); }

/* ─────────────────────────────────────────────────────────────────────────
   TECHNOLOGIES GRID
   ───────────────────────────────────────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tech-card {
  position: relative;
  background: var(--surface);
  padding: 36px 32px 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: background var(--dur-base) var(--ease-out);
  overflow: hidden;
}
.tech-card:hover { background: var(--tf-darkgreen); color: var(--fg-inverse); }
.tech-card:hover .tech-card__num { color: var(--tf-sage); }
.tech-card:hover .tech-card__cta { color: var(--tf-sage); }
.tech-card:hover .tech-card__cta .arrow { background: var(--tf-sage); color: var(--tf-darkgreen); border-color: var(--tf-sage); }

.tech-card__num {
  font-family: var(--font-mono), var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--fg-3);
  margin-bottom: 36px;
  transition: color var(--dur-base) var(--ease-out);
}
.tech-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 14px;
  text-wrap: balance;
}
.tech-card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 28px;
  flex: 1;
}
.tech-card:hover .tech-card__desc { color: var(--fg-inverse-2); }
.tech-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--fg);
  margin-top: auto;
  transition: color var(--dur-base) var(--ease-out);
}
.tech-card__cta .arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid; place-items: center;
  transition: all var(--dur-base) var(--ease-out);
}
.tech-card__cta .arrow svg { width: 12px; height: 12px; }

.tech-card__bg {
  position: absolute;
  right: -40px; bottom: -40px;
  width: 200px; height: 200px;
  opacity: 0.06;
  transform: rotate(-12deg);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 220px;
  line-height: 1;
  color: var(--tf-forest);
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────────────────
   END-TO-END CAPABILITY — chain w/ visual
   ───────────────────────────────────────────────────────────────────────── */
.e2e {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: stretch;
}
.e2e .photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 540px;
  background: center/cover no-repeat url("assets/photos/photo2.jpeg");
}
.e2e .photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,20,16,0.05) 0%, rgba(14,20,16,0.55) 100%);
}
.e2e .photo .badge {
  position: absolute;
  left: 24px; bottom: 24px;
  z-index: 2;
  display: flex; flex-direction: column;
  gap: 8px;
  padding: 18px 22px;
  background: rgba(14,20,16,0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  color: var(--fg-inverse);
}
.e2e .photo .badge .k {
  font-family: var(--font-display);
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--tf-sage);
}
.e2e .photo .badge .v {
  font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
}
.e2e .chain { display: flex; flex-direction: column; gap: 0; }
.e2e .chain .step {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  position: relative;
}
.e2e .chain .step:first-child { padding-top: 0; }
.e2e .chain .step:last-child { border-bottom: 0; }
.e2e .chain .step .ix {
  font-family: var(--font-mono), var(--font-display);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--fg-3);
  font-weight: 500;
}
.e2e .chain .step h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.e2e .chain .step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--fg-3);
  line-height: 1.5;
}
.e2e .chain .step .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--tf-pale-green);
  border: 2px solid var(--tf-sage);
}
.e2e .chain .step:hover { background: var(--surface-muted); }
.e2e .chain .step:hover .dot { background: var(--tf-sage); }

/* ─────────────────────────────────────────────────────────────────────────
   HERITAGE BAND
   ───────────────────────────────────────────────────────────────────────── */
.heritage { padding: clamp(96px, 14vw, 200px) 0; }
.heritage .marker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--tf-sage);
  margin-bottom: 40px;
}
.heritage .marker::before {
  content: ''; width: 36px; height: 1px; background: var(--tf-sage);
}
.heritage h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(72px, 13vw, 196px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: var(--fg-inverse);
  margin: 0 0 48px;
  text-wrap: balance;
}
.heritage h2 .sage { color: var(--tf-sage); font-style: italic; font-weight: 700; }
.heritage h2 .out {
  -webkit-text-stroke: 1.2px var(--tf-sage);
  color: transparent;
  font-style: italic;
  font-weight: 600;
}
.heritage .h-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.heritage .h-grid .summary {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-inverse-2);
  max-width: 56ch;
}
.heritage .h-grid .summary .accent { color: var(--fg-inverse); font-weight: 500; }
.heritage .timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}
.heritage .timeline .ev {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 14px;
}
.heritage .timeline .ev .y {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--tf-sage);
  margin-bottom: 6px;
}
.heritage .timeline .ev .t {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--fg-inverse-2);
}

.heritage-cta {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.btn.heritage-link {
  background: transparent;
  color: var(--fg-inverse);
  border: 1px solid var(--tf-sage);
  padding: 14px 24px;
  font-size: 14.5px;
}
.btn.heritage-link .arrow {
  background: var(--tf-sage);
  color: var(--tf-darkgreen);
  width: 22px; height: 22px;
}
.btn.heritage-link:hover {
  background: var(--tf-sage);
  color: var(--tf-darkgreen);
}
.btn.heritage-link:hover .arrow {
  background: var(--tf-darkgreen);
  color: var(--tf-sage);
}
.heritage-cta__hint {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-inverse-3);
}

/* ─────────────────────────────────────────────────────────────────────────
   QUALITY STRIP
   ───────────────────────────────────────────────────────────────────────── */
.quality {
  background: var(--surface-muted);
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quality .wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: center;
}
.quality h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.quality .sub {
  font-size: 13px;
  color: var(--fg-3);
  margin: 0;
}
.quality .certs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quality .certs .c {
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono), var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--fg-2);
}
.quality .certs .c.accent {
  background: var(--tf-darkgreen);
  color: var(--tf-sage);
  border-color: var(--tf-darkgreen);
}

/* ─────────────────────────────────────────────────────────────────────────
   PROJECTS TEASER
   ───────────────────────────────────────────────────────────────────────── */
.projects { background: var(--bg); }
.proj-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  grid-template-rows: 320px 280px;
  gap: 24px;
}
.proj {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: center/cover no-repeat;
  color: var(--fg-inverse);
  text-decoration: none;
  display: flex; align-items: flex-end;
  padding: 24px;
}
.proj::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,20,16,0) 30%, rgba(14,20,16,0.85) 100%);
}
.proj > * { position: relative; z-index: 2; }
.proj .meta {
  display: flex; flex-direction: column; gap: 4px;
}
.proj .tag {
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tf-sage);
}
.proj .t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 22ch;
}
.proj.a { grid-row: 1 / 3; background-image: url("assets/photos/projects/azerbaijan-psa-tailgas-1.jpg"); }
.proj.b { background-image: url("assets/photos/projects/us-ammonia-bog-1.png"); }
.proj.c { background-image: url("assets/photos/projects/north-sea-1.png"); }
.proj.d { grid-column: 2 / 4; background-image: url("assets/photos/photo3.jpeg"); }

/* ─────────────────────────────────────────────────────────────────────────
   CONTACT CTA
   ───────────────────────────────────────────────────────────────────────── */
.contact-cta {
  background: var(--tf-cream);
  padding: clamp(72px, 10vw, 144px) 0;
  position: relative;
  overflow: hidden;
}
.contact-cta::before {
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: var(--tf-pale-green);
  opacity: 0.5;
  filter: blur(60px);
}
.contact-cta .inner { position: relative; z-index: 2; }
.contact-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  max-width: 16ch;
  text-wrap: balance;
}
.contact-cta h2 .sage { color: var(--tf-forest); font-style: italic; font-weight: 700; }
.contact-cta p {
  font-size: 17px; line-height: 1.55; color: var(--fg-2);
  max-width: 56ch;
  margin: 0 0 36px;
}
.contact-cta .row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────────────────────────────────── */
footer {
  background: var(--tf-darkgreen);
  color: var(--fg-inverse-2);
  padding: 80px 0 32px;
}
footer .top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
footer .brand img { height: 44px; margin-bottom: 24px; }
footer .brand p { color: var(--fg-inverse-2); margin: 0 0 24px; font-size: 14px; max-width: 36ch; }
footer .brand .group {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-inverse-3);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-pill);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
footer .brand .group:hover { color: var(--tf-sage); border-color: rgba(155,204,158,0.5); }
footer .brand .group .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tf-sage); }
footer .brand .group .ext { font-size: 13px; opacity: 0.7; }

footer h6 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-inverse);
  margin: 0 0 18px;
}
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
footer ul a { color: var(--fg-inverse-2); text-decoration: none; font-size: 14px; }
footer ul a:hover { color: var(--tf-sage); }

footer .bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px;
  font-size: 12px;
  color: var(--fg-inverse-3);
}
footer .bottom .links { display: flex; gap: 24px; }
footer .bottom a { color: var(--fg-inverse-3); text-decoration: none; }
footer .bottom a:hover { color: var(--fg-inverse-2); }

/* ─────────────────────────────────────────────────────────────────────────
   Reduced motion
   ───────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ticker-row, .hero-foot .scroll-hint .line::after, .hero-content .eyebrow-row .pulse { animation: none !important; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Responsive — tablet
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav .menu { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section-head .rhs { justify-self: start; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .e2e { grid-template-columns: 1fr; }
  .e2e .photo { min-height: 360px; }
  .heritage .h-grid { grid-template-columns: 1fr; }
  .quality .wrap { grid-template-columns: 1fr; gap: 24px; }
  .proj-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; }
  .proj.a, .proj.d { grid-column: auto; grid-row: auto; height: 280px; }
  footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .tech-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .hero-foot .quick-meta { display: none; }
  footer .top { grid-template-columns: 1fr; }
}

footer .brand .socials {
  margin-top: 18px;
  display: inline-flex;
  gap: 8px;
}
footer .brand .socials a {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--fg-inverse-2);
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
footer .brand .socials a svg { width: 16px; height: 16px; display: block; }
footer .brand .socials a:hover {
  color: var(--tf-darkgreen);
  background: var(--tf-sage);
  border-color: var(--tf-sage);
}
