/* ============================================================
   abMotion — Video Editing & Motion Design
   ============================================================ */

:root {
  /* palette — sampled from the reference frame */
  --void:  #000000;
  --ink:   #04060a;
  --deep:  #0a2130;
  --steel: #2f86b4;
  --bloom: #f4f8fa;
  --ash:   #a2aeb8;
  --ash-d: #5c6871;

  --line:      rgba(244, 248, 250, 0.13);
  --line-soft: rgba(244, 248, 250, 0.07);

  /* type */
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* layout */
  --rail: 84px;
  --gutter: clamp(20px, 5vw, 76px);
  --maxw: 1320px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

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

/* holds the #lumakey filter only — must stay in the document, never displayed */
/* the source clip for a luma-keyed canvas: still decoding, never visible */
.lumakey-src {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bloom);
  font-family: var(--display);
  font-variation-settings: 'wdth' 100;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

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

:focus-visible {
  outline: 1px solid var(--bloom);
  outline-offset: 4px;
}

::selection { background: #596980; color: var(--bloom); }

/* ─────────────────────────── Background ─────────────────────────── */

#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  display: block;
}

/* Keeps white type legible where the bloom is brightest */
.scrim {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(95deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.48) 34%, rgba(0,0,0,0.24) 62%, rgba(0,0,0,0.40) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0) 24%, rgba(0,0,0,0) 72%, rgba(0,0,0,0.55) 100%);
}

/* CSS-only stand-in when WebGL is unavailable */
.grain-fallback { display: none; }

body.no-webgl #bg { display: none; }

body.no-webgl {
  background:
    radial-gradient(58% 46% at 16% 62%, rgba(244,248,250,0.50) 0%, rgba(244,248,250,0) 62%),
    radial-gradient(52% 44% at 84% 34%, rgba(47,134,180,0.52) 0%, rgba(47,134,180,0) 66%),
    radial-gradient(44% 38% at 72% 88%, rgba(31,110,158,0.40) 0%, rgba(31,110,158,0) 68%),
    var(--void);
  background-attachment: fixed;
}

body.no-webgl .grain-fallback {
  display: block;
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  opacity: 0.34;
  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.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainshift 0.9s steps(4) infinite;
}

@keyframes grainshift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -3%); }
  75%  { transform: translate(-2%, -2%); }
  100% { transform: translate(0, 0); }
}

/* ─────────────────────────── Sequence rail ─────────────────────────── */

.rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail);
  z-index: 40;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  pointer-events: none;
  border-right: 1px solid var(--line-soft);
  background: linear-gradient(to right, rgba(0,0,0,0.42), rgba(0,0,0,0));
}

.rail__track {
  position: relative;
  width: 1px;
  height: min(46vh, 380px);
  background: var(--line);
}

.rail__ticks {
  position: absolute;
  inset: 0;
  left: -4px;
  width: 9px;
}

.rail__ticks i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--line);
}

.rail__markers { position: absolute; inset: 0; }

.rail__marker {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.rail__marker::before {
  content: '';
  width: 7px;
  height: 7px;
  margin-left: -3px;
  border: 1px solid rgba(244, 248, 250, 0.34);
  transform: rotate(45deg);
  background: var(--ink);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.rail__marker span {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash-d);
  white-space: nowrap;
  transition: color 0.4s var(--ease);
}

.rail__marker.is-past::before { background: var(--steel); border-color: var(--steel); }
.rail__marker.is-past span { color: var(--ash); }

/* the travelled part of the track lights up — no marker, just the line */
.rail__fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: linear-gradient(
    to bottom,
    rgba(244, 248, 250, 0.12) 0%,
    rgba(120, 180, 220, 0.65) 55%,
    var(--bloom) 100%
  );
  box-shadow:
    0 0 6px rgba(244, 248, 250, 0.55),
    0 0 16px rgba(120, 180, 220, 0.45),
    0 0 34px rgba(47, 134, 180, 0.35);
}

@media (min-width: 1080px) {
  .rail { display: flex; }
}

