/* ── Reset & Tokens ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #0d0d0d;
  --white:   #f5f5f0;
  --mid:     #888880;
  --rule:    #d0cfca;
  --hot:     #ff3c1f;
  --display: 'Bebas Neue', sans-serif;
  --mono:    'Space Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  padding-top: 56px;
}

/* ── Cursor ──────────────────────────────────────────────────────── */
#cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--hot);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .2s, height .2s, border-radius .2s;
}
#cursor.big {
  width: 44px; height: 44px;
  background: transparent;
  border: 1.5px solid var(--black);
  border-radius: 50%;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
#esr-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2.4rem;
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  height: 56px;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
}
.nav-logo .slash { color: var(--hot); margin: 0 .1em; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color .15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--black); }
.nav-links .nav-cta-item a,
.nav-links li:last-child a { color: var(--hot); }

/* ── Ticker ──────────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  padding: .85rem 0;
  background: var(--black);
  border-bottom: 3px solid var(--hot);
}
.ticker-inner {
  display: inline-flex;
  animation: tick 28s linear infinite;
}
.ticker-item {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  padding: 0 2rem;
}
.ticker-item.hot { color: var(--hot); padding: 0 1rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ── Shared section row ──────────────────────────────────────────── */
.section-label-row {
  padding: 3.5rem 2.4rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.sl-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: .95;
}
.sl-title .hot { color: var(--hot); }
.sl-note {
  font-size: 10px;
  color: var(--mid);
  max-width: 28ch;
  text-align: right;
  line-height: 1.85;
}

/* ── CTA band (shared) ───────────────────────────────────────────── */
.callout {
  padding: 4rem 2.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  border-top: 1px solid var(--rule);
}
.callout-text {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: .95;
}
.callout-text .hot { color: var(--hot); }
.callout-btn {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  text-decoration: none;
  padding: 1rem 2rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s;
}
.callout-btn:hover { background: var(--hot); }

/* ── Footer ──────────────────────────────────────────────────────── */
#esr-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 2.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.f-logo {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.f-logo .slash { color: var(--hot); }
.f-copy { font-size: 10px; color: var(--mid); }
.f-links { display: flex; gap: 2rem; list-style: none; }
.f-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color .15s;
}
.f-links a:hover { color: var(--black); }

/* ═══════════════════════════════════════════════════════════════════
   HOME PAGE
   ═══════════════════════════════════════════════════════════════════ */

.home-page-template .hero,
body.page-template-page-home .hero {
  /* body padding-top already covers nav */
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 56px);
}
.hero-left {
  padding: 4rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--rule);
}
.hero-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mid);
  opacity: 0;
  animation: fadeUp .5s .1s forwards;
}
.hero-h1 {
  font-family: var(--display);
  font-size: clamp(5.5rem, 9vw, 10.5rem);
  line-height: .93;
  color: var(--black);
  margin: auto 0;
  opacity: 0;
  animation: fadeUp .6s .25s forwards;
}
.hero-h1 .hot { color: var(--hot); }
.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  opacity: 0;
  animation: fadeUp .6s .5s forwards;
}
.hero-sub {
  font-size: 11px;
  color: var(--mid);
  max-width: 28ch;
  line-height: 1.9;
}
.hero-cta {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  text-decoration: none;
  padding: .85rem 1.6rem;
  white-space: nowrap;
  transition: background .2s;
}
.hero-cta:hover { background: var(--hot); }
.hero-right {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0) contrast(1.1) blur(16px);
  transform: scale(1.06);
  animation: renderIn 2.6s .15s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes renderIn {
  0%   { filter: saturate(0) contrast(1.2) blur(20px); transform: scale(1.08); }
  30%  { filter: saturate(.1) contrast(1.1) blur(8px);  transform: scale(1.04); }
  70%  { filter: saturate(.55) contrast(1.05) blur(2px); transform: scale(1.015); }
  100% { filter: saturate(1) contrast(1) blur(0);        transform: scale(1); }
}
.hero-right::before {
  content: '';
  position: absolute; inset: 0; z-index: 2;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(0,0,0,.06) 3px, rgba(0,0,0,.06) 4px);
  animation: slFade 2.4s .15s forwards;
  pointer-events: none;
}
@keyframes slFade { 0%{opacity:1} 75%{opacity:.5} 100%{opacity:0} }
.render-hud {
  position: absolute; bottom: 1.8rem; left: 1.8rem; right: 1.8rem; z-index: 5;
  opacity: 0;
  animation: inFade .3s .15s forwards, outFade .5s 2.3s forwards;
}
.hud-row {
  display: flex; justify-content: space-between;
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.65); margin-bottom: .5rem;
}
.hud-row .pct { color: var(--hot); font-weight: 700; }
.hud-track { height: 1px; background: rgba(255,255,255,.18); position: relative; }
.hud-fill {
  position: absolute; inset: 0; background: var(--hot);
  transform: scaleX(0); transform-origin: left;
  animation: fill 2.2s .2s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes fill    { to { transform: scaleX(1); } }
@keyframes inFade  { to { opacity: 1; } }
@keyframes outFade { to { opacity: 0; } }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-bottom: 1px solid var(--rule);
}
.stat { padding: 2.5rem 2.4rem; border-right: 1px solid var(--rule); }
.stat:last-child { border-right: none; }
.stat-n { font-family: var(--display); font-size: 4.5rem; line-height: 1; color: var(--black); }
.stat-n .hot { color: var(--hot); }
.stat-l { font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--mid); margin-top: .4rem; }

