/* Driven Worlds site. Palette and motifs follow Driven Worlds - Brand Guidelines (Carbon Black, Pure White,
   Ferrari Red as a signal at 5 to 10 percent, Steel Gray for lines). Motion moves position and opacity only. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/BarlowCondensed-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand palette */
  --carbon: #0B0B0B;
  --red: #F70D1A;
  --white: #FFFFFF;
  --steel: #777777;
  /* Tints of the palette */
  --ink-dim: rgba(255, 255, 255, 0.76);
  --hair: rgba(255, 255, 255, 0.16);
  --veil: rgba(255, 255, 255, 0.045);
  /* Font stack: change these four lines to swap the typeface set */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-label: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  /* Layout */
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1180px;
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--carbon);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  font-synthesis: none;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }

:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -64px; z-index: 20;
  background: var(--white); color: var(--carbon); padding: 10px 16px;
  font-family: var(--font-ui); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Type roles */
.eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 20px;
  max-width: none;
}
.eyebrow .part { white-space: nowrap; }
.eyebrow .sep { padding: 0 0.6em; }
@media (max-width: 640px) {
  .eyebrow .part { display: block; }
  .eyebrow .sep { display: none; }
}
.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.05;
  font-weight: 700;
}
h2.display { font-size: clamp(28px, 4.2vw, 56px); }
h3.display { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.1; font-weight: 600; letter-spacing: 0.01em; }
.label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* Motifs: the Red Rule and the Lane */
.rule { display: block; width: 64px; height: 4px; background: var(--red); border: 0; margin: 0 0 24px; }
.tick { display: block; width: 32px; height: 3px; background: var(--red); margin: 16px 0 20px; }
.lane {
  display: block; width: 100%; height: 2px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent 14px, var(--steel) 14px 42px, transparent 42px) 0 0 / 56px 2px;
  background-repeat: round no-repeat;
}

/* Buttons: Archivo SemiBold at 19px, so the white-on-red pair clears the large-text contrast floor */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 40px;
  background: var(--red); color: var(--white);
  font-family: var(--font-ui); font-weight: 600; font-size: 19px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--red); border-radius: 0; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--white); color: var(--carbon); border-color: var(--white); }
.btn[disabled] { opacity: 0.55; cursor: wait; }

/* Header */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand-mark { display: inline-block; line-height: 0; }
.brand-mark img { width: 44px; height: 44px; }

/* Reveal motion: opacity and translate only */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - 88px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: clamp(24px, 6vh, 72px) var(--gutter) clamp(180px, 30vw, 420px);
  background: var(--carbon);
}
/* Photograph and veil. The grade is applied here in CSS and never baked into the file. */
.hero::before, .closing::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-repeat: no-repeat; background-size: cover;
  filter: grayscale(0.3) contrast(1.05) brightness(0.88);
}
.hero::before { background-image: url("/assets/img/photo-hero-marina.jpg"); background-position: 62% 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 11, 0.9) 0%, rgba(11, 11, 11, 0.74) 34%, rgba(11, 11, 11, 0.28) 66%, rgba(11, 11, 11, 0.12) 82%, var(--carbon) 100%);
}
.hero h1 { margin: 0 0 clamp(28px, 5vh, 56px); line-height: 0; }
.hero h1 img { width: min(560px, 82vw); height: auto; margin: 0 auto; }
.hero .eyebrow { margin-bottom: 28px; }
.hero .display { font-size: clamp(36px, 5.4vw, 78px); margin: 0 0 clamp(20px, 3vh, 32px); text-wrap: balance; }
.hero .display .br { display: block; }
.hero .lede { font-size: clamp(19px, 2vw, 22px); max-width: 60ch; margin: 0 auto 40px; color: var(--ink-dim); text-wrap: balance; }
.hero .status { margin: 22px 0 0; font-size: 16px; color: var(--ink-dim); max-width: none; }
.hero .lane-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; width: auto; }

