:root {
  --bg: #F7F7F4;
  --ink: #111111;
  --ink-muted: #2B2B28;
  --ink-subtle: #666660;
  --accent: #FFE500;
  --ease-editorial: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
}

/* Subtle editorial paper / film grain texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

::selection {
  background-color: var(--accent);
  color: var(--ink);
}

/* ============================================================
   Oversized Geometric Stage (Option 03 — Clean Contrast)
   ============================================================ */
.geo-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.geo-shape {
  position: absolute;
  will-change: transform;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
}

.geo-shape svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Upper-right thick yellow ring: compass stroke-draw entrance */
.geo-ring {
  height: clamp(420px, 84vh, 880px);
  width: auto;
  aspect-ratio: 1 / 1;
  top: clamp(-310px, -28vh, -130px);
  right: clamp(-320px, -28vh, -130px);
}

.geo-ring-main {
  transform: rotate(-110deg);
  transform-origin: 300px 300px;
  stroke-dasharray: 1396;
  stroke-dashoffset: 1396;
  animation: drawRing 1250ms var(--ease-editorial) 120ms forwards;
}

/* ============================================================
   Subtle Cinema Viewfinder Crop Marks
   ============================================================ */
.viewfinder {
  position: fixed;
  inset: clamp(0.85rem, 2.2vw, 1.5rem);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: fadeInViewfinder 900ms var(--ease-editorial) 350ms forwards;
}

.vf-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: rgba(17, 17, 17, 0.22);
  border-style: solid;
  border-width: 0;
}

.vf-tl {
  top: 0;
  left: 0;
  border-top-width: 1.25px;
  border-left-width: 1.25px;
}

.vf-tr {
  top: 0;
  right: 0;
  border-top-width: 1.25px;
  border-right-width: 1.25px;
}

.vf-bl {
  bottom: 0;
  left: 0;
  border-bottom-width: 1.25px;
  border-left-width: 1.25px;
}

.vf-br {
  bottom: 0;
  right: 0;
  border-bottom-width: 1.25px;
  border-right-width: 1.25px;
}

@keyframes fadeInViewfinder {
  to {
    opacity: 1;
  }
}

/* ============================================================
   Smooth Mouse Tracker Dot & Trailing Ring (Desktop Only)
   ============================================================ */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  will-change: transform, opacity;
  transition:
    opacity 240ms ease,
    width 280ms var(--ease-editorial),
    height 280ms var(--ease-editorial),
    background-color 240ms ease,
    border-color 240ms ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 50%;
  background-color: var(--ink);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin-left: -17px;
  margin-top: -17px;
  border-radius: 50%;
  border: 1.5px solid rgba(17, 17, 17, 0.32);
}

.cursor-dot.is-visible,
.cursor-ring.is-visible {
  opacity: 1;
}

.cursor-dot.is-hovering {
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  background-color: var(--accent);
}

.cursor-ring.is-hovering {
  width: 52px;
  height: 52px;
  margin-left: -26px;
  margin-top: -26px;
  border-color: var(--accent);
  background-color: rgba(255, 229, 0, 0.08);
}

.cursor-ring.is-pressed {
  width: 26px;
  height: 26px;
  margin-left: -13px;
  margin-top: -13px;
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* Lower-right solid yellow circle: architectural scale settle */
.geo-disc {
  height: clamp(360px, 72vh, 760px);
  width: auto;
  aspect-ratio: 1 / 1;
  bottom: clamp(-270px, -27vh, -110px);
  right: clamp(-260px, -22vh, -100px);
}

.geo-disc svg {
  opacity: 0;
  transform: scale(0.86);
  transform-origin: 65% 65%;
  animation: settleDisc 1150ms var(--ease-editorial) 200ms forwards;
}

@keyframes drawRing {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes settleDisc {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================================
   Main Single-Screen Canvas (Top Header / Centered Hero / Bottom Footer)
   ============================================================ */
.canvas {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 4.5vh, 3rem) clamp(1.5rem, 8.5vw, 9rem);
}

.content {
  width: 100%;
  max-width: 720px;
  flex: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: center;
}

/* Brand Logo (Top-aligned header placement & optically aligned to headline) */
.brand {
  align-self: start;
}

.brand-logo {
  display: block;
  width: clamp(104px, 9.5vw, 132px);
  height: auto;
  margin-left: clamp(3px, 0.3vw, 5px);
  object-fit: contain;
}

/* Hero Copy with Masked Kinetic Line Reveal */
.hero {
  width: 100%;
  padding-block: clamp(2.25rem, 6vh, 4rem);
}

/* Live Studio Timecode / REC Eyebrow */
.studio-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: clamp(0.95rem, 2vh, 1.3rem);
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, monospace;
  font-size: clamp(0.68rem, 0.85vw, 0.76rem);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #D92D20;
  box-shadow: 0 0 0 0 rgba(217, 45, 32, 0.45);
  animation: recPulse 1.8s ease-in-out infinite;
}

.rec-label {
  color: var(--ink);
  font-weight: 500;
}

.studio-sep {
  opacity: 0.4;
}

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

.fps-label {
  opacity: 0.72;
}

@keyframes recPulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(217, 45, 32, 0.45);
  }
  50% {
    opacity: 0.42;
    box-shadow: 0 0 0 4px rgba(217, 45, 32, 0);
  }
}

.headline {
  font-size: clamp(2.1rem, 4.6vw, 3.85rem);
  font-weight: 800;
  line-height: 1.01;
  letter-spacing: -0.034em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: clamp(1rem, 2.2vh, 1.5rem);
}

.headline-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
  margin-bottom: -0.04em;
}

