/* ======================================================================
   MORPH
   Hand-lacquered mirrors. Mother and daughter studio.
   ====================================================================== */


/* ----------------------------------------------------------------------
   1. Fonts
   ---------------------------------------------------------------------- */

@font-face {
  font-family: "PP Rader";
  src: url("../fonts/PPRader-Thin.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Rader";
  src: url("../fonts/PPRader-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Rader";
  src: url("../fonts/PPRader-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src: url("../fonts/Switzer-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../fonts/Switzer-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../fonts/Switzer-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("../fonts/Switzer-Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* ----------------------------------------------------------------------
   2. Tokens
   ---------------------------------------------------------------------- */

:root {
  /* Brand colors */
  --ink:    #191919;
  --paper:  #f7f7f2;
  --cobalt: #0b54f6;
  --blush:  #f8a0ac;

  /* Working derivatives */
  --ink-soft:    rgba(25, 25, 25, 0.72);
  --ink-faint:   rgba(25, 25, 25, 0.45);
  --paper-soft:  rgba(247, 247, 242, 0.78);
  --paper-faint: rgba(247, 247, 242, 0.45);
  --cobalt-soft: rgba(11, 84, 246, 0.14);
  --hairline:    rgba(25, 25, 25, 0.14);
  --hairline-light: rgba(247, 247, 242, 0.18);

  /* Typography */
  --font-display: "PP Rader", "Times New Roman", serif;
  --font-body:    "Switzer", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Type scale */
  --fs-mega:   clamp(56px, 11vw, 168px);
  --fs-hero:   clamp(38px, 6.6vw, 104px);
  --fs-h1:     clamp(34px, 5vw, 80px);
  --fs-h2:     clamp(26px, 3.6vw, 56px);
  --fs-h3:     clamp(22px, 2.4vw, 36px);
  --fs-lead:   clamp(18px, 1.6vw, 24px);
  --fs-body:   17px;
  --fs-small:  14px;
  --fs-micro:  12px;

  /* Layout */
  --gutter:    clamp(20px, 4vw, 64px);
  --section-y: clamp(96px, 14vh, 184px);
  --max-w:     1480px;

  /* Motion */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-slow:  900ms;
  --dur-med:   500ms;
  --dur-fast:  240ms;
}


/* ----------------------------------------------------------------------
   3. Reset and base
   ---------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-soft), opacity var(--dur-fast) var(--ease-soft);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

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


/* ----------------------------------------------------------------------
   4. Type primitives
   ---------------------------------------------------------------------- */

.display, .h1, .h2, .h3, .mega {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.92;
  text-transform: uppercase;
}

.mega    { font-size: var(--fs-mega); }
.display { font-size: var(--fs-hero); }
.h1      { font-size: var(--fs-h1); }
.h2      { font-size: var(--fs-h2); }
.h3      { font-size: var(--fs-h3); line-height: 1.05; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  font-weight: 300;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.subtle {
  color: var(--ink-soft);
}


/* ----------------------------------------------------------------------
   5. Layout primitives
   ---------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  position: relative;
  padding-block: var(--section-y);
}

section + section {
  border-top: 1px solid var(--hairline);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(48px, 8vh, 96px);
  max-width: 880px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cobalt);
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
}

.grid {
  display: grid;
  gap: clamp(20px, 2.4vw, 40px);
}

.col-2 { grid-template-columns: repeat(2, 1fr); }
.col-3 { grid-template-columns: repeat(3, 1fr); }
.col-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .col-2, .col-3, .col-4 { grid-template-columns: 1fr; }
}


/* ----------------------------------------------------------------------
   6. Nav
   ---------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: transparent;
  transition: background var(--dur-med) var(--ease-soft),
              color var(--dur-med) var(--ease-soft),
              backdrop-filter var(--dur-med) var(--ease-soft),
              padding var(--dur-med) var(--ease-soft);
  color: var(--paper);
  mix-blend-mode: difference;
}

.nav.is-condensed {
  background: rgba(25, 25, 25, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--paper);
  mix-blend-mode: normal;
  padding-block: 12px;
  border-bottom: 1px solid var(--hairline-light);
}

.nav__brand {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 20px;
  line-height: 1;
}

.nav > nav {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
}

.nav__links {
  display: flex;
  gap: clamp(14px, 2vw, 32px);
  list-style: none;
}

.nav__links a {
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.82;
}
.nav__links a:hover { opacity: 1; }

.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  margin-left: clamp(12px, 1.5vw, 24px);
}
.nav__lang a {
  opacity: 0.5;
  transition: opacity var(--dur-fast) var(--ease-soft);
}
.nav__lang a:hover { opacity: 1; }
.nav__lang a.is-active { opacity: 1; }
.nav__lang-sep { opacity: 0.35; }

.drawer__lang {
  margin-top: 6vh;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.drawer__lang a { opacity: 0.55; }
.drawer__lang a.is-active { opacity: 1; }

.nav__burger {
  display: none;
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__lang { display: none; }
  .nav__burger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-micro);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
  }
  .nav__burger::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
  }
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 32px var(--gutter);
  transform: translateY(-100%);
  transition: transform var(--dur-med) var(--ease-out);
}
.drawer.is-open { transform: translateY(0); }

.drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer__close {
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.drawer__links {
  margin-top: 8vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}
.drawer__links a {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(40px, 11vw, 88px);
  line-height: 1;
  letter-spacing: -0.01em;
}


/* ----------------------------------------------------------------------
   7. HOME (hero)
   ---------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
  padding: 0;
  border-top: 0;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  transition: transform 12s var(--ease-soft);
  will-change: transform;
}
.hero.is-ready .hero__media img {
  transform: scale(1.0);
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 30%, transparent, rgba(11, 17, 30, 0.45) 80%),
    linear-gradient(180deg, rgba(11, 17, 30, 0.1) 0%, transparent 30%, rgba(11, 17, 30, 0.55) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  color: var(--paper);
}

.hero__inner {
  padding-bottom: clamp(72px, 10vh, 132px);
  max-width: 1200px;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--paper);
  opacity: 0.85;
}

.hero__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: var(--fs-hero);
  line-height: 0.94;
  letter-spacing: -0.012em;
  font-weight: 400;
  color: var(--paper);
}

.hero__title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.hero__title .word > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease-out);
}
.hero.is-ready .hero__title .word > span {
  transform: translateY(0);
}
.hero__title .word:nth-child(2) > span { transition-delay: 0.08s; }
.hero__title .word:nth-child(3) > span { transition-delay: 0.16s; }
.hero__title .word:nth-child(4) > span { transition-delay: 0.24s; }
.hero__title .word:nth-child(5) > span { transition-delay: 0.32s; }
.hero__title .word:nth-child(6) > span { transition-delay: 0.40s; }
.hero__title .word:nth-child(7) > span { transition-delay: 0.48s; }

/* REFLECT enters in brand cobalt, then settles to paper white to draw the eye */
.hero__title .word.word--accent > span {
  color: var(--cobalt);
  transition:
    transform 1.2s var(--ease-out) 0.48s,
    color 1.4s var(--ease-soft) 1.5s;
}
.hero.is-ready .hero__title .word.word--accent > span {
  color: var(--paper);
}

.hero__sub {
  margin-top: 28px;
  max-width: 640px;
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.45;
  color: var(--paper-soft);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.4s var(--ease-out) 0.6s, transform 1.4s var(--ease-out) 0.6s;
}
.hero.is-ready .hero__sub {
  opacity: 1;
  transform: translateY(0);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  opacity: 0;
  transition: opacity 1s var(--ease-soft) 1.4s;
}
@media (max-width: 700px) {
  .hero__scroll { display: none; }
}
.hero.is-ready .hero__scroll { opacity: 0.7; }
.hero__scroll span {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 56px;
  background: currentColor;
  animation: drip 2.6s var(--ease-soft) infinite;
  transform-origin: top;
}
@keyframes drip {
  0%   { transform: scaleY(0); opacity: 0.6; }
  50%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); opacity: 0; }
}


/* ----------------------------------------------------------------------
   8. Marquee strip
   ---------------------------------------------------------------------- */

.marquee {
  background: var(--ink);
  color: var(--paper);
  padding-block: 22px;
  overflow: hidden;
  position: relative;
}
.marquee__track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: scroll-x 38s linear infinite;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -0.005em;
}
.marquee__track span {
  display: inline-flex;
  align-items: center;
  gap: 64px;
}
.marquee__track svg, .marquee__track img {
  width: 22px;
  height: 22px;
  flex: none;
}
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}


/* ----------------------------------------------------------------------
   9. ABOUT
   ---------------------------------------------------------------------- */

.about {
  background: var(--paper);
  color: var(--ink);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: stretch;
}

.about__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--ink);
  max-height: 64vh;
  max-width: 460px;
  width: 100%;
  align-self: center;
  justify-self: center;
}
.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor toward the bottom so the strings at the top of the source photo are cropped out */
  object-position: center 78%;
}

