/* ============================================================
   Lowco.tv — landing page styles
   Built on the Lowco / The Lowdown design system
   ============================================================ */

@font-face {
  font-family: 'Outfit';
  src: url('fonts/Outfit-Variable.woff2') format('woff2'),
       url('fonts/Outfit-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette */
  --color-purple:       #4B189E;
  --color-purple-dark:  #3a1280;
  --color-purple-light: #6b35c2;
  --color-gold:         #FFD705;
  --color-gold-dark:    #e6c100;
  --color-lavender:     #EFE5FE;
  --color-lavender-mid: #d9c7fd;

  /* Neutrals */
  --color-slate:        #1F2937;
  --color-slate-mid:    #374151;
  --color-slate-light:  #6B7280;
  --color-gray-light:   #F2F2F2;
  --color-gray-mid:     #E5E7EB;
  --color-gray-border:  #D1D5DB;
  --color-white:        #FFFFFF;
  --color-off-white:    #F7F7FA;
  --color-border:       #C7CDD6;

  /* On-dark muted text */
  --on-dark-muted:      #9CA3AF;
  --on-dark-faint:      #8C94A1;

  --font-family: 'Outfit', 'Nunito Sans', 'DM Sans', sans-serif;

  --shadow-sm:  0 1px 3px rgba(31,41,55,0.08), 0 1px 2px rgba(31,41,55,0.04);
  --shadow-md:  0 4px 12px rgba(31,41,55,0.10), 0 2px 4px rgba(31,41,55,0.06);
  --shadow-lg:  0 8px 24px rgba(31,41,55,0.12), 0 4px 8px rgba(31,41,55,0.08);
  --shadow-xl:  0 16px 48px rgba(31,41,55,0.16);
  --shadow-brand: 0 8px 30px rgba(75,24,158,0.30);

  /* Corner scale — kept tight: lines are the brand, curves stay quiet */
  --radius-md:   6px;
  --radius-lg:   8px;
  --radius-xl:   10px;
  --radius-2xl:  14px;
  --radius-full: 9999px;

  --maxw: 1200px;
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;

  /* Accent: gold is the brand "signal" */
  --accent-signal: var(--color-gold);
  --accent-signal-ink: var(--color-slate);
}

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

html { scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

[hidden] { display: none !important; }

body {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  color: var(--color-slate);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--font-family);
  font-weight: 700;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-sm  { font-size: 13px; padding: 8px 18px; }
.btn-md  { font-size: 14px; padding: 11px 22px; }

.btn-gold { background: var(--accent-signal); color: var(--accent-signal-ink); }
/* Hover — crisp purple outline instead of a glow, in line with the rule/line motif */
.btn-gold:hover { filter: brightness(0.96); transform: translateY(-1px); box-shadow: 0 0 0 2px var(--color-purple-light); }
.btn-gold:active { transform: scale(0.98); box-shadow: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { height: 24px; display: block; transition: opacity var(--transition-normal); }
.nav-logo-dark { position: absolute; opacity: 0; }
.nav-logo-wrap { position: relative; display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  color: rgba(255,255,255,0.82); transition: color var(--transition-fast);
  position: relative; padding: 4px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--accent-signal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 200ms ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }
.nav.solid .nav-link::after { background: var(--color-purple); }
.nav-cta-wrap { display: flex; align-items: center; gap: 18px; }

/* scrolled / solid state */
.nav.solid { background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom-color: var(--color-gray-mid); box-shadow: var(--shadow-sm); }
.nav.solid .nav-logo-light { opacity: 0; }
.nav.solid .nav-logo-dark { opacity: 1; position: static; }
.nav.solid .nav-logo-light { position: absolute; }
.nav.solid .nav-link { color: var(--color-slate-mid); }
.nav.solid .nav-link:hover { color: var(--color-purple); }

/* Focus states — WCAG AA */
:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 2px;
  border-radius: 4px;
}
/* On dark surfaces the purple outline is invisible — use gold */
.hero :focus-visible,
.cta :focus-visible,
.work :focus-visible,
.footer :focus-visible,
.nav:not(.solid) :focus-visible { outline-color: var(--color-gold); }

::selection { background: var(--color-gold); color: var(--color-slate); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--color-slate);
  color: #fff;
  padding: 150px 0 96px;
  position: relative;
  overflow: hidden;
}
/* Ambient brand lighting — soft purple glow centered under the nav */
.hero::before {
  content: ""; position: absolute; top: -420px; left: 50%;
  width: 900px; height: 760px; border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(107,53,194,0.40), rgba(75,24,158,0.13) 48%, transparent 72%);
  pointer-events: none; z-index: 1;
}
/* Ambient brand lighting — warm gold glow lower-right, behind the portrait */
.hero::after {
  content: ""; position: absolute; right: -160px; bottom: -200px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,5,0.10), transparent 66%);
  pointer-events: none; z-index: 1;
}
/* Shape Grid canvas — animated squares behind the hero content */
.shape-grid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block;
}
.hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px;
  position: relative; z-index: 2;
}
/* Masthead — editorial front page: everything centered on one axis */
.hero-copy { max-width: 840px; margin: 0 auto; text-align: center; }
/* Hero name — masthead title framed by rules the width of the word */
.hero h1 {
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 700; line-height: 1; letter-spacing: -0.03em;
  color: var(--accent-signal);
  border-top: 5px solid var(--accent-signal);
  border-bottom: 5px solid var(--accent-signal);
  /* Optical padding — Outfit's ink box sits 0.16em below the top of the line
     box and 0.115em above its bottom; these offsets equalize both gaps */
  padding: 0.11em 0.07em 0.155em;
  margin: 0 auto 22px;
  width: fit-content;
}
.hero-lede {
  font-size: 19px; line-height: 1.6; color: #C9CFD8;
  max-width: 620px; margin: 0 auto 34px;
}
.hero-lede strong { color: #fff; font-weight: 600; }

/* signup */
.signup { display: flex; gap: 0; max-width: 440px; }
.hero .signup, .hero .signup-success { margin-left: auto; margin-right: auto; }
.signup input {
  font-family: var(--font-family); font-size: 15px; color: var(--color-slate);
  background: #fff; border: none; border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  padding: 14px 22px; outline: none; flex: 1; min-width: 0;
  transition: box-shadow var(--transition-fast);
}
.signup input::placeholder { color: #98A0AC; }
/* Focus ring — crisp purple outline (the input is white, so purple reads on dark hero too) */
.signup input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--color-purple-light); }
.signup .btn { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
/* Joined field — button stays flush with the input, no hover lift (outline ring still applies) */
.signup .btn:hover { transform: none; }

.signup-success {
  display: none; align-items: center; gap: 12px; max-width: 440px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-xl); padding: 16px 20px;
}
.signup-success.show { display: flex; }
.signup-success .check { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-signal); color: var(--color-slate); display: grid; place-items: center; flex-shrink: 0; }
.signup-success p { margin: 0; font-size: 14px; color: #fff; line-height: 1.4; }
.signup-success p small { color: var(--on-dark-muted); }
.signup-success a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* hero socials */
.hero-socials { display: flex; gap: 10px; margin-top: 30px; justify-content: center; }
.social-btn {
  width: 44px; height: 44px; border-radius: var(--radius-lg);
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.72);
  backdrop-filter: blur(4px);
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.social-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,215,5,0.55);
  color: var(--color-gold);
  transform: translateY(-2px);
}
.social-btn:active { transform: translateY(0); }
.social-btn:focus-visible { outline-color: var(--color-gold); }
.social-btn svg { width: 19px; height: 19px; }
/* Fix icon vertical centering — inline <span> wrapper causes line-height drift */
.social-btn > span { display: flex; align-items: center; justify-content: center; line-height: 0; }
/* Placeholder icons (no URL yet) read as muted, don't invite a click */
.social-btn.is-soon { opacity: 0.38; cursor: default; }
.social-btn.is-soon:hover {
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.72); transform: none; box-shadow: none;
}

