
/* =====================================================================
   ESS shared theme — used by every page (header, footer, type, buttons,
   and the original sub-page components: .hero, .card, .project-card …)
   ===================================================================== */
:root {
  --bg: #1d2023;
  --bg-2: #24282b;
  --bg-3: #2b3034;
  --panel: rgba(36, 40, 43, 0.72);
  --line: rgba(220, 226, 230, 0.12);
  --line-2: rgba(220, 226, 230, 0.22);
  --text: #d9dde0;
  --muted: #979fa5;
  --mint: #22d3ee;
  --mint-2: #0fb5cf;
  --sage: #22d3ee;
  --peach: #67e3f5;
  --rose: #a5eefa;
  --grad: linear-gradient(95deg, #22d3ee 0%, #7fe6f6 100%);
  --radius: 22px;
  --display: "Lexend", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; line-height: 1.1; letter-spacing: -0.01em; }
::selection { background: var(--mint); color: #0b1d22; }

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font: 500 12px/1.4 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--mint); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.caps { text-transform: uppercase; font-weight: 300; font-size: clamp(28px, 3.6vw, 46px); letter-spacing: .01em; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 36px; }

/* ---------- Buttons (outlined like the reference "LOGIN / TICKETS") ---------- */
.btn-outline, .btn-ghost, .btn-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 16px 28px; border-radius: 999px; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn-outline { border: 1px solid rgba(34,211,238,.55); color: var(--text); background: rgba(34,211,238,.06); }
.btn-outline:hover { background: var(--mint); border-color: var(--mint); color: #0b1d22; transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(34,211,238,.6); }
.btn-ghost { color: var(--muted); border: 1px solid transparent; background: none; }
.btn-ghost:hover { color: var(--text); border-color: var(--line-2); }
.btn-solid { border: 0; background: var(--mint); color: #0b1d22; font-weight: 600; }
.btn-solid:hover { background: #5fe0f3; transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(34,211,238,.6); }
.btn-sm { padding: 11px 18px; font-size: 12px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 22px clamp(16px, 4vw, 56px);
  transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(29, 32, 35, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 14px; padding-bottom: 14px; border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 42px; width: auto; }
.brand span { font: 400 11px/1.25 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line-2); padding-left: 12px; }
.site-nav { display: flex; gap: clamp(18px, 3vw, 44px); }
.site-nav a { font: 500 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: #c8cdd1; position: relative; padding: 8px 0; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--grad); transition: right .35s var(--ease); }
.site-nav a:hover::after, .site-nav a.is-current::after { right: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .3s; }
.nav-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-header { gap: 12px; }
  .brand span, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    background: rgba(24, 27, 30, .97); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
  }
  .site-nav a { font-size: 18px; }
  .nav-open .site-nav { opacity: 1; pointer-events: auto; }
}

/* ---------- Footer ---------- */
.site-footer, footer {
  position: relative; z-index: 2; background: #17191c; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  padding: 36px clamp(16px, 4vw, 56px); color: var(--muted); font-size: 14px; text-align: left;
}
.site-footer img { height: 34px; width: auto; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* =====================================================================
   SUB-PAGES — restyle the original markup (Services / Projects /
   Clients / Contact / Confirmation) without changing their content
   ===================================================================== */
body.sub { padding-top: 0; }
body.sub .hero {
  position: relative; min-height: 70vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 160px clamp(16px, 6vw, 96px) 72px; text-align: left; color: var(--text); overflow: hidden;
  background-color: var(--bg-2); background-size: cover; background-position: center;
  isolation: isolate;
}
body.sub .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(29,32,35,.35) 0%, rgba(29,32,35,.55) 55%, var(--bg) 100%), linear-gradient(90deg, rgba(29,32,35,.85), rgba(29,32,35,.1)); }
body.sub .hero { filter: none; }
body.sub .hero h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 300; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px; max-width: 14ch; }
body.sub .hero p { color: #c4cacf; font-size: clamp(16px, 1.4vw, 20px); max-width: 52ch; }
body.sub .hero[class*="hero-bg"] { filter: grayscale(.25); }

body.sub .section { max-width: 1240px; margin: 0 auto; padding: 80px clamp(16px, 4vw, 40px); }
body.sub .section > h2 { font-size: clamp(28px, 3.4vw, 44px); text-transform: uppercase; text-align: left !important; margin-bottom: 40px !important; }

/* Cards (Services) */
body.sub .services-grid, body.sub .clients-grid, body.sub .projects-grid {
  display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
body.sub .card, body.sub .client-card, body.sub .project-card {
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: none; color: var(--text);
  transition: transform .5s var(--ease), border-color .4s; transform-style: preserve-3d;
}
body.sub .card { padding: 32px; }
body.sub .card:hover, body.sub .client-card:hover, body.sub .project-card:hover { border-color: rgba(34, 211, 238, .45); }
body.sub .card h3, body.sub .client-card h3, body.sub .project-card h3 { color: var(--text); font-size: 22px; margin-bottom: 14px; }
body.sub .card h3::before { content: ""; display: block; width: 36px; height: 2px; background: var(--grad); margin-bottom: 18px; }
body.sub .card p, body.sub .client-card p, body.sub .project-card p { color: var(--muted); font-size: 15px; }
body.sub .card ul { padding-left: 18px; color: var(--muted); }

body.sub .client-card, body.sub .project-card { overflow: hidden; }
body.sub .client-card img, body.sub .project-card img { width: 100%; height: 230px; object-fit: cover; filter: grayscale(.35); transition: filter .5s, transform .8s var(--ease); cursor: zoom-in; }
body.sub .project-card:hover img, body.sub .client-card:hover img { filter: none; transform: scale(1.04); }
body.sub .client-card .content, body.sub .project-card .content { padding: 24px 26px 28px; }
body.sub .project-card .content p { margin: 2px 0; }

/* Lightbox (Projects / Clients) */
#lightbox { position: fixed; inset: 0; background: rgba(16, 18, 20, .9); display: none; justify-content: center; align-items: center; z-index: 9999; cursor: zoom-out; backdrop-filter: blur(6px); }
#lightbox img { max-width: 92%; max-height: 88%; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }

/* Contact form */
body.sub form, .form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; margin: 0 auto;
  background: transparent; padding: 0; box-shadow: none;
}
body.sub form > div { display: flex; flex-direction: column; gap: 8px; grid-column: span 2; }
body.sub form > div:nth-child(1), body.sub form > div:nth-child(2) { grid-column: span 1; }
body.sub label, .form label { font: 500 12px/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
body.sub input, body.sub textarea, .form input, .form textarea {
  width: 100%; font: 400 16px/1.5 var(--body); color: var(--text); background: rgba(255,255,255,.03);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; transition: border-color .3s, background .3s;
}
body.sub textarea, .form textarea { min-height: 150px; resize: vertical; }
body.sub input:focus, body.sub textarea:focus, .form input:focus, .form textarea:focus { outline: none; border-color: var(--mint); background: rgba(34,211,238,.05); }
body.sub form button { grid-column: span 2; border: 0; border-radius: 999px; padding: 18px; background: var(--mint); color: #0b1d22; font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
body.sub form button:hover { background: #5fe0f3; }
@media (max-width: 640px) {
  body.sub form, .form { grid-template-columns: 1fr; }
  body.sub form > div, body.sub form > div:nth-child(1), body.sub form > div:nth-child(2), body.sub form button { grid-column: 1 / -1; }
}

/* Confirmation */
body.sub main.confirm { min-height: 80vh; display: grid; place-items: center; padding: 140px 16px 60px; }
body.sub main.confirm .card { max-width: 520px; text-align: center; padding: 48px 36px; }
body.sub main.confirm .card h1 { font-size: 44px; margin: 10px 0 14px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.sub main.confirm .card h3::before { display: none; }
body.sub .check { font-size: 0; width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; border: 1px solid var(--mint); position: relative; }
body.sub .check::after { content: ""; position: absolute; left: 22px; top: 16px; width: 14px; height: 24px; border: solid var(--mint); border-width: 0 2px 2px 0; transform: rotate(45deg); }
body.sub .btn { display: inline-block; margin-top: 26px; text-decoration: none; border: 1px solid rgba(34,211,238,.55); border-radius: 999px; background: rgba(34,211,238,.06); padding: 15px 28px; font: 500 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; }
body.sub .btn:hover { background: var(--mint); color: #0b1d22; }

/* Projects page: project opened from the home page */
body.sub .project-card { scroll-margin-top: 110px; }
body.sub .project-card.is-target { border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint), 0 30px 70px -30px rgba(34,211,238,.45); animation: target-glow 2.4s var(--ease) 1; }
body.sub .project-card.is-target img { filter: none; }
@keyframes target-glow { 0%, 30% { box-shadow: 0 0 0 4px rgba(34,211,238,.55), 0 30px 70px -30px rgba(34,211,238,.6); } 100% { box-shadow: 0 0 0 1px var(--mint), 0 30px 70px -30px rgba(34,211,238,.45); } }

/* =====================================================================
   Project popup (Projects page) — the card itself is rearranged into the popup.
   .pm-frame is the outline (border, background, shadow): the only thing that changes shape.
   ===================================================================== */
html { scrollbar-gutter: stable; }                       /* locking scroll must not shift the layout */
html.pm-lock { overflow: hidden; }
body.sub .project-card { cursor: pointer; }
body.sub .project-card:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.pm-holder { visibility: hidden; }
.pm-back { position: fixed; inset: 0; z-index: 9990; display: none; background: rgba(16, 18, 20, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pm-back.show { display: block; }
.pm-frame { position: fixed; z-index: 9991; display: none; border-radius: var(--radius); pointer-events: none;
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid rgba(34, 211, 238, .45);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9), 0 30px 60px -40px rgba(34, 211, 238, .4); }
.pm-frame.show { display: block; }

/* the card while it is the popup */
body.sub .project-card.pm-card { position: fixed; z-index: 9992; margin: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); cursor: default;
  background: transparent; border-color: transparent; box-shadow: none; transform: none; opacity: 1; }
body.sub .project-card.pm-card img { width: 100%; height: 100%; min-height: 0; max-height: 100%; align-self: stretch; object-fit: cover; filter: none; transform: none; cursor: default; border-radius: var(--radius) 0 0 var(--radius); }
body.sub .project-card.pm-card .content { padding: 48px 40px 40px; overflow-y: auto; min-width: 0; }
body.sub .project-card.pm-card h3 { font-size: 30px; line-height: 1.15; margin-bottom: 18px; }
body.sub .project-card.pm-card .content { padding-right: 70px; }
body.sub .project-card.pm-card p { max-width: var(--tw, none); }
/* while moving: nothing clips the travelling pieces, and no CSS transitions interfere */
body.sub .project-card.pm-moving, body.sub .project-card.pm-moving * { transition: none !important; }
body.sub .project-card.pm-moving, body.sub .project-card.pm-moving .content { overflow: visible; }
body.sub .project-card.pm-closing { position: relative; z-index: 9993; background: transparent; border-color: transparent; }
.pm-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  color: var(--text); background: rgba(29, 32, 35, .75); border: 1px solid var(--line-2); backdrop-filter: blur(6px); transition: background .3s, color .3s; }
.pm-close:hover { background: var(--mint); color: #0b1d22; border-color: var(--mint); }
@media (max-width: 760px) {
  body.sub .project-card.pm-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 42%) minmax(0, 1fr); }
  body.sub .project-card.pm-card img { border-radius: var(--radius) var(--radius) 0 0; }
  body.sub .project-card.pm-card .content { padding: 24px 22px 28px; }
  body.sub .project-card.pm-card h3 { font-size: 24px; }
}

/* Text can't be selected anywhere on the site, except inside form fields */
html, body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable] { -webkit-user-select: text; user-select: text; }

/* while the card morphs, the photo's corners are drawn by the animation itself */
body.sub .project-card.pm-moving img { border-radius: 0 !important; }

/* =====================================================================
   ESS home — 3D scroll story + content sections
   ===================================================================== */
body.home { background: var(--bg); }


body.home #scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }

body.home .scene-vignette { display: none; }

/* Fallback when WebGL is not available */
body.home main { position: relative; z-index: 1; }

/* ---------- Story steps ---------- */
body.home .step { position: relative; min-height: 120vh; display: flex; align-items: center; padding: 120px clamp(16px, 5vw, 80px); }

body.home .step.comp { min-height: 115vh; }

body.home .step.outro { min-height: 70vh; }

body.home .panel {
  position: relative; max-width: 470px; padding: 36px 36px 34px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; transform: translateY(50px) scale(.98); transition: opacity 1s var(--ease), transform 1s var(--ease);
}

body.home .panel.in { opacity: 1; transform: none; }

body.home .panel-right { margin-left: auto; }

body.home .panel h2 { font-size: clamp(28px, 3.2vw, 42px); margin-bottom: 18px; }

body.home .panel p { color: #bcc3c8; font-size: 16px; }

body.home .panel .num { font: 500 11px/1 var(--body); color: #0b1d22; background: var(--mint); border-radius: 20px; padding: 5px 9px; letter-spacing: .08em; }


body.home .mini-list { list-style: none; margin-top: 22px; display: grid; gap: 8px; }

body.home .mini-list li { display: flex; align-items: center; gap: 14px; font-size: 15px; padding: 10px 0; border-top: 1px solid var(--line); }

body.home .mini-list span { font: 500 12px/1 var(--body); color: var(--mint); width: 22px; }


body.home .specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }

body.home .specs div { border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px; background: rgba(255,255,255,.02); }

body.home .specs b { display: block; font: 500 11px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: 4px; }

body.home .specs span { font-size: 13px; color: #cdd2d6; line-height: 1.35; display: block; }


body.home .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }

body.home .stats b { display: block; font: 200 clamp(34px, 3.4vw, 48px)/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

body.home .stats span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Hero (reference: "Creativity never ends") ---------- */
body.home .hero { min-height: 100vh; padding-top: 140px; overflow: hidden; isolation: isolate; }

body.home .hero-media { position: absolute; inset: 0; z-index: -1; background: var(--bg); }

body.home .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; transform: scale(1.06); filter: grayscale(.35) contrast(1.05); transition: opacity 1.6s var(--ease), transform 7s linear; }

body.home .hero-slide.on { opacity: 1; transform: scale(1); animation: hero-in 2.4s var(--ease) both; }

@keyframes hero-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }

body.home .hero-media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(29,32,35,.94) 0%, rgba(29,32,35,.78) 38%, rgba(29,32,35,.35) 72%, rgba(29,32,35,.55) 100%),
  linear-gradient(180deg, rgba(29,32,35,.55) 0%, transparent 22%, transparent 70%, var(--bg) 100%); }

@media (prefers-reduced-motion: reduce) { 
body.home .hero-slide { transition: opacity .6s; transform: none !important; } }

body.home .hero .panel { background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; max-width: 640px; }

body.home .hero h1 .l1 { color: var(--text); -webkit-text-fill-color: var(--text); }

body.home .hero h1 { font-size: clamp(54px, 8.4vw, 124px); font-weight: 300; line-height: .98; letter-spacing: -.03em; margin-bottom: 28px; padding-bottom: .06em; }

body.home .hero .lead { color: #bfc5ca; font-size: clamp(15px, 1.25vw, 18px); max-width: 46ch; margin-bottom: 36px; }

body.home .hero .actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }

body.home .hero-side { position: absolute; right: clamp(16px, 5vw, 80px); top: 52%; text-align: right; display: flex; flex-direction: column; font-family: var(--display); }

body.home .hero-side .big { font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; color: #dde1e4; }

body.home .hero-side .small { margin-top: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

body.home .hero-foot { position: absolute; left: 50%; bottom: 42px; transform: translateX(-50%); display: flex; gap: 28px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #ffffff; }

body.home .hero-foot span + span::before { content: "·"; margin-right: 28px; color: var(--mint); }

body.home .plus { position: absolute; right: clamp(16px, 5vw, 80px); bottom: 34px; width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid var(--sage); display: grid; place-items: center; color: var(--mint); transition: transform .5s var(--ease), background .3s; }

body.home .plus:hover { transform: rotate(90deg); background: rgba(34,211,238,.12); }

body.home .plus::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(34,211,238,.3); animation: ping 2.4s var(--ease) infinite; }

@keyframes ping { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Rail (progress through the anatomy) ---------- */
body.home .rail { position: fixed; z-index: 40; left: clamp(10px, 1.6vw, 26px); top: 50%; transform: translateY(-50%); list-style: none; display: grid; gap: 14px; transition: opacity .5s; }

body.home .rail li { position: relative; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-2); cursor: pointer; transition: background .3s, border-color .3s, transform .3s; }

body.home .rail li span { position: absolute; left: 22px; top: 50%; transform: translate(-6px, -50%); white-space: nowrap; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; }

body.home .rail li:hover span { opacity: 1; transform: translate(0, -50%); }

body.home .rail li.on { background: var(--mint); border-color: var(--mint); transform: scale(1.25); }

body.home .rail.hide { opacity: 0; pointer-events: none; }

/* ---------- Hotspots ---------- */
body.home .hotspots { position: fixed; inset: 0; z-index: 1; pointer-events: none; }

body.home .hotspot { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .35s; display: flex; align-items: center; gap: 8px; white-space: nowrap; will-change: transform; }

body.home .hotspot i { width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(34,211,238,.22); flex: none; }

body.home .hotspot::before { content: ""; position: absolute; left: 6px; top: -1px; width: 26px; height: 1px; background: var(--mint); opacity: .7; }

body.home .hotspot span, body.home .hotspot b { position: relative; left: 28px; }

body.home .hotspot span { font: 500 11px/1 var(--body); color: #0b1d22; background: var(--mint); padding: 4px 6px; border-radius: 10px; margin-top: -2px; }

body.home .hotspot b { font: 500 13px/1 var(--body); color: #dde1e4; background: rgba(24,27,30,.78); border: 1px solid var(--line-2); padding: 7px 10px; border-radius: 8px; margin-top: -2px; backdrop-filter: blur(6px); }

body.home .hotspot.is-active b { border-color: var(--mint); color: #e4e7e9; }

body.home .hotspot.is-active i { animation: ping-dot 1.6s infinite; }

@keyframes ping-dot { 0%,100% { box-shadow: 0 0 0 4px rgba(34,211,238,.25); } 50% { box-shadow: 0 0 0 10px rgba(34,211,238,0); } }

/* ---------- Content (opaque, covers the canvas) ---------- */
body.home .content { position: relative; z-index: 2; background: var(--bg); border-top: 1px solid var(--line); }

body.home .section { max-width: 1240px; margin: 0 auto; padding: clamp(80px, 11vw, 140px) clamp(16px, 4vw, 40px); }

body.home .section-head { margin-bottom: 48px; max-width: 760px; }

body.home .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }

body.home .split .muted { margin: 22px 0; max-width: 54ch; }

/* Checklist card — reference image 1 */
body.home .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding: 26px; border-radius: 18px; background: var(--bg-3); border: 1px solid var(--line); margin-top: 30px; }

body.home .checks div { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.4; }

body.home .checks i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--mint); position: relative; margin-top: 1px; }

body.home .checks i::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 4px; height: 8px; border: solid var(--mint); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

/* Notched image card with corner button — reference image 1 */
body.home .notch-card { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.6; max-height: 640px; width: 100%; border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }

body.home .notch-card img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(.2); transition: transform 1.2s var(--ease); }

body.home .notch-card:hover img { transform: scale(1.05); }

body.home .notch-btn { position: absolute; left: 0; top: 0; z-index: 2; width: 74px; height: 74px; border-radius: 18px; background: var(--bg-3); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--mint); transition: background .3s, color .3s; }

