/* ===========================================================================
   angelbarclay.com — one stylesheet, no framework.
   Ported from "Angel Barclay Site B.dc.html". Every value here is the design's.
   =========================================================================== */

/* --- fonts: self-hosted latin subsets (47KB total) ----------------------- */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/anton-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700; /* variable — one file covers 400..700 */
  font-stretch: 100%;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- design tokens ------------------------------------------------------- */
:root {
  --bg: #0b0a09;
  --surface: #141312;
  --surface-alt: #121110;
  --text: #f2efe9;
  --red: #d92417;
  --red-bright: #ff2e1f;

  --text-80: rgba(242, 239, 233, 0.8);
  --text-65: rgba(242, 239, 233, 0.65);
  --text-55: rgba(242, 239, 233, 0.55);
  --text-50: rgba(242, 239, 233, 0.5);
  --line: rgba(242, 239, 233, 0.15);
  --line-soft: rgba(242, 239, 233, 0.12);
  --line-chip: rgba(242, 239, 233, 0.3);

  --on-red-90: rgba(255, 255, 255, 0.9);
  --on-red-85: rgba(255, 255, 255, 0.85);
  --on-red-75: rgba(255, 255, 255, 0.75);
  --on-red-65: rgba(255, 255, 255, 0.65);
  --line-on-red: rgba(255, 255, 255, 0.28);
  --field-border: rgba(255, 255, 255, 0.35);

  --display: Anton, Impact, 'Arial Narrow', sans-serif;
  --body: Archivo, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;

  --pad-x: 40px;
  --section-y: 72px;
  --marquee-duration: 24s; /* exposed as a knob, per the design's marqueeSpeed prop */
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--red-bright); }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}
/* On the red blocks a red focus ring is invisible — flip it to white. */
.hero :focus-visible,
.contact :focus-visible {
  outline-color: #fff;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--bg);
  color: var(--text);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.skip-link:focus { left: 0; }

/* --- shared layout ------------------------------------------------------- */
.section {
  padding: var(--section-y) var(--pad-x);
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 20px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 1.05;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-55);
}

.link-accent {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red-bright);
  white-space: nowrap;
}

/* --- hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  /* Neutral dark backdrop: the film plays at its own grade, with the scrim
     carrying text legibility. (The launch version multiplied the film against
     the brand red; Angel asked for a more neutral read, 2026-08.) */
  background: var(--bg);
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* The film is the hero's only media layer. It must not be stacked over a second
   image; its own first frame is carried by the poster attribute instead. */
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0) 45%);
}

/* --- nav ----------------------------------------------------------------- */
.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--pad-x);
}

.wordmark {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.05em;
  color: #fff;
}
.wordmark:hover { color: var(--red-bright); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.nav-links a { color: #fff; }
.nav-links a:hover { color: var(--red-bright); }

.btn-block {
  background: var(--red);
  color: #fff;
  padding: 11px 20px;
  font-weight: 700;
  white-space: nowrap;
}
.btn-block:hover { background: #fff; color: var(--red); }

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #fff;
  padding: 13px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.btn-outline:hover { background: #fff; color: var(--red); }

.hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px var(--pad-x) 28px;
}

.hero-kicker {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--on-red-85);
}

.hero-title {
  font-family: var(--display);
  /* The design's floor is 64px; below ~580px that overflows a phone, so the
     floor drops to 44px. Identical to the spec at every width above that. */
  font-size: clamp(44px, 11vw, 170px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: #fff;
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
}
.hero-sub {
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-red-90);
}

/* --- brand marquee ------------------------------------------------------- */
.marquee {
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
  overflow: hidden;
  background: var(--bg);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-duration) linear infinite;
}
.marquee-row {
  display: flex;
  gap: 56px;
  padding-right: 56px;
  font-family: var(--display);
  font-size: 22px;
  color: var(--text-55);
  white-space: nowrap;
  text-transform: uppercase;
}
.marquee-row i { color: var(--red); font-style: normal; }

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

/* --- stats --------------------------------------------------------------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line-soft);
}
.stat {
  flex: 1;
  min-width: 200px;
  padding: 32px var(--pad-x);
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
}

/* --- selected work ------------------------------------------------------- */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.tile {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  display: block;
  width: 100%;
}
.tile:hover { border-color: var(--red); }

.tile-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Poster image underneath; the video fades in over it once it starts. */
.tile-poster { z-index: 0; }
.tile-video { z-index: 1; opacity: 0; transition: opacity 0.4s ease; }
.tile-video.is-ready { opacity: 1; }

.tile-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 96px;
  z-index: 2;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0));
}
.tile-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--on-red-85);
  letter-spacing: 0.08em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.tile-name {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 3;
  font-family: var(--display);
  font-size: clamp(16px, 1.6vw, 26px);
  text-transform: uppercase;
  color: #fff;
}
.tile-pill {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
}
.tile-pill::before { content: '\25B6'; }               /* ▶ preview */
.tile[aria-pressed='true'] .tile-pill::before { content: '\25A0'; } /* ■ playing */

