/* ============================================================
   HEIDI D'AMELIO — V1: Original + New Photos (Claude Design port)
   Warm cream + espresso + cobalt accent. Cormorant Garamond + Inter.
   Photos sit in "gallery matte" frames. No fade masks anywhere.
============================================================ */

:root {
  /* Palette */
  --cream:        #F5EBDA;   /* page background */
  --cream-hi:     #FAF3E7;   /* matte / lighter warm */
  --cream-lo:     #EFE2CC;   /* deeper warm for alt sections */
  --espresso:     #38312B;   /* primary text / headlines */
  --espresso-2:   #6E6157;   /* secondary text, mid-brown */
  --espresso-3:   #9C8E80;   /* faint labels */
  --cobalt:       #1F4FBF;   /* the single accent */
  --line:         rgba(56, 49, 43, 0.16);
  --line-soft:    rgba(56, 49, 43, 0.08);
  --chip-line:    rgba(56, 49, 43, 0.25);

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(90px, 11vw, 160px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Gallery matte treatment (client-approved) */
  --matte-bg: #FAF3E7;
  --matte-pad: 16px;
  --matte-radius: 10px;
  --matte-shadow: 0 14px 34px rgba(56, 49, 43, 0.14);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--espresso);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--espresso); color: var(--cream-hi);
  padding: 10px 18px; border-radius: 6px; font-size: 0.85rem;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 4px;
}

