/* ==========================================================================
   NorthGate Studios — core stylesheet
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/f8379cdb66878cb9f02f8bacbc3fdb36.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/677a5a6175ed03ad71aa851acdcefee6.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg:        #04070b;
  --bg-2:      #070c12;
  --panel:     #0b131c;
  --panel-2:   #0f1925;
  --line:      rgba(122, 178, 214, 0.14);
  --line-soft: rgba(122, 178, 214, 0.07);
  --txt:       #e7eef6;
  --muted:     #8ba0b5;
  --dim:       #5d7186;
  --accent:    #5ad1ff;
  --accent-dk: #1e88b5;
  --spark:     #ff9a3c;

  --max:   1240px;
  --gut:   clamp(1.25rem, 4vw, 3rem);
  --hdr:   72px;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
/* Every <img> ships width/height attributes so it reserves its box before it
   loads. Those attributes also fix the *rendered* height, which would stretch
   anything the CSS scales by width alone (.about__media, .pagenav__end), so
   the ratio has to come from the box back here. Rules that genuinely want a
   fixed height — .hero__bg, .folder__media, .brand__logo — set it themselves. */
img { height: auto; }
a { color: inherit; text-decoration: none; }

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

/* --- shared primitives --------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  flex: none;
}

h1, h2, h3 { line-height: 1.08; margin: 0; font-weight: 700; }

.h-sec {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
  font-size: clamp(0.98rem, 1.4vw, 1.1rem);
  max-width: 62ch;
}

.section { padding-block: clamp(4.5rem, 10vw, 8rem); position: relative; }
.section--alt { background: var(--bg-2); }
.section--alt::before,
.section--alt::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.section--alt::before { top: 0; }
.section--alt::after  { bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(90, 209, 255, 0.05);
  color: var(--txt);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover {
  background: rgba(90, 209, 255, 0.13);
  border-color: rgba(90, 209, 255, 0.55);
  color: #fff;
  transform: translateY(-2px);
}
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn--solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #04121a;
}
.btn--solid:hover { background: #7cddff; border-color: #7cddff; color: #04121a; }

/* --- header -------------------------------------------------------------- */

.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--hdr);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease);
}
.hdr.is-stuck {
  background: rgba(4, 7, 11, 0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.hdr__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.7rem; margin-right: auto; }
.brand__mark { width: 26px; height: 30px; fill: var(--accent); flex: none; }
/* Official NGS wordmark in the header/footer bars. Height-locked, width from
   the file's own aspect ratio, so it survives a swap between .svg and .png. */
.brand__logo { display: block; height: 30px; width: auto; flex: none; }
.brand__name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
.brand__name span { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: 0.35rem;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--txt); }
.nav a:hover::after, .nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: none;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--txt);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger span + span { margin-top: 4px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* --- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroDrift 26s var(--ease) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(0, -2%, 0); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 70% at 50% 42%, rgba(4, 7, 11, 0.18), rgba(4, 7, 11, 0.86) 72%),
    linear-gradient(180deg, rgba(4, 7, 11, 0.9) 0%, rgba(4, 7, 11, 0.15) 32%,
                    rgba(4, 7, 11, 0.55) 74%, var(--bg) 100%);
}
.hero__inner { padding-block: calc(var(--hdr) + 3rem) 6rem; }

.hero__kicker {
  font-size: clamp(1.9rem, 6vw, 4.1rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(231, 238, 246, 0.82);
  margin: 0;
}
.hero__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.6vw, 1.1rem);
  margin: 0.1em 0 0;
  font-size: clamp(2.6rem, 9vw, 6.2rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 0 60px rgba(90, 209, 255, 0.28);
}
.hero__title svg {
  width: clamp(26px, 5vw, 56px);
  height: auto;
  fill: var(--accent);
  flex: none;
  filter: drop-shadow(0 0 18px rgba(90, 209, 255, 0.55));
}
.hero__sub {
  margin: 1.6rem auto 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
}
.hero__cta { margin-top: 2.6rem; display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  translate: -50% 0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  display: grid;
  justify-items: center;
  gap: 0.6rem;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.25; transform: scaleY(0.55); transform-origin: top; }
  50%      { opacity: 1;    transform: scaleY(1);    transform-origin: top; }
}

