/* ==========================================================================
   Aurowl Studio — redesign
   Aurora-over-night-sky palette (Aurowl = aurora + owl):
   night #0A0D14 · aurora teal #45E0B0 · owl gold #F0B429 · violet #8F7CF5
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0A0D14;            /* night sky */
  --bg-elev: #0E1320;
  --panel: #131A2A;
  --ink: #EEF1F6;           /* starlight */
  --ink-dim: rgba(238, 241, 246, 0.55);
  --ink-faint: rgba(238, 241, 246, 0.32);
  --line: rgba(238, 241, 246, 0.14);
  --accent: #45E0B0;        /* aurora teal — interaction & marks */
  --gold: #F0B429;          /* owl gold — brand anchor (logo) */
  --violet: #8F7CF5;        /* aurora violet — large/decorative only */
  --cta-ink: #10131A;       /* dark ink on gold/teal surfaces */
  --cta-em: #14493C;        /* deep teal italics on the gold CTA */

  --font-display: 'Satoshi', 'Helvetica Neue', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;

  --container-pad: clamp(1.25rem, 4vw, 4rem);
  --section-gap: clamp(6rem, 12vw, 12rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Motion scale — every entrance on the site uses these three durations
     and the same stagger step so the whole site breathes at one tempo. */
  --dur-quick: 0.45s;
  --dur-base: 0.9s;
  --dur-slow: 1.3s;
  --stagger: 90ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, li { list-style: none; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--cta-ink); }

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

.container {
  width: 100%;
  max-width: 100rem;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Film-grain overlay for depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  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='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  /* Static grain: the stepped translate animation repainted a huge fixed
     layer over the WebGL canvas and read as screen flicker. */
}

/* ---------- Reveal system ----------
   .reveal            fade-rise (default)
   .reveal--card      3D tilt-in for grid cards
   .reveal--mask      clip-path unveil for imagery
   [data-split]       word-by-word masked rise for display type (JS wraps words)
   .draw-line         horizontal rule that draws itself in
   Containers with [data-stagger] hand incremental delays to their children. */
.js-motion .reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-slow) var(--ease-expo);
}
.js-motion .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js-motion .reveal--card {
  transform: perspective(1000px) rotateX(9deg) translateY(3.5rem);
  transform-origin: 50% 100%;
}
.js-motion .reveal--card.is-visible {
  transform: perspective(1000px) rotateX(0deg) translateY(0);
}

.js-motion .reveal--mask {
  opacity: 1;
  transform: none;
  clip-path: inset(6% 4% 14% 4% round 22px);
  transition: clip-path var(--dur-slow) var(--ease-expo);
}
.js-motion .reveal--mask.is-visible {
  clip-path: inset(0 0 0 0 round 22px);
}

/* Split display type: JS wraps each word in .split-mask > .split-word */
.split-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.js-motion [data-split] .split-word {
  display: inline-block;
  transform: translateY(115%) rotate(3deg);
  transform-origin: 0 100%;
  transition: transform var(--dur-base) var(--ease-expo);
  transition-delay: var(--split-delay, 0ms);
}
.js-motion [data-split].is-visible .split-word {
  transform: translateY(0) rotate(0deg);
}

/* Self-drawing rules */
.draw-line {
  display: block;
  border: none;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}
.js-motion .draw-line {
  transform: scaleX(0);
  transition: transform var(--dur-slow) var(--ease-expo);
}
.js-motion .draw-line.is-visible { transform: scaleX(1); }

/* ---------- Scroll progress bar ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 140;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Nav hide on scroll down ---------- */
.nav.is-hidden { transform: translateY(-110%); }
body.menu-open .nav.is-hidden { transform: none; }

/* ---------- Aurora glow accents (CSS-only ambient light) ---------- */
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(70px);
  opacity: 0.32;
  will-change: transform;
  animation: glow-drift 26s var(--ease-out) infinite alternate;
}
.glow--teal { background: radial-gradient(circle, rgba(69, 224, 176, 0.5) 0%, rgba(69, 224, 176, 0) 70%); }
.glow--violet { background: radial-gradient(circle, rgba(143, 124, 245, 0.55) 0%, rgba(143, 124, 245, 0) 70%); }
.glow--gold { background: radial-gradient(circle, rgba(240, 180, 41, 0.4) 0%, rgba(240, 180, 41, 0) 70%); }
@keyframes glow-drift {
  from { transform: translate3d(-6%, 4%, 0) scale(1); }
  to { transform: translate3d(6%, -6%, 0) scale(1.18); }
}