.about__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 36%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.about__caption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: var(--paper);
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.86;
}

.about__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.about__title {
  margin-bottom: 12px;
}

.about__body p { font-size: var(--fs-lead); line-height: 1.55; font-weight: 300; color: var(--ink); }
.about__body p + p { margin-top: 18px; }

.about__note {
  font-size: var(--fs-small);
  font-style: italic;
  color: var(--ink-soft);
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  margin-top: 26px;
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4/5; }
}


/* ----------------------------------------------------------------------
   10. CUSTOM
   ---------------------------------------------------------------------- */

.custom { background: var(--paper); padding-block: clamp(72px, 10vh, 120px); }
.custom .section-head { margin-bottom: clamp(28px, 4vh, 48px); }

/* Horizontal carousel — editorial center-snap.
   Card height is bound to the viewport so the focal card dominates the
   screen but the nav above and the caption below still fit in one view.
   Width follows from a 4:5 aspect ratio. */
.carousel {
  --card-h: clamp(380px, 72vh, 720px);
  --card-w: calc(var(--card-h) * 0.8);
  position: relative;
  margin-top: clamp(12px, 2vh, 24px);
}
.carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-block: 8px;
  cursor: grab;
  overscroll-behavior-x: contain;
  /* Default touch-action allows the browser to route vertical swipes to the
     page while horizontal swipes scroll the carousel. */
}
@media (prefers-reduced-motion: reduce) {
  .carousel__viewport { scroll-behavior: auto; }
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__viewport.is-grabbing { cursor: grabbing; }

.carousel__track {
  display: flex;
  gap: clamp(18px, 2vw, 36px);
  /* Pad so the first and last cards can land in the centre of the viewport */
  padding-inline: calc(50vw - var(--card-w) / 2);
  width: max-content;
}

.carousel__card {
  flex: 0 0 auto;
  width: var(--card-w);
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0.45;
  transform: scale(0.92);
  transform-origin: center 60%;
  transition: opacity var(--dur-med) var(--ease-soft),
              transform var(--dur-med) var(--ease-soft);
}
.carousel__card.is-focal {
  opacity: 1;
  transform: scale(1);
}

.carousel__media {
  position: relative;
  width: 100%;
  height: var(--card-h);
  overflow: hidden;
  background: var(--ink);
}
.carousel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 2.4s var(--ease-soft);
}
.carousel__card.is-focal .carousel__media img { transform: scale(1.02); }