/* Byline — one compact line under the nameplate, like an article credit */
.hero-id {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 30px; flex-wrap: wrap;
}
/* Masthead row — headshot beside the nameplate */
.hero-top { display: flex; align-items: center; justify-content: center; gap: 32px; margin-bottom: 26px; }
.hero-top h1 { margin: 0; }
.hero-avatar {
  width: 150px; height: 150px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 4px solid var(--color-slate);
  box-shadow: 0 0 0 3px var(--accent-signal), var(--shadow-xl);
  background: var(--color-slate-mid);
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-byline { font-size: 17px; color: var(--color-lavender); margin: 0; text-align: center; line-height: 1.45; }
.hero-byline strong { display: block; color: #fff; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.hero-byline .sep { margin: 0 10px; opacity: 0.5; }
.hero-byline .role { white-space: nowrap; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: 96px 0; }
.section-head { margin-bottom: 48px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-title { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; color: var(--color-slate); }
/* Bracket motif — section titles framed by gold rules above and below,
   echoing the newsletter thumbnail style ("the lowdown" = to the point) */
.section-title {
  width: fit-content;
  border-top: 4px solid var(--accent-signal);
  padding-top: 18px;
}
.section-title::after {
  content: ""; display: block; height: 4px;
  background: var(--accent-signal); margin-top: 18px;
}
.section-sub { font-size: 18px; color: var(--color-slate-mid); margin-top: 14px; max-width: 560px; line-height: 1.55; }

/* Animated hover underline — shared "signal line" motif for text links */
.vcard-link, .card-go, .foot-col a {
  position: relative;
}
.vcard-link::after, .card-go::after, .foot-col a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; border-radius: 2px; background: var(--accent-signal);
  transform: scaleX(0); transform-origin: left;
  transition: transform 200ms ease;
}
.vcard-link:hover::after, .foot-col a:hover::after,
.card:hover .card-go::after { transform: scaleX(1); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--color-gray-light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-body .section-title { margin-bottom: 24px; }
.about-body p { font-size: 18px; line-height: 1.72; color: var(--color-slate-mid); margin-bottom: 18px; }
.pullquote {
  border-left: 4px solid var(--accent-signal);
  background: #fff; box-shadow: var(--shadow-sm);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  padding: 22px 26px; margin: 28px 0;
}
.pullquote p { font-size: 19px; font-weight: 600; color: var(--color-slate); line-height: 1.4; margin: 0; }
.pullquote cite { display: block; margin-top: 10px; font-size: 13px; font-style: normal; color: var(--color-slate-light); }
.pullquote cite a { color: var(--color-purple); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.about-aside { display: flex; flex-direction: column; gap: 24px; }
.about-photo { width: 100%; aspect-ratio: 5 / 4; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); background: linear-gradient(150deg, #EFE5FE, #d9c7fd); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.creds { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 26px 28px; }
.creds-title { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-slate-light); margin-bottom: 18px; }
.cred { display: flex; align-items: flex-start; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--color-gray-mid); }
.cred:last-child { border-bottom: none; }
.cred .ic { width: 34px; height: 34px; border-radius: var(--radius-lg); background: var(--color-lavender); color: var(--color-purple); display: grid; place-items: center; flex-shrink: 0; }
.cred .ic svg { width: 18px; height: 18px; }
.cred .ic > span { display: flex; align-items: center; justify-content: center; line-height: 0; }
.cred { align-items: center; }
.about-body .pullquote { margin-bottom: 0; }
.cred .ct { font-size: 14.5px; color: var(--color-slate-mid); line-height: 1.45; }
.cred .ct b { color: var(--color-slate); font-weight: 700; }

/* ============================================================
   WORK SHOWCASE
   ============================================================ */
.work { background: var(--color-purple-dark); }
.work .section-title { color: #fff; }
.work .section-sub { color: rgba(255,255,255,0.82); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1.5px solid var(--color-border); border-radius: var(--radius-xl);
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal), border-color var(--transition-normal);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--color-purple-light); }
.card-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--color-lavender); overflow: hidden; }
/* Fallback thumb (no image) — title bracketed by rules, the "lowdown" motif */
.thumb-fallback { display: grid; place-items: center; padding: 20px 28px; }
.thumb-bracket {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.25;
  color: var(--color-purple); text-align: center;
  border-top: 3px solid var(--color-purple);
  border-bottom: 3px solid var(--color-purple);
  padding: 12px 8px;
  max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-purple); margin-bottom: 8px; }
