/* ==========================================================================
   Ektocomms website — page-specific styles
   Builds on ../../colors_and_type.css
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ek-void);
  color: var(--ek-cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain + scanline overlay — placeholder for suciedad.png / crt_green_mask.png.
   Kept very subtle to stay "modern newspace" not "full retro". */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(174,157,129,0.018) 0 1px,
      transparent 1px 3px
    );
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 2; }

/* ====================== Header ====================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: 64px;
  display: flex; align-items: center;
  background: rgba(22, 20, 43, 0.96);
  border-bottom: 1px solid var(--ek-line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.brand {
  display: inline-flex; align-items: center;
  text-decoration: none; color: inherit;
}
.brand-logo {
  display: block;
  height: 22px;
  width: auto;
}

.nav {
  display: flex; gap: 28px;
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
}
.nav a {
  color: var(--ek-sand); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav a:hover { color: var(--ek-cream); }

.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ek-sand);
  border: 1px solid var(--ek-line);
  padding: 5px 10px;
}
.status-pill .led {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ek-signal);
  box-shadow: 0 0 8px rgba(24,122,16,0.6);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* ====================== Starfield (decorative background) ======================
   Uses box-shadow to stamp many crisp star pixels from a single 1×1 source.
   Two layers: dim small stars + bright larger stars. Tiled so they repeat
   organically across any section width.
*/
.starfield {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.starfield::before,
.starfield::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 1px; height: 1px;
  border-radius: 50%;
}
/* Layer 1: many small dim stars — tile across a 600×600 area */
.starfield::before {
  background: rgba(240,231,213,0.85);
  box-shadow:
    23px 47px 0 rgba(240,231,213,0.7),  71px 12px 0 rgba(240,231,213,0.8),
    142px 89px 0 rgba(240,231,213,0.6), 198px 34px 0 rgba(240,231,213,0.9),
    267px 156px 0 rgba(240,231,213,0.7), 315px 78px 0 rgba(240,231,213,0.8),
    389px 201px 0 rgba(240,231,213,0.6), 445px 23px 0 rgba(240,231,213,0.9),
    512px 134px 0 rgba(240,231,213,0.7), 567px 56px 0 rgba(240,231,213,0.8),
    18px 234px 0 rgba(240,231,213,0.6), 92px 178px 0 rgba(240,231,213,0.9),
    167px 267px 0 rgba(240,231,213,0.7), 234px 298px 0 rgba(240,231,213,0.8),
    301px 245px 0 rgba(240,231,213,0.6), 378px 334px 0 rgba(240,231,213,0.9),
    456px 289px 0 rgba(240,231,213,0.7), 523px 378px 0 rgba(240,231,213,0.8),
    589px 312px 0 rgba(240,231,213,0.6), 45px 389px 0 rgba(240,231,213,0.9),
    123px 445px 0 rgba(240,231,213,0.7), 189px 412px 0 rgba(240,231,213,0.8),
    256px 489px 0 rgba(240,231,213,0.6), 334px 467px 0 rgba(240,231,213,0.9),
    412px 534px 0 rgba(240,231,213,0.7), 489px 498px 0 rgba(240,231,213,0.8),
    556px 567px 0 rgba(240,231,213,0.6), 67px 512px 0 rgba(240,231,213,0.9),
    145px 578px 0 rgba(240,231,213,0.7), 223px 545px 0 rgba(240,231,213,0.8),
    34px 67px 0 rgba(240,231,213,0.6), 156px 134px 0 rgba(240,231,213,0.7),
    278px 45px 0 rgba(240,231,213,0.8), 345px 189px 0 rgba(240,231,213,0.6),
    423px 112px 0 rgba(240,231,213,0.7), 501px 234px 0 rgba(240,231,213,0.8),
    89px 323px 0 rgba(240,231,213,0.6), 212px 356px 0 rgba(240,231,213,0.7),
    289px 423px 0 rgba(240,231,213,0.8), 367px 456px 0 rgba(240,231,213,0.6);
  animation: starfield-twinkle 7s ease-in-out infinite;
}
/* Layer 2: fewer, brighter, larger stars */
.starfield::after {
  width: 2px; height: 2px;
  background: rgba(255,255,255,1);
  box-shadow:
    78px 123px 0 rgba(255,255,255,0.95),
    234px 289px 0 rgba(255,255,255,1),
    389px 67px 0 rgba(255,255,255,0.95),
    478px 345px 0 rgba(255,255,255,1),
    123px 456px 0 rgba(255,255,255,0.95),
    312px 512px 0 rgba(255,255,255,1),
    567px 189px 0 rgba(255,255,255,0.95),
    45px 234px 0 rgba(255,255,255,1),
    534px 489px 0 rgba(255,255,255,0.95),
    189px 389px 0 rgba(255,255,255,1);
  animation: starfield-twinkle 9s ease-in-out infinite;
}
/* Tile the whole starfield so it repeats every 600px */
.starfield {
  background-image: none;
}
.starfield > * {
  display: none;
}
@keyframes starfield-twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
@media (prefers-reduced-motion: reduce) {
  .starfield::before, .starfield::after { animation: none; }
}

