:root {
  --bg: #06070a;
  --fg: #ece8df;
  --muted: #a19e96;
  --line: rgba(255, 255, 255, 0.08);
  --flux: #4aa8ff;
  --flux-2: #3fd6c9;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--flux); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(16px, 3vw, 32px);
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.site-header a { pointer-events: auto; text-decoration: none; }
.page .site-header { position: absolute; }
.brand { font-weight: 600; letter-spacing: 0.02em; font-size: 15px; }
.brand span { color: var(--muted); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.nav .icon-link { display: inline-flex; align-items: center; gap: 7px; }
.nav svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- landing strips ---------- */
.strips { display: flex; height: 100vh; height: 100dvh; min-height: 560px; }
.strip {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  color: inherit; text-decoration: none; isolation: isolate;
  border-right: 1px solid var(--line);
  transition: flex-grow 0.7s var(--ease);
}
.strip:last-child { border-right: 0; }
.strip:hover, .strip:focus-visible { flex-grow: 2.1; }
.strip:focus-visible { outline-offset: -4px; }

.strip__art {
  position: absolute; inset: 0; z-index: -2;
  background: center / cover no-repeat;
  transform: scale(1.08);
  filter: brightness(0.6) saturate(0.85);
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
}
.strip:hover .strip__art, .strip:focus-visible .strip__art { transform: scale(1); filter: brightness(0.95) saturate(1); }
.strip--teaser .strip__art { filter: brightness(0.6) saturate(0.65) blur(1.5px); }
.strip--teaser:hover .strip__art, .strip--teaser:focus-visible .strip__art { filter: brightness(1.05) saturate(0.95) blur(0); }
.strip::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0) 70%);
}

.strip__shot {
  position: absolute; left: 50%; top: 40%; width: min(46%, 170px); height: auto;
  max-height: 56vh; object-fit: contain;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 11%, #000 89%, transparent), linear-gradient(to bottom, transparent, #000 2.5%, #000 97.5%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 11%, #000 89%, transparent), linear-gradient(to bottom, transparent, #000 2.5%, #000 97.5%, transparent);
  mask-composite: intersect;
  transform: translate(-50%, -50%) scale(0.92);
  opacity: 0.8;
  transition: transform 0.9s var(--ease), opacity 0.6s var(--ease);
}
.strip:hover .strip__shot, .strip:focus-visible .strip__shot { transform: translate(-50%, -54%) scale(1); opacity: 1; }

