/* ============================================================
   SOUTH SIDE TUNING — design tokens (v2)
   Palette: matte black shop floor + brand red, sampled from logo
   Signature: hexagon grid — the honeycomb dyno-bay light fixture
   that appears overhead in every workshop photo, reused as the
   page's recurring structural motif.
   Type: Rajdhani (display, telemetry/console feel) / Inter (body)
         / JetBrains Mono (spec data)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  --bg:            #060606;
  --surface:       #0F0F11;
  --surface-2:     #17171A;
  --line:          #262629;
  --text:          #F5F5F5;
  --text-muted:    #9A9A9E;
  --text-dim:      #565659;
  --red:           #FF0F1E;
  --red-dim:       #8C0812;
  --red-glow:      rgba(255,15,30,0.35);

  --font-display:  'Rajdhani', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --container: 1180px;
  --radius: 2px;

  /* hex-grid signature, reused as background-image across the site */
  --hex-grid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='146' viewBox='0 0 84 146'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='0.05' stroke-width='1'%3E%3Cpath d='M42 0 L84 24.3 L84 72.9 L42 97.2 L0 72.9 L0 24.3 Z'/%3E%3Cpath d='M42 97.2 L84 121.5 L84 146 M42 97.2 L0 121.5 L0 146'/%3E%3Cpath d='M42 0 L42 -24.3'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

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

body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: var(--hex-grid);
  background-position: center;
  opacity: 0.6;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.98;
  margin: 0 0 0.4em;
}

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.9em;
}
.eyebrow::before{
  content:"";
  width: 22px;
  height: 1px;
  background: var(--red);
  display: inline-block;
}

p{ margin: 0 0 1em; color: var(--text-muted); max-width: 60ch; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95em 1.7em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn-primary{
  background: var(--red);
  color: #0A0A0A;
  font-weight: 600;
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 0 24px var(--red-glow); }
.btn-ghost{
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover{ border-color: var(--red); color: var(--red); }
.btn-ghost::after,.btn-primary::after{ content:"→"; }

header.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
}
header.site-header::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6,6,6,0.9);
  backdrop-filter: blur(10px);
}
.nav-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand{ display:flex; align-items:center; margin-right: 1.6rem; }
.brand img{ height: 30px; width: auto; }

nav.primary-nav{ display: flex; align-items: center; gap: 1.7rem; }
nav.primary-nav a{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}
nav.primary-nav a:hover{ color: var(--text); }
nav.primary-nav a.active{ color: var(--red); }
nav.primary-nav a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-2px;
  height: 2px; background: var(--red);
}
.nav-cta{ display:flex; align-items:center; gap: 1rem; }

.nav-toggle{
  display:none;
  background:none; border:none; color: var(--text);
  font-size: 1.6rem; cursor:pointer;
}

@media (max-width: 900px){
  nav.primary-nav{
    position: fixed; inset: 84px 0 0 0;
    z-index: 60;
    background: #060606;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 28px;
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform .25s ease;
    border-top: 1px solid var(--line);
  }
  nav.primary-nav.open{ transform: translateX(0); }
  nav.primary-nav a{ font-size: 1rem; }
  .nav-toggle{ display:block; }
  .nav-cta .btn-primary{ display:none; }
}

.hero{
  position: relative;
  padding: 84px 0 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero h1{
  font-size: clamp(2.8rem, 5.8vw, 4.8rem);
  margin-bottom: 0.28em;
}
.hero h1 .accent{ color: var(--red); }
.hero .lede{
  font-size: 1.08rem;
  max-width: 46ch;
  color: var(--text-muted);
}
.hero-actions{ display:flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }

.hero-media{
  position: relative;
  aspect-ratio: 4/5;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
  border: 1px solid var(--line);
}
.hero-media img{
  width:100%; height:100%; object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(6,6,6,0) 40%, rgba(6,6,6,0.85) 100%),
              linear-gradient(90deg, rgba(6,6,6,0.35) 0%, rgba(6,6,6,0) 30%);
}
.hero-media .tag-strip{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  padding: 1.1rem 1.3rem;
  display:flex; justify-content: space-between; align-items:flex-end;
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em;
}
.hero-media .tag-strip strong{ color: var(--red); display:block; font-size: 0.72rem; }