body.home .notch-btn:hover { background: var(--mint); color: #0b1d22; }

/* Services */
body.home .svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1200px; }

body.home .svc { position: relative; display: block; text-decoration: none; padding: 34px 30px 36px; border-radius: var(--radius); background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); transform-style: preserve-3d; transition: border-color .4s, transform .5s var(--ease), opacity .9s var(--ease); min-height: 280px; }

body.home .svc:hover { border-color: rgba(34,211,238,.45); }

body.home .svc .n { font: 200 54px/1 var(--display); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 26px; transform: translateZ(40px); }

body.home .svc h3 { font-size: 22px; font-weight: 400; margin-bottom: 12px; transform: translateZ(30px); }

body.home .svc p { color: var(--muted); font-size: 15px; transform: translateZ(18px); }

/* Projects — normal horizontal slider, cards grow slightly near the pointer */
body.home .projects { position: relative; max-width: none; padding: clamp(80px, 11vw, 140px) 0; }

body.home .projects-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; max-width: none; margin: 0 clamp(16px, 4vw, 56px) 26px; }

body.home .projects-ctrl { display: flex; align-items: center; gap: 10px; }

body.home .arrow { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(34,211,238,.45); background: rgba(34,211,238,.06); color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s, opacity .3s, border-color .3s; }

