:root {
  --ink: #101418;
  --ink-2: #181e24;
  --cream: #e6e3d4;
  --cream-dim: #a8ab9e;
  --sage: #8a9a82;
  --amber: #f2b06f;
  --line: rgba(230, 227, 212, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--ink);
  color: var(--cream-dim);
  overflow-x: hidden;
  line-height: 1.6;
}

.serif {
  font-family: "Fraunces", serif;
}

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

img {
  display: block;
}

::selection {
  background: rgba(242, 176, 111, 0.3);
  color: var(--cream);
}

/* Film grain */
.grain::after {
  content: "";
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 50;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* Scroll progress */
#progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0%;
  background: var(--amber);
  z-index: 60;
}

/* Nav */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(16, 20, 24, 0.82);
  backdrop-filter: blur(12px);
  border-color: var(--line);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.logo-mark {
  height: 40px;
  width: auto;
}

/* Wordmark — wayspring, with the amber italic i */
.wordmark {
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: 0.01em;
  line-height: 1;
}
.wordmark em {
  font-style: italic;
  color: var(--amber);
  padding-right: 0.04em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.nav-links a {
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--cream);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.social-icon {
  color: var(--cream-dim);
  transition: color 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
}
.social-icon:hover {
  color: var(--amber);
  transform: translateY(-2px);
}

/* Status dots */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-amber {
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(242, 176, 111, 0.5);
  animation: pulse 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.dot-sage {
  background: var(--sage);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 176, 111, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(242, 176, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 176, 111, 0); }
}

/* Hero — typographic, no photography */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7.5rem 2rem 2.5rem;
  background:
    radial-gradient(ellipse 60% 45% at 85% 8%, rgba(242, 176, 111, 0.07), transparent),
    radial-gradient(ellipse 55% 50% at 10% 90%, rgba(138, 154, 130, 0.08), transparent);
}
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* The mark, center stage — path draws in, sun arrives last */
.hero-mark {
  width: clamp(96px, 12vw, 140px);
  height: auto;
  margin-bottom: 2.25rem;
}
.mark-way {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawWay 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}
@keyframes drawWay {
  to { stroke-dashoffset: 0; }
}
.mark-sun {
  opacity: 0;
  transform-origin: 82px 14px;
  transform: scale(0.4);
  animation: sunRise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.8s forwards;
}
@keyframes sunRise {
  to { opacity: 1; transform: scale(1); }
}
.hero-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.85;
  margin-bottom: 1.75rem;
}
.hero-title {
  font-size: clamp(3rem, 5.5vw, 5rem);
  color: var(--cream);
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  max-width: 900px;
}
.hero-title em {
  font-style: italic;
  color: var(--amber);
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--cream-dim);
  max-width: 540px;
  margin-bottom: 3rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.hero-ticker {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  width: 100%;
  margin: 3.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
  transition: color 0.3s;
}
.hero-ticker:hover {
  color: var(--cream);
}
.hero-ticker-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.7rem;
  color: var(--amber);
}
.hero-ticker-text {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

/* Sections */
.section {
  padding: 6rem 2rem;
}
.container {
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
}
.sec-num {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: var(--amber);
}
.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.sec-side {
  margin-left: auto;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
}
.sec-link {
  transition: color 0.3s;
}
.sec-link:hover {
  color: var(--amber);
}
.arrow {
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
a:hover .arrow {
  transform: translateX(5px);
}
@media (max-width: 767px) {
  .sec-side {
    display: none;
  }
}

/* Bench (Now) */
.bench {
  display: flex;
  flex-direction: column;
}
.bench-row {
  display: flex;
  align-items: baseline;
  gap: 1.75rem;
  padding: 2rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease;
}
.bench-row:hover {
  background: rgba(230, 227, 212, 0.02);
}
.bench-row .dot {
  position: relative;
  top: -2px;
}
.bench-body h3 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.35rem;
}
.bench-body p {
  max-width: 560px;
  font-size: 0.95rem;
}
.bench-meta {
  margin-left: auto;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
  white-space: nowrap;
}
@media (max-width: 767px) {
  .bench-row {
    flex-wrap: wrap;
  }
  .bench-meta {
    margin-left: calc(8px + 1.75rem);
    width: 100%;
  }
}

/* Badges */
.card-badges {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.card-cta {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}
.card-cta.muted {
  color: var(--cream-dim);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 0.3rem 0.8rem;
  white-space: nowrap;
}
.badge .dot {
  width: 6px;
  height: 6px;
}
.badge-amber {
  color: var(--ink);
  background: var(--amber);
  border-color: var(--amber);
  font-weight: 600;
}
.badge-live {
  color: var(--sage);
  border-color: rgba(138, 154, 130, 0.4);
}
.badge-wip {
  color: var(--amber);
  border-color: rgba(242, 176, 111, 0.4);
}

/* Works — alternating editorial rows, image beside the story */
.feat-rows {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.feat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .feat-row {
    grid-template-columns: 4fr 6fr;
    gap: 4rem;
  }
  /* even rows: image moves to the right column, so the tracks swap too */
  .feat-row:nth-child(even) {
    grid-template-columns: 6fr 4fr;
  }
  .feat-row:nth-child(even) .feat-media {
    order: 2;
  }
}
.feat-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: border-color 0.4s ease;
}
@media (max-width: 899px) {
  .feat-media {
    aspect-ratio: 2 / 1;
  }
}
a.feat-row:hover .feat-media {
  border-color: rgba(242, 176, 111, 0.5);
}
.feat-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
a.feat-row:hover .feat-media img {
  transform: scale(1.045);
  filter: saturate(1.05);
}
.feat-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feat-body h3 {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.85rem;
  transition: color 0.3s ease;
}
a.feat-row:hover .feat-body h3 {
  color: var(--amber);
}
.feat-body p {
  max-width: 480px;
  margin-bottom: 1.75rem;
}
.feat-row.is-wip .feat-media img {
  filter: saturate(0.6) brightness(0.85);
}
.feat-row.is-wip .feat-body h3 {
  color: var(--cream-dim);
}

/* Films & shorts sub-headers */
.sub-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}
.sub-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.sub-head-gap {
  margin-top: 4rem;
}
.sub-label {
  color: var(--cream-dim);
}