/* thin scroll progress line — the mobile stand-in for the rail */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 60;
  background: var(--line-soft);
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--bloom);
  box-shadow: 0 0 10px rgba(244, 248, 250, 0.6);
}

@media (min-width: 1080px) { .progress { display: none; } }

/* ─────────────────────────── Top bar ─────────────────────────── */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px var(--gutter);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.topbar.is-stuck {
  background: rgba(4, 6, 10, 0.62);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom-color: var(--line-soft);
}

@media (min-width: 1080px) { .topbar { padding-left: calc(var(--rail) + 28px); } }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  width: 21px;
  height: 21px;
  transition: transform 0.6s var(--ease);
}

.brand:hover .brand__mark { transform: rotate(90deg); }

.brand__word {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  color: var(--ash);
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--bloom);
  transition: width 0.4s var(--ease);
}

.nav a:hover { color: var(--bloom); }
.nav a:hover::after { width: 100%; }

@media (max-width: 560px) {
  .nav { gap: 14px; font-size: 0.6rem; letter-spacing: 0.16em; }
  .nav a:not([href="#work"]):not([href="#contact"]) { display: none; }
}

/* ─────────────────────────── Shared type ─────────────────────────── */

.kicker {
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
}

.kicker .dot { color: var(--ash-d); margin: 0 4px; }

.nowrap { white-space: nowrap; }

/* "styles/categories" is held on one line, so it has to shrink on narrow screens */
@media (max-width: 720px) {
  .section--caps .h2 { font-size: clamp(1.45rem, 7.2vw, 2.6rem); }
}

.h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  font-variation-settings: 'wdth' 118;
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

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

@media (min-width: 1080px) {
  .wrap { padding-left: calc(var(--rail) + 28px); }
}

.head { margin-bottom: clamp(44px, 6vw, 78px); }

/* ─────────────────────────── Sections ─────────────────────────── */

.section {
  position: relative;
  padding: clamp(80px, 9.5vw, 140px) 0;
}

.section--hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 clamp(38px, 6vh, 64px);
}

/* ─────────────────────────── Hero ─────────────────────────── */

.frame {
  position: absolute;
  inset: clamp(74px, 9vh, 108px) var(--gutter) clamp(74px, 9vh, 100px);
  pointer-events: none;
}

@media (min-width: 1080px) { .frame { left: calc(var(--rail) + 28px); } }

/* on small screens the hero fills the frame — pull the marks to the edges */
@media (max-width: 640px) {
  .frame { inset: 82px 14px 18px; }
  .frame__c { width: 16px; height: 16px; }
}

.frame__c {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 0 solid rgba(244, 248, 250, 0.22);
  opacity: 0;
  animation: frame-in 1.1s var(--ease) forwards;
}

.frame__c--tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; animation-delay: 0.15s; }
.frame__c--tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; animation-delay: 0.24s; }
.frame__c--bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; animation-delay: 0.33s; }
.frame__c--br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; animation-delay: 0.42s; }

@keyframes frame-in {
  from { opacity: 0; transform: scale(1.9); }
  to   { opacity: 1; transform: scale(1); }
}

.hero__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 1080px) {
  .hero__inner { padding-left: calc(var(--rail) + 28px); }
}

/* the abMotion ident above the headline — screen blend drops the black,
   leaving only the white artwork over the background */
.hero__mark {
  /* the lockup now carries the "abMotion · portfolio" line, so it needs more
     room than the bare mark did for that text to stay legible */
  width: clamp(200px, 26vw, 372px);
  height: auto;
  /* cropped to its exact artwork bounds, so it aligns flush with the headline */
  margin: 0 0 clamp(4px, 1vw, 14px) 0;
  pointer-events: none;
}

.hero__title {
  margin: 0 0 clamp(34px, 5vw, 56px);
  font-size: clamp(2.35rem, 7.05vw, 6.9rem);
  font-variation-settings: 'wdth' 116;
  font-weight: 200;
  line-height: 0.94;
  letter-spacing: -0.026em;
  text-transform: uppercase;
}

.line {
  display: block;
  overflow: hidden;
}