.carousel__cap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-inline: 4px;
  text-align: center;
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-soft);
}
.carousel__card.is-focal .carousel__cap { opacity: 1; }
.carousel__cap em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

@media (max-width: 700px) {
  .carousel {
    --card-h: 60vh;
    --card-w: 78vw;
  }
  .carousel__media { height: var(--card-h); }
}

.carousel__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(14px, 1.6vh, 22px);
}

.carousel__progress {
  position: relative;
  flex: 1;
  height: 2px;
  background: var(--hairline);
  overflow: hidden;
  max-width: 520px;
}
.carousel__progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 12%;
  background: var(--cobalt);
  transition: width var(--dur-fast) var(--ease-soft), transform var(--dur-fast) var(--ease-soft);
}

.carousel__controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel__count {
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  min-width: 64px;
  text-align: right;
}
.carousel__count .sep { margin: 0 4px; color: var(--ink-faint); }

.carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.carousel__btn:hover { background: var(--ink); color: var(--paper); }
.carousel__btn:disabled { opacity: 0.3; cursor: default; }
.carousel__btn:disabled:hover { background: var(--paper); color: var(--ink); }



/* ----------------------------------------------------------------------
   11. COSMOS
   ---------------------------------------------------------------------- */

.cosmos {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.cosmos .section-head .h1 { color: var(--paper); }
.cosmos .section-eyebrow  { color: var(--blush); }

.cosmos__intro {
  color: var(--paper-soft);
  font-weight: 300;
  font-size: var(--fs-lead);
  max-width: 720px;
}

.cosmos__piece {
  margin-top: clamp(56px, 9vh, 120px);
  padding-top: clamp(40px, 6vh, 80px);
  border-top: 1px solid var(--hairline-light);
}

.cosmos__piece-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.cosmos__gallery {
  position: relative;
  aspect-ratio: 4/5;
  background: rgba(0,0,0,0.3);
  overflow: hidden;
  max-height: min(72vh, 720px);
}
.cosmos__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s var(--ease-soft), transform 1.2s var(--ease-soft);
  pointer-events: none;
}
.cosmos__slide.is-current {
  opacity: 1;
  transform: scale(1.0);
  pointer-events: auto;
}
.cosmos__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.cosmos__slide img.cos-pos-top { object-position: center 18%; }