/* Gallery header */
.gallery-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 4rem 2.4rem 1.6rem; border-bottom: 1px solid var(--rule);
}
.gh-left .eyebrow { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: var(--mid); margin-bottom: .6rem; }
.gh-left .big { font-family: var(--display); font-size: clamp(3rem,5vw,5.5rem); line-height: .95; color: var(--black); }
.gh-left .big .hot { color: var(--hot); }
.gh-right { font-size: 10px; color: var(--mid); max-width: 26ch; text-align: right; line-height: 1.85; }

/* Gallery grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(12,1fr);
  grid-template-rows: 340px 260px;
  gap: 3px;
  background: var(--rule);
}
.g-item { position: relative; overflow: hidden; background: #bbb; }
.g-item:nth-child(1) { grid-column: 1/6;  grid-row: 1/2; }
.g-item:nth-child(2) { grid-column: 6/9;  grid-row: 1/2; }
.g-item:nth-child(3) { grid-column: 9/13; grid-row: 1/2; }
.g-item:nth-child(4) { grid-column: 1/5;  grid-row: 2/3; }
.g-item:nth-child(5) { grid-column: 5/13; grid-row: 2/3; }
.g-img { width:100%; height:100%; object-fit:cover; display:block; filter:saturate(0) contrast(1.2) blur(14px); transform:scale(1.07); }
.g-item.rendered .g-img { animation: gRender 1.6s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes gRender {
  0%   { filter:saturate(0) contrast(1.3) blur(16px); transform:scale(1.08); }
  30%  { filter:saturate(.1) contrast(1.15) blur(7px); transform:scale(1.04); }
  65%  { filter:saturate(.55) contrast(1.05) blur(2px); transform:scale(1.015); }
  100% { filter:saturate(1) contrast(1) blur(0); transform:scale(1); }
}
.g-item::before {
  content:''; position:absolute; inset:0; z-index:2;
  background:repeating-linear-gradient(to bottom,transparent 0,transparent 3px,rgba(0,0,0,.07) 3px,rgba(0,0,0,.07) 4px);
  opacity:0; pointer-events:none; transition:opacity .2s;
}
.g-item.rendering::before { opacity:1; }
.g-item.rendered::before  { opacity:0; transition:opacity 1.4s; }
.g-tag {
  position:absolute; top:.9rem; left:.9rem; z-index:4;
  font-family:var(--mono); font-size:8px; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase;
  background:var(--black); color:var(--hot); padding:.2rem .55rem;
}
.g-item.rendered .g-tag { animation:tagOut .4s 1.5s forwards; }
@keyframes tagOut { to { opacity:0; pointer-events:none; } }
.g-overlay {
  position:absolute; inset:0; z-index:3;
  background:rgba(13,13,13,.75);
  display:flex; flex-direction:column; justify-content:flex-end; padding:1.4rem;
  opacity:0; transition:opacity .25s;
}
.g-item:hover .g-overlay { opacity:1; }
.g-overlay-title { font-family:var(--display); font-size:2rem; line-height:1; color:var(--white); margin-bottom:.3rem; }
.g-overlay-meta  { font-family:var(--mono); font-size:9px; letter-spacing:.16em; text-transform:uppercase; color:var(--hot); }

/* Value section */
.value { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--rule); }
.value-left { padding:5rem 2.4rem; border-right:1px solid var(--rule); }
.value-left .big-q { font-family:var(--display); font-size:clamp(3rem,5vw,5.5rem); line-height:.95; margin-bottom:2.5rem; }
.value-left .big-q .hot { color:var(--hot); }
.value-left p { font-size:11px; color:var(--mid); max-width:38ch; line-height:2; }
.value-right { padding:5rem 2.4rem; }
.v-item { padding:2rem 0; border-bottom:1px solid var(--rule); display:grid; grid-template-columns:3rem 1fr; gap:1.2rem; align-items:start; }
.v-item:first-child { padding-top:0; }
.v-item:last-child  { border-bottom:none; padding-bottom:0; }
.v-num { font-family:var(--display); font-size:2.5rem; line-height:1; color:var(--rule); }
.v-title { font-family:var(--mono); font-size:10px; font-weight:700; letter-spacing:.15em; text-transform:uppercase; margin-bottom:.6rem; }
.v-body { font-size:11px; color:var(--mid); line-height:1.9; }

