/* =========================================================
   Mariana Napolitani — portfolio
   Custom layer on top of tailwind.css. Layout utilities live in the
   markup; this file holds the art direction, effects and motion.
   ========================================================= */

:root {
  --ink: #0b0808;
  --line: rgba(236, 220, 208, 0.11);
  --wine-9: #22090e;
  --wine-8: #3a0f18;
  --wine-7: #541624;
  --wine-6: #6f1e2e;
  --wine-5: #8c2a3b;
  --wine-4: #a94456;
  --sand: #d9b9a5;
  --cream: #efe5dc;
  --mute: #9b8d86;
  --blush: #d59c96;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);
  /* The design is drawn against this width, so the hero scales as one piece. */
  --w: min(100vw, 1565px);
}

/* ---------- base ---------- */
html {
  background: var(--ink);
  scrollbar-gutter: stable;
  scrollbar-color: var(--wine-8) var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-tap-highlight-color: transparent;
}
html.is-locked, html.is-locked body {
  overflow: hidden;
  touch-action: none;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

::selection { background: var(--wine-6); color: var(--cream); }
:focus-visible { outline: 1px solid var(--sand); outline-offset: 4px; }

.wrap {
  width: min(92vw, 1440px);
  margin-inline: auto;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9em;
  font-size: clamp(11px, 0.92vw, 13px);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
}

.spark {
  flex: none;
  width: 0.95em;
  height: 0.95em;
  color: var(--sand);
  animation: twinkle 3.6s ease-in-out infinite;
  transition: rotate 0.8s var(--ease-out);
}
@keyframes twinkle {
  0%, 100% { scale: 1; opacity: 1; }
  50% { scale: 0.6; opacity: 0.55; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.line { display: block; overflow: hidden; }
.line > span { display: block; }

/* ---------- film grain ---------- */
.grain {
  position: fixed;
  inset: -100px;
  z-index: 70;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-40px, 25px); }
  40% { transform: translate(30px, -45px); }
  60% { transform: translate(-25px, -30px); }
  80% { transform: translate(45px, 35px); }
  100% { transform: translate(0, 0); }
}

/* ---------- scroll progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 65; height: 2px; pointer-events: none; }
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--wine-6), var(--sand));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- preloader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(70% 60% at 50% 45%, #2a0b12, var(--ink) 75%);
  clip-path: inset(0);
  transition: clip-path 1.1s var(--ease-io), visibility 0s 1.15s;
}
html:not(.js) .loader { display: none; }
.is-loaded .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader-in {
  width: min(78vw, 26rem);
  text-align: center;
  transition: opacity 0.5s, transform 0.9s var(--ease-io);
}
.is-loaded .loader-in { opacity: 0; transform: translateY(-40px); }
.loader-sign {
  padding: 0.2em 0 0.3em;
  font-family: 'Mrs Saint Delafield', cursive;
  font-size: clamp(52px, 9vw, 84px);
  line-height: 1;
  color: #a13348;
  rotate: -4deg;
  opacity: 0;
}
.fonts-in .loader-sign { opacity: 1; animation: sign-in 1.5s cubic-bezier(0.6, 0.05, 0.3, 1) both; }
@keyframes sign-in {
  from { clip-path: inset(-40% 100% -40% -5%); }
  to { clip-path: inset(-40% -10% -40% -5%); }
}
.loader-row {
  display: flex;
  justify-content: space-between;
  margin-top: 1.4rem;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(239, 229, 220, 0.7);
}
.loader-count { font-variant-numeric: tabular-nums; }
.loader-bar { margin-top: 0.8rem; height: 1px; background: rgba(236, 220, 208, 0.14); }
.loader-bar i { display: block; height: 100%; background: var(--sand); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- custom cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .step { cursor: none; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; will-change: transform; }
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--sand);
  transition: opacity 0.3s, scale 0.3s;
}
.cursor-ring {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(217, 185, 165, 0.55);
  border-radius: 50%;
  transition: width 0.45s var(--ease-out), height 0.45s var(--ease-out), margin 0.45s var(--ease-out),
    background-color 0.35s, border-color 0.35s, opacity 0.3s, scale 0.3s;
}
.cursor-ring span {
  padding-left: 0.22em;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.25s;
}
.cursor.is-link .cursor-ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(140, 42, 59, 0.22); border-color: rgba(169, 68, 86, 0.8); }
.cursor.is-link .cursor-dot { scale: 0.5; }
.cursor.is-view .cursor-ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--sand); border-color: var(--sand); }
.cursor.is-view .cursor-ring span { opacity: 1; }
.cursor.is-view .cursor-dot { opacity: 0; }
.cursor.is-down .cursor-ring { scale: 0.86; }
.cursor.is-hidden .cursor-dot, .cursor.is-hidden .cursor-ring { opacity: 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 96;
  padding: 0.8rem 1.25rem;
  border: 1px solid rgba(217, 185, 165, 0.3);
  background: rgba(22, 7, 10, 0.92);
  backdrop-filter: blur(8px);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  translate: -50% 180%;
  opacity: 0;
  pointer-events: none;
  transition: translate 0.6s var(--ease-out), opacity 0.4s;
}
.toast.is-on { translate: -50% 0; opacity: 1; }

/* ---------- floating nav ---------- */
.dock {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top, 0.75rem));
  left: 50%;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  max-width: calc(100vw - 1.25rem);
  border: 1px solid rgba(236, 220, 208, 0.16);
  border-radius: 999px;
  background: rgba(16, 11, 11, 0.82);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04);
  translate: -50% -170%;
  opacity: 0;
  transition: translate 0.7s var(--ease-out), opacity 0.5s;
}
.dock.is-visible { translate: -50% 0; opacity: 1; }
.dock-brand {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--wine-7);
  font: 500 1.1rem/1 'Imbue', serif;
  letter-spacing: 0.04em;
  color: var(--cream);
  transition: background-color 0.3s;
}
.dock-brand:hover { background: var(--wine-5); }
.dock-links { position: relative; display: flex; align-items: center; }
.dock-links a {
  position: relative;
  z-index: 1;
  padding: 0.62rem 0.85rem;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(239, 229, 220, 0.65);
  transition: color 0.3s;
}
.dock-links a:hover, .dock-links a.is-active { color: var(--cream); }
.dock-pill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border: 1px solid rgba(169, 68, 86, 0.5);
  border-radius: 999px;
  background: rgba(140, 42, 59, 0.38);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out), opacity 0.3s;
}
@media (max-width: 639px) {
  .dock {
    gap: 0.2rem;
    padding: 0.25rem 0.3rem;
  }
  .dock-brand {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.95rem;
  }
  .dock-links a {
    padding: 0.45rem 0.52rem;
    font-size: 8.5px;
    letter-spacing: 0.12em;
  }
}
@media (max-width: 375px) {
  .dock-links a {
    padding: 0.38rem 0.38rem;
    font-size: 7.8px;
    letter-spacing: 0.08em;
  }
}

