/* ==========================================================
   Chaos Master — styles
   ========================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Estrella';
  src: url('fonts/estrella-early.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/ProximaNovaRegular.woff') format('woff'),
       url('fonts/ProximaNovaRegular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/ProximaNovaBold.woff') format('woff'),
       url('fonts/ProximaNovaBold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova';
  src: url('fonts/ProximaNovaBlack.woff') format('woff'),
       url('fonts/ProximaNovaBlack.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #282722;
  --pink: #D677AD;
  --pink-dark: #C95E9B;
  --pink-light: #E39AC1;

  --font-display: 'Estrella', 'Proxima Nova', sans-serif;
  --font-body: 'Proxima Nova', 'Helvetica Neue', Helvetica, sans-serif;

  --gutter: clamp(20px, 3.34vw, 48px);
  --tight: -0.035em;
  --grain: radial-gradient(rgba(40, 39, 34, 0.3) 1.5px, transparent 1.5px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--pink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul { margin: 0; }
h1, h2, h3 { font-weight: inherit; }
ol, ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.15em; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}
.skip-link:focus { top: 12px; }

/* ---------- Sections ---------- */
.section {
  --fg: var(--pink);
  --bg: var(--ink);
  background: var(--bg);
  color: var(--fg);
  padding-inline: var(--gutter);
}
.section--pink {
  --fg: var(--ink);
  --bg: var(--pink);
}