/* ═══════════════════════════════════════════════════════════════════
   SERVICES PAGE
   ═══════════════════════════════════════════════════════════════════ */

.page-hero {
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.ph-left { padding: 4rem 2.4rem 3rem; border-right: 1px solid var(--rule); }
.ph-eyebrow { font-size:9px; letter-spacing:.22em; text-transform:uppercase; color:var(--mid); margin-bottom:.8rem; opacity:0; animation:fadeUp .5s .1s forwards; }
.ph-title { font-family:var(--display); font-size:clamp(5rem,8vw,9.5rem); line-height:.92; opacity:0; animation:fadeUp .6s .2s forwards; }
.ph-title .hot { color:var(--hot); }
.ph-right { padding:4rem 2.4rem 3rem; display:flex; flex-direction:column; justify-content:flex-end; }
.ph-desc { font-size:11px; color:var(--mid); max-width:38ch; line-height:2; opacity:0; animation:fadeUp .6s .35s forwards; }

/* Packages */
.packages { display:grid; grid-template-columns:repeat(3,1fr); border-bottom:1px solid var(--rule); }
.pkg { padding:3rem 2.4rem; border-right:1px solid var(--rule); display:flex; flex-direction:column; gap:0; transition:background .2s; }
.pkg:last-child { border-right:none; }
.pkg:hover { background:var(--black); }
.pkg:hover .pkg-name,.pkg:hover .pkg-price,.pkg:hover .pkg-desc,.pkg:hover .pkg-feature { color:rgba(255,255,255,.7); }
.pkg:hover .pkg-price { color:var(--white); }
.pkg:hover .pkg-name  { color:var(--hot); }
.pkg:hover .pkg-cta   { background:var(--hot); color:var(--black); }
.pkg:hover .pkg-divider { border-top:1px solid rgba(255,255,255,.12); }
.pkg-badge { font-size:8px; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:var(--hot); background:var(--black); display:inline-block; padding:.2rem .6rem; margin-bottom:2rem; align-self:flex-start; }
.pkg:hover .pkg-badge { background:var(--hot); color:var(--black); }
.pkg-badge.invisible { visibility:hidden; }
.pkg-name { font-family:var(--display); font-size:3.5rem; line-height:.95; margin-bottom:.8rem; transition:color .2s; }
.pkg-price { font-family:var(--mono); font-size:11px; font-weight:700; letter-spacing:.08em; margin-bottom:1.5rem; transition:color .2s; }
.pkg-price span { color:var(--mid); font-weight:400; }
.pkg-divider { height:1px; background:var(--rule); margin-bottom:1.5rem; }
.pkg-desc { font-size:11px; color:var(--mid); line-height:1.9; margin-bottom:2rem; flex-grow:1; transition:color .2s; }
.pkg-features { list-style:none; display:flex; flex-direction:column; gap:.6rem; margin-bottom:2.5rem; }
.pkg-feature { font-size:10px; color:var(--mid); letter-spacing:.04em; display:flex; gap:.6rem; align-items:flex-start; transition:color .2s; }
.pkg-feature::before { content:'→'; color:var(--hot); flex-shrink:0; }
.pkg-cta { font-family:var(--mono); font-size:10px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--white); background:var(--black); text-decoration:none; padding:.85rem 1.4rem; text-align:center; display:block; transition:background .2s,color .2s; }