/* --- about --------------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(1.05) contrast(1.05);
}
.about__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 45%, rgba(4, 7, 11, 0.65));
  pointer-events: none;
}
.about__media::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid rgba(90, 209, 255, 0.28);
  z-index: -1;
}
.about__body p { color: var(--muted); margin: 0 0 1.5rem; }
.about__body p:last-child { margin-bottom: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.tag {
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- team ---------------------------------------------------------------- */

.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  margin-top: 3rem;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.member {
  position: relative;
  background: var(--panel);
  padding: 1.5rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  overflow: hidden;
  transition: background 0.35s var(--ease);
}
.member::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
}
.member:hover { background: var(--panel-2); }
.member:hover::before { transform: scaleY(1); transform-origin: top; }
.member__av {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(90, 209, 255, 0.06);
}
.member__name {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.member__role {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 0.2rem;
}
.member--lead .member__av { border-color: rgba(90, 209, 255, 0.5); }
.member--lead .member__role { color: var(--accent); }

/* --- stats --------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
/* Fixed rows, not flex flow: the icon, the value and the label each get their
   own band so all three cards line up across the row however long the label
   runs. The label band takes the slack, keeping every label bottom-aligned. */
.stat {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  padding: 2.5rem 1.75rem;
  text-align: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(90, 209, 255, 0.05), transparent 55%),
    var(--panel);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.stat::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform 0.45s var(--ease);
}
.stat:hover { border-color: rgba(90, 209, 255, 0.4); transform: translateY(-4px); }
.stat:hover::after { transform: scaleX(1); }
.stat__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}
/* Explicit px, not %: a percentage would resolve against an auto-sized track
   and fall back to the asset's intrinsic size. */
.stat__icon svg, .stat__icon img { height: 52px; width: auto; }
.stat__icon svg { fill: var(--accent); }
.stat__num {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* A word where the others show a counted number — sized down and tracked out
   so it carries the same weight in the row without shouting. */
.stat__num--word {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-block: 0.35rem;
}
.stat__label {
  align-self: end;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}

/* --- portfolio folders --------------------------------------------------- */

.folders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem 1.25rem;
  margin-top: 3rem;
}
.folders--hub { margin-top: 0; padding-block: clamp(3rem, 7vw, 4.5rem); }

/* A folder is the cover shot plus two sheets peeking out behind it — the
   card has to read as a set of builds, not as one more build. */
.folder {
  position: relative;
  display: block;
  padding-top: 12px;
}
.folder__stack { position: absolute; inset: 0; pointer-events: none; }
.folder__stack::before,
.folder__stack::after {
  content: "";
  position: absolute;
  height: 14px;
  border: 1px solid var(--line-soft);
  border-bottom: 0;
  background: var(--panel);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.folder__stack::before { top: 0; left: 24px; right: 24px; }
.folder__stack::after  { top: 6px; left: 13px; right: 13px; }
.folder:hover .folder__stack::before { transform: translateY(-3px); border-color: var(--line); }
.folder:hover .folder__stack::after  { transform: translateY(-2px); border-color: var(--line); }

.folder__media {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  isolation: isolate;
  transition: border-color 0.45s var(--ease);
}
.folder:hover .folder__media { border-color: rgba(90, 209, 255, 0.45); }
.folder__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
  /* Source shots are already very dark (mean luminance 15-75), so lift rather
     than dim them — the caption sits on the gradient below instead. */
  filter: brightness(1.35) saturate(1.1);
}
.folder__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 11, 0.15) 20%, rgba(4, 7, 11, 0.94) 88%);
}
.folder:hover .folder__media img { transform: scale(1.08); filter: brightness(1.6) saturate(1.2); }

.folder__count {
  position: absolute;
  z-index: 2;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(4, 7, 11, 0.72);
  backdrop-filter: blur(6px);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--txt);
}
.folder__count svg { width: 13px; height: 13px; fill: var(--accent); }

