/* Black Track Audio site. Colours, type and frames follow design/brand/index.html. */

:root {
  --piano: #050506;
  --lacquer: #111214;
  --graphite: #1a1b1e;
  --gunmetal: #2a2b2f;
  --chrome: #9aa0a8;
  --steel: #6b7078;
  --studio: #f4f5f7;
  --paper: #ffffff;
  --cold: #e6f0ff;
  --display: "Michroma", "Eurostile", sans-serif;
  --label: "Barlow Condensed", "DIN Condensed", sans-serif;
  --text: "Inter", "Helvetica Neue", Arial, sans-serif;
  --jp: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --bar: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: auto; }
body { background: var(--piano); color: var(--studio); font: 400 16px/1.6 var(--text); overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }

/* Small type voices */
.label { font: 500 13px/1.3 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--chrome); }
.jp { font-family: var(--jp); letter-spacing: .2em; }
.led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cold);
       box-shadow: 0 0 8px 1px #e6f0ffb0; vertical-align: 1px; }
.led.off { background: var(--gunmetal); box-shadow: none; }

/* ---------- Top bar ---------- */
.bar { position: fixed; inset: 0 0 auto 0; height: var(--bar); z-index: 20; display: flex; align-items: center;
       gap: 24px; padding: 0 var(--pad); background: linear-gradient(#050506f0, #05050600); }
.bar .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.bar .brand svg { color: var(--paper); }
.bar .brand .mark { display: none; width: 30px; height: 30px; }
.bar .brand .lockup { height: 17px; width: auto; aspect-ratio: 4992 / 606; }
.bar .brand .code { padding-left: 2px; line-height: 17px; }
.bar .brand .code { font: 500 13px/1 var(--label); letter-spacing: .22em; color: var(--chrome); }
.bar nav { margin-left: auto; display: flex; gap: 28px; }
.bar nav a { font: 500 13px/1 var(--label); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--chrome); transition: color .2s; }
.bar nav a:hover { color: var(--paper); }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 4px;
       font: 600 13px/1 var(--label); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
       border: 1px solid var(--gunmetal); background: var(--lacquer); color: var(--paper); transition: border-color .2s, background .2s; }
.btn:hover { border-color: var(--chrome); }
.btn.primary { background: var(--paper); color: var(--piano); border-color: var(--paper); }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn[aria-disabled="true"]:hover { border-color: var(--gunmetal); }
.btn.primary[aria-disabled="true"]:hover { border-color: var(--paper); }