body.home .arrow:hover:not(:disabled) { background: var(--mint); border-color: var(--mint); color: #0b1d22; }

body.home .arrow:disabled { opacity: .3; cursor: default; }

body.home .track { display: flex; gap: 24px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-padding-inline: clamp(16px, 4vw, 56px);
  padding: 26px clamp(16px, 4vw, 56px) 30px; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; outline: none; }

body.home .track::-webkit-scrollbar { display: none; }

body.home .track.dragging { cursor: grabbing; scroll-snap-type: none; }

body.home .track.dragging .pcard { pointer-events: none; }

body.home .pcard { flex: none; width: clamp(270px, 28vw, 380px); scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line);
  transform: scale(var(--s, 1)); transform-origin: center; transition: transform .35s var(--ease), border-color .4s, box-shadow .4s; will-change: transform; }

body.home .pcard.near { border-color: rgba(34,211,238,.45); box-shadow: 0 24px 50px -24px rgba(0,0,0,.7); }

body.home .pcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(.45); transition: filter .6s; -webkit-user-drag: none; user-select: none; }

body.home .pcard.near img { filter: none; }

body.home .pcard div { padding: 20px 22px 24px; }

body.home .pcard span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mint); }

body.home .pcard h3 { font-size: 22px; font-weight: 400; margin: 6px 0 8px; }