/* Process */
.process-wrap { border-bottom:1px solid var(--rule); }
.process-header { padding:3.5rem 2.4rem 2rem; display:flex; justify-content:space-between; align-items:flex-end; border-bottom:1px solid var(--rule); }
.process-steps { display:grid; grid-template-columns:repeat(5,1fr); }
.step { padding:2.5rem 2.4rem; border-right:1px solid var(--rule); position:relative; }
.step:last-child { border-right:none; }
.step:not(:last-child)::after { content:'→'; position:absolute; right:-1rem; top:2.5rem; font-size:12px; color:var(--hot); z-index:2; background:var(--white); padding:0 .2rem; }
.step-num { font-family:var(--display); font-size:4rem; line-height:1; color:var(--rule); margin-bottom:.8rem; }
.step-title { font-family:var(--mono); font-size:10px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; margin-bottom:.6rem; }
.step-body { font-size:10px; color:var(--mid); line-height:1.9; }
.step-time { margin-top:1rem; font-size:9px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--hot); }

/* Capabilities */
.capabilities { display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid var(--rule); }
.cap-left { padding:4rem 2.4rem; border-right:1px solid var(--rule); }
.cap-left .big { font-family:var(--display); font-size:clamp(3rem,5vw,5.5rem); line-height:.95; margin-bottom:2rem; }
.cap-left .big .hot { color:var(--hot); }
.cap-left p { font-size:11px; color:var(--mid); line-height:2; max-width:38ch; }
.cap-right { display:grid; grid-template-columns:1fr 1fr; }
.cap-col { padding:4rem 2.4rem; border-right:1px solid var(--rule); }
.cap-col:last-child { border-right:none; }
.cap-col-label { font-size:9px; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:var(--hot); margin-bottom:1.5rem; }
.cap-list { list-style:none; display:flex; flex-direction:column; gap:.9rem; }
.cap-list li { font-size:10px; color:var(--mid); letter-spacing:.04em; line-height:1.6; padding-bottom:.9rem; border-bottom:1px solid var(--rule); }
.cap-list li:last-child { border-bottom:none; padding-bottom:0; }

/* Specs */
.specs { background:var(--black); padding:4rem 2.4rem; display:grid; grid-template-columns:repeat(4,1fr); }
.spec { padding:0 2.4rem; border-right:1px solid rgba(255,255,255,.1); }
.spec:first-child { padding-left:0; }
.spec:last-child  { border-right:none; }
.spec-label { font-size:9px; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:var(--hot); margin-bottom:1rem; }
.spec-value { font-family:var(--display); font-size:3rem; line-height:.95; color:var(--white); margin-bottom:.5rem; }
.spec-note { font-size:10px; color:rgba(255,255,255,.35); line-height:1.8; }

/* ═══════════════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════════════ */

.statement {
  border-bottom: 3px solid var(--hot);
  background: var(--black);
  padding: 0 2.4rem 4rem;
  overflow: hidden;
  position: relative;
}
.stmt-eyebrow { font-size:9px; letter-spacing:.24em; text-transform:uppercase; color:var(--hot); padding-top:3.5rem; margin-bottom:2rem; opacity:0; animation:fadeUp .5s .1s forwards; }
.stmt-text { font-family:var(--display); font-size:clamp(4.5rem,9vw,11rem); line-height:.9; color:var(--white); opacity:0; animation:fadeUp .7s .2s forwards; }
.stmt-text .hot { color:var(--hot); }
.stmt-ghost { position:absolute; right:-1rem; bottom:-2rem; font-family:var(--display); font-size:22vw; line-height:1; color:rgba(255,255,255,.04); pointer-events:none; user-select:none; }

.founded-strip { display:grid; grid-template-columns:auto 1fr; border-bottom:1px solid var(--rule); }
.founded-year { font-family:var(--display); font-size:clamp(4rem,8vw,8rem); line-height:1; padding:2rem 2.4rem; border-right:1px solid var(--rule); color:var(--black); }
.founded-year span { color:var(--hot); }
.founded-text { padding:2rem 2.4rem; display:flex; align-items:center; }
.founded-text p { font-size:11px; color:var(--mid); max-width:52ch; line-height:2; }