/* Sections */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section + .section { border-top: 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { max-width: none; }
.section-head h2 .br { display: inline; }
.section-head .intro { margin: 24px 0 0; color: var(--ink-dim); }

.triple { display: grid; gap: 40px; grid-template-columns: 1fr; }
.triple .item h3 { font-family: var(--font-ui); font-size: 21px; letter-spacing: 0.03em; text-transform: uppercase; font-weight: 600; line-height: 1.1; margin: 0 0 12px; }
.triple .item p { color: var(--ink-dim); margin: 0; }

.cards { display: grid; gap: 24px; grid-template-columns: 1fr; }
.card { --pad: clamp(24px, 3vw, 36px); border: 1px solid var(--hair); background: var(--veil); padding: var(--pad); display: flex; flex-direction: column; }
.card-media {
  margin: calc(-1 * var(--pad)) calc(-1 * var(--pad)) var(--pad); aspect-ratio: 3 / 2;
  background-color: #151515; background-size: cover; background-position: center; background-repeat: no-repeat;
  border-bottom: 3px solid var(--red);
  filter: grayscale(0.3) contrast(1.05) brightness(0.9);
}
.card-media.m-curator { background-image: url("/assets/img/photo-host-curator.jpg"); }
.card-media.m-builder { background-image: url("/assets/img/photo-host-builder.jpg"); }
.card-media.m-expressionist { background-image: url("/assets/img/photo-host-expressionist.jpg"); }

/* Full-width photograph between the hero and the series section */
.band { position: relative; isolation: isolate; height: clamp(220px, 44vw, 560px); background: #151515; overflow: hidden; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("/assets/img/photo-band-rally.jpg") center / cover no-repeat;
  filter: grayscale(0.3) contrast(1.05) brightness(0.88);
}
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--carbon) 0%, rgba(11, 11, 11, 0) 22%, rgba(11, 11, 11, 0) 70%, var(--carbon) 100%);
}
.card .num { font-family: var(--font-label); font-weight: 600; font-size: 15px; letter-spacing: 0.2em; color: var(--ink-dim); margin: 0 0 14px; max-width: none; }
.card .role-line { color: var(--ink-dim); margin: 0 0 24px; }
.card .fit-label { margin: 0 0 12px; }
.card ul { margin: 0 0 24px; }
.card li { position: relative; padding: 0 0 10px 18px; line-height: 1.4; }
.card li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 2px; background: var(--steel); }
.card .meta { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--hair); font-size: 17px; line-height: 1.4; color: var(--ink-dim); }
.card .meta p { margin: 0 0 8px; max-width: none; }
.card .meta p:last-child { margin: 0; }
.card .meta strong { font-family: var(--font-label); font-weight: 600; color: var(--white); letter-spacing: 0.14em; text-transform: uppercase; font-size: 14px; display: block; margin-bottom: 2px; }

.facts { display: grid; gap: 28px 56px; grid-template-columns: 1fr; }
.facts .fact { border-top: 1px solid var(--hair); padding-top: 20px; }
.facts .fact h3 { font-family: var(--font-ui); font-size: 20px; letter-spacing: 0.03em; text-transform: uppercase; font-weight: 600; margin: 0 0 10px; line-height: 1.1; }
.facts .fact p { margin: 0; color: var(--ink-dim); }

.closing { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: clamp(96px, 14vw, 200px) 0; border-top: 1px solid var(--hair); background: var(--carbon); }
.closing::before { background-image: url("/assets/img/photo-closing-enzo.jpg"); background-position: 50% 40%; }
.closing::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--carbon) 0%, rgba(11, 11, 11, 0.7) 22%, rgba(11, 11, 11, 0.78) 78%, var(--carbon) 100%);
}
.closing .rule { margin-left: auto; margin-right: auto; }
.closing h2 { margin: 0 0 24px; }
.closing p { margin: 0 auto 40px; color: var(--ink-dim); }

/* Footer */
.site-footer { padding: 40px 0 56px; }
.site-footer .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 32px; }
.site-footer img { width: min(260px, 60vw); height: auto; }
.site-footer nav { display: flex; gap: 28px; }
.site-footer a { text-decoration: none; font-family: var(--font-label); font-weight: 600; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dim); }
.site-footer a:hover { color: var(--white); }

