/* =========================================================================
   Parisani — Parisa · Spatial Designer & Interior Architect, Amsterdam
   Design language: editorial monochrome (paper + warm ink) with a single
   restrained accent — the theatre-curtain red drawn from her own work.
   Type: Fraunces (display serif) + Poppins (UI / body).
   ========================================================================= */

/* ----------------------------  Design tokens  ---------------------------- */
:root {
  /* Palette */
  --paper:      #f4f1ea;   /* warm off-white ground            */
  --paper-2:    #eae5da;   /* subtle panel                     */
  --ink:        #17140f;   /* warm near-black ink              */
  --ink-70:     #423d35;
  --ink-50:     #6c655b;
  --ink-30:     #a49c8f;
  --line:       rgba(23, 20, 15, 0.16);
  --line-soft:  rgba(23, 20, 15, 0.08);
  --accent:     #b23a1e;   /* curtain red — used sparingly     */
  --accent-ink: #8f2c14;

  /* Type */
  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans:  "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1440px;
  --nav-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------  Reset  -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--accent); color: var(--paper); }

/* ------------------------------  Utilities  ----------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-50);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.serif { font-family: var(--serif); font-weight: 400; }
.accent { color: var(--accent); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* -----------------------------  Reveal anim  ---------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ================================  NAV  ================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), height 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
  height: 64px;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  font-weight: 500;
  display: inline-flex; align-items: baseline; gap: 0.15em;
}
.brand .dot { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: clamp(1.2rem, 2.5vw, 2.6rem); }
.nav__links a {
  font-size: 0.82rem; letter-spacing: 0.02em; font-weight: 400;
  position: relative; padding: 0.4em 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0.1em;
  width: 0; height: 1px; background: var(--accent); transition: width 0.35s var(--ease);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { width: 100%; }
.nav__meta { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-50); text-transform: uppercase; }
.nav__meta .avail::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); margin-right: 0.5em; vertical-align: middle;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.nav__toggle { display: none; width: 30px; height: 20px; position: relative; z-index: 120; }
.nav__toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.2s var(--ease); }
.nav__toggle span:nth-child(1) { top: 2px; }
.nav__toggle span:nth-child(2) { top: 9px; }
.nav__toggle span:nth-child(3) { top: 16px; }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================  HERO  =============================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-block: calc(var(--nav-h) + 2rem) clamp(2.5rem, 6vh, 5rem); overflow: hidden; }
.hero__grid { position: absolute; inset: 0; z-index: 0; opacity: 0.5; pointer-events: none; }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__eyebrow { margin-bottom: clamp(1.4rem, 4vh, 2.6rem); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 8.5vw, 8.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero h1 em { font-style: italic; }
.hero h1 .accent { font-style: italic; }
.hero__foot {
  margin-top: clamp(1.8rem, 5vh, 3.2rem);
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 4rem);
  align-items: flex-end; justify-content: space-between;
}
.hero__lead { max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--ink-70); }
.hero__scroll { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-50); display: inline-flex; align-items: center; gap: 0.6em; white-space: nowrap; }
.hero__scroll .line { width: 46px; height: 1px; background: var(--ink-30); position: relative; overflow: hidden; }
.hero__scroll .line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: sweep 2.6s var(--ease) infinite; }
@keyframes sweep { 0%{transform:translateX(-100%);} 50%{transform:translateX(0);} 100%{transform:translateX(100%);} }

/* ---------------------------  Keyword marquee  ------------------------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 1.1rem; background: var(--paper); }
.marquee__track { display: flex; gap: 3.5rem; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 2rem); color: var(--ink-70); display: inline-flex; align-items: center; gap: 3.5rem; }
.marquee__track span::after { content: "✦"; font-style: normal; font-size: 0.6em; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==============================  SECTION  ============================== */
.section { padding-block: clamp(4.5rem, 11vh, 9rem); position: relative; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .eyebrow { color: var(--paper); opacity: 0.75; }
.section--dark .s-head__index { color: rgba(244,241,234,0.35); }
.s-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 4vw, 3rem); align-items: baseline; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.s-head__index { font-family: var(--serif); font-size: 1rem; color: var(--ink-30); font-variant-numeric: tabular-nums; letter-spacing: 0.05em; }
.s-head__title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.015em; }

