/* =========================================================
   esco — Web3 agency
   Palette: brand green #133F26 + brand beige #D6C297.
   Type: Jost (display, matches the esco wordmark) + Inter (text).
   All fonts, media and logos are self-hosted in /assets.
   ========================================================= */

@font-face {
  font-family: "Jost";
  src: url("./jost-latin-wght-normal.woff2") format("woff2-variations"),
       url("./jost-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  src: url("./jost-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("./inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("./inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("./inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  --bg: #020d07;
  --bg-2: #04150b;
  --surface: #071a0f;
  --green: #133f26;          /* brand */
  --green-2: #1f5a38;
  --green-3: #2e6b47;
  --beige: #d6c297;          /* brand */
  --sage: #d6c297;           /* accent = brand beige */
  --sage-2: #e4d6b5;
  --text: #edf3ee;
  --text-2: #c3cfc6;
  --muted: #7f9186;
  --line: rgba(214, 194, 151, 0.13);
  --line-2: rgba(214, 194, 151, 0.26);
  --btn: #d6c297;
  --btn-text: #0c2a18;

  --font-display: "Jost", "Futura", "Century Gothic", "Avenir Next", sans-serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }
::selection { background: var(--sage); color: var(--bg); }
:focus-visible { outline: 1px solid var(--sage); outline-offset: 4px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* subtle film grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Brand lockup ----------
   Geometry is fixed in the SVG: the x-height of "esco" equals the vertical
   side of the hexagon and the baseline sits on its lower corners. */
.lockup { height: 100%; width: auto; aspect-ratio: 365.3 / 118; color: var(--text); overflow: visible; }
.brand { display: block; height: 38px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px;
  font: 500 15px/1 var(--font-sans);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .3s ease, color .3s ease, border-color .3s ease, box-shadow .4s ease, transform .4s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { background: #e4d6b5; box-shadow: 0 10px 40px -10px rgba(214, 194, 151, 0.55); }
.btn-ghost { color: var(--text); border-color: var(--line-2); background: rgba(2, 13, 7, 0.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--sage); background: rgba(19, 63, 38, 0.45); }
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; }
.header .btn-sm { height: 48px; padding: 0 24px; }
.header .icon-btn { width: 48px; height: 48px; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  background: rgba(2, 13, 7, 0.3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: color .25s ease, border-color .25s ease, background .25s ease;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { color: #fff; border-color: var(--sage); background: rgba(19, 63, 38, 0.5); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 640px; max-height: 1100px;
  overflow: hidden;
  background: var(--bg);
}
.bg { position: absolute; inset: 0; overflow: hidden; }
.bg-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 50% 45%, #133f26 0%, #0a2616 45%, #020d07 100%);
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-canvas.is-live { opacity: 1; }
.bg-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(2, 13, 7, 0.45) 0%, rgba(2, 13, 7, 0) 22%),
    radial-gradient(46% 34% at 50% 48%, rgba(2, 13, 7, 0.5), transparent 80%),
    linear-gradient(180deg, rgba(5,23,13,0) 40%, rgba(5,23,13,.2) 55%, rgba(5,23,13,.45) 68%, rgba(5,23,13,.72) 82%, rgba(5,23,13,.9) 92%, #05170d 100%);
}

.page {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column;
  padding: clamp(18px, 3vh, 30px) var(--gutter) 0;
  max-width: 1440px; margin: 0 auto;
}

.header {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  animation: fadeDown .9s var(--ease) both;
}
.header .brand { justify-self: start; }
.header .nav { justify-self: center; }
.header .header-actions { justify-self: end; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } }

.nav {
  display: flex; align-items: stretch; gap: 0;
  height: 48px; padding: 4px;
  border-radius: 999px;
  background: rgba(2, 13, 7, 0.35);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
.nav-link {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 450; color: var(--text-2);
  transition: color .25s ease, background .25s ease;
}
.nav-link:hover { color: #fff; background: rgba(214, 194, 151, 0.1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; }

.hero-main {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(46px, 8.4vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text);
}
.headline .line { display: block; overflow: hidden; padding-bottom: 0.24em; margin-bottom: -0.18em; }
.headline .line-in { display: inline-block; animation: lineUp 1.2s var(--ease) both; animation-delay: .15s; }
.headline .l2 .line-in { color: var(--sage-2); animation-delay: .3s; }
@keyframes lineUp { from { transform: translateY(105%); } }

.subhead {
  max-width: 34ch;
  margin: clamp(18px, 3vh, 28px) 0 0;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--text-2);
}
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(26px, 4vh, 40px); }

.enter { animation: enter 1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes enter { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: 100%; max-width: 1040px; margin: 0 auto;
  border-top: 1px solid var(--line);
}
.stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: clamp(18px, 3vh, 28px) 12px clamp(22px, 3.6vh, 36px);
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; color: var(--text);
}
.stat-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* =========================================================
   Compact bar (after hero)
   ========================================================= */
.bar {
  position: fixed; z-index: 50;
  top: calc(12px + env(safe-area-inset-top, 0px)); left: 50%;
  display: flex; align-items: center; gap: 22px;
  padding: 5px 5px 5px 20px;
  border-radius: 999px;
  background: rgba(3, 18, 10, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 16px 50px -12px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -150%); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s ease;
}
.bar.is-visible { transform: translate(-50%, 0); opacity: 1; }
.bar-brand { height: 24px; display: block; }
.bar-nav { display: flex; gap: 0; }
.bar-nav a { display: inline-flex; align-items: center; height: 40px; padding: 0 15px; border-radius: 999px; font-size: 13.5px; color: var(--text-2); transition: color .2s, background .2s; }
.bar-nav a:hover, .bar-nav a.is-active { color: #fff; background: rgba(214, 194, 151, 0.12); }
.bar-burger { display: none; }

/* =========================================================
   Layout system
   One grid, one card, one section header — used everywhere.
   ========================================================= */
.section { position: relative; padding-block: clamp(88px, 10vw, 136px); }


.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}
.eyebrow, .label {
  margin: 0;
  font-size: 12px; font-weight: 500; line-height: 1.4;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--beige);
}

/* section header: title left, lead right, bottoms aligned */
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px; row-gap: 20px;
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.sec-head .h2 { grid-column: 1 / span 7; }
.sec-head-solo .h2 { grid-column: 1 / -1; }
.sec-lead {
  grid-column: 8 / span 5;
  margin: 0;
  font-size: clamp(15.5px, 1.25vw, 17px);
  line-height: 1.65;
  color: var(--text-2);
}
.sec-lead p { margin: 0 0 14px; }

/* the one card */
.card {
  display: flex; flex-direction: column;
  padding: clamp(24px, 2.4vw, 32px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 63, 38, 0.30), rgba(7, 26, 15, 0.42));
  transition: border-color .4s ease, transform .5s var(--ease), background .4s ease;
}
.card .eyebrow { margin-bottom: 18px; }
.card-title {
  margin: 0 0 12px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(21px, 1.7vw, 24px); line-height: 1.22; letter-spacing: -0.01em;
  color: var(--text);
}
.card p:not(.eyebrow) { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-2); }
.cards-3, .cards-4 { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* reveal: visible by default; only hidden when JS is present */
.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(26px); filter: blur(6px); }

/* reading paragraph (words light up on scroll) */
.reading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--text);
}
.reading .w { transition: opacity .5s ease; }
.js .reading .w { opacity: 0.18; }
.js .reading .w.on { opacity: 1; }

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, #05170d 0%, #04140b 12%, #03110a 26%, #020f08 42%, var(--bg) 60%); }
.about-main {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px;
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.about-main .reading { grid-column: 1 / span 8; }
.industries { grid-column: 9 / span 4; padding-top: 8px; }
.industries .eyebrow { margin-bottom: 10px; }
.industries-note { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.industries ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.industries li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  transition: padding .4s var(--ease);
}
.industries li span { font-family: var(--font-display); font-size: 20px; font-weight: 300; color: var(--text); }
.industries li em { font-style: normal; font-size: 13px; color: var(--muted); text-align: right; transition: color .3s ease; }
.industries li:hover { padding-left: 6px; }
.industries li:hover em { color: var(--beige); }
.industries li:last-child span { color: var(--beige); }

/* ---------- Clients: three tilted rings ---------- */
.clients { overflow: hidden; padding-block: clamp(80px, 9vw, 130px); }
.clients-h { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: clamp(38px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.02em; color: var(--text); text-align: center; }
.clients-more { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: 18px; color: var(--text-2); text-align: center; }
.ring-stage {
  --cw: 250px; --ch: 100px;
  position: relative; height: 640px; margin-bottom: 20px;
  perspective: 2200px; perspective-origin: 50% 30%;
  display: grid; place-items: center;
}
.ring-3d { position: relative; width: var(--cw); height: var(--ch); transform-style: preserve-3d; transform: translateY(-50px) rotateX(-7deg); }
.ring-row { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateY(var(--y)); }
.rc {
  position: absolute; inset: 0;
  display: grid; place-items: center; overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 63, 38, 0.8), rgba(4, 20, 11, 0.94));
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  will-change: transform, opacity;
  transition: border-color .35s ease, background .35s ease, box-shadow .35s ease;
}
.rc img {
  height: calc(46px * var(--k, 1)); width: auto; max-width: 76%; max-height: 60%;
  object-fit: contain; opacity: .85;
  transition: transform .45s var(--ease), opacity .3s ease;
}
.rc:hover, .rc:focus-visible {
  border-color: var(--beige);
  background: linear-gradient(180deg, rgba(31, 90, 56, 0.92), rgba(10, 38, 22, 0.96));
  box-shadow: inset 0 0 30px -10px rgba(214, 194, 151, 0.5);
}
.rc:hover img, .rc:focus-visible img { transform: scale(1.16); opacity: 1; }
.ring-floor {
  position: absolute; left: 50%; top: 50%;
  width: min(83vw, 1200px); height: min(83vw, 1200px);
  transform: translate(-50%, -50%) translateY(190px) rotateX(90deg);
  border-radius: 50%; border: 1px solid var(--line);
  background: radial-gradient(50% 50% at 50% 50%, rgba(214, 194, 151, 0.09), rgba(19, 63, 38, 0.28) 55%, transparent 72%);
  pointer-events: none;
}
/* green contour field: same animation as the hero, fading softly in and out */
.green-field { position: relative; overflow: hidden; isolation: isolate; }
.green-field::before {
  content: ""; position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background: linear-gradient(180deg,
    var(--bg) 0%, #03100a 8%, #05170d 17%, #081f12 27%, #0b2717 37%, #0d2d1b 46%, #0e301d 50%, #0d2d1b 54%, #0b2717 63%, #081f12 73%, #05170d 83%, #03100a 92%, var(--bg) 100%);
}
.backed { padding-block: clamp(180px, 18vw, 280px); }
.contour-canvas {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  display: block; pointer-events: none;
  opacity: 0; transition: opacity 1.4s ease;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.06) 10%, rgba(0,0,0,.22) 20%, rgba(0,0,0,.48) 30%, rgba(0,0,0,.78) 40%, #000 50%, rgba(0,0,0,.78) 60%, rgba(0,0,0,.48) 70%, rgba(0,0,0,.22) 80%, rgba(0,0,0,.06) 90%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.06) 10%, rgba(0,0,0,.22) 20%, rgba(0,0,0,.48) 30%, rgba(0,0,0,.78) 40%, #000 50%, rgba(0,0,0,.78) 60%, rgba(0,0,0,.48) 70%, rgba(0,0,0,.22) 80%, rgba(0,0,0,.06) 90%, transparent 100%);
}
.contour-canvas.is-live { opacity: 1; }
.services .contour-canvas.is-live { opacity: .55; }
.services .svc-panel { background: linear-gradient(180deg, rgba(10, 38, 22, 0.82), rgba(4, 20, 11, 0.9)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.services { padding-block: clamp(170px, 17vw, 260px); }
.backed-head { text-align: center; margin-bottom: clamp(40px, 5vw, 60px); }
.backer-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
  max-width: 1080px; margin: 0 auto;
}
.backer {
  --lh: 30px;
  height: 108px;
  display: grid; place-items: center; padding: 0 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(2, 13, 7, 0.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .4s ease, transform .5s var(--ease), background .4s ease;
}
.backer img { height: calc(var(--lh) * var(--k, 1)); width: auto; max-width: 100%; object-fit: contain; opacity: 0.7; transition: opacity .4s ease; }
.backer:hover { border-color: var(--line-2); transform: translateY(-4px); background: rgba(19, 63, 38, 0.55); }
.backer:hover img { opacity: 1; }

/* ---------- Trust ---------- */
.reading-wide { max-width: 32em; }
.trust .sec-head { align-items: center; }
.trust .sec-lead { font-family: var(--font-display); font-size: clamp(17px, 1.4vw, 20px); font-weight: 300; line-height: 1.55; color: var(--beige); padding-left: 20px; border-left: 1px solid var(--line-2); }

/* ---------- Services: tabs (desktop) / accordion (mobile) ---------- */
.svc {
  display: grid;
  grid-template-columns: minmax(280px, 3.4fr) 8.6fr;
  grid-template-rows: repeat(8, auto) 1fr;
  column-gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.svc-tab {
  grid-column: 1;
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 18px 4px;
  border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--text-2);
  font: 400 15.5px/1.35 var(--font-sans); text-align: left;
  cursor: pointer;
  transition: color .3s ease;
}
.svc-tab:first-of-type { border-top: 1px solid var(--line); }
.svc-n { width: 24px; flex-shrink: 0; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); font-variant-numeric: tabular-nums; transition: color .3s ease; }
.svc-name { flex: 1; }
.svc-chev { width: 16px; height: 16px; flex-shrink: 0; opacity: 0; transform: translateX(-6px); transition: opacity .3s ease, transform .4s var(--ease); color: var(--beige); }
.svc-tab:hover { color: var(--text); }
.svc-tab[aria-expanded="true"] { color: var(--text); }
.svc-tab[aria-expanded="true"] .svc-n { color: var(--beige); }
.svc-tab[aria-expanded="true"] .svc-chev { opacity: 1; transform: none; }
.badge {
  padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--btn-text); background: var(--beige);
}

