/* ============================================================
   SHAZZ Motors — pre launch site
   Palette: Forest #1E3A2F / Cream #F5F0E6 / Stone #C8C2B4 / Ink #141414
   Type: Albert Sans only
   ============================================================ */

:root {
  --forest: #1E3A2F;
  --cream: #F5F0E6;
  --stone: #C8C2B4;
  --ink: #141414;

  --font: "Albert Sans", sans-serif;

  --header-h: 4.5rem;
  --container: 90rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

ul { list-style: none; }

a { color: inherit; text-decoration: none; }

/* Hide native cursor only when the custom cursor is active (set by JS on fine pointers) */
html.has-cursor, html.has-cursor a, html.has-cursor button,
html.has-cursor input, html.has-cursor select, html.has-cursor textarea, html.has-cursor label {
  cursor: none;
}

/* ---------- Utilities ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 0; left: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--forest);
  color: var(--cream);
  font-weight: 500;
  transform: translateY(-110%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
}
.section-label--light { color: var(--stone); }

.section-head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.section-rule {
  flex: 1;
  height: 1px;
  background: var(--stone);
}
.section--forest .section-rule { background: rgba(245, 240, 230, 0.22); }

/* ---------- Color blocks ---------- */

.section--cream { background: var(--cream); color: var(--ink); }

.section--forest {
  position: relative;
  background: var(--forest);
  color: var(--cream);
  background-image: radial-gradient(120% 90% at 20% 0%, rgba(245, 240, 230, 0.07), transparent 60%);
}
/* soft grain on forest sections */
.section--forest::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.section--forest > .container { position: relative; z-index: 1; }

/* ---------- Wordmark ---------- */

.wordmark--header { width: auto; height: 1.375rem; }
.wordmark--footer { width: auto; height: 1.125rem; filter: invert(1); opacity: 0.95; }
.wordmark--giant { filter: invert(1); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--stone);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-brand { display: inline-flex; align-items: center; }

.nav-link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  padding-block: 0.25rem;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Hero ---------- */

.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4rem, 10vh, 8rem) 0;
}

.display {
  font-size: clamp(2.7rem, 10vw, 9rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin-top: 1.25rem;
  max-width: 18ch;
}

.hero-sub {
  margin-top: clamp(1.75rem, 4vw, 3rem);
  max-width: 34rem;
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: var(--ink);
  opacity: 0.85;
}

.hero-foot {
  margin-top: auto;
  padding-top: clamp(3rem, 8vh, 6rem);
  padding-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-foot-rule { width: 3.5rem; height: 1px; background: var(--ink); opacity: 0.5; }
.hero-foot-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ---------- Marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--stone);
  border-bottom: 1px solid var(--stone);
  background: var(--cream);
  padding-block: clamp(0.875rem, 2vw, 1.5rem);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-group > span:not(.marquee-dot) {
  font-size: clamp(1.5rem, 3.4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--forest);
  paint-order: stroke;
}
.marquee-dot {
  width: 0.5em;
  height: 0.5em;
  flex-shrink: 0;
  margin-inline: clamp(1.5rem, 3vw, 3rem);
  border: 1px solid var(--forest);
  border-radius: 50%;
  opacity: 0.6;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- About ---------- */

.about {
  padding-block: clamp(5rem, 12vw, 10rem) 0;
  overflow: hidden;
}

.about-copy {
  font-size: clamp(1.625rem, 3.6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 26ch;
}

.about-copy-secondary {
  margin-top: clamp(1.75rem, 3.5vw, 3rem);
  max-width: 38rem;
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: var(--stone);
}

.about-wordmark {
  position: relative;
  z-index: 0;
  margin-top: clamp(3rem, 7vw, 6rem);
  margin-bottom: -6vw;
}
.about-wordmark img {
  width: 118%;
  max-width: none;
  margin-left: -6%;
  opacity: 0.07;
}

/* ---------- Focus ---------- */

.focus { padding-block: clamp(5rem, 12vw, 10rem); }

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.focus-block {
  border-top: 1px solid var(--ink);
  padding-top: 1.5rem;
}
.focus-index {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--forest);
}
.focus-title {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.focus-body {
  margin-top: 0.875rem;
  max-width: 30ch;
  opacity: 0.85;
}

/* ---------- Pillars ---------- */

.pillars {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  text-align: center;
}

.pillars-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.pillars-row li {
  font-size: clamp(1.0625rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Contact ---------- */

.contact { padding-block: clamp(5rem, 12vw, 10rem); scroll-margin-top: var(--header-h); }

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}

.contact-heading {
  font-size: clamp(1.5rem, 2.6vw, 2.375rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.contact-form { display: flex; flex-direction: column; gap: 1.75rem; }

.field { display: flex; flex-direction: column; gap: 0.5rem; }

.field label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--stone);
  border-radius: 0;
  padding: 0.625rem 0;
  transition: border-color 0.25s var(--ease-out);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 6rem; }

.field input:hover, .field textarea:hover { border-color: var(--ink); }

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 1px 0 0 var(--forest);
}
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
}

.button {
  position: relative;
  align-self: flex-start;
  overflow: hidden;
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: var(--forest);
  border: 1px solid var(--forest);
  padding: 0.9375rem 3.25rem;
  transition: color 0.35s var(--ease-out);
}
.button span { position: relative; z-index: 1; }
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.35s var(--ease-out);
}
.button:hover::before, .button:focus-visible::before { transform: translateY(0); }
.button:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 4px;
}
.button[disabled] { opacity: 0.6; }

.form-status {
  min-height: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.form-status.is-success { color: var(--forest); }
.form-status.is-error { color: #8A2D22; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}
.footer-entity { font-size: 0.9375rem; opacity: 0.85; }
.footer-copyright { font-size: 0.8125rem; opacity: 0.55; }

/* ---------- Custom cursor ---------- */

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream);
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), opacity 0.25s var(--ease-out);
  will-change: left, top;
  display: none;
}
html.has-cursor .cursor { display: block; }
.cursor.is-active { opacity: 1; }
.cursor.is-hover { width: 44px; height: 44px; }

/* ---------- Reveals (only when JS + motion allowed) ---------- */

html.anim [data-reveal] {
  opacity: 0;
  transform: translateY(1.75rem);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
html.anim [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
html.anim [data-reveal][data-reveal-delay="2"] { transition-delay: 0.15s; }
html.anim [data-reveal][data-reveal-delay="3"] { transition-delay: 0.3s; }
html.anim [data-reveal][data-reveal-delay="4"] { transition-delay: 0.45s; }
html.anim [data-reveal-group] [data-reveal]:nth-child(2) { transition-delay: 0.12s; }
html.anim [data-reveal-group] [data-reveal]:nth-child(3) { transition-delay: 0.24s; }
html.anim [data-reveal-group] [data-reveal]:nth-child(4) { transition-delay: 0.36s; }

/* masked word reveal for display lines */
html.anim .split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
html.anim .split-word > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s var(--ease-out);
  transition-delay: calc(var(--word-index) * 0.045s);
}
html.anim .is-visible .split-word > span,
html.anim [data-split].is-visible .split-word > span { transform: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; padding-left: var(--gutter); }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 56rem) {
  .focus-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-heading { max-width: 30ch; }
}

@media (max-width: 34rem) {
  .pillars-row {
    justify-content: center;
    gap: 0.875rem 2.25rem;
  }
  .display { letter-spacing: -0.02em; }
  .about-wordmark img { width: 140%; margin-left: -10%; }
}
