/* ===========================================================
   VINCAX — style.css
   Built in the shadows.

   Edit notes for future v2:
   - All colors live in :root as CSS variables. Change once,
     applied everywhere.
   - Type scale uses clamp() for fluid sizing — desktop and
     mobile values are encoded in each clamp.
   - Spacing tokens follow an 8px-base scale.
   =========================================================== */


/* ===========================================================
   1. TOKENS
   =========================================================== */
:root {
  /* Brand palette — locked */
  --bg:           #0A0A0A;
  --surface:      #141414;
  --text:         #F5F5F5;
  --text-muted:   #888888;
  --text-faint:   #555555;
  --gold:         #D4AF37;
  --gold-bright:  #E0BD4A;
  --border:       #2A2A2A;
  --border-soft:  #1F1F1F;

  /* Spacing scale (8px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 160px;

  /* Fluid section padding */
  --section-pad: clamp(80px, 12vw, 160px);
  --side-pad: clamp(24px, 5vw, 80px);

  /* Type scale (fluid via clamp) */
  --t-eyebrow: 12px;
  --t-body-sm: 14px;
  --t-body: 16px;
  --t-body-lg: clamp(17px, 1.4vw, 19px);
  --t-h3: clamp(20px, 2vw, 24px);
  --t-h2: clamp(34px, 5vw, 56px);
  --t-hero: clamp(46px, 8vw, 92px);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.6s;

  /* Container widths */
  --container: 1200px;
  --container-narrow: 720px;
}


/* ===========================================================
   2. RESET / BASE
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: var(--t-body);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

button { font: inherit; }

/* Selection color */
::selection { background: var(--gold); color: var(--bg); }


/* ===========================================================
   3. GRAIN TEXTURE OVERLAY
   Adds atmosphere without violating restraint.
   =========================================================== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}


/* ===========================================================
   4. TYPOGRAPHY UTILITIES
   =========================================================== */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--s-5);
}

.accent-text { color: var(--gold); }


/* ===========================================================
   5. LAYOUT — CONTAINERS
   =========================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}

.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section--surface { background: var(--surface); }

.section__heading {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 var(--s-9);
  max-width: 14ch;
}


/* ===========================================================
   6. NAVIGATION
   =========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--s-5) 0;
  background: transparent;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border-soft);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.nav__lockup img {
  width: clamp(110px, 14vw, 150px);
  opacity: 0.92;
  transition: opacity 0.2s var(--ease);
}
.nav__lockup:hover img { opacity: 1; }


/* ===========================================================
   7. BUTTONS
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn--gold:active { transform: translateY(1px); }

.btn--small { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; padding: 18px 28px; font-size: 16px; }


/* ===========================================================
   8. HERO
   =========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: var(--s-11) var(--side-pad) var(--s-9);
  overflow: hidden;
}

.hero__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__headline {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: var(--t-hero);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text);
  margin: 0 0 var(--s-7);
  max-width: 16ch;
}

.hero__subhead {
  font-family: 'Inter', sans-serif;
  font-size: var(--t-body-lg);
  line-height: 1.55;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0 0 var(--s-7);
  max-width: 44ch;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
}

.hero__hint {
  font-size: var(--t-body-sm);
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* Editorial vertical hairline on the left edge of the hero */
.hero__rule {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--side-pad) - 1px);
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
  z-index: 1;
  opacity: 0.4;
}


/* ===========================================================
   9. PILLARS
   =========================================================== */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7);
}

.pillar {
  display: flex;
  flex-direction: column;
}

.pillar__num {
  font-family: 'Inter', sans-serif;
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: var(--s-5);
}

.pillar__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 var(--s-3);
}

.pillar__body {
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}


/* ===========================================================
   10. PROCESS / HOW IT WORKS
   =========================================================== */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}

.process-step {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: var(--s-5);
}

/* Top hairline above each step number */
.process-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.process-step__num {
  font-family: 'Inter', sans-serif;
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: var(--s-4);
}