/* ---------- Shared type ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--espresso-2);
}
.kicker--cobalt { color: var(--cobalt); font-size: 11px; }
.dot { color: var(--cobalt); margin: 0 0.35em; font-style: normal; }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--espresso);
}
.h2 em { font-weight: 500; }
.h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-hi);
  background: var(--espresso);
  padding: 17px 34px;
  border-radius: 100px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
  will-change: transform;
}
.btn::after { content: "\2192"; transition: transform 0.4s var(--ease); }
.btn:hover { background: var(--cobalt); color: var(--cream-hi); transform: translateY(-2px); }
.btn:hover::after { transform: translateX(4px); }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) var(--gutter); }
.section--alt { padding: var(--section-y) var(--gutter); background: var(--cream-lo); }
section[id] { scroll-margin-top: 100px; }

/* ---------- Gallery matte (every photo lives in one) ---------- */
.matte {
  background: var(--matte-bg);
  padding: var(--matte-pad);
  border-radius: var(--matte-radius);
  box-shadow: var(--matte-shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.matte:hover { transform: translateY(-5px); box-shadow: 0 24px 48px rgba(56, 49, 43, 0.19); }
.matte img { width: 100%; display: block; border-radius: 0; }

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

/* Two-column section grid: stacks below 860px */
.grid2 {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; align-items: center;
  gap: clamp(48px, 6vw, 96px);
}

/* ============================================================
   NAV  (unchanged from original build)
============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: #F5EBDA;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 18px rgba(56, 49, 43, 0.05);
  transition: box-shadow 0.5s var(--ease);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(18px, 2.4vw, 30px) var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  transition: padding 0.5s var(--ease);
}
.nav.scrolled { box-shadow: 0 6px 24px rgba(56, 49, 43, 0.09); }
.nav.scrolled .nav__inner { padding-top: 14px; padding-bottom: 14px; }
.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__mark { width: 30px; height: 30px; display: block; }
.nav__wordmark { height: 21px; width: auto; display: block; }
.nav__links { display: flex; gap: clamp(20px, 2.5vw, 40px); }
.nav__links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--espresso);
  position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--cobalt); transition: width 0.4s var(--ease);
}
.nav__links a:hover { color: var(--cobalt); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--espresso); border-radius: 100px; padding: 0.7em 1.4em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav__cta:hover { background: var(--espresso); color: var(--cream-hi); }
.nav__right { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 24px); }
.nav__socials { display: flex; align-items: center; gap: 14px; }
.nav__socials a { color: var(--espresso); display: inline-flex; transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.nav__socials a svg { width: 18px; height: 18px; display: block; }
.nav__socials a:hover { color: var(--cobalt); transform: translateY(-2px); }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 22px; position: relative; }
.nav__burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--espresso); transition: transform 0.4s var(--ease), opacity 0.3s; }
.nav__burger span:first-child { top: 4px; }
.nav__burger span:last-child { bottom: 4px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.nav__mobile {
  display: none; flex-direction: column; gap: 6px;
  background: #F5EBDA;
  padding: 0 var(--gutter); max-height: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.5s var(--ease);
}
.nav__mobile a {
  font-family: var(--serif); font-size: 1.8rem; font-weight: 500; color: var(--espresso);
  padding: 10px 0; border-bottom: 1px solid var(--line-soft);
}
.nav__mobile.open { max-height: 70vh; padding: 18px var(--gutter) 32px; }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(140px, 16vw, 200px) var(--gutter) 0;
}
/* Anchored to the content grid: same relationship to name + photo at every screen size */
.hero__watermark {
  position: absolute; left: -1%; top: 50%;
  transform: translateY(-50%);
  width: 61%; aspect-ratio: 1 / 1;
  opacity: 0.06; pointer-events: none; z-index: 0;
}
.hero__watermark img {
  width: 100%; height: auto;
  animation: floatmark 11s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes floatmark {
  from { transform: translateY(-10px); }
  to   { transform: translateY(14px); }
}
.hero__grid {
  position: relative; z-index: 1;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
}
.hero__copy { padding-bottom: 80px; position: relative; z-index: 1; }
.hero__kicker { margin-bottom: 22px; }
.hero__name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(64px, 7.5vw, 110px);
  line-height: 0.95; letter-spacing: -0.015em;
}
.hero__tagline {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 30px; color: var(--cobalt); margin-top: 26px;
}
.hero__sub {
  font-size: 18px; line-height: 1.65; color: var(--espresso-2);
  max-width: 42ch; margin: 16px 0 36px;
}
.hero__figure { position: relative; z-index: 1; }
.hero__glow {
  position: absolute; inset: 12% -6% 0 -6%;
  background: radial-gradient(ellipse at 50% 45%, rgba(31, 79, 191, 0.10), transparent 65%);
}
.hero__figure .matte { position: relative; overflow: hidden; }
.hero__figure .matte img { aspect-ratio: 4 / 4.9; object-fit: cover; object-position: center top; }
/* Ken Burns settle: barely-perceptible zoom-out on load */
body.loaded .hero__figure .matte img { animation: kenburns 12s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }

/* Hero load-in */
.hero__copy, .hero__figure { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
body.loaded .hero__copy { opacity: 1; transform: none; }
body.loaded .hero__figure { opacity: 1; transform: none; transition-delay: 0.15s; }

/* ============================================================
   ABOUT
============================================================ */
.about__grid { grid-template-columns: 0.9fr 1.1fr; }
.about__copy .h2 { margin-top: 16px; }
.about__lead { margin-top: 26px; font-size: 19px; line-height: 1.65; max-width: 46ch; }
.about__body { margin-top: 18px; font-size: 16px; line-height: 1.75; color: var(--espresso-2); max-width: 50ch; }
.pullquote {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 26px; line-height: 1.3; color: var(--espresso);
  margin-top: 32px; padding-left: 22px; border-left: 2px solid var(--cobalt);
}

/* ============================================================
   HER WORLD / PILLARS
============================================================ */
.world { max-width: var(--maxw); margin: 0 auto; }
.world__intro { max-width: 700px; margin-bottom: clamp(60px, 7vw, 100px); }
.world__intro .h2 { margin-top: 16px; }
.world__list { display: flex; flex-direction: column; gap: clamp(70px, 8vw, 120px); }

.pillar {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(40px, 5vw, 80px);
}
.pillar--reverse .pillar__media { order: 2; }
.pillar--reverse .pillar__copy { order: 1; }
.pillar__num { font-family: var(--serif); font-size: 44px; color: var(--espresso-3); display: block; }
.pillar__copy .kicker--cobalt { display: block; margin: 10px 0 8px; }
.pillar__body { margin-top: 18px; font-size: 16px; line-height: 1.75; color: var(--espresso-2); max-width: 48ch; }

/* Multi-photo mattes */
.matte--duo-strength { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.matte--duo-strength .stack { display: flex; flex-direction: column; gap: 14px; }
.matte--duo-strength img.tall { height: 100%; object-fit: cover; }
.matte--duo-strength .stack img { aspect-ratio: 1 / 1.05; object-fit: cover; }
.matte--duo-strength .stack img.flex-crop { object-position: center 25%; }

.matte--duo-love { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.matte--duo-love img.tall { height: 100%; object-fit: cover; object-position: center top; }
.matte--duo-love img.kitchen { aspect-ratio: 3 / 4; object-fit: contain; background: var(--matte-bg); }

/* Single-photo pillar crops (approved) */
.crop-style   { aspect-ratio: 4 / 4.8; object-fit: cover; object-position: center top; }
.crop-pack    { aspect-ratio: 4 / 3.2; object-fit: cover; }
.crop-joy     { aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 60%; }

/* ============================================================
   REACH
============================================================ */
.reach { text-align: center; }
.reach__inner { max-width: 1240px; margin: 0 auto; }
.reach__big {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(90px, 12vw, 170px); line-height: 0.9; color: var(--espresso);
}
.reach__caption { margin-top: 10px; font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--espresso-3); }
.reach__audience { margin: 26px auto 0; font-size: 17px; line-height: 1.7; color: var(--espresso-2); max-width: 52ch; }
.reach__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 44px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--chip-line); border-radius: 100px;
  padding: 12px 18px; font-size: 13.5px; white-space: nowrap;
  color: var(--espresso);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.chip svg { width: 16px; height: 16px; flex: none; }
.chip b { font-weight: 600; }
.chip:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* ============================================================
   COLLABORATE
============================================================ */
.collab__grid { grid-template-columns: 1.05fr 0.95fr; }
.collab__copy .h2 { margin-top: 16px; }
.collab__lead { margin-top: 24px; font-size: 18px; line-height: 1.65; max-width: 46ch; }
.collab__list {
  margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px 28px; font-size: 15px; color: var(--espresso);
}
.collab__list li { padding-left: 18px; position: relative; }
.collab__list li::before { content: "\00B7"; position: absolute; left: 0; color: var(--cobalt); font-weight: 700; }
.collab__copy .btn { margin-top: 36px; }
.collab__media img { aspect-ratio: 4 / 4.6; object-fit: cover; }

/* ============================================================
   CONNECT
============================================================ */
.connect__grid { grid-template-columns: 0.85fr 1.15fr; }
.connect__media img { aspect-ratio: 4 / 4.8; object-fit: cover; object-position: center top; }
.connect__copy .h2 { margin-top: 16px; }
.connect__lead { margin-top: 22px; font-size: 18px; line-height: 1.65; color: var(--espresso-2); max-width: 44ch; }
.connect__rows { margin-top: 36px; display: flex; flex-direction: column; }
.connect__row {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line); font-size: 15px;
}
.connect__row:last-child { border-bottom: 1px solid var(--line); }
.connect__label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--espresso-3); padding-top: 3px;
}
.connect__row a { font-size: 17px; }
.connect__row a:hover { color: var(--cobalt); }
.connect__addr { font-size: 15px; line-height: 1.6; color: var(--espresso-2); }
.connect__socials { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.soc-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 1px solid var(--chip-line); border-radius: 50%;
  color: var(--espresso);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.soc-circle svg { width: 17px; height: 17px; }
.soc-circle:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* ============================================================
   FOOTER
============================================================ */
.footer { border-top: 1px solid var(--line); padding: 44px var(--gutter); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: 11px; }
.footer__brand .mark { width: 34px; height: 34px; display: block; }
.footer__brand .wordmark { height: 20px; width: auto; display: block; }
.footer__nav { display: flex; gap: 26px; font-size: 13px; font-weight: 500; flex-wrap: wrap; }
.footer__nav a:hover { color: var(--cobalt); }
.footer__copyright { font-size: 12px; color: var(--espresso-3); }

/* ============================================================
   REVEALS (with staggered children)
============================================================ */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* Pillar copy cascades in line by line */
.pillar[data-reveal] .pillar__copy > * { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.pillar[data-reveal].in .pillar__copy > *:nth-child(1) { transition-delay: 0.12s; }
.pillar[data-reveal].in .pillar__copy > *:nth-child(2) { transition-delay: 0.2s; }
.pillar[data-reveal].in .pillar__copy > *:nth-child(3) { transition-delay: 0.28s; }
.pillar[data-reveal].in .pillar__copy > *:nth-child(4) { transition-delay: 0.38s; }
.pillar[data-reveal].in .pillar__copy > * { opacity: 1; transform: none; }

/* Social chips cascade in */
[data-reveal] .chip { opacity: 0; transform: translateY(12px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
[data-reveal].in .chip { opacity: 1; transform: none; }
[data-reveal].in .chip:nth-child(1) { transition-delay: 0.05s; }
[data-reveal].in .chip:nth-child(2) { transition-delay: 0.13s; }
[data-reveal].in .chip:nth-child(3) { transition-delay: 0.21s; }
[data-reveal].in .chip:nth-child(4) { transition-delay: 0.29s; }
[data-reveal].in .chip:nth-child(5) { transition-delay: 0.37s; }
[data-reveal].in .chip:nth-child(6) { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .hero__copy, .hero__figure,
  .pillar[data-reveal] .pillar__copy > *, [data-reveal] .chip { opacity: 1; transform: none; transition: none; }
  body.loaded .hero__figure .matte img { animation: none; }
  .hero__watermark img { animation: none; }
  .matte, .matte:hover { transform: none; }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 860px) {
  .grid2, .pillar { grid-template-columns: 1fr; }
  .pillar--reverse .pillar__media { order: 0; }
  .pillar--reverse .pillar__copy { order: 1; }
  .hero { padding-top: 120px; }
  .hero__watermark { display: none; }
  .hero__copy { padding-bottom: 48px; }
  .hero__tagline { font-size: 24px; }
  .nav__links, .nav__socials, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .nav__mobile { display: flex; }
  .collab__list { grid-template-columns: 1fr; }
  .connect__row { grid-template-columns: 100px 1fr; }
  .reach__chips { gap: 8px; }
  .footer__inner { flex-direction: column; text-align: center; }
}