/* ---------- pill button ---------- */
.pill {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  padding: 0.85rem 1.35rem;
  border: 1px solid rgba(239, 229, 220, 0.55);
  border-radius: 999px;
  font-size: clamp(9.5px, 0.82vw, 11.5px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--cream);
  transition: transform 0.5s var(--ease-out), border-color 0.4s;
}
.pill::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(100deg, var(--wine-7), var(--wine-5));
  transform: translateY(102%);
  transition: transform 0.6s var(--ease-out);
}
.pill::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
}
.pill:hover { border-color: var(--wine-4); }
.pill:hover::before { transform: none; }
.pill:hover::after { left: 130%; transition: left 0.9s ease 0.15s; }
.pill:hover .spark { rotate: 180deg; }

/* ---------- underlined arrow link ---------- */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.4rem 0;
  font-size: clamp(9.5px, 0.8vw, 11px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(239, 229, 220, 0.85);
}
.arrow-link span {
  padding-bottom: 0.25rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out);
}
.arrow-link:hover span { background-size: 100% 1px; }
.arrow-link svg { flex: none; width: 2.4rem; height: 0.75rem; transition: transform 0.5s var(--ease-out); }
@media (max-width: 639px) { .arrow-link { gap: 0.6rem; } .arrow-link svg { width: 1.8rem; } }
.arrow-link:hover svg { transform: translateX(0.5rem); }
.arrow-link--back svg { transform: scaleX(-1); }
.arrow-link--back:hover svg { transform: scaleX(-1) translateX(0.5rem); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; isolation: isolate; overflow: hidden; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(46% 52% at 52% 44%, rgba(132, 34, 52, 0.55), transparent 72%),
    radial-gradient(95% 85% at 50% 28%, #40111b 0%, #2a0b12 42%, #12080a 76%, var(--ink) 100%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0 1px, transparent 1px 7px);
  -webkit-mask-image: radial-gradient(75% 70% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(75% 70% at 50% 40%, #000, transparent);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 32%;
  background: linear-gradient(to bottom, transparent, var(--ink));
}
.hero-dust { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.hero-title {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--w) * 0.004);
  /* The word is stretched to 140% height below; this keeps the layout in step with it. */
  margin-bottom: calc(0.84em * 0.4);
  font-family: 'Imbue', 'Bodoni Moda', Didot, serif;
  font-size: calc(var(--w) * 0.36); /* script.js fits this to the container exactly */
  font-weight: 500;
  font-variation-settings: 'opsz' 100;
  line-height: 0.84;
  text-align: center;
  white-space: nowrap;
  color: var(--sand);
  will-change: transform;
}
.hero-title-in { display: inline-block; transform: scaleY(1.4); transform-origin: 50% 0; }
.hero-title .ch { display: inline-block; overflow: hidden; margin-top: -0.1em; padding-top: 0.1em; vertical-align: top; }
.hero-title .ch i { display: inline-block; font-style: normal; }
.intro-done .hero-title .ch { overflow: visible; }

.hero-figure {
  position: relative;
  z-index: 2;
  width: 118vw;
  height: 122vw;
  margin: -55vw 0 0 50%;
  overflow: hidden;
  translate: -50% 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 58%, transparent 96%);
}
.hero-figure-scroll { will-change: transform; transform-origin: 50% 30%; }
.hero-figure-in { position: relative; will-change: transform; }
.hero-figure-in img { display: block; width: 100%; height: auto; filter: contrast(1.04) saturate(0.88) brightness(0.92); }
/* A burgundy shadow painted only on the figure, so it melts into the backdrop. */
.hero-figure-in::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(90, 20, 34, 0) 12%, rgba(90, 20, 34, 0.3) 48%, rgba(34, 9, 14, 0.88) 100%);
  -webkit-mask: url(assets/hero-cut.webp) center / 100% 100% no-repeat;
  mask: url(assets/hero-cut.webp) center / 100% 100% no-repeat;
  mix-blend-mode: multiply;
}