/* ---------- Page transitions ---------- */
.js-motion main,
.js-motion .footer {
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}
body.page-leave main,
body.page-leave .footer {
  opacity: 0;
  transform: translateY(-1.2rem);
}

/* ---------- Custom cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; z-index: 300; pointer-events: none; }
  .cursor__dot {
    position: absolute; top: 0; left: 0;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    transform: translate(-50%, -50%);
  }
  .cursor__ring {
    position: absolute; top: 0; left: 0;
    width: 40px; height: 40px; border-radius: 50%;
    border: 1.5px solid rgba(69, 224, 176, 0.5);
    transform: translate(-50%, -50%) scale(1);
    display: flex; align-items: center; justify-content: center;
    transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
      background-color 0.35s, border-color 0.35s;
  }
  .cursor__label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cta-ink);
    opacity: 0;
    transition: opacity 0.25s;
  }
  .cursor.has-label .cursor__ring {
    width: 76px; height: 76px;
    background: var(--gold);
    border-color: var(--gold);
  }
  .cursor.has-label .cursor__label { opacity: 1; }
  .cursor.has-label .cursor__dot { opacity: 0; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.45s, backdrop-filter 0.45s, transform 0.5s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(8, 11, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
/* Keep the burger reachable above the open mobile menu overlay */
body.menu-open .nav {
  z-index: 130;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.9rem, 2vw, 1.4rem) var(--container-pad);
}
.nav__logo-img { height: clamp(2.4rem, 4vw, 3.2rem); width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
.nav__link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  transition: color 0.3s;
  padding: 0.4rem 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cta-ink);
  background: var(--ink);
  padding: 0.6rem 1.5rem;
  border-radius: 99px;
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.nav__cta:hover { background: var(--accent); color: var(--cta-ink); }

.nav__burger {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  z-index: 120;
}
.nav__burger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.nav__burger span:nth-child(1) { top: 17px; }
.nav__burger span:nth-child(2) { top: 25px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--bg-elev);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 7rem var(--container-pad) 3rem;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-expo), visibility 0s 0.7s;
}
.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.7s var(--ease-expo), visibility 0s;
}
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 10vw, 4.5rem);
  line-height: 1.25;
  color: var(--ink);
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out), color 0.3s;
}
.menu.is-open .menu__link { opacity: 1; transform: translateY(0); }
.menu.is-open .menu__link:nth-child(1) { transition-delay: 0.15s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 0.22s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.29s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 0.36s; }
.menu__link:active, .menu__link:hover { color: var(--accent); }
.menu__index {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
}
.menu__mail {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--gold);
}
.menu__meta { color: var(--ink-faint); font-size: 0.85rem; margin-top: 0.4rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 10%, #131B30 0%, var(--bg) 55%);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease 0.2s;
}
.hero__canvas.is-ready { opacity: 1; }
.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,13,20,0.55) 0%, rgba(10,13,20,0) 30%, rgba(10,13,20,0) 62%, rgba(10,13,20,0.92) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
  padding-bottom: clamp(2rem, 4vh, 3.5rem);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.2rem, 15.5vw, 15rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin-left: -0.05em;
}
.hero__title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero__title-line--indent { margin-left: clamp(1rem, 8vw, 9rem); }
.hero__title-word {
  display: inline-block;
  transform: translateY(110%);
  animation: title-rise 1.1s var(--ease-expo) forwards;
}
.hero__title-line--indent .hero__title-word { animation-delay: 0.12s; }
@keyframes title-rise {
  to { transform: translateY(0); }
}
.hero__title-word--outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
.hero__title-mark {
  display: inline-block;
  width: clamp(1.4rem, 4vw, 3.6rem);
  color: var(--accent);
  vertical-align: super;
  margin-left: 0.06em;
  animation: mark-spin 14s linear infinite;
}
@keyframes mark-spin {
  to { transform: rotate(360deg); }
}

