/* ==========================================================================
   Nevelskyiart — cinematic dark
   Near-black ground, heavy uppercase display type, saturated orange accent.
   ========================================================================== */

/* Single-weight family: declared at 400 so the browser never synthesises a
   faux-bold on top of an already-black face. */
@font-face {
  font-family: "Archivo Black";
  src: url("fonts/archivo-black.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ground */
  --ink-900: #050505;   /* deepest — footer, scrims */
  --ink-800: #0C0C0C;   /* page */
  --ink-700: #141414;   /* raised panel */
  --ink-600: #1A1A1A;   /* input wells, hover */

  /* hairlines */
  --line:        #242424;
  --line-strong: #363636;

  /* type */
  --bone:   #FFFFFF;
  --bone-2: #B0B0B0;
  --bone-3: #757575;

  /* accent */
  --accent:      #FF7A18;
  --accent-hi:   #FF9440;
  --accent-soft: rgba(255, 122, 24, 0.14);
  --accent-line: rgba(255, 122, 24, 0.40);
  --on-accent:   #140800;   /* text sitting on the orange fill */

  --danger: #E4796B;
  --good:   #7FC69A;

  /* type stacks */
  --display: "Archivo Black", "Segoe UI", ui-sans-serif, system-ui,
             "Helvetica Neue", Arial, sans-serif;
  --sans:  ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto,
           "Helvetica Neue", Arial, sans-serif;

  /* rhythm */
  --shell:   1220px;
  --gutter:  clamp(1.25rem, 5vw, 4rem);
  --section: clamp(5.5rem, 13vw, 11rem);

  --radius:    8px;
  --radius-lg: 14px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------------- reset -- */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: var(--ink-800);
  color: var(--bone);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* The rule above is an author style, so it outranks the browser's
   `[hidden] { display: none }` and would silently break the attribute
   on <img> and <video>. Restore it. */
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -100px; left: var(--gutter); z-index: 200;
  background: var(--accent); color: var(--on-accent);
  padding: 0.7rem 1.1rem; font-weight: 600; border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* film grain over the whole page */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- layout -- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  z-index: 2;
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; }

/* --------------------------------------------------------------- typography */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow__num {
  font-family: var(--display);
  font-size: 0.9em;
  opacity: 0.55;
}

/* Wide enough for the display headline; `.section__lede` re-narrows itself
   to a readable measure below. */
.section__head { max-width: min(100%, 64rem); margin-bottom: clamp(3rem, 6vw, 5rem); }

.section__head--split {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: none;
  align-items: end;
}
@media (min-width: 900px) {
  .section__head--split { grid-template-columns: 1fr minmax(0, 34ch); }
  .section__head--split .section__lede { margin-top: 0; padding-bottom: 0.4rem; }
}

.section__title {
  margin-top: 1.1rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 1.2rem + 3.2vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

.section__lede {
  margin-top: 1.5rem;
  max-width: 52ch;
  color: var(--bone-2);
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem);
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  --btn-line: var(--line-strong);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--on-accent);
  --btn-line: var(--accent);
  font-weight: 700;
}
.btn--primary:hover { --btn-bg: var(--accent-hi); --btn-line: var(--accent-hi); }

.btn--ghost:hover { --btn-line: var(--accent); --btn-fg: var(--accent); }

.btn--sm { padding: 0.65rem 1.1rem; font-size: 0.72rem; }

.btn__arrow, .btn__play {
  width: 1.05em; height: 1.05em;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}
.btn__play { fill: currentColor; stroke: none; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* Before scroll the bar is transparent and sits over the hero photograph —
   this keeps the wordmark and nav legible against it. Fades out once the
   solid stuck background takes over. */
.masthead::before {
  content: "";
  position: absolute; inset: 0 0 auto; z-index: -1;
  height: 180%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.55), rgba(5, 5, 5, 0));
  transition: opacity 0.3s var(--ease);
}

.masthead.is-stuck {
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}
.masthead.is-stuck::before { opacity: 0; }

.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding-block: 1.15rem;
}