.card-title { font-size: 17px; font-weight: 700; color: var(--color-slate); line-height: 1.28; margin-bottom: 9px; }
.card-excerpt { font-size: 13.5px; color: var(--color-slate-light); line-height: 1.55; margin-bottom: 16px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--color-gray-mid); }
.card-meta { font-size: 12px; color: var(--color-slate-light); }
.card-go { font-size: 12px; font-weight: 700; color: var(--color-purple); display: inline-flex; align-items: center; gap: 5px; }

/* Pagination */
.work-pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 44px; }
/* The hidden attribute must win over the custom display above */
.work-pager[hidden], .pager-btn[hidden] { display: none; }
.pager-btn {
  font-family: var(--font-family); font-size: 13px; font-weight: 700; letter-spacing: 0.01em;
  color: var(--color-purple); background: #fff;
  border: 1.5px solid var(--color-gray-border); border-radius: var(--radius-lg);
  padding: 9px 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}
.pager-btn:hover:not(:disabled) { background: var(--color-purple); border-color: var(--color-purple); color: #fff; }
.pager-btn:disabled { opacity: 0.4; cursor: default; }
.pager-btn svg { width: 15px; height: 15px; }
.pager-status { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.82); min-width: 96px; text-align: center; }

/* ============================================================
   WHAT I'M BUILDING
   ============================================================ */