.manifesto { display:grid; grid-template-columns:1fr 1fr; border-bottom:1px solid var(--rule); }
.manifesto-left { padding:4rem 2.4rem; border-right:1px solid var(--rule); }
.manifesto-left .section-tag { font-size:9px; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:var(--hot); margin-bottom:1.5rem; }
.manifesto-left .big { font-family:var(--display); font-size:clamp(2.5rem,4vw,4.5rem); line-height:.95; margin-bottom:2rem; }
.manifesto-left .big .hot { color:var(--hot); }
.manifesto-left p { font-size:11px; color:var(--mid); line-height:2; max-width:40ch; }
.manifesto-left p+p { margin-top:1.2rem; }
.manifesto-right { padding:4rem 2.4rem; }
.belief-list { list-style:none; display:flex; flex-direction:column; }
.belief { padding:2rem 0; border-bottom:1px solid var(--rule); display:grid; grid-template-columns:2.5rem 1fr; gap:1rem; align-items:start; }
.belief:first-child { padding-top:0; }
.belief:last-child  { border-bottom:none; padding-bottom:0; }
.belief-n { font-family:var(--display); font-size:2rem; line-height:1; color:var(--rule); }
.belief-title { font-family:var(--mono); font-size:10px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; margin-bottom:.5rem; }
.belief-body { font-size:10px; color:var(--mid); line-height:1.9; }

.facts { display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--rule); border-bottom:1px solid var(--rule); }
.fact { padding:2.5rem 2.4rem; border-right:1px solid var(--rule); }
.fact:last-child { border-right:none; }
.fact-n { font-family:var(--display); font-size:4rem; line-height:1; color:var(--black); }
.fact-n .hot { color:var(--hot); }
.fact-l { font-size:9px; font-weight:700; letter-spacing:.2em; text-transform:uppercase; color:var(--mid); margin-top:.4rem; }

.team-header { padding:3.5rem 2.4rem 0; border-top:1px solid var(--rule); }
.team-header-inner { display:flex; justify-content:space-between; align-items:flex-end; padding-bottom:2rem; border-bottom:1px solid var(--rule); }
.th-title { font-family:var(--display); font-size:clamp(2.5rem,4vw,4.5rem); line-height:.95; }
.th-title .hot { color:var(--hot); }
.th-note { font-size:10px; color:var(--mid); max-width:28ch; text-align:right; line-height:1.85; }
.team-grid { display:grid; grid-template-columns:repeat(3,1fr); border-bottom:1px solid var(--rule); }
.team-card { border-right:1px solid var(--rule); overflow:hidden; }
.team-card:last-child { border-right:none; }
.team-img-wrap { position:relative; height:320px; overflow:hidden; background:#bbb; }
.team-img { width:100%; height:100%; object-fit:cover; object-position:top; display:block; filter:saturate(0) contrast(1.1); transition:filter .4s,transform .5s; }
.team-card:hover .team-img { filter:saturate(1) contrast(1); transform:scale(1.04); }
.team-img-wrap::after { content:''; position:absolute; bottom:0; left:0; right:100%; height:3px; background:var(--hot); transition:right .4s cubic-bezier(.77,0,.175,1); }
.team-card:hover .team-img-wrap::after { right:0; }
.team-info { padding:1.5rem 2rem 2rem; }
.team-name { font-family:var(--display); font-size:2rem; line-height:1; margin-bottom:.3rem; }
.team-role { font-size:9px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--hot); margin-bottom:1rem; }
.team-bio  { font-size:10px; color:var(--mid); line-height:1.9; }

.clients { background:var(--black); padding:3rem 2.4rem; border-bottom:1px solid #1a1a1a; }
.clients-label { font-size:9px; font-weight:700; letter-spacing:.24em; text-transform:uppercase; color:rgba(255,255,255,.3); margin-bottom:2rem; }
.clients-row { display:flex; gap:3rem; flex-wrap:wrap; align-items:center; }
.client-name { font-family:var(--display); font-size:1.6rem; letter-spacing:.04em; color:rgba(255,255,255,.18); transition:color .2s; white-space:nowrap; }
.client-name:hover { color:rgba(255,255,255,.6); }

/* ═══════════════════════════════════════════════════════════════════
   STANDARD PAGE / 404
   ═══════════════════════════════════════════════════════════════════ */

.esr-standard-page { padding: 4rem 2.4rem; min-height: 60vh; }
.standard-hero { margin-bottom:2rem; padding-bottom:2rem; border-bottom:1px solid var(--rule); }
.standard-hero .ph-eyebrow { opacity:1; animation:none; }
.standard-content { font-size:13px; color:var(--mid); line-height:2; max-width:65ch; }
.standard-content h1,.standard-content h2 { font-family:var(--display); font-size:3rem; line-height:.95; color:var(--black); margin:2rem 0 1rem; }
.standard-content p { margin-bottom:1rem; }
.standard-content a { color:var(--hot); text-decoration:none; }

.esr-404 { display:flex; align-items:center; justify-content:center; min-height:calc(100vh - 56px - 6rem); }
.esr-404-inner { text-align:center; position:relative; }
.ghost-num { font-family:var(--display); font-size:25vw; line-height:1; color:rgba(0,0,0,.04); position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); pointer-events:none; white-space:nowrap; }
.esr-404-inner h1 { font-family:var(--display); font-size:clamp(3rem,6vw,7rem); line-height:.93; position:relative; z-index:1; }
.esr-404-inner p { font-size:11px; color:var(--mid); margin:1.5rem 0 2rem; position:relative; z-index:1; }
.back-btn { font-family:var(--mono); font-size:10px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--white); background:var(--black); text-decoration:none; padding:.85rem 1.6rem; transition:background .2s; position:relative; z-index:1; display:inline-block; }
.back-btn:hover { background:var(--hot); }