.strip__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 3vw, 44px); }
.tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); color: #d9d4c8;
  background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(4px);
}
.tag--beta { border-color: rgba(74, 168, 255, 0.55); color: #bfe0ff; }
.strip__title { margin: 14px 0 0; font-size: clamp(26px, 2.6vw, 42px); line-height: 1.05; font-weight: 600; }
.strip__title small { display: block; font-size: 0.42em; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.strip--ironhold .strip__title { font-family: "Cinzel", serif; font-weight: 700; }
.strip--trenchfoot .strip__title { font-family: "Special Elite", monospace; font-weight: 400; }
.strip--flux .strip__title { font-family: "Space Grotesk", var(--font); display: flex; align-items: center; gap: 0.28em; }
.strip__mark { height: 0.62em; width: auto; }
.lockup { display: flex; align-items: center; gap: 0.22em; }
.lockup img { height: 0.6em; width: auto; flex: none; }

.strip__more {
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.7s var(--ease), opacity 0.4s ease;
}
.strip:hover .strip__more, .strip:focus-visible .strip__more { max-height: 260px; opacity: 1; transition-delay: 0.12s; }
.strip__more p { margin: 14px 0 0; max-width: 42ch; color: #cfcac0; line-height: 1.6; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span { font-size: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); color: #ddd8ce; }
.cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; font-size: 14px; }
.cta::after { content: "\2192"; transition: transform 0.3s var(--ease); }
.strip:hover .cta::after { transform: translateX(4px); }

.landing-foot {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; pointer-events: none;
  display: flex; justify-content: center; padding: 10px; font-size: 12px; color: rgba(255, 255, 255, 0.45);
}
.landing-foot a { pointer-events: auto; text-decoration: none; }
.landing-foot a:hover { color: var(--fg); }

/* ---------- project pages ---------- */
.page { min-height: 100vh; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.back { display: inline-block; margin-bottom: 22px; font-size: 14px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--fg); }

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 120px 0 80px;
}
.hero__art { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 8, 15, 0.92) 0%, rgba(5, 8, 15, 0.6) 55%, rgba(5, 8, 15, 0.3) 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.eyebrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hero h1 { font-family: "Space Grotesk", var(--font); font-size: clamp(48px, 7vw, 88px); line-height: 1; margin: 18px 0 14px; letter-spacing: -0.02em; }
.lede { font-size: clamp(18px, 2vw, 22px); color: #d6dbe4; margin: 0 0 12px; max-width: 34ch; line-height: 1.45; }
.hero p.sub { color: #a9b2bf; max-width: 52ch; line-height: 1.65; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 10px;
  font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.35); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--primary { background: var(--flux); border-color: var(--flux); color: #03101f; }
.btn--primary:hover { background: #6cb9ff; border-color: #6cb9ff; }
.meta { margin-top: 12px; font-size: 13px; color: #8d97a5; }
.hero__shot {
  justify-self: end; width: 100%; max-width: 560px; height: auto;
  border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 30px 100px rgba(27, 143, 255, 0.18), 0 20px 60px rgba(0, 0, 0, 0.5);
}

.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section h2 { font-family: "Space Grotesk", var(--font); font-size: clamp(26px, 3vw, 34px); margin: 0 0 8px; }
.section .intro { color: var(--muted); margin: 0 0 32px; max-width: 60ch; line-height: 1.6; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.card { padding: 20px; border-radius: 14px; background: #0c1119; border: 1px solid var(--line); }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.card .k { color: var(--flux); font-weight: 600; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.section-head h2 { margin-top: 12px; }
.section-head .intro { margin-bottom: 0; }
.section--pro { background: radial-gradient(ellipse at 50% 0%, rgba(27, 143, 255, 0.08), transparent 60%); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.shot {
  display: block; border-radius: 14px; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--line); background: #0b0f17;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.shot:hover { transform: translateY(-2px); border-color: rgba(74, 168, 255, 0.45); }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.shot--wide { grid-column: 1 / -1; }
.fine { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.fine a { color: #9fd0ff; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1600px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(2, 4, 8, 0.86); }
.lightbox img { width: 100%; height: auto; max-height: 92vh; object-fit: contain; border-radius: 12px; cursor: zoom-out; }
.lightbox__close { position: absolute; top: 8px; right: 12px; z-index: 1; font-size: 28px; line-height: 1; color: #fff; background: rgba(0, 0, 0, 0.5); border: 0; border-radius: 8px; width: 40px; height: 40px; cursor: pointer; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.note { padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: #0a0d13; line-height: 1.6; color: #c9cdd4; font-size: 15px; }
.note h3 { margin: 0 0 8px; color: var(--fg); font-size: 17px; }
.note a { color: #9fd0ff; }

.page-foot { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.page-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.page-foot a { text-decoration: none; }
.page-foot a:hover { color: var(--fg); }

/* ---------- teaser pages ---------- */
.teaser { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; padding: 100px 16px 60px; }
.teaser__art { position: absolute; inset: 0; z-index: -2; background: center 68% / cover no-repeat; filter: brightness(0.6) saturate(0.8); animation: drift 30s ease-in-out infinite alternate; }
.teaser::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 80%); }
.teaser h1 { margin: 18px 0 12px; font-size: clamp(40px, 8vw, 96px); line-height: 1; }
.teaser h1 small { display: block; font-size: 0.26em; letter-spacing: 0.4em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-family: var(--font); font-weight: 500; }
.teaser p { color: #cfcac0; max-width: 40ch; margin: 0 auto; line-height: 1.6; }
.teaser .back { margin: 32px 0 0; }
.teaser--ironhold h1 { font-family: "Cinzel", serif; font-weight: 700; }
.teaser--trenchfoot h1 { font-family: "Special Elite", monospace; font-weight: 400; }
@keyframes drift { from { transform: scale(1.05); } to { transform: scale(1.15) translateY(-1.5%); } }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  .strips { flex-direction: column; height: auto; min-height: 0; }
  .strip { flex: none; min-height: 58vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .strip:first-child { padding-top: 56px; }
  .strip__more { max-height: none; opacity: 1; }
  .strip__shot, .strip:hover .strip__shot, .strip:focus-visible .strip__shot { top: 28px; left: auto; right: 24px; width: 110px; max-height: 200px; transform: none; opacity: 1; }
  .landing-foot { position: static; padding: 18px; }
  .hero { padding-top: 96px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__shot { justify-self: center; max-width: 420px; }
  
@media (hover: none) {
  .strip__more { max-height: none; opacity: 1; }
  .strip__art, .strip--teaser .strip__art { filter: brightness(0.85) saturate(0.9) blur(0); transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