/* ---------- 1 Hero: the night-studio photograph ---------- */
.hero { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: center; background: #000; }
.hero-photo { position: absolute; right: -4vw; top: 50%; transform: translateY(-46%); width: min(118vh * 1.34, 84vw); height: auto; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
               background: linear-gradient(90deg, #000 0%, #000000d0 24%, #00000000 52%), linear-gradient(#00000000 70%, var(--piano)); }
.hero-copy { position: relative; z-index: 1; padding: calc(var(--bar) + 40px) var(--pad) 80px; max-width: 620px; }
.hero-copy .label { margin-bottom: 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero h1 { font: 400 clamp(38px, 5.6vw, 80px)/1.06 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.hero p { margin-top: 22px; font-size: 18px; line-height: 1.55; color: #d6dae0; max-width: 40ch; }
.cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1; color: var(--steel); }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(var(--chrome), transparent); }

/* ---------- 2 Assembly: points build the machine while the stage is pinned ---------- */
.assemble { position: relative; height: 320vh; background: var(--piano); }
.assemble-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.assemble-photo { position: absolute; left: 0; top: 0; width: 0; height: auto; opacity: 0; pointer-events: none; will-change: opacity; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.assemble-copy { position: absolute; left: var(--pad); bottom: 64px; max-width: 900px; display: grid; grid-template-columns: 1fr 1fr;
                 gap: 0 40px; align-items: end; opacity: 0; transform: translateY(16px); }
.assemble-copy .label { grid-column: 1 / -1; margin-bottom: 16px; }
.assemble-copy h2 { font: 400 clamp(24px, 2.8vw, 38px)/1.12 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.assemble-copy p { color: #d6dae0; font-size: 17px; }
.assemble-meter { position: absolute; right: var(--pad); top: calc(var(--bar) + 18px); color: var(--steel); }

/* ---------- 3 Sound: the preset player ---------- */
.player { list-style: none; border-top: 1px solid var(--gunmetal); }
.player li { display: grid; grid-template-columns: 52px 1fr auto; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid #1c1d21; }
.player .play { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gunmetal); background: var(--lacquer);
                display: grid; place-items: center; transition: border-color .2s, background .2s; }
.player .play:hover:not(:disabled) { border-color: var(--chrome); }
.player .play:disabled { opacity: .35; cursor: not-allowed; }
.player .play svg { width: 16px; height: 16px; fill: var(--paper); }
.player li.playing .play { background: var(--paper); border-color: var(--paper); }
.player li.playing .play svg { fill: var(--piano); }
.player .meta { min-width: 0; }
.player .name { font: 400 18px/1.25 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.player .sub { margin-top: 4px; }
.player .bar { margin-top: 12px; height: 3px; border-radius: 2px; background: var(--gunmetal); overflow: hidden; cursor: pointer; }
.player .bar i { display: block; height: 100%; width: 0; background: var(--cold); box-shadow: 0 0 8px #e6f0ff99; }
.player .time { font: 500 13px/1 var(--label); letter-spacing: .16em; color: var(--steel); font-variant-numeric: tabular-nums; }
.player li.playing .name { color: var(--paper); }
.player li.playing .led { background: var(--cold); box-shadow: 0 0 8px 1px #e6f0ffb0; }

/* ---------- 4 Front shot, on black ---------- */
/* Hosts: DAW names roll right to left between two hairlines; still and wrapped with reduced motion. */
.hosts { border-top: 1px solid #16171a; padding: 56px 0 64px; overflow: hidden; }
.hosts-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.hosts-head h2 { font-size: 13px; }
.hosts-head .jp { margin-left: 14px; color: var(--steel); }
.hosts-formats { color: var(--steel); }
.hosts-roll { display: flex; width: max-content; border-top: 1px solid var(--gunmetal); border-bottom: 1px solid var(--gunmetal);
              animation: hosts-roll 48s linear infinite; }
.hosts:hover .hosts-roll { animation-play-state: paused; }
.hosts-list { display: flex; list-style: none; }
.hosts-list li { display: flex; align-items: center; gap: 32px; padding: 20px 0 20px 32px; white-space: nowrap;
                 font: 400 clamp(13px, 1.2vw, 16px)/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--chrome); }
.hosts-list li::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--steel); }
@keyframes hosts-roll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hosts-roll { animation: none; width: auto; }
  .hosts-list { flex-wrap: wrap; padding: 0 var(--pad); }
  .hosts-list[aria-hidden] { display: none; }
  .hosts-list li { padding: 18px 28px 18px 0; gap: 28px; }
}
.shots { display: grid; grid-template-columns: 1.83fr .94fr .94fr; gap: 20px; margin-top: 48px; align-items: start; }
.shot img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--gunmetal); }
.shot figcaption { margin-top: 12px; }

/* ---------- Content ---------- */
.content { position: relative; z-index: 2; background: var(--piano); }
section.block { padding: 120px 0; border-top: 1px solid #16171a; }
.head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 48px; flex-wrap: wrap; }
.head .n { font: 500 13px/1 var(--label); letter-spacing: .22em; color: var(--steel); }
.head h2 { font: 400 clamp(26px, 3.2vw, 40px)/1.15 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.head .jp { margin-left: auto; font-size: 13px; color: var(--steel); }
.lead { font-size: 19px; line-height: 1.55; color: #d6dae0; max-width: 62ch; }

/* Section frames: hairline box with its title cut into the line, as on the plugin panel */
.frames { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.frames.two { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
.frame { border: 1px solid var(--gunmetal); border-radius: 6px; padding: 30px 24px 24px; position: relative; }
.frame > .t { position: absolute; top: -9px; left: 16px; background: var(--piano); padding: 0 8px;
              font: 500 13px/1.3 var(--label); letter-spacing: .22em; color: var(--paper); }
.frame > .t .jp { font-size: 11px; color: var(--steel); margin-left: 6px; letter-spacing: .1em; }
.frame p { color: #c3c8cf; font-size: 15px; }
.frame .ctl { margin-top: 16px; font: 500 12px/1.6 var(--label); letter-spacing: .2em; color: var(--steel); text-transform: uppercase; }

/* Specs plate */
.plate { background: var(--lacquer); border: 1px solid #000; border-radius: 10px; box-shadow: inset 0 1px 0 #ffffff14; padding: 28px 32px; }
.plate .row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.plate .big { font: 400 28px/1.2 var(--display); letter-spacing: .08em; }
.plate hr { border: 0; border-top: 1px solid var(--gunmetal); margin: 20px 0; }
.specs { display: grid; grid-template-columns: 200px 1fr; gap: 0; }
.specs dt, .specs dd { padding: 12px 0; border-bottom: 1px solid #1c1d21; }
.specs dt { font: 500 13px/1.6 var(--label); letter-spacing: .2em; color: var(--steel); text-transform: uppercase; }
.specs dd { color: #d6dae0; }

/* Pricing */
.price { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.price .box { border: 1px solid var(--gunmetal); border-radius: 10px; padding: 36px; background: var(--lacquer); }
.price .amount { font: 400 44px/1.1 var(--display); letter-spacing: .02em; margin: 16px 0 6px; }
.price ul { list-style: none; margin: 24px 0 30px; }
.price li { padding: 9px 0 9px 26px; position: relative; border-bottom: 1px solid #1c1d21; color: #d6dae0; }
.price li::before { content: "//"; position: absolute; left: 0; font: 600 13px/1.9 var(--label); color: var(--steel); }
.price .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.notify { display: flex; gap: 10px; margin-top: 18px; }
.notify input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 4px; border: 1px solid var(--gunmetal);
                background: var(--piano); color: var(--paper); font: 400 15px var(--text); }
.notify input:focus { outline: none; border-color: var(--chrome); }
.notify .btn { height: 44px; }
.notify-msg { margin-top: 10px; font-size: 14px; color: var(--chrome); min-height: 1.6em; }

/* FAQ */
.faq details { border-bottom: 1px solid #1c1d21; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 500 17px/1.4 var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 22px/1 var(--display); color: var(--steel); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 22px; color: #c3c8cf; max-width: 70ch; }

/* Footer */
footer { border-top: 1px solid #16171a; padding: 64px 0 48px; }
footer .logo { width: min(240px, 60%); color: var(--paper); }
footer .cols { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-top: 40px; }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer nav a { font: 500 13px/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--steel); text-decoration: none; }
footer nav a:hover { color: var(--paper); }

/* Without WebGL, or with reduced motion: no point field and no photograph; the stage shows its text. */
.no-gl .assemble { height: auto; }
.no-gl .assemble-stage { position: relative; height: auto; padding: 120px 0 80px; }
.no-gl #scene, .no-gl .assemble-photo { display: none; }
.no-gl .assemble-copy { position: relative; left: auto; bottom: auto; opacity: 1; transform: none; padding: 0 var(--pad); }
.no-gl .assemble-meter { display: none; }

@media (max-width: 900px) {
  .bar nav { display: none; }
  .bar .brand .lockup { display: none; }
  .bar .brand .mark { display: block; }
  .bar .brand .code { padding-left: 0; }
  .frames, .frames.two { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .specs dt { border-bottom: 0; padding-bottom: 0; }
  /* Phones: the photograph sits in the flow right under the bar, the copy follows; no full-height gap. */
  .hero { display: block; min-height: 0; }
  .hero-photo { position: relative; right: auto; top: auto; transform: none; display: block;
                width: 112vw; max-width: none; margin: calc(var(--bar) + 8px) 0 -16vw -6vw;
                -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
  .hero::after { background: linear-gradient(#000000 0%, #00000000 12%, #00000000 46%, #000000e8 62%, var(--piano)); }
  .hero-copy { padding: 0 var(--pad) 72px; }
  .scroll-hint { display: none; }
  .shots { grid-template-columns: 1fr 1fr; gap: 14px; }
  .shot.wide { grid-column: 1 / -1; }
  .assemble-copy { grid-template-columns: 1fr; right: var(--pad); }
  .assemble-copy p { margin-top: 12px; }
  .player li { grid-template-columns: 44px 1fr; }
  .player .play { width: 44px; height: 44px; }
  .player .time { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