.platform-strip{
  display:flex; flex-wrap:wrap; gap: 0.6rem 1rem;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--text-dim);
}
.platform-strip span{
  border: 1px solid var(--line);
  padding: 0.45em 0.9em;
  border-radius: var(--radius);
}
.platform-strip span:hover{ border-color: var(--red); color: var(--text); }

section{ padding: 88px 0; position: relative; z-index:1; }
section.tight{ padding: 60px 0; }
.section-head{ max-width: 62ch; margin-bottom: 3rem; }
.section-head h2{ font-size: clamp(2.1rem, 3.8vw, 3rem); }

.divider{ border:none; border-top: 1px solid var(--line); margin:0; }

.grid{ display:grid; gap: 1.6rem; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px){
  .grid-3, .grid-2{ grid-template-columns: 1fr; }
  .hero-grid{ grid-template-columns: 1fr; }
}

.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--line);
  padding: 1.9rem;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover{ border-left-color: var(--red); transform: translateY(-2px); }
.card .tag{
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.9rem; display:block;
}
.card h3{ font-size: 1.6rem; margin-bottom: 0.5rem; }
.card p{ font-size: 0.94rem; margin-bottom: 0; }
.card .spec-row{
  display:flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-dim); border-top: 1px solid var(--line);
  margin-top: 1.2rem; padding-top: 0.9rem; text-transform: uppercase;
}

.photo-frame{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
}
.photo-frame img{
  width:100%; height:100%; object-fit: cover;
  transition: transform .5s ease;
}
.photo-frame:hover img{ transform: scale(1.04); }
.photo-frame.tall{ aspect-ratio: 3/4; }

.media-box{
  aspect-ratio: 16/10;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  position: relative;
  overflow:hidden;
}
.media-box::after{
  content: attr(data-label);
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); text-align:center; padding: 0 1.5rem;
  position: relative; z-index:1;
}
.media-box::before{
  content:"";
  position:absolute; inset:0;
  background-image: var(--hex-grid);
  opacity: 0.7;
}

.readouts{ display:flex; flex-wrap: wrap; gap: 2.4rem; }
.readout .num{
  font-family: var(--font-mono); font-size: 2.1rem; color: var(--red);
  line-height:1;
}
.readout .label{
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em;
  margin-top: 0.5em;
}

