:root {
  --bg-dark: #1f1f1f;
  --bg-light: #d9d9d9;
  --fg-on-dark: #c8c8c8;
  --fg-on-light: #0a0a0a;
  --accent: #d4ff3a;
  --grid-line: rgba(200, 200, 200, 0.22);
  --grid-line-dark: rgba(20, 20, 20, 0.22);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --header-h: 60px;
  --pad-x: 28px;
}

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

html,
body {
  height: 100%;
}

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

body {
  background: var(--bg-dark);
  color: var(--fg-on-dark);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: default;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  z-index: 50;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #f5f5f5;
}

.site-header > * {
  pointer-events: auto;
}

.logo {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.05em;
  justify-self: start;
}

.cursor-tracker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  display: flex;
  gap: 22px;
  justify-self: end;
  margin-right: 16px;
  font-variant-numeric: tabular-nums;
}

.cursor-axis [data-cursor-x],
.cursor-axis [data-cursor-y] {
  display: inline-block;
  min-width: 4ch;
  text-align: right;
}

.menu-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  background: #f5f5f5;
  color: #0a0a0a;
  padding: 8px 14px;
  mix-blend-mode: normal;
  justify-self: end;
}

/* -------------------------------------------------------------------------- */
/* Hero                                                                       */
/* -------------------------------------------------------------------------- */

.hero {
  position: relative;
  /* Just enough extra scroll to drive the cylinder rise + text fade — kept
     short so the works section comes up quickly. */
  height: 140svh;
  background: var(--bg-dark);
}

.hero__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero__inner {
  position: relative;
  /* Sandwiched between the two cylinder canvases — far half renders behind
     this (z 0), near half renders in front (z 2). The cylinder visually
     wraps around the headline. */
  z-index: 1;
  padding: calc(var(--header-h) + 4px) var(--pad-x) 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* Stack pinned to the top of the hero — title sits up at the top edge. */
  justify-content: flex-start;
  gap: 18px;
  pointer-events: none;
  will-change: opacity;
}

.hero__inner > * {
  pointer-events: auto;
}

.hero__title {
  font-family: var(--font-sans);
  font-weight: 900;
  color: #c8c8c8;
  /* 50% larger than the previous size — single-line "MOTION DESIGNER"
     fills the top of the hero. */
  font-size: clamp(84px, 12.75vw, 240px);
  line-height: 1;
  letter-spacing: -0.025em;
  text-align: center;
  align-self: center;
}

.hero__divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: var(--grid-line);
}

.hero__divider-line {
  display: block;
  height: 1px;
  background: var(--grid-line);
}

.hero__divider-mark {
  display: grid;
  place-items: center;
  color: var(--grid-line);
  transform: translateY(-1px);
}

.hero__meta {
  position: relative;
  padding: 32px 0;
  display: grid;
  place-items: center;
  /* Holds the corner +'s as a framed box around the lede; not stretching
     anymore so the parent's justify-content can center the whole stack. */
  min-height: 180px;
}

.hero__corner {
  position: absolute;
  font-family: var(--font-mono);
  color: var(--grid-line);
  font-size: 14px;
  line-height: 1;
  user-select: none;
}

.hero__corner--tl { top: 0; left: 22%; }
.hero__corner--tr { top: 0; right: 22%; }
.hero__corner--bl { bottom: 0; left: 22%; }
.hero__corner--br { bottom: 0; right: 22%; }

.hero__lede {
  max-width: 340px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.55;
  color: #c0c0c0;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__canvas--back  { z-index: 0; }
.hero__canvas--front { z-index: 2; }

/* -------------------------------------------------------------------------- */
/* Works                                                                      */
/* -------------------------------------------------------------------------- */

.about {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 32px) var(--pad-x) 96px;
  background: var(--bg-light);
  color: var(--fg-on-light);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  grid-template-rows: auto auto;
  gap: 80px 80px;
  align-items: start;
}

.about__title {
  grid-column: 1 / -1;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--fg-on-light);
}

.about__title-line {
  display: block;
}

.about__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 15px;
  line-height: 1.55;
  max-width: 520px;
}

.about__cta {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  line-height: 1.6;
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}

.about__meta {
  display: flex;
  flex-direction: column;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  max-width: 440px;
  margin: 0;
}

.about__meta-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid rgba(20, 20, 20, 0.18);
}

.about__meta-row:last-child {
  border-bottom: 1px solid rgba(20, 20, 20, 0.18);
}

.about__meta-label {
  opacity: 0.5;
  margin: 0;
}

.about__meta-value {
  margin: 0;
  font-weight: 600;
}

.about__meta-value a {
  color: inherit;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.15s ease;
}

.about__meta-value a:hover {
  opacity: 0.65;
}

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

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 5vh 5vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.video-modal[data-open] {
  opacity: 1;
  pointer-events: auto;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.video-modal__video {
  position: relative;
  z-index: 1;
  /* Fit within the padded viewport while preserving the clip's native
     aspect ratio — portrait clips stay portrait, landscape stay landscape. */
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  background: #000;
}

.video-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  color: #0a0a0a;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: transform 0.15s ease;
}
.video-modal__close:hover {
  transform: scale(1.08);
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  :root { --pad-x: 16px; }
  .cursor-tracker { display: none; }
  .hero__corner--tl, .hero__corner--bl { left: 8%; }
  .hero__corner--tr, .hero__corner--br { right: 8%; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about__meta-row { grid-template-columns: 90px 1fr; gap: 16px; }
}
