/* ==========================================================================
   Pretty by Paige
   Palette: Parchment #F2EFEA · Cool Steel #8DA1B9 · White · Ink (deep steel)
   ========================================================================== */

:root {
  --parchment: #F2EFEA;
  --parchment-deep: #E7E2DA;
  --steel: #8DA1B9;
  --steel-soft: #C9D3DF;
  --steel-mist: #E6EBF1;
  --white: #FFFFFF;
  --ink: #26303B;
  --ink-soft: #55606D;

  --serif: 'Libre Caslon Condensed', 'Times New Roman', serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --frame: clamp(8px, 1.1vw, 14px);
  --radius: clamp(18px, 2.2vw, 30px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --section-y: clamp(110px, 15vw, 220px);
}

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

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 1s var(--ease);
  overflow-x: clip;
}
body[data-theme="white"] { background: var(--white); }
body[data-theme="parchment"] { background: var(--parchment); }
body[data-theme="steel"] { background: var(--steel); }
body.is-locked { overflow: hidden; }

img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ul, ol { list-style: none; padding: 0; }
em { font-style: italic; }
::selection { background: var(--steel); color: var(--white); }

:focus-visible { outline: 2px solid var(--steel); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 99px;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

/* Sections paint their own colour without JS; with JS the body colour shifts instead */
section, .footer { position: relative; }
.hello, .chair, .contact { background: var(--white); }
.about, .reviews { background: var(--parchment); }
.work, .footer { background: var(--steel); }
.js .hello, .js .chair, .js .contact, .js .about, .js .reviews, .js .work { background: transparent; }

/* ---------- Type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.2vw, 5.6rem);
  line-height: .95;
  letter-spacing: -0.01em;
}
.display--xl { font-size: clamp(4rem, 13vw, 12rem); line-height: .85; }
.display em, .hero__title em, .contact__title em { font-weight: 400; }
[data-split-lines] > span { display: block; }
.line-mask { display: block; overflow: hidden; padding: 0 .12em .2em 0; margin: 0 -.12em -.2em 0; }
.line-mask > span { display: block; will-change: transform; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.eyebrow svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.eyebrow--light { color: var(--white); }

.lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-soft); max-width: 44ch; }

.tag {
  display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 10px;
}

/* ---------- Logo (mask so it can take any colour) ---------- */
.logo {
  display: inline-block;
  aspect-ratio: 740 / 440;
  width: 108px;
  background: currentColor;
  -webkit-mask: url('../assets/img/logo-mask.png') center / contain no-repeat;
          mask: url('../assets/img/logo-mask.png') center / contain no-repeat;
}
.logo--curtain { width: min(300px, 62vw); color: var(--ink); }
.logo--xl { width: 100%; }

/* ---------- Pill button with half-moon ears (nod to the reference) ---------- */
.pill {
  --pill-bg: var(--ink); --pill-fg: var(--white);
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 26px;
  border-radius: 12px;
  background: var(--pill-bg); color: var(--pill-fg);
  font-size: .92rem; font-weight: 500; letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.pill::before, .pill::after {
  content: ''; position: absolute; top: 50%; width: 8px; height: 16px; background: var(--pill-bg);
  transform: translateY(-50%); transition: background-color .4s var(--ease), transform .5s var(--ease);
}
.pill::before { left: -12px; border-radius: 16px 0 0 16px; }
.pill::after { right: -12px; border-radius: 0 16px 16px 0; }
.pill span { position: relative; }
.pill:hover::before { transform: translate(5px, -50%); }
.pill:hover::after { transform: translate(-5px, -50%); }
.pill--light { --pill-bg: var(--white); --pill-fg: var(--ink); }
.pill--ghost { --pill-bg: var(--steel); --pill-fg: var(--ink); margin-top: 32px; }

/* ==========================================================================
   Curtain (opening moment)
   ========================================================================== */
.curtain {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: var(--parchment);
  pointer-events: none;
}
.no-js .curtain, .curtain.is-done { display: none; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; z-index: 100;
  top: var(--frame); left: var(--frame); right: var(--frame);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px clamp(18px, 3vw, 40px);
  color: var(--white);
  border-radius: calc(var(--radius) - 6px);
  transition: color .5s var(--ease), background-color .5s var(--ease), backdrop-filter .5s, box-shadow .5s, transform .6s var(--ease);
}
.nav__brand { justify-self: start; display: flex; }
.nav__brand .logo { width: clamp(84px, 7.6vw, 112px); }
.nav__links { display: flex; gap: clamp(24px, 3vw, 44px); font-size: .95rem; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { justify-self: end; margin-right: 12px; --pill-bg: var(--white); --pill-fg: var(--ink); }

.nav.is-solid {
  color: var(--ink);
  background: rgba(242, 239, 234, .78);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
          backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(38, 48, 59, .06);
}
.nav.is-solid .nav__cta { --pill-bg: var(--ink); --pill-fg: var(--white); }
.nav.is-hidden { transform: translateY(calc(-100% - var(--frame) - 8px)); }

.nav__toggle { display: none; justify-self: end; width: 44px; height: 44px; position: relative; }
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.menu-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }
.menu-open .nav { color: var(--ink); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--parchment);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path .9s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu nav a {
  font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 14vw, 5rem); line-height: 1.05;
  display: flex; align-items: baseline; gap: 14px;
}
.menu nav small { font-family: var(--sans); font-size: .8rem; color: var(--ink-soft); }
.menu__foot { display: flex; flex-direction: column; gap: 6px; color: var(--ink-soft); }

/* ==========================================================================
   Hero — the moving grid
   ========================================================================== */
.hero { padding: var(--frame); background: var(--parchment); }
.hero__frame {
  position: relative;
  height: calc(100svh - var(--frame) * 2);
  min-height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--parchment);
}
.hero__grid {
  position: absolute; inset: 0;
  z-index: 0; /* keeps each tile's dark overlay behind the hero text */
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 1fr);
  grid-template-rows: repeat(var(--rows, 3), 1fr);
  gap: 1px;
}
.hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__cell {
  position: relative; overflow: hidden;
  border-radius: 0;
  transition: border-radius 2.4s var(--ease);
  background: var(--steel-soft);
  contain: paint; /* each tile repaints on its own, not the whole grid */
}
.hero__layer { position: absolute; inset: 0; overflow: hidden; }
.hero__layer img {
  position: absolute;
  left: calc(var(--x) * -1px); top: calc(var(--y) * -1px);
  width: calc(var(--hw) * 1px); height: calc(var(--hh) * 1px);
  max-width: none;
  object-fit: cover;
  object-position: var(--focus, 50% 40%);
  transform: scale(1.06);
  /* Slow breathing zoom, run by the graphics card. All tiles start together, so they stay aligned. */
  animation: heroZoom 16s ease-in-out infinite alternate;
  backface-visibility: hidden;
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero__layer.is-next { clip-path: circle(0% at var(--cxp, 0%) var(--cyp, 0%)); }

/* The scrim lives inside each tile so the parchment notches stay clean */
.hero__scrim { display: none; }
.hero__cell::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background-size: calc(var(--gw) * 1px) calc(var(--gh) * 1px);
  background-position: calc(var(--gx) * -1px) calc(var(--gy) * -1px);
  background-image:
    linear-gradient(180deg, rgba(38,48,59,.45) 0%, rgba(38,48,59,0) 24%),
    linear-gradient(0deg, rgba(38,48,59,.72) 0%, rgba(38,48,59,.32) 40%, rgba(38,48,59,.06) 70%),
    linear-gradient(90deg, rgba(38,48,59,.28) 0%, rgba(38,48,59,0) 55%);
  background-repeat: no-repeat;
}
.hero__content {
  position: absolute; z-index: 2;
  left: clamp(20px, 4vw, 64px); bottom: clamp(28px, 5vw, 72px);
  color: var(--white);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.6rem, 11.5vw, 11.5rem);
  line-height: .86;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 30px rgba(38,48,59,.35);
}
.hero__title > span:nth-child(2) { padding-left: .9em; }
.hero__aside {
  position: absolute; z-index: 2;
  right: clamp(20px, 4vw, 64px); bottom: clamp(32px, 5.4vw, 80px);
  width: min(320px, 30vw);
  color: var(--white);
  font-size: .98rem;
  text-shadow: 0 1px 16px rgba(38,48,59,.4);
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
}
.hero__aside .pill { margin-left: 12px; }
.hero__meta {
  position: absolute; z-index: 2;
  right: clamp(20px, 4vw, 64px); top: clamp(96px, 11vh, 128px);
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  color: rgba(255,255,255,.9); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
}
.hero__count b { font-weight: 600; }
.hero__caption { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0; text-transform: none; font-style: italic; }
.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.8); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
}
.hero__scroll i { width: 1px; height: 38px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--white);
  animation: drip 2.2s var(--ease) infinite;
}
@keyframes drip { to { top: 100%; } }

