/* Paloma: a multidisciplinary creative practice for chic private gatherings in NY.
   Direction: ivory + tonal, with one dramatic black moment.
   The subject's core artifact is the invitation, so the hero is a black engraved
   invitation card; everything below is the quiet ivory "inside." Mobile-first.
   Ivory canvas, espresso ink, one confident dusty-blue accent, brass hairlines. */

:root {
  color-scheme: light;
  --bone: #f5f0e2;        /* page background (warm cream) */
  --bone-2: #fbf8ef;      /* raised card surface */
  --greige: #e6ddc9;      /* soft warm neutral */
  --sage: #b7c1b4;        /* color-field panel: muted sage */
  --sage-deep: #8e9c88;
  --panel-blue: #a9bbbd;  /* color-field panel: dusty blue-grey */
  --linen: #8c7f64;       /* warm linen / taupe */
  --ink: #2b2a26;         /* near-black charcoal: text */
  --ink-soft: #6b6a62;    /* muted text */
  --blue: #6d8890;        /* accent for italics / focus (dusty blue-green) */
  --blue-deep: #567079;
  --brass: #b4894a;       /* the monogram + fine hairlines only */
  --line: rgba(43, 42, 38, 0.14);
  --shadow: 0 18px 44px rgba(43, 42, 38, 0.1);
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", "Times New Roman", Georgia, serif;
  font-weight: 500;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 0;
}

a { color: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

/* Labels: styled like the small caps on a place card */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
}

/* A single handwritten accent, used sparingly */
.script {
  font-family: "Ballet", "Fraunces", cursive;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1;
  color: var(--blue);
  font-weight: 400;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border: none;
  cursor: pointer;
  font: 500 14px/1 "DM Sans", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--bone); }
