/* ================================================================
   KARANLIK ANADOLU — Stylesheet
   Premium cinematic website · Dark Anatolian storytelling
   ================================================================ */

/* ----------------------------------------------------------------
   0. FONTS
   Instrument Serif: editorial display type — gravity, warmth, authority
   Outfit: geometric sans with humanist warmth — clean, contemporary, readable
   ---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@300;400;500;600&display=swap');

/* ----------------------------------------------------------------
   1. RESET
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ul, ol {
  list-style: none;
}

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

/* ----------------------------------------------------------------
   2. DESIGN TOKENS
   ---------------------------------------------------------------- */
:root {
  /* Color — deep, warm-black foundation */
  --bg-deep:       #080808;
  --bg-primary:    #0C0C0C;
  --bg-elevated:   #131313;
  --bg-subtle:     #1A1A1A;

  --text-primary:  #E8E4DF;
  --text-secondary:#9A9590;
  --text-tertiary: #5A5652;

  --accent:        #C4A882;
  --accent-dim:    #8B7D6B;

  --border:        #1E1E1E;
  --border-hover:  #2C2C2C;

  /* Spacing — 8px base grid, luxurious vertical rhythm */
  --space-xs:  0.5rem;     /* 8px */
  --space-sm:  1rem;       /* 16px */
  --space-md:  2rem;       /* 32px */
  --space-lg:  4rem;       /* 64px */
  --space-xl:  8rem;       /* 128px */
  --space-2xl: 12rem;      /* 192px */
  --space-3xl: 16rem;      /* 256px */

  /* Typography scale */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body:    'Outfit', system-ui, -apple-system, sans-serif;

  --text-hero:     clamp(3.2rem, 5.5vw, 5.5rem);
  --text-section:  clamp(1.8rem, 3.2vw, 3rem);
  --text-subtitle: clamp(1.05rem, 1.4vw, 1.3rem);
  --text-body:     1rem;
  --text-small:    0.75rem;
  --text-nav:      0.8rem;

  /* Easing — cinematic, physically coherent curves */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);

  --duration-fast:   300ms;
  --duration-medium: 600ms;
  --duration-slow:   1000ms;
  --duration-reveal: 1200ms;
}

/* ----------------------------------------------------------------
   3. BASE
   ---------------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

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

/* ----------------------------------------------------------------
   4. TYPOGRAPHY CLASSES
   ---------------------------------------------------------------- */
.display-text {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.display-text em,
.display-text i {
  font-style: italic;
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: inline-block;
  margin-bottom: var(--space-md);
}

.body-text {
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 38em;
}

.body-text + .body-text {
  margin-top: 1.25em;
}

.tag {
  font-size: var(--text-small);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}

.tag-separator {
  margin: 0 0.5em;
  color: var(--border-hover);
}

/* ----------------------------------------------------------------
   5. LAYOUT
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: 900px;
}

.container--wide {
  max-width: 1400px;
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section--deep {
  background-color: var(--bg-deep);
}

.section--elevated {
  background-color: var(--bg-elevated);
}

/* ----------------------------------------------------------------
   6. SCROLL PROGRESS
   ---------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-dim);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1002;
}

/* ----------------------------------------------------------------
   7. NAVIGATION
   ---------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: transform 0.5s var(--ease-out-expo),
              background-color 0.5s ease,
              backdrop-filter 0.5s ease,
              padding 0.4s ease;
}

.nav.scrolled {
  background-color: rgba(8, 8, 8, 0.88);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  backdrop-filter: blur(24px) saturate(1.2);
  padding: 0.7rem 0;
}

.nav.nav-hidden {
  transform: translateY(-100%);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kra-mark {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  user-select: none;
  transition: opacity var(--duration-fast) ease;
}

.kra-mark:hover {
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-size: var(--text-nav);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25em 0;
  transition: color var(--duration-fast) ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.4s var(--ease-out-expo),
              opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s var(--ease-out-expo),
              visibility 0.6s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-link {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu.open .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo),
              color var(--duration-fast) ease;
}

.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.18s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.26s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.34s; }

.mobile-menu-link:hover {
  color: var(--text-primary);
}

/* ----------------------------------------------------------------
   8. HERO
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-deep);
  overflow: hidden;
}

/* Atmospheric visual layer behind title */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('Public/3.png');
  background-size: cover;
  background-position: center;
  opacity: 0.16; /* Subdued, elegant, doesn't drown out typography */
  z-index: 1;
  pointer-events: none;
  filter: grayscale(20%) contrast(105%) brightness(80%);
}

