/* =========================================================================
   Sharafiya Athimannil — Fashion Portfolio
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,500;1,600&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --ink:        #1c1815;
  --ink-soft:   #3a342d;
  --cream:      #faf5ec;
  --cream-deep: #f1e7d8;
  --paper:      #fffdf8;
  --plum:       #3d1a4d;
  --plum-deep:  #2a1136;
  --rose:       #bd7a5f;
  --rose-soft:  #e7c9b8;
  --gold:       #c69a48;
  --sage:       #5f6b4c;
  --line:       rgba(28, 24, 21, 0.12);
  --line-soft:  rgba(28, 24, 21, 0.07);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Jost', 'Helvetica Neue', Arial, sans-serif;
  --font-accent:  'Cormorant Garamond', Georgia, serif;

  --container: 1280px;
  --nav-h: 92px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.16, .84, .44, 1);
}

/* ---------- reset -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0; }

::selection { background: var(--plum); color: var(--cream); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 6vw; }

/* ---------- preloader ------------------------------------------------ */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--plum-deep);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s var(--ease), visibility .7s var(--ease);
}
.preloader__mark {
  font-family: var(--font-display); font-style: italic; font-size: 2.2rem;
  color: var(--cream); letter-spacing: .02em; opacity: 0;
  animation: fadeUp 1s var(--ease-soft) .15s forwards;
}
body.is-loaded .preloader { opacity: 0; visibility: hidden; pointer-events: none; }
body:not(.is-loaded) { overflow: hidden; }

/* ---------- buttons / links -------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-size: .82rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  position: relative; overflow: hidden; cursor: pointer;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; background: var(--ink);
  transform: translateY(101%); transition: transform .45s var(--ease);
  z-index: -1; border-radius: inherit;
}
.btn:hover { color: var(--cream); }
.btn:hover::before { transform: translateY(0); }
.btn--light { border-color: rgba(250,245,236,.55); color: var(--cream); }
.btn--light::before { background: var(--cream); }
.btn--light:hover { color: var(--ink); }
.btn--plum { border-color: var(--plum); color: var(--plum); }
.btn--plum::before { background: var(--plum); }
.btn--plum:hover { color: var(--cream); }

.link-underline {
  position: relative; display: inline-block; padding-bottom: 2px;
}
.link-underline::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- eyebrow / kicker -------------------------------------- */
.eyebrow {
  display: flex; align-items: center; gap: .85rem;
  font-family: var(--font-accent); font-style: italic; font-size: 1.25rem;
  color: var(--rose); margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ''; width: 34px; height: 1px; background: var(--gold);
}

