/* ============================================================
   rycha.live — matches the home-page comp (dark steel + azure)
   Palette is pulled from the comp: near-black surfaces, cool
   hairlines, one electric azure accent (the ".live" dot).
   Type: Barlow / Barlow Semi Condensed — signage grotesque to
   match the ALGS broadcast-graphics language of the work.
   ============================================================ */

:root {
  --bg: #0b0c0f;
  --bg-panel: #121418;
  --bg-card: #15171c;
  --hairline: #2a2e36;
  --hairline-strong: #3a3f49;
  --text: #e8eaee;
  --text-mid: #b8bdc6;
  --text-dim: #8b919c;
  --text-faint: #565c66;
  --accent: #2f9dff;       /* unslop-ignore: sampled from the comp's ".live" dot */
  --accent-soft: #6db9ff;
  --wm-grad: linear-gradient(180deg, #f4f6f8 20%, #9aa3ae 90%);
  --container: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul { list-style: none; }

/* ------------------------------------------------------------
   Wordmark
   ------------------------------------------------------------ */
.wordmark {
  font-weight: 700;
  letter-spacing: -0.015em;
  background: var(--wm-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.wordmark .dot {
  -webkit-text-fill-color: var(--accent);
}

.wordmark .tld {
  background: linear-gradient(180deg, #d7dbe0 20%, #7e8792 90%);
  -webkit-background-clip: text;
  background-clip: text;
}

.wordmark-hero {
  font-size: clamp(56px, 8.5vw, 96px);
  line-height: 0.9;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.7));
}

.wordmark-small { font-size: 20px; }
.wordmark-footer { font-size: 26px; }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  height: min(640px, 58vw);
  min-height: 460px;
  overflow: hidden;
  background: #08090b;
}

/* Drop the arena render at assets/hero.jpg — until then the
   layered gradients below stand in. */
.hero-media {
  position: absolute;
  inset: 0;
  background-color: #0c0f14;
  background-image:
    url("../assets/hero.jpg"),
    radial-gradient(90% 70% at 50% 30%, rgba(47, 108, 179, 0.28), transparent 70%),
    radial-gradient(40% 35% at 50% 42%, rgba(120, 170, 220, 0.18), transparent 70%),
    linear-gradient(180deg, #10141b 0%, #0a0d12 55%, #07080b 100%);
  background-size: cover;
  background-position: center;
}

/* Truss / rigging lines up top + vignette — reads as staging on the
   placeholder, and as a subtle darkening layer over the real photo. */
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(150, 180, 215, 0.05) 0 2px, transparent 2px 90px),
    repeating-linear-gradient(0deg, rgba(150, 180, 215, 0.06) 0 2px, transparent 2px 56px) top / 100% 170px no-repeat,
    radial-gradient(120% 90% at 50% 20%, transparent 55%, rgba(4, 5, 7, 0.75) 100%);
}

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 11, 0.35) 0%, transparent 30%, transparent 55%, rgba(7, 8, 11, 0.92) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 34px;
}

.hero-lower {
  display: flex;
  align-items: flex-end;
  gap: 56px;
  margin-top: 26px;
}

.hero-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-nav a {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-mid);
  transition: color 0.15s ease;
}

.hero-nav a:hover { color: var(--accent-soft); }

/* Featured project banner */
.featured {
  display: flex;
  flex-direction: column;
  width: 250px;
}

.featured-media {
  height: 46px;
  background:
    linear-gradient(100deg, rgba(6, 10, 16, 0.85) 0%, transparent 45%),
    linear-gradient(260deg, rgba(6, 10, 16, 0.85) 0%, transparent 45%),
    repeating-linear-gradient(115deg, rgba(180, 220, 255, 0.16) 0 3px, transparent 3px 26px),
    linear-gradient(90deg, #123a63, #2f9dff 55%, #9fd4ff);
  border: 1px solid var(--hairline-strong);
  transition: border-color 0.15s ease;
}

.featured:hover .featured-media { border-color: var(--accent); }

.featured-label {
  align-self: flex-end;
  margin-top: 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-mid);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}

/* ------------------------------------------------------------
   Sub nav
   ------------------------------------------------------------ */
.subnav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, #1c1e23 0%, #101216 60%, #0c0d10 100%);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid #07080a;
}

.subnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.subnav-links {
  display: flex;
  gap: 34px;
}

