/* Brickd Games — palette taken from the studio logo and Steel Dominion's UI */
:root {
  --bg: #0f1215;
  --bg-2: #161a1f;
  --panel: #1b2026;
  --line: #2b323a;
  --text: #ece9e0;
  --muted: #a9afb7;
  --accent: #ffa333;
  --accent-2: #ff6a1a;
  --blue: #39c6f0;
  --radius-cut: 14px;
  --wrap: 1180px;
  --font: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: #111; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(15 18 21 / 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 28px; }
.nav a {
  color: var(--muted); text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.nav a:hover { color: var(--text); }

/* ---------- shared type ---------- */
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: 0.32em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 10px; margin-right: 10px;
  background: var(--accent);
  vertical-align: 1px;
}
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }
h3 { font-size: 18px; letter-spacing: 0.08em; }
.lede { color: var(--muted); font-size: 19px; max-width: 60ch; }

section { padding: 96px 0; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: clamp(440px, 60vh, 600px);
  display: flex; align-items: center;
  padding: 64px 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(15 18 21 / 0.92) 0%, rgb(15 18 21 / 0.55) 45%, rgb(15 18 21 / 0) 75%),
    linear-gradient(0deg, var(--bg) 0%, rgb(15 18 21 / 0) 40%);
}
.hero-title { margin: 0 0 6px; }
.hero-title .steel {
  display: block; font-size: clamp(22px, 3vw, 34px); letter-spacing: 0.22em; color: var(--text);
}
.hero-title .steel::before {
  content: ""; display: inline-block; width: 1.6em; height: 1em; margin-right: 0.4em;
  /* three slanted bars from the Steel Dominion logo: orange, orange-red, red */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 50'%3E%3Cpath fill='%23ffa333' d='M12 0h14L14 50H0z'/%3E%3Cpath fill='%23ff7a26' d='M39 0h14L41 50H27z'/%3E%3Cpath fill='%23ff4d1a' d='M66 0h14L68 50H54z'/%3E%3C/svg%3E") no-repeat center / contain;
  vertical-align: -0.04em;
}
.hero-title .dominion {
  display: block; font-size: clamp(56px, 10vw, 128px); letter-spacing: 0.04em; line-height: 0.95;
}
.tagline {
  margin: 22px 0 18px;
  color: var(--muted); font-family: var(--mono); font-size: 14px; letter-spacing: 0.5em; text-transform: uppercase;
}
.hero .lede { color: var(--text); opacity: 0.88; max-width: 48ch; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 8px; padding: 6px 12px;
  border: 1px solid var(--line); background: rgb(27 32 38 / 0.7);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.btn {
  --cut: 12px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: background 0.15s, color 0.15s;
}
.btn-primary { background: var(--accent); color: #16110a; }
.btn-primary:hover { background: var(--text); color: #111; }
.btn-ghost { background: rgb(236 233 224 / 0.08); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: rgb(236 233 224 / 0.16); color: var(--text); }

/* ---------- features ---------- */
.features { background: var(--bg-2); border-block: 1px solid var(--line); }
.feature-grid {
  display: grid; gap: 18px; margin-top: 44px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  position: relative;
  padding: 26px 24px 24px;
  background: var(--panel);
  border-left: 3px solid var(--accent);
  clip-path: polygon(0 0, calc(100% - var(--radius-cut)) 0, 100% var(--radius-cut), 100% 100%, 0 100%);
}
.feature .num {
  display: block; margin-bottom: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--accent);
}
.feature p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid; gap: 14px; margin-top: 40px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}
.shot {
  position: relative; padding: 0; border: 0; cursor: zoom-in;
  background: var(--panel); overflow: hidden;
  aspect-ratio: 16 / 9;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease, opacity 0.2s; }
.shot:hover img { transform: scale(1.04); }
.shot span {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 26px 14px 10px; text-align: left;
  background: linear-gradient(0deg, rgb(10 12 14 / 0.85), transparent);
  color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0; transform: translateY(6px); transition: 0.2s;
}
.shot:hover span, .shot:focus-visible span { opacity: 1; transform: none; }
.gallery-grid .shot:first-child { grid-column: 1 / -1; }

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgb(8 10 12 / 0.94); color: var(--text);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; max-width: min(92vw, 1600px); }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; box-shadow: 0 20px 60px rgb(0 0 0 / 0.6); }
.lightbox figcaption {
  margin-top: 14px; text-align: center; color: var(--muted);
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
}
.lb-btn {
  position: fixed; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  width: 48px; height: 48px; font-size: 22px; cursor: pointer;
}
.lb-btn:hover { background: var(--accent); color: #111; border-color: var(--accent); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- studio ---------- */
.studio { background: var(--bg-2); border-top: 1px solid var(--line); }
.studio .wrap { display: grid; gap: 48px; grid-template-columns: 1.2fr 1fr; align-items: center; }
.studio-logo { width: 100%; max-width: 420px; justify-self: end; opacity: 0.95; }
.studio p { color: var(--muted); }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact .lede { margin-inline: auto; }
.contact .actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); padding: 28px 0;
  color: var(--muted); font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.site-footer img { height: 26px; width: auto; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav { display: none; }
  section { padding: 72px 0; }
  .hero { min-height: 0; padding: 56px 0 48px; }
  .hero::after { background: linear-gradient(0deg, var(--bg) 8%, rgb(15 18 21 / 0.7) 60%, rgb(15 18 21 / 0.35) 100%); }
  .tagline { letter-spacing: 0.32em; }
  .studio .wrap { grid-template-columns: 1fr; }
  .studio-logo { justify-self: start; max-width: 280px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
