@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/barlow-condensed-800.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: Outfit;
  src: url("/assets/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f1e8;
  --ink: #101926;
  --mute: #4a5260;
  --line: #c7c2b8;
  --blue: #153fc2;
  --blue-hover: #0d2e9e;
  --night: #0d1829;
  --night-text: #f5f1e8;
  --night-dim: #c6d0e2;
  --pad: clamp(1rem, 4.5vw, 4.5rem);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: Outfit, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--body); }
body, figure, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.shorts-section :focus-visible, .footer :focus-visible { outline-color: #a6c1ff; }
.wrap { width: min(100% - var(--pad) * 2, 86rem); margin-inline: auto; }
.skip { position: absolute; top: 1rem; left: 1rem; z-index: 5; padding: .7rem 1rem; background: var(--paper); transform: translateY(-300%); }
.skip:focus { transform: none; }
svg { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.masthead { min-height: 5.8rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; font-size: .91rem; font-weight: 650; line-height: 1.02; letter-spacing: -.025em; text-decoration: none; }
.wordmark img { flex: none; width: 2.65rem; height: 2.65rem; }
.masthead nav { display: flex; gap: clamp(.85rem, 3.1vw, 2.55rem); }
.masthead nav a { padding-block: .45rem; font-weight: 520; text-decoration: none; }
.masthead nav a:hover { color: var(--blue); }
.homepage .masthead-shell { background: #0c1321; color: var(--night-text); }
.homepage .masthead { min-height: 4.85rem; border-color: #344055; }
.homepage .masthead nav a:hover { color: #adc4ff; }
.homepage .masthead :focus-visible, .hero :focus-visible { outline-color: #a6c1ff; }

.hero-stage { background: #0c1321; color: var(--night-text); }
.hero { position: relative; isolation: isolate; min-height: min(42.5rem, 64vw); display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; padding-block: clamp(3.2rem, 6vw, 6.3rem); }
.hero-copy { z-index: 2; width: max-content; max-width: 100%; }
.hero-kind { color: #d8c7ad; font-weight: 520; margin-bottom: 1.05rem; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; }
.hero h1 { font-size: clamp(4rem, 10.4vw, 10.5rem); line-height: .765; text-transform: uppercase; letter-spacing: -.021em; color: #fcf1df; }
.hero-description { max-width: 25rem; margin-block: 1.65rem 1.45rem; color: #dbdfea; font-size: clamp(1.05rem, 1.65vw, 1.24rem); }
.primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 3.1rem; padding: .66rem 1.08rem; background: var(--blue); color: var(--paper); font-weight: 600; text-decoration: none; transition: background .18s ease; }
.primary:hover { background: var(--blue-hover); }
.hero .primary { background: #7695ff; color: #0a132b; font-weight: 700; }
.hero .primary:hover { background: #a2b7ff; }
.primary svg, .text-link svg { transition: transform .18s ease; }
.primary:hover svg, .text-link:hover svg { transform: translateX(.2rem); }
.hero-figure { position: absolute; inset: clamp(1.35rem, 3.1vw, 2.9rem) 0 clamp(1.35rem, 3.1vw, 2.9rem) auto; width: 74%; }
.hero-image { position: absolute; inset: 0; overflow: hidden; clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%); background: #15192a; }
.hero-image img { width: 100%; height: 116%; max-width: none; position: absolute; top: -8%; object-fit: cover; object-position: 65% 46%; transform: translate3d(0, var(--parallax-y, 0px), 0); }
.hero-image::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, #0c1321 0%, #0c1321d9 16%, #0c13213e 48%, #0c132107 72%), linear-gradient(0deg, #0c1321f0 0%, #0c1321a0 14%, transparent 44%); }
.hero-figure figcaption { position: absolute; inset: auto 1.2rem 1.2rem auto; display: flex; gap: 1.05rem; align-items: center; line-height: 1.13; }
.hero-figure figcaption strong { display: block; font-size: 1.14rem; color: #fcf1df; }
.hero-figure figcaption div span { display: block; margin-top: .17rem; color: #d5d9e5; }
.hero-play { min-height: 2.75rem; display: inline-flex; gap: .45rem; align-items: center; padding: .55rem .77rem; border: 1px solid #f5f1e887; background: #101926c7; color: var(--paper); font-weight: 560; text-decoration: none; white-space: nowrap; transition: background .18s ease; }
.hero-play:hover { background: var(--blue); }
.hero-play svg { width: 1rem; height: 1rem; }

.shorts-section { background: #191f2d; color: var(--night-text); padding-block: clamp(2.8rem, 5.9vw, 6.4rem); border-top: 1px solid #303a4e; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.65rem; }
.section-heading h2, .about h2 { font-size: clamp(3.4rem, 6.5vw, 7.2rem); line-height: .87; letter-spacing: -.017em; text-transform: uppercase; }
.section-heading p { color: var(--night-dim); line-height: 1.48; }
.short-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.85rem, 1.55vw, 1.5rem); }
.short-card:nth-child(even) { margin-top: 1.05rem; }
.short-card h3 { margin-top: .62rem; font-size: clamp(1.35rem, 2.8vw, 2.65rem); line-height: .98; }
.short-card h3 a { text-decoration-thickness: 1px; text-underline-offset: .14em; text-decoration-color: transparent; transition: text-decoration-color .16s ease; }
.short-card h3 a:hover { text-decoration-color: currentColor; }
.short-card p { margin-top: .28rem; color: var(--night-dim); line-height: 1.4; }
.player { position: relative; background: #131d2c; }
.player.portrait { aspect-ratio: 9 / 16; }
.player.landscape { aspect-ratio: 854 / 480; }
.player video { display: block; width: 100%; height: 100%; object-fit: contain; color: var(--paper); }
.clip-play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; padding: 0; background: transparent; color: var(--paper); border: none; cursor: pointer; }
.clip-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip-play svg { position: relative; width: 2.9rem; height: 2.9rem; padding: .62rem; background: #101926c4; border: 1px solid #f5f1e8b3; border-radius: 50%; transition: transform .16s ease, background .16s ease; }
.clip-play:hover svg { transform: scale(1.1); background: var(--blue); }
.clip-time { position: absolute; right: .56rem; bottom: .52rem; pointer-events: none; background: #101926df; color: var(--paper); padding: .13rem .42rem; font-size: .82rem; font-variant-numeric: tabular-nums; }
.player[data-active] .clip-time, .player:not([data-ready]) .clip-time { display: none; }
.player[data-ready]:not([data-active]) video { pointer-events: none; }

.projects { padding-block: clamp(3.2rem, 7.5vw, 8rem); }
.projects .section-heading { border-bottom: 1px solid var(--line); padding-bottom: 1.18rem; margin-bottom: 0; }
.project-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(1.25rem, 4vw, 4rem); }
.project-card { display: grid; grid-template-columns: 1.28fr 1fr; gap: clamp(1.2rem, 5.2vw, 5rem); align-items: center; padding-block: clamp(1.4rem, 3.5vw, 3.4rem); border-bottom: 1px solid var(--line); }
.project-card:first-child { grid-column: 1 / -1; grid-template-columns: 1.55fr 1fr; }
.project-card:not(:first-child) { grid-template-columns: 1fr; gap: 1.2rem; align-content: start; }
.project-image { display: block; overflow: hidden; background: var(--night); }
.project-image img { width: 100%; height: auto; aspect-ratio: 1.85; object-fit: cover; transition: transform .27s ease; }
.project-image:hover img { transform: scale(1.025); }
.project-type { font-size: 1rem; color: var(--blue); font-weight: 600; }
.project-copy h3 { font-size: clamp(2.75rem, 5.35vw, 5.5rem); line-height: .88; letter-spacing: -.008em; margin-block: .38rem .65rem; }
.project-copy p:not(.project-type) { max-width: 32rem; color: var(--mute); }
.text-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: .83rem; color: var(--blue); font-weight: 620; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.text-link svg { width: 1.05rem; height: 1.05rem; }
.about { border-top: 1px solid var(--line); padding-block: clamp(2.6rem, 5.2vw, 5.5rem); background: #ebe5d9; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.about h2 { font-size: clamp(2.9rem, 5.7vw, 6rem); }
.about p { max-width: 37rem; font-size: 1.09rem; color: var(--mute); }
.about p + p { margin-top: .85rem; }
.footer { background: var(--night); color: var(--night-text); }
.footer-inner { min-height: 7.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.channel { display: inline-flex; align-items: center; gap: .38rem; color: var(--night-dim); text-decoration: none; border: 1px solid #52617a; padding: .55rem .72rem; }
.channel:hover { color: var(--night-text); border-color: #a6c1ff; }
.channel svg { width: 1rem; height: 1rem; }

.watch-main { padding-block: clamp(1.75rem, 4vw, 4.75rem) clamp(3.4rem, 7vw, 7rem); min-height: 68vh; }
.back-link { display: inline-block; color: var(--blue); text-underline-offset: .2em; margin-bottom: 1.5rem; }
.watch-layout { display: grid; align-items: start; column-gap: clamp(1rem, 4.7vw, 5.1rem); row-gap: 1.5rem; }
.watch-layout.portrait { grid-template-columns: 1fr minmax(16rem, 25rem); grid-template-rows: auto 1fr; }
.watch-layout.portrait .watch-screen { grid-column: 2; grid-row: 1 / 3; justify-self: stretch; }
.watch-layout.landscape { grid-template-columns: minmax(0, 1.55fr) minmax(13rem, .75fr); }
.watch-layout.landscape .watch-copy { grid-column: 1 / -1; }
.watch-copy h1, .error-page h1 { font-size: clamp(3.4rem, 8vw, 7.7rem); line-height: .9; letter-spacing: -.015em; margin: .4rem 0 .8rem; }
.watch-copy > p:last-child { max-width: 38rem; color: var(--mute); font-size: 1.08rem; }
.watch-note h2, .watch-related h2 { font-size: 2.35rem; line-height: 1; margin-bottom: .55rem; }
.watch-note p { max-width: 32rem; color: var(--mute); }
.watch-related { margin-top: 2.7rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.watch-related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .65rem 1.55rem; }
.watch-related a { color: var(--blue); display: inline-flex; gap: .36rem; align-items: center; text-underline-offset: .2em; }
.watch-related svg { width: 1rem; height: 1rem; }
.error-page { padding-block: 4rem 7rem; }
.error-page p { margin-bottom: 1rem; }

@media (max-width: 65rem) {
  .hero-figure { width: 76%; }
}
@media (max-width: 47rem) {
  .masthead, .homepage .masthead { min-height: 4.2rem; }
  .masthead nav { gap: clamp(.65rem, 3vw, 1.4rem); }
  .masthead nav a { font-size: .94rem; }
  .wordmark img { width: 2.15rem; height: 2.15rem; }
  .wordmark { gap: .43rem; font-size: .85rem; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 1.7rem; padding-block: 2.35rem 1.6rem; }
  .hero h1 { font-size: clamp(4.5rem, 14.5vw, 7.45rem); }
  .hero-description { margin-block: 1.24rem 1rem; }
  .hero-figure { position: relative; width: 100%; inset: auto; }
  .hero-image { position: relative; aspect-ratio: 1.58; clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%); }
  .hero-image img { top: -12%; height: 124%; object-position: 50% 49%; }
  .hero-image::after { background: linear-gradient(0deg, #0c132143, transparent 50%); }
  .hero-figure figcaption { position: static; justify-content: space-between; gap: .55rem; margin-top: .67rem; }
  .hero-figure figcaption strong { font-size: 1.02rem; }
  .hero-figure figcaption div span { font-size: .85rem; }
  .hero-play { font-size: .87rem; }
  .short-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.35rem; }
  .short-card:nth-child(even) { margin-top: 0; }
  .project-list { grid-template-columns: 1fr; }
  .project-card:first-child { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 1rem; }
  .watch-layout.portrait, .watch-layout.landscape { grid-template-columns: 1fr; }
  .watch-layout.portrait .watch-screen { grid-column: 1; grid-row: 2; width: min(100%, 25rem); }
  .watch-layout.landscape .watch-copy { grid-column: 1; }
}
@media (max-width: 34rem) {
  .section-heading { display: block; }
  .section-heading p { margin-top: .67rem; }
  .short-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .short-card h3 { font-size: 1.72rem; }
  .footer-inner { min-height: 6.2rem; }
}
@media (max-width: 22rem) {
  .hero h1 { font-size: 4.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-image img { transform: none; }
  *, *::before, *::after { transition: none !important; }
}
