/* ============================================================
   Joshua Gorton — Portfolio
   Single stylesheet. Tweak the palette via the variables below.
   ============================================================ */

:root {
  /* ---- Palette (edit these to re-theme the whole site) ---- */
  --bg:            #0d0d0d;   /* near-black page background        */
  --bg-soft:       #141414;   /* cards / elevated surfaces         */
  --bg-softer:     #1b1b1b;   /* hover / nested surfaces           */
  --border:        #262626;   /* subtle card + divider borders     */
  --border-strong: #333333;   /* stronger borders                  */

  --text:          #f2f2f2;   /* primary text                      */
  --text-muted:    #a3a3a3;   /* secondary text                    */
  --text-dim:      #6b6b6b;   /* faint text / captions             */

  --accent:        #f4737a;   /* coral / salmon — the one accent   */
  --accent-hover:  #f78e94;   /* lighter coral for hover           */
  --accent-tint:   rgba(244, 115, 122, 0.14); /* faint fill/chip   */
  --accent-line:   rgba(244, 115, 122, 0.45); /* translucent border*/
  --report-ok:     rgba(244, 115, 122, 0.55); /* [OK] tag — dim coral   */
  --report-warn:   #f4737a;                   /* [WARN] tag — full coral */

  /* ---- Type ---- */
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Consolas, "Courier New", monospace;

  /* ---- Layout ---- */
  --nav-h: 64px;
  --maxw: 1120px;
  --gap: 24px;
  --radius: 12px;
  --radius-sm: 8px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

* { margin: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

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

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

/* --------------------------------------------------- Shared layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #0d0d0d;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Visually hidden but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Temporary stub styling for sections not built yet */
.section-stub {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 24px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px dashed var(--border);
}

/* =====================================================  BUTTONS  */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover,
.btn:focus-visible {
  background: var(--accent);
  color: #0d0d0d;
  transform: translateY(-2px);
}

.btn--solid {
  background: var(--accent);
  color: #0d0d0d;
}
.btn--solid:hover,
.btn--solid:focus-visible { background: var(--accent-hover); }

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--text);
}

.btn--lg {
  font-size: 1rem;
  padding: 14px 26px;
}

.btn--disabled,
.btn[aria-disabled="true"] {
  border-color: var(--border-strong);
  color: var(--text-dim);
  background: var(--bg-softer);
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

/* =======================================================  HEADER  */
.site-header { position: relative; }

/* ---- Sticky nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  height: 100%;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
}
.nav__brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.nav__brand-name { font-size: 1rem; letter-spacing: -0.01em; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.nav__links a {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.nav__links a:hover,
.nav__links a:focus-visible { color: var(--text); }
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); }

/* Nav "Hire me" CTA pill */
.nav__links a.nav__cta {
  margin-left: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: #0d0d0d;
  border-radius: 100px;
  font-weight: 700;
}
.nav__links a.nav__cta::after { display: none; }
.nav__links a.nav__cta:hover,
.nav__links a.nav__cta:focus-visible {
  background: var(--accent-hover);
  color: #0d0d0d;
}

/* ---- Hamburger (hidden on desktop) ---- */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav__toggle-bar {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.18s var(--ease);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Intro (profile / name / role) ---- */
.intro {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(244, 115, 122, 0.10), transparent 60%);
}
.intro__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 72px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.intro__avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  padding: 4px;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(244, 115, 122, 0.08);
}
.intro__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.intro__name {
  margin-top: 28px;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
}
.intro__role {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
}

.intro__about {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: clamp(0.9rem, 1.4vw, 0.98rem);
  line-height: 1.65;
  color: var(--text-muted);
}

/* ============================================  HERO / FEATURED  */
.hero { padding: 56px 0 76px; }

.hero__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
  display: grid;
  gap: 44px;
}