.line__in { display: block; }

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 60px);
  padding-top: clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line-soft);
}

.lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(0.98rem, 1.35vw, 1.16rem);
  font-weight: 300;
  line-height: 1.62;
  color: var(--ash);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn:hover { transform: translateY(-2px); border-color: rgba(244, 248, 250, 0.4); }

/* the hero link is type only — no pill, no fill */
.btn--bare {
  padding: 13px 0;
  border-color: transparent;
  color: var(--bloom);
}

.btn--bare::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.45s var(--ease);
}

.btn--bare:hover {
  border-color: transparent;
  transform: none;
}

.btn--bare:hover::after { width: 100%; }

/* ─────────────────────────── Work ─────────────────────────── */

/* Full-bleed abMotion marquee across the top of the section. Screen blend
   drops the black so only the white artwork sits on the background; the mask
   softens both ends, harder on the left so it clears the rail. */
.workline {
  position: relative;
  width: 100%;
  /* matches the encoded 1920x248 exactly — a fixed height plus object-fit:cover
     was slicing the top and bottom off on wide screens */
  aspect-ratio: 1920 / 248;
  margin-bottom: clamp(34px, 5vw, 72px);
  overflow: hidden;
  pointer-events: none;
}

/* The mask lives on the video, not the wrapper: a mask on the wrapper would
   create a stacking context and isolate the blend, leaving a black band. */
.workline__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.72;

  /* left stops are absolute so the clearance stays tied to the rail (84px)
     rather than growing with the viewport */
  -webkit-mask-image: linear-gradient(to right,
    transparent 0px, rgba(0, 0, 0, 0.4) 96px, #000 210px, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right,
    transparent 0px, rgba(0, 0, 0, 0.4) 96px, #000 210px, #000 93%, transparent 100%);
}

@media (max-width: 1079px) {
  /* no rail on narrow screens, so the left edge needs far less clearance */
  .workline__video {
    -webkit-mask-image: linear-gradient(to right,
      transparent 0%, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(to right,
      transparent 0%, #000 7%, #000 93%, transparent 100%);
  }
}


.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: clamp(18px, 2.2vw, 30px);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card__media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #05080c;
  border: 1px solid var(--line-soft);
  cursor: pointer;
  transition: border-color 0.5s var(--ease);
}

.card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* scaled up so the blur has material to bleed into instead of soft edges */
  transform: scale(1.09);
  filter: saturate(0.55) contrast(1.02) brightness(0.62) blur(7px);
  transition: transform 0.9s var(--ease), filter 0.65s var(--ease);
}

.card:hover .card__media { border-color: rgba(244, 248, 250, 0.26); }

.card:hover .card__media video {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.02) brightness(1) blur(0px);
}

/* cool tint sitting over the thumbnail, lifted on hover */
.card__tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(4, 10, 18, 0.55) 0%, rgba(4, 10, 18, 0.2) 45%, rgba(4, 10, 18, 0.72) 100%),
    linear-gradient(160deg, rgba(20, 52, 82, 0.5), rgba(4, 8, 14, 0.55));
  transition: opacity 0.6s var(--ease);
}

.card:hover .card__tint { opacity: 0; }

/* what the piece is about, over a scrim, until you hover and it plays */
/* title sits at the top of the thumbnail, play cue at the bottom */
.card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 15px 15px 13px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
  transition: opacity 0.45s var(--ease);
}

.card__label {
  color: var(--bloom);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85);
}

.card__cue {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  color: var(--bloom);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85);
}

.card:hover .card__overlay { opacity: 0; }

.work__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(30px, 4vw, 52px);
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color 0.3s var(--ease);
}

.work__more:hover { color: var(--bloom); }

.work__more-arrow { transition: transform 0.35s var(--ease); }

.work__more:hover .work__more-arrow { transform: translate(3px, -3px); }

/* the title sits opposite the play control */
.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

/* on desktop the poster itself is the control, so this is redundant */
.card__open {
  display: none;
  flex: none;
  align-items: center;
  gap: 8px;
  appearance: none;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--bloom);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.card__tri {
  width: 0;
  height: 0;
  border-left: 7px solid currentColor;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  transition: transform 0.3s var(--ease);
}