/* ====================== Hero ====================== */
.hero {
  position: relative;
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--ek-line);
  background:
    radial-gradient(60% 60% at 75% 30%, rgba(148,65,53,0.12), transparent 65%),
    var(--ek-void);
  overflow: hidden;
  min-height: 88vh;
  display: flex; flex-direction: column; justify-content: center;
}
.hero .container { position: relative; z-index: 2; width: 100%; }
.hero-inner { max-width: 720px; }

/* Giant logo as background poster, bleeds off right edge */
.hero-bg {
  position: absolute;
  top: 50%; right: 10%;
  transform: translateY(-50%);
  width: 820px; height: 820px;
  max-width: 70vw; max-height: 95vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
  animation: heroFloat 10s ease-in-out infinite;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(148,65,53,0.2));
}
.hero-bg::before {
  content: "";
  position: absolute; inset: -4%;
  border: 1px dashed rgba(174,157,129,0.14);
  border-radius: 50%;
  animation: spin 120s linear infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(-50%) translateY(0); }
  50%      { transform: translateY(-50%) translateY(-14px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-bg::before { animation: none; }
}
@media (max-width: 1024px) {
  .hero-bg, .hero-bg::before { animation: none; }
}

@media (max-width: 900px) {
  .hero-bg { opacity: 0.22; right: -25%; width: 700px; height: 700px; }
}
.hero-eyebrow { margin-bottom: 24px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-eyebrow .tag {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ek-cream);
}
.hero-eyebrow .sep { opacity: 0.55; color: var(--ek-cream); }

.hero-title {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  color: var(--ek-sand);
  text-wrap: balance;
}
.hero-title em { font-style: normal; color: var(--ek-cream); }
.hero-title .cursor {
  display: inline-block; width: 0.55ch; height: 0.95em; background: var(--ek-cream);
  vertical-align: -0.08em; margin-left: 4px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-family: var(--font-sans); font-size: 20px; line-height: 1.55;
  color: var(--ek-cream); max-width: 52ch; margin: 0 0 40px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ====================== Buttons ====================== */
.btn {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 22px; border: 1px solid transparent; background: transparent;
  color: var(--ek-cream); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: all var(--dur-base) var(--ease-out);
  line-height: 1;
}
.btn--primary { background: var(--accent); color: var(--ek-cream); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 0 24px -6px rgba(148,65,53,0.6); }
.btn--primary:active { background: var(--accent-press); }
.btn--ghost { border-color: var(--ek-line-strong); color: var(--ek-cream); }
.btn--ghost:hover { border-color: var(--ek-sand); background: rgba(174,157,129,0.06); }
.btn .arr { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

/* ====================== Clients marquee ====================== */
.clients {
  position: relative;
  border-bottom: 1px solid var(--ek-line);
  padding: 40px 0;
  background: var(--ek-navy);
}
.clients .container { display: flex; align-items: center; gap: 48px; position: relative; z-index: 2; }
.clients .label {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ek-sand); white-space: nowrap;
}
.clients .list {
  display: flex; gap: 64px; flex-wrap: wrap; align-items: center;
}
.clients .list img {
  width: auto;
  display: block;
  opacity: 0.9;
  transition: opacity var(--dur-base) var(--ease-out);
}
.clients .list img:hover { opacity: 1; }
/* Per-mark tuning so cap-heights read as one row.
   Aspect ratios: leafspace ~5.2:1, lynk ~2.5:1, skyloom ~4.6:1, epic ~2.55:1.
   Heights picked to match optical x-height, not raw pixels. */
.clients .list .c-leafspace { height: 30px; }
.clients .list .c-lynk      { height: 44px; }
.clients .list .c-skyloom   { height: 34px; }
.clients .list .c-epic      { height: 42px; }
.clients .list .c-constellr { height: 28px; }

/* ====================== Section scaffolding ====================== */
.section {
  padding: 112px 0;
  border-bottom: 1px solid var(--ek-line);
  position: relative;
}
.section--alt { background: var(--ek-navy); }
.section-head { display: grid; grid-template-columns: 180px 1fr; gap: 40px; margin-bottom: 64px; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ek-sand);
  display: flex; align-items: baseline; gap: 10px;
}
.section-eyebrow::before {
  content: ""; display: inline-block; width: 10px; height: 1px;
  background: var(--accent); transform: translateY(-3px);
}
.section-title {
  font-family: var(--font-sans); font-weight: 600;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.08; letter-spacing: -0.01em;
  color: var(--ek-cream); margin: 0 0 18px; max-width: 22ch;
}
.section-lead {
  font-size: 19px; line-height: 1.55; color: var(--ek-sand);
  max-width: 62ch; margin: 0;
}

/* ====================== Mission values ====================== */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-left: 1px solid var(--ek-line); }
.value {
  border-right: 1px solid var(--ek-line);
  border-top: 1px solid var(--ek-line);
  border-bottom: 1px solid var(--ek-line);
  padding: 36px 28px;
  background: transparent;
  transition: background var(--dur-base) var(--ease-out);
}
.value:hover { background: rgba(148,65,53,0.05); }
.value .num {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.2em; color: var(--accent);
  margin-bottom: 28px;
}
.value h3 {
  font-family: var(--font-sans); font-weight: 600; font-size: 24px;
  line-height: 1.2; color: var(--ek-cream); margin: 0 0 14px;
}
.value p {
  font-size: 16.5px; line-height: 1.6; color: var(--ek-sand); margin: 0;
}

