/* ============================================================
   PETAL & FERN — styles.css
   Botanical light — ivory / sage / dusty rose / warm charcoal
   Playfair Display + Inter + Roboto Mono
   ============================================================ */

/* ---------------- Tokens ---------------- */
:root {
  --ivory:       #f9f5ee;
  --ivory-deep:  #f2ede3;
  --ivory-raise: #fdfaf5;
  --sage:        #7a9e7e;
  --sage-mid:    #5e8462;
  --sage-light:  rgba(122, 158, 126, 0.22);
  --rose:        #c49a9a;
  --rose-light:  rgba(196, 154, 154, 0.22);
  --charcoal:    #2c2826;
  --charcoal-75: rgba(44, 40, 38, 0.75);
  --charcoal-55: rgba(44, 40, 38, 0.55);
  --charcoal-35: rgba(44, 40, 38, 0.35);
  --mid:         #9c9086;
  --line:        rgba(44, 40, 38, 0.12);
  --pad-x:       clamp(1.25rem, 4.5vw, 4.5rem);
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "Roboto Mono", ui-monospace, "Courier New", monospace;
  --ease-snap:    cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

::selection {
  background: var(--rose);
  color: var(--ivory);
}

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}

section[id],
footer[id] {
  scroll-margin-top: 4.5rem;
}

/* ---------------- Utilities ---------------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  padding: 0.8em 1.4em;
  background: var(--sage);
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(-110%);
  transition: transform 0.25s var(--ease-snap);
}

.skip-link:focus {
  transform: translateY(0);
}

.section {
  position: relative;
}

.sec-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--charcoal-55);
  text-transform: uppercase;
}

.sec-label::before {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  background: var(--sage);
  margin-right: 0.85rem;
  vertical-align: middle;
}

.sec-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  color: var(--charcoal);
  font-size: clamp(2.8rem, 8vw, 7.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-top: 1.25rem;
}

.sec-head {
  margin-bottom: clamp(3rem, 7vh, 5.5rem);
}

/* Botanical bloom chip — small decorative sprig */
.bloom-chip {
  display: block;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.2rem;
  background:
    radial-gradient(ellipse 55% 80% at 50% 50%, var(--sage-light) 60%, transparent 100%),
    radial-gradient(ellipse 40% 60% at 30% 70%, var(--rose-light) 60%, transparent 100%);
  border-radius: 0 50% 50% 50%;
  transform: rotate(-20deg);
}

.vskew {
  will-change: transform;
}

/* ---------------- Nav ---------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.25rem;
  padding: 0 var(--pad-x);
  background: linear-gradient(180deg, rgba(249, 245, 238, 0.96), rgba(249, 245, 238, 0.88));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  will-change: transform;
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--sage-mid);
  line-height: 1;
}

.nav-brand-thin {
  color: var(--charcoal);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.75rem);
}

.nav-links a {
  position: relative;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal-75);
  padding: 0.35em 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-snap);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  border: 1px solid var(--sage);
  padding: 0.55em 1.15em;
  transition: background-color 0.3s var(--ease-snap), color 0.3s var(--ease-snap);
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--sage);
  color: var(--ivory);
}

/* ---------------- 01 / Hero ---------------- */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ivory-deep);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: clip-path;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  will-change: transform;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(249, 245, 238, 0) 0%, rgba(249, 245, 238, 0.3) 50%, rgba(249, 245, 238, 0.85) 100%),
    linear-gradient(180deg, rgba(249, 245, 238, 0.7) 0%, rgba(249, 245, 238, 0) 22%, rgba(249, 245, 238, 0) 65%, rgba(249, 245, 238, 0.88) 100%);
}

/* Drifting petal particles */
.petal-drift {
  position: absolute;
  z-index: 1;
  width: 12px;
  height: 20px;
  background: rgba(196, 154, 154, 0.6);
  border-radius: 50% 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .petal-drift {
    animation: petalFloat 11s ease-in-out infinite;
  }
}

@keyframes petalFloat {
  0% {
    transform: translateY(0) rotate(var(--petal-rot, 0deg)) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  80% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-60vh) rotate(calc(var(--petal-rot, 0deg) + 120deg)) scale(0.7);
    opacity: 0;
  }
}

.hero-idx {
  position: absolute;
  z-index: 2;
  top: 5.75rem;
  left: var(--pad-x);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: var(--charcoal-55);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 7rem var(--pad-x) 5rem;
  max-width: 900px;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  color: var(--charcoal-75);
  margin-bottom: 1.5rem;
}

