/* =========================================================
   Wood Studios — styles
   Black background · red accent · white text
   ========================================================= */
:root {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --surface: #161616;
  --border: #2a2a2a;
  --text: #ffffff;
  --muted: #b3b3b3;
  --red: #e5202e;
  --red-hover: #ff3b47;
  --red-soft: rgba(229, 32, 46, 0.12);
  --radius: 6px;
  --max: 1140px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); text-transform: uppercase; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--red); }

.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, .94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  border: 2px solid var(--red); border-radius: 4px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: #fff;
}
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; letter-spacing: .08em; }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--muted);
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s;
}
.site-nav a:hover { color: #fff; border-bottom-color: var(--red); }

.menu-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; position: relative;
}
.menu-bar, .menu-bar::before, .menu-bar::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: #fff; transform: translateX(-50%);
  content: ""; transition: transform .2s, opacity .2s;
}
.menu-bar { top: 50%; margin-top: -1px; }
.menu-bar::before { top: -6px; }
.menu-bar::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bar::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bar::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(80px, 14vw, 150px) 0 clamp(70px, 10vw, 120px);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(229, 32, 46, .14), transparent 70%),
    var(--bg);
}
.eyebrow, .kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(3.6rem, 12vw, 8.5rem); letter-spacing: .02em; margin-bottom: .1em; }
.tagline { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600; font-style: italic; margin-bottom: 1em; }
.lead { max-width: 620px; color: var(--muted); font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 110px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-intro { color: var(--muted); font-size: 1.05rem; }

/* ---------- Mods ---------- */
.nexus-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 32px; margin-bottom: 28px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--red);
  border-radius: var(--radius); transition: border-color .15s;
}
.nexus-banner:hover { border-color: var(--red); }
.nexus-banner > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.nexus-label { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.nexus-title { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; text-transform: uppercase; }
.nexus-url { color: var(--muted); font-size: .9rem; word-break: break-all; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.project-card {
  display: flex; flex-direction: column; padding: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.project-card p { color: var(--muted); }
.project-card--muted { background: transparent; border-style: dashed; }
.project-tag {
  align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red) !important; background: var(--red-soft); padding: 4px 10px; border-radius: 3px; margin-bottom: 18px;
}
.card-link { margin-top: auto; font-weight: 600; color: #fff; text-decoration: none; border-bottom: 1px solid var(--red); align-self: flex-start; padding-bottom: 2px; }
.card-link:hover { color: var(--red); }

/* ---------- Request form ---------- */
.request-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.request-info { position: sticky; top: calc(var(--header-h) + 32px); }

.disclaimer {
  margin-top: 28px; padding: 24px; border: 1px solid var(--red); border-radius: var(--radius);
  background: var(--red-soft); font-size: .94rem;
}
.disclaimer h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: .7em; }
.disclaimer p { color: #e6e6e6; }
.disclaimer p:last-child { margin-bottom: 0; color: #fff; }

.request-form {
  padding: clamp(24px, 4vw, 40px); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field[hidden] { display: none; }
.field > label, legend { display: block; font-weight: 600; margin-bottom: 8px; font-size: .95rem; padding: 0; }
.optional { color: var(--muted); font-weight: 400; }
.req { color: var(--red); }
.hint { color: var(--muted); font-size: .85rem; margin: 6px 0 0; }
.error { color: #ff6b74; font-size: .85rem; font-weight: 500; margin: 6px 0 0; min-height: 0; }
.error:empty { display: none; }

input[type="text"], input[type="email"], textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem; color: #fff;
  background: var(--bg); border: 1px solid #3a3a3a; border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 180px; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #777; }
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 32, 46, .25);
}
[aria-invalid="true"] { border-color: #ff6b74 !important; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px; height: 100%;
  border: 1px solid #3a3a3a; border-radius: var(--radius); background: var(--bg);
  font-size: .95rem; transition: border-color .15s, background .15s;
}
.choice span::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid #666; transition: border-color .15s, box-shadow .15s;
}
.choice:hover span { border-color: #666; }
.choice input:checked + span { border-color: var(--red); background: var(--red-soft); }
.choice input:checked + span::before { border-color: var(--red); box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 8px var(--red); }
.choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.checkbox { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .93rem; color: #e6e6e6; line-height: 1.5; }
.checkbox input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); cursor: pointer; }

.form-note { color: var(--muted); font-size: .85rem; text-align: center; margin: 14px 0 0; }

.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.about-copy p { color: var(--muted); font-size: 1.1rem; }
.about-copy p:first-child { color: #fff; font-size: 1.25rem; }

/* ---------- Links ---------- */
.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.link-card {
  display: flex; flex-direction: column; gap: 6px; padding: 30px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.link-card:hover { border-color: var(--red); }
.link-label { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; text-transform: uppercase; }
.link-desc { color: var(--muted); }
.link-url { color: var(--red); font-weight: 600; margin-top: 10px; word-break: break-all; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-note { color: var(--muted); font-size: .88rem; max-width: 440px; margin-top: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 28px; align-content: flex-start; }
.footer-nav a, .footer-bottom a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-nav a:hover, .footer-bottom a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); color: #777; font-size: .85rem;
}

/* ---------- Thank-you / 404 page ---------- */
.message-page { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: 60px 0; }
.message-page .container { max-width: 720px; }
.message-icon {
  width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 28px;
  border: 2px solid var(--red); border-radius: 50%; color: var(--red); font-size: 1.8rem; font-weight: 700;
}
.message-page h1 { font-size: clamp(2.6rem, 7vw, 4.2rem); text-transform: uppercase; }
.message-page p { color: var(--muted); font-size: 1.05rem; }
.message-page .disclaimer { margin: 28px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .request-layout, .about { grid-template-columns: 1fr; gap: 36px; }
  .request-info { position: static; }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 20px;
    background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a:hover { border-bottom-color: var(--border); color: var(--red); }

  .nexus-banner { flex-direction: column; align-items: flex-start; padding: 24px; }
  .link-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .choice-grid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .project-grid { grid-template-columns: 1fr; }
}