/* ====================== Skills grid ====================== */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--ek-line); border: 1px solid var(--ek-line); }
.skill {
  background: var(--ek-navy);
  padding: 32px 28px;
  transition: background var(--dur-base) var(--ease-out);
  position: relative;
}
.skill:hover { background: var(--ek-navy-2); }
.section--alt .skill { background: var(--ek-navy-2); }
.section--alt .skill:hover { background: var(--ek-navy); }
.skill-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.skill-name {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ek-cream);
}
.skill-glyph {
  width: 40px; height: 40px;
  border: 1px solid var(--ek-line-strong);
  display: grid; place-items: center;
  color: var(--accent);
  font-family: var(--font-mono); font-size: 18px; font-weight: 700;
}
.skill ul { list-style: none; padding: 0; margin: 0; font-family: var(--font-mono); font-size: 15px; color: var(--ek-sand); }
.skill ul li { padding: 7px 0; border-bottom: 1px dashed rgba(174,157,129,0.14); display: flex; gap: 10px; }
.skill ul li::before { content: "·"; color: var(--accent); font-weight: 700; }
.skill ul li:last-child { border-bottom: 0; }

/* ====================== Experience / project list ====================== */
.projects { display: flex; flex-direction: column; border-top: 1px solid var(--ek-line); }
.project {
  display: grid;
  grid-template-columns: 120px 1.5fr 2.5fr 1fr;
  gap: 32px;
  padding: 28px 16px;
  border-bottom: 1px solid var(--ek-line);
  align-items: start;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.project:hover { background: rgba(148,65,53,0.05); }
.project .p-meta {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ek-sand);
}
.project h3 {
  font-family: var(--font-sans); font-weight: 600; font-size: 22px;
  line-height: 1.2; color: var(--ek-cream); margin: 0;
}
.project p {
  font-size: 16.5px; line-height: 1.6; color: var(--ek-sand);
  margin: 0; max-width: 55ch;
}
.project .tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.project .tag {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ek-sand); border: 1px solid var(--ek-line-strong);
  padding: 4px 8px;
}