.hero__tagline {
  margin-top: clamp(1.8rem, 4vh, 3rem);
  max-width: 34rem;
}
.hero__tag-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink-dim);
}
.hero__tag-line em {
  color: var(--accent); /* the screen — aurora teal */
  font-style: italic;
}
.hero__tag-line:nth-of-type(2) em { color: var(--gold); } /* the scene — owl gold */
.hero__tag-line--strong {
  color: var(--ink);
  font-weight: 700;
}
.hero__tag-line--strong em { color: var(--accent); }

.hero__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2rem, 5vh, 4rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.hero__foot-item {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__foot-scroll { display: flex; align-items: center; gap: 0.6rem; }
.hero__foot-arrow {
  display: inline-block;
  color: var(--accent);
  animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  opacity: 0.8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(0.65rem, 1.4vw, 1.1rem) 0;
  background: var(--bg);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2rem);
  padding-right: clamp(1.1rem, 2vw, 2rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.25vw, 2rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.icon-mark { display: block; flex: none; }
.marquee__mark { width: 0.78em; height: 0.78em; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Section head ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.section-head__mark {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  width: 1em;
  height: 1em;
  line-height: 1;
}
.section-head__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}
.section-head__count {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  color: var(--ink-faint);
  margin-left: auto;
}

/* ---------- Services ---------- */
.services { padding: var(--section-gap) 0; }
.services__list {
  border-top: 1px solid var(--line);
}
.service {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 3rem);
  padding: clamp(1.6rem, 3.5vw, 3rem) 0;
  cursor: default;
}
/* Row separators draw themselves in as each row reveals */
.service::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}
.js-motion .service::after {
  transform: scaleX(0);
  transition: transform var(--dur-slow) var(--ease-expo);
  transition-delay: 0.15s;
}
.js-motion .service.is-visible::after { transform: scaleX(1); }
.service__index {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  color: var(--accent);
  min-width: 2.2rem;
}
.service__body { flex: 1; min-width: 0; }
.service__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6.5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.4s, transform 0.5s var(--ease-out);
}
.service__tags {
  margin-top: 0.6rem;
  font-size: clamp(0.78rem, 1.2vw, 0.95rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.4s;
}
.service__thumb {
  width: clamp(3.6rem, 8vw, 5.5rem);
  height: clamp(3.6rem, 8vw, 5.5rem);
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-out);
}
.service:hover .service__title {
  color: var(--ink);
  transform: translateX(clamp(0.4rem, 1.5vw, 1.2rem));
}
.service:hover .service__tags { color: var(--gold); }
.service:hover .service__thumb { transform: scale(1.08) rotate(-3deg); }

/* Floating cursor preview lives in the shared .hover-preview component
   (see "Floating hover preview" further down); thumbs hide on desktop. */
@media (pointer: fine) and (min-width: 64em) {
  .service__thumb { display: none; }
}

.services__note {
  max-width: 44rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  /* Align with the service titles (index column + row gap) */
  margin-left: calc(2.2rem + clamp(1.2rem, 3vw, 3rem));
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.7;
  color: var(--ink-dim);
}
.services__note-accent {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
}

/* ---------- Projects ---------- */
.projects {
  padding: var(--section-gap) 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.projects__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.project { grid-column: span 12; }
.project__media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel);
  aspect-ratio: 16 / 10;
}
.project--tall .project__media { aspect-ratio: 4 / 4.6; }
.project__media--pad {
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(90% 90% at 50% 110%, rgba(143, 124, 245, 0.20) 0%, rgba(143, 124, 245, 0) 60%),
    var(--panel);
}
.project__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.project__img--contain { object-fit: contain; }
.project__media:hover .project__img { transform: scale(1.045); }
.project__media--static-video:hover .project__img { transform: none; }
.project__media--pad:hover .project__img { transform: scale(1.045) translateY(-0.5rem); }
/* For wide/landscape assets (e.g. logos): match the image's natural ratio
   so it isn't cropped into a tall frame, and keep the card visually lighter */