/* ---------- navigation -------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .5s var(--ease), box-shadow .5s var(--ease), height .4s var(--ease);
}
.site-header::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(15,10,8,.45), rgba(15,10,8,0));
  opacity: 1; transition: opacity .5s var(--ease);
}
.site-header .container { position: relative; display: flex; align-items: center; justify-content: space-between; width: 100%; }
.site-header.is-scrolled {
  height: 74px;
  background: rgba(250, 245, 236, 0.88);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-scrolled::before { opacity: 0; }
.site-header.menu-open { background: transparent; box-shadow: none; }
.site-header.menu-open::before { opacity: 0; }

.brand {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: 1.5rem; letter-spacing: .01em; color: var(--cream); z-index: 2; transition: color .4s var(--ease);
}
.brand span { color: var(--rose-soft); transition: color .4s var(--ease); }
.is-scrolled .brand { color: var(--ink); }
.is-scrolled .brand span { color: var(--rose); }

.nav-links { display: flex; align-items: center; gap: 2.6rem; }
.nav-links a {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  position: relative; padding-bottom: 4px; color: var(--cream); transition: color .4s var(--ease);
}
.is-scrolled .nav-links a { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.is-active { color: var(--rose-soft); }
.is-scrolled .nav-links a.is-active { color: var(--rose); }

.nav-toggle {
  display: none; position: relative; z-index: 2;
  width: 34px; height: 22px; background: none; border: 0; cursor: pointer; padding: 0;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: var(--cream);
  transition: transform .4s var(--ease), opacity .3s var(--ease), background .4s;
}
.is-scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }
.menu-open .nav-toggle span { background: var(--cream); }
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; background: var(--plum-deep); z-index: 150;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 6vw; gap: .4rem;
  clip-path: circle(2% at calc(100% - 44px) 46px);
  transition: clip-path .7s var(--ease);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 46px); visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display); font-style: italic; font-size: 3rem; color: var(--cream-deep);
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.menu-open .mobile-menu a { opacity: 1; transform: translateY(0); }
.menu-open .mobile-menu a:nth-child(1) { transition-delay: .12s; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .18s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: .24s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: .3s; }
.mobile-menu a:hover { color: var(--rose-soft); }
.mobile-menu .mobile-meta { margin-top: 2.5rem; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease) .4s, transform .5s var(--ease) .4s; color: rgba(250,245,236,.55); font-size: .85rem; letter-spacing: .08em; }
.menu-open .mobile-menu .mobile-meta { opacity: 1; transform: translateY(0); }

/* ---------- marquee -------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 1.3rem 0; background: var(--cream-deep);
}
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span {
  font-family: var(--font-display); font-style: italic; font-size: 1.4rem;
  padding: 0 2rem; white-space: nowrap; color: var(--ink-soft);
}
.marquee__track span::after { content: '✦'; font-style: normal; color: var(--gold); margin-left: 2rem; font-size: 1rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- photo marquee (pictures drifting side to side) ------------ */
.photo-marquee { overflow: hidden; background: var(--paper); padding: 2.6rem 0; }
.photo-marquee__track { display: flex; width: max-content; gap: 1.4rem; animation: photo-marquee 46s linear infinite; }
.photo-marquee:hover .photo-marquee__track { animation-play-state: paused; }
.photo-marquee__track figure {
  margin: 0; width: 240px; height: 320px; flex-shrink: 0; border-radius: 4px; overflow: hidden; position: relative;
}
.photo-marquee__track img {
  width: 100%; height: 100%; object-fit: cover; filter: saturate(.85);
  transition: transform .8s var(--ease-soft), filter .8s var(--ease-soft);
}
.photo-marquee__track figure:hover img { transform: scale(1.08); filter: saturate(1.1); }
@keyframes photo-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.photo-marquee--reverse .photo-marquee__track { animation-direction: reverse; }

/* ---------- hero ------------------------------------------------------ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 4rem) 0 6rem;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: -60px 0; z-index: 0; will-change: transform; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: kenburns 16s var(--ease-soft) forwards; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,24,21,.15) 0%, rgba(28,24,21,.55) 100%); }
@keyframes kenburns { to { transform: scale(1.06); } }

.hero__content { position: relative; z-index: 1; color: var(--cream); max-width: 900px; }
.hero__eyebrow {
  font-family: var(--font-accent); font-style: italic; font-size: 1.35rem;
  color: var(--rose-soft); margin-bottom: 1.2rem; display: block;
  opacity: 0; animation: fadeUp .9s var(--ease-soft) .3s forwards;
}
.hero__title {
  font-size: clamp(2.8rem, 7vw, 6.4rem); color: var(--cream);
  overflow: hidden;
}
.hero__title span { display: block; opacity: 0; transform: translateY(100%); animation: revealUp 1s var(--ease-soft) forwards; }
.hero__title span:nth-child(1) { animation-delay: .45s; }
.hero__title span:nth-child(2) { animation-delay: .58s; }
.hero__sub {
  margin-top: 1.6rem; max-width: 560px; font-size: 1.05rem; line-height: 1.75;
  color: rgba(250,245,236,.85);
  opacity: 0; animation: fadeUp .9s var(--ease-soft) .8s forwards;
}
.hero__actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeUp .9s var(--ease-soft) .95s forwards; }

.hero__scroll {
  position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .6rem;
  color: rgba(250,245,236,.75); opacity: 0; animation: fadeUp .9s var(--ease-soft) 1.2s forwards;
}
.hero__scroll span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.hero__scroll i { width: 1px; height: 42px; background: linear-gradient(rgba(250,245,236,.9), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--cream); animation: scrollLine 2s var(--ease) infinite; }
@keyframes scrollLine { to { top: 100%; } }

.hero--page { min-height: 62vh; align-items: center; padding-top: var(--nav-h); }
.hero--page .hero__title { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }

.hero--banner { min-height: 46vh; padding: 0; }
.hero--banner .hero__bg::after { background: linear-gradient(180deg, rgba(15,10,8,.4) 0%, rgba(15,10,8,.15) 40%, rgba(15,10,8,.05) 100%); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- sections / reveal --------------------------------------- */
section { position: relative; }
.section { padding: 8.5rem 0; }
.section--tight { padding: 5rem 0; }
.section--paper { background: var(--paper); }
.section--deep { background: var(--plum-deep); color: var(--cream); }
.section--deep .eyebrow { color: var(--rose-soft); }