body.home .pcard p { font-size: 14px; color: var(--muted); }

body.home .track-progress { margin: 6px clamp(16px, 4vw, 56px) 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }

body.home .track-progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }

/* Clients */
body.home .client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

body.home .client { background: var(--bg); padding: 34px 30px; transition: background .4s; }

body.home .client:hover { background: var(--bg-2); }

body.home .client h3 { font-size: 20px; font-weight: 400; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }

body.home .client h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

body.home .client p { color: var(--muted); font-size: 15px; }

/* About + world map */
body.home .about-head { align-items: end; margin-bottom: 48px; }

body.home .about-head .muted { margin: 0 0 14px; }

body.home .map-card { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }

body.home .world-map { position: relative; padding: clamp(10px, 2vw, 28px); }

body.home .world-map svg { display: block; width: 100%; height: auto; overflow: visible; }

body.home .wm-sphere { fill: #202427; stroke: var(--line); }

body.home .wm-grat { fill: none; stroke: rgba(220,226,230,.05); stroke-width: .6; }

body.home .wm-land path { fill: #33393e; transition: fill .3s; }

body.home .wm-land path.wm-active { fill: #3b4950; }

body.home .wm-land path:hover { fill: #43535b; }

body.home .wm-borders { fill: none; stroke: #1d2023; stroke-width: .6; stroke-linejoin: round; }

@keyframes wm-draw { to { stroke-dashoffset: 0; } }

body.home .wm-pin { cursor: pointer; opacity: 0; outline: none; }

body.home .world-map.in .wm-pin { animation: wm-pop .6s var(--ease) forwards; animation-delay: var(--d); }

@keyframes wm-pop { from { opacity: 0; } to { opacity: 1; } }

body.home .wm-dot { fill: var(--mint); stroke: #1d2023; stroke-width: 1; }

body.home .wm-ring { fill: none; stroke: var(--mint); stroke-width: 1; opacity: .5; transform-box: fill-box; transform-origin: center; animation: wm-ping 2.6s ease-out infinite; }

body.home .wm-office .wm-dot { fill: #1d2023; stroke: var(--mint); stroke-width: 2.5; }

body.home .wm-office text { fill: var(--text); font: 500 11px var(--body); letter-spacing: .12em; text-transform: uppercase; paint-order: stroke; stroke: #202427; stroke-width: 3px; }

body.home .wm-pin:hover .wm-dot, body.home .wm-pin:focus .wm-dot { fill: #fff; }

@keyframes wm-ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }

body.home .wm-tip { position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); background: rgba(24,27,30,.95); border: 1px solid var(--mint); border-radius: 10px; padding: 9px 12px; min-width: 150px; max-width: 240px; opacity: 0; transition: opacity .2s; }

body.home .wm-tip.on { opacity: 1; }

body.home .wm-tip b { display: block; font: 500 14px var(--display); color: var(--text); }

body.home .wm-tip span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin: 2px 0 4px; }

body.home .wm-tip em { display: block; font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.4; }

body.home .wm-fallback { list-style: none; color: var(--muted); font-size: 14px; display: none; gap: 8px; padding: 20px; }

body.home .wm-failed .wm-fallback { display: grid; }

body.home .map-card figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 20px clamp(18px, 3vw, 32px); border-top: 1px solid var(--line); }

body.home .wm-legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

body.home .wm-legend span { display: inline-flex; align-items: center; gap: 8px; }

body.home .wm-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); }

body.home .wm-legend .lg-office { background: transparent; border: 2.5px solid var(--mint); width: 12px; height: 12px; }

body.home .wm-hint { opacity: .7; text-transform: none; letter-spacing: 0; }

body.home .stats-row { grid-template-columns: repeat(4, auto); gap: 14px 36px; margin-top: 0; }

/* Contact */
body.home .contact-card { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); padding: clamp(28px, 5vw, 60px); border-radius: 28px; background: linear-gradient(150deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); }

body.home .contact-card .muted { margin: 18px 0 26px; }

body.home .offices { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }

body.home .offices li { border: 1px solid var(--line-2); border-radius: 30px; padding: 8px 16px; font-size: 13px; letter-spacing: .08em; }

body.home .form { margin: 0; max-width: none; }

body.home .form .full { grid-column: 1 / -1; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  
body.home .svc-grid, body.home .client-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  
body.home .step { min-height: 110vh; align-items: flex-end; padding: 100px 16px 60px; }
  
body.home .panel, body.home .panel-right { margin: 0 auto; max-width: 560px; padding: 26px 22px; }
  
body.home .hero { align-items: center; }
  
body.home .hero .panel { background: none; }
  
body.home .hero-side { position: static; text-align: left; flex-direction: row; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-top: 28px; }
  
body.home .hero-side .big { font-size: 22px; }
  
body.home .hero-side .small { width: 100%; margin-top: 0; }
  
body.home .hero { flex-direction: column; align-items: flex-start; justify-content: center; }
  
body.home .hero-foot { display: none; }
  
body.home .rail { display: none; }
  
body.home .specs, body.home .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  
body.home .specs div { padding: 10px; }
  
body.home .hotspot b { display: none; }
  
body.home .specs, body.home .mini-list { display: none; }
  
body.home .panel p { font-size: 15px; }
  
body.home .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 18%, rgba(29,32,35,.82) 50%, rgba(29,32,35,.82) 82%, transparent 100%); pointer-events: none; }
  
body.home .hero .panel, body.home .hero-side { position: relative; z-index: 1; right: auto; top: auto; }
  
body.home .hero { justify-content: flex-end; padding-bottom: 90px; }
  
body.home .split, body.home .contact-card { grid-template-columns: 1fr; }
  
body.home .stats-row { grid-template-columns: repeat(2, 1fr); width: 100%; }
  
body.home .wm-office text { font-size: 16px; }
  
body.home .checks { grid-template-columns: 1fr; }
  
body.home .svc-grid, body.home .client-grid { grid-template-columns: 1fr; }
  /* Projects: swipe on phones */
body.home .projects-ctrl .arrow { display: none; }
  
body.home .pcard { width: 80vw; scroll-snap-align: center; }
}