.hero-head {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(4.5rem, 13vw, 11rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.hero-line-inner {
  display: inline-block;
  will-change: transform;
}

.hero-line-accent {
  color: var(--sage-mid);
}

.hero-sub {
  margin-top: 2rem;
  max-width: 46ch;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--charcoal-75);
  line-height: 1.7;
}

/* ----- Scroll cue ----- */
.hero-cue {
  position: absolute;
  z-index: 2;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.cue-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--charcoal-55);
}

.cue-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, var(--sage), transparent);
  transform-origin: top center;
}

/* ---------------- 02 / Services ---------------- */
.services {
  min-height: 100svh;
  padding: clamp(6rem, 14vh, 10rem) var(--pad-x);
  background: var(--ivory);
}

.service-rows {
  border-bottom: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
  padding: clamp(1.75rem, 4vh, 2.75rem) 0;
  border-top: 1px solid var(--line);
}

.service-idx {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--sage);
  padding-top: 0.5em;
}

.service-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  line-height: 1.1;
  color: var(--charcoal);
}

.service-title-text {
  position: relative;
  display: inline-block;
}

/* Sage underline wipe on hover */
.service-title-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.07em;
  height: 0.06em;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-snap);
}

.service-row:hover .service-title-text::after,
.service-row:focus-within .service-title-text::after {
  transform: scaleX(1);
}

.service-meta {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--charcoal-55);
}

.service-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--charcoal-75);
  max-width: 46ch;
  padding-top: 0.45em;
}

/* ---------------- 03 / Studio ---------------- */
.studio {
  background: var(--ivory-deep);
}

.studio-media {
  position: relative;
  height: 62svh;
  overflow: hidden;
  will-change: clip-path;
}

.studio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(0.98);
}

.studio-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(249, 245, 238, 0.45) 0%, rgba(249, 245, 238, 0.05) 30%, rgba(249, 245, 238, 0.65) 100%),
    linear-gradient(90deg, rgba(122, 158, 126, 0.06), transparent 55%);
}

.studio-overlay {
  position: relative;
  padding: 2.75rem var(--pad-x) 4.5rem;
}

.studio-label {
  display: block;
  margin-bottom: 2rem;
}

.ws-note {
  max-width: 26rem;
  margin-bottom: 1.4rem;
  padding: 1.1rem 1.3rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--charcoal-75);
  background: rgba(249, 245, 238, 0.85);
  border-left: 2px solid var(--sage);
}

.ws-note-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  color: var(--sage-mid);
  margin-bottom: 0.55rem;
}

.studio-title {
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2.8rem, 8.5vw, 7.5rem);
  line-height: 1.02;
  color: var(--charcoal);
}

@media (min-width: 768px) {
  .studio {
    min-height: 100svh;
  }

  .studio-media {
    position: absolute;
    inset: 0;
    height: 100%;
  }

  .studio-overlay {
    position: absolute;
    inset: 0;
    padding: 0;
  }

  .studio-label {
    position: absolute;
    top: 7%;
    left: var(--pad-x);
    margin: 0;
  }

  .ws-note {
    position: absolute;
    margin: 0;
  }

  .ws-note-1 {
    top: 17%;
    left: var(--pad-x);
  }

  .ws-note-2 {
    top: 36%;
    right: var(--pad-x);
  }

  .ws-note-3 {
    bottom: 11%;
    left: var(--pad-x);
  }

  .studio-title {
    position: absolute;
    right: var(--pad-x);
    bottom: 8%;
    margin: 0;
    text-align: right;
  }
}

/* ---------------- 04 / Philosophy ---------------- */
.philosophy {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(6rem, 14vh, 10rem) var(--pad-x);
  background: var(--ivory);
}

.manifesto-text {
  margin-top: 2.5rem;
  max-width: 1150px;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2rem, 5.4vw, 4.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

.manifesto-sub {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  margin-left: clamp(0rem, 30vw, 24rem);
  max-width: 46ch;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--charcoal-75);
}

/* ---------------- 05 / Numbers ---------------- */
.numbers {
  min-height: 60svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(6rem, 14vh, 10rem) var(--pad-x);
  background: var(--ivory-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.stat-num-row {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-family: var(--font-mono);
}

.stat-num {
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
}

.stat-suffix {
  font-size: clamp(1.2rem, 2.5vw, 2.2rem);
  font-weight: 500;
  color: var(--sage);
}

.stat-label {
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--charcoal-55);
}

/* ---------------- 06 / Words (Reviews) ---------------- */
.reviews {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(6rem, 14vh, 10rem) var(--pad-x);
  background: var(--ivory);
}

.reviews > .sec-label {
  margin-bottom: clamp(3rem, 8vh, 5rem);
}

.reviews-inner {
  position: relative;
  max-width: 62rem;
}

.quote + .quote {
  margin-top: 3.5rem;
}

/* Stacked for pinned crossfade — applied by JS on desktop */
.reviews.reviews-pinned .reviews-inner {
  display: grid;
}

.reviews.reviews-pinned .quote {
  grid-area: 1 / 1;
  margin-top: 0;
}

.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.42;
  color: var(--charcoal);
}