/* --- case studies -------------------------------------------------------- */
.cases { margin-top: 40px; }
.cases-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.h3-display {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  text-transform: uppercase;
}
.cases-note { font-size: 13px; color: var(--text-55); }

.row {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.row:last-of-type { border-bottom: 1px solid var(--line); }

.row > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.row > summary::-webkit-details-marker { display: none; }

.row-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.row-brand {
  font-family: var(--display);
  font-size: 20px;
  text-transform: uppercase;
}
.row-sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-50);
}
.row-toggle {
  font-size: 12px;
  font-weight: 700;
  color: var(--red-bright);
  white-space: nowrap;
}
/* Keeps the design's literal "EXPAND +" copy while still signalling state:
   the plus rotates into a cross when the row is open. */
.row-toggle span {
  display: inline-block;
  transition: transform 0.2s ease;
}
.row[open] .row-toggle span { transform: rotate(45deg); }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 18px 0 6px;
}
.case-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-50);
  letter-spacing: 0.08em;
}
.case-body {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-65);
}
.case-body.is-placeholder { font-family: var(--mono); }
.case-body a { color: var(--red-bright); font-weight: 600; }

/* --- personal brands ----------------------------------------------------- */
.pb-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.pb-copy .h2 { margin-bottom: 24px; }
.pb-copy p {
  margin-bottom: 28px;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-80);
}
/* The film was exported at reel size; keep the tile small so it stays sharp. */
.pb-grid .tile { max-width: 300px; justify-self: end; }

/* --- services ------------------------------------------------------------ */
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.service {
  border: 1px solid var(--line);
  padding: 24px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.service-num {
  font-family: var(--display);
  font-size: 28px;
  color: var(--red);
}
.service h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 700;
}
.service p {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(242, 239, 233, 0.6);
}

/* --- store --------------------------------------------------------------- */
.product {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface-alt);
}
.product:hover { border-color: var(--red); color: var(--text); }
.product img {
  width: 100%;
  /* height:auto beats the height="380" attribute; without it the box is pinned
     at 380px tall and cover crops a different slice of the art per viewport. */
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
}
.product-name { font-size: 14px; font-weight: 600; }
.product-price {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--red-bright);
}

/* --- about --------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
}
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about h2 {
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
}
.about p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-80);
}
.about p:last-of-type { margin-bottom: 28px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.chips a {
  border: 1px solid var(--line-chip);
  padding: 9px 16px;
}
.chips a:hover { border-color: var(--red); }

/* --- faq ----------------------------------------------------------------- */
.faq-row {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.faq-row:last-of-type { border-bottom: 1px solid var(--line); }
.faq-row > summary {
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  list-style: none;
}
.faq-row > summary::-webkit-details-marker { display: none; }
.faq-row p {
  margin-top: 12px;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-65);
}