.subnav-links a {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mid);
  line-height: 48px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.subnav-links a:hover {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* ------------------------------------------------------------
   Project grid
   ------------------------------------------------------------ */
.work {
  background: var(--bg);
  padding: 52px 0 72px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card a {
  position: relative;
  display: block;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  transition: border-color 0.15s ease;
}

.card a:hover { border-color: var(--hairline-strong); }

.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: #191c22;
  background-size: cover;
  background-position: center top;
}

/* Gloss sheen at the top + fade-out to black behind the caption,
   as in the comp. The hatch keeps empty slots from looking broken. */
.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 16%),
    linear-gradient(180deg, transparent 48%, rgba(8, 9, 12, 0.55) 74%, rgba(8, 9, 12, 0.96) 100%),
    repeating-linear-gradient(115deg, rgba(160, 185, 215, 0.025) 0 2px, transparent 2px 14px);
}

.card-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px 14px;
}

.card-caption strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.card a:hover .card-caption strong { color: var(--accent-soft); }

.card-caption span {
  display: block;
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Coming-soon card */
.card-soon a {
  cursor: default;
  border-style: dashed;
}

.card-soon .card-media {
  background: #0a0b0d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.soon-label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--text-mid);
}

.card-soon a:hover .card-caption strong { color: var(--text); }

/* ------------------------------------------------------------
   Project pages
   ------------------------------------------------------------ */
.project-head {
  position: relative;
  background: linear-gradient(180deg, #16181d 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--hairline);
  padding: 44px 0 38px;
}

.project-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.crumb {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.crumb a { color: var(--text-mid); transition: color 0.15s ease; }
.crumb a:hover { color: var(--accent-soft); }
.crumb span { margin: 0 6px; color: var(--text-faint); }

.project-head h1 {
  margin-top: 12px;
  font-size: clamp(30px, 4.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  margin-top: 24px;
}

.project-meta dt {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

.project-meta dd {
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--text-mid);
}

.project-body { padding: 44px 0 72px; }

.overview {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
}

.overview + .overview { margin-top: 14px; }

.body-label {
  margin-top: 30px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

.contribs {
  margin-top: 12px;
  max-width: 640px;
  columns: 2;
  column-gap: 44px;
}

.contribs li {
  font-size: 13px;
  color: var(--text-dim);
  padding: 4px 0;
  break-inside: avoid;
}

.contribs li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 10px;
  background: var(--accent);
  vertical-align: 2px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 44px;
  align-items: start;
}

.gallery figure {
  border: 1px solid var(--hairline);
  background: var(--bg-card);
  min-width: 0;
}

.gallery .g-w { grid-column: span 6; }
.gallery .g-h { grid-column: span 3; }
.gallery .g-t { grid-column: span 2; }

.gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery figcaption {
  padding: 9px 12px;
  font-size: 12px;
  color: var(--text-dim);
  border-top: 1px solid var(--hairline);
}

.pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 56px;
}

.pn a {
  display: block;
  border: 1px solid var(--hairline);
  background: var(--bg-card);
  padding: 16px 18px;
  transition: border-color 0.15s ease;
}

.pn a:hover { border-color: var(--hairline-strong); }

.pn-next { text-align: right; }

.pn-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

.pn strong {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-mid);
  transition: color 0.15s ease;
}

.pn a:hover strong { color: var(--accent-soft); }

/* ------------------------------------------------------------
   Footer — the unfinished part of the comp.
   Old-bungie.net structure: link columns on a steel band,
   black legal strip with pipe-separated microlinks below.
   ------------------------------------------------------------ */
.footer-main {
  position: relative;
  background: linear-gradient(180deg, #17191e 0%, #0e1013 45%, #0a0b0e 100%);
  border-top: 1px solid var(--hairline);
}

/* Azure edge-light along the top, fading out to the right —
   same accent logic as the featured-project underline. */
.footer-main::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 42%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 52px 0 60px;
}

.footer-blurb {
  margin-top: 16px;
  max-width: 300px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-dim);
}

.footer-status {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mid);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.footer-col h2 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--text-mid);
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--accent-soft); }

.tag-pdf {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  border: 1px solid var(--hairline-strong);
  vertical-align: 1px;
}

.footer-legal {
  background: #060708;
  border-top: 1px solid #1b1e24;
  padding: 20px 0 30px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.legal-links a {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

.legal-links a:hover { color: var(--accent-soft); }

.legal-links span {
  color: #2c3038;
  font-size: 10px;
}

.legal-copy {
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-faint);
  max-width: 640px;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .gallery .g-t { grid-column: span 3; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hero { min-height: 420px; }
  .hero-lower {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .subnav-links { gap: 20px; }
  .subnav-links a { letter-spacing: 0.12em; }
  .grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery .g-h, .gallery .g-t { grid-column: span 6; }
  .pn { grid-template-columns: 1fr; }
  .pn-next { text-align: left; }
  .contribs { columns: 1; }
}