/* Reveal-on-scroll only applies once JS confirms it can un-hide these
   elements again — without the .js flag (or with JS failing/disabled)
   content stays fully visible instead of stuck at opacity:0. */
.js [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .22s; }
[data-reveal-delay="3"] { transition-delay: .34s; }
[data-reveal-delay="4"] { transition-delay: .46s; }

/* Reveal variants — same [data-reveal] gate, different entrance motion.
   Declared after the base rule so they win the (equal-specificity)
   attribute-selector cascade for elements that opt into a type. */
.js [data-reveal="zoom"] { transform: scale(1.2); transition: opacity 1s var(--ease-soft), transform 1.1s var(--ease-soft); }
[data-reveal="zoom"].in-view { transform: scale(1); }

.js [data-reveal="blur"] { transform: translateY(14px); filter: blur(16px); transition: opacity 1.1s var(--ease-soft), transform 1.1s var(--ease-soft), filter 1.1s var(--ease-soft); }
[data-reveal="blur"].in-view { filter: blur(0); }

.js [data-reveal="left"] { transform: translateX(-64px); }
[data-reveal="left"].in-view { transform: translateX(0); }

.js [data-reveal="right"] { transform: translateX(64px); }
[data-reveal="right"].in-view { transform: translateX(0); }

.js [data-reveal="scatter"] { transform: translateY(46px) rotate(-3.5deg) scale(.92); }
[data-reveal="scatter"].in-view { transform: translateY(0) rotate(0deg) scale(1); }
.js [data-reveal="scatter"].scatter-r { transform: translateY(46px) rotate(3.5deg) scale(.92); }

/* ---------- sparkle accents ------------------------------------------- */
.sparkle-layer { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); z-index: 2; }
.intro-figure__frame:hover .sparkle-layer,
.collection-card:hover .sparkle-layer,
.hero:hover .sparkle-layer { opacity: 1; }
.spark {
  position: absolute; width: 14px; height: 14px;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(255,255,255,0) 72%);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
  opacity: 0; animation: sparkle-twinkle 2.8s ease-in-out infinite;
}
.spark--gold { background: radial-gradient(circle, rgba(198,154,72,1) 0%, rgba(198,154,72,0) 72%); }
@keyframes sparkle-twinkle {
  0%, 100% { opacity: 0; transform: scale(.35) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(35deg); }
}

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 3.6rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.section-head p { max-width: 420px; color: var(--ink-soft); line-height: 1.7; }