@media (max-width: 480px) {
  
body.home .specs { grid-template-columns: 1fr 1fr; }
}

/* Project cards are links to the matching project on Projects.html */
body.home a.pcard { display: block; color: inherit; text-decoration: none; }

body.home a.pcard:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }

/* "What we do": photo spans exactly from the label to the bottom of the checklist box */
body.home .split-match { align-items: stretch; }

body.home .split-match .notch-card { aspect-ratio: auto; height: auto; min-height: 420px; max-height: none; }

body.home .split-match .notch-card img { position: absolute; inset: 0; }   /* image fills the frame; the text column sets the height */
@media (max-width: 820px) { 
body.home .split-match .notch-card { aspect-ratio: 4 / 4.6; min-height: 0; } }

/* Projects row: arrows sit on the row's sides; soft shadows mark that more cards continue past the edge */
body.home .track-wrap { position: relative; }

body.home .track-wrap::before, body.home .track-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: clamp(60px, 9vw, 150px); z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease); }

body.home .track-wrap::before { left: 0; background: linear-gradient(90deg, var(--bg) 8%, rgba(29, 32, 35, .75) 45%, rgba(29, 32, 35, 0)); }

body.home .track-wrap::after { right: 0; background: linear-gradient(270deg, var(--bg) 8%, rgba(29, 32, 35, .75) 45%, rgba(29, 32, 35, 0)); }