.svc-panel {
  grid-column: 2; grid-row: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 36px;
  min-height: 100%;
  padding: clamp(28px, 3vw, 44px);
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(19, 63, 38, 0.34), rgba(7, 26, 15, 0.5));
  visibility: hidden; opacity: 0;
  transition: opacity .5s ease, visibility 0s linear .5s;
}
.svc-panel.is-open { visibility: visible; opacity: 1; transition: opacity .5s ease; }
.svc-text { min-width: 0; }
.svc-text h3 {
  margin: 0 0 16px;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; letter-spacing: -0.02em;
}
.svc-lead { margin: 0 0 24px; font-size: 16px; line-height: 1.65; color: var(--text-2); }
.svc-text .eyebrow { margin: 26px 0 12px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 1px; background: var(--beige); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; line-height: 1.3; color: var(--text-2); }
.chips-lg li { padding: 10px 16px; font-size: 14px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.flow { list-style: none; margin: 0; padding: 0; counter-reset: f; display: grid; gap: 0; border-top: 1px solid var(--line); }
.flow li { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.flow b { font-weight: 500; color: var(--beige); }
.svc-result { display: grid; grid-template-columns: 90px 1fr; gap: 16px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.6; color: var(--text); }
.svc-result span { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--beige); padding-top: 2px; }

.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--beige); padding-bottom: 5px; border-bottom: 1px solid var(--line-2); transition: border-color .3s ease; }
.text-link svg { width: 15px; height: 15px; }
.text-link:hover { border-color: var(--beige); }
.svc-link { margin-top: 22px; }
.svc-hook { display: block; margin-bottom: 12px; font-family: var(--font-display); font-weight: 300; font-size: clamp(21px, 1.8vw, 25px); line-height: 1.3; color: var(--beige); }
.svc-result { color: var(--text); }