/* ---------- intro / about blocks ------------------------------------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 5vw; align-items: center; }
.intro-figure { position: relative; }
.intro-figure__frame {
  position: relative; overflow: hidden; border-radius: 4px;
  box-shadow: 22px 22px 0 var(--cream-deep);
}
.intro-figure__frame img { width: 100%; transition: transform 1.2s var(--ease-soft); }
.intro-figure__frame:hover img { transform: scale(1.06); }
.intro-figure__tag {
  position: absolute; bottom: -1.4rem; left: -1.4rem; background: var(--plum);
  color: var(--cream); padding: 1.3rem 1.6rem; border-radius: 4px; max-width: 230px;
  font-family: var(--font-accent); font-style: italic; font-size: 1.05rem; line-height: 1.5;
  box-shadow: 0 20px 40px rgba(61,26,77,.28);
}
.intro-copy p + p { margin-top: 1.3rem; }
.intro-copy .lede { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.5; color: var(--ink); }
.intro-copy p { color: var(--ink-soft); line-height: 1.85; }

.stat-row { display: flex; gap: 3.2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.stat-row .stat b { display: block; font-family: var(--font-display); font-size: 2.4rem; color: var(--plum); }
.stat-row .stat span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- collections grid (portfolio index) ----------------------- */
.collection-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2.4rem 1.8rem; }
.collection-card { grid-column: span 6; position: relative; }
.collection-card:nth-child(3n+1) { grid-column: span 7; }
.collection-card:nth-child(3n+2) { grid-column: span 5; }

.collection-grid--even .collection-card,
.collection-grid--even .collection-card:nth-child(3n+1),
.collection-grid--even .collection-card:nth-child(3n+2) { grid-column: span 4; }
.collection-card a { display: block; }
.collection-card__media { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4/5; background: var(--cream-deep); }
.collection-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-soft), filter 1.1s var(--ease-soft); filter: saturate(.86); }
.collection-card:hover .collection-card__media img { transform: scale(1.07); filter: saturate(1.05); }
.collection-card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20,15,12,.72) 100%);
}
.collection-card__num {
  position: absolute; top: 1.4rem; left: 1.4rem; z-index: 1;
  font-family: var(--font-body); font-size: .74rem; letter-spacing: .12em;
  color: var(--cream); background: rgba(28,24,21,.35); backdrop-filter: blur(6px);
  padding: .35rem .7rem; border-radius: 999px;
}
.collection-card__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.8rem;
  color: var(--cream);
}
.collection-card__kicker { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-soft); margin-bottom: .4rem; }
.collection-card__body h3 { font-size: 1.8rem; color: var(--cream); }
.collection-card__arrow {
  position: absolute; top: 1.4rem; right: 1.4rem; z-index: 1;
  width: 42px; height: 42px; border-radius: 50%; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transform: scale(0) rotate(-40deg); transition: transform .5s var(--ease);
}
.collection-card:hover .collection-card__arrow { transform: scale(1) rotate(0); }
.collection-card__arrow svg { width: 16px; height: 16px; }

/* ---------- portfolio detail ------------------------------------------ */
.detail-meta { display: flex; flex-wrap: wrap; gap: 2.4rem 3.2rem; padding: 2.6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 4.5rem; }
.detail-meta div span { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.detail-meta div p { font-family: var(--font-display); font-size: 1.15rem; }
.detail-meta .tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.detail-meta .tags span { font-family: var(--font-body); font-size: .78rem; border: 1px solid var(--line); padding: .35rem .85rem; border-radius: 999px; margin: 0; text-transform: none; letter-spacing: .02em; color: var(--ink); }
.palette-dots { display: flex; gap: .5rem; }
.palette-dots i { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); box-shadow: 0 2px 6px rgba(0,0,0,.08); }

.lede-block { max-width: 760px; margin-bottom: 5rem; }
.lede-block p { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.85rem); font-weight: 500; line-height: 1.55; color: var(--ink); }

.masonry { column-count: 3; column-gap: 1.6rem; }
.masonry figure { break-inside: avoid; margin: 0 0 1.6rem; border-radius: 4px; overflow: hidden; cursor: zoom-in; position: relative; }
.masonry figure img { width: 100%; display: block; transition: transform 1s var(--ease-soft), filter .6s; }
.masonry figure:hover img { transform: scale(1.045); }
.masonry figure::before {
  content: '＋'; position: absolute; top: 1rem; right: 1rem; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(250,245,236,.92);
  color: var(--ink); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; opacity: 0; transform: scale(.6); transition: all .4s var(--ease);
}
.masonry figure:hover::before { opacity: 1; transform: scale(1); }

