/* GR Tire Motorsport — pit wall: graphite, livery teal, white; Saira Semi Condensed italic + IBM Plex */
:root { --g: #16181c; --g2: #22262c; --t: #14c4b2; --t-d: #0b7f74; --w: #f3f5f7; --mut: #a9b1ba; }
body { font-family: "IBM Plex Sans", system-ui, sans-serif; font-size: 1.04rem; line-height: 1.6; color: var(--w); background: var(--g); }
h1, h2, h3 { font-family: "Saira Semi Condensed", sans-serif; font-style: italic; font-weight: 900; line-height: .98; margin: 0 0 .4em; text-transform: none; letter-spacing: -.01em; }
.mono { font-family: "IBM Plex Mono", monospace; font-size: .86rem; letter-spacing: .02em; }
a { color: var(--t); }
:focus-visible { outline: 3px solid var(--t); outline-offset: 3px; }
.demo-banner { background: var(--t); color: var(--g); font-weight: 600; }
.ph { background: #fff3b0; color: #4d3b00; }

/* nav: skewed tabs */
.pitlane { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 18px; padding: 0 clamp(14px, 3vw, 36px); height: 64px; background: var(--g); border-bottom: 3px solid var(--t); }
.gr-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--w); margin: 0; }
.gr-logo b { font: italic 900 1.6rem/1 "Saira Semi Condensed", sans-serif; background: var(--t); color: var(--g); padding: 4px 12px; transform: skewX(-14deg); display: inline-block; }
.gr-logo span { font: italic 800 1.05rem/1 "Saira Semi Condensed", sans-serif; }
.pitlane nav { margin-left: auto; }
.tabs { display: none; list-style: none; margin: 0; padding: 0 4px; gap: 0; }
.tabs li { padding: 0 6px; }
.tabs a { display: block; padding: 10px 18px; color: var(--w); text-decoration: none; font-weight: 600; transform: skewX(-14deg); background: var(--g2); }
.tabs a:hover { background: var(--t); color: var(--g); }
.box-call { display: none; font: 500 1rem "IBM Plex Mono", monospace; color: var(--t); text-decoration: none; }
.nav-toggle { margin-left: auto; width: 46px; height: 46px; background: var(--g2); border: 1px solid #3a3f47; display: grid; place-items: center; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 22px; height: 3px; background: var(--w); position: relative; transform: skewX(-14deg); }
.nav-toggle span::before { position: absolute; top: -7px; } .nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: var(--t); }
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--g2); padding: 12px 20px 22px; border-bottom: 3px solid var(--t); }
.mobile-menu ul { list-style: none; padding: 0; margin: 0 0 14px; }
.mobile-menu li a { display: block; padding: 13px 0; color: var(--w); text-decoration: none; font: italic 800 1.35rem "Saira Semi Condensed", sans-serif; border-bottom: 1px solid #3a3f47; }
@media (min-width: 960px) { .tabs { display: flex; } .box-call { display: block; } .nav-toggle { display: none; } }

/* buttons: parallelograms */
.btn-skew { display: inline-block; background: var(--t); color: var(--g); text-decoration: none; padding: 14px 26px; transform: skewX(-14deg); border: 2px solid var(--t); font-weight: 700; cursor: pointer; font-size: 1rem; }
.btn-skew > span { display: inline-block; transform: skewX(14deg); }
.btn-skew:hover { background: var(--w); border-color: var(--w); color: var(--g); }
.btn-ghost { background: transparent; color: var(--w); }

/* hero: diagonal split, photo clipped by slanted edge */
.grid-start { position: relative; display: grid; min-height: 0; background: var(--g); overflow: hidden; }
.gs-text { padding: 48px 20px 40px; position: relative; z-index: 2; }
.gs-text .mono { color: var(--t); }
.grid-start h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); max-width: 11em; }
.lede { color: #d4d9df; max-width: 32em; font-size: 1.1rem; }
.gs-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; padding-left: 8px; }
.gs-photo { margin: 0; position: relative; background: var(--g2); min-height: 260px; }
.gs-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 6/5; }
.gs-photo .photo-note { position: absolute; left: 12px; bottom: 12px; }
.pitboard { position: absolute; right: 16px; top: 16px; z-index: 3; background: #f3f5f7; color: var(--g); font: italic 900 1.5rem/1 "Saira Semi Condensed", sans-serif; padding: 10px 14px; display: none; flex-direction: column; text-align: center; border: 4px solid var(--g); outline: 3px solid var(--t); }
.pitboard small { font: 500 .62rem "IBM Plex Mono", monospace; margin-top: 4px; text-transform: uppercase; }
@media (min-width: 960px) {
  .grid-start { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); min-height: 620px; }
  .gs-text { padding: 90px 0 80px max(36px, calc((100vw - 1240px)/2)); align-self: center; }
  .gs-photo { clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); margin-left: -12%; }
  .gs-photo img { aspect-ratio: auto; position: absolute; inset: 0; }
  .pitboard { display: flex; right: 40px; top: auto; bottom: 40px; }
}