.folder__cap {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: block;
  padding: 1.4rem;
}
.folder__idx {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--accent);
}
.folder__ttl {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.folder__meta { display: block; font-size: 0.72rem; color: var(--dim); margin-top: 0.15rem; }

.lede--center { margin-inline: auto; text-align: center; }
.sec__more { margin-top: 2.5rem; text-align: center; }

/* --- build showcase pages ------------------------------------------------ */

.pagehead {
  position: relative;
  padding-block: calc(var(--hdr) + 5rem) 4rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(90, 209, 255, 0.13), transparent 65%);
  pointer-events: none;
}
.pagehead h1 {
  font-size: clamp(1.9rem, 5.5vw, 3.5rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pagehead .lede { margin: 1.25rem auto 0; text-align: center; }
.pagehead__note {
  margin-top: 1.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Home / Portfolio / this folder — three levels is the whole site, so the
   trail is short enough to sit centred under the page head. */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.crumbs a { color: var(--muted); transition: color 0.25s var(--ease); }
.crumbs a:hover { color: var(--accent); }
.crumbs > * + *::before { content: "/"; margin-right: 0.55rem; color: var(--dim); }

.facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.4rem;
  margin: 1.9rem 0 0;
  padding: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.facts b {
  margin-right: 0.45rem;
  font-size: 1.1rem;
  letter-spacing: 0;
  color: var(--accent);
}

.folderbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: clamp(2rem, 5vw, 3rem);
}

.builds { display: grid; gap: clamp(3rem, 7vw, 5.5rem); padding-block: clamp(3.5rem, 8vw, 6rem); }
/* Inside a folder every shot is the same project, so they tile two-up instead
   of stacking full-bleed. Locked to one ratio with `contain`, because the
   source shots run 1.74:1 to 2.55:1 and a cover-crop would eat the panoramas. */
.builds--grid {
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
}
.builds--grid .build__frame img { aspect-ratio: 16 / 9; object-fit: contain; }

.build { position: relative; }
.build__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 0.95rem;
}
.build__no {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  flex: none;
}
.build__frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
  cursor: zoom-in;
  isolation: isolate;
}
.build__frame img {
  width: 100%;
  height: auto;
  transition: transform 0.8s var(--ease);
}
.build__frame:hover img { transform: scale(1.025); }
.build__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 90px rgba(4, 7, 11, 0.6);
  pointer-events: none;
}
.build__credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
}
.build__foot .build__credits { margin-top: 0; }
/* Folders where every shot shares the same credits list them once, up top. */
.build__credits--center { justify-content: center; margin-top: 1.9rem; }
.build__by {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-right: 0.25rem;
}
.credit {
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.credit:hover { color: var(--accent); border-color: rgba(90, 209, 255, 0.4); }

.pagenav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
}
.pagenav__end {
  width: 100%;
  text-align: center;
  padding-block: clamp(3rem, 8vw, 5rem);
}
.pagenav__end img { width: min(180px, 45vw); margin-inline: auto; opacity: 0.9; }
.pagenav__end p {
  margin: 1.5rem 0 2rem;
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- moved pages (old builds-N.html stubs) ------------------------------- */

.gone {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(4rem, 12vw, 8rem);
}
.gone h1 {
  margin: 0.6rem 0 1.25rem;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  text-transform: uppercase;
}
.gone .lede { margin: 0 auto 2.25rem; }

/* --- lightbox ------------------------------------------------------------ */

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(2, 4, 7, 0.95);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  transform: scale(0.97);
  transition: transform 0.35s var(--ease);
}
.lb.is-open img { transform: scale(1); }
.lb__close {
  position: absolute;
  top: clamp(0.75rem, 3vw, 1.75rem);
  right: clamp(0.75rem, 3vw, 1.75rem);
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(11, 19, 28, 0.8);
  color: var(--txt);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
}
.lb__close:hover { border-color: var(--accent); color: var(--accent); }

/* --- footer -------------------------------------------------------------- */

.ftr {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: clamp(3.5rem, 8vw, 5.5rem) 2rem;
}
.ftr__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.ftr__brand .brand { margin-right: 0; }
.ftr__brand p { color: var(--dim); font-size: 0.88rem; margin: 1.1rem 0 0; max-width: 34ch; }
.ftr h4 {
  margin: 0 0 1.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.ftr ul a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}