.cosmos__detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cosmos__piece-num { color: var(--blush); }
.cosmos__detail .h2 { color: var(--paper); margin-top: 4px; }
.cosmos__detail p { color: var(--paper-soft); font-weight: 300; font-size: var(--fs-lead); }

.cosmos__meta {
  display: flex;
  gap: 28px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cosmos__meta div {
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.cosmos__meta strong {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--paper);
  text-transform: uppercase;
}

/* Thumbnail row, placed below the description so it doesn't require scrolling */
.cosmos__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline-light);
}
.cosmos__thumb {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--hairline-light);
  opacity: 0.6;
  transition: opacity var(--dur-fast), transform var(--dur-fast), border-color var(--dur-fast);
  cursor: pointer;
  background: rgba(0,0,0,0.3);
}
.cosmos__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cosmos__thumb:hover { opacity: 1; transform: translateY(-2px); }
.cosmos__thumb.is-active {
  opacity: 1;
  border-color: var(--paper);
  box-shadow: 0 0 0 1px var(--paper);
}

/* Reversed: detail on the left, gallery on the right */
.cosmos__piece--reversed .cosmos__piece-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

@media (max-width: 900px) {
  .cosmos__piece-grid,
  .cosmos__piece--reversed .cosmos__piece-grid {
    grid-template-columns: 1fr;
  }
  .cosmos__gallery { max-height: 70vh; }
  /* On mobile, keep image first, detail second, even for reversed pieces */
  .cosmos__piece--reversed .cosmos__detail { order: 2; }
  .cosmos__piece--reversed .cosmos__gallery { order: 1; }
}


/* ----------------------------------------------------------------------
   12. PROCESS
   ---------------------------------------------------------------------- */

.process {
  background: var(--paper);
  color: var(--ink);
  position: relative;
  padding-block: 0;
  border-top: 1px solid var(--hairline);
}

/* The scroller is tall (~4 viewports). The pin inside sticks for the duration. */
.process__scroller {
  position: relative;
  height: 360vh;
}

.process__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  padding-block: clamp(88px, 12vh, 144px) clamp(40px, 5vh, 64px);
}
.process__pin > .wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.process__pin .section-head { flex: 0 0 auto; margin-bottom: clamp(40px, 7vh, 88px); }
.process__pin .process__track { flex: 0 0 auto; margin-bottom: clamp(44px, 8vh, 100px); }
.process__pin .process__stages { flex: 1 1 auto; min-height: 0; }

@media (max-width: 760px) {
  .process__scroller { height: 320vh; }
}

.process__track {
  position: relative;
  height: 150px;
  display: flex;
  align-items: flex-start;
  padding-top: 36px;
  width: 100%;
}

.process__line {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--hairline);
  transform: translateY(-0.5px);
}
.process__line-fill {
  position: absolute;
  top: 36px;
  left: 0;
  height: 2px;
  background: var(--cobalt);
  transform: translateY(-1px);
  width: 0;
  transition: width var(--dur-med) var(--ease-soft);
}

.process__stops {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 1;
  margin-top: -7px; /* center the 14px dot on the line */
}
.process__stop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  width: 120px;
  background: transparent;
  border: 0;
  padding: 0 4px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.process__stop-num { display: none; }
.process__stop:hover .process__stop-label { color: var(--ink); }
.process__stop:hover .process__stop-dot { transform: scale(1.15); }
.process__stop:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 4px; border-radius: 4px; }
.process__stop-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--ink);
  transition: background var(--dur-med), border-color var(--dur-med), transform var(--dur-med);
}
.process__stop.is-reached .process__stop-dot {
  background: var(--cobalt);
  border-color: var(--cobalt);
  transform: scale(1.15);
}
.process__stop-label {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-align: center;
  transition: color var(--dur-med);
}
.process__stop.is-reached .process__stop-label { color: var(--ink); }
.process__stop-num {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

/* Rolling signet */
.process__signet {
  position: absolute;
  top: 36px;
  left: 0;
  width: 84px;
  height: 84px;
  transform: translate(0, -50%);
  will-change: transform;
  z-index: 2;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cobalt);
  box-shadow:
    0 16px 38px rgba(11, 84, 246, 0.36),
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    inset -8px -10px 26px rgba(0, 0, 0, 0.22),
    inset 10px 12px 28px rgba(255, 255, 255, 0.16);
}
.process__signet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.18);
}

/* Stage content */
.process__stages {
  position: relative;
  min-height: 0;
}
.process__stage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-soft), transform 0.6s var(--ease-soft);
  pointer-events: none;
  overflow: visible;
}
.process__stage.is-current {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.process__stage .mega {
  font-size: clamp(72px, 10vw, 168px);
  line-height: 0.86;
  color: var(--cobalt);
  letter-spacing: -0.02em;
}
.process__stage h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 44px);
  margin-bottom: 12px;
  line-height: 1;
}
.process__stage p {
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 560px;
}