/* uniform visual for every service: orbit rings around the service icon */
.svc-art {
  position: relative; margin: 0; align-self: stretch;
  min-height: 360px;
  display: grid; place-items: center;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    radial-gradient(50% 45% at 50% 50%, rgba(214, 194, 151, 0.07), transparent 70%),
    radial-gradient(80% 70% at 50% 50%, #133f26 0%, #0a2616 55%, #04140b 100%);
  overflow: hidden;
}
.art-ring {
  position: absolute; left: 50%; top: 50%;
  border-radius: 50%;
  border: 1px solid rgba(214, 194, 151, 0.22);
  transform: translate(-50%, -50%);
}
.art-ring i {
  position: absolute; left: 50%; top: -3.5px; width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%; background: var(--beige); box-shadow: 0 0 12px 2px rgba(214, 194, 151, 0.5);
}
.art-ring.r1 { width: 112px; height: 112px; animation: spinc 16s linear infinite; }
.art-ring.r2 { width: 160px; height: 160px; border-color: rgba(214, 194, 151, 0.14); animation: spinc 28s linear infinite reverse; }
.art-ring.r3 { width: 206px; height: 206px; border-style: dashed; border-color: rgba(214, 194, 151, 0.12); animation: spinc 44s linear infinite; }
.art-ring.r2 i { width: 5px; height: 5px; top: -2.5px; margin-left: -2.5px; }
.art-ring.r3 i { width: 4px; height: 4px; top: -2px; margin-left: -2px; opacity: .7; }
@keyframes spinc { to { transform: translate(-50%, -50%) rotate(360deg); } }
.art-core {
  position: relative; z-index: 1;
  width: 78px; height: 78px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1f5a38, #0b2616 70%);
  box-shadow: 0 0 0 1px rgba(214, 194, 151, 0.28), 0 0 60px 6px rgba(214, 194, 151, 0.1), inset -8px -10px 24px rgba(0, 0, 0, 0.4);
}
.art-core svg { width: 44%; height: 44%; color: var(--beige); }
.art-core .art-mark { width: 42%; height: 48%; }
.art-n { position: absolute; left: 20px; bottom: 16px; font-family: var(--font-display); font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.svc-panel.is-open .art-core { animation: pop .8s var(--ease) both; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.footnote { margin: 28px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; }
.contact::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: 0; right: 0; bottom: -280px; height: 820px;
  background: radial-gradient(55% 50% at 50% 60%, rgba(19, 63, 38, 0.42) 0%, rgba(19, 63, 38, 0.24) 35%, rgba(19, 63, 38, 0.08) 65%, transparent 85%);
}
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 40px; align-items: start; }
.contact-info { grid-column: 1 / span 5; }
.contact-lead { margin: 22px 0 36px; max-width: 30ch; font-family: var(--font-display); font-weight: 300; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.45; color: var(--text-2); }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact-list a {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 300; font-size: clamp(20px, 1.8vw, 26px); color: var(--text);
  transition: color .25s ease, padding .4s var(--ease);
}
.contact-list a:hover { color: var(--beige); padding-left: 8px; }
.contact-list svg { width: 20px; height: 20px; color: var(--beige); flex-shrink: 0; }
.form { grid-column: 7 / span 6; padding: clamp(26px, 3vw, 40px); border-radius: 24px; }
.form-title { margin: 0 0 24px; font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 2.4vw, 34px); letter-spacing: -0.02em; }
.field { position: relative; display: block; margin-bottom: 12px; }
.field input, .field textarea {
  width: 100%; padding: 26px 18px 10px; border-radius: 14px;
  border: 1px solid var(--line-2); background: rgba(2, 13, 7, 0.45);
  color: var(--text); font: 400 16px/1.4 var(--font-sans); outline: none; resize: vertical;
  transition: border-color .25s ease, background .25s ease;
}
.field textarea { min-height: 120px; }
.field span { position: absolute; left: 19px; top: 18px; font-size: 15.5px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .25s var(--ease), color .25s ease; }
.field input:focus, .field textarea:focus { border-color: var(--beige); background: rgba(2, 13, 7, 0.65); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-10px) scale(0.74); color: var(--beige); }
.field.is-error input { border-color: #d38b7a; }
.form-submit { width: 100%; margin-top: 8px; height: 56px; }
.form-status { min-height: 1.5em; margin: 14px 0 0; font-size: 14px; color: var(--sage-2); text-align: center; }
.form-status.is-error { color: #e0a595; }

/* ---------- Footer ---------- */
.footer { position: relative; background: transparent; padding-block: clamp(40px, 5vw, 64px) calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { height: 40px; }
.f-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.f-nav a { font-size: 14.5px; color: var(--text-2); transition: color .2s ease; }
.f-nav a:hover { color: #fff; }
.f-social { display: flex; gap: 8px; }
.footer-bottom {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px 40px; align-items: center;
  margin-top: clamp(32px, 4vw, 48px); padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
.f-addr { display: flex; align-items: flex-start; gap: 10px; margin: 0; line-height: 1.5; }
.f-addr svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--sage); }
.f-mail:hover { color: var(--text); }
.copy { margin: 0; }

/* =========================================================
   Mobile menu
   ========================================================= */
.menu-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(1, 8, 4, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: fade .3s ease both;
}
@keyframes fade { from { opacity: 0; } }
.mobile-menu {
  position: fixed; z-index: 95;
  top: calc(84px + env(safe-area-inset-top, 0px)); left: 16px; right: 16px;
  padding: 10px 22px 22px;
  border-radius: 24px;
  background: #06170d;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  display: flex; flex-direction: column;
  animation: menuIn .45s var(--ease) both;
}
@keyframes menuIn { from { opacity: 0; transform: translateY(-10px) scale(0.98); } }
.m-link {
  padding: 16px 2px;
  font-family: var(--font-display); font-weight: 300; font-size: 28px; letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
  animation: linkIn .5s var(--ease) both;
}
.m-link:nth-child(1) { animation-delay: .05s; }
.m-link:nth-child(2) { animation-delay: .09s; }
.m-link:nth-child(3) { animation-delay: .13s; }
.m-link:nth-child(4) { animation-delay: .17s; }
@keyframes linkIn { from { opacity: 0; transform: translateY(10px); } }
.m-foot { display: flex; gap: 8px; margin-top: 20px; animation: linkIn .5s .22s var(--ease) both; }
.m-cta { flex: 1; height: 44px; }


/* ---------- Footer: official channels ---------- */
.official {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 28px;
  margin-top: clamp(28px, 4vw, 40px); padding: 18px 22px;
  border-radius: 16px; border: 1px solid var(--line); background: rgba(19, 63, 38, 0.18);
}
.official-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; font-weight: 500; color: var(--beige); white-space: nowrap; }
.official-title svg { width: 18px; height: 18px; }
.official-text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.official-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.official-list a { display: block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); transition: color .25s, border-color .25s; }
.official-list a:hover { color: var(--beige); border-color: var(--beige); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .header-actions .icon-btn { display: none; }
  .bar-nav { display: none; }
  .svc { grid-template-columns: minmax(250px, 5fr) 7fr; }
  .svc-panel { grid-template-columns: 1fr; }
  .svc-art { min-height: 260px; order: -1; }
  .official { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .sec-head .h2, .sec-lead { grid-column: 1 / -1; }
  .about-main .reading, .industries { grid-column: 1 / -1; }
  .industries ul { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
  .cards-3 { grid-template-columns: 1fr; }
  .contact-info, .form { grid-column: 1 / -1; }
  .backer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { grid-template-columns: 1fr; }
  .reading-wide { max-width: none; }

  /* services become an accordion */
  .svc { display: block; }
  .svc-tab { padding: 20px 2px; font-size: 17px; }
  .svc-tab .svc-chev { opacity: .6; transform: rotate(90deg); }
  .svc-tab[aria-expanded="true"] .svc-chev { transform: rotate(-90deg); opacity: 1; }
  .svc-panel { display: none; margin: 4px 0 16px; padding: 22px; border-radius: 20px; visibility: visible; opacity: 1; }
  .svc-panel.is-open { display: grid; animation: fadeIn .45s ease both; }
  .svc-text h3 { display: none; }
  .svc-art { min-height: 220px; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 760px) {
  .ring-stage { --cw: 136px; --ch: 58px; height: 380px; margin-bottom: 8px; perspective: 1100px; }
  .ring-3d { transform: translateY(-10px) rotateX(-7deg); }
  .rc img { height: calc(28px * var(--k, 1)); }
  .rc { border-radius: 10px; }
  .ring-row { transform: translateY(calc(var(--y) * .66)); }
  .ring-floor { width: 88vw; height: 88vw; transform: translate(-50%, -50%) translateY(110px) rotateX(90deg); }
}

@media (max-width: 720px) {
  .nav, .header-actions { display: none; }
  .brand { height: 30px; }
  .header .burger { grid-column: 3; justify-self: end; }
  .burger, .bar-burger {
    display: grid; place-items: center;
    width: 44px; height: 44px; padding: 0;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: rgba(2, 13, 7, 0.4);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    cursor: pointer; position: relative;
  }
  .burger span, .bar-burger span {
    position: absolute; left: 50%; top: 50%;
    width: 16px; height: 1.5px; margin: -0.75px 0 0 -8px;
    background: var(--text); border-radius: 2px;
    transition: transform .4s var(--ease);
  }
  .burger span:first-child, .bar-burger span:first-child { transform: translateY(-3.5px); }
  .burger span:last-child, .bar-burger span:last-child { transform: translateY(3.5px); }
  .burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
  body.menu-open .page { z-index: 80; }
  .hero-main, .stats { transition: opacity .3s ease; }
  body.menu-open .hero-main, body.menu-open .stats { opacity: 0; pointer-events: none; }

  .bar { left: 16px; right: 16px; transform: translateY(-150%); gap: 10px; padding-left: 16px; justify-content: space-between; }
  .bar.is-visible { transform: translateY(0); }
  .bar-brand { height: 22px; margin-right: auto; }

  .headline { font-size: clamp(40px, 12.4vw, 72px); letter-spacing: -0.03em; }
  .subhead { max-width: 30ch; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat { padding: 16px 8px 18px; }

  .cols-2 { grid-template-columns: 1fr; }
  .flow li, .svc-result { grid-template-columns: 1fr; gap: 4px; }
  .backer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .backer { height: 88px; --lh: 24px; padding: 0 14px; }
  .trust .sec-head { align-items: center; }
.trust .sec-lead { padding-left: 16px; }
  .f-nav { gap: 20px; }
}

@media (max-width: 380px) {
  .cta-row .btn { height: 48px; padding: 0 20px; }
}

@media (max-height: 720px) and (min-width: 721px) {
  .headline { font-size: clamp(44px, 7vw, 100px); }
  .stat { padding-block: 14px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; filter: none; }
  .js .reading .w { opacity: 1; }
  html { scroll-behavior: auto; }
}