.btn-primary:hover { background: #000; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 22px;
}
.brandmark {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brandmark .mm { width: 30px; height: 34px; display: block; }
.topbar .btn { padding: 11px 20px; font-size: 12px; }

/* ---------- Hero: full-bleed atmosphere, monumental wordmark ---------- */
.hero-full {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
/* The atmosphere. Swap this whole block for a photo/video:
   background: url('assets/hero.jpg') center/cover no-repeat;  (or a <video> layer) */
.hero-media {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(52% 44% at 27% 40%, rgba(223, 210, 184, 0.95), transparent 70%),
    radial-gradient(44% 54% at 79% 26%, rgba(150, 168, 178, 0.6), transparent 72%),
    radial-gradient(58% 58% at 62% 88%, rgba(166, 172, 150, 0.6), transparent 75%),
    linear-gradient(155deg, #bcbfb1 0%, #cec5b0 46%, #b4ad9c 100%);
  filter: saturate(0.9);
}
.hero-grain {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  opacity: 0.42; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(38, 34, 28, 0.30) 0%, rgba(38, 34, 28, 0.05) 28%,
    rgba(38, 34, 28, 0.08) 68%, rgba(38, 34, 28, 0.36) 100%);
}
.hero-content { width: 100%; padding-inline: clamp(8px, 2vw, 22px); }
.hero-eyebrow {
  display: block; color: #f6f1e7; opacity: 0.92;
  font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase;
  margin-bottom: clamp(14px, 3vw, 26px);
  text-shadow: 0 1px 22px rgba(30, 26, 20, 0.45);
}
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  text-transform: uppercase;
  color: #f7f2e8;
  font-size: clamp(64px, 23vw, 420px);
  line-height: 0.88;
  letter-spacing: 0.015em;
  margin: 0;
  text-shadow: 0 3px 48px rgba(30, 26, 20, 0.28);
}
.hero-script {
  display: block; margin-top: clamp(8px, 2.2vw, 20px);
  font-family: "Ballet", cursive; color: #f7f2e8;
  font-size: clamp(24px, 5vw, 52px); line-height: 1;
  text-shadow: 0 1px 26px rgba(30, 26, 20, 0.4);
}
.hero-cta {
  margin-top: clamp(28px, 4vw, 44px);
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.hero-cta .btn-primary { background: rgba(247, 242, 232, 0.96); color: #211c18; }
.hero-cta .btn-primary:hover { background: #fff; }
.hero-cta .btn-ghost { color: #f7f2e8; border-color: rgba(247, 242, 232, 0.55); }
.hero-cta .btn-ghost:hover { border-color: #f7f2e8; background: rgba(247, 242, 232, 0.1); }
.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: #f7f2e8; opacity: 0.85; z-index: 1; text-decoration: none;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
.scroll-cue:hover { opacity: 1; }

/* Header overlaid on the hero (index only) */
.topbar.over-hero { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.topbar.over-hero .brandmark { color: #f7f2e8; }
.topbar.over-hero .brandmark .mm text { fill: #f7f2e8; }
.topbar.over-hero .btn-ghost { color: #f7f2e8; border-color: rgba(247, 242, 232, 0.55); }
.topbar.over-hero .btn-ghost:hover { border-color: #f7f2e8; background: rgba(247, 242, 232, 0.1); }

/* Editorial positioning statement, just under the hero */
.statement { text-align: center; padding-block: clamp(46px, 8vw, 96px); }
.statement p {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic; font-weight: 500;
  font-size: clamp(23px, 3.8vw, 36px);
  line-height: 1.32; color: var(--ink);
  max-width: 22ch; margin: 0 auto;
}

/* load-in */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 0.7s ease forwards; }
.reveal.d1 { animation-delay: 0.05s; }
.reveal.d2 { animation-delay: 0.18s; }
.reveal.d3 { animation-delay: 0.31s; }
.reveal.d4 { animation-delay: 0.44s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(48px, 9vw, 104px); }
.section-head { max-width: 46ch; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head h2 { font-size: clamp(34px, 6vw, 60px); margin-top: 14px; }
.section-head p { color: var(--ink-soft); margin: 16px 0 0; }

/* ---------- How it works: two routes ---------- */
.routes { display: grid; gap: 18px; grid-template-columns: 1fr; }
.route {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(26px, 4vw, 40px);
  background: var(--bone-2);
}
.route h3 { font-size: 34px; margin-bottom: 10px; }
.route .tier { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.route .chip {
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; color: var(--ink-soft);
}
.route p { color: var(--ink-soft); }

/* ---------- Signature: the split-editorial section ---------- */
.split { display: grid; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* left: solid color-field panel with staggered serif words */
.split-panel {
  background: var(--sage);
  color: var(--ink);
  padding: clamp(40px, 7vw, 104px) var(--pad);
  display: flex; flex-direction: column; justify-content: center;
  min-height: clamp(440px, 58vw, 720px);
}
.split-panel.blue { background: var(--panel-blue); }
.split-words { display: flex; flex-direction: column; }
.split-words .w {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500; font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
  font-size: clamp(40px, 6.4vw, 96px); line-height: 0.98;
  text-transform: uppercase; letter-spacing: 0.008em;
}
.split-words .w2 { align-self: flex-end; text-align: right; }
.split-words .w-and {
  font-family: "Ballet", cursive; text-transform: none;
  font-size: clamp(30px, 4vw, 56px); line-height: 1;
  margin: 4px 0 4px 6px; color: var(--ink); opacity: 0.85;
}
.split-copy { margin-top: clamp(26px, 4vw, 56px); max-width: 48ch; }
.split-copy p { margin: 0; color: rgba(43, 42, 38, 0.82); }
.enquire-link {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px;
  text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 4px;
  transition: gap 0.15s ease;
}
.enquire-link:hover { gap: 15px; }

/* right: asymmetric collage with handwritten annotations */
.split-collage {
  position: relative; background: var(--bone);
  padding: clamp(30px, 5vw, 72px);
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.25fr 1fr; gap: 16px;
  place-content: center; align-content: center;
  min-height: clamp(440px, 58vw, 720px);
}
.ctile {
  border-radius: 3px; box-shadow: var(--shadow);
  background-size: cover; background-position: center;
}
.ctile.t1 { grid-column: 1; grid-row: 1 / 3;
  background: linear-gradient(165deg, #cdc4ad, #a9a48d); }
.ctile.t2 { grid-column: 2; grid-row: 1;
  background: linear-gradient(150deg, #b3bdbd, #8f9aa0);
  border-radius: 50% / 46%; }
.ctile.t3 { grid-column: 2; grid-row: 2;
  background: linear-gradient(150deg, #b9bfa9, #8f9c88); }
.cscript {
  position: absolute; font-family: "Ballet", cursive;
  font-size: clamp(19px, 2.4vw, 32px); color: var(--ink); opacity: 0.85;
  pointer-events: none;
}
.cscript.s-a { top: 5%; right: 7%; }
.cscript.s-b { bottom: 5%; left: 7%; }
@media (max-width: 560px) { .cscript { display: none; } }

/* reversed split: collage left, panel right (desktop only; words stay first on mobile) */
@media (min-width: 900px) {
  .split.reverse .split-panel { order: 2; }
  .split.reverse .split-collage { order: 1; }
}
/* collage colour variant for the dusty-blue section */
.split-collage.varb .ctile.t1 { background: linear-gradient(160deg, #c3c9c0, #93a08f); }
.split-collage.varb .ctile.t2 { background: linear-gradient(150deg, #cec5ad, #ab9f82); }
.split-collage.varb .ctile.t3 { background: linear-gradient(150deg, #b3bdbd, #8f9aa0); }

/* ---------- Full-width colour-field CTA band ---------- */
.cta-band { background: var(--sage); }
.cta-band.blue { background: var(--panel-blue); }
.cta-band .inner { text-align: center; padding-block: clamp(56px, 10vw, 132px); }
.cta-band .eyebrow { display: block; margin-bottom: 16px; color: var(--ink); opacity: 0.65; }
.cta-band h2 { font-size: clamp(40px, 7vw, 88px); }
.cta-band h2 em { font-style: italic; }
.cta-band p { color: rgba(43, 42, 38, 0.8); max-width: 42ch; margin: 18px auto 30px; }
.cta-band .btn-primary:hover { background: #000; }

/* ---------- Footer on a soft panel, with the script signature ---------- */
.foot-band { background: #dfe3d7; }
.foot-inner { padding-block: clamp(40px, 6vw, 76px); }
.foot-script {
  font-family: "Ballet", cursive; color: var(--ink);
  font-size: clamp(30px, 5vw, 58px); line-height: 1; display: block;
  margin-bottom: clamp(22px, 4vw, 40px);
}
.foot-row {
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between;
  align-items: center; color: var(--ink-soft); font-size: 14px;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: var(--ink); }

/* ---------- Style gallery: the color moment ---------- */
.gallery {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
.board {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bone-2);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.board:hover { transform: translateY(-4px); box-shadow: 0 22px 52px rgba(33, 28, 24, 0.16); }
.board .scene {
  height: 150px; display: flex; align-items: center; justify-content: center;
  font-size: 42px; letter-spacing: 4px;
}
.board .swatches { display: flex; height: 22px; }
.board .swatches span { flex: 1; }
.board .board-body { padding: 16px 18px 20px; background: var(--bone-2); color: var(--ink); }
.board .board-tag {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass); display: block; margin-bottom: 8px;
}
.board .board-body h3 { font-size: 24px; margin-bottom: 6px; }
.board .board-body p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Closing CTA ---------- */
.closing { text-align: center; }
.closing h2 { font-size: clamp(36px, 7vw, 68px); }
.closing h2 em { font-style: italic; color: var(--blue); }
.closing p { color: var(--ink-soft); max-width: 40ch; margin: 16px auto 28px; }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 34px; margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--ink-soft); font-size: 14px;
}

/* ---------- Responsive up ---------- */
@media (min-width: 720px) {
  .routes { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .board { transition: none; }
}

/* keyboard focus */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ================= Inquiry wizard ================= */
.wizard-wrap { max-width: 760px; margin: 0 auto; padding: clamp(20px, 5vw, 40px) var(--pad) 80px; }

.progress { display: flex; align-items: center; gap: 8px; margin-bottom: 30px; }
.progress .bar { flex: 1; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress .bar > i { display: block; height: 100%; width: 0; background: var(--blue); transition: width 0.3s ease; }
.progress .count { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }

.step-prompt { font-size: clamp(32px, 6vw, 48px); margin: 6px 0 6px; }
.step-sub { color: var(--ink-soft); margin: 0 0 26px; }

.opts { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .opts.two { grid-template-columns: 1fr 1fr; } }

.opt {
  text-align: left; cursor: pointer; background: var(--bone-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
  font: inherit; color: inherit; transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
  display: flex; flex-direction: column; gap: 4px;
}
.opt:hover { border-color: var(--brass); transform: translateY(-1px); }
.opt[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-wash); box-shadow: inset 0 0 0 1px var(--blue); }
.opt .opt-title { font-weight: 500; font-size: 17px; }
.opt .opt-hint { color: var(--ink-soft); font-size: 14px; }

/* style boards inside the wizard (reuse .board look, selectable) */
.opts.styles { grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 620px) { .opts.styles { grid-template-columns: repeat(3, 1fr); } }
.style-pick {
  cursor: pointer; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--bone-2); padding: 0; transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.style-pick:hover { transform: translateY(-2px); }
.style-pick[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--blue); }
.style-pick .mini-scene { height: 74px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.style-pick .mini-swatches { display: flex; height: 12px; }
.style-pick .mini-swatches span { flex: 1; }
.style-pick .mini-name { color: var(--ink); font-size: 13px; padding: 9px 10px; text-align: center; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.field input {
  width: 100%; font: inherit; padding: 14px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  color-scheme: light;
}
.field input::placeholder { color: var(--ink-soft); }

.wiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; }
.wiz-nav .link-back { background: none; border: none; cursor: pointer; font: inherit; color: var(--ink-soft); padding: 8px; }
.wiz-nav .link-back:hover { color: var(--ink); }
.wiz-nav .link-back[hidden] { visibility: hidden; }

/* ---- Estimate result ---- */
.estimate { animation: rise 0.5s ease both; }
.estimate .eyebrow { display: block; margin-bottom: 10px; }
.estimate h2 { font-size: clamp(32px, 6vw, 50px); margin-bottom: 6px; }
.estimate .summary-line { color: var(--ink-soft); margin: 0 0 26px; }
.bill {
  border: 1px solid var(--brass); border-radius: 12px; overflow: hidden;
  background: var(--bone-2);
}
.bill .row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.bill .row:last-child { border-bottom: none; }
.bill .row .amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bill .row.total { background: var(--greige); font-family: "Fraunces", serif; font-weight: 600; font-size: 26px; }
.bill .row.total .amt { color: var(--blue-deep); }
.est-note { color: var(--ink-soft); font-size: 14px; margin: 16px 2px 0; }
.est-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.est-recap { margin-top: 30px; font-size: 14px; color: var(--ink-soft); }
.toast { margin-top: 18px; padding: 16px 18px; border-radius: 10px; font-size: 15px; }
.toast.ok { background: rgba(110, 134, 154, 0.14); color: var(--blue-deep); border: 1px solid rgba(110, 134, 154, 0.32); }
.toast.warn { background: rgba(180, 137, 74, 0.14); color: #8a6a34; border: 1px solid rgba(180, 137, 74, 0.4); }