/* Video grid (Films) */
.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.video-card:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 176, 111, 0.5);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(230, 227, 212, 0.05);
}
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  filter: saturate(0.92);
}
.video-card:hover .video-thumb img {
  transform: scale(1.05);
  filter: saturate(1.05);
}
.video-thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: rgba(16, 20, 24, 0.35);
}
.video-card:hover .play {
  opacity: 1;
}
.play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-circle svg {
  margin-left: 3px;
}
.video-body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.video-title {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--cream);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-date {
  margin-top: auto;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

/* Shorts grid — vertical cards */
.shorts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .shorts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .shorts-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}
.short-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.short-card:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 176, 111, 0.5);
}
.short-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: rgba(230, 227, 212, 0.05);
}
.short-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  filter: saturate(0.92);
}
.short-card:hover .short-thumb img {
  transform: scale(1.05);
  filter: saturate(1.05);
}
.short-thumb .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: rgba(16, 20, 24, 0.35);
}
.short-card:hover .play {
  opacity: 1;
}
.short-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--cream-dim);
  margin: 0.8rem 0.9rem 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}
.short-card:hover .short-title {
  color: var(--cream);
}

/* Skeleton loading */
.skeleton {
  pointer-events: none;
}
.skeleton .video-thumb,
.skeleton .short-thumb,
.sk-line {
  background: linear-gradient(100deg, rgba(230, 227, 212, 0.05) 40%, rgba(230, 227, 212, 0.1) 50%, rgba(230, 227, 212, 0.05) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
}
.sk-line {
  height: 0.9rem;
  border-radius: 4px;
}
.sk-line.short {
  width: 45%;
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}

.video-fallback {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  border: 1px dashed var(--line);
  border-radius: 1.25rem;
}
.video-fallback p {
  margin-bottom: 1.75rem;
}

/* Notes */
.notes {
  display: flex;
  flex-direction: column;
}
.note-row {
  display: flex;
  align-items: baseline;
  gap: 2.5rem;
  padding: 2.25rem 0.5rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease;
}
.note-row:hover {
  background: rgba(230, 227, 212, 0.02);
}
.note-date {
  flex-shrink: 0;
  width: 90px;
}
.note-body h3 {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.4rem;
}
.note-body p {
  max-width: 640px;
  font-size: 0.95rem;
}
.note-row .badge {
  margin-left: auto;
}
@media (max-width: 767px) {
  .note-row {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .note-row .badge {
    margin-left: 0;
    order: -1;
  }
  .note-date {
    width: auto;
  }
}
.notes-hint {
  margin-top: 2rem;
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(168, 171, 158, 0.7);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.btn-solid {
  background: var(--amber);
  color: var(--ink);
  border: 1px solid var(--amber);
  transition: background 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-solid:hover {
  background: #f5c08a;
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1px solid rgba(230, 227, 212, 0.3);
  color: var(--cream);
  background: transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.btn-ghost:hover {
  background: rgba(230, 227, 212, 0.08);
  border-color: rgba(230, 227, 212, 0.5);
}

/* Footer */
.footer {
  padding: 6rem 2rem 3rem;
  background: var(--ink-2);
  margin-top: 4rem;
}
.footer-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 5rem;
}
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
.footer-tagline {
  color: var(--cream-dim);
  font-size: 1.125rem;
}
.footer-cols {
  display: flex;
  gap: 5rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
}
.footer-col a {
  transition: color 0.3s;
}
.footer-col a:hover {
  color: var(--cream);
}
.footer-heading {
  margin-bottom: 0.5rem;
  color: rgba(230, 227, 212, 0.45);
}
.mt-4 {
  margin-top: 1rem;
}
.hairline {
  height: 1px;
  background: var(--line);
  max-width: 1280px;
  margin: 0 auto 3rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.num {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  color: rgba(230, 227, 212, 0.6);
  text-transform: uppercase;
}

/* Reveals */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .grain::after { animation: none !important; }
  .dot-amber { animation: none !important; }
  .mark-way { animation: none !important; stroke-dashoffset: 0; }
  .mark-sun { animation: none !important; opacity: 1; transform: scale(1); }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 767px) {
    .nav-links {
        display: none;
    }
    .wordmark {
        font-size: 1.15rem;
    }
}