/* Multi-layered cinematic vignette & vertical transitions */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to bottom, var(--bg-deep) 0%, transparent 16%, transparent 84%, var(--bg-deep) 100%),
    radial-gradient(ellipse 85% 65% at 50% 50%, transparent 20%, var(--bg-deep) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3; /* Placed cleanly on top of backgrounds and overlays */
  text-align: center;
  width: 100%;
  max-width: 800px;
  padding: 0 var(--space-md);
  margin: 0 auto 6vh;
  will-change: transform, opacity;
}

.hero-label {
  margin-bottom: var(--space-md);
  display: inline-block;
  letter-spacing: 0.25em; /* Premium spacious feel */
  animation: heroFadeUp 1.2s var(--ease-out-expo) 0.2s both;
}

.hero-title {
  font-family: var(--font-body); /* Changed to Outfit to integrate with other sections */
  font-weight: 500; /* Modern, serious bold weight */
  font-size: clamp(2.8rem, 5vw, 4.8rem); /* Refined and balanced horizontal mass */
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: clamp(1.2rem, 2.5vw, 2rem);
  text-transform: none;
  animation: heroFadeUp 1.4s var(--ease-out-expo) 0.4s both;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-subtitle);
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 32em;
  margin: 0 auto;
  animation: heroFadeUp 1.4s var(--ease-out-expo) 0.65s both;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  animation: heroFadeUp 1.2s var(--ease-out-expo) 1.2s both;
}

.scroll-line {
  width: 1px;
  height: 48px;
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-dim);
  animation: lineScroll 2.2s var(--ease-in-out) infinite;
}

@keyframes lineScroll {
  0%   { transform: translateY(-100%); }
  45%  { transform: translateY(0); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------------------------------------------
   9. MANIFESTO
   ---------------------------------------------------------------- */
.manifesto {
  padding: var(--space-3xl) 0;
  background-color: var(--bg-primary);
}

.manifesto-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.85;
  letter-spacing: 0.008em;
  max-width: 40em;
  text-align: center;
  margin: 0 auto;
  color: var(--text-primary);
}

.manifesto-rule {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto var(--space-lg);
  border: none;
}

/* ----------------------------------------------------------------
   10. ABOUT
   ---------------------------------------------------------------- */
.about {
  background-color: var(--bg-deep);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-main h2 {
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.founder-card {
  border-left: 1px solid var(--border);
  padding-left: var(--space-md);
}

.founder-label {
  font-size: var(--text-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-dim);
  margin-bottom: var(--space-sm);
}

.founder-name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

/* ----------------------------------------------------------------
   11. PROJECTS
   ---------------------------------------------------------------- */
.projects {
  background-color: var(--bg-primary);
}

.projects-header {
  margin-bottom: var(--space-xl);
}

.projects-header h2 {
  color: var(--text-primary);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

/* Alternate layout: every other PROJECT (not divider) */
.project-card:nth-of-type(even) {
  direction: rtl;
}

.project-card:nth-of-type(even) > * {
  direction: ltr;
}

.project-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.project-cover {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
}

.project-cover-inner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out-expo);
}


/* Coming soon overlay on cover */
.coming-soon-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: rgba(8, 8, 8, 0.45);
}

/* Individual project mood gradients */
.project-cover--1 .project-cover-inner {
  background: linear-gradient(160deg, #1c1812 0%, #0d0c09 60%, #080706 100%);
}

.project-cover--2 .project-cover-inner {
  background: linear-gradient(160deg, #13141c 0%, #0a0a10 60%, #070709 100%);
}

.project-cover--3 .project-cover-inner {
  background: linear-gradient(160deg, #161615 0%, #0d0d0c 60%, #080808 100%);
}

/* Subtle noise texture on covers */
.project-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.08;
  mix-blend-mode: overlay;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Project title overlay on cover */
.project-cover-label {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-style: italic;
  color: var(--text-primary);
  z-index: 1;
  opacity: 0.4;
}

/* Instagram embed placeholder */
.embed-placeholder {
  aspect-ratio: 4/5;
  max-height: 360px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: border-color var(--duration-fast) ease,
              background-color var(--duration-fast) ease;
}

.embed-placeholder:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-subtle);
}

.embed-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--text-tertiary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--duration-fast) ease;
}

.embed-placeholder:hover .embed-icon {
  border-color: var(--text-secondary);
}

.embed-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--text-tertiary);
  stroke-width: 1.5;
  transition: stroke var(--duration-fast) ease;
}

.embed-placeholder:hover .embed-icon svg {
  stroke: var(--text-secondary);
}

.embed-label {
  font-size: var(--text-small);
  font-weight: 300;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--duration-fast) ease;
}

.embed-placeholder:hover .embed-label {
  color: var(--text-secondary);
}

/* Instagram embed frame */
.project-embed {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color var(--duration-fast) ease;
}