/* ---------- Pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1.1em 0.45em;
  border: 3px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
button.pill:hover { transform: translateY(-2px); }

.pill--filled {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.dots {
  font-size: clamp(14px, 1.25vw, 18px);
  letter-spacing: 0.1em;
  line-height: 1;
  user-select: none;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(48px, 6vw, 88px);
  min-height: 100svh;
  padding-block: 28px clamp(28px, 3vw, 40px);
}

.nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: baseline;
  column-gap: 16px;
}
.nav__logo {
  justify-self: start;
  font-size: 40px;
  line-height: 1;
}
.nav__links {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 16px;
}
.nav__link {
  font-size: clamp(18px, 1.81vw, 26px);
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.statement__name {
  display: block;
  margin-bottom: 16px;
  padding-left: 0.04em; /* Estrella's capitals overhang to the left */
  font-size: clamp(60px, 20vw, 230px);
  line-height: 0.9;
  white-space: nowrap;
}
.statement__line {
  display: block;
  font-size: clamp(34px, 6.67vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.statement__tagline {
  margin-top: 20px;
  font-style: italic; /* no italic file supplied — the browser slants Regular */
  font-size: clamp(22px, 3.06vw, 44px);
  line-height: 1.1;
  letter-spacing: var(--tight);
}

.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
}
.coords {
  font-size: clamp(16px, 1.39vw, 20px);
  line-height: 1.25;
}
.hero__pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ==========================================================
   STUDIO
   ========================================================== */
.studio {
  padding: clamp(40px, 5vw, 72px) 0 clamp(64px, 8vw, 120px);
}

.rule {
  margin-inline: var(--gutter);
  border-top: 3px solid currentColor;
}

.strip {
  overflow: hidden;
  margin-block: clamp(32px, 4vw, 56px) clamp(16px, 2vw, 32px);
}
.strip__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  font-size: clamp(36px, 5.28vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  /* Static (reduced motion): start mid-word */
  transform: translateX(-3.4em);
}
@media (prefers-reduced-motion: no-preference) {
  .strip__track { animation: marquee 40s linear infinite; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.studio__word {
  padding-inline: var(--gutter);
  font-size: clamp(120px, 20.8vw, 300px);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.studio__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 3.34vw, 48px);
  margin-top: clamp(40px, 5vw, 72px);
  padding-inline: var(--gutter);
}
.studio__head {
  margin-bottom: 14px;
  font-weight: 900;
  font-size: clamp(28px, 3.34vw, 48px);
  line-height: 1;
  text-transform: uppercase;
}
.studio__line {
  font-size: clamp(22px, 2.64vw, 38px);
  line-height: 1.1;
  letter-spacing: var(--tight);
}

/* ==========================================================
   VENTURES
   ========================================================== */
.ventures {
  /* No right padding: the card row runs off the edge */
  padding: clamp(56px, 7vw, 100px) 0 clamp(56px, 7vw, 100px) var(--gutter);
}

.ventures__layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 40px;
  min-height: 760px;
}

.ventures__intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.ventures__title {
  font-size: clamp(48px, 6.39vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.ventures__hint {
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.1;
}

.ventures__row {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ventures__row::-webkit-scrollbar { display: none; }
.ventures__row:focus-visible { outline-offset: 4px; }

/* Grid + subgrid keeps every box the same height, even when a `does` pill wraps */
.ventures__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 460px;
  grid-template-rows: 1fr auto;
  gap: 20px 24px;
  padding-block: 14px 4px; /* room for the hover lift */
  padding-right: var(--gutter);
}

.venture {
  position: relative; /* keeps visually-hidden labels inside the scroller */
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  scroll-snap-align: start;
}
.venture:nth-child(3n + 1) { --card-fill: var(--pink); }
.venture:nth-child(3n + 2) { --card-fill: var(--pink-light); }
.venture:nth-child(3n + 3) { --card-fill: var(--pink-dark); }

.venture__box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  padding: 24px;
  border-radius: 4px;
  background-color: var(--card-fill, var(--pink));
  background-image: var(--grain);
  background-size: 14px 14px;
  color: var(--ink);
}
a.venture__box:hover { text-decoration: none; }
a.venture__box:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

.venture__box--image {
  background-size: cover;
  background-position: center;
}
.venture__box--image .venture__name {
  padding: 0.2em 0.45em 0.25em;
  border-radius: 4px;
  background: var(--pink);
}

.venture__name {
  font-size: clamp(40px, 3.89vw, 56px);
  line-height: 0.95;
  text-align: center;
}

.venture__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.venture__meta .pill { font-size: clamp(16px, 1.53vw, 22px); }
.venture__meta .pill:last-child {
  white-space: normal;
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .venture__box { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .venture:hover .venture__box { transform: translateY(-10px); }
  .pill { transition: transform 0.2s ease; }
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact {
  padding-top: clamp(40px, 5vw, 72px);
}

/* A. Info row */
.info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.info__logo {
  font-size: 40px;
  line-height: 1;
}
.info__cols {
  flex: 0 1 1000px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}
.info__label {
  margin-bottom: 8px;
  font-size: clamp(18px, 1.81vw, 26px);
  line-height: 1.1;
}
.info__value {
  font-weight: 700;
  font-size: clamp(24px, 2.36vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

/* B. Pitch row */
.pitch {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px clamp(40px, 5.5vw, 80px);
  align-items: start;
  margin-block: clamp(48px, 4.45vw, 64px);
}
.pitch__title {
  margin-bottom: 24px;
  padding-left: 0.04em;
  font-size: clamp(72px, 9.72vw, 140px);
  line-height: 0.9;
}
.pitch__line {
  max-width: 16em;
  font-size: clamp(22px, 2.22vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Form */
.form {
  display: grid;
  gap: 22px;
}
.field { display: grid; gap: 10px; }
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field__label {
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.field__input {
  width: 100%;
  min-height: 56px;
  padding: 16px 22px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 19px;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
}
.field__input::placeholder { color: rgba(40, 39, 34, 0.6); }
.field__input:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.field__input--area {
  border-radius: 28px;
  resize: vertical;
  min-height: 160px;
}
.field__input--select {
  padding-right: 54px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1.5 1.5 8 8l6.5-6.5' fill='none' stroke='%23282722' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 22px center;
}
.field__input--select option { color: var(--ink); background: #fff; }

.field__input[aria-invalid="true"] { border-style: dashed; }

.field__error,
.form__status {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  color: var(--ink);
}
.field__error:empty,
.form__status:empty { display: none; }
.field__error { padding-left: 22px; }

.pill--big {
  justify-self: start;
  min-height: 64px;
  padding: 0.55em 1.6em 0.5em;
  font-size: clamp(22px, 2.2vw, 32px);
  cursor: pointer;
}
.pill--big:disabled { cursor: progress; opacity: 0.85; transform: none; }

.form-success {
  padding-block: 12px;
  font-size: clamp(56px, 6.2vw, 90px);
  line-height: 0.9;
  transform: rotate(-2deg);
}
.form-success:focus { outline: none; }

/* C. Wordmark + footer */
.wordmark {
  padding-left: 0.04em;
  font-size: clamp(40px, 17vw, 176px);
  line-height: 1;
  white-space: nowrap;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 28px;
  font-size: clamp(15px, 1.39vw, 20px);
}

/* ==========================================================
   THANK-YOU PAGE
   ========================================================== */
.thanks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(24px, 3vw, 40px);
  min-height: 100svh;
  padding-block: 48px;
}
.thanks__title {
  font-size: clamp(96px, 17.4vw, 250px);
  line-height: 0.82;
  transform: rotate(-4deg);
}
.thanks__line {
  font-size: clamp(24px, 3.06vw, 44px);
  line-height: 1.08;
  letter-spacing: var(--tight);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

/* Tablet and down */
@media (max-width: 1000px) {
  .ventures__layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 32px;
  }
  .ventures__intro {
    justify-content: flex-start;
    gap: 16px;
    padding-right: var(--gutter);
  }

  .info { flex-direction: column; }
  .info__cols { flex: none; width: 100%; }

  .pitch { grid-template-columns: minmax(0, 1fr); }
}

/* Phone */
@media (max-width: 640px) {
  .hero { padding-top: 20px; }

  .nav {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
  }
  .nav__links {
    grid-column: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .nav__link { font-size: 18px; }

  .hero__foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .studio__cols { grid-template-columns: minmax(0, 1fr); }

  .ventures__list { grid-auto-columns: 80vw; }
  .venture__box { min-height: 96vw; }

  .info__cols { grid-template-columns: minmax(0, 1fr); }
  .field-pair { grid-template-columns: minmax(0, 1fr); }
  .pill--big { justify-self: stretch; }
}