/* --- contact ------------------------------------------------------------- */
.contact {
  padding: 96px var(--pad-x);
  background: var(--red);
  color: #fff;
  text-align: center;
  border-bottom: 0;
}
.contact h2 {
  margin: 0 auto 30px;
  max-width: 1000px;
  font-family: var(--display);
  font-size: clamp(44px, 8vw, 110px);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  color: #fff;
}

.form-card {
  margin: 0 auto;
  max-width: 640px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-on-red);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--on-red-75);
}
.field input,
.field textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--field-border);
  border-radius: 12px;
  padding: 13px 16px;
  color: #fff;
  font-family: var(--body);
  font-size: 14px;
  outline: none;
  width: 100%;
}
.field textarea { border-radius: 16px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.field input:focus,
.field textarea:focus {
  border-color: #fff;
  background: rgba(0, 0, 0, 0.45);
}
.field input:focus-visible,
.field textarea:focus-visible { outline: none; }

.btn-submit {
  background: #0b0a09;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 17px 36px;
  border-radius: 12px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  width: 100%;
}
.btn-submit:hover { background: #fff; color: var(--red); }
.btn-submit[disabled] { opacity: 0.6; cursor: progress; }

.form-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--on-red-65);
  text-align: center;
}
.form-status {
  font-size: 13px;
  color: #fff;
  text-align: center;
  min-height: 1em;
}
.contact-alt {
  margin-top: 22px;
  font-size: 13px;
  color: var(--on-red-85);
}
.contact-alt a { color: #fff; text-decoration: underline; }
.contact-alt a:hover { color: #0b0a09; }

/* --- footer -------------------------------------------------------------- */
.footer {
  padding: 48px var(--pad-x) 36px;
  overflow: hidden;
}
.footer-mark {
  font-family: var(--display);
  font-size: clamp(52px, 11.5vw, 170px);
  line-height: 0.9;
  text-transform: uppercase;
  color: rgba(242, 239, 233, 0.1);
  white-space: nowrap;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-50);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ===========================================================================
   Responsive. The design was drawn at desktop width; these steps preserve its
   proportions down to 320px. Vertical reels keep their 9:16 frame at every
   breakpoint — they never crop to 16:9.
   =========================================================================== */
@media (max-width: 1000px) {
  .reel-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 36px; }
  .pb-grid { gap: 36px; }
}

@media (max-width: 860px) {
  :root { --pad-x: 24px; --section-y: 56px; }

  /* Wordmark + CTA stay on the top line; the anchors drop to their own row. */
  .nav {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 14px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
  }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .pb-grid { grid-template-columns: 1fr; }
  .pb-grid .tile { max-width: 320px; justify-self: start; }
  .case-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact { padding: 72px var(--pad-x); }
}

@media (max-width: 640px) {
  :root { --pad-x: 20px; }

  .reel-grid { grid-template-columns: repeat(2, 1fr); }

  /* Flex borders break when cells wrap — swap to a bottom rule per row. */
  .stat {
    flex: 1 1 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 24px var(--pad-x);
  }
  .stat:last-child { border-bottom: 0; }

  .field-pair { grid-template-columns: 1fr; }
  .form-card { padding: 20px; }
  .section-head { flex-direction: column; gap: 12px; margin-bottom: 28px; }
  .hero-foot { gap: 16px; }
  .marquee-row { font-size: 18px; gap: 36px; padding-right: 36px; }
}

@media (max-width: 420px) {
  .card-grid-4 { grid-template-columns: 1fr; }
  .service { min-height: 0; }
}

/* --- reduced motion ------------------------------------------------------ */
/* The marquee and the reel autoplay are both motion; honour the OS setting.
   Reels still play on click — the visitor opted in at that point. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; transform: none; }
  .marquee { overflow-x: auto; }
  .tile-video { transition: none; }
  .row-toggle span { transition: none; }
}

/* --- print --------------------------------------------------------------- */
@media print {
  .hero { min-height: 0; }
  .hero-media, .marquee, .tile-video { display: none; }
  body { background: #fff; color: #000; }
}
