/* DYDAKTIC site styles
   Depth is drawn, not cast: no box-shadow anywhere. Corners are square.
   Compositions are asymmetric and left-weighted. */

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

a:active {
  color: var(--accent-active);
}

p {
  margin: 0;
}

p + p {
  margin-top: calc(1em * var(--leading-body));
}

:focus-visible {
  outline: var(--line-rule) solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: var(--on-gold);
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  background: var(--gold);
  color: var(--on-gold);
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* ---------- Type ---------- */
.display-1,
.display-2,
.heading,
.subheading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.display-1 {
  font-size: var(--text-display-1);
  line-height: var(--leading-display);
}

.display-2 {
  font-size: var(--text-display-2);
  line-height: var(--leading-display);
}

.heading {
  font-size: var(--text-heading);
  line-height: var(--leading-heading);
}

.subheading {
  font-size: var(--text-subheading);
  font-weight: 500;
  line-height: var(--leading-heading);
}

.eyebrow {
  display: block;
  margin: 0 0 var(--space-3);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: var(--tracking-wordmark);
  line-height: 1.4;
  text-transform: uppercase;
}

.lede {
  font-size: var(--text-lede);
  line-height: 1.5;
  max-width: var(--measure);
}

.body {
  max-width: var(--measure);
}

.body-sm {
  font-size: var(--text-body-sm);
  max-width: var(--measure);
}

.muted {
  color: var(--ink-muted);
}

.quote {
  margin: 0;
  padding-left: var(--space-6);
  border-left: var(--line-rule) solid var(--accent);
  max-width: var(--measure);
}

.quote p {
  font-size: var(--text-quote);
  font-style: italic;
  line-height: var(--leading-quote);
}

.quote footer {
  margin-top: var(--space-4);
}

.label {
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  line-height: 1.4;
  text-transform: uppercase;
}

.caption {
  font-family: var(--font-display);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--ink-muted);
}

.rule {
  width: var(--space-12);
  height: var(--line-rule);
  margin: 0;
  border: 0;
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: var(--space-3) var(--space-6);
  border: var(--line-hair) solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.button--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-gold);
}

.button--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-gold);
}

.button--primary:active {
  background: var(--accent-active);
  border-color: var(--accent-active);
  color: var(--on-gold);
}

.button--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}

.button--outline:hover {
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

.button--outline:active {
  border-color: var(--accent-active);
  color: var(--accent-active);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-100);
  border-bottom: var(--line-hair) solid var(--hairline);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  min-height: 4.5rem;
  padding-block: var(--space-3);
}

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

.wordmark img {
  /* The cut carries its own clear space; 190px wide sets the letters at ~160px. */
  width: 190px;
  margin-left: calc(-1 * var(--space-4));
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding-block: var(--space-2);
  color: var(--ink);
  border-bottom: var(--line-rule) solid transparent;
}

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

.site-nav a[aria-current="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 40em) {
  .site-header .container {
    justify-content: flex-start;
  }
  .site-nav {
    width: 100%;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--surface-000);
  color: var(--ink);
}

.hero__plate {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
}

/* The light study: a 9:16 portrait in a hard-edged frame that fills the
   hero's height on the right. The poster is the clip's first frame; the video
   fades in over it only once it is actually playing, so a missing or slow
   file never shows a black frame. */
.hero__motion-frame {
  position: relative;
  margin: 0;
  justify-self: end;
  align-self: stretch;
  height: 100%;
  min-height: 34rem;
  aspect-ratio: 9 / 16;
  max-width: 100%;
  overflow: hidden;
  background: var(--surface-000);
  border: var(--line-hair) solid var(--hairline);
  border-radius: var(--radius-none);
}

.hero__motion-poster,
.hero__motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  /* Grade, part one: warm the clip's neutral grey and lift it slightly so
     the multiply layer below has highlights to colour. */
  filter: sepia(0.4) contrast(1.06) brightness(1.06);
}

/* Grade, part two: a gold-bright layer in multiply. White highlights become
   gold-bright, blacks stay black, mid-tones settle at stone. Swap the colour
   for var(--gold) for a deeper grade, or delete this rule if the source clip
   is regraded. */
.hero__motion-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-bright);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero__motion {
  opacity: 0;
  transition: opacity 1200ms ease;
}

.hero__motion.is-playing {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero__motion {
    display: none;
  }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, var(--surface-000) 0%, var(--surface-000) 22%, var(--scrim) 48%, rgba(0, 0, 0, 0.15) 78%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to top, var(--surface-000) 0%, rgba(0, 0, 0, 0) 40%);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-12);
  padding-block: var(--space-16);
  min-height: min(88vh, 54rem);
  align-items: stretch;
}

