:root {
  /* ================= COLORS ================= */

  --bg: hsl(0 0% 4%);
  --text: hsl(34 18% 88%);
  --muted: hsl(34 10% 60%);

  --primary: hsl(34 35% 62%);
  --primary-dark: hsl(34 35% 45%);

  --border: hsl(0 0% 15%);

  /* overlays */
  --overlay-dark: rgba(0, 0, 0, 0.6);

  /* ================= TYPOGRAPHY ================= */

  --font-display: "Playfair Display", serif;
  --font-body: "Inter", sans-serif;

  --fs-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8rem);
  --fs-sm: clamp(0.85rem, 0.8rem + 0.3vw, 0.95rem);
  --fs-md: clamp(1rem, 0.95rem + 0.3vw, 1.1rem);
  --fs-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --fs-xl: clamp(1.8rem, 1.5rem + 1vw, 2.4rem);
  --fs-2xl: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  --fs-3xl: clamp(4rem, 3rem + 4vw, 6rem);

  /* ================= SPACING ================= */

  --container: 1200px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-2xl: 96px;
  --space-3xl: 140px;

  --container-sm: 640px;
  --container-md: 900px;
  --container-lg: 1200px;
  --container-xl: 1400px;

  /* ================= ANIMATIONS ================= */

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.6s var(--ease);

  /* ================= RADIUS ================= */

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-full: 999px;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  opacity: 0;
  animation: pageLoad 0.8s ease forwards;
}

@keyframes pageLoad {
  to {
    opacity: 1;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background: radial-gradient(
    ellipse at center,
    transparent 40%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

a,
button {
  transition: var(--transition);
}

/* ================= NAVBAR ================= */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.6s ease;
  padding: 0 10%;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* logo */
.logo {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  letter-spacing: 0.2em;
  color: hsl(34 18% 88%);
  text-decoration: none;
}

/* desktop links */
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: Inter, sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: hsl(34 10% 60%);
  transition: 0.3s;
}

.nav-links a:hover {
  color: hsl(34 18% 88%);
}

.nav-links a.active {
  color: hsl(34 35% 62%);
}

/* scroll effect */
.header.scrolled {
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* mobile button */
.menu-btn {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  color: hsl(34 18% 88%);
  cursor: pointer;
}

/* ================= MOBILE MENU ================= */

.mobile-menu {
  position: fixed;
  inset: 0;
  background: hsl(0 0% 4%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  opacity: 0;
  transition: 0.5s ease;
  z-index: 2000;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  font-size: 24px;
  background: none;
  border: none;
  color: hsl(34 18% 88%);
  cursor: pointer;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.mobile-link {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  color: hsl(34 18% 88%);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s forwards;
}

.mobile-menu.open .mobile-link:nth-child(1) {
  animation-delay: 0.1s;
}
.mobile-menu.open .mobile-link:nth-child(2) {
  animation-delay: 0.2s;
}
.mobile-menu.open .mobile-link:nth-child(3) {
  animation-delay: 0.3s;
}
.mobile-menu.open .mobile-link:nth-child(4) {
  animation-delay: 0.4s;
}
.mobile-menu.open .mobile-link:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }
}

/* ================= SCROLL PROGRESS ================= */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--primary);
  z-index: 9999;
}

/* ================= ABOUT PAGE ================= */

.about {
  padding: 120px 10% 0;
}

/* HERO */
.about-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: var(--space-xl);
  margin-bottom: 6%;
}

.about-title span {
  font-style: italic;
  color: var(--primary);
  position: relative;
}

/* GRID */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
}

/* LEFT */
.about-sticky {
  position: sticky;
  top: 120px;
}

.about-sticky img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.95);
}

/* NAME LINE */
.about-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about-name .line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* RIGHT */
.about-intro {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 60px;
}

/* PHILOSOPHY */
.philosophy {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.philosophy-item {
  padding: var(--space-lg) var(--space-md);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  transition: var(--transition);
}

.philosophy-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background: var(--primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: 0.6s ease;
}

.philosophy-item:hover::before {
  transform: scaleY(1);
}

.ph-num {
  font-family: monospace;
  font-size: 10px;
  color: var(--primary);
  letter-spacing: 0.2em;
}

.philosophy-item h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-top: 10px;
}

.philosophy-item p {
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}

/* CTA */
.about-cta {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.about-cta p {
  color: var(--muted);
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--primary);
  color: var(--primary);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary);
  color: var(--bg);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-sticky {
    position: relative;
    top: auto;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(60px);
  filter: blur(4px);
  transition: all 1.4s cubic-bezier(0.25, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: var(--fs-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;

  color: var(--muted);
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-label::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  height: 1px;

  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.timestamp {
  font-family: monospace;
  font-size: var(--fs-xs);
  color: var(--primary);
  letter-spacing: 0.2em;
}

/* ================= FILM GRAIN ================= */

.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;

  background-image: url("https://www.transparenttextures.com/patterns/noise.png");
  mix-blend-mode: overlay;

  animation: grainMove 1s steps(2) infinite;
}

@keyframes grainMove {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-2%, 1%);
  }
  50% {
    transform: translate(1%, -2%);
  }
  75% {
    transform: translate(2%, 2%);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* ================= FOOTER ================= */

.footer {
  border-top: 1px solid var(--border);
  padding: 100px 0 40px;
  margin-top: 100px;
}

/* grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 60px;
}

/* brand */
.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 300px;
}

/* titles */
.footer-title {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 20px;
}

/* links */
.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-contact a {
  color: var(--muted);
  text-decoration: none;
  transition: 0.3s;
  font-size: 0.95rem;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--text);
}

/* bottom bar */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}

/* responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

.cursor-glow {
  position: fixed;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(212, 175, 140, 0.35),
    transparent 70%
  );
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.08s ease;
  mix-blend-mode: screen;
}