@media (max-width: 760px) {
  .process__stages { min-height: 280px; }
  .process__stage { grid-template-columns: 1fr; gap: 12px; }
  .process__stage .mega { font-size: 72px; }
  .process__stop-label { font-size: 10px; line-height: 1.1; }
  .process__stop { width: 64px; gap: 38px; }
  .process__signet { width: 52px; height: 52px; }
  .process__track { height: 130px; padding-top: 28px; }
  .process__line, .process__line-fill { top: 28px; }
  .process__signet { top: 28px; }
}


/* ----------------------------------------------------------------------
   13. CONTACT
   ---------------------------------------------------------------------- */

.contact {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.contact .section-head .h1 { color: var(--paper); }
.contact .section-eyebrow { color: var(--blush); }

.contact__intro {
  color: var(--paper-soft);
  font-weight: 300;
  font-size: var(--fs-lead);
  max-width: 720px;
  margin-bottom: clamp(40px, 6vh, 72px);
}

.form {
  display: grid;
  gap: clamp(28px, 3.4vw, 44px);
  max-width: 900px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
}
@media (max-width: 700px) {
  .form__row { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.field label {
  font-size: var(--fs-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-faint);
}
.field input,
.field textarea,
.field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--hairline-light);
  color: var(--paper);
  padding: 10px 2px;
  font-size: 17px;
  font-weight: 400;
  outline: none;
  border-radius: 0;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--paper-faint);
}
.field input:focus,
.field textarea:focus {
  border-color: var(--blush);
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field label .hint {
  display: block;
  margin-top: 6px;
  letter-spacing: 0;
  text-transform: none;
  font-size: var(--fs-small);
  color: var(--paper-faint);
}

.filepicker {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--hairline-light);
  flex-wrap: wrap;
}
.filepicker__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.filepicker__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  color: var(--ink) !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.filepicker__btn:hover { background: var(--blush); color: var(--ink); }
.filepicker__input:focus-visible + .filepicker__btn {
  outline: 2px solid var(--blush);
  outline-offset: 4px;
}
.filepicker__list {
  font-size: var(--fs-small);
  color: var(--paper-faint);
  word-break: break-word;
}
.filepicker__list.has-files { color: var(--paper); }

.field--full { grid-column: 1 / -1; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  position: relative;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--hairline-light);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--paper);
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast), color var(--dur-fast);
  user-select: none;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip:hover { border-color: var(--paper); }
.chip:has(input:checked) {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-small);
  color: var(--paper);
  cursor: pointer;
  user-select: none;
}
.toggle input {
  position: absolute;
  opacity: 0;
}
.toggle__track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  transition: background var(--dur-fast);
}
.toggle__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  transition: transform var(--dur-fast) var(--ease-out);
}
.toggle input:checked + .toggle__track { background: var(--cobalt); }
.toggle input:checked + .toggle__track::after { transform: translateX(20px); }

.btn {
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.btn:hover { background: var(--cobalt); color: var(--paper); border-color: var(--cobalt); }
.btn:active { transform: translateY(1px); }
.btn::after {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
}

.form__status {
  margin-top: 18px;
  font-size: var(--fs-small);
  color: var(--blush);
  min-height: 1.4em;
}

.contact__aside {
  margin-top: clamp(56px, 8vh, 96px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline-light);
}
@media (max-width: 760px) {
  .contact__aside { grid-template-columns: 1fr; }
}
.contact__aside div .eyebrow { color: var(--paper-faint); }
.contact__aside div p, .contact__aside div a {
  display: block;
  margin-top: 8px;
  font-size: var(--fs-lead);
  font-weight: 300;
  color: var(--paper);
}
.contact__aside div a:hover { color: var(--blush); }


/* ----------------------------------------------------------------------
   14. Footer
   ---------------------------------------------------------------------- */

.foot {
  background: var(--ink);
  color: var(--paper-soft);
  padding: 28px var(--gutter);
  border-top: 1px solid var(--hairline-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.foot__brand {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-size: 18px;
  color: var(--paper);
}


/* ----------------------------------------------------------------------
   15. Reveals (intersection-observer powered)
   ---------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.r-1 { transition-delay: 0.08s; }
.reveal.r-2 { transition-delay: 0.16s; }
.reveal.r-3 { transition-delay: 0.24s; }
.reveal.r-4 { transition-delay: 0.32s; }
.reveal.r-5 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero__title .word > span, .hero__sub, .hero__scroll, .hero__media img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