.building { background: var(--color-gray-light); }
.building-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.vcard {
  background: #fff; border-radius: var(--radius-xl); padding: 38px 38px 34px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
  position: relative; overflow: hidden;
}
.vcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.vcard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.vcard-logo {
  display: inline-flex; align-items: center; gap: 12px;
}
.vcard-logo svg { flex-shrink: 0; }
.vcard-role { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-slate-light); margin-bottom: 10px; }
.vcard h3 { font-size: 25px; font-weight: 700; color: var(--color-slate); letter-spacing: -0.01em; line-height: 1.25; margin-bottom: 12px; }
.vcard p { font-size: 15px; color: var(--color-slate-mid); line-height: 1.62; margin-bottom: 22px; flex: 1; }
.vcard-link { font-size: 14px; font-weight: 700; color: var(--color-purple); display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; transition: gap var(--transition-fast); }
.vcard-link:hover { gap: 12px; }
.vcard-link svg { width: 16px; height: 16px; }

/* Shared logo wordmark */
.vcard-wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

/* Rivr — red brand */
.vcard.rivr .vcard-wordmark { color: #E8341C; }
/* Link text a shade deeper than the logo red so it clears 4.5:1 on white */
.vcard.rivr .vcard-link { color: #D02E17; }

/* StreamerSquare — blue brand */
.vcard.ss .vcard-wordmark { color: #1A28CC; }
.vcard.ss .vcard-link { color: #1A28CC; }
.vcard-brand-img { height: 36px; width: auto; display: block; }
.vcard .est { position: absolute; top: 30px; right: 34px; font-size: 12px; font-weight: 600; color: var(--color-slate-light); }

/* ============================================================
   NEWSLETTER CTA
   ============================================================ */
.cta { background: var(--color-purple); color: #fff; position: relative; overflow: hidden; }
.cta::before {
  content:""; position:absolute; right:-120px; top:-120px; width:420px; height:420px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,215,5,0.18), transparent 70%);
}
.cta-inner { max-width: 760px; margin: 0 auto; padding: 0 32px; text-align: center; position: relative; z-index: 2; }
.cta h2 { font-size: clamp(32px, 4vw, 50px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.06; margin-bottom: 16px; color: #fff; }
/* Bracket motif — signal phrase framed by rules above and below */
.cta h2 .signal {
  display: inline-block;
  border-top: 3px solid var(--accent-signal);
  border-bottom: 3px solid var(--accent-signal);
  padding: 8px 6px 6px;
  margin-top: 10px;
  color: var(--accent-signal);
}
.cta-sub { font-size: 18px; color: #D6C9F3; line-height: 1.55; margin-bottom: 36px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta .signup { margin: 0 auto; }
.cta .signup-success { margin: 0 auto; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.22); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--color-off-white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 72px;
  align-items: start;
}
.contact-intro .section-title { margin-bottom: 16px; }
.contact-intro p { font-size: 16px; color: var(--color-slate-mid); line-height: 1.65; }

/* Form card — white panel frames the fields so they read clearly */
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--color-gray-mid);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form .btn { align-self: flex-start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--color-slate); letter-spacing: 0.01em; }
.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--color-slate);
  background: var(--color-off-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}
.form-field input:hover,
.form-field textarea:hover { border-color: var(--color-slate-light); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--color-slate-light); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-purple);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(75, 24, 158, 0.12);
}
.form-field textarea { min-height: 130px; line-height: 1.55; }