/* ====================== Team strip ====================== */
.team-head {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start;
}
.team-head h2 { margin-top: 0; }

/* ====================== Principles list ====================== */
.principles {
  margin: 0 0 36px; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-top: 1px solid var(--ek-line);
}
.principle {
  display: grid; grid-template-columns: 180px 1fr; gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ek-line);
}
.principle dt {
  font-family: var(--font-sans); font-weight: 600;
  font-size: 19px; letter-spacing: -0.005em;
  color: var(--ek-cream);
  padding-top: 2px;
}
.principle dd {
  margin: 0; color: var(--ek-sand);
  font-size: 16.5px; line-height: 1.6;
}
.principle .etym {
  display: inline; margin-right: 6px;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--ek-cream); opacity: 0.7;
}
.principle .etym em {
  font-style: italic; color: var(--ek-cream); opacity: 1;
}
.principle dd a {
  color: var(--ek-cream); text-decoration: none;
  border-bottom: 1px solid rgba(174,157,129,0.4);
}
.principle dd a:hover { border-color: var(--accent); }

@media (max-width: 720px) {
  .principle { grid-template-columns: 1fr; gap: 10px; }
}

/* ====================== Contact ====================== */
.contact {
  padding: 128px 0;
  background:
    radial-gradient(60% 80% at 20% 100%, rgba(148,65,53,0.12), transparent 60%),
    var(--ek-navy);
}
.contact .inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: end; }
.contact h2 {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ek-cream); margin: 0 0 44px;
}
.contact h2 em { font-style: normal; color: var(--accent); }

/* Email line, terminal style. Address injected by JS (see index.html) */
.mail-term {
  max-width: 640px;
  padding-top: 22px;
  border-top: 1px solid var(--ek-line-strong);
}
.contact-aside .block h4, .mail-term-label {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ek-sand); margin: 0 0 10px; font-weight: 400;
}
.mail-term-label::before { content: "› "; color: var(--accent); }
.term-shell {
  display: flex; align-items: center; gap: 0;
  background: rgba(22,20,43,0.45);
  border: 1px solid rgba(174,157,129,0.18);
  padding: 16px 18px;
  transition: border-color 0.15s ease-out, background 0.15s ease-out;
}
.term-shell:focus-within { border-color: var(--accent); background: rgba(22,20,43,0.7); }
.term-shell .term-br {
  color: var(--accent); font-size: 20px; line-height: 1.3; flex: none;
  user-select: none; font-weight: 700;
}
.term-shell .term-br.l { margin-right: 10px; }
.term-shell .term-br.r { margin-left: 10px; }
.mail-addr {
  flex: 1; min-width: 0;
  font-family: var(--font-mono); font-size: 20px; line-height: 1.3;
  color: var(--ek-cream); text-decoration: none;
  overflow-wrap: anywhere;
  transition: color var(--dur-fast) var(--ease-out);
}
.mail-addr:hover, .mail-addr:focus-visible { color: var(--accent-hover); outline: none; }
.mail-copy {
  flex: none; margin-left: 16px; padding: 4px 0;
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ek-sand);
  transition: color var(--dur-fast) var(--ease-out);
}
.mail-copy:hover, .mail-copy:focus-visible { color: var(--ek-cream); outline: none; }
.mail-copy.is-done { color: var(--ek-signal); }
.mail-actions { margin-top: 20px; display: flex; align-items: center; gap: 14px; }
.term-send {
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ek-cream); text-decoration: none; padding: 6px 0;
}
.term-send .term-br { color: var(--accent); display: inline-block; transition: transform 0.18s ease-out; }
.term-send .term-br.l { margin-right: 8px; }
.term-send .term-br.r { margin-left: 8px; }
.term-send:hover .term-br.l { transform: translateX(-3px); }
.term-send:hover .term-br.r { transform: translateX(3px); }
.term-status {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ek-sand);
  display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
  font-family: var(--font-mono);
}
.term-status .led {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ek-signal); box-shadow: 0 0 8px rgba(24,122,16,0.6);
}