.ftr ul a:hover { color: var(--txt); gap: 0.85rem; }
.ftr ul a svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.ftr ul .soon { color: var(--dim); cursor: not-allowed; }
.ftr ul .soon::after {
  content: "Soon";
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--dim);
}
.ftr__base {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--dim);
}

/* --- admin panel --------------------------------------------------------- */

.hdr--admin { position: sticky; background: rgba(4, 7, 11, 0.92); border-bottom-color: var(--line); }
.hdr--admin .nav { gap: 1.5rem; }
.whoami {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.whoami b { color: var(--txt); }

/* sign-in ----------------------------------------------------------------- */

.auth {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 6vw, 4rem) var(--gut);
}
.auth__card {
  width: min(430px, 100%);
  padding: clamp(1.75rem, 5vw, 2.75rem);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(90, 209, 255, 0.05), transparent 45%), var(--panel);
}
.auth__card .brand { margin: 0 0 1.75rem; justify-content: center; }
.auth h1 {
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}
.auth__sub {
  margin: 0.6rem 0 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--dim);
}
.auth .btn { width: 100%; justify-content: center; margin-top: 0.5rem; }

.field { display: grid; gap: 0.5rem; margin-bottom: 1.25rem; }
.field > label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(4, 7, 11, 0.6);
  color: var(--txt);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.input:focus {
  outline: none;
  border-color: rgba(90, 209, 255, 0.6);
  background: rgba(4, 7, 11, 0.9);
}
select.input { appearance: none; cursor: pointer; }

.note {
  margin: 0 0 1.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-left-width: 2px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}
.note--err { border-left-color: #ff6b6b; color: #ffb4b4; background: rgba(255, 107, 107, 0.06); }
.note--warn { border-left-color: var(--spark); color: #ffd0a3; background: rgba(255, 154, 60, 0.06); }
.note--ok { border-left-color: var(--accent); color: var(--txt); background: rgba(90, 209, 255, 0.06); }
[hidden] { display: none !important; }

/* panel ------------------------------------------------------------------- */

.admin { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(4rem, 9vw, 7rem); }
.admin__head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.admin__head h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.5rem;
}
.card--wide { grid-column: 1 / -1; }
.card h2 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.card p { color: var(--muted); font-size: 0.88rem; margin: 0 0 1.25rem; }
.card .btn + .btn { margin-left: 0.5rem; }

.kv { display: grid; gap: 0.55rem; margin: 0; font-size: 0.82rem; }
.kv div { display: flex; justify-content: space-between; gap: 1rem; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; color: var(--txt); font-weight: 700; text-align: right; word-break: break-word; }

.table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.table th {
  text-align: left;
  padding: 0 0.75rem 0.6rem 0;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  vertical-align: middle;
}
.table td:first-child { color: var(--txt); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table .btn { padding: 0.4rem 0.7rem; font-size: 0.6rem; }
.scroll-x { overflow-x: auto; }

.pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.pill--owner { border-color: rgba(90, 209, 255, 0.5); color: var(--accent); }
.pill--bad { border-color: rgba(255, 107, 107, 0.5); color: #ff9d9d; }

.out {
  margin: 1.25rem 0 0;
  padding: 1rem;
  max-height: 340px;
  overflow: auto;
  border: 1px solid var(--line-soft);
  background: rgba(2, 4, 7, 0.6);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}

.formrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.formrow .field { margin-bottom: 0; }

@media (max-width: 620px) {
  .hdr--admin { height: auto; padding-block: 0.75rem; }
  .hdr--admin .hdr__inner { flex-wrap: wrap; gap: 0.75rem 1rem; }
  .hdr--admin .nav { gap: 1rem; flex-wrap: wrap; }
}

/* --- scroll reveal ------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media::before { display: none; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .burger { display: grid; }
  .nav {
    position: fixed;
    inset: var(--hdr) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gut) 1.5rem;
    background: rgba(4, 7, 11, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding-block: 0.9rem; border-bottom: 1px solid var(--line-soft); }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 1rem; justify-content: center; }
}

@media (max-width: 520px) {
  .ftr__grid { grid-template-columns: 1fr; }
  .facts { gap: 0.4rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
}