/* ==========================================================================
   Hello — the statement
   ========================================================================== */
.hello { padding: var(--section-y) 0 calc(var(--section-y) * .7); }
.hello__statement {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 1.04;
  max-width: 19ch;
  letter-spacing: -0.005em;
}
.hello__statement .w { opacity: .14; transition: opacity .2s linear; }
.no-js .hello__statement .w { opacity: 1; }
.hello__moons {
  display: flex; justify-content: flex-end; gap: 0;
  margin-top: clamp(48px, 7vw, 96px);
  padding-right: clamp(0px, 6vw, 120px);
}
.moon { width: clamp(120px, 16vw, 230px); aspect-ratio: 1 / 2; overflow: hidden; }
.moon img { width: 100%; height: 100%; object-fit: cover; }
.moon--l { border-radius: 999px 0 0 999px; }
.moon--r { border-radius: 0 999px 999px 0; margin-top: clamp(40px, 6vw, 90px); }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: var(--section-y) 0; }
.about__wrap { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 7vw, 120px); }
.about__sticky { position: sticky; top: 14vh; }
.about__photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--steel-soft);
}
.about__photo img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 20%; }
.about__ring {
  position: absolute; width: clamp(120px, 12vw, 170px); right: -6%; bottom: -5%;
  fill: var(--white); font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  background: var(--steel); border-radius: 50%;
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.about__progress { position: absolute; left: -26px; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.about__progress li { width: 6px; height: 6px; border-radius: 50%; background: rgba(38,48,59,.2); transition: background .4s, transform .4s var(--ease); }
.about__progress li.is-on { background: var(--ink); transform: scale(1.4); }

.about__story { padding-top: clamp(0px, 4vw, 60px); }
.about__aside { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2vw, 1.8rem); color: var(--ink-soft); margin: 14px 0 clamp(56px, 8vw, 120px) 4px; }
.chapter {
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid rgba(38,48,59,.14);
  display: grid; grid-template-columns: 64px 1fr; column-gap: 12px;
  min-height: 46vh;
}
.chapter:last-child { min-height: 0; }
.chapter__no { font-size: .8rem; letter-spacing: .1em; color: var(--ink-soft); padding-top: 12px; grid-row: span 4; }
.chapter h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1.02; margin-bottom: 20px; }
.chapter p { font-size: clamp(1.02rem, 1.2vw, 1.15rem); color: var(--ink-soft); max-width: 52ch; }
.chapter p + p { margin-top: 18px; }
.chapter .chapter__lead { color: var(--ink); font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.15; max-width: 24ch; margin-top: 36px; }
.signature { margin-top: 28px !important; font-family: var(--serif); font-style: italic; font-size: 1.5rem !important; color: var(--ink) !important; }