/* Button states */
.contact-form .btn-label { display: block; }
.contact-form .btn-sending { display: none; }
.contact-form.is-sending .btn-label { display: none; }
.contact-form.is-sending .btn-sending { display: block; }
.contact-form.is-sending { pointer-events: none; opacity: 0.75; }

/* Success / error */
.contact-success,
.contact-error { display: none; }
.contact-success.show,
.contact-error.show { display: flex; align-items: flex-start; gap: 14px; padding: 20px 24px; border-radius: var(--radius-xl); }
.contact-success.show { background: #F0FDF4; border: 1.5px solid #86EFAC; }
.contact-success.show .check { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #22C55E; color: #fff; flex-shrink: 0; }
.contact-success.show .check svg { width: 16px; height: 16px; }
.contact-success.show p { font-size: 15px; color: #166534; font-weight: 500; margin: 0; padding-top: 5px; }
.contact-error.show { background: #FEF2F2; border: 1.5px solid #FCA5A5; }
.contact-error.show p { font-size: 14px; color: #991B1B; margin: 0; }
.contact-error a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.contact-form .hp { display: none; }
.contact-form button:disabled { cursor: progress; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--color-slate); color: #fff; padding: 72px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand img { height: 26px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--on-dark-muted); line-height: 1.6; max-width: 280px; }
.footer-brand .foot-socials { display: flex; gap: 11px; margin-top: 22px; }
.footer-brand .social-btn { width: 38px; height: 38px; }
.footer-brand .social-btn svg { width: 17px; height: 17px; }
.foot-col h3 { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-faint); margin-bottom: 16px; }
.foot-col a { display: block; width: fit-content; font-size: 14px; color: var(--on-dark-muted); margin-bottom: 11px; transition: color var(--transition-fast); }
.foot-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--color-slate-mid); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom .copy { font-size: 12px; color: var(--on-dark-faint); }
.footer-bottom .badge { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent-signal); color: var(--color-slate); padding: 4px 12px; border-radius: var(--radius-md); }

/* ============================================================
   ENTRANCE ANIMATION
   ============================================================ */
/* Gated on html.js (set inline in <head>) so content stays visible if JS fails */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .building-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .wrap, .hero-inner, .nav-inner, .cta-inner { padding-left: 20px; padding-right: 20px; }
  .nav-links { display: none; }
  .hero { padding: 120px 0 72px; }
  .section { padding: 68px 0; }
  .work-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  /* Byline stacks under the photo, centered with the masthead */
  .hero-top { flex-direction: column; gap: 20px; }
  .hero-avatar { width: 120px; height: 120px; }
  .hero-byline { text-align: center; }
  .hero-byline .sep { display: none; }
  .hero-byline .role { display: block; }
  /* Heading first, then the TL;DR card and quote */
  .about-body { order: -1; }
}

/* ============================================================
   EASTER EGG — avatar launches the original lowco.tv game
   ============================================================ */
.easter-egg-btn { padding: 0; cursor: pointer; font: inherit; transition: transform var(--transition-fast), box-shadow var(--transition-fast); }
.easter-egg-btn:hover { transform: scale(1.03); }
.easter-egg-btn:focus-visible { outline: 3px solid var(--accent-signal); outline-offset: 4px; }
.easter-egg-btn.nope { animation: egg-nope 0.5s ease; }
@keyframes egg-nope { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

html.game-open { overflow: hidden; }
.game-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}
.game-overlay #game-container { width: 800px; height: 600px; outline: none; }
.game-overlay canvas { display: block; }
.game-close {
  position: absolute; top: 16px; right: 16px;
  padding: 6px 12px; border: 1px solid var(--color-slate-mid); border-radius: var(--radius-md);
  background: transparent; color: var(--on-dark-muted); font: inherit; font-size: 13px; cursor: pointer;
}
.game-close:hover, .game-close:focus-visible { color: #fff; border-color: var(--on-dark-muted); }