body.home .track-wrap.more-left::before, body.home .track-wrap.more-right::after { opacity: 1; }

body.home .arrow-side { position: absolute; top: 50%; z-index: 3; width: 56px; height: 56px; transform: translateY(-50%); background: rgba(29, 32, 35, .85); backdrop-filter: blur(6px); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8); transition: background .3s, color .3s, opacity .3s, border-color .3s, transform .3s var(--ease); }

body.home .arrow-left { left: clamp(10px, 2.5vw, 36px); }

body.home .arrow-right { right: clamp(10px, 2.5vw, 36px); }

body.home .arrow-side:hover:not(:disabled) { transform: translateY(-50%) scale(1.08); }

body.home .arrow-side:disabled { opacity: 0; pointer-events: none; }

@media (max-width: 820px) { 
body.home .arrow-side { display: none; } 
body.home .track-wrap::before, body.home .track-wrap::after { width: 36px; } }

/* ---- World map: routes, flow, filters, office selection ---- */
body.home .wm-arc { fill: none; stroke: var(--mint); stroke-width: .9; opacity: .35; stroke-dasharray: 1; stroke-dashoffset: 1; transition: opacity .3s; }

body.home .world-map.in .wm-arc { animation: wm-draw 1.8s var(--ease) forwards; animation-delay: var(--d); }