.hero-row { position: relative; z-index: 3; display: grid; gap: 2.2rem; margin-top: -30vw; padding-bottom: 3rem; }
.hero-tagline {
  font-size: clamp(17px, calc(var(--w) * 0.0185), 28px);
  font-weight: 300;
  line-height: 1.32;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.hero-sign {
  margin-top: clamp(0.9rem, calc(var(--w) * 0.014), 1.5rem);
  padding: 0.1em 0.2em 0.25em 0;
  font-family: 'Mrs Saint Delafield', cursive;
  font-size: clamp(42px, calc(var(--w) * 0.04), 62px);
  line-height: 1;
  white-space: nowrap;
  color: #a13348;
  rotate: -3deg;
  transform-origin: left center;
}
.hero-bio {
  max-width: 34ch;
  font-size: clamp(12.5px, calc(var(--w) * 0.0102), 15.5px);
  line-height: 1.85;
  letter-spacing: 0.02em;
  color: rgba(239, 229, 220, 0.8);
}
.hero-based {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: clamp(9.5px, calc(var(--w) * 0.0078), 11.5px);
  line-height: 1.9;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero-globe {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(239, 229, 220, 0.5);
  border-radius: 50%;
}
.hero-globe svg { width: 1.35rem; height: 1.35rem; animation: spin 22s linear infinite; }

@media (max-width: 767px) {
  .hero-figure {
    width: 100vw;
    height: 105vw;
    margin: -38vw 0 0 50%;
  }
  .hero-row {
    margin-top: -16vw;
    padding-bottom: 2.5rem;
    gap: 1.8rem;
  }
  .hero-tagline {
    font-size: clamp(19px, 5.4vw, 24px);
    text-shadow: 0 2px 14px rgba(11, 8, 8, 0.9);
  }
  .hero-right {
    margin-top: 0.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
  }
  .hero-based {
    justify-content: flex-start;
    flex-direction: row;
    text-align: left;
  }
}

@media (min-width: 768px) {
  .hero { min-height: calc(var(--w) * 0.62); }
  .hero-figure {
    position: absolute;
    top: 0;
    left: 50%;
    width: calc(var(--w) * 0.55);
    height: calc(var(--w) * 0.62);
    margin: 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
  }
  .hero-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-top: calc(var(--w) * 0.012);
    padding-bottom: calc(var(--w) * 0.03);
  }
  .hero-left { width: 31%; }
  .hero-right { width: 21.5%; }
  .hero-based {
    flex-direction: row;
    margin-top: clamp(1.5rem, calc(var(--w) * 0.036), 3.6rem);
    text-align: right;
  }
}

/* Tablet: same composition, with more room for the right column and the roses pushed outwards. */
@media (min-width: 768px) and (max-width: 1099px) {
  .hero-right { width: 28%; }
  .flower--right { top: calc(var(--w) * 0.58); right: calc(var(--w) * -0.22); }
  .flower--left { top: calc(var(--w) * 0.66); left: calc(var(--w) * -0.15); }
}

/* hero entrance (runs once the preloader lifts) */
.js .hero-title .ch i { transform: translateY(108%); }
.is-ready .hero-title .ch i { transform: none; transition: transform 1.35s var(--ease-out) calc(var(--i) * 70ms); }
.js .hero-figure { opacity: 0; transform: translateY(5%) scale(1.05); }
.is-ready .hero-figure { opacity: 1; transform: none; transition: opacity 1.4s ease 0.45s, transform 2s var(--ease-out) 0.45s; }
.js .hero-tagline .line > span { transform: translateY(110%); }
.is-ready .hero-tagline .line > span { transform: none; transition: transform 1.1s var(--ease-out) calc(1.1s + var(--i) * 0.09s); }
.js [data-intro] { opacity: 0; transform: translateY(16px); }
.is-ready [data-intro] { opacity: 1; transform: none; transition: opacity 1s ease var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s); }
.js .hero-sign { clip-path: inset(-40% 100% -40% -5%); }
.is-ready .hero-sign { clip-path: inset(-40% -10% -40% -5%); transition: clip-path 1.8s cubic-bezier(0.6, 0.05, 0.3, 1) 1.7s; }

/* ---------- florals ---------- */
.flower {
  position: absolute;
  z-index: 5;
  height: auto;
  pointer-events: none;
  user-select: none;
  filter: brightness(0.4) saturate(0.62) contrast(1.15) hue-rotate(-6deg) drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
  will-change: transform;
  animation: floaty 11s ease-in-out infinite;
}
.flower--right { top: calc(var(--w) * 0.36); right: calc(var(--w) * -0.162); width: max(130px, calc(var(--w) * 0.22)); rotate: -22deg; }
.flower--left { top: calc(var(--w) * 0.55); left: calc(var(--w) * -0.1); width: max(120px, calc(var(--w) * 0.2)); rotate: 150deg; animation-delay: -5s; }
.flower--footer { right: -3.4rem; bottom: -3.6rem; z-index: 6; width: 10rem; rotate: 28deg; animation-delay: -3s; }
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
@media (max-width: 767px) {
  .flower--right { top: 104vw; }
  .flower--left { display: none; } /* it would sit on the bio text at this width */
  .flower--footer { right: -2rem; bottom: -2rem; width: 7rem; }
}

/* =========================================================
   FRAME
   ========================================================= */