@media (max-width: 640px) {
  .term-shell { padding: 14px; }
  .term-shell .term-br, .mail-addr { font-size: 16px; }
  .mail-copy { margin-left: 10px; }
  .mail-actions { flex-wrap: wrap; }
}

.contact-aside .social-links {
  display: flex; flex-direction: column; gap: 10px; margin-top: 4px;
}
.contact-aside .social-links a {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 14.5px;
  color: var(--ek-cream); text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.contact-aside .social-links a:hover { color: var(--accent); }
.contact-aside .social-links .sico {
  flex: none; color: var(--ek-sand); transition: color var(--dur-fast) var(--ease-out);
}
.contact-aside .social-links a:hover .sico { color: var(--accent); }
.contact-aside .social-links .arr {
  margin-left: auto; color: var(--ek-sand); opacity: 0.7; font-size: 12px;
}

/* ====================== Footer ====================== */
.site-footer {
  position: relative;
  background: var(--accent);
  color: var(--ek-cream);
  border-top: none;
  padding: 0 0 32px;
  overflow: hidden;
}
/* Wire-terrain band — full-bleed horizon above the footer text.
   Gradient bed fades navy → void so the mesh reads as a glowing ridgeline
   emerging from above and settling onto the footer floor. */
.footer-terrain {
  position: relative;
  width: 100%;
  height: clamp(120px, 14vw, 200px);
  margin-bottom: 40px;
  background: linear-gradient(to bottom, var(--ek-navy) 0%, var(--accent) 100%);
  overflow: hidden;
}
.footer-terrain::before {
  /* faint vertical grid behind the mesh for depth */
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, rgba(174,157,129,0.05) 1px, transparent 1px);
  background-size: 80px 100%;
  mix-blend-mode: screen;
}
.footer-terrain img {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
  display: block;
  opacity: 0.9;
}
.site-footer .top { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.site-footer .tagline {
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ek-cream); opacity: 0.9;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.site-footer .footer-logo {
  height: 20px; width: auto; display: block;
  opacity: 0.95;
}
.site-footer .tagline .dot { color: var(--ek-cream); opacity: 0.6; margin: 0 6px; }
.site-footer .socials { display: flex; gap: 16px; }
.site-footer .socials a {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ek-cream); text-decoration: none;
  border: 1px solid rgba(240,231,213,0.35); padding: 8px 14px;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.site-footer .socials a:hover { background: rgba(240,231,213,0.12); border-color: var(--ek-cream); }

/* ====================== Hamburger button (mobile only) ====================== */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ek-line-strong);
  width: 38px; height: 38px;
  padding: 0;
  cursor: pointer;
  position: relative;
  flex: none;
}
.nav-toggle span {
  position: absolute; left: 9px; right: 9px; height: 1.5px;
  background: var(--ek-cream);
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out),
              top var(--dur-base) var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 18px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle.is-open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

/* Full-screen menu overlay */
.nav-overlay {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(22, 20, 43, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex; flex-direction: column;
  padding: 96px 28px 48px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out);
}
.nav-overlay.is-open { opacity: 1; pointer-events: auto; }
.nav-overlay nav {
  display: flex; flex-direction: column;
  gap: 4px;
}
.nav-overlay nav a {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 28px; letter-spacing: -0.01em; text-transform: none;
  color: var(--ek-cream); text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--ek-line);
  display: flex; align-items: baseline; gap: 14px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.nav-overlay nav a::before {
  content: counter(navlink, decimal-leading-zero);
  counter-increment: navlink;
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--ek-sand); opacity: 0.6;
  font-weight: 400;
}
.nav-overlay nav { counter-reset: navlink; }
.nav-overlay.is-open nav a { opacity: 1; transform: translateY(0); }
.nav-overlay.is-open nav a:nth-child(1) { transition-delay: 0.05s; }
.nav-overlay.is-open nav a:nth-child(2) { transition-delay: 0.10s; }
.nav-overlay.is-open nav a:nth-child(3) { transition-delay: 0.15s; }
.nav-overlay.is-open nav a:nth-child(4) { transition-delay: 0.20s; }
.nav-overlay.is-open nav a:nth-child(5) { transition-delay: 0.25s; }
.nav-overlay.is-open nav a:nth-child(6) { transition-delay: 0.30s; }
.nav-overlay .overlay-foot {
  margin-top: auto;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ek-sand); opacity: 0.8;
  display: flex; justify-content: space-between;
}