.wordmark {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--display); font-size: 0.98rem;
  text-transform: uppercase; letter-spacing: 0.005em;
}
.wordmark__mark {
  width: 1.5rem; height: 1.05rem; border-radius: 2px;
  background: var(--accent);
  clip-path: polygon(0 0, 62% 0, 62% 28%, 100% 6%, 100% 94%, 62% 72%, 62% 100%, 0 100%);
}

.nav { display: flex; gap: clamp(1.1rem, 3vw, 2.4rem); }
.nav a {
  position: relative;
  font-family: var(--sans); font-weight: 600;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone-2);
  padding-block: 0.3rem;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--bone); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* -------------------------------------------------------------------- hero */

.section--hero {
  min-height: min(96svh, 1040px);
  display: flex; align-items: center;
  padding-top: clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}

/* --- hero backdrop -------------------------------------------------------
   The frame fills the whole section edge-to-edge, then gets pushed back
   under the type by three stacked passes: a filter grade on the image, a
   charcoal colour tint, and a set of directional scrims.
   ------------------------------------------------------------------------ */

.hero-media {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden;
  background: var(--ink-900) url("hero/hero-blur.jpg") center / cover no-repeat;
}

.hero-media__img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* pushed right so the left third under the headline stays quiet cobblestone */
  object-position: 62% 50%;
  filter: brightness(0.52) saturate(0.5) contrast(1.08);
}

/* drags the warm daylight frame into the site's charcoal gamut */
.hero-media__tint {
  position: absolute; inset: 0;
  background: var(--ink-800);
  opacity: 0.5;
  mix-blend-mode: color;
}

.hero-media__scrim {
  position: absolute; inset: 0;
  background:
    /* under the masthead, so the nav links hold up before scroll */
    linear-gradient(180deg, rgba(5, 5, 5, 0.85) 0%, rgba(5, 5, 5, 0) 28%),
    /* under the headline column */
    linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.55) 42%, rgba(5, 5, 5, 0) 78%),
    /* seamless hand-off into section 02 */
    linear-gradient(180deg, rgba(12, 12, 12, 0) 62%, var(--ink-800) 96%);
}

.section--hero .shell { position: relative; z-index: 2; }

@media (max-width: 900px) {
  /* text runs full width here, so the left scrim has to cover everything */
  .hero-media__img { object-position: 50% 50%; }
  .hero-media__scrim {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.2) 32%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.86) 0%, rgba(5, 5, 5, 0.7) 60%, rgba(5, 5, 5, 0.55) 100%),
      linear-gradient(180deg, rgba(12, 12, 12, 0) 58%, var(--ink-800) 95%);
  }
}

/* Wide enough that the display headline keeps its two intended lines;
   the paragraph below re-narrows itself to a readable measure. */
.hero { max-width: 72rem; }

.hero__title {
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.1rem + 6.6vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.022em;
  text-transform: uppercase;
  /* explicit <br> sets the breaks; `balance` fought it and split the
     headline across four lines. Plain wrapping still folds safely on
     narrow screens. */
}
/* Director credit above the title, film title-card style: sized off the
   headline's own em so it scales with the fluid clamp above. */
.hero__name {
  display: block;
  margin-bottom: 0.42em;
  color: var(--accent);
  font-size: 0.26em;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

/* No italic: Archivo Black ships upright only, so the browser would fake
   the slant. The second line separates by weight of colour instead. */
.hero__title-line {
  display: inline-block;
  color: var(--bone-2);
}

.hero__sub {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  max-width: 54ch;
  color: var(--bone-2);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.24rem);
  line-height: 1.68;
  text-wrap: pretty;
}

.hero__actions {
  margin-top: clamp(2.2rem, 4vw, 3rem);
  display: flex; flex-wrap: wrap; gap: 0.9rem;
}

