:root {
  color-scheme: dark;
  --ink: #10100e;
  --ink-soft: #171714;
  --panel: #1d1c17;
  --brass: #b88a45;
  --amber: #e8a34a;
  --green: #9bdc42;
  --text: #e8e4db;
  --muted: #99968e;
  --line: rgba(184, 138, 69, 0.32);
  --display: "Arial Narrow", "Roboto Condensed", "Bahnschrift Condensed", Impact, sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; }
body::before { position: fixed; inset: 0; z-index: -1; pointer-events: none; content: ""; opacity: .12; background-image: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255,255,255,.018) 6px); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.visually-hidden { 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: fixed; top: 10px; left: 10px; z-index: 50; padding: 10px 14px; transform: translateY(-150%); background: var(--amber); color: #100e09; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; padding: 8px max(32px, calc((100vw - 1320px) / 2)); border-bottom: 1px solid rgba(184,138,69,.18); background: rgba(13,13,11,.94); transition: background .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { background: rgba(10,10,9,.98); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.brand { display: flex; flex: 0 0 auto; align-items: center; }
.brand img { width: 178px; height: 70px; object-fit: contain; }
.desktop-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); }
.desktop-nav a, .mobile-nav nav a { color: #c5c1b7; font-family: var(--display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; transition: color .18s ease; }
.desktop-nav a:hover, .mobile-nav nav a:hover { color: var(--amber); }
.mobile-nav { display: none; }

.hero { overflow: hidden; border-bottom: 1px solid var(--line); background: #080908; }
.hero-art { width: min(100%, 1680px); height: min(76vh, 900px); min-height: 480px; margin: 0 auto; background: #080908; }
.hero-art img { width: 100%; height: 100%; object-fit: contain; }
.hero-intro { display: flex; min-height: 130px; align-items: center; justify-content: space-between; gap: 32px; padding-block: 24px 30px; }
.hero-description { max-width: 560px; margin: 0; color: #c4c0b6; font-size: clamp(15px, 1.3vw, 18px); }
.hero-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 18px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 12px; padding: 0 21px; border: 1px solid var(--brass); font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, #d59a4a, #a87031); color: #130f08; }
.button-primary:hover { background: #efb35f; }
.button-quiet { color: var(--text); }
.button-quiet:hover { border-color: var(--green); }
.is-disabled { cursor: default; opacity: .58; }
.is-disabled:hover { transform: none; background: linear-gradient(135deg, #d59a4a, #a87031); }
.coming-soon { color: var(--muted); font-size: 13px; }

.section { padding-block: clamp(76px, 9vw, 132px); }
.section-heading { margin-bottom: 36px; }
.eyebrow { margin: 0 0 13px; color: var(--amber); font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 0; color: #f1eee6; font-family: var(--display); font-size: clamp(34px, 5.5vw, 68px); font-weight: 600; letter-spacing: .015em; line-height: .98; text-transform: uppercase; }
.loop-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.loop-card { position: relative; min-height: 204px; padding: 28px 32px 32px 0; }
.loop-card + .loop-card { padding-left: 32px; border-left: 1px solid var(--line); }
.loop-index { display: block; margin-bottom: 20px; color: var(--green); font-family: var(--display); font-size: 12px; letter-spacing: .15em; }
.loop-card h3 { margin-bottom: 12px; color: var(--amber); font-family: var(--display); font-size: 27px; letter-spacing: .06em; text-transform: uppercase; }
.loop-card p { max-width: 290px; margin-bottom: 0; color: #aaa69c; font-size: 15px; }

.lab { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: radial-gradient(ellipse at 77% 50%, rgba(114,145,39,.12), transparent 34%), linear-gradient(105deg, #12120f, #171713 62%, #10110d); }
.lab::after { position: absolute; top: 0; right: 0; width: 28%; height: 100%; content: ""; opacity: .4; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(184,138,69,.08) 39px 40px), repeating-linear-gradient(0deg, transparent 0 42px, rgba(184,138,69,.06) 43px 44px); mask-image: linear-gradient(90deg, transparent, #000); }
.lab-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr .78fr; align-items: center; gap: 10%; }
.lab-copy h2 { max-width: 600px; margin-bottom: 24px; }
.lab-copy > p:not(.eyebrow) { max-width: 500px; margin-bottom: 25px; color: #aaa69c; font-size: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--green); font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.text-link span { font-size: 20px; transition: transform .18s ease; }
.text-link:hover span { transform: translateX(5px); }
.lab-instrument { overflow: hidden; padding: 22px; border: 1px solid rgba(184,138,69,.44); background: linear-gradient(145deg, rgba(31,30,24,.92), rgba(13,14,11,.95)); box-shadow: 0 22px 70px rgba(0,0,0,.35), inset 0 0 0 5px rgba(184,138,69,.035); }
.instrument-screen { display: grid; min-height: 158px; align-content: center; justify-items: center; gap: 6px; margin-bottom: 15px; border: 1px solid rgba(155,220,66,.27); background: radial-gradient(ellipse at 50% 110%, rgba(97,142,34,.23), transparent 63%), #090b08; }
.instrument-light { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 15px rgba(155,220,66,.75); }
.instrument-label { color: #99968e; font-family: var(--display); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.instrument-screen strong { color: var(--green); font-family: var(--display); font-size: clamp(21px, 2.5vw, 34px); font-weight: 500; letter-spacing: .08em; }
.instrument-meter { width: 63%; height: 3px; margin-top: 10px; background: #272a20; }
.instrument-meter i { display: block; width: 38%; height: 100%; background: var(--green); box-shadow: 0 0 10px rgba(155,220,66,.7); }
.instrument-readout { display: flex; justify-content: space-between; gap: 20px; padding: 12px 3px; border-top: 1px solid rgba(184,138,69,.18); color: #aaa69c; font-family: var(--display); font-size: 11px; letter-spacing: .12em; }
.instrument-readout strong { color: var(--amber); font-weight: 600; }

.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.section-note { margin: 0 0 4px; color: var(--muted); font-family: var(--display); font-size: 14px; letter-spacing: .08em; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.media-card { margin: 0; }
.media-crop { height: clamp(220px, 30vw, 380px); border: 1px solid rgba(184,138,69,.3); background-image: url('/images/creature-vending-machine-key-art.png'); background-repeat: no-repeat; background-color: #0d0e0b; }
.media-crop-controls { background-size: 240% auto; background-position: 50% 100%; }
.media-crop-tank { background-size: 300% auto; background-position: 100% 26%; }
.media-card figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; color: #9f9b91; font-family: var(--display); font-size: 11px; letter-spacing: .11em; text-transform: uppercase; }
.media-card figcaption span:first-child { color: var(--amber); }

.about { border-block: 1px solid var(--line); background: linear-gradient(115deg, #171611, #10100e 65%); }
.about-grid { display: grid; grid-template-columns: 1fr .82fr; gap: 12%; }
.about h2 { font-size: clamp(35px, 5vw, 62px); }
.about h2 span { color: var(--brass); }
.about-copy { padding-top: 5px; color: #aaa69c; }
.about-copy p { margin-bottom: 18px; }
.about-copy .about-lead { color: #e0dcd2; font-size: 20px; line-height: 1.45; }
.studio-note { margin-top: 42px; padding-top: 21px; border-top: 1px solid var(--line); }
.studio-note .eyebrow { margin-bottom: 9px; font-size: 10px; }
.studio-note p { margin-bottom: 0; }

.contact { padding-block: clamp(72px, 8vw, 110px); }
.contact h2 { margin-bottom: 17px; font-size: clamp(34px, 5vw, 58px); }
.contact-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.contact-email { color: var(--green); font-size: clamp(16px, 2vw, 20px); }
.contact-email:hover { color: #c1f377; }
.social-links { display: flex; flex-wrap: wrap; gap: 20px; }
.social-links a { color: #c6c1b6; font-family: var(--display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.social-links a:hover { color: var(--amber); }
.site-footer { border-top: 1px solid var(--line); background: #0b0b09; }
.footer-row { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 20px; color: #827f76; font-size: 12px; }
.footer-brand { color: #c7c2b7; font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.footer-row a:hover { color: var(--amber); }

@media (min-width: 1600px) { .hero-art { max-width: 1760px; } }
@media (max-width: 800px) {
  .wrap { width: min(100% - 40px, 620px); }
  .site-header { min-height: 74px; padding: 5px 20px; }
  .brand img { width: 148px; height: 62px; }
  .desktop-nav { display: none; }
  .mobile-nav { position: relative; display: block; }
  .mobile-nav summary { display: grid; width: 46px; height: 46px; align-content: center; justify-items: center; gap: 5px; border: 1px solid rgba(184,138,69,.4); list-style: none; cursor: pointer; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { width: 17px; height: 1px; background: var(--amber); }
  .mobile-nav nav { position: absolute; top: calc(100% + 13px); right: 0; display: grid; min-width: 190px; gap: 0; padding: 8px 16px; border: 1px solid var(--line); background: #11110e; box-shadow: 0 18px 36px rgba(0,0,0,.45); }
  .mobile-nav nav a { padding: 11px 2px; border-bottom: 1px solid rgba(184,138,69,.13); }
  .mobile-nav nav a:last-child { border-bottom: 0; }
  .hero-art { height: 66svh; min-height: 390px; max-height: 650px; }
  .hero-art img { object-fit: cover; object-position: center center; }
  .hero-intro { display: grid; gap: 18px; min-height: 0; padding-block: 22px 28px; }
  .hero-actions { flex-wrap: wrap; gap: 14px; }
  .section { padding-block: 76px; }
  .loop-grid { grid-template-columns: 1fr; }
  .loop-card, .loop-card + .loop-card { min-height: 0; padding: 21px 0 24px; border-left: 0; }
  .loop-card + .loop-card { border-top: 1px solid rgba(184,138,69,.2); }
  .loop-index { margin-bottom: 7px; }
  .loop-card h3 { margin-bottom: 5px; }
  .loop-card p { max-width: 460px; }
  .lab-layout, .about-grid { grid-template-columns: 1fr; gap: 42px; }
  .lab-instrument { max-width: 520px; }
  .media-grid { gap: 15px; }
  .media-crop { height: clamp(180px, 42vw, 290px); }
  .media-card figcaption { display: grid; gap: 2px; }
  .about-grid { gap: 30px; }
  .studio-note { margin-top: 30px; }
  .contact-row { align-items: start; flex-direction: column; }
  .footer-row { flex-wrap: wrap; justify-content: flex-start; padding-block: 19px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { padding-inline: 18px; }
  .hero-art { height: 61svh; min-height: 380px; }
  .hero-intro { gap: 14px; }
  .hero-description { font-size: 15px; line-height: 1.5; }
  .hero-actions { display: grid; justify-items: start; }
  .button { min-height: 52px; }
  .coming-soon { padding-left: 2px; }
  .section-heading-row { display: block; }
  .section-note { margin-top: 14px; }
  .media-grid { grid-template-columns: 1fr; }
  .media-crop { height: 230px; }
  .media-card figcaption { display: flex; }
  .footer-row { display: grid; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