/* Lock body scroll when overlay open */
body.nav-open { overflow: hidden; }

/* ====================== Responsive ====================== */
@media (max-width: 960px) {
  :root { --gutter: 20px; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .status-pill { display: none; }
  .site-header { height: 56px; }
  .brand-logo { height: 18px; }

  /* Hero */
  .hero { padding: 56px 0 64px; min-height: auto; }
  .hero-bg { opacity: 0.18; right: -30%; top: 60%; width: 600px; height: 600px; }
  .hero-eyebrow { gap: 10px 12px; margin-bottom: 20px; }
  .hero-eyebrow .tag { font-size: 11.5px; }
  .hero-title { font-size: clamp(32px, 8vw, 44px); margin-bottom: 22px; }
  .hero-title br { display: none; }
  .hero-sub { font-size: 17.5px; margin-bottom: 32px; max-width: none; }
  .hero-sub br { display: none; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-ctas .btn { justify-content: center; }

  /* Section scaffolding */
  .section { padding: 64px 0; }
  .section-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }
  .section-title { font-size: clamp(26px, 6.5vw, 36px); max-width: none; }
  .section-lead { font-size: 17px; }

  /* Values: 2-up */
  .values { grid-template-columns: 1fr 1fr; }
  .value { padding: 26px 20px; }
  .value h3 { font-size: 21px; }

  /* Skills: 2-up */
  .skills { grid-template-columns: 1fr 1fr; }
  .skill { padding: 24px 20px; }

  /* Projects */
  .project {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }
  .project .tags { justify-content: flex-start; margin-top: 4px; }

  /* Team */
  .team-head { grid-template-columns: 1fr; gap: 32px; }
  .principle { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .principle dt { font-size: 17.5px; }

  /* Contact */
  .contact { padding: 72px 0; }
  .contact .inner { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .contact h2 { font-size: clamp(34px, 8vw, 48px); margin-bottom: 24px; }

  /* Clients */
  .clients { padding: 28px 0; }
  .clients .container { flex-direction: column; align-items: flex-start; gap: 16px; }
  .clients .list { gap: 32px 36px; }
  .clients .list .c-leafspace { height: 18px; }
  .clients .list .c-lynk      { height: 26px; }
  .clients .list .c-skyloom   { height: 20px; }
  .clients .list .c-epic      { height: 24px; }
  .clients .list .c-constellr { height: 16px; }

  /* Footer */
  .site-footer .top { grid-template-columns: 1fr; gap: 20px; align-items: flex-start; }
  .site-footer .socials { flex-wrap: wrap; }
  .footer-terrain { height: clamp(80px, 20vw, 140px); margin-bottom: 28px; }
}

@media (max-width: 640px) {
  /* Phone: collapse to single column */
  .values, .skills { grid-template-columns: 1fr; }
  .hero-eyebrow .sep { display: none; }
  .hero-eyebrow { gap: 8px; }
  .hero-eyebrow .tag {
    border: 1px solid var(--ek-line);
    padding: 4px 8px;
  }
  .nav-overlay nav a { font-size: 24px; }
  .site-footer .tagline { font-size: 12px; gap: 12px; }
  .site-footer .tagline span { line-height: 1.5; }
}

@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .hero-title { font-size: clamp(28px, 9vw, 36px); }
  .nav-overlay nav a { font-size: 22px; padding: 12px 0; }
}

/* Large screens (>=1920px): +1px on reading text and labels */
@media (min-width: 1920px) {
  .hero-sub { font-size: 21px; }
  .section-lead { font-size: 20px; }
  .value p, .project p, .principle dd { font-size: 17.5px; }
  .skill ul { font-size: 16px; }
  .nav { font-size: 14px; }
  .section-eyebrow { font-size: 13.5px; }
}