.frame { position: relative; border: 1px solid var(--line); background: linear-gradient(180deg, #120d0d 0%, #0e0a0a 100%); }

/* scroll reveals */
.js [data-reveal=""] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s);
}
.js [data-reveal=""].in { opacity: 1; transform: none; }
.js [data-reveal="lines"] .line > span { transform: translateY(110%); transition: transform 1.1s var(--ease-out) calc(var(--i) * 0.1s); }
.js [data-reveal="lines"].in .line > span { transform: none; }
/* The clip sits on a child: an element that clips itself away is never seen by the observer. */
.js [data-reveal="write"] > span { display: inline-block; clip-path: inset(-40% 100% -40% -5%); transition: clip-path 1.7s cubic-bezier(0.6, 0.05, 0.3, 1) 0.35s; }
.js [data-reveal="write"].in > span { clip-path: inset(-40% -15% -40% -5%); }
.js [data-reveal="clip"] { opacity: 0; transition: opacity 0.6s ease; }
.js [data-reveal="clip"].in { opacity: 1; }
.js [data-reveal="clip"] img { clip-path: inset(100% 0 0 0); scale: 1.25; transition: clip-path 1.3s var(--ease-io), scale 1.8s var(--ease-out), filter 0.6s; }
.js [data-reveal="clip"].in img { clip-path: inset(0); scale: 1; }
.js [data-reveal="orbit"] { opacity: 0; transform: scale(0.9); transition: opacity 1.2s ease 0.15s, transform 1.6s var(--ease-out) 0.15s; }
.js [data-reveal="orbit"].in { opacity: 1; transform: none; }

/* ---------- projects ---------- */
.project { position: relative; padding: 1.25rem; }
.project + .project { border-top: 1px solid var(--line); }
@media (min-width: 768px) {
  .project { padding: 1.5rem 1.5rem 1.6rem; }
  .project + .project { border-top: 0; border-left: 1px solid var(--line); }
}
.project-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; }
.project-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-variant-numeric: lining-nums;
  line-height: 0.9;
  color: rgba(239, 229, 220, 0.78);
  transition: color 0.4s;
}
.project:hover .project-num { color: var(--sand); }
.project-head h3 { font-size: clamp(11.5px, 0.95vw, 13.5px); letter-spacing: 0.2em; text-transform: uppercase; }
.project-head p { margin-top: 0.4rem; font-size: 10.5px; letter-spacing: 0.08em; color: var(--mute); }

