/* =========================================================================
   KERBERUS WULF STUDIO — site styles
   Premium / high-tech · neutral charcoal · cyan accent (from the wolf's eye)
   Type: Bahnschrift Light Condensed → Saira Condensed fallback
   ========================================================================= */

:root {
  /* fonts (overridable by Tweaks) */
  --font-display: "Bahnschrift", "Saira Condensed", "Oswald", system-ui, sans-serif;
  --font-body: "Bahnschrift", "Saira", system-ui, sans-serif;

  /* accent (overridable by Tweaks) — sampled from the wolf's eye */
  --accent: #3a86ff;
  --accent-soft: color-mix(in oklab, var(--accent) 18%, transparent);
  --accent-line: color-mix(in oklab, var(--accent) 40%, transparent);

  /* dark theme palette (default) */
  --bg:        #0b0d0f;
  --bg-2:      #111417;
  --bg-3:      #171b1f;
  --panel:     rgba(255,255,255,0.025);
  --panel-2:   rgba(255,255,255,0.04);
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);
  --text:      #e9edf0;
  --text-2:    #aab3ba;
  --text-3:    #6f7a82;
  --header-bg: rgba(11,13,15,0.72);
  --grid-line: rgba(255,255,255,0.022);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-pad: clamp(80px, 11vw, 160px);
  --radius: 4px;
}

[data-theme="light"] {
  --bg:        #ffffff;
  --bg-2:      #f4f6f9;
  --bg-3:      #eaeef2;
  --panel:     rgba(15,20,24,0.022);
  --panel-2:   rgba(15,20,24,0.045);
  --line:      rgba(15,20,24,0.11);
  --line-2:    rgba(15,20,24,0.2);
  --text:      #161b1f;
  --text-2:    #515c64;
  --text-3:    #8e99a1;
  --header-bg: rgba(255,255,255,0.7);
  --grid-line: rgba(15,20,24,0.03);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

::selection { background: var(--accent); color: #03121a; }

/* ---- layout helpers ---------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  position: relative;
  scroll-margin-top: 92px;
}

.section-pad { padding-block: var(--section-pad); }

/* eyebrow / section index label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 28px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.eyebrow .idx { color: var(--text-3); letter-spacing: 0.2em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0;
  text-wrap: balance;
}

.section-title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.section-title strong { font-weight: 600; }

.lead {
  font-size: clamp(1.12rem, 1.7vw, 1.5rem);
  line-height: 1.6;
  color: var(--text);
  font-weight: 300;
  max-width: 60ch;
  text-wrap: pretty;
}

p { text-wrap: pretty; }

/* =========================================================================
   HEADER  — glossy blue bar (user asset) with white-outlined wolf mark
   ========================================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 84px;
  display: flex;
  align-items: center;
  background-image: url("assets/header-bar.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  transition: height .35s ease, filter .35s ease;
}
.site-header.scrolled {
  height: 70px;
  filter: drop-shadow(0 6px 18px rgba(20,90,200,0.28));
}
.site-header .bar-inner {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 40px);
}

/* brand lockup (wolf mark, left of the centred cluster) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand .mark {
  height: 56px;
  width: auto;
  transition: height .35s ease, transform .4s cubic-bezier(.2,.8,.2,1);
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.35));
}
.site-header.scrolled .brand .mark { height: 46px; }
.brand:hover .mark { transform: translateY(-1px) scale(1.04); }

/* nav */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
}
.nav a {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.06rem;
  letter-spacing: 0.04em;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0,40,90,0.45);
  padding: 6px 2px;
  transition: color .25s ease, opacity .25s ease;
}
.nav a .num { display: none; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.nav a:hover { color: #eaf6ff; }
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a.active { color: #ffffff; }

/* hamburger */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.menu-btn span {
  display: block;
  width: 26px; height: 2px;
  margin-inline: auto;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,40,90,0.4);
  transition: transform .35s ease, opacity .25s ease;
}
body.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* theme toggle — pinned to the right edge of the header bar */
.theme-toggle {
  position: absolute;
  top: 50%;
  right: clamp(14px, 3vw, 34px);
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: rgba(4,18,42,0.34);
  border: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 2px 8px rgba(0,30,80,0.25), inset 0 1px 0 rgba(255,255,255,0.25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: height .35s ease, width .35s ease, background .25s ease, transform .3s ease, border-color .25s ease;
}
.site-header.scrolled .theme-toggle { width: 38px; height: 38px; }
.theme-toggle:hover { background: rgba(4,18,42,0.5); border-color: #fff; }
.theme-toggle:active { transform: translateY(-50%) scale(0.92); }
.theme-toggle svg { width: 20px; height: 20px; display: block; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* =========================================================================
   HERO  — space backdrop (user asset) + centred logo lockup
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #04060c;
  background-image: url("assets/hero-space.png");
  background-size: cover;
  background-position: center 28%;
  padding: 110px var(--gutter) 90px;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
}
.hero-logo {
  width: min(82vw, 720px);
  height: auto;
  filter: drop-shadow(0 18px 50px rgba(0,0,0,0.55));
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-12px); }
}
.hero-tagline {
  margin: clamp(20px, 3vw, 38px) 0 0;
  font-family: var(--font-display);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: clamp(0.82rem, 1.5vw, 1.12rem);
  color: #dfe9f2;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
  max-width: 30ch;
  line-height: 1.7;
}
.hero-tagline .em { color: var(--accent); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 44px);
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

/* hero buttons sit on the dark space backdrop */
.hero-actions .btn.ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
}
.hero-actions .btn.ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255,255,255,0.14);
  box-shadow: none;
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.66rem;
  color: rgba(255,255,255,0.72);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.scroll-cue .track {
  width: 1px; height: 46px;
  background: rgba(255,255,255,0.3);
  position: relative; overflow: hidden;
}
.scroll-cue .track::after {
  content:""; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--accent);
  animation: cue 2.1s ease-in-out infinite;
}
@keyframes cue {
  0% { top: -50%; } 60%,100% { top: 100%; }
}
@media (max-height: 880px) {
  .scroll-cue { display: none; }
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.92rem;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease, box-shadow .3s ease;
  background: var(--accent);
  color: #03121a;
}
.btn .arr { transition: transform .3s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--accent-soft); }
.btn:hover .arr { transform: translate(4px,-4px); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: none; }