.illustration-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; margin-bottom: 5rem; }
.illustration-strip figure { margin: 0; border-radius: 4px; overflow: hidden; }
.illustration-strip img { width: 100%; }

.next-collection { display: flex; align-items: center; justify-content: space-between; padding-top: 3rem; margin-top: 2rem; border-top: 1px solid var(--line); gap: 1rem; flex-wrap: wrap; }
.next-collection span { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.next-collection h3 { font-family: var(--font-display); font-style: italic; font-size: 2.2rem; margin-top: .4rem; }
.next-collection .btn { flex-shrink: 0; }

/* ---------- timeline (about) ------------------------------------------ */
.timeline { position: relative; padding-left: 2.6rem; border-left: 1px solid var(--line); }
.timeline-item { position: relative; padding-bottom: 3.2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -2.68rem; top: .3rem; width: 11px; height: 11px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--rose);
}
.timeline-item .years { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); margin-bottom: .5rem; display: block; }
.timeline-item h4 { font-size: 1.4rem; margin-bottom: .2rem; }
.timeline-item .org { font-family: var(--font-accent); font-style: italic; color: var(--ink-soft); font-size: 1.05rem; margin-bottom: .9rem; display: block; }
.timeline-item ul { display: grid; gap: .5rem; }
.timeline-item li { position: relative; padding-left: 1.1rem; color: var(--ink-soft); font-size: .96rem; line-height: 1.6; }
.timeline-item li::before { content: ''; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

.skills-cloud { display: flex; flex-wrap: wrap; gap: .7rem; }
.skills-cloud span {
  border: 1px solid var(--line); padding: .6rem 1.15rem; border-radius: 999px;
  font-size: .84rem; color: var(--ink-soft); transition: all .35s var(--ease);
}
.skills-cloud span:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); transform: translateY(-3px); }
.section--deep .skills-cloud span:hover { background: var(--cream); color: var(--plum-deep); border-color: var(--cream); }

.edu-grid { display: grid; gap: 1.6rem; }
.edu-card { border: 1px solid var(--line); border-radius: 6px; padding: 1.8rem 2rem; transition: border-color .3s, transform .3s; }
.edu-card:hover { border-color: var(--rose); transform: translateY(-3px); }
.edu-card span { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
.edu-card h4 { font-size: 1.15rem; margin: .5rem 0 .25rem; }
.edu-card p { color: var(--ink-soft); font-size: .92rem; }

/* ---------- contact ----------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; }
.contact-card { display: flex; flex-direction: column; gap: 2.2rem; }
.contact-line { display: flex; align-items: center; gap: 1.1rem; padding: 1.6rem 0; border-bottom: 1px solid rgba(250,245,236,.16); }
.contact-line .ico { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(250,245,236,.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-line .ico svg { width: 18px; height: 18px; }
.contact-line span { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,245,236,.55); margin-bottom: .3rem; }
.contact-line a, .contact-line p { font-family: var(--font-display); font-size: 1.25rem; color: var(--cream); }

.form { display: grid; gap: 1.5rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 1rem 0; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--plum); }
.field label {
  position: absolute; left: 0; top: 1rem; color: var(--ink-soft); font-size: 1rem;
  pointer-events: none; transition: all .3s var(--ease);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: -0.7rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--plum);
}
.form-note { font-size: .82rem; color: var(--ink-soft); }

/* the contact form sits on the dark plum section — override the
   light-background field colors so text/borders stay visible */
.section--deep .field input,
.section--deep .field textarea { color: var(--cream); border-bottom-color: rgba(250,245,236,.28); }
.section--deep .field input:focus,
.section--deep .field textarea:focus { border-color: var(--rose-soft); }
.section--deep .field label { color: rgba(250,245,236,.55); }
.section--deep .field input:focus + label, .section--deep .field input:not(:placeholder-shown) + label,
.section--deep .field textarea:focus + label, .section--deep .field textarea:not(:placeholder-shown) + label { color: var(--rose-soft); }

/* ---------- footer ------------------------------------------------------ */
.site-footer { background: var(--plum-deep); color: var(--cream); padding: 6rem 0 0; }
.footer-cta { text-align: center; padding-bottom: 5rem; border-bottom: 1px solid rgba(250,245,236,.14); }
.footer-cta .eyebrow { justify-content: center; color: var(--rose-soft); }
.footer-cta h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 820px; margin: 0 auto 2.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding: 4rem 0; }
.footer-brand .brand { color: var(--cream); }
.footer-brand p { margin-top: 1.2rem; color: rgba(250,245,236,.6); max-width: 320px; line-height: 1.7; }
.footer-col h5 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,245,236,.5); margin-bottom: 1.3rem; }
.footer-col ul { display: grid; gap: .8rem; }
.footer-col a, .footer-col p { color: rgba(250,245,236,.85); font-size: .95rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.8rem 0; border-top: 1px solid rgba(250,245,236,.14); font-size: .78rem; color: rgba(250,245,236,.45); flex-wrap: wrap; gap: .6rem; }

