/* ————————————————————————————————
   Enough Films — golden hour
   ———————————————————————————————— */

:root {
  --butter:   #FFF4CF;
  --gold:     #FFD97A;
  --amber:    #F5B93E;
  --sun:      #FF9E1F;
  --ember:    #E8641B;
  --ink:      #2B1F0E;
  --ink-soft: #59431F;
  --night:    #1C1409;
  --serif: "Fraunces", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

::selection {
  background: var(--sun);
  color: var(--night);
}

body {
  animation: page-in 1.8s ease-out both;
  font-family: var(--serif);
  color: var(--ink);
  background: linear-gradient(180deg,
    #FFF7DC 0%,
    #FFEFC2 22%,
    #FFE49B 48%,
    #FFD97A 72%,
    #F9C45C 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@keyframes page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ————— film grain ————— */
.grain-defs { position: absolute; }
.grain {
  position: fixed; inset: -100px;
  filter: url(#grain);
  opacity: 0.07;
  pointer-events: none;
  z-index: 50;
  animation: grain-shift 0.9s steps(3) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-30px, 20px); }
  66%  { transform: translate(25px, -35px); }
  100% { transform: translate(0, 0); }
}

/* ————— drifting light ————— */
.sky {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  mix-blend-mode: soft-light;
}
.orb-a {
  width: 55vmax; height: 55vmax;
  background: radial-gradient(circle, #FFFDF2 0%, transparent 65%);
  top: -18vmax; left: -12vmax;
  animation: drift-a 26s ease-in-out infinite alternate;
}
.orb-b {
  width: 45vmax; height: 45vmax;
  background: radial-gradient(circle, var(--sun) 0%, transparent 65%);
  bottom: -15vmax; right: -10vmax;
  opacity: 0.35;
  animation: drift-b 32s ease-in-out infinite alternate;
}
.orb-c {
  width: 30vmax; height: 30vmax;
  background: radial-gradient(circle, #FFE9AE 0%, transparent 70%);
  top: 40%; left: 55%;
  animation: drift-c 40s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(9vmax, 7vmax) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-8vmax, -6vmax) scale(1.18); } }
@keyframes drift-c { to { transform: translate(-12vmax, 8vmax) scale(0.9); } }

/* ————— drifting clouds ————— */
.cloud {
  position: absolute;
  fill: #FFFDF2;
  filter: blur(5px);
  animation: cloud-drift linear infinite;
}
.cloud-a {
  width: 340px; top: 12%;
  opacity: 0.5;
  animation-duration: 150s;
  animation-delay: -40s;
}
.cloud-b {
  width: 220px; top: 34%;
  opacity: 0.35;
  filter: blur(7px);
  animation-duration: 210s;
  animation-delay: -140s;
}
.cloud-c {
  width: 460px; top: 62%;
  opacity: 0.28;
  filter: blur(9px);
  animation-duration: 260s;
  animation-delay: -90s;
}
@keyframes cloud-drift {
  from { left: -480px; }
  to   { left: 100vw; }
}

/* ————— corner marks ————— */
.corners { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
.corner {
  position: absolute;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--ink-soft);
  font-weight: 500;
}
.corner.tl { top: 1.6rem; left: 1.9rem; }
.corner.tr { top: 1.6rem; right: 1.9rem; }

/* ————— hero ————— */
main { position: relative; z-index: 1; }

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.wordmark { width: min(760px, 92vw); }
.wordmark-svg { width: 100%; height: auto; overflow: visible; }

.wm-enough {
  font-family: var(--serif);
  font-size: 200px;
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 60;
  fill: var(--ink);
  letter-spacing: -0.015em;
}
.wm-sun {
  fill: var(--sun);
  transform-origin: 751px 198px;
  animation: sun-breathe 6s ease-in-out infinite;
}
@keyframes sun-breathe {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.18); opacity: 0.85; }
}
.wm-films {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.52em;
  fill: var(--ink-soft);
}

.scroll-hint {
  position: absolute;
  bottom: 2.4rem; left: 50%;
  transform: translateX(-50%);
}
.scroll-hint span {
  display: block;
  width: 1px; height: 54px;
  background: linear-gradient(180deg, transparent, var(--ink-soft));
  animation: hint 2.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes hint {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 0.7; }
  100% { transform: scaleY(1) translateY(10px); opacity: 0; }
}

/* ————— fragments ————— */
.fragments {
  max-width: 720px;
  margin: 0 auto;
  padding: 22vh 2rem 10vh;
  display: flex;
  flex-direction: column;
  gap: 26vh;
}

.fragment { text-align: center; }

.slate {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  color: var(--ember);
  margin-bottom: 1.4rem;
  font-weight: 500;
}

.fragment p {
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  font-weight: 340;
  font-variation-settings: "opsz" 100, "SOFT" 45;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.fragment:nth-child(3) p { font-style: italic; }

/* ————— contact ————— */
.contact {
  text-align: center;
  padding: 24vh 2rem 30vh;
}
.contact-cloud {
  width: 118px;
  margin: 0 auto 2.4rem;
  display: block;
}
.contact-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  font-weight: 500;
}
.contact-mail {
  font-size: clamp(1.5rem, 4.5vw, 3.2rem);
  font-weight: 380;
  font-variation-settings: "opsz" 144, "SOFT" 55;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 31, 14, 0.35);
  padding-bottom: 0.2em;
  transition: border-color 0.4s ease, color 0.4s ease;
}
.contact-mail:hover {
  color: var(--ember);
  border-color: var(--ember);
}

/* ————— footer : sunset ————— */
.footer {
  position: relative;
  background: var(--night);
  color: #E9D9AE;
  z-index: 1;
}
.horizon {
  position: absolute;
  top: -160px; left: 0; right: 0;
  height: 160px;
  overflow: hidden;
  pointer-events: none;
}
.setting-sun {
  position: absolute;
  left: 50%; bottom: -52px;
  transform: translateX(-50%);
  width: 120px; height: 120px;
  border-radius: 50%;
  background: #FFAE2E;
  box-shadow:
    0 0 40px 12px rgba(255, 190, 80, 0.75),
    0 0 110px 45px rgba(255, 158, 31, 0.45),
    0 0 220px 90px rgba(255, 158, 31, 0.2);
  animation: sun-set 9s ease-in-out infinite alternate;
}
@keyframes sun-set {
  from { transform: translateX(-50%) translateY(0); }
  to   { transform: translateX(-50%) translateY(14px); }
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 3.4rem 2rem 3.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.footer-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sun);
}

/* ————— reveal on scroll ————— */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ————— motion respect ————— */
@media (prefers-reduced-motion: reduce) {
  .grain, .orb, .wm-sun, .scroll-hint span { animation: none !important; }
  .cloud { animation: none !important; left: 20vw; }
  .cloud-b { left: 60vw; }
  .cloud-c { left: 40vw; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 600px) {
  .corners { display: none; }
  .fragments { gap: 18vh; padding-top: 16vh; }
}