/* =========================================================================
   ABOUT
   ========================================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: start;
}
.about-intro p + p { margin-top: 1.3em; }
.about-aside {
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 3vw, 44px);
}
.founders { display: flex; flex-direction: column; gap: 22px; }
.founder { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.founder .name { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: 0.04em; }
.founder .role { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.7rem; color: var(--text-3); }
.about-meta { margin-top: 30px; display: flex; gap: 40px; flex-wrap: wrap; }
.about-meta .stat .n { font-family: var(--font-display); font-weight: 300; font-size: 2.4rem; color: var(--accent); line-height: 1; }
.about-meta .stat .k { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.66rem; color: var(--text-3); margin-top: 8px; }

/* core values */
.values {
  margin-top: clamp(64px, 9vw, 120px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.value {
  background: var(--bg);
  padding: clamp(30px, 3.4vw, 48px);
  position: relative;
  transition: background .35s ease;
}
.value:hover { background: var(--bg-2); }
.value .vn {
  font-family: var(--font-display);
  font-size: 0.8rem; letter-spacing: 0.3em; color: var(--text-3);
}
.value h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 16px 0 16px;
}
.value h3 .dot { color: var(--accent); }
.value p { color: var(--text-2); font-size: 1.02rem; margin: 0; }
.value::after {
  content:""; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: var(--accent); transition: width .4s cubic-bezier(.2,.8,.2,1);
}
.value:hover::after { width: 100%; }

/* =========================================================================
   PROJECTS
   ========================================================================= */
.proj-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.project {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(36px, 5vw, 60px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
}
.project .shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #05070c;
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.project .shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.project .shot .scan {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 80% 10%, var(--accent-soft), transparent 60%);
}
.project .meta { padding: clamp(28px, 3vw, 48px) clamp(28px,3vw,52px); }
.project .badge {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.7rem; color: var(--accent);
  border: 1px solid var(--accent-line);
  padding: 6px 12px; border-radius: 100px; margin-bottom: 22px;
}
.project .badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 var(--accent-soft);} 70%{ box-shadow: 0 0 0 10px transparent;} 100%{ box-shadow:0 0 0 0 transparent;} }
.project h3 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em; }
.project .tagline { color: var(--accent); font-family: var(--font-display); letter-spacing: 0.06em; font-size: 1.1rem; margin: 10px 0 18px; }
.project .desc { color: var(--text-2); margin: 0 0 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.72rem; color: var(--text-2);
  border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 7px 13px;
}

/* card-grid variant (toggled by Tweaks) */
[data-projects="cards"] .project {
  grid-template-columns: 1fr;
}
[data-projects="cards"] .project .shot {
  border-right: none; border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 7;
}

/* =========================================================================
   SERVICES
   ========================================================================= */
.svc-groups { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: clamp(36px,5vw,56px); }
.svc-group { }
.svc-group > .gh {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 20px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
}
.svc-group > .gh .gi {
  font-family: var(--font-display); font-weight: 300; font-size: 1.1rem;
  color: var(--accent); letter-spacing: 0.1em;
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--accent-line); border-radius: var(--radius);
  flex-shrink: 0;
}
.svc-group > .gh h3 {
  font-size: clamp(1.4rem, 2vw, 1.85rem); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.svc-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s ease;
}
.svc-item:hover { padding-left: 12px; }
.svc-item .it-head { display: flex; align-items: baseline; gap: 12px; cursor: default; }
.svc-item .it-head .plus { color: var(--accent); font-family: var(--font-display); font-weight: 300; transform: translateY(1px); }
.svc-item h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.16rem; letter-spacing: 0.02em; }
.svc-item p { color: var(--text-2); font-size: 0.98rem; margin: 10px 0 0; }
.svc-item.sub p { color: var(--text-2); }
.workforce { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.workforce .wf {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line);
  padding: 7px 12px; border-radius: var(--radius);
}