/* signature: timing tower */
.tower { padding: clamp(60px, 9vw, 110px) 20px; background: linear-gradient(90deg, transparent 0 49.8%, rgba(255,255,255,.04) 49.8% 50.2%, transparent 50.2%), var(--g2); }
.tower > * { max-width: 980px; margin-left: auto; margin-right: auto; }
.tower h2 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
.tower-head p { color: var(--mut); max-width: 36em; }
.timing { list-style: none; padding: 0; margin-top: 30px; border-left: 6px solid var(--t); }
.timing li { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 16px 16px 16px 0; background: var(--g); border-bottom: 2px solid var(--g2); }
.timing li:nth-child(odd) { background: #1b1e23; }
.pos { font: italic 900 1.6rem "Saira Semi Condensed", sans-serif; color: var(--t); text-align: center; }
.drv { font: italic 800 1.35rem/1.15 "Saira Semi Condensed", sans-serif; }
.drv small { display: block; font: 400 .9rem "IBM Plex Sans", sans-serif; color: var(--mut); margin-top: 4px; }
.gap { font: 500 .78rem "IBM Plex Mono", monospace; padding: 3px 8px; border: 1px solid #3a3f47; color: var(--t); }
.tower-note { margin-top: 26px; color: #d4d9df; border-left: 3px solid var(--mut); padding-left: 14px; }

/* team radio: chat-like feed */
.radio { padding: clamp(60px, 9vw, 110px) 20px; max-width: 1100px; margin: 0 auto; }
.radio h2 { font-size: clamp(2.4rem, 7vw, 4.6rem); color: var(--t); }
.radio-sub { color: var(--mut); }
.radio-feed { display: grid; gap: 14px; margin-top: 26px; }
.msg { max-width: 560px; background: var(--g2); padding: 18px 20px; border-left: 4px solid var(--w); }
.msg p { margin: 0; }
.msg .who { color: var(--t); margin-bottom: 6px; }
.msg--crew { justify-self: end; border-left: 0; border-right: 4px solid var(--t); text-align: right; }
.rating { margin-top: 22px; color: var(--w); }

/* paddock gallery */
.paddock { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; }
.paddock button { padding: 0; border: 0; background: var(--g2); cursor: zoom-in; }
.paddock img { width: 100%; aspect-ratio: 7/5; object-fit: cover; filter: grayscale(.4) contrast(1.05); transition: filter .2s; }
.paddock button:hover img, .paddock button:focus-visible img { filter: none; }
.paddock .photo-note { grid-column: 1 / -1; justify-self: start; margin: 10px 20px; }

/* track: spec list + map */
.track { padding: clamp(60px, 9vw, 110px) 20px; display: grid; gap: 30px; max-width: 1240px; margin: 0 auto; }
.track h2 { font-size: clamp(2.2rem, 6vw, 4rem); }
.spec { display: grid; grid-template-columns: 110px minmax(0,1fr); margin: 0 0 26px; border-top: 1px solid #3a3f47; }
.spec dt, .spec dd { padding: 12px 0; border-bottom: 1px solid #3a3f47; margin: 0; }
.spec dt { font: 500 .82rem "IBM Plex Mono", monospace; color: var(--mut); text-transform: uppercase; }
.track-map { background: var(--g2); min-height: 360px; border: 3px solid var(--t); }
.track-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(.3); }
@media (min-width: 900px) { .track { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); } }

/* pit form */
.pit { background: var(--t); color: var(--g); padding: clamp(50px, 8vw, 90px) 20px; clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 100%); }
.pit > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.pit h2 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
.pit-form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px; border: 2px solid var(--g); background: #f3f5f7; color: var(--g); border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--g); outline-offset: 2px; }
.pit .field-error { color: #fff; background: #7a1010; padding: 3px 8px; display: none; }
.pit .field.has-error .field-error { display: inline-block; }
.pit .btn-skew { background: var(--g); color: var(--w); border-color: var(--g); justify-self: start; margin-left: 8px; }
.pit :focus-visible { outline-color: var(--g); }
@media (min-width: 640px) { .pit-form { grid-template-columns: 1fr 1fr; } .field-wide, .pit .btn-skew { grid-column: 1 / -1; } }

/* footer: checkered finish line */
.finish { background: var(--g); }
.checker { height: 28px; background: conic-gradient(#f3f5f7 25%, var(--g) 0 50%, #f3f5f7 0 75%, var(--g) 0) 0 0/28px 28px; }
.finish-row { padding: 34px 20px 30px; display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; max-width: 1240px; margin: 0 auto; }
.finish-row p { margin: 0; }
.finish a { color: var(--t); }
.small { color: var(--mut); }

.demo-chip { display: inline-block; border: 1px dashed var(--g); padding: 2px 8px; font-size: .75rem; }