/* ---- In-game menu panel ---- */
.hero__panel {
  position: relative;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 6, 6, 0.94) 2%, rgba(6, 6, 6, 0.45) 32%, rgba(6, 6, 6, 0) 62%),
    linear-gradient(to right, rgba(6, 6, 6, 0.7) 0%, rgba(6, 6, 6, 0) 46%);
}
.hero__menu {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(20px, 4vw, 40px);
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__eyebrow-sep {
  color: var(--text-dim);
  margin: 0 8px;
}
.hero__eyebrow-role {
  color: var(--text);
  font-weight: 700;
}

/* ---- In-game menu buttons ---- */
.menu { display: flex; flex-direction: column; gap: 12px; }

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 250px;
  padding: 12px 22px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(10, 10, 10, 0.5);
  border: 2px solid rgba(245, 245, 245, 0.85);
  border-radius: 5px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
              color 0.18s var(--ease), transform 0.18s var(--ease);
}
.menu-btn__label { display: inline-flex; align-items: center; gap: 9px; }
.menu-btn__icon { color: var(--accent); font-size: 0.85em; }

.menu-btn--quit:hover,
.menu-btn--quit:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d0d0d;
  transform: translateX(5px);
}
.menu-btn--quit:hover .menu-btn__icon { color: #0d0d0d; }

.menu-btn--play {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d0d0d;
}
.menu-btn--play .menu-btn__icon { color: #0d0d0d; }
.menu-btn--play:hover,
.menu-btn--play:focus-visible {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateX(5px);
}
.menu-btn__note {
  margin-top: 5px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(13, 13, 13, 0.72);
}
.menu-btn--quit .menu-btn__note { color: var(--accent); }

/* ---- Hero meta block (description / facts / my role) ---- */
.hero__meta {
  display: grid;
  gap: 22px;
  max-width: 840px;
  margin-inline: auto;
  padding: 4px 4px 0;
}
.hero__desc {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.65;
  color: var(--text);
}
.hero__facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.hero__facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: var(--bg-soft);
  font-size: 0.83rem;
}
.hero__fact-key {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__fact-val { color: var(--text); font-weight: 500; }

.hero__role {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 18px;
  align-items: baseline;
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.hero__role-key {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero__role-body strong { color: var(--text); font-weight: 700; }

@media (max-width: 560px) {
  .hero__role {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ==============================================  BUILD REPORT  */
.report {
  width: 100%;
  max-width: 840px;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-soft) 0%, #101010 100%);
  overflow: hidden;
}
.report__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: #0b0b0b;
  border-bottom: 1px solid var(--border);
}
.report__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.report__dot:first-child { background: var(--accent); }
.report__bar-label {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.report__body {
  padding: clamp(22px, 3.4vw, 36px);
  font-family: var(--font-mono);
}
.report__cmd {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}
.report__prompt { color: var(--text-muted); }
.report__game {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.4vw, 2.15rem);
  line-height: 1.06;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--text);
}
.report__sub {
  margin-top: 12px;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

.report__group { margin-top: 28px; }
.report__head {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.report__head::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--border);
}
.report__list { list-style: none; padding: 0; margin: 14px 0 0; }

.row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 5px 0;
  font-size: 0.86rem;
}
.tag {
  flex: 0 0 auto;
  min-width: 60px;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}
.tag--ok   { color: var(--report-ok); }
.tag--warn { color: var(--report-warn); font-weight: 700; }
.row__label {
  flex: 1 1 auto;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.row__val {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.row--note { padding: 2px 0 4px; }
.row__note {
  padding-left: 72px;
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.78rem;
}

.report__success {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 16px 20px;
  background: var(--accent);
  color: #0d0d0d;
  border-radius: var(--radius-sm);
}
.report__success strong {
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.report__success span {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.82;
}

.report__team { margin-top: 26px; }
.report__team-label {
  font-size: 0.74rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.report__names {
  font-size: 0.82rem;
  line-height: 1.95;
  color: var(--text-muted);
}
.report__me { color: var(--accent); font-weight: 700; }

/* ----------------------------- Hero responsive ----------------------------- */
@media (max-width: 720px) {
  .hero { padding: 36px 0 56px; }
  .hero__inner { gap: 32px; }

  /* Stack the menu below the art so the key art (and logo) is never cropped */
  .hero__panel {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
  }
  .hero__bg {
    position: static;
    height: auto;
    aspect-ratio: 2 / 1;
  }
  .hero__scrim { display: none; }
  .hero__menu {
    position: static;
    width: 100%;
    padding: 22px 20px 24px;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
  }
  .menu { width: 100%; }
  .menu-btn { min-width: 0; width: 100%; }
}

/* ============================================  SECTION HEADINGS  */
.section-head { max-width: 660px; margin-bottom: 42px; }
.section-head__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-head__title { margin-top: 12px; font-size: clamp(2rem, 5vw, 2.8rem); }
.section-head__lead { margin-top: 16px; color: var(--text-muted); font-size: 1.02rem; }

/* ==============================================  PORTFOLIO GRID  */
.portfolio { padding: 84px 0; border-top: 1px solid var(--border); }
.portfolio__inner { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* ---- Subsection heading ---- */
.subsection-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  margin: 8px 0 24px;
  padding-top: 4px;
}
.subsection-head--tech { margin-top: 72px; }
.subsection-head__title {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
}
.subsection-head__mark {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding: 4px 9px;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: var(--accent-tint);
}
.subsection-head__lead {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 26px;
}
/* Tech showcases: only two cards, let them breathe wider */
.grid--tech {
  grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
}

.card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  background: #0a0a0a;
  cursor: pointer;
  overflow: hidden;
}
.card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.card:hover .card__thumb { transform: scale(1.05); }
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent 34%,
              transparent 58%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}
.card__tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(13, 13, 13, 0.82);
  border: 1px solid var(--accent-line);
  padding: 5px 10px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.card__cue {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(13, 13, 13, 0.72);
  padding: 6px 11px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover .card__cue,
.card__media:focus-visible .card__cue { opacity: 1; transform: translateY(0); }

/* ---- Featured variant (WLTLO) — full-width span, coral top border ---- */
.card--featured {
  grid-column: 1 / -1;
  border-top: 2px solid var(--accent);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}
.card--featured .card__media { aspect-ratio: 16 / 9; height: 100%; }
.card--featured .card__body { padding: 26px 24px; }
.card--featured .card__title { font-size: 1.5rem; }
.card__tag--featured {
  color: #0d0d0d;
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 760px) {
  .card--featured { grid-template-columns: 1fr; }
  .card--featured .card__media { aspect-ratio: 16 / 10; }
}

/* ---- Tech-showcase variant: subtle dashed top accent ---- */
.card--tech { border-top: 2px dashed var(--accent-line); }
.card--tech .card__tag {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(13, 13, 13, 0.82);
}
.card--tech .card__tag::before {
  content: "//";
  color: var(--accent);
  margin-right: 6px;
  font-weight: 700;
}

/* ---- Play-icon overlay for video cards ---- */
.card--video .card__thumb { opacity: 0.62; transition: opacity 0.25s var(--ease); }
.card--video:hover .card__thumb { opacity: 0.85; }
.card__play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #0d0d0d;
  font-size: 1.4rem;
  padding-left: 4px; /* visual centering of the triangle */
  box-shadow: 0 0 0 6px rgba(244, 115, 122, 0.18);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card--video:hover .card__play {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 0 10px rgba(244, 115, 122, 0.22);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  flex: 1 1 auto;
}
.card__title { font-size: 1.2rem; line-height: 1.25; }
.card__wip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}
.card__desc { color: var(--text-muted); font-size: 0.92rem; flex: 1 1 auto; }
.card__actions { margin-top: 8px; display: flex; align-items: center; gap: 12px; }
.card__note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  border: 1px dashed var(--border-strong);
  padding: 8px 12px;
  border-radius: 6px;
}

/* ===================================================  LIGHTBOX  */
body.no-scroll { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden],
.lightbox__nav[hidden],
.lightbox__counter[hidden],
.lightbox__dots[hidden],
.lightbox__actions[hidden],
.lightbox__involve[hidden],
.lightbox__extras[hidden] { display: none; }

/* Extras block — houses card-scoped extras (e.g. the WLTLO build report) */
.lightbox__extras { margin-top: 20px; }
/* The build report inside the extras panel needs a lighter card treatment
   (no giant coral top-border stripe like the standalone version had). */
.lightbox__extras .report {
  max-width: none;
  margin: 0;
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  background: #101010;
}
.lightbox__extras .report__body { padding: 22px 20px; }
.lightbox__extras .report__game { font-size: clamp(1.25rem, 3vw, 1.55rem); }
.lightbox__extras .report__bar { padding: 9px 14px; }
.lightbox__extras .report__bar-label { font-size: 0.68rem; }
.lightbox__extras .row { font-size: 0.78rem; }
.lightbox__extras .row__note { padding-left: 60px; font-size: 0.72rem; }
.lightbox__extras .report__names { font-size: 0.76rem; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  width: min(1000px, 100%);
  max-height: min(88vh, 720px);
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(13, 13, 13, 0.72);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.lightbox__close:hover { background: var(--accent); color: #0d0d0d; border-color: var(--accent); }

.lightbox__media {
  position: relative;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.lightbox__img,
.lightbox__video {
  width: 100%;
  height: 100%;
  max-height: min(88vh, 720px);
  object-fit: contain;
  display: block;
  background: #0a0a0a;
}
.lightbox__video[hidden],
.lightbox__img[hidden],
.lightbox__loading[hidden] { display: none; }

/* Grey loading state shown over the video area while the file downloads */
.lightbox__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #1a1a1a;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}
.lightbox__spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(244, 115, 122, 0.22);
  border-top-color: var(--accent);
  animation: lb-spin 0.9s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .lightbox__spinner { animation: none; border-top-color: transparent; }
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.62);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.lightbox__nav:hover { background: var(--accent); color: #0d0d0d; border-color: var(--accent); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text);
  background: rgba(13, 13, 13, 0.72);
  padding: 4px 11px;
  border-radius: 100px;
}

.lightbox__info {
  padding: 32px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lightbox__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.lightbox__title { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.lightbox__desc { color: var(--text-muted); font-size: 0.95rem; }
.lightbox__involve {
  font-size: 0.9rem;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding-left: 13px;
}
.lightbox__involve b {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.lightbox__dots { display: flex; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.lightbox__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}
.lightbox__dot[aria-selected="true"] { background: var(--accent); transform: scale(1.2); }
.lightbox__actions { margin-top: auto; padding-top: 10px; }

@media (max-width: 760px) {
  .lightbox { padding: 0; }
  .lightbox__dialog {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .lightbox__media { min-height: 42vh; }
  .lightbox__img { max-height: 52vh; }
  .lightbox__info { padding: 22px 20px 28px; }
}

/* =========================================================  ABOUT  */
.about {
  padding: 84px 0;
  border-top: 1px solid var(--border);
}
.about__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.about__body {
  max-width: 900px;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.75;
  color: var(--text);
}
.about__body em {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

/* ---- Education list ---- */
.about__education { margin-top: 44px; max-width: 900px; }
.about__education-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.about__education-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.edu {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.edu:first-child { border-top: 0; padding-top: 4px; }
.edu__degree {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.45;
}
.edu__grade {
  display: inline-block;
  margin-left: 4px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.edu__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}
.edu__sep { margin: 0 6px; color: var(--border-strong); }

/* =======================================================  CONTACT  */
.contact {
  padding: 84px 0;
  border-top: 1px solid var(--border);
}
.contact__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.contact__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.contact__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
              background 0.18s var(--ease), transform 0.18s var(--ease);
}
a.social:hover,
a.social:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-tint);
  transform: translateY(-2px);
}
.social__icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
}
.social__icon svg { width: 100%; height: 100%; display: block; }

.social--soon {
  color: var(--text-dim);
  border-style: dashed;
  cursor: default;
}
.social__soon {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 2px 7px;
  border-radius: 100px;
}

/* =======================================================  FOOTER  */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--text-dim);
}
.site-footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 28px 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
}

/* ==================================================  RESPONSIVE  */
@media (max-width: 720px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    background: rgba(13, 13, 13, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    /* collapsed state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
                visibility 0.2s var(--ease);
  }
  .nav__links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav__links a { padding: 12px 14px; }
  .nav__links a::after { display: none; }
  .nav__links a.nav__cta {
    margin: 6px 14px 2px;
    text-align: center;
    justify-content: center;
  }

  .intro__inner { padding: 48px 24px 44px; }
}
