/* turbinerc.com: one dark theme, a flying field at dusk. */
@font-face { font-family: 'Saira Stencil One'; src: url('/fonts/saira-stencil.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 500; src: url('/fonts/barlow-500.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 600; src: url('/fonts/barlow-600.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; src: url('/fonts/barlow-700.woff2') format('woff2'); font-display: swap; }

:root {
  --field: #1b2016;
  --panel: #272d20;
  --panel-2: #343b2a;
  --line: #485039;
  --ink: #ece6d2;
  --mute: #a9ac94;
  --brass: #d2a93f;
  --signal: #dc5a2e;
  --display: 'Saira Stencil One', 'Arial Black', Impact, sans-serif;
  --body: 'Barlow Semi Condensed', 'Arial Narrow', 'Helvetica Neue', system-ui, sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--field); color: var(--ink); font: 500 19px/1.5 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--brass); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--brass); color: #1b1a10; padding: 8px 12px; z-index: 20; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(27, 32, 22, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { font-family: var(--display); font-size: 24px; letter-spacing: .04em; color: var(--ink); text-decoration: none; text-transform: uppercase; }
.brand span { color: var(--brass); }
.top nav { display: flex; gap: 22px; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: .03em; padding: 6px 0; border-bottom: 2px solid transparent; }
.top nav a:hover { border-color: var(--brass); }

/* hero */
.hero { position: relative; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 55% at 78% 62%, rgba(246, 196, 120, .55) 0%, rgba(246, 196, 120, 0) 60%), linear-gradient(180deg, #3b3552 0%, #7a4b55 34%, #c9743f 62%, #e2a65a 78%, #2a2418 100%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27, 32, 22, .25) 0%, rgba(27, 32, 22, .55) 55%, var(--field) 100%); }
.hero .wrap { padding-top: clamp(70px, 14vw, 170px); padding-bottom: clamp(48px, 8vw, 96px); }
.eyebrow { font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: 14px; color: var(--brass); margin: 0 0 14px; }
h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 7.4vw, 88px); line-height: .98; margin: 0 0 20px; max-width: 13ch; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.lead { font-size: clamp(19px, 2.2vw, 23px); max-width: 46ch; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .03em; padding: 12px 20px; border-radius: 4px; }
.btn:hover { border-color: var(--brass); }
.btn.go { background: var(--brass); border-color: var(--brass); color: #1b1a10; }
.btn.go:hover { filter: brightness(1.08); }

/* sections */
section { padding: clamp(52px, 8vw, 96px) 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; margin: 0 0 14px; }
.sub { color: var(--mute); max-width: 60ch; margin: 0 0 34px; }

/* videos */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vid { position: relative; aspect-ratio: 9 / 16; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #0d100a; }
.vid button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.vid img { width: 100%; height: 100%; object-fit: cover; }
.vid .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 10px 10px; font-size: 15px; font-weight: 600; line-height: 1.25; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .86)); }
.vid .play { position: absolute; left: 50%; top: 44%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(27, 32, 22, .78); border: 2px solid var(--brass); transition: opacity .6s ease; }
/* The play mark fades 3 seconds after the videos scroll into view, and comes back under a mouse or keyboard focus. */
.videos.seen .play { opacity: 0; transition-delay: 3s; }
.videos.seen .vid button:hover .play, .videos.seen .vid button:focus-visible .play { opacity: 1; transition-delay: 0s; }
.vid .play::after { content: ''; position: absolute; left: 21px; top: 15px; border: 10px solid transparent; border-left: 16px solid var(--brass); border-right: 0; }
.vid button:hover .play { background: var(--brass); }
.vid button:hover .play::after { border-left-color: #1b1a10; }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.after { margin-top: 28px; }

/* company and contact */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); }
.two p { margin: 0 0 14px; max-width: 52ch; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.card dl { margin: 0; }
.card dt { color: var(--mute); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.card dd { margin: 2px 0 16px; font-size: 21px; font-weight: 600; overflow-wrap: anywhere; }
.card dd:last-child { margin-bottom: 0; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--mute); font-size: 16px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
footer a { color: var(--mute); }

/* plain text pages */
.doc { max-width: 720px; }
.doc h1 { font-size: clamp(34px, 5vw, 54px); max-width: none; }
.doc h2 { font-family: var(--body); font-weight: 700; text-transform: none; font-size: 24px; margin: 34px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc .dated { color: var(--mute); }

@media (max-width: 900px) {
  .videos { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 18px; }
  .top .wrap { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 10px; padding-bottom: 8px; }
  .top nav { gap: 18px; }
  .videos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 480px) {
  .videos { grid-template-columns: 1fr; max-width: 340px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