body.home .wm-flow { fill: none; stroke: #7fe9f9; stroke-width: 2; stroke-linecap: round; stroke-dasharray: .05 .95; stroke-dashoffset: 1; opacity: 0; transition: opacity .3s; }

body.home .world-map.in .wm-flow { opacity: .9; animation: wm-flow var(--f) linear infinite; animation-delay: calc(var(--d) + 1.4s); }

@keyframes wm-flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

body.home .wm-hit { fill: transparent; }

body.home .wm-pin { transition: opacity .3s; }
/* office selected: its routes and cities stay bright, the rest dims */
body.home .world-map.has-sel .wm-arc:not(.hl), body.home .world-map.has-sel .wm-flow:not(.hl) { opacity: .06; }

body.home .world-map.has-sel .wm-pin:not(.hl) { opacity: .25 !important; }

body.home .world-map.has-sel .wm-arc.hl { opacity: .8; stroke-width: 1.4; }

body.home .wm-office.hl .wm-dot { fill: var(--mint); }
/* legend filters */
body.home .world-map[data-show="office"] .wm-pin:not(.wm-office), body.home .world-map[data-show="office"] .wm-arc, body.home .world-map[data-show="office"] .wm-flow { opacity: .08 !important; }

body.home .world-map[data-show="project"] .wm-office { opacity: .2 !important; }

body.home .lg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font: 500 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: border-color .3s, color .3s, background .3s; }

body.home .lg-btn:hover { border-color: rgba(34, 211, 238, .5); color: var(--text); }

body.home .lg-btn[aria-pressed="true"] { border-color: var(--mint); color: var(--text); background: rgba(34, 211, 238, .1); }

@media (prefers-reduced-motion: reduce) { 
body.home .wm-flow { display: none; } 
body.home .wm-arc { stroke-dashoffset: 0; animation: none !important; } }

.page[hidden] { display: none !important; }
.pv-note { grid-column: 1 / -1; margin: 6px 0 0; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(34, 211, 238, .45); background: rgba(34, 211, 238, .08); color: var(--text); font-size: 14px; }

  