/* By WiRED, editorial light, direction 4.
   Source of truth: bywired_design_spec.md */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;800&family=Inter+Tight:wght@400;500&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* canvas and structure */
  --bone: #F2EFE8;
  --bone-2: #E8E4DA;
  --ink: #12140F;
  --body: #3E3F37;
  --muted: #6E6A5E;
  --line: #D8D3C7;

  /* video panel interior */
  --panel: #0C1113;
  --panel-deep: #06090A;
  --on-panel: #F2EFE8;
  --on-panel-2: #C5CBCE;

  /* homepage default accent: Arugam Days rust */
  --accent: #C2540E;
  --lead: #26281F;

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter Tight', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--body);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.004em;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

/* visible keyboard focus everywhere, never removed without replacement */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

/* type roles */

.display,
h1, h2,
.logo-mark-text,
.row-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.mono,
.eyebrow,
.mono-count,
.mono-label,
.site-nav a,
.row-num,
.row-city,
.row-date,
.video-caption,
.form-field label,
.site-footer {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
}

p {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.004em;
  max-width: 48ch;
  color: var(--body);
}

hr,
.hairline {
  border: 0;
  border-top: 0.5px solid var(--line);
}

/* ============ header ============ */

.site-header {
  border-bottom: 0.5px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

/* Interim fix: source logo art is white-only PNGs with transparent backgrounds.
   brightness(0) forces the visible pixels solid black against the bone canvas.
   Replace with a real ink-coloured SVG when the vector is delivered. */
.logo-mark {
  height: 20px;
  width: auto;
  filter: brightness(0);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
}

/* ============ hero ============ */

.hero {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.eyebrow {
  margin: 0 0 1rem;
}

.accent-word {
  color: var(--accent);
}

.video-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 2rem;
}

@media (max-width: 639px) {
  .video-panel {
    aspect-ratio: 4 / 5;
  }
}

.hero-video,
.video-panel .poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 9, 10, 0.45) 0%,
    rgba(6, 9, 10, 0.08) 42%,
    rgba(6, 9, 10, 0.1) 58%,
    rgba(6, 9, 10, 0.5) 100%
  );
  pointer-events: none;
}

.play-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0.5px solid rgba(242, 239, 232, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-panel);
  background: rgba(12, 17, 19, 0.2);
}

.play-toggle svg {
  width: 14px;
  height: 14px;
}

.video-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  color: var(--on-panel-2);
}

.video-panel.no-video .play-toggle {
  display: none;
}

/* ============ statement ============ */

.statement {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.statement-h1 {
  font-size: clamp(30px, 7.8vw, 72px);
}

/* ============ index of brands ============ */

.brands-index {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: clamp(18px, 3vw, 28px);
}

.brand-row {
  display: grid;
  grid-template-columns: 26px 1fr 78px 74px;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-top: 0.5px solid var(--line);
  transition: background 250ms ease;
}

.brand-rows a:last-child {
  border-bottom: 0.5px solid var(--line);
}

@media (min-width: 768px) {
  .brand-row {
    grid-template-columns: 40px 1fr 160px 140px;
    padding: 20px 24px;
  }
}

.brand-row:hover {
  background: var(--bone-2);
}

.brand-row:hover .row-name {
  transform: translateX(6px);
}

.row-num {
  color: var(--muted);
}

.row-name {
  font-size: clamp(18px, 3.4vw, 32px);
  letter-spacing: -0.025em;
  transition: transform 250ms ease;
}

.row-city {
  color: var(--muted);
}

.row-date {
  text-align: right;
}

.row-date.confirmed {
  color: var(--row-accent, var(--accent));
}

.row-date.muted {
  color: var(--muted);
}

/* ============ studios block ============ */

.studios-block {
  background: var(--bone-2);
  border-top: 0.5px solid var(--line);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.mono-label {
  display: block;
  color: var(--accent);
  background: none;
  margin-bottom: 1rem;
}

.studios-copy {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.004em;
  max-width: 48ch;
  color: var(--body);
  margin: 0 0 1.5rem;
}

.lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--lead);
}

/* ============ two column body copy ============ */

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px 48px;
}

.two-col > p {
  max-width: 42ch;
  margin: 0;
}

@media (max-width: 767px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ============ contact form ============ */

.contact-block {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 0.5px solid var(--line);
}

.contact-h2 {
  font-size: clamp(18px, 3vw, 28px);
  margin-bottom: 1.5rem;
}

.contact-form {
  max-width: 560px;
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-field label {
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--bone);
  border: 0.5px solid var(--line);
  border-radius: 0;
  padding: 12px;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-field textarea {
  resize: vertical;
}

.form-submit {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  border: 0.5px solid var(--ink);
  padding: 14px 24px;
  margin-top: 8px;
}

.form-submit:hover {
  color: var(--bone);
  background: var(--ink);
}

/* ============ footer ============ */

.site-footer {
  border-top: 0.5px solid var(--line);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
}

.footer-contact,
.footer-social,
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-legal {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.footer-inner a:hover {
  color: var(--ink);
}

/* ============ motion and accessibility ============ */

@media (prefers-reduced-motion: reduce) {
  .brand-row,
  .row-name {
    transition: none;
  }

  .brand-row:hover .row-name {
    transform: none;
  }
}