/* -------------------------------  About  ------------------------------- */
.about { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); }
.about__lead { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.18; letter-spacing: -0.01em; max-width: 20ch; }
.about__body { display: grid; gap: 1.4rem; max-width: 60ch; color: var(--ink-70); font-size: 1.02rem; }
.about__body strong { color: var(--ink); font-weight: 500; }
.about__cols { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.disciplines { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { font-size: 0.78rem; letter-spacing: 0.02em; border: 1px solid var(--line); border-radius: 100px; padding: 0.5em 1.1em; color: var(--ink-70); transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease); }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.5rem; border-top: 1px solid var(--line); padding-top: 2.2rem; }
.stat__n { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; line-height: 1; }
.stat__l { font-size: 0.78rem; color: var(--ink-50); letter-spacing: 0.04em; margin-top: 0.6rem; }

/* -------------------------------  Work  -------------------------------- */
.work-list { border-top: 1px solid var(--line); }
.work-item { border-bottom: 1px solid var(--line); position: relative; }
.work-item__row {
  display: grid; grid-template-columns: 4rem 1fr auto; gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center; padding-block: clamp(1.6rem, 3.4vh, 2.4rem);
  transition: padding 0.4s var(--ease), color 0.4s var(--ease);
}
.work-item__row:hover { padding-left: clamp(0.5rem, 2vw, 1.5rem); }
.work-item__num { font-family: var(--serif); color: var(--ink-30); font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.work-item__title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 3.6vw, 2.9rem); line-height: 1.05; letter-spacing: -0.01em; transition: color 0.3s var(--ease); }
.work-item:hover .work-item__title { color: var(--accent); }
.work-item__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; text-align: right; }
.work-item__tags { font-size: 0.76rem; color: var(--ink-50); letter-spacing: 0.02em; }
.work-item__year { font-size: 0.76rem; color: var(--ink-30); font-variant-numeric: tabular-nums; }
.work-item__arrow { font-size: 1.4rem; color: var(--ink-30); transition: transform 0.4s var(--ease-out), color 0.3s var(--ease); }
.work-item:hover .work-item__arrow { transform: translate(4px, -4px); color: var(--accent); }
/* hover preview plate */
.work-item__preview {
  position: absolute; top: 50%; right: 8rem; width: 260px; aspect-ratio: 4/3;
  transform: translate(20px, -50%) scale(0.96); opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-out); z-index: 5;
  box-shadow: 0 30px 60px -30px rgba(23,20,15,0.45); overflow: hidden;
}
.work-item:hover .work-item__preview { opacity: 1; transform: translate(0, -50%) scale(1); }
@media (max-width: 900px) { .work-item__preview { display: none; } }

/* ---------------------  Feature (graduation project)  ------------------ */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature__media { aspect-ratio: 4/5; overflow: hidden; position: relative; }
.feature__tag { display: inline-block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.4rem; }
.feature h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 4vw, 3.2rem); line-height: 1.06; letter-spacing: -0.015em; margin-bottom: 1.4rem; }
.feature__q { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--accent); margin-bottom: 1.6rem; line-height: 1.3; }
.feature p { color: var(--ink-70); max-width: 52ch; margin-bottom: 1.2rem; }
.section--dark .feature p { color: rgba(244,241,234,0.72); }
.concepts { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.concepts li { background: var(--paper); padding: 1.3rem 1.4rem; display: flex; gap: 0.9rem; align-items: baseline; }
.concepts li b { font-family: var(--serif); color: var(--accent); font-weight: 400; }
.concepts li span { font-size: 0.94rem; }
.section--dark .concepts { background: rgba(244,241,234,0.16); border-color: rgba(244,241,234,0.16); }
.section--dark .concepts li { background: var(--ink); }

/* -----------------------------  Services  ------------------------------ */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--paper); padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: 0.9rem; transition: background 0.4s var(--ease); position: relative; min-height: 220px; }
.service:hover { background: var(--ink); color: var(--paper); }
.service__n { font-family: var(--serif); font-size: 0.85rem; color: var(--ink-30); }
.service:hover .service__n { color: rgba(244,241,234,0.5); }
.service h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.1; }
.service p { font-size: 0.92rem; color: var(--ink-50); transition: color 0.4s var(--ease); }
.service:hover p { color: rgba(244,241,234,0.75); }
.service__arrow { margin-top: auto; font-size: 1.2rem; color: var(--ink-30); transition: transform 0.4s var(--ease-out), color 0.4s var(--ease); align-self: flex-start; }
.service:hover .service__arrow { transform: translate(4px,-4px); color: var(--accent); }