.hero__stats {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  /* glass, so the frame stays faintly readable through the bar */
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero__stat { padding: 1.5rem 1.6rem; border-left: 1px solid rgba(255, 255, 255, 0.08); }
.hero__stat:first-child { border-left: 0; }
.hero__stat dt {
  font-family: var(--sans); font-weight: 600;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone-3);
}
.hero__stat dd {
  margin-top: 0.55rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.hero__stat .unit { font-size: 0.55em; color: var(--bone-2); }

@media (max-width: 640px) {
  .hero__stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .hero__stat:first-child { border-top: 0; }
}

/* ------------------------------------------------------- about — ledger table */

.ledger {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-700);
  overflow: hidden;
}

.ledger__row { display: grid; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .ledger__row { grid-template-columns: 1fr 1fr; }
}

.ledger__row--head {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 122, 24, 0.04);
}
.ledger__row--head .ledger__cell {
  padding-block: 1.1rem;
  font-family: var(--sans); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}

.ledger__cell { padding: clamp(1.6rem, 3.2vw, 2.75rem); }

/* vertical rule between the two columns */
@media (min-width: 900px) {
  .ledger__cell + .ledger__cell { border-left: 1px solid var(--line); }
}
@media (max-width: 899px) {
  .ledger__row--head { display: none; }
  .ledger__cell + .ledger__cell { border-top: 1px solid var(--line); }
}

/* left column — principles */
.principles { counter-reset: principle; }
.principle {
  counter-increment: principle;
  padding-block: 1.35rem;
  border-top: 1px dashed var(--line);
}
.principle:first-child { padding-top: 0; border-top: 0; }
.principle:last-child { padding-bottom: 0; }

.principle__title {
  display: flex; gap: 0.85rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.16rem);
  line-height: 1.24;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.principle__title::before {
  content: counter(principle, decimal-leading-zero);
  flex: none;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding-top: 0.5em;
}
.principle__body {
  margin-top: 0.5rem;
  padding-left: 2.05rem;
  color: var(--bone-2);
  font-size: 0.95rem;
  line-height: 1.62;
  text-wrap: pretty;
}

/* right column — skills matrix */
.matrix {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.1rem);
}
@media (min-width: 560px) and (max-width: 899px) {
  .matrix { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .matrix { grid-template-columns: 1fr 1fr; }
}

.matrix__label {
  font-family: var(--sans); font-weight: 600;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone-3);
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.matrix__list { margin-top: 0.85rem; display: grid; gap: 0.5rem; }
.matrix__list li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.925rem;
  line-height: 1.5;
  color: var(--bone-2);
}
.matrix__list li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 5px; height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ------------------------------------------------------------ portfolio grid */

.grid {
  display: grid;
  gap: clamp(1.25rem, 2.4vw, 1.85rem);
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.card__inner {
  height: 100%;
  display: flex; flex-direction: column;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.card__inner:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -28px rgba(0, 0, 0, 0.9);
}

.card__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--ink-900);
  cursor: pointer;
}

/* Play badge, so the still reads as clickable rather than decorative.
   Drawn as a background image — no extra markup in each card. */
.card__frame::after {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Ccircle cx='30' cy='30' r='29' fill='%230E0F11' fill-opacity='0.68' stroke='%23FFFFFF' stroke-opacity='0.28'/%3E%3Cpath d='M24 19l17 11-17 11z' fill='%23EDE8DE'/%3E%3C/svg%3E") center / 3.75rem no-repeat;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
}
.card__inner:hover .card__frame::after,
.card__frame:focus-within::after {
  opacity: 1;
  transform: none;
}
.card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}
.card__inner:hover .card__img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.06);
}

.card__badge {
  position: absolute; left: 0.85rem; top: 0.85rem;
  padding: 0.32rem 0.6rem;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--sans); font-weight: 600;
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bone-2);
}

.card__body {
  display: flex; flex-direction: column;
  flex: 1;
  padding: clamp(1.25rem, 2.4vw, 1.65rem);
}

.card__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.05rem + 0.42vw, 1.38rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-transform: uppercase;
}

.card__meta {
  margin-top: 0.6rem;
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.55rem;
  font-family: var(--sans); font-weight: 600;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bone-3);
}
.card__meta .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--line-strong);
}