.project-embed:hover {
  border-color: var(--border-hover);
}

.embed-frame {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* Coming soon placeholder */
.coming-soon {
  aspect-ratio: 4/5;
  max-height: 360px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.coming-soon-label {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-tertiary);
}

.coming-soon-sub {
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--border-hover);
  letter-spacing: 0.06em;
}

/* Project content side */
.project-content {
  padding-top: var(--space-sm);
}

.project-number {
  font-size: var(--text-small);
  font-weight: 300;
  color: var(--accent-dim);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: var(--space-md);
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.project-description {
  margin-bottom: var(--space-md);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em;
}

.project-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  border: none;
}

/* ----------------------------------------------------------------
   12. PROCESS
   ---------------------------------------------------------------- */
.process {
  background-color: var(--bg-deep);
}

.process-header {
  margin-bottom: var(--space-xl);
}

.process-header h2 {
  color: var(--text-primary);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.process-step {
  padding: var(--space-md);
  border-top: 1px solid var(--border);
  transition: border-color var(--duration-medium) ease;
}

.process-step:hover {
  border-color: var(--accent-dim);
}

.process-number {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 300;
  color: var(--accent-dim);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: var(--space-md);
}

.process-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.process-text {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ----------------------------------------------------------------
   13. CONTACT
   ---------------------------------------------------------------- */
.contact {
  background-color: var(--bg-primary);
  text-align: center;
  padding: var(--space-3xl) 0;
}

.contact h2 {
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.contact .body-text {
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.contact-email {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--accent);
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  transition: border-color var(--duration-fast) ease,
              background-color var(--duration-fast) ease,
              color var(--duration-fast) ease;
}

.contact-email:hover {
  border-color: var(--accent-dim);
  background-color: rgba(196, 168, 130, 0.05);
  color: var(--text-primary);
}

/* ----------------------------------------------------------------
   14. FOOTER
   ---------------------------------------------------------------- */
.footer {
  background-color: var(--bg-deep);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-mark {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--accent-dim);
}

.footer-copy {
  font-size: var(--text-small);
  font-weight: 300;
  color: var(--text-tertiary);
  letter-spacing: 0.03em;
}

/* ----------------------------------------------------------------
   15. FILM GRAIN OVERLAY
   ---------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
  opacity: 0.035;
  mix-blend-mode: overlay;
}

.grain svg {
  width: 100%;
  height: 100%;
}

/* ----------------------------------------------------------------
   16. SCROLL REVEAL ANIMATIONS
   ---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-reveal) var(--ease-out-expo),
              transform var(--duration-reveal) var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger support — JS sets transition-delay on children */
.reveal-stagger .reveal {
  transition: opacity var(--duration-reveal) var(--ease-out-expo),
              transform var(--duration-reveal) var(--ease-out-expo);
}

/* Horizontal line reveal */
.reveal-line {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.reveal-line.revealed {
  transform: scaleX(1);
}

/* ----------------------------------------------------------------
   17. RESPONSIVE — TABLET (≤1024px)
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --space-xl: 6rem;
    --space-2xl: 8rem;
    --space-3xl: 10rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .project-card:nth-of-type(even) {
    direction: ltr;
  }

  .project-cover {
    aspect-ratio: 16/9;
  }

  .embed-frame {
    height: 540px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----------------------------------------------------------------
   18. RESPONSIVE — MOBILE (≤768px)
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-2xl: 5rem;
    --space-3xl: 6rem;
  }

  .container {
    padding: 0 1.25rem;
  }

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

  .hero-subtitle {
    margin: 0 auto;
  }

  .hero-subtitle br {
    display: none;
  }

  .manifesto-text {
    text-align: left;
  }

  .project-cover {
    aspect-ratio: 4/3;
  }

  .embed-placeholder {
    max-height: 280px;
  }

  .embed-frame {
    height: 500px;
  }

  .coming-soon {
    max-height: 260px;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .contact-email {
    word-break: break-all;
  }
}

/* ----------------------------------------------------------------
   19. RESPONSIVE — SMALL MOBILE (≤480px)
   ---------------------------------------------------------------- */
@media (max-width: 480px) {
  :root {
    --space-lg: 2.5rem;
    --space-xl: 3.5rem;
    --space-2xl: 4rem;
    --space-3xl: 5rem;
  }

  .section-label {
    font-size: 0.65rem;
  }

  .hero-label {
    font-size: 0.65rem;
  }

  .embed-frame {
    height: 420px;
  }
}

/* ----------------------------------------------------------------
   20. REDUCED MOTION
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal-line {
    transform: scaleX(1);
  }

  .hero-content {
    will-change: auto;
  }
}