/* -------------------------  Experience / timeline  --------------------- */
.timeline { display: grid; grid-template-columns: 1fr; }
.tl-item { display: grid; grid-template-columns: 8rem 1fr; gap: clamp(1rem, 3vw, 3rem); padding-block: 1.7rem; border-top: 1px solid var(--line); align-items: baseline; transition: padding 0.35s var(--ease); }
.tl-item:hover { padding-left: 0.8rem; }
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-year { font-variant-numeric: tabular-nums; font-size: 0.85rem; color: var(--ink-50); letter-spacing: 0.03em; }
.tl-role { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.15; }
.tl-org { font-size: 0.9rem; color: var(--ink-50); margin-top: 0.3rem; }
.tl-desc { font-size: 0.9rem; color: var(--ink-70); margin-top: 0.5rem; max-width: 60ch; }
.edu-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; margin-top: 3.5rem; }
.edu-card { border: 1px solid var(--line); padding: clamp(1.4rem,3vw,2.2rem); }
.edu-card h4 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; line-height: 1.15; margin-bottom: 0.6rem; }
.edu-card p { font-size: 0.9rem; color: var(--ink-50); }
.edu-card .yr { font-variant-numeric: tabular-nums; color: var(--accent); font-size: 0.82rem; margin-top: 0.8rem; }

/* -------------------------------  UGC  --------------------------------- */
.ugc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
.reel { position: relative; aspect-ratio: 9/16; overflow: hidden; background: var(--ink); display: flex; align-items: flex-end; padding: 1.4rem; color: var(--paper); }
.reel__play { position: absolute; inset: 0; display: grid; place-items: center; }
.reel__play span { width: 66px; height: 66px; border: 1px solid rgba(244,241,234,0.6); border-radius: 50%; display: grid; place-items: center; transition: background 0.35s var(--ease), transform 0.35s var(--ease-out); }
.reel:hover .reel__play span { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.reel__play svg { width: 20px; height: 20px; margin-left: 3px; }
.reel__label { position: relative; z-index: 2; font-size: 0.82rem; letter-spacing: 0.04em; }

/* ------------------------------  Contact  ------------------------------ */
.contact { text-align: center; }
.contact__pre { margin-bottom: 1.6rem; }
.contact h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 8vw, 6.5rem); line-height: 1; letter-spacing: -0.02em; }
.contact__mail { display: inline-block; margin-top: 1.4rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 4vw, 2.4rem); position: relative; }
.contact__mail::after { content: ""; position: absolute; left: 0; bottom: 0.05em; width: 100%; height: 1px; background: currentColor; opacity: 0.4; transition: opacity 0.3s var(--ease); }
.contact__mail:hover::after { opacity: 1; background: var(--accent); }
.contact__socials { margin-top: clamp(2.5rem, 6vh, 4rem); display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.contact__socials a { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; position: relative; padding-bottom: 0.3em; }
.contact__socials a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.3s var(--ease); }
.contact__socials a:hover::after { width: 100%; }

/* ------------------------------  Footer  ------------------------------- */
.footer { border-top: 1px solid rgba(244,241,234,0.16); padding-block: 2.4rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.78rem; color: rgba(244,241,234,0.55); letter-spacing: 0.03em; }
.footer__inner a:hover { color: var(--paper); }

/* --------------------------  Placeholder plates  ----------------------- */
.plate { width: 100%; height: 100%; display: block; background: var(--ink); }
.plate--paper { background: var(--paper-2); }

/* -----------------------------  Mobile menu  --------------------------- */
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__meta { display: none; }
  .nav__links {
    position: fixed; inset: 0; background: var(--ink); color: var(--paper);
    flex-direction: column; justify-content: center; align-items: flex-start;
    gap: 1.2rem; padding: var(--gutter); transform: translateX(100%);
    transition: transform 0.5s var(--ease-out); z-index: 110;
  }
  body.menu-open .nav__links { transform: none; }
  .nav__links a { font-family: var(--serif); font-size: 2rem; font-weight: 300; }
  .nav__links a::after { background: var(--accent); }
}

/* ------------------------------  Breakpoints  -------------------------- */
@media (max-width: 900px) {
  .about__cols { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature__media { aspect-ratio: 16/10; order: -1; }
  .services { grid-template-columns: 1fr; }
  .work-item__row { grid-template-columns: 2.5rem 1fr auto; }
  .work-item__meta { display: none; }
}
@media (max-width: 620px) {
  .stats { grid-template-columns: 1fr; gap: 0; }
  .stat { border-bottom: 1px solid var(--line); padding-block: 1.2rem; }
  .stats { border-top: 1px solid var(--line); padding-top: 0; }
  .concepts, .edu-grid, .ugc { grid-template-columns: 1fr; }
  .tl-item { grid-template-columns: 1fr; gap: 0.3rem; }
  .work-item__row { grid-template-columns: 2rem 1fr; }
  .work-item__num { align-self: start; padding-top: 0.4rem; }
}