.headline-line {
  display: block;
  transform: translate3d(0, 110%, 0);
  animation: maskRise 880ms var(--ease-editorial) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes maskRise {
  to {
    transform: translate3d(0, 0, 0);
  }
}

.subtitle {
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink-muted);
  margin-bottom: clamp(1.5rem, 3.6vh, 2.25rem);
}

.loading-dots span {
  display: inline-block;
  opacity: 0.25;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 220ms;
}

.loading-dots span:nth-child(3) {
  animation-delay: 440ms;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-1.5px);
  }
}

/* ============================================================
   Email CTA Button (Ink-Sweep Inversion + Magnetic Pull)
   ============================================================ */
.cta-wrap {
  width: 100%;
}

.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 48px;
  padding: 0.78rem 1.35rem;
  background-color: var(--accent);
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(0.82rem, 1.02vw, 0.95rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: 2px;
  overflow: hidden;
  will-change: transform;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition:
    color 320ms var(--ease-editorial),
    transform 420ms var(--ease-out-expo);
}

/* High-contrast ink sweep curtain */
.cta-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 420ms var(--ease-editorial);
  z-index: 0;
}

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

.cta-button:hover::before {
  transform: scaleX(1);
}

.cta-button:active {
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) scale(0.985);
}

.cta-button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 100%;
}

.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-icon svg {
  width: 19px;
  height: 19px;
}

.cta-divider {
  width: 1px;
  height: 1.25rem;
  background-color: rgba(17, 17, 17, 0.35);
  flex-shrink: 0;
  transition: background-color 320ms var(--ease-editorial);
}

.cta-button:hover .cta-divider {
  background-color: rgba(255, 229, 0, 0.35);
}

.cta-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.55;
  transform: translate3d(-2px, 2px, 0);
  transition:
    opacity 320ms var(--ease-editorial),
    transform 360ms var(--ease-editorial);
}

.cta-button:hover .cta-arrow {
  opacity: 1;
  transform: translate3d(2px, -2px, 0);
}

/* ============================================================
   Footer / Studio Disciplines & Copyright
   ============================================================ */
.legal {
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.disciplines {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(0.66rem, 0.8vw, 0.74rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.discipline-sep {
  opacity: 0.35;
}

.copyright {
  font-size: clamp(0.62rem, 0.74vw, 0.7rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

/* ============================================================
   Subtle Fade-In Reveal (Non-Headline Elements)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  animation: fadeInUp 760ms var(--ease-editorial) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* ============================================================
   Responsive Breakpoints
   ============================================================ */
@media (max-width: 1024px) {
  .geo-ring {
    width: clamp(280px, 50vw, 520px);
    height: auto;
    top: -16vw;
    right: -24vw;
  }

  .geo-disc {
    width: clamp(240px, 42vw, 440px);
    height: auto;
    bottom: -16vw;
    right: -20vw;
  }
}

@media (max-width: 640px) {
  .canvas {
    padding: 2.25rem 1.35rem 2rem;
    align-items: center;
  }

  .content {
    align-items: center;
    text-align: center;
  }

  .brand {
    justify-self: center;
  }

  .brand-logo {
    width: 118px;
    margin-left: 0;
    margin-inline: auto;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-block: 1.5rem 2rem;
  }

  .studio-bar {
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 999px;
    background-color: rgba(247, 247, 244, 0.78);
    backdrop-filter: blur(6px);
    margin-bottom: 1.25rem;
  }

  .headline {
    font-size: clamp(2.35rem, 11vw, 3.1rem);
    line-height: 1.01;
    text-align: center;
  }

  .subtitle {
    font-size: 0.98rem;
    text-align: center;
    margin-bottom: 1.75rem;
  }

  .cta-wrap {
    display: flex;
    justify-content: center;
  }

  .cta-button {
    width: auto;
    max-width: 100%;
    justify-content: center;
    padding: 0.88rem 1.25rem;
    min-height: 50px;
    border-radius: 2px;
    font-size: clamp(0.76rem, 3.55vw, 0.92rem);
    border: 1px solid rgba(17, 17, 17, 0.1);
    box-shadow: 0 8px 24px -10px rgba(17, 17, 17, 0.18);
  }

  .cta-inner {
    gap: 0.65rem;
  }

  .cta-icon svg {
    width: 18px;
    height: 18px;
  }

  .legal {
    width: 100%;
    align-items: center;
    text-align: center;
    gap: 1.35rem;
  }

  .disciplines {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.68rem;
    letter-spacing: 0.22em;
  }

  .discipline-sep {
    display: none;
  }

  .copyright {
    font-size: 0.6rem;
    letter-spacing: 0.11em;
    color: var(--ink-subtle);
  }

  /* Balanced diagonal geometric framing for centered mobile poster */
  .geo-ring {
    width: min(76vw, 320px);
    height: auto;
    top: -24vw;
    right: -30vw;
  }

  .geo-disc {
    width: min(68vw, 290px);
    height: auto;
    bottom: -34vw;
    right: auto;
    left: -26vw;
  }
}

/* Very small height landscape screens */
@media (max-height: 540px) and (orientation: landscape) {
  .canvas {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .brand-logo {
    width: 104px;
  }

  .hero {
    padding-block: 1.25rem;
  }

  .headline {
    font-size: clamp(1.85rem, 4.8vw, 2.8rem);
  }
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .headline-line {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .geo-ring-main {
    stroke-dashoffset: 0;
    animation: none;
  }

  .viewfinder {
    opacity: 1;
    animation: none;
  }

  .rec-dot,
  .loading-dots span {
    animation: none;
  }

  .loading-dots span {
    opacity: 1;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .geo-disc svg {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .cta-button,
  .cta-button::before,
  .cta-divider,
  .cta-arrow {
    transition: none;
  }
}