.project .project__media--natural {
  aspect-ratio: 1.9 / 1;
  max-width: 34rem;
}
.project__media--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  aspect-ratio: auto;
}
.project__image-panel {
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.project__image-panel .project__img { display: block; }

.project__info {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.4rem 0.4rem 0;
}
.project__index {
  font-size: 0.9rem;
  color: var(--accent);
}
.project__text { flex: 1; }
.project__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.project__desc {
  margin-top: 0.35rem;
  max-width: 34rem;
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
  color: var(--ink-dim);
}
.project__arrow {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.35s var(--ease-out);
}
.project:hover .project__arrow { transform: translate(4px, -4px); }

@media (min-width: 48em) {
  .project--tall { grid-column: span 5; }
  .project--wide { grid-column: span 7; }
  .project--balanced { grid-column: span 6; }
  .project--balanced .project__media--natural { max-width: none; }
  .project__media--split {
    aspect-ratio: 1.9 / 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project__media--split .project__image-panel { aspect-ratio: auto; }
  .project:nth-child(even) { margin-top: clamp(2rem, 6vw, 6rem); }
}

/* Video module */
.project__media--video { aspect-ratio: 16 / 9; }
.video-module {
  position: relative;
  width: 100%; height: 100%;
  container-type: inline-size;
}
.video-module__media {
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.video-module__controls {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem 0.7rem;
  border-radius: 99px;
  background: rgba(8, 11, 18, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.video-module:hover .video-module__controls,
.video-module.is-playing .video-module__controls,
.video-module__controls:focus-within {
  opacity: 1;
  transform: translateY(0);
}
@media (hover: none) {
  .video-module__controls { opacity: 1; transform: none; }
}
.video-module__button {
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s;
}
.video-module__button-icon {
  width: 1rem; height: 1rem;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
}
.video-module__icon { width: 100%; height: 100%; }
.video-module__icon--pause,
.video-module__icon--muted { display: none; }
.video-module.is-playing .video-module__icon--play { display: none; }
.video-module.is-playing .video-module__icon--pause { display: block; }
.video-module__button[aria-pressed="true"] .video-module__icon--volume { display: none; }
.video-module__button[aria-pressed="true"] .video-module__icon--muted { display: block; }
.video-module__button:hover { color: var(--gold); }
.video-module__button:focus-visible,
.video-module__seek:focus-visible,
.video-module__volume:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.video-module__button--play {
  background: var(--accent);
  color: var(--cta-ink);
}
.video-module__button--play:hover { background: var(--gold); color: var(--cta-ink); }
.video-module__timeline {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
}
.video-module__seek {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(
    to right,
    var(--gold) 0 var(--video-progress, 0%),
    rgba(238, 241, 246, 0.25) var(--video-progress, 0%) 100%
  );
  outline: none;
  cursor: pointer;
}
.video-module__seek:disabled { cursor: default; opacity: 0.55; }
.video-module__seek::-webkit-slider-thumb,
.video-module__volume::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
}
.video-module__seek::-moz-range-thumb,
.video-module__volume::-moz-range-thumb {
  width: 14px; height: 14px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
}
.video-module__time {
  min-width: 5.5rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.video-module__audio {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
}
.video-module__volume-popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.65rem);
  z-index: 2;
  min-width: 3.5rem;
  padding: 0.65rem 0.55rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(238, 241, 246, 0.14);
  border-radius: 1rem;
  background: rgba(8, 11, 18, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 0.4rem);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s var(--ease-out);
}
.video-module__volume-popover::before {
  content: '';
  position: absolute;
  right: 0;
  bottom: -0.75rem;
  left: 0;
  height: 0.75rem;
}
.video-module__audio:hover .video-module__volume-popover,
.video-module__audio:focus-within .video-module__volume-popover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.video-module__volume-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.video-module__volume {
  width: 3px;
  height: 5.5rem;
  appearance: none;
  -webkit-appearance: none;
  writing-mode: vertical-lr;
  direction: rtl;
  border-radius: 99px;
  background: linear-gradient(
    to top,
    var(--gold) 0 var(--video-volume, 75%),
    rgba(238, 241, 246, 0.25) var(--video-volume, 75%) 100%
  );
  outline: none;
  cursor: pointer;
}

@container (max-width: 30rem) {
  .video-module__controls {
    left: 0.35rem; right: 0.35rem; bottom: 0.35rem;
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
    gap: 0.35rem;
    padding: 0.3rem;
  }
  .video-module__button {
    width: 2.5rem;
    height: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
  }
  .video-module__button-text { display: none; }
  .video-module__button-icon { width: 1.2rem; height: 1.2rem; }
  .video-module__timeline {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem;
  }
  .video-module__seek {
    height: 1.5rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 6px;
  }
  .video-module__seek::-webkit-slider-thumb { width: 20px; height: 20px; }
  .video-module__seek::-moz-range-thumb { width: 20px; height: 20px; }
  .video-module__time {
    min-width: 0;
    font-size: 0.62rem;
  }
}

/* ---------- Quote ---------- */
.quote {
  padding: var(--section-gap) 0;
}
.quote__text {
  max-width: 60rem;
  margin-inline: auto;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-align: center;
}
.quote__text em {
  font-style: italic;
  color: var(--violet); /* aurora tail — large display text only */
}
.quote__word {
  color: var(--ink-faint);
  transition: color 0.5s ease;
}
.quote__word.is-lit { color: inherit; }
.quote__text em .quote__word.is-lit { color: var(--violet); }

/* ---------- Team ---------- */
.team { padding: 0 0 var(--section-gap); }
.team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  max-width: 62rem;
  margin-inline: auto;
}
@media (min-width: 42em) {
  .team__grid { grid-template-columns: 1fr 1fr; }
  .team__card--offset { margin-top: clamp(3rem, 8vw, 7rem); }
}
.team__card { perspective: 800px; }
.team__photo-wrap {
  overflow: hidden;
  border-radius: 22px;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out);
}
.team__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.team__card:hover .team__photo {
  transform: scale(1.04);
}
.team__caption { padding: 1.3rem 0.3rem 0; }
.team__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.team__name::after {
  content: '';
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.25em;
  background: url('../images/icon-mark.svg') center / contain no-repeat;
}
.team__role {
  margin-top: 0.3rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* ---------- CTA ---------- */
.cta {
  background: var(--gold); /* owl gold block — brand anchor moment */
  color: var(--cta-ink);
  padding: var(--section-gap) 0;
  border-radius: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) 0 0;
}
.cta__lines {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7.5vw, 7rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.cta__line { display: block; }
.cta__line--indent { margin-left: clamp(1.5rem, 6vw, 6rem); }
.cta__line--indent2 { margin-left: clamp(3rem, 12vw, 12rem); }
.cta__line em {
  font-style: italic;
  color: var(--cta-em); /* deep teal on gold — 5.5:1 */
}
.cta__mail {
  display: inline-flex;
  align-items: baseline;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  letter-spacing: -0.02em;
  position: relative;
}
.cta__mail-text {
  position: relative;
}
.cta__mail-text::after {
  content: '';
  position: absolute;
  left: 0; bottom: -0.1em;
  width: 100%; height: 3px;
  background: var(--cta-ink);
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.cta__mail:hover .cta__mail-text::after {
  transform: scaleX(0);
  transform-origin: right;
}
.cta__mail-arrow {
  font-size: 0.8em;
  transition: transform 0.35s var(--ease-out);
}
.cta__mail:hover .cta__mail-arrow { transform: translate(6px, -6px); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg);
  padding: clamp(3.5rem, 7vw, 6rem) 0 2rem;
  border-top: 1px solid var(--line);
}
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.footer__logo { width: clamp(9rem, 15vw, 13rem); height: auto; }
.footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.footer__col {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ink-dim);
}
.footer__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.footer__social { color: var(--ink); transition: color 0.3s; }
.footer__social:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.6rem;
}
.footer__legal {
  font-size: 0.82rem;
  color: var(--ink-faint);
}
.footer__up {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--ink-dim);
  transition: color 0.3s;
}
.footer__up:hover { color: var(--ink); }