.faq-item{ border-bottom: 1px solid var(--line); }
.faq-q{
  width:100%; text-align:left; background:none; border:none;
  color: var(--text); font-family: var(--font-display);
  font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.01em;
  padding: 1.6rem 0; cursor:pointer;
  display:flex; justify-content: space-between; align-items:center; gap:1rem;
}
.faq-q .plus{
  font-family: var(--font-mono); color: var(--red); font-size:1.1rem;
  transition: transform .2s ease; flex-shrink:0;
}
.faq-item.open .faq-q .plus{ transform: rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a{ max-height: 300px; }
.faq-a p{ padding-bottom: 1.6rem; }

form.contact-form{ display:grid; gap: 1.1rem; max-width: 520px; }
.field{ display:flex; flex-direction: column; gap: 0.5rem; }
.field label{
  font-family: var(--font-mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim);
}
.field input, .field textarea{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85em 1em;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field input:focus, .field textarea:focus{ outline: none; border-color: var(--red); }
.form-note{ font-size: 0.78rem; color: var(--text-dim); max-width: 46ch; }
.form-status{ font-family: var(--font-mono); font-size: 0.8rem; }
.form-status.ok{ color: #4ade80; }
.form-status.err{ color: #f87171; }

.product-card{
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display:flex; flex-direction: column;
}
.product-card .body{ padding: 1.5rem; display:flex; flex-direction: column; flex:1; }
.product-card h3{ font-size: 1.4rem; margin-bottom: 0.4rem; }
.product-card .price{
  font-family: var(--font-mono); color: var(--red); font-size: 1rem;
  margin: 0.8rem 0 1.1rem;
}
.product-card .btn{ margin-top: auto; align-self: flex-start; }

.cta-band{
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 70px 0;
  text-align:center;
  overflow: hidden;
}
.cta-band::before{
  content:"";
  position:absolute; inset:0;
  background-image: var(--hex-grid);
  opacity: 0.8;
}
.cta-band h2{ font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.cta-band p{ margin: 0 auto 1.8rem; }
.cta-band .hero-actions{ justify-content:center; }

footer.site-footer{ border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
@media (max-width: 760px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-col img{ height: 46px; width:auto; margin-bottom: 1.1rem; }
.footer-col h4{
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 500; margin-bottom: 1.1rem;
}
.footer-col a, .footer-col p{
  display:block; color: var(--text-muted); font-size: 0.92rem; margin-bottom: 0.6rem;
}
.footer-col a:hover{ color: var(--red); }
.footer-bottom{
  display:flex; justify-content:space-between; align-items:center;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim);
  border-top: 1px solid var(--line); padding-top: 1.6rem; flex-wrap: wrap; gap: 1rem;
}
.social-row{ display:flex; gap: 1rem; }
.social-row a{
  width: 34px; height: 34px; border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.social-row a:hover{ border-color: var(--red); color: var(--red); }

.page-head{
  position: relative;
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-head::before{
  content:"";
  position:absolute; inset:0;
  background-image: var(--hex-grid);
  opacity: 0.7;
}
.page-head h1{ font-size: clamp(2.3rem, 4.8vw, 3.6rem); }

.split-photo{
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
}
.split-photo img{ width:100%; height:100%; object-fit: cover; }

.instagram-feed-wrap{
  max-width: 1020px;
  margin: 0 auto;
  border: 1px solid var(--line);
  overflow: hidden;
}
.instagram-feed-wrap iframe{
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border: none;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .photo-frame:hover img{ transform:none; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ---------- intro loader (home page only, once per session) ---------- */
#intro-loader{ display: none; }
html.show-intro #intro-loader{
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 999;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  overflow: hidden;
}
html.show-intro #intro-loader::before{
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hex-grid);
  opacity: 0.7;
}
html.show-intro #intro-loader.intro-done{
  animation: introFadeOut 0.5s ease forwards;
  pointer-events: none;
}
html.show-intro #intro-loader{ flex-direction: column; gap: 1.8rem; }
.intro-mark{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(70vw, 340px);
}
.intro-sst{
  position: absolute;
  width: min(60vw, 260px);
  height: auto;
  opacity: 0;
  transform: scale(0.85);
  animation:
    introSstIn 0.5s ease forwards 0.15s,
    introSstOut 0.35s ease forwards 0.75s;
}
.intro-full{
  width: 100%;
  height: auto;
  opacity: 0;
  clip-path: inset(0 50% 0 50%);
  animation: introLogoIn 0.6s cubic-bezier(.16,.8,.3,1) forwards 0.75s;
}
.intro-bar{
  width: min(70vw, 220px);
  height: 4px;
  background: var(--line);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  overflow: hidden;
}
.intro-bar-fill{
  width: 0%;
  height: 100%;
  background: var(--red);
  animation: introBarFill 1.35s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes introSstIn{
  from{ opacity: 0; transform: scale(0.85); }
  to{ opacity: 1; transform: scale(1); }
}
@keyframes introSstOut{
  from{ opacity: 1; }
  to{ opacity: 0; }
}
@keyframes introLogoIn{
  from{ opacity: 0; clip-path: inset(0 50% 0 50%); }
  to{ opacity: 1; clip-path: inset(0 0% 0 0%); }
}
@keyframes introBarFill{
  from{ width: 0%; }
  to{ width: 100%; }
}
@keyframes introFadeOut{
  from{ opacity: 1; }
  to{ opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce){
  html.show-intro #intro-loader{ display: none; }
}