/* Inner pages */
.page-head { padding: clamp(32px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(34px, 6.4vw, 80px); margin: 0 0 24px; }
.page-head .intro { color: var(--ink-dim); margin: 0; }

/* Form */
.form-shell { max-width: 760px; padding-bottom: clamp(72px, 10vw, 128px); }
.notice { border-left: 3px solid var(--red); background: var(--veil); padding: 16px 20px; margin: 0 0 32px; max-width: none; }
fieldset { border: 0; padding: 0; margin: 0 0 clamp(36px, 5vw, 56px); min-width: 0; }
legend { padding: 0; margin: 0 0 24px; width: 100%; font-family: var(--font-ui); font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; display: block; border-bottom: 1px solid var(--hair); padding-bottom: 14px; }
.field { margin: 0 0 24px; }
.field > label, .field > .field-label { display: block; margin: 0 0 8px; font-size: 17px; letter-spacing: 0.04em; }
.field .opt { color: var(--ink-dim); }
.field .help { margin: 6px 0 0; font-size: 15px; color: var(--ink-dim); max-width: none; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea, select {
  width: 100%; font: inherit; font-size: 17px; color: var(--white);
  background: var(--veil); border: 1px solid var(--hair); border-radius: 0; padding: 14px 16px; min-height: 52px;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--steel); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 48px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='white' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat; background-position: right 18px center;
}
select option { background: var(--carbon); color: var(--white); }
input:hover, textarea:hover, select:hover { border-color: var(--steel); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; border-color: var(--white); }
[aria-invalid="true"] { border-color: var(--red) !important; }
.error { margin: 8px 0 0; color: var(--red); font-size: 16px; max-width: none; min-height: 0; }
.error:empty { display: none; }

.choices { display: grid; gap: 12px; grid-template-columns: 1fr; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice label {
  display: block; margin: 0; padding: 16px 20px 16px 56px; border: 1px solid var(--hair); background: var(--veil);
  cursor: pointer; line-height: 1.3; position: relative; transition: border-color 0.2s ease;
}
.choice label::before { content: ""; position: absolute; left: 20px; top: 20px; width: 18px; height: 18px; border: 2px solid var(--steel); border-radius: 50%; }
.choice input:checked + label { border-color: var(--white); }
.choice input:checked + label::after { content: ""; position: absolute; left: 25px; top: 25px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.choice input:focus-visible + label { outline: 2px solid var(--white); outline-offset: 2px; }
.choice label strong { display: block; font-family: var(--font-ui); font-weight: 600; font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; }
.choice label span { display: block; font-size: 16px; color: var(--ink-dim); margin-top: 2px; }
.choices[aria-invalid="true"] .choice label { border-color: var(--red); }

.check { position: relative; margin: 0 0 16px; }
.check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.check label { display: block; margin: 0; padding: 0 0 0 40px; cursor: pointer; position: relative; line-height: 1.4; }
.check label::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border: 2px solid var(--steel); background: var(--veil); }
.check input:checked + label::before { border-color: var(--white); }
.check input:checked + label::after { content: ""; position: absolute; left: 7px; top: 6px; width: 8px; height: 12px; border: solid var(--white); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.check input:focus-visible + label::before { outline: 2px solid var(--white); outline-offset: 3px; }
.check[data-invalid="true"] label::before { border-color: var(--red); }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 24px 0 0; max-width: none; min-height: 1.5em; }
.form-status.err { color: var(--red); }
.submit-row { margin-top: 12px; }

.confirm { padding: clamp(24px, 4vw, 40px) 0; }
.confirm h2 { margin: 0 0 20px; }
.confirm p { color: var(--ink-dim); margin: 0 0 32px; }
.link-btn { display: inline-block; font-family: var(--font-label); font-weight: 600; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 4px; }

/* Prose pages */
.prose { max-width: 760px; padding-bottom: clamp(72px, 10vw, 128px); }
.prose h2 { font-family: var(--font-ui); font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; margin: 48px 0 14px; padding-top: 24px; border-top: 1px solid var(--hair); line-height: 1.15; }
.prose h2:first-of-type { margin-top: 8px; }
.prose p, .prose li { color: var(--ink-dim); }
.prose ul { margin: 0 0 1em; }
.prose li { position: relative; padding: 0 0 8px 20px; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.66em; width: 7px; height: 2px; background: var(--steel); }
.prose a { color: var(--white); text-underline-offset: 4px; }

.err-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--gutter); }
.err-page .display { font-size: clamp(56px, 11vw, 128px); margin: 0 0 16px; }
.err-page p { margin: 0 auto 32px; color: var(--ink-dim); }

/* Breakpoints */
@media (min-width: 720px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .choices { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .triple { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  /* Each card spans eight rows of the shared grid (media, number, title, rule, role line, label, list, meta) so labels, lists and meta blocks line up across the three cards */
  .cards { grid-template-columns: repeat(3, 1fr); column-gap: 24px; row-gap: 0; }
  .card { display: grid; grid-template-rows: subgrid; grid-row: span 8; }
  .card .meta { margin-top: 0; }
  .section-head h2 .br { display: block; }
  .hero .display .br { display: inline; }
  .hero .display { white-space: nowrap; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .btn { width: 100%; padding: 0 20px; }
}