/* ==========================================================================
   In the chair
   ========================================================================== */
.chair { padding: var(--section-y) 0; }
.chair__wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.chair__intro { position: sticky; top: 14vh; }
.chair__intro .lede { margin-top: 32px; }
.chair__split { display: flex; margin-top: clamp(40px, 6vw, 80px); width: clamp(200px, 22vw, 300px); aspect-ratio: 1; }
.chair__half { width: 50%; height: 100%; overflow: hidden; position: relative; }
.chair__half img { position: absolute; top: 0; width: 200%; height: 100%; max-width: none; object-fit: cover; }
.chair__half--l { border-radius: 999px 0 0 999px; }
.chair__half--r { border-radius: 0 999px 999px 0; }
.chair__half--r img { right: 0; }
.chair__half--l img { left: 0; }

.chair__cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.4vw, 20px); }
.card {
  background: var(--parchment);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 40px);
  min-height: clamp(300px, 30vw, 440px);
  display: flex; flex-direction: column;
  transition: background-color .6s var(--ease), transform .8s var(--ease);
}
.card:nth-child(even) { transform: translateY(clamp(0px, 6vw, 90px)); }
.card__glyph { width: clamp(48px, 4.6vw, 68px); height: clamp(48px, 4.6vw, 68px); fill: var(--ink); margin-bottom: auto; transition: transform 1s var(--ease), fill .6s; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.2vw, 2.1rem); line-height: 1.05; margin: 40px 0 14px; }
.card p { color: var(--ink-soft); font-size: .98rem; max-width: 34ch; }
.card:hover { background: var(--steel-mist); }
.card:hover .card__glyph { transform: rotate(180deg); fill: var(--steel); }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.work { color: var(--ink); }
.work__pin { position: relative; overflow: hidden; }
.work__row { padding: var(--section-y) 0 clamp(60px, 8vw, 120px); }
.work__head { position: relative; padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; }
.work__head .eyebrow { color: var(--ink); }
.work__note { margin-top: 18px; color: rgba(38,48,59,.75); }
.work__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.work__filters button {
  padding: 10px 18px; border-radius: 99px; border: 1px solid rgba(38,48,59,.3); font-size: .9rem;
  transition: background-color .3s, color .3s, border-color .3s;
}
.work__filters button.is-on, .work__filters button:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.work__track {
  display: flex; gap: clamp(16px, 2vw, 32px); align-items: center;
  padding: 0 var(--gutter);
}

