/* Base: fonts, reset, element defaults, layout primitives */

@font-face {
  font-family: Anton;
  src: url("../fonts/anton-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope-variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-padding-top: var(--header-h);
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
video,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.section--light :focus-visible {
  outline-color: var(--black);
}

::selection {
  background: var(--green);
  color: var(--black);
}

/* Layout primitives */
.container {
  width: min(100% - 2 * var(--gutter), var(--max-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-2xl);
  position: relative;
}

.section--light {
  background: var(--white);
  color: var(--black);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-s);
  top: -100px;
  z-index: 100;
  padding: var(--space-xs) var(--space-s);
  background: var(--green);
  color: var(--black);
  font-weight: 700;
}

.skip-link:focus {
  top: var(--space-s);
}

/* Eyebrow: numbered like a shot list, tracked like the logo's "CREATIVE MEDIA" */
.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-m);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow::after {
  content: "";
  flex: 0 1 6rem;
  height: 1px;
  background: currentcolor;
  opacity: 0.6;
}

.eyebrow__num {
  font-variant-numeric: tabular-nums;
}

.section--light .eyebrow {
  color: var(--black);
}

.section-title {
  font-size: var(--step-4);
  max-width: 16ch;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--white-80);
  max-width: 60ch;
}

.section--light .lede {
  color: var(--black-72);
}

/* Buttons: square corners, black text on green (8.4:1) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 3.25rem;
  padding: 0.85em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn--primary {
  background: var(--green);
  color: var(--black);
}

.btn--primary:hover {
  background: var(--white);
}

.btn--ghost {
  border-color: var(--white-50);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.btn__arrow {
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* Signature: viewfinder corner marks around media */
.vf {
  position: relative;
  padding: var(--space-xs);
  background:
    linear-gradient(var(--green) 0 0) top left / var(--vf-length) var(--vf-weight),
    linear-gradient(var(--green) 0 0) top left / var(--vf-weight) var(--vf-length),
    linear-gradient(var(--green) 0 0) top right / var(--vf-length) var(--vf-weight),
    linear-gradient(var(--green) 0 0) top right / var(--vf-weight) var(--vf-length),
    linear-gradient(var(--green) 0 0) bottom left / var(--vf-length) var(--vf-weight),
    linear-gradient(var(--green) 0 0) bottom left / var(--vf-weight) var(--vf-length),
    linear-gradient(var(--green) 0 0) bottom right / var(--vf-length) var(--vf-weight),
    linear-gradient(var(--green) 0 0) bottom right / var(--vf-weight) var(--vf-length);
  background-repeat: no-repeat;
}

/* Scroll reveal (only active once JS confirms motion is welcome) */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}

.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