/* =========================================================================
   JOBS
   ========================================================================= */
.jobs-card {
  margin-top: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: clamp(36px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.jobs-card::before {
  content:""; position: absolute; right: -40px; top: -40px;
  width: 240px; height: 240px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.jobs-card .jstatus {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.24em;
  font-size: 0.74rem; color: var(--text-2); margin-bottom: 18px;
}
.jobs-card .jstatus .led { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.jobs-card h3 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 16px; }
.jobs-card p { color: var(--text-2); max-width: 56ch; margin: 0; }
.jobs-card .eoi {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.jobs-card .eoi .label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.7rem; color: var(--text-3); }
.subject-chip {
  font-family: var(--font-display); letter-spacing: 0.06em; font-size: 0.84rem;
  color: var(--accent); background: var(--bg); border: 1px dashed var(--accent-line);
  padding: 8px 14px; border-radius: var(--radius); user-select: all;
}

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  margin-top: clamp(20px, 3vw, 36px);
}
.contact-lead h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.contact-email {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 28px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: 0.02em;
  color: var(--text); transition: color .25s ease;
}
.contact-email:hover { color: var(--accent); }
.contact-email .arr { color: var(--accent); transition: transform .3s ease; }
.contact-email:hover .arr { transform: translate(4px,-4px); }

.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.social {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color .3s ease, background .3s ease, transform .3s ease;
}
.social:hover { border-color: var(--accent); background: var(--panel-2); transform: translateY(-3px); }
.social .s-name { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 1.05rem; }
.social .s-handle { font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }
.social .arr { color: var(--text-3); transition: color .25s ease, transform .3s ease; }
.social:hover .arr { color: var(--accent); transform: translate(3px,-3px); }
.social.discord { grid-column: 1 / -1; background: var(--accent-soft); border-color: var(--accent-line); }
.social.is-disabled { cursor: default; }
.social.is-disabled:hover { transform: none; border-color: var(--accent-line); background: var(--accent-soft); }
.social.is-disabled:hover .arr { transform: none; color: var(--text-3); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: clamp(48px, 6vw, 80px) 36px;
}
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .mark { height: 40px; }
.footer-brand .wordmark .l1 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.16em; font-size: 1.1rem; text-transform: uppercase; }
.footer-brand .wordmark .l2 { font-family: var(--font-display); letter-spacing: 0.4em; font-size: 0.64rem; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }
.footer-nav { display: flex; gap: clamp(20px,3vw,44px); flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.84rem; color: var(--text-2); transition: color .25s ease; }
.footer-nav a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--text-3);
}
.footer-bottom .legal { font-family: var(--font-display); letter-spacing: 0.08em; }

/* =========================================================================
   SCROLL REVEAL  (progressive enhancement — only hides once JS opts in)
   ========================================================================= */
.reveal { will-change: opacity, transform; }
html.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1);
}
html.reveal-ready .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  html.reveal-ready .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-aside { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 30px; }
  .svc-groups { grid-template-columns: 1fr; }
  .project, [data-projects] .project { grid-template-columns: 1fr; }
  .project .shot { border-right: none; border-bottom: 1px solid var(--line); aspect-ratio: 16/8; }
  .jobs-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .site-header .bar-inner { max-width: 100%; justify-content: space-between; }
  .theme-toggle { right: calc(var(--gutter) + 52px); }
  /* mobile nav */
  .menu-btn { display: flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 360px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 100px var(--gutter) 40px;
    background: var(--bg-2);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .42s cubic-bezier(.2,.85,.2,1);
    box-shadow: -30px 0 60px rgba(0,0,0,0.25);
  }
  body.menu-open .nav { transform: translateX(0); }
  .nav a {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.7rem;
    letter-spacing: 0.04em;
    color: var(--text);
    text-shadow: none;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateX(18px);
  }
  body.menu-open .nav a { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s ease; }
  body.menu-open .nav a:nth-child(1){ transition-delay:.08s;}
  body.menu-open .nav a:nth-child(2){ transition-delay:.14s;}
  body.menu-open .nav a:nth-child(3){ transition-delay:.20s;}
  body.menu-open .nav a:nth-child(4){ transition-delay:.26s;}
  body.menu-open .nav a:nth-child(5){ transition-delay:.32s;}
  .nav a .num { display: inline-block; font-size: 0.7rem; color: var(--text-3); margin-right: 10px; vertical-align: 3px; }
  .nav a::after { background: var(--accent); height: 1px; }
  .nav a.active { color: var(--accent); }

  .nav-scrim {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s;
  }
  body.menu-open .nav-scrim { opacity: 1; visibility: visible; }

  .values { grid-template-columns: 1fr; }
  .socials { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .founder { flex-direction: column; gap: 4px; align-items: flex-start; }
  .hero-logo { width: min(90vw, 480px); }
}

/* tweaks mount safety */
#tweaks-root:empty { display: none; }