/* One pinned screen on every device — the title leads a horizontal strip of looks */
.work__pin { height: 100vh; height: 100svh; }
.work__row {
  display: flex; align-items: center; height: 100%;
  width: max-content; padding: 70px 0 40px;
  will-change: transform;
}
.work__head { flex: none; width: clamp(340px, 34vw, 560px); margin: 0; padding-right: 0; }
.rm .work__pin { height: auto; overflow-x: auto; }
.piece { flex: none; width: var(--w, 30vw); cursor: pointer; }
.piece.is-filtered { display: none; }
.piece__media {
  position: relative; overflow: hidden;
  height: var(--h, 60vh);
  border-radius: var(--shape, var(--radius));
  background: var(--steel-soft);
  transform: translateZ(0);
}
.piece__media img, .piece__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.piece:hover .piece__media img, .piece:hover .piece__media video { transform: scale(1.05); }
.piece__badge {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.9); color: var(--ink);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
}
.piece__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; }
.piece__cap h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 1.6vw, 1.6rem); line-height: 1.1; }
.piece__cap span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(38,48,59,.7); white-space: nowrap; }
.piece--arch { --shape: 999px 999px var(--radius) var(--radius); }
.piece--moon { --shape: var(--radius) 999px 999px var(--radius); }
.piece--notch { --shape: var(--radius) var(--radius) var(--radius) 160px; }