/* ---------- lightbox ----------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(20, 15, 13, .94);
  display: flex; align-items: center; justify-content: center; padding: 5vh 5vw;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 3px; box-shadow: 0 30px 80px rgba(0,0,0,.5); transform: scale(.94); transition: transform .4s var(--ease); }
.lightbox.is-open img { transform: scale(1); }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; background: none; border: 1px solid rgba(250,245,236,.3); color: var(--cream);
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .3s, border-color .3s;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(250,245,236,.12); border-color: rgba(250,245,236,.6); }
.lightbox__close { top: 2rem; right: 2rem; width: 46px; height: 46px; font-size: 1.2rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox__prev { left: 2rem; }
.lightbox__next { right: 2rem; }

/* ---------- scroll-top ---------------------------------------------------- */
.scroll-top {
  position: fixed; right: 2rem; bottom: 2rem; z-index: 120;
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--cream);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s;
}
.scroll-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--plum); }

/* ---------- cursor -------------------------------------------------------- */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--rose); pointer-events: none; z-index: 400; mix-blend-mode: exclusion;
  transform: translate(-50%, -50%); transition: transform .15s var(--ease-soft), opacity .3s;
  display: none;
}
@media (hover: hover) and (pointer: fine) { .cursor-dot { display: block; } }
.cursor-dot.is-active { transform: translate(-50%, -50%) scale(3.2); }

/* ---------- 404 ----------------------------------------------------------- */
.error-page { min-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--nav-h) 6vw 4rem; }
.error-page .num { font-family: var(--font-display); font-style: italic; font-size: clamp(6rem, 18vw, 12rem); color: var(--plum); line-height: 1; }
.error-page p { margin: 1.2rem 0 2.4rem; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- utility -------------------------------------------------------- */
.center { text-align: center; }
.mt-lg { margin-top: 4rem; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .collection-card,
  .collection-card:nth-child(3n+1),
  .collection-card:nth-child(3n+2),
  .collection-grid--even .collection-card,
  .collection-grid--even .collection-card:nth-child(3n+1),
  .collection-grid--even .collection-card:nth-child(3n+2) { grid-column: span 12; }
  .masonry { column-count: 2; }
  .intro-grid { grid-template-columns: 1fr; gap: 4rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --nav-h: 76px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .section { padding: 5.5rem 0; }
  .masonry { column-count: 1; }
  .illustration-strip { grid-template-columns: 1fr; }
  .stat-row { gap: 2rem; }
  .intro-figure__frame { box-shadow: 12px 12px 0 var(--cream-deep); }
  .intro-figure__tag { left: 0; bottom: -1rem; padding: 1rem 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .lightbox__prev { left: .6rem; width: 42px; height: 42px; }
  .lightbox__next { right: .6rem; width: 42px; height: 42px; }
  .lightbox__close { top: 1rem; right: 1rem; width: 40px; height: 40px; }
  .hero { align-items: center; }
  .detail-meta { gap: 1.6rem 2.2rem; }
  .photo-marquee__track figure { width: 160px; height: 210px; }
  .photo-marquee { padding: 1.8rem 0; }
}