.card__desc {
  margin-top: 0.9rem;
  margin-bottom: 1.4rem;
  color: var(--bone-2);
  font-size: 0.925rem;
  line-height: 1.58;
  text-wrap: pretty;
}

/* `margin-top: auto` pins the button to the card floor, so cards of unequal
   text length still line their buttons up across the row. */
.card .btn--play {
  margin-top: auto;
  align-self: stretch;
  padding: 0.85rem 1.1rem;
  border-color: var(--line-strong);
  color: var(--bone);
}
.card .btn--play:hover {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
}

/* ----------------------------------------------------------------- contact */

.section--contact { background: linear-gradient(180deg, transparent, rgba(255, 122, 24, 0.03)); }

.contact {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}
@media (min-width: 940px) {
  .contact { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}

.form {
  padding: clamp(1.5rem, 3.2vw, 2.6rem);
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 1.5rem;
}

.field { display: grid; gap: 0.55rem; }

.field__label {
  font-family: var(--sans); font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone-3);
}

.field__input {
  width: 100%;
  padding: 0.95rem 1.05rem;
  background: var(--ink-600);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--bone);
  font-size: 1rem;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}
.field__input::placeholder { color: #6B6B6B; }
.field__input:hover { border-color: var(--line-strong); }
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  background: #1F1F1F;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field__input--area { resize: vertical; min-height: 8.5rem; line-height: 1.6; }

.field.is-invalid .field__input { border-color: var(--danger); }
.field.is-invalid .field__input:focus { box-shadow: 0 0 0 3px rgba(228, 121, 107, 0.14); }

.field__error {
  min-height: 0;
  color: var(--danger);
  font-size: 0.82rem;
  line-height: 1.4;
}
.field__error:empty { display: none; }

.field__foot {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
}
.field__count {
  margin-left: auto;
  font-family: var(--sans); font-weight: 600;
  font-size: 0.7rem;
  color: var(--bone-3);
  font-variant-numeric: tabular-nums;
}

.honeypot {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.form__foot {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 1rem 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.form__note { color: var(--bone-3); font-size: 0.82rem; }

.btn--submit[aria-busy="true"] { opacity: 0.65; pointer-events: none; }

.form__status {
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 0.9rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-600);
}
.form__status:empty { display: none; }
.form__status.is-ok     { color: var(--good);   border-color: rgba(127, 198, 154, 0.35); }
.form__status.is-error  { color: var(--danger); border-color: rgba(228, 121, 107, 0.35); }
.form__status.is-info   { color: var(--bone-2); }

/* contact aside */
.aside {
  padding: clamp(1.5rem, 3.2vw, 2.2rem);
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.aside__title {
  font-family: var(--sans); font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.aside__steps { margin-top: 1.15rem; display: grid; gap: 1rem; }
.aside__steps li {
  display: flex; gap: 0.85rem;
  color: var(--bone-2);
  font-size: 0.92rem; line-height: 1.55;
}
.aside__steps span {
  flex: none;
  font-family: var(--sans); font-weight: 600; font-size: 0.7rem;
  color: var(--bone-3); padding-top: 0.28em;
}
.aside__divider { height: 1px; background: var(--line); margin-block: 1.8rem; }

/* Deliberately not the display face: an email address in all-caps reads
   as a typo. */
.aside__email {
  display: inline-block;
  margin-top: 1.05rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.18rem);
  letter-spacing: -0.005em;
  color: var(--bone);
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 2px;
  /* long address must never punch out of the panel on narrow screens */
  overflow-wrap: anywhere;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.aside__email:hover { color: var(--accent); border-color: var(--accent); }

/* --- social icons --- */

.socials {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.social {
  display: grid;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  color: var(--bone-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
              background 0.25s var(--ease), transform 0.25s var(--ease);
}
.social:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.social:active { transform: translateY(0); }

.social svg {
  width: 1.15rem; height: 1.15rem;
  fill: currentColor;
}
/* Instagram is drawn as outlines rather than a solid glyph. Selector has to
   out-rank `.social svg` above, or the shapes render as a filled blob. */
.social svg.social__stroke {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social svg.social__stroke .social__dot { fill: currentColor; stroke: none; }

.aside__links { margin-top: 1.6rem; display: grid; gap: 0.7rem; font-size: 0.92rem; }
.aside__links a {
  color: var(--bone);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.aside__links a:hover { color: var(--accent); border-color: var(--accent); }
.aside__muted { color: var(--bone-3); }

/* ------------------------------------------------------------------ footer */

.footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  background: var(--ink-900);
}
.footer__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 2.4rem;
  font-family: var(--sans); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--bone-3);
}

/* ------------------------------------------------------------------- modal */

.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
}
.modal[hidden] { display: none; }

.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(3, 3, 3, 0.86);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.modal.is-open .modal__scrim { opacity: 1; }

.modal__dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: 92svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--ink-700);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 1);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }

.modal__close {
  position: absolute; right: 0.85rem; top: 0.85rem; z-index: 3;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  background: rgba(5, 5, 5, 0.8);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease);
}
.modal__close:hover { background: var(--accent); border-color: var(--accent); }
.modal__close svg {
  width: 1rem; height: 1rem;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
}
.modal__close:hover svg { stroke: var(--on-accent); }