.piece--end { display: flex; align-items: center; cursor: auto; }
.piece--end a {
  display: flex; flex-direction: column; justify-content: space-between;
  width: 100%; height: var(--h, 52vh);
  border-radius: var(--radius);
  background: var(--parchment);
  padding: clamp(24px, 3vw, 44px);
  transition: background-color .5s var(--ease);
}
.piece--end a:hover { background: var(--white); }
.piece--end strong { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1; }
.piece--end svg { width: 44px; height: 44px; transition: transform .6s var(--ease); }
.piece--end a:hover svg { transform: translateX(10px); }

.work__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; height: 1px; background: rgba(38,48,59,.2); overflow: hidden; }
.work__bar i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews { padding: var(--section-y) 0; overflow: hidden; }
.reviews__head {
  margin-bottom: clamp(56px, 7vw, 100px);
  display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 32px;
}
.reviews__head .eyebrow { grid-column: 1 / -1; }

/* "As seen on Google" badge: one note for the whole section, linking to her Google reviews */
.g-badge {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 22px 12px 14px; border-radius: 99px;
  background: var(--white); color: var(--ink);
  box-shadow: 0 1px 0 rgba(38,48,59,.06), 0 10px 30px -18px rgba(38,48,59,.35);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.g-badge:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(38,48,59,.06), 0 16px 34px -18px rgba(38,48,59,.45); }
.g-badge__logo { width: 28px; height: 28px; flex: none; }
.g-badge__text { display: grid; gap: 2px; font-size: .85rem; line-height: 1.2; color: var(--ink-soft); }
.g-badge__stars { color: var(--ink); letter-spacing: 3px; font-size: .95rem; }
.marquee { overflow: hidden; padding: 10px 0; }
.marquee + .marquee { margin-top: clamp(4px, 1vw, 12px); }
.marquee__row { display: flex; gap: clamp(14px, 1.6vw, 24px); width: max-content; will-change: transform; }
.review {
  flex: none; width: clamp(290px, 30vw, 420px);
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(26px, 2.6vw, 40px);
  display: flex; flex-direction: column; gap: 22px;
}
.review:nth-child(3n+2) { background: var(--steel-mist); }
.review__q { font-family: var(--serif); font-size: 4rem; line-height: .5; height: 26px; color: var(--steel); }
.review p { font-family: var(--serif); font-size: clamp(1.2rem, 1.45vw, 1.4rem); line-height: 1.28; }
.review--long { width: clamp(320px, 40vw, 600px); }
.review--long p { font-size: clamp(1.05rem, 1.15vw, 1.15rem); line-height: 1.38; }
.review__name { font-weight: 500; color: var(--ink); }
.review footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; font-size: .85rem; color: var(--ink-soft); }
.review__stars { letter-spacing: 3px; color: var(--ink); }
.review__sample { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; border: 1px dashed var(--steel); color: var(--ink-soft); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: var(--section-y) 0 clamp(80px, 10vw, 140px); }
.contact__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(3.2rem, 9.6vw, 9.4rem);
  line-height: .88; letter-spacing: -0.015em;
}
.contact__title > span:nth-child(2) { padding-left: clamp(0px, 8vw, 140px); }
.contact__grid {
  display: grid; grid-template-columns: 4fr 8fr;
  grid-template-areas: "lede list" "media list";
  column-gap: clamp(32px, 6vw, 96px); row-gap: clamp(40px, 5vw, 64px);
  margin-top: clamp(64px, 9vw, 140px); align-items: start;
}
.contact__lede { grid-area: lede; }
.contact__list { grid-area: list; }