/* ---------- Ambient depth: sections host glow accents ---------- */
.services, .projects, .quote, .team, .journal, .hero { overflow: clip; }
.services, .projects, .quote, .team, .journal { position: relative; }
.services > .container,
.projects > .container,
.quote > .container,
.team > .container,
.journal > .container { position: relative; z-index: 1; }

/* ---------- Quote watermark (rotates with scroll) ---------- */
.quote__mark-bg {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(22rem, 46vw, 44rem);
  height: auto;
  margin: 0;
  transform: translate(-50%, -50%);
  color: var(--ink);
  opacity: 0.045;
  pointer-events: none;
}
.quote__mark-bg svg { width: 100%; height: auto; }

/* ---------- Image parallax inside masked frames ---------- */
.js-motion [data-parallax-media] .project__img {
  transform: translate3d(0, var(--py, 0px), 0) scale(1.12);
  transition: none;
  will-change: transform;
}
/* Contained artwork (device mockups) drifts without the crop-safe zoom */
.js-motion [data-parallax-media] .project__img--contain {
  transform: translate3d(0, var(--py, 0px), 0);
}

/* ---------- Journal (blog teaser + listing rows) ---------- */
.journal { padding: var(--section-gap) 0; }
.jentry {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: clamp(1.2rem, 3vw, 3rem);
  padding: clamp(1.8rem, 3.5vw, 2.8rem) 0;
}
.jentry::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--line);
  transform-origin: left;
}
.js-motion .jentry::after {
  transform: scaleX(0);
  transition: transform var(--dur-slow) var(--ease-expo);
  transition-delay: 0.15s;
}
.js-motion .jentry.is-visible::after { transform: scaleX(1); }
.jentry__meta {
  min-width: clamp(6.5rem, 12vw, 10rem);
  font-size: clamp(0.72rem, 1.1vw, 0.85rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.9;
}
.jentry__meta strong {
  display: block;
  font-weight: 500;
  color: var(--accent);
}
.jentry__body { flex: 1; min-width: 0; }
.jentry__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.4s, transform var(--dur-quick) var(--ease-out);
}
.jentry__excerpt {
  margin-top: 0.7rem;
  max-width: 42rem;
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  color: var(--ink-faint);
  transition: color 0.4s;
}
.jentry__arrow {
  align-self: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--gold);
  transition: transform 0.35s var(--ease-out);
}
.jentry:hover .jentry__title {
  color: var(--ink);
  transform: translateX(clamp(0.4rem, 1.5vw, 1.2rem));
}
.jentry:hover .jentry__excerpt { color: var(--ink-dim); }
.jentry:hover .jentry__arrow { transform: translate(6px, -6px); }
.journal__all {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.3s;
}
.journal__all::after {
  content: '→';
  color: var(--accent);
  transition: transform 0.35s var(--ease-out);
}
.journal__all:hover { color: var(--ink); }
.journal__all:hover::after { transform: translateX(6px); }

/* Floating hover preview (shared by services + journal) */
.hover-preview { display: none; }
@media (pointer: fine) and (min-width: 64em) {
  .hover-preview {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: 90;
    width: clamp(16rem, 22vw, 22rem);
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85) rotate(-4deg);
    transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  }
  .hover-preview.is-active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  .hover-preview__img {
    width: 100%; height: 100%;
    object-fit: cover;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 47.9em) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  /* Fill the tall mobile viewport: center the title block in the space
     between the nav and the tagline instead of stacking all content low */
  .hero__content {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 6rem;
  }
  .hero__title {
    margin-top: auto;
    margin-bottom: auto;
  }
  .hero__foot { flex-direction: row; }
  .project:nth-child(even) { margin-top: 0; }
  .section-head { gap: 0.7rem; }
  .section-head__title { font-size: clamp(1.8rem, 8.5vw, 4.5rem); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title-word { transform: none; animation: none; }
  .hero__title-mark { animation: none; }
  .hero__foot-arrow { animation: none; }
  .marquee__track { animation: none; }
  .js-motion .reveal { opacity: 1; transform: none; transition: none; }
  .quote__word { color: inherit; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