.quote-mark {
  font-family: var(--font-display);
  color: var(--rose);
  margin-right: 0.25rem;
}

.quote-cite {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  color: var(--charcoal-55);
}

.quote-cite cite {
  font-style: normal;
  color: var(--charcoal);
}

/* ---------------- 07 / Areas ---------------- */
.areas {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(6rem, 14vh, 10rem) var(--pad-x);
  background: var(--ivory-deep);
}

.areas-intro {
  margin-top: 1.25rem;
  max-width: 40ch;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--charcoal-75);
  line-height: 1.65;
}

.area-rows {
  border-bottom: 1px solid var(--line);
}

.area-row {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1rem, 2.6vh, 1.9rem) 0;
  border-top: 1px solid var(--line);
}

/* Sage marker bar slides in on hover */
.area-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 3px;
  margin-top: -1.5px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-snap);
}

.area-row:hover::before {
  transform: scaleX(1);
}

.area-name {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2rem, 7.5vw, 6.75rem);
  line-height: 1.05;
  color: var(--mid);
  transition: transform 0.5s var(--ease-snap), color 0.4s var(--ease-snap);
}

.area-row:hover .area-name {
  transform: translateX(2.9rem);
  color: var(--charcoal);
}

.area-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--charcoal-55);
  white-space: nowrap;
  transition: color 0.4s var(--ease-snap);
}

.area-row:hover .area-meta {
  color: var(--sage-mid);
}

/* ---------------- 08 / Order + footer ---------------- */
.book {
  padding: clamp(7rem, 15vh, 11rem) var(--pad-x) 2.5rem;
  background: var(--charcoal);
  overflow: hidden;
}

/* Botanical bloom bar across the top */
.bloom-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sage) 0%, var(--rose) 50%, var(--sage) 100%);
}

.book-head {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(2.6rem, 8.8vw, 8rem);
  line-height: 1.02;
  color: var(--ivory);
}

.book-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.045em;
}

.book-line-inner {
  display: inline-block;
  will-change: transform;
}

.book-accent {
  color: var(--rose);
}

.book-phone {
  position: relative;
  display: inline-block;
  margin-top: clamp(2rem, 5vh, 3.25rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--ivory);
  padding-bottom: 0.18em;
  transition: color 0.35s var(--ease-snap);
}

.book-phone::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--sage);
}

.book-phone:hover,
.book-phone:focus-visible {
  color: var(--sage);
}

.book-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem 2rem;
  margin-top: clamp(5rem, 12vh, 8rem);
  padding-top: 3rem;
  border-top: 1px solid rgba(249, 245, 238, 0.12);
}

.book-col-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--sage);
  margin-bottom: 1rem;
}

.book-col p {
  font-size: 0.94rem;
  line-height: 1.75;
  color: rgba(249, 245, 238, 0.7);
}

.book-col a {
  border-bottom: 1px solid transparent;
  color: rgba(249, 245, 238, 0.7);
  transition: color 0.3s var(--ease-snap), border-color 0.3s var(--ease-snap);
}

.book-col a:hover,
.book-col a:focus-visible {
  color: var(--ivory);
  border-color: var(--rose);
}

.book-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(4rem, 9vh, 6rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(249, 245, 238, 0.1);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(249, 245, 238, 0.3);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .book-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .service-row {
    grid-template-columns: 2.75rem minmax(0, 1fr);
  }

  .service-desc {
    grid-column: 2;
    padding-top: 0;
  }

  .manifesto-sub {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .hero-idx {
    top: 5.25rem;
  }

  .area-row:hover .area-name {
    transform: translateX(1.6rem);
  }

  .area-row::before {
    width: 1.1rem;
  }
}

@media (max-width: 560px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .book-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .book-foot {
    flex-direction: column;
  }

  .nav-cta {
    font-size: 0.74rem;
    padding: 0.5em 0.85em;
  }

  .nav-brand {
    font-size: 1.05rem;
  }
}

/* ---------------- Reduced motion ---------------- */
/* body.no-motion is added by JS under prefers-reduced-motion */
.no-motion .cue-line {
  display: none;
}

.no-motion .reviews.reviews-pinned .reviews-inner {
  display: block;
}

.no-motion .reviews.reviews-pinned .quote + .quote {
  margin-top: 3.5rem;
}

.no-motion .hero-bg {
  clip-path: circle(75% at 50% 50%) !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .petal-drift {
    animation: none !important;
    opacity: 0;
  }
}