/* Sits left of the close button. Hidden by default and revealed from JS only
   where the Fullscreen API actually exists — iOS Safari cannot full-screen an
   arbitrary element, so there it stays hidden and rotating serves instead. */
.modal__fs {
  position: absolute; right: 3.5rem; top: 0.85rem; z-index: 3;
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  background: rgba(5, 5, 5, 0.8);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease);
}
.modal__fs:hover { background: var(--accent); border-color: var(--accent); }
.modal__fs svg {
  width: 1rem; height: 1rem;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.modal__fs:hover svg { stroke: var(--on-accent); }

/* In fullscreen the 16:9 box must give way to the whole screen, otherwise the
   player keeps its letterboxed strip in the middle of a black page. */
.modal__stage:fullscreen {
  aspect-ratio: auto;
  width: 100vw; height: 100vh;
  border-bottom: 0;
}

.modal__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* Stacked rather than stacked-in-flow: only one layer is ever visible, but
   absolute positioning keeps a mis-toggled layer from displacing the others. */
.modal__poster, .modal__video, .modal__embed {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.modal__poster, .modal__video { object-fit: cover; }
.modal__embed { border: 0; background: var(--ink-900); }

.modal__overlay {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center;
  gap: 1.1rem;
  padding: 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(5,5,5,0.35), rgba(5,5,5,0.85));
}
.modal__overlay[hidden] { display: none; }
.modal__overlay-text {
  font-family: var(--sans); font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bone-2);
}

.modal__body { padding: clamp(1.4rem, 3vw, 2.2rem); }
.modal__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.45rem, 1.2rem + 1.25vw, 2.1rem);
  line-height: 1.02; letter-spacing: -0.015em;
  text-transform: uppercase;
}
.modal__meta {
  margin-top: 0.7rem;
  font-family: var(--sans); font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone-3);
}
.modal__logline {
  margin-top: 1.15rem;
  max-width: 58ch;
  color: var(--bone-2);
  font-size: 1.02rem; line-height: 1.65;
  text-wrap: pretty;
}

/* On a phone every pixel of width is width the video can use: a 16:9 frame in
   portrait is only ~56% as tall as it is wide, so side padding costs real
   picture. Drop the inset and let the dialog fill the screen. */
@media (max-width: 640px) {
  .modal { padding: 0; align-content: stretch; }
  .modal__dialog {
    width: 100%;
    max-height: 100svh;
    border-radius: 0;
    border-left: 0; border-right: 0;
  }
}

body.is-locked { overflow: hidden; }

/* ---------------------------------------------------------- scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------- print */

@media print {
  .masthead, .grain, .modal, .btn, .skip-link, .hero-media { display: none !important; }
  body { background: #fff; color: #000; }
  .section { border-color: #ccc; padding-block: 2rem; }
}