.process-step__title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 var(--s-3);
}

.process-step__body {
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}


/* ===========================================================
   11. PROMISE SECTION
   =========================================================== */
.promise {
  padding: clamp(100px, 16vw, 200px) 0;
  text-align: center;
}

.promise .container--narrow {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.promise .eyebrow {
  display: inline-block;
}

.promise__headline {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 var(--s-6);
}

.promise__body {
  font-family: 'Inter', sans-serif;
  font-size: var(--t-body-lg);
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  max-width: 58ch;
}


/* ===========================================================
   12. FORM
   =========================================================== */
.form-section__subhead {
  font-family: 'Inter', sans-serif;
  color: var(--text-muted);
  margin: calc(-1 * var(--s-7)) 0 var(--s-9);
  max-width: 54ch;
}

.apply-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.field__label {
  font-family: 'Inter', sans-serif;
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field__optional {
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--text-faint);
  font-weight: 400;
}

.field input[type="text"],
.field input[type="email"],
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.5;
  padding: 14px 16px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  background: #0F0F0F;
}

.field textarea { resize: vertical; min-height: 96px; font-family: 'Inter', sans-serif; }

/* Custom arrow on select */
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.field--group { border: none; padding: 0; margin: 0; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  font-size: var(--t-body);
  color: var(--text);
  user-select: none;
}

.checkbox:hover { border-color: var(--text-faint); }

.checkbox input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; border: 1.5px solid var(--text-muted); border-radius: 3px; cursor: pointer; position: relative; flex: none; transition: all 0.2s var(--ease); margin: 0; }

.checkbox input:checked {
  background: var(--gold);
  border-color: var(--gold);
}

.checkbox input:checked + span { color: var(--text); }

.checkbox input:checked::after {
  content: "";
  position: absolute;
  inset: 2px 4px;
  border-right: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(45deg) translate(-1px, -1px);
  width: 4px;
  height: 8px;
}

.checkbox:has(input:checked) { border-color: var(--gold); background: rgba(212, 175, 55, 0.04); }

#submitBtn { margin-top: var(--s-3); }
#submitBtn[disabled] { opacity: 0.6; cursor: wait; }

.form-status {
  margin: var(--s-5) 0 0;
  font-size: var(--t-body-sm);
  color: var(--text-muted);
  min-height: 1.4em;
}

.form-status.is-success { color: var(--gold); }
.form-status.is-error { color: #E06464; }


/* ===========================================================
   13. FOOTER
   =========================================================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: var(--s-8);
  padding-bottom: var(--s-7);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-7);
  flex-wrap: wrap;
}

.footer__left { display: flex; flex-direction: column; gap: var(--s-3); }
.footer__lockup { width: 120px; opacity: 0.7; }
.footer__tagline {
  margin: 0;
  font-size: var(--t-body-sm);
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.footer__right {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.footer__link {
  font-size: var(--t-body-sm);
  color: var(--text-muted);
}
.footer__link:hover { color: var(--gold); }

.footer__dot { color: var(--text-faint); }

.footer__bottom {
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border-soft);
}
.footer__bottom p {
  margin: 0;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}


/* ===========================================================
   14. REVEAL ANIMATIONS
   Triggered by IntersectionObserver in script.js.
   =========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 1ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}


/* ===========================================================
   15. RESPONSIVE — TABLET / MOBILE
   =========================================================== */
@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .process-list { grid-template-columns: 1fr; gap: var(--s-7); }
  .section__heading { max-width: 100%; }
  .hero__cta { flex-direction: column; align-items: flex-start; }
  .hero__hint { margin-top: 0; }
}

@media (max-width: 600px) {
  .nav__inner { gap: var(--s-3); }
  .nav__lockup img { width: 100px; }

  .checkbox-grid { grid-template-columns: 1fr; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: var(--s-6); }
  .footer__right { gap: var(--s-2); }

  .btn--block { padding: 16px 24px; }

  .promise { padding: clamp(80px, 22vw, 140px) 0; }
}
