/* Figmento Designs — cinematic, editorial, dramatic */

:root {
  --purple: #301934;
  --purple-soft: #5a3a63;
  --ink: #14101a;
  --ink-soft: #2b2434;
  --muted: #6b6370;
  --line: #ece8ef;
  --bg: #ffffff;
  --bg-soft: #faf8fb;
  --sand: #d9b07a;
  --sand-deep: #b88742;
  --ocean: #0b2440;
  --ocean-deep: #06182c;
  --max: 1180px;
  --serif: "Playfair Display", "Didot", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--purple);
  line-height: 1.12;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.4rem; }

p { color: var(--ink-soft); max-width: 62ch; }

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

em { font-style: italic; }

/* Layout */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 7rem 0; }

/* ----- NAV ----- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--purple);
  letter-spacing: 0.01em;
  font-weight: 500;
}
.brand span { font-style: italic; font-weight: 400; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--purple); text-decoration: none; }

/* Transparent overlay variant (over the hero) */
.nav-overlay {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.nav-overlay .brand,
.nav-overlay .nav-links a {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.nav-overlay.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-overlay.scrolled .brand { color: var(--purple); text-shadow: none; }
.nav-overlay.scrolled .nav-links a { color: var(--ink); text-shadow: none; }
.nav-overlay.scrolled .nav-links a.active { color: var(--purple); }

/* ----- CINEMA HERO ----- */
.cinema-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  isolation: isolate;
}
.cinema-bg {
  position: absolute;
  inset: -8% -4%;
  z-index: -3;
  will-change: transform;
}
.cinema-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  animation: kenburns 28s ease-in-out infinite alternate;
  filter: saturate(1.08) contrast(1.05) brightness(0.92);
}
@keyframes kenburns {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.18) translate(-2%, -1.5%); }
}

.cinema-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(6,24,44,0.15) 0%, rgba(6,24,44,0.6) 60%, rgba(6,24,44,0.85) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 30%, rgba(0,0,0,0.55) 100%);
}
.cinema-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.cinema-content {
  position: relative;
  max-width: 980px;
  padding: 0 1.5rem;
  animation: rise 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cinema-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  font-weight: 500;
}

.cinema-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.8rem, 12vw, 9rem);
  line-height: 0.95;
  color: #fff;
  letter-spacing: -0.025em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
  margin-bottom: 2rem;
}
.cinema-title .line {
  display: block;
  opacity: 0;
  animation: lineIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.cinema-title .line-1 { animation-delay: 0.15s; }
.cinema-title .line-2 { animation-delay: 0.35s; font-style: italic; font-weight: 400; color: #fff; }
@keyframes lineIn {
  from { opacity: 0; transform: translateY(40px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.cinema-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: rgba(255,255,255,0.92);
  max-width: 38ch;
  margin: 0 auto 2.5rem;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45);
  line-height: 1.5;
}

.cinema-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
}
.scroll-cue:hover { color: #fff; text-decoration: none; }
.scroll-cue .scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0));
  animation: cue 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-block;
  padding: 0.95rem 1.9rem;
  background: var(--purple);
  color: #fff;
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  font-weight: 500;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid transparent;
}
.btn:hover {
  background: var(--purple-soft);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(48, 25, 52, 0.4);
}
.btn.ghost {
  background: transparent;
  color: var(--purple);
  border: 1px solid var(--purple);
}
.btn.ghost:hover { background: var(--purple); color: #fff; }

.btn-light {
  background: #fff;
  color: var(--ocean);
}
.btn-light:hover {
  background: var(--sand);
  color: var(--ocean-deep);
  box-shadow: 0 14px 36px -10px rgba(0,0,0,0.45);
}
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
}
.btn-ghost-light:hover {
  background: #fff;
  color: var(--ocean);
  text-decoration: none;
}

/* ----- SECTION HEADS ----- */
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.section-head { margin-bottom: 3.5rem; }
.section-head h2 { margin-top: 0; }
.section-head.between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}