/* Paige on the phone: arch photo, a steel half-moon behind, a ring that calls the salon */
.contact__media { grid-area: media; position: relative; width: 100%; max-width: 420px; }
.contact__moon {
  position: absolute; z-index: 0; left: -14%; top: 18%;
  width: 46%; aspect-ratio: 1 / 2;
  background: var(--steel-mist);
  border-radius: 999px 0 0 999px;
}
.contact__photo {
  position: relative; z-index: 1; aspect-ratio: 10 / 11; overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--parchment);
}
.contact__photo img { width: 100%; height: 106%; object-fit: cover; object-position: 0% 0%; }
/* Sits on the empty wall at top right, clear of her face and the phone */
.contact__ring { z-index: 2; top: 6%; right: -12%; bottom: auto; display: block; }
.contact__ring svg { display: block; width: 100%; height: auto; }
.contact__ring:hover { animation-duration: 8s; }
.contact__lede { padding-top: 26px; }
.contact__list { border-bottom: 1px solid rgba(38,48,59,.14); }
.row {
  position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  column-gap: 24px; row-gap: 4px; align-items: end;
  padding: clamp(22px, 2.6vw, 34px) clamp(4px, 1vw, 20px);
  border-top: 1px solid rgba(38,48,59,.14);
  isolation: isolate;
}
.row::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--steel-mist); border-radius: 16px;
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease);
}
.row:hover::before { transform: scaleY(1); }
.row__label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.row__value { grid-row: 2; font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.8vw, 3.4rem); line-height: 1.05; overflow-wrap: anywhere; }
/* Phone row: tap the number or "Text" to open Messages, "Call" to ring */
.row__actions { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 8px; align-self: center; }
.chip {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 99px;
  background: var(--ink); color: var(--white); font-size: .88rem; font-weight: 500;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.chip:hover { background: var(--steel); color: var(--ink); }
.chip--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(38,48,59,.35); }
.chip--ghost:hover { background: var(--ink); color: var(--white); box-shadow: none; }
.row__arrow { grid-row: 1 / span 2; width: clamp(28px, 3vw, 40px); height: clamp(28px, 3vw, 40px); color: var(--ink); transition: transform .6s var(--ease); }
.row:hover .row__arrow { transform: translateX(8px) rotate(-45deg); }