.hero__content {
  align-self: center;
  max-width: 42rem;
  padding-block: var(--space-8);
}

.hero__lockup {
  width: clamp(240px, 20vw, 264px);
  margin-left: calc(-1 * var(--space-6));
  margin-bottom: var(--space-6);
}

.hero .display-1 {
  margin-bottom: var(--space-6);
  text-wrap: pretty;
}

.hero__line {
  display: block;
}

@media (min-width: 56.0625em) {
  /* Each sentence holds one line; the size is tuned so the longer line fits
     the left column at the container's maximum width. */
  .hero .display-1 {
    font-size: clamp(1.875rem, 3.75vw - 0.125rem, 2.875rem);
  }
  .hero__line {
    white-space: nowrap;
  }
}

.hero .lede {
  color: var(--ink);
  margin-bottom: var(--space-8);
}

@media (max-width: 56em) {
  .hero .container {
    grid-template-columns: 1fr;
    /* Head room: the top of the clip stays clear so the artist's head is
       never behind the lockup or the heading. */
    padding-block: clamp(15rem, 40vh, 26rem) var(--space-16);
    min-height: min(92vh, 60rem);
  }
  .hero__content {
    align-self: end;
    padding-block: 0;
  }
  /* The wordmark is already in the nav directly above, and the gold mark
     must not sit on the mid-tone clip, so the lockup steps out here. */
  .hero__lockup {
    display: none;
  }
  /* The portrait clip takes over as the plate on portrait screens. The frame
     leaves the grid and covers the hero; the still plate stays underneath. */
  .hero__motion-frame {
    position: absolute;
    inset: 0;
    z-index: -2;
    justify-self: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border: 0;
    background: transparent;
  }
  .hero__motion-poster,
  .hero__motion {
    object-position: 50% 0%;
  }
  .hero__scrim {
    background:
      linear-gradient(to top, var(--surface-000) 0%, var(--surface-000) 18%, var(--scrim) 48%, rgba(0, 0, 0, 0.25) 75%, rgba(0, 0, 0, 0.1) 100%);
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--space-16);
  border-top: var(--line-hair) solid var(--hairline);
}

.section__head {
  margin-bottom: var(--space-10);
}

.section__head .heading + .lede,
.section__head .heading + .body {
  margin-top: var(--space-4);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-12);
  align-items: start;
}

.split--text-heavy {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

@media (max-width: 56em) {
  .split,
  .split--text-heavy {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

.plate {
  background: var(--surface-200);
  border: var(--line-hair) solid var(--hairline);
  border-radius: var(--radius-none);
}

.stack > * + * {
  margin-top: var(--space-6);
}

/* ---------- Listen: YouTube embed ---------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-000);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video iframe:focus-visible {
  outline-offset: -3px;
}

/* ---------- Platform and social link rows ---------- */
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-row a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding-block: var(--space-2);
  color: var(--accent);
  border-bottom: var(--line-hair) solid transparent;
}

.link-row a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

.link-row a:active {
  color: var(--accent-active);
}

.link-row svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
  flex: none;
}

.link-row[hidden] {
  display: none;
}

/* ---------- About ---------- */
.portrait {
  border: var(--line-hair) solid var(--hairline);
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
}

@media (max-width: 56em) {
  .portrait {
    max-width: 28rem;
  }
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: var(--space-8) var(--space-6);
}

.card .eyebrow {
  margin-bottom: var(--space-4);
}

.card .subheading {
  margin-bottom: var(--space-3);
}

@media (max-width: 56em) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Connect ---------- */
.connect__email {
  font-family: var(--font-serif);
  font-size: var(--text-lede);
  border-bottom: var(--line-hair) solid var(--accent);
}

.connect__email:hover {
  border-bottom-color: var(--accent-hover);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: var(--space-16) var(--space-10);
  border-top: var(--line-hair) solid var(--hairline);
  color: var(--ink-muted);
}

.site-footer .container {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--space-10) var(--space-12);
  align-items: start;
}

.site-footer__lockup {
  width: 180px;
  margin-left: calc(-1 * var(--space-4));
}

.site-footer__line {
  font-size: var(--text-body);
  color: var(--ink);
  max-width: 34ch;
}

.site-footer__links {
  display: grid;
  gap: var(--space-8);
}

.site-footer__links .link-row a {
  color: var(--ink);
}

.site-footer__links .link-row a:hover {
  color: var(--accent-hover);
}

.site-footer__meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding-top: var(--space-6);
  border-top: var(--line-hair) solid var(--hairline);
}

@media (max-width: 56em) {
  .site-footer .container {
    grid-template-columns: 1fr;
  }
}