.link-arrow {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--purple);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.link-arrow span { display: inline-block; transition: transform 0.2s ease; margin-left: 0.4rem; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover span { transform: translateX(4px); }

/* ----- PHILOSOPHY ----- */
.philosophy { padding: 9rem 0 7rem; }
.philosophy .container { max-width: 880px; text-align: center; }
.big-quote {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.7vw, 2.3rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: none;
  margin: 0 auto 2rem;
  letter-spacing: -0.005em;
}
.big-quote em { color: var(--purple); }
.quote-attr {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  max-width: none;
}

/* ----- SERVICES ----- */
.services {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 3rem 2.5rem;
}
.service { position: relative; padding-top: 1rem; }
.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--sand-deep);
  margin-bottom: 1rem;
  line-height: 1;
}
.service h3 { margin-bottom: 0.85rem; }
.service p { color: var(--muted); }

/* ----- WORK PREVIEW ----- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.work-card {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -20px rgba(20, 16, 26, 0.22);
  text-decoration: none;
}
.work-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}
.work-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-card:hover .work-img img { transform: scale(1.05); }
.work-meta { padding: 1.5rem 1.6rem 1.8rem; }
.work-tag {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.work-meta h3 { font-size: 1.3rem; }

/* ----- CONTACT ----- */
.contact {
  background: var(--ocean-deep);
  color: #fff;
  border-top: 0;
}
.contact .section-eyebrow { color: rgba(255,255,255,0.65); }
.contact h2.contact-headline {
  color: #fff;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  margin-bottom: 3rem;
  max-width: 16ch;
}
.contact h2.contact-headline em { color: var(--sand); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.contact-item .label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.6rem;
}
.contact-item .value {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: #fff;
  font-style: italic;
  font-weight: 400;
}
.contact-item a.value:hover { color: var(--sand); text-decoration: none; }

/* ----- ABOUT (existing pages — preserved) ----- */
.hero { padding: 9rem 0 7rem; }
.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.hero h1 { margin-bottom: 1.5rem; max-width: 14ch; }
.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}
.about-hero {
  text-align: center;
  padding: 9rem 0 3rem;
}
.about-hero .eyebrow { text-align: center; }
.about-hero h1 { margin: 0 auto; max-width: none; }
.name-row {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.name-row h1 { margin: 0; }
.headshot {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  box-shadow: 0 10px 30px rgba(48, 25, 52, 0.12);
}
.about-body p { margin-bottom: 1.25rem; font-size: 1.1rem; color: var(--ink); }
.about-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 3.2rem;
  float: left;
  line-height: 0.9;
  padding: 0.35rem 0.6rem 0 0;
  color: var(--purple);
}

/* About / Work pages need top padding to clear fixed nav */
body:not(.home) .hero,
body:not(.home) .about-hero,
body:not(.home) .work-hero { padding-top: 11rem; }

/* Work page (preserved) */
.work-hero {
  text-align: center;
  padding: 9rem 0 3rem;
}
.work-hero h1 { margin: 0 auto 1rem; max-width: none; }
.work-hero p.lead { color: var(--muted); font-size: 1.15rem; margin: 0 auto; max-width: none; }

.project {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project:hover { transform: translateY(-3px); box-shadow: 0 20px 60px rgba(48, 25, 52, 0.1); }
.project img { width: 100%; display: block; border-bottom: 1px solid var(--line); }
.project-body { padding: 2rem; }
.project-body h3 { margin-bottom: 0.5rem; }
.project-body .tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.project-body p { color: var(--muted); margin-bottom: 1rem; }

/* ----- FOOTER ----- */
footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background: #fff;
}
footer .brand { font-size: 1.1rem; display: block; margin-bottom: 0.5rem; }

/* ----- REVEAL ANIMATIONS ----- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.service.reveal { transition-delay: 0.05s; }
.service.reveal:nth-child(2) { transition-delay: 0.15s; }
.service.reveal:nth-child(3) { transition-delay: 0.25s; }
.work-card.reveal { transition-delay: 0.05s; }
.work-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.work-card.reveal:nth-child(3) { transition-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .cinema-content, .cinema-title .line, .cinema-bg img { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ----- RESPONSIVE ----- */
@media (max-width: 760px) {
  section { padding: 5rem 0; }
  .philosophy { padding: 6rem 0 5rem; }
  .nav-inner { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.85rem; }
  .container { padding: 0 1.25rem; }
  .cinema-hero { min-height: 560px; }
  .section-head.between { align-items: flex-start; }
  .work-grid { gap: 1.25rem; }
}