.mock-btn {
  position: relative;
  display: block;
  width: 100%;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  transition: transform 0.7s var(--ease-out), box-shadow 0.5s;
  cursor: pointer;
}
.mock-btn:hover { box-shadow: 0 34px 60px -26px #000, 0 0 0 1px rgba(217, 185, 165, 0.22); }
.mock-btn:active { transform: scale(0.985); }

.mock-cue {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 9, 11, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(236, 220, 208, 0.22);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  pointer-events: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.mock-cue svg { width: 1.1rem; height: 0.45rem; transition: transform 0.3s; }
.mock-btn:hover .mock-cue { background: var(--wine-7); border-color: var(--sand); }
.mock-btn:hover .mock-cue svg { transform: translateX(3px); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.tags li {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(239, 229, 220, 0.8);
  transition: border-color 0.4s, background-color 0.4s;
}
.project:hover .tags li { border-color: rgba(217, 185, 165, 0.26); }

/* ---------- miniature site mockups (sized in container units so they scale) ---------- */
.mock { position: relative; aspect-ratio: 4 / 3; overflow: hidden; container-type: inline-size; background: #1a1012; text-align: left; }
.mock-page { position: absolute; top: 0; left: 0; width: 100%; transition: transform 2.4s cubic-bezier(0.5, 0, 0.15, 1); }
.mock-btn:hover .mock-page, .mock-btn:focus-visible .mock-page { transform: translateY(calc(75cqw - 100%)); }
.mock-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(60cqw circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 235, 220, 0.18), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.mock-btn:hover .mock-glare { opacity: 1; }

/* --- browser chrome mockup bar --- */
.m-browser {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2cqw, 12px);
  height: clamp(24px, 6.2cqw, 34px);
  padding: 0 clamp(10px, 3.5cqw, 18px);
  background: rgba(10, 6, 8, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}
.m-dots { display: flex; gap: clamp(4px, 1.1cqw, 7px); }
.m-dots i {
  display: block;
  width: clamp(5.5px, 1.6cqw, 8.5px);
  height: clamp(5.5px, 1.6cqw, 8.5px);
  border-radius: 50%;
  background: rgba(239, 229, 220, 0.3);
}
.mock--velvet .m-dots i:first-child { background: #b8324f; }
.mock--aurora .m-dots i:first-child { background: #c98863; }
.mock--mind .m-dots i:first-child { background: #bda592; }
.m-url {
  margin: 0 auto;
  padding: clamp(2px, 0.6cqw, 4px) clamp(8px, 2.5cqw, 14px);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(8.5px, 2.2cqw, 12px);
  letter-spacing: 0.06em;
  color: rgba(239, 229, 220, 0.7);
}

/* --- mockup navigation --- */
.m-nav {
  display: flex;
  align-items: center;
  gap: clamp(6px, 2.2cqw, 12px);
  height: clamp(34px, 9cqw, 48px);
  padding: 0 clamp(10px, 4cqw, 20px);
}
.m-nav em {
  margin-right: auto;
  font: italic 500 clamp(13px, 4.2cqw, 20px)/1 'Cormorant Garamond', serif;
  letter-spacing: 0.04em;
  color: rgba(239, 229, 220, 0.95);
}
.m-nav-link {
  font-size: clamp(8px, 2.1cqw, 11px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(239, 229, 220, 0.65);
}
.m-nav b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(20px, 4.2cqw, 26px);
  padding: 0 clamp(8px, 2.2cqw, 14px);
  margin-left: 0.5rem;
  border: 1px solid rgba(239, 229, 220, 0.35);
  border-radius: 99px;
  font-size: clamp(7.5px, 2cqw, 10.5px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(239, 229, 220, 0.92);
  background: rgba(255, 255, 255, 0.04);
}

/* --- mockup hero --- */
.m-hero {
  position: relative;
  height: clamp(170px, 54cqw, 260px);
  overflow: hidden;
}
.m-copy {
  position: relative;
  z-index: 2;
  width: 64%;
  padding: clamp(14px, 5cqw, 24px) 0 0 clamp(12px, 4.5cqw, 22px);
}
.m-tag {
  display: inline-block;
  font-size: clamp(8px, 2.1cqw, 10.5px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(217, 185, 165, 0.85);
  margin-bottom: clamp(4px, 1.4cqw, 8px);
}
.m-copy h4 {
  font: 500 clamp(16px, 7.6cqw, 28px)/1.08 'Cormorant Garamond', serif;
  letter-spacing: -0.01em;
  color: #f3e7dc;
}
.m-desc {
  margin-top: clamp(4px, 1.6cqw, 10px);
  max-width: clamp(130px, 35cqw, 220px);
  font-size: clamp(8.5px, 2.3cqw, 12px);
  line-height: 1.42;
  color: rgba(239, 229, 220, 0.72);
}
.m-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(8px, 2.8cqw, 16px);
  padding: clamp(4px, 1cqw, 7px) clamp(10px, 2.6cqw, 16px);
  border-radius: 99px;
  background: #a82b40;
  color: #fff;
  font-size: clamp(8px, 2.1cqw, 11px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  box-shadow: 0 0.8cqw 2cqw rgba(0, 0, 0, 0.35);
}
.m-cta i { font-style: normal; }
.m-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  background-position: center;
  background-size: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 32%);
  mask-image: linear-gradient(to right, transparent 0%, #000 32%);
}

/* --- Velvet Studio specific --- */
.mock--velvet .mock-page { background: linear-gradient(160deg, #5b1422, #390d16 58%, #20070c); }
.mock--velvet .m-photo { filter: saturate(0.92) contrast(1.06) brightness(0.9); }
.m-band {
  padding: clamp(12px, 4cqw, 22px);
  background: #130a0d;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.m-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6rem;
  background: #231216;
  box-shadow: 0 3cqw 6cqw rgba(0, 0, 0, 0.55);
}
.m-window-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: clamp(4px, 1.4cqw, 8px) clamp(8px, 2.2cqw, 14px);
  background: #1d0e12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.m-window-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.m-window-bar span {
  margin-left: 0.3rem;
  font-size: clamp(8px, 2cqw, 10.5px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(239, 229, 220, 0.55);
}
.m-window-body {
  display: flex;
  align-items: center;
  gap: clamp(8px, 3.2cqw, 18px);
  padding: clamp(8px, 2.8cqw, 16px);
  background: #440f1a;
}
.m-window-photo {
  flex: none;
  width: clamp(85px, 32cqw, 150px);
  height: clamp(60px, 22cqw, 105px);
  border-radius: 0.4rem;
  background-position: center;
  background-size: cover;
  box-shadow: 0 2cqw 4cqw rgba(0, 0, 0, 0.4);
}
.m-window-text h5 { font: 500 clamp(11px, 3.6cqw, 17px)/1.2 'Cormorant Garamond', serif; color: #f3e7dc; }
.m-window-text p { margin-top: clamp(3px, 1cqw, 6px); font-size: clamp(8px, 2.1cqw, 11px); line-height: 1.4; color: rgba(239, 229, 220, 0.72); }
.m-view-link {
  display: inline-block;
  margin-top: clamp(4px, 1.4cqw, 8px);
  font-size: clamp(8px, 2cqw, 10.5px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
}

/* --- Aurora Shop specific --- */
.mock--aurora .mock-page { background: linear-gradient(160deg, #382820, #221813 60%, #17100d); }
.mock--aurora .m-cta { background: #b58d71; color: #1a100d; }
.mock--aurora .m-photo { background-position: center 25%; filter: contrast(1.04) brightness(0.98); }
.m-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(6px, 2.2cqw, 12px);
  padding: clamp(10px, 3.5cqw, 18px) clamp(10px, 4cqw, 20px);
  background: #17110e;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.m-prod { display: flex; flex-direction: column; gap: 0.4rem; }
.m-prod-img {
  width: 100%;
  height: clamp(75px, 26cqw, 125px);
  border-radius: 0.4rem;
  background-position: center;
  background-size: cover;
  box-shadow: 0 2cqw 4cqw rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease;
}
.m-prod-info { display: flex; justify-content: space-between; align-items: center; }
.m-prod-info h6 { font-size: clamp(8.5px, 2.3cqw, 11.5px); letter-spacing: 0.06em; color: #f3e7dc; font-weight: 400; }
.m-prod-info span { font-size: clamp(8px, 2.1cqw, 11px); font-family: ui-monospace, monospace; color: #c9a58a; }

/* --- Mindspace specific --- */
.mock--mind .mock-page { background: linear-gradient(160deg, #443731, #2b221d 60%, #1a1411); }
.mock--mind .m-cta { background: #c5a894; color: #201713; }
.mock--mind .m-photo--mind {
  filter: contrast(1.03) brightness(0.95);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 35%);
  mask-image: linear-gradient(to right, transparent 0%, #000 35%);
}
.m-band--mind {
  padding: clamp(10px, 3.5cqw, 18px) clamp(10px, 4cqw, 20px);
  background: #181310;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.m-app-showcase {
  display: flex;
  align-items: center;
  gap: clamp(8px, 3.2cqw, 18px);
  padding: clamp(8px, 2.5cqw, 15px);
  border-radius: 0.6rem;
  background: linear-gradient(135deg, rgba(84, 22, 36, 0.4), rgba(40, 25, 22, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.m-app-screen {
  flex: none;
  width: clamp(80px, 28cqw, 140px);
  height: clamp(62px, 22cqw, 105px);
  border-radius: 0.4rem;
  background-position: center;
  background-size: cover;
  box-shadow: 0 2cqw 4cqw rgba(0, 0, 0, 0.45);
}
.m-app-info { flex: 1; }
.m-app-info .m-serif { font: 400 clamp(12px, 4cqw, 19px)/1.15 'Cormorant Garamond', serif; color: #f3e7dc; }
.m-sub { margin-top: clamp(3px, 0.8cqw, 6px); font-size: clamp(8px, 2.1cqw, 11px); line-height: 1.4; color: rgba(239, 229, 220, 0.68); }
.m-pills { display: flex; gap: clamp(4px, 1.2cqw, 8px); margin-top: clamp(5px, 1.8cqw, 10px); }
.m-pills span {
  padding: clamp(3px, 0.8cqw, 5px) clamp(6px, 1.8cqw, 11px);
  font-size: clamp(7.5px, 2cqw, 10px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(239, 229, 220, 0.3);
  border-radius: 99px;
  color: rgba(239, 229, 220, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

/* --- gallery / project cards --- */
.m-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(6px, 2.2cqw, 12px);
  padding: clamp(10px, 3.5cqw, 18px) clamp(10px, 4cqw, 20px);
  background: rgba(0, 0, 0, 0.3);
}
.m-card {
  position: relative;
  height: clamp(60px, 19cqw, 95px);
  border-radius: 0.4rem;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1.5cqw 3cqw rgba(0, 0, 0, 0.3);
}
.m-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.8));
}
.m-card span {
  position: absolute;
  bottom: clamp(4px, 1.4cqw, 8px);
  left: clamp(6px, 1.8cqw, 10px);
  z-index: 2;
  font-size: clamp(8px, 2.2cqw, 10.5px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #efe5dc;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ---------- process ---------- */
.process { position: relative; overflow: hidden; padding: 1.25rem; }
@media (min-width: 768px) { .process { padding: 1.75rem; } }
.steps { position: relative; z-index: 2; display: grid; gap: 1.1rem; max-width: 21rem; margin-top: 1.7rem; }
.step { display: grid; grid-template-columns: 2.8rem 1fr; align-items: start; outline-offset: 6px; }
.step > * { opacity: 0.45; transition: opacity 0.5s; }
.step.is-active > * { opacity: 1; }
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--mute);
  transition: color 0.5s, opacity 0.5s;
}
.step.is-active .step-num { color: var(--sand); }
.step h3 { display: flex; align-items: center; gap: 0.7rem; font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; }
.step h3::after { content: ""; width: 0; height: 1px; background: var(--wine-4); transition: width 0.7s var(--ease-out); }
.step.is-active h3::after { width: 2.2rem; }
.step p { max-width: 26ch; margin-top: 0.3rem; font-size: 11px; line-height: 1.6; letter-spacing: 0.04em; color: var(--mute); }

.orbit { position: relative; width: 82%; aspect-ratio: 1; margin: 2rem -14% 0.25rem auto; }
@media (min-width: 640px) {
  .orbit { position: absolute; top: 50%; right: -11%; width: min(60%, 27rem); margin: 0; translate: 0 -44%; }
}
.orbit-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg) scaleY(-1); }
.orbit-track { fill: none; stroke: rgba(236, 220, 208, 0.16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.orbit-arc {
  fill: none;
  stroke: var(--wine-4);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  vector-effect: non-scaling-stroke;
  transition: stroke-dashoffset 1.2s var(--ease-io);
}
.orbit-rose { position: absolute; top: 2%; left: 10%; width: 46%; transform-origin: 60% 90%; animation: sway 9s ease-in-out infinite; }
.orbit-rose img { display: block; width: 100%; height: auto; rotate: -24deg; filter: brightness(0.46) saturate(0.64) contrast(1.15) hue-rotate(-6deg) drop-shadow(0 20px 30px rgba(0, 0, 0, 0.55)); }
@keyframes sway {
  0%, 100% { rotate: -3deg; }
  50% { rotate: 4deg; }
}
.orbit-quote {
  position: absolute;
  top: 58%;
  left: 17%;
  font: 400 clamp(15px, 1.25vw, 19px) / 1.45 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
  color: #c0958c;
}
.orbit-count {
  position: absolute;
  top: 87%;
  left: 24%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.26em;
  color: var(--mute);
}
@media (max-width: 639px) {
  .orbit {
    width: min(84vw, 21rem);
    margin: 2.2rem auto 0.6rem;
  }
  .orbit-rose { width: 44%; left: 14%; top: 4%; }
  .orbit-quote { top: 52%; left: 20%; font-size: 16px; }
  .orbit-count { top: 85%; left: 34%; }
}
.orbit-count span { color: var(--sand); }
.orbit-count i { width: 1.4rem; height: 1px; background: var(--line); }

/* ---------- tools ---------- */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-top: 1.7rem; }
.tool { position: relative; isolation: isolate; display: flex; align-items: center; gap: 1rem; overflow: hidden; padding: 0.9rem 1rem; background: #1a1313; }
.tool::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(140, 42, 59, 0.45), transparent 62%);
  opacity: 0;
  transition: opacity 0.5s;
}
.tools:hover .tool::before { opacity: 1; }
.tool::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; pointer-events: none; transition: border-color 0.4s; }
.tool:hover::after { border-color: rgba(213, 156, 150, 0.35); }
.tool-ico { flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; color: var(--blush); transition: transform 0.6s var(--ease-out); }
.tool-ico svg { width: 100%; height: 100%; }
.tool-ico--box { border-radius: 0.3rem; background: var(--blush); font: 600 0.78rem/1 'Montserrat', sans-serif; letter-spacing: -0.02em; color: #2a1214; }
.tool-ico--w { font: italic 600 1.4rem/1 'Montserrat', sans-serif; letter-spacing: -0.06em; }
.tool:hover .tool-ico { transform: scale(1.14) rotate(-6deg); }
.tool-name { font-size: clamp(10px, 0.82vw, 11.5px); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(239, 229, 220, 0.88); }

@media (max-width: 639px) {
  .tools { gap: 0.5rem; }
  .tool { padding: 0.75rem 0.85rem; gap: 0.75rem; border-radius: 0.35rem; }
  .tool-name { font-size: 10px; letter-spacing: 0.16em; }
}

/* ---------- kind words ---------- */
.quote { position: relative; display: grid; grid-template-columns: 2.7rem 1fr; align-content: start; column-gap: 0.4rem; padding: 1.6rem 1.25rem 1.75rem; }
@media (min-width: 768px) {
  .quote { padding: 1.75rem; }
  .quote + .quote::before { content: ""; position: absolute; top: 1.75rem; bottom: 1.75rem; left: 0; width: 1px; background: var(--line); }
}
@media (max-width: 767px) {
  .quote { padding: 1.4rem 1.15rem 1.5rem; }
  .quote + .quote { border-top: 1px solid var(--line); }
}
.quote-mark {
  height: 2rem;
  font: 500 4.6rem/0.8 'Cormorant Garamond', serif;
  color: var(--wine-5);
  transition: transform 0.6s var(--ease-out), color 0.4s;
}
.quote:hover .quote-mark { color: var(--wine-4); transform: translateY(-4px) scale(1.08); }
.quote blockquote { font: 400 clamp(14.5px, 1.12vw, 16.5px) / 1.55 'Cormorant Garamond', serif; color: rgba(239, 229, 220, 0.86); }
.quote figcaption { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.95rem; margin-top: 1.5rem; }
.quote figcaption img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.05);
  box-shadow: 0 0 0 1px rgba(217, 185, 165, 0.35), 0 0 0 5px rgba(140, 42, 59, 0);
  transition: filter 0.5s, box-shadow 0.5s;
}
.quote:hover figcaption img { filter: none; box-shadow: 0 0 0 1px var(--wine-4), 0 0 0 5px rgba(140, 42, 59, 0.25); }
.quote cite { display: block; font-size: 10.5px; font-style: normal; letter-spacing: 0.24em; text-transform: uppercase; }
.quote small { display: block; margin-top: 0.3rem; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }

/* ---------- contact ---------- */
.contact { position: relative; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.contact-grid { display: grid; }
.contact-cell { position: relative; padding: 1.6rem 1.25rem; }
.contact-cell--line { border-top: 1px solid var(--line); }
.contact-photo-col { display: none; }
.cta-title { font-size: clamp(20px, 1.9vw, 27px); font-weight: 300; line-height: 1.25; letter-spacing: 0.08em; text-transform: uppercase; }
.cta-script {
  width: max-content;
  margin-top: 0.05em;
  padding: 0.12em 0.2em 0.18em 0;
  font-family: 'Mrs Saint Delafield', cursive;
  font-size: clamp(66px, 6.4vw, 98px);
  line-height: 0.9;
  white-space: nowrap;
  color: #a13348;
  rotate: -4deg;
  transform-origin: left center;
}
.contact-list { display: grid; align-content: center; gap: 1.2rem; }
.contact-list a, .contact-list button, .contact-static {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: clamp(9.5px, 0.8vw, 11px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(239, 229, 220, 0.86);
}
.contact-list svg { flex: none; width: 1.2rem; height: 1.2rem; color: var(--blush); transition: transform 0.5s var(--ease-out); }
.contact-list a > span, .contact-list button > span {
  padding-bottom: 0.2rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.5s var(--ease-out);
}
.contact-list a:hover > span, .contact-list button:hover > span { background-size: 100% 1px; }
.contact-list a:hover svg, .contact-list button:hover svg { transform: translateY(-2px) scale(1.12); }

.thanks {
  order: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.05rem 1rem;
  background: linear-gradient(90deg, #2a0b12, #45131e 50%, #2a0b12);
  font-size: clamp(9.5px, 0.8vw, 11px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(239, 229, 220, 0.9);
}
.contact-photo { order: 2; position: relative; overflow: hidden; width: calc(100% - 2.5rem); max-width: 20rem; aspect-ratio: 4 / 4.4; margin: 0 1.25rem 1.6rem; border: 1px solid rgba(239, 229, 220, 0.26); background: #151010; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; filter: grayscale(1) contrast(1.12) brightness(0.95); }
.contact-photo:hover img { filter: grayscale(0.2) contrast(1.05); }

@media (max-width: 1023px) {
  .contact-photo {
    margin: 1.5rem auto 2rem;
    width: min(84vw, 19rem);
  }
  .flower--footer { display: none; }
  .contact-list a, .contact-list button, .contact-static {
    min-height: 44px;
  }
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1.05fr 1fr 1.2fr 0.95fr; }
  .contact-cell { padding: 2.1rem 1.75rem 2.3rem; }
  .contact-cell--line { border-top: 0; }
  .contact-cell--line::before { content: ""; position: absolute; top: 1.75rem; bottom: 1.75rem; left: 0; width: 1px; background: var(--line); }
  .contact-photo-col { display: block; }
  .contact-photo { position: absolute; top: -1.1rem; right: 2rem; bottom: 0.8rem; z-index: 2; width: auto; max-width: none; aspect-ratio: 4 / 5.1; margin: 0; box-shadow: 0 30px 50px -25px #000; }
}

/* =========================================================
   CASE STUDY OVERLAY
   ========================================================= */
.case { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 4vh 4vw; }
.case[hidden] { display: none; }
.case-backdrop { position: absolute; inset: 0; background: rgba(8, 5, 5, 0.84); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.5s; }
.case.is-open .case-backdrop { opacity: 1; }
.case-panel {
  position: relative;
  display: grid;
  width: min(1120px, 100%);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #151010, #0e0a0a);
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out);
}
.case.is-open .case-panel { opacity: 1; transform: none; }
@media (min-width: 900px) { .case-panel { grid-template-columns: 1.25fr 1fr; } }
.case-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.25rem, 3.4vw, 3rem);
  background: radial-gradient(80% 80% at 50% 40%, #3a0f18, #16070a);
}
.case-stage .mock { width: 100%; box-shadow: 0 40px 80px -30px #000; }
.case-stage .mock-page { animation: mock-scroll 9s cubic-bezier(0.6, 0, 0.4, 1) 0.8s infinite alternate; }
@keyframes mock-scroll {
  0%, 12% { transform: translateY(0); }
  88%, 100% { transform: translateY(calc(75cqw - 100%)); }
}
.case-info { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.75rem); }
.case-stage, .case-info { transition: opacity 0.26s ease, transform 0.4s var(--ease-out); }
.case-panel.is-swapping .case-stage, .case-panel.is-swapping .case-info { opacity: 0; transform: translateY(10px); }
.case-count { display: flex; align-items: center; gap: 0.8rem; font-size: 10.5px; letter-spacing: 0.3em; color: var(--mute); }
.case-count i { width: 2rem; height: 1px; background: var(--line); }
.case-title { margin-top: 1.2rem; font: 500 clamp(46px, 5.6vw, 82px) / 0.9 'Imbue', serif; font-variation-settings: 'opsz' 100; text-transform: uppercase; color: var(--sand); }
.case-cat { margin-top: 0.9rem; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blush); }
.case-desc { margin-top: 1.4rem; font: 400 17px/1.6 'Cormorant Garamond', serif; color: rgba(239, 229, 220, 0.86); }
.case-meta { display: grid; gap: 0.7rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.case-meta div { display: grid; grid-template-columns: 4.5rem 1fr; font-size: 10.5px; line-height: 1.6; letter-spacing: 0.14em; text-transform: uppercase; }
.case-meta dt { color: var(--mute); }
.case-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.8rem; }
.case-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(11, 8, 8, 0.6);
  transition: transform 0.5s var(--ease-out), border-color 0.3s;
}
.case-close svg { width: 1rem; height: 1rem; }
.case-close:hover { border-color: var(--wine-4); transform: rotate(90deg); }

@media (max-width: 767px) {
  .case {
    padding: max(0.4rem, env(safe-area-inset-top, 0.4rem)) 0.4rem max(0.4rem, env(safe-area-inset-bottom, 0.4rem));
    align-items: flex-end;
  }
  .case-panel {
    max-height: 94vh;
    border-radius: 1.25rem 1.25rem 0.5rem 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .case-close {
    position: sticky;
    top: 0.75rem;
    right: 0.75rem;
    margin-left: auto;
    margin-bottom: -2.6rem;
    z-index: 30;
    background: rgba(18, 9, 12, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  }
  .case-stage {
    padding: 1.25rem 0.75rem;
  }
  .case-info {
    padding: 1.5rem 1.25rem 2rem;
  }
  .case-title {
    font-size: clamp(36px, 11vw, 54px);
    margin-top: 0.8rem;
  }
  .case-desc {
    font-size: 15px;
    line-height: 1.55;
    margin-top: 1rem;
  }
  .case-nav {
    padding-top: 1.4rem;
  }
  .case-nav button {
    min-height: 44px;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .grain { display: none; }
}