.contact__where {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: clamp(64px, 8vw, 120px);
}
.contact__where p { font-family: var(--serif); font-size: clamp(1.3rem, 1.7vw, 1.6rem); line-height: 1.2; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--steel); color: var(--ink); padding: clamp(64px, 8vw, 110px) 0 calc(28px + env(safe-area-inset-bottom)); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.footer__sign { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.footer__links { display: flex; gap: clamp(16px, 2.4vw, 32px); flex-wrap: wrap; font-size: .95rem; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__logo { color: var(--white); margin: clamp(56px, 7vw, 96px) auto clamp(40px, 5vw, 64px); width: min(100%, 720px, 92vh); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: rgba(38,48,59,.8); padding-top: 22px; border-top: 1px solid rgba(38,48,59,.18); }

/* ==========================================================================
   Lightbox + before/after
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 160;
  background: rgba(30, 37, 46, .96);
  color: var(--white);
  display: flex; flex-direction: column;
  padding: 72px var(--gutter) calc(20px + env(safe-area-inset-bottom));
}
.lightbox[hidden] { display: none; }
.lightbox__close { position: absolute; top: 20px; right: var(--gutter); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; padding: 10px 0; }
.lightbox__stage { flex: 1; min-height: 0; display: grid; place-items: center; }
.lightbox__stage > img, .lightbox__stage > video { max-height: 100%; max-width: 100%; width: auto; border-radius: 18px; object-fit: contain; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; }
.lightbox__bar button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; transition: background-color .3s; }
.lightbox__bar button:hover { background: rgba(255,255,255,.1); }
.lightbox__bar svg { width: 22px; height: 22px; }
[data-lb-prev] svg { transform: rotate(180deg); }
.lightbox__info { text-align: center; display: grid; gap: 2px; }
.lightbox__info span { font-size: .75rem; letter-spacing: .14em; color: rgba(255,255,255,.65); }
.lightbox__info strong { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }

.compare {
  --pos: 50%;
  position: relative; height: 100%; aspect-ratio: var(--ar, 3 / 4); max-width: 100%;
  border-radius: 18px; overflow: hidden; user-select: none; touch-action: pan-y; cursor: ew-resize;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--white); transform: translateX(-1px); }
.compare__handle::after {
  content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--ink);
  display: grid; place-items: center; font-size: 1.1rem; letter-spacing: 4px;
}
.compare__tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 99px; background: rgba(38,48,59,.55); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.compare__tag--b { left: 14px; }
.compare__tag--a { right: 14px; }

/* ==========================================================================
   Cursor (desktop only)
   ========================================================================== */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 170; pointer-events: none;
  width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%;
  background: var(--parchment); color: var(--ink);
  display: grid; place-items: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  transform: scale(0); transition: transform .5s var(--ease);
}
.cursor.is-on { transform: scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav { grid-template-columns: 1fr auto auto; gap: 8px; }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .hero__aside { width: min(300px, 40vw); }
}

@media (max-width: 860px) {
  .about__wrap, .chair__wrap, .contact__grid { grid-template-columns: 1fr; }
  .about__sticky, .chair__intro { position: relative; top: 0; }
  .about__media { max-width: 520px; }
  .about__progress { display: none; }
  .chapter { min-height: 0; grid-template-columns: 1fr; }
  .chapter__no { grid-row: auto; padding: 0 0 10px; }
  .about__ring { right: 4%; bottom: -7%; width: 120px; }
  .contact__ring { top: 4%; right: -3%; bottom: auto; width: 108px; }

  .chair__split { display: none; }

  .contact__lede { padding-top: 0; }
  .contact__grid { grid-template-areas: "lede" "list" "media"; }
  .contact__media { margin: 8px auto 0; max-width: 400px; }
  .contact__where { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .reviews__head { grid-template-columns: 1fr; }
  .g-badge { justify-self: start; margin-top: 28px; }
  .review { width: 78vw; }
  .review--long { width: 86vw; }

  :root { --radius: 20px; }
  .hero__frame { min-height: 600px; }
  .hero__content { left: 20px; right: 20px; bottom: 196px; }
  .hero__content .eyebrow { font-size: .68rem; letter-spacing: .12em; margin-bottom: 16px; }
  .hero__title { font-size: clamp(3.3rem, 17vw, 5.6rem); }
  .hero__aside { left: 20px; right: 20px; bottom: 28px; width: auto; gap: 18px; font-size: .92rem; line-height: 1.5; }
  .hero__aside p { max-width: 34ch; }
  .hero__aside .pill { height: 46px; padding: 0 22px; }
  .hero__meta { top: 92px; right: 20px; }
  .hero__caption { font-size: 1rem; }
  .hero__scroll { display: none; }

  .hello__moons { justify-content: center; padding-right: 0; }

  .chair__cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card:nth-child(even) { transform: none; }
  .card h3 { margin-top: 56px; }

  /* Portfolio on phones: same sideways strip, with larger cards sized to the screen.
     Fill the whole screen (Safari's toolbar collapses while scrolling) and keep the
     strip centred between the logo bar on top and Safari's address pill below. */
  .work__pin { height: 100vh; height: 100lvh; }
  .work__row { padding: 128px 0 88px; }
  .work__head { width: 78vw; }
  .work__track { gap: 14px; padding-left: 4px; }
  .piece { width: var(--mw, 72vw); }
  .piece__media { height: var(--mh, 54svh); }
  .piece__cap { flex-direction: column; gap: 4px; padding-top: 12px; }
  .piece__cap h3 { font-size: 1.2rem; }
  .piece--end a { height: var(--mh, 42svh); }
  .work__bar { bottom: calc(92px + env(safe-area-inset-bottom)); }

  .row { padding: 22px 4px; }
  .row__value--email { font-size: clamp(1.3rem, 6.4vw, 1.8rem); }
  .contact__where { grid-template-columns: 1fr; gap: 28px; }

  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__base { flex-direction: column; gap: 6px; }

  .lightbox { padding-top: 64px; }
}

/* ==========================================================================
   Reduced motion: keep everything readable, drop the travel
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  .hello__statement .w { opacity: 1 !important; }
  .about__ring { animation: none; }
}