.card__open:hover .card__tri { transform: translateX(3px); }

.card__title {
  margin: 0 0 10px;
  font-size: 1.16rem;
  font-variation-settings: 'wdth' 108;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.card__desc {
  margin: 0 0 16px;
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ash);
  max-width: 34ch;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 5px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash-d);
}

/* On phones the stacked posters are too tall — collapse each piece to a
   description with its own play control. */
@media (max-width: 720px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--line-soft);
  }

  .card {
    gap: 0;
    padding: 22px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .card__media { display: none; }

  .card__open { display: inline-flex; }

  .card__head { align-items: center; }

  .card__title { margin-bottom: 0; }

  .card__desc {
    margin: 10px 0 14px;
    max-width: none;
  }
}

.card--more .card__media--more {
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 55% at 50% 50%, rgba(47, 134, 180, 0.16) 0%, rgba(47, 134, 180, 0) 70%),
    #05080c;
}

.more__mark {
  width: 62px;
  height: 62px;
  opacity: 0.55;
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}

.card--more:hover .more__mark {
  opacity: 1;
  transform: rotate(90deg);
}

.more__arrow {
  position: absolute;
  right: 16px;
  top: 14px;
  font-size: 1rem;
  color: var(--ash-d);
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}

.card--more:hover .more__arrow { color: var(--bloom); transform: translate(3px, -3px); }

/* ─────────────────────────── Capabilities ─────────────────────────── */

/* Large abMotion stroke animation behind the four rows. Sits under the heading
   and spans the list. Screen-blended so only the strokes show.
   Neither .caps-wrap nor .capsline may take a z-index — that would create a
   stacking context and isolate the blend (see the work marquee note). */
.caps-wrap { position: relative; }

.capsline {
  position: absolute;
  inset: -7% 0 -5%;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}

.capsline__video {
  width: auto;
  height: 118%;
  max-width: none;
  opacity: 0.62;

  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}

/* the rows paint above the backdrop: both positioned, so DOM order decides */
.caps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.cap {
  display: block;
  padding: clamp(26px, 3.4vw, 40px) 0;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.5s var(--ease);
}

/* Blur the background under the row being pointed at. The filter is only
   declared on :hover — an idle blur(0px) still forces a backdrop layer, which
   makes the grain behind it fringe. */
@media (hover: hover) and (min-width: 861px) {
  .cap:hover {
    background: rgba(244, 248, 250, 0.05);
    backdrop-filter: blur(20px) saturate(1.08);
    -webkit-backdrop-filter: blur(20px) saturate(1.08);
  }
}

.cap__body h3 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  font-variation-settings: 'wdth' 112;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

.cap__body p {
  margin: 0;
  max-width: 56ch;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.62;
  color: var(--ash);
}



/* ─────────────────────────── About ─────────────────────────── */

/* copy sits left, clear of the bloom; the mark takes the lit side */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(0, 0.34fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}

.about__right { order: 1; }
.about__left  { order: 2; text-align: right; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about__right { order: 2; }
  .about__left  { order: 1; text-align: left; }
}

.about__mark {
  width: clamp(64px, 9vw, 112px);
  height: auto;
  margin-left: auto;
  opacity: 0.28;
}

@media (max-width: 860px) { .about__mark { display: none; } }

.about__lead {
  margin: 0 0 24px;
  font-size: clamp(1.4rem, 3.2vw, 2.35rem);
  font-variation-settings: 'wdth' 108;
  font-weight: 200;
  line-height: 1.22;
  letter-spacing: -0.018em;
}

.about__body {
  margin: 0 0 clamp(38px, 5vw, 56px);
  max-width: 48ch;
  font-size: clamp(0.96rem, 1.25vw, 1.08rem);
  font-weight: 300;
  line-height: 1.72;
  color: var(--ash);
}

/* ─────────────────────────── Contact ─────────────────────────── */

.section--contact { padding-bottom: clamp(70px, 9vw, 120px); }