/* ═══════════════════════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .process-steps { grid-template-columns:repeat(3,1fr); }
  .step:nth-child(3) { border-right:none; }
  .step::after { display:none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns:1fr; min-height:auto; }
  .hero-right { height:55vw; min-height:0; }
  .hero-left { border-right:none; }
  .stats { grid-template-columns:1fr 1fr; }
  .stats .stat:nth-child(2) { border-right:none; }
  .gallery { grid-template-columns:1fr 1fr; grid-template-rows:auto; }
  .g-item:nth-child(n) { grid-column:auto; grid-row:auto; height:200px; }
  .g-item:nth-child(1) { grid-column:1/3; height:250px; }
  .gallery-header { flex-direction:column; gap:1rem; align-items:flex-start; }
  .gh-right { text-align:left; }
  .value { grid-template-columns:1fr; }
  .value-left { border-right:none; border-bottom:1px solid var(--rule); }
  .page-hero { grid-template-columns:1fr; }
  .ph-left { border-right:none; border-bottom:1px solid var(--rule); }
  .packages { grid-template-columns:1fr; }
  .pkg { border-right:none; border-bottom:1px solid var(--rule); }
  .process-steps { grid-template-columns:1fr 1fr; }
  .capabilities { grid-template-columns:1fr; }
  .cap-left { border-right:none; border-bottom:1px solid var(--rule); }
  .cap-right { grid-template-columns:1fr 1fr; }
  .specs { grid-template-columns:1fr 1fr; gap:2rem; }
  .spec { border-right:none; padding:0; }
  .manifesto { grid-template-columns:1fr; }
  .manifesto-left { border-right:none; border-bottom:1px solid var(--rule); }
  .team-grid { grid-template-columns:1fr 1fr; }
  .team-card:nth-child(2) { border-right:none; }
  .team-card:nth-child(3) { grid-column:1/3; border-right:none; border-top:1px solid var(--rule); }
  .facts { grid-template-columns:1fr 1fr; }
  .fact:nth-child(2) { border-right:none; }
  .fact:nth-child(3) { border-top:1px solid var(--rule); }
  .callout { flex-direction:column; align-items:flex-start; }
  .section-label-row { flex-direction:column; gap:1rem; align-items:flex-start; }
  .sl-note { text-align:left; }
  .team-header-inner { flex-direction:column; gap:1rem; align-items:flex-start; }
  .th-note { text-align:left; }
  .founded-strip { grid-template-columns:1fr; }
  .founded-year { border-right:none; border-bottom:1px solid var(--rule); }
  #esr-footer { flex-direction:column; gap:1rem; text-align:center; }
  .f-links { justify-content:center; }
  nav { padding:1rem 1.5rem; }
  .nav-links { gap:1.2rem; }
  .process-header { flex-direction:column; gap:1rem; align-items:flex-start; }
}

@media (max-width: 600px) {
  body { cursor:auto; }
  #cursor { display:none; }
  .team-grid { grid-template-columns:1fr; }
  .team-card:nth-child(n) { grid-column:auto; border-right:none; border-top:1px solid var(--rule); }
  .team-card:first-child { border-top:none; }
  .cap-right { grid-template-columns:1fr; }
  .cap-col { border-right:none; border-bottom:1px solid var(--rule); }
  .cap-col:last-child { border-bottom:none; }
  .nav-links { gap:.8rem; }
}