.contact { position: relative; }

/* the abMotion bracket animation, sized to frame the content rather than sit on it */
.contact__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(122%, 1180px);
  height: auto;
  opacity: 0.42;

  pointer-events: none;
}

.contact__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 92px) 0;
  text-align: center;
}

.contact__title {
  margin: 0 0 clamp(34px, 5vw, 54px);
  font-size: clamp(2.2rem, 6.6vw, 5.4rem);
  font-variation-settings: 'wdth' 114;
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.028em;
  text-transform: uppercase;
}

.contact__mail {
  display: inline-block;
  position: relative;
  font-family: var(--mono);
  font-size: clamp(0.86rem, 2.1vw, 1.32rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  padding-bottom: 8px;
}

.contact__mail::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--bloom);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.contact__mail:hover::after { transform: scaleX(0); transform-origin: left; }

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  margin: clamp(44px, 6vw, 70px) 0 0;
  padding: 0;
  list-style: none;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color 0.3s var(--ease);
}

.social a span { transition: transform 0.35s var(--ease); }
.social a:hover { color: var(--bloom); }
.social a:hover span { transform: translate(3px, -3px); }

@media (max-width: 720px) {
  .contact__inner { padding: clamp(64px, 16vw, 110px) 0; }
  .section--contact .kicker { margin-bottom: clamp(44px, 12vw, 72px); }
  .contact__title { margin-bottom: clamp(48px, 12vw, 72px); }
  .social { margin-top: clamp(56px, 14vw, 84px); }
}

/* ─────────────────────────── Footer ─────────────────────────── */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px var(--gutter) 34px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash-d);
}

@media (min-width: 1080px) {
  .footer { padding-left: calc(var(--rail) + 28px); }
}

/* ─────────────────────────── Reveals ─────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* headline lines wipe up from their mask rather than fading */
.line__in {
  opacity: 0;
  transform: translateY(104%);
  transition: opacity 0.2s linear, transform 1.05s var(--ease);
  transition-delay: var(--delay, 0s);
}

.line__in.is-in {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────── Reduced motion ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal, .line__in { opacity: 1; transform: none; }
  .frame__c { opacity: 1; }
  .scrollcue__line::after { display: none; }
}

/* ─────────────────────────── Fullscreen player ─────────────────────────── */

.player {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vw, 48px);
  background: rgba(2, 4, 7, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.player[hidden] { display: none; }

.player.is-open { opacity: 1; }

.player__video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: #000;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}

.player__close {
  position: absolute;
  top: clamp(14px, 3vw, 30px);
  right: clamp(14px, 3vw, 34px);
  z-index: 2;
  appearance: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  color: var(--bloom);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.player__close:hover {
  background: var(--bloom);
  color: var(--ink);
}

.player__title {
  position: absolute;
  top: clamp(18px, 3vw, 34px);
  left: clamp(14px, 3vw, 34px);
  margin: 0;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
}

@media (max-width: 560px) {
  .player__title { display: none; }
}

/* A landscape piece in a portrait tile: letterbox it over a blurred blow-up of
   itself, so the tile is full without cropping the framing to an extreme zoom. */
.card--wide .card__media {
  background: #05080c var(--fill) center / cover no-repeat;
}

.card--wide .card__media video { object-fit: contain; }

/* Tighten the gap between sections on phones — section interiors are untouched */
@media (max-width: 720px) {
  .section:not(.section--hero) { padding: 56px 0; }
}

/* Phones have no side margin to escape the bloom, so the backdrop sits further
   back there — keeps body copy legible where the light crosses it. */
@media (max-width: 720px) {
  .scrim {
    background:
      linear-gradient(95deg, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.64) 38%, rgba(0,0,0,0.50) 68%, rgba(0,0,0,0.62) 100%),
      linear-gradient(to bottom, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0.18) 24%, rgba(0,0,0,0.18) 74%, rgba(0,0,0,0.60) 100%);
  }
}

@media (max-width: 720px) {
  .capsline__video { height: 78%; opacity: 0.5; }
}
