/* Your Listing Refresh — site styles.
   Brand (branding/brand-guide.md): Dusty Dark Blue #344B63, Brass Gold #B58B49, Cream #FDF9F4.
   Cormorant Garamond for headings, Montserrat for everything else. Only these three colours. */

:root {
  --navy: #344B63;
  --gold: #B58B49;
  --cream: #FDF9F4;
  --white: #FFFFFF;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  /* five type steps */
  --t-small: 0.875rem;                     /* 14px */
  --t-body: 1.0625rem;                     /* 17px */
  --t-lead: 1.25rem;                       /* 20px */
  --t-head: clamp(2rem, 3vw, 2.75rem);     /* section headings */
  --t-display: clamp(2.5rem, 3.7vw, 3.6rem); /* the one h1 */

  --radius: 12px;
  --gap: 12px;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font: 400 var(--t-body)/1.6 var(--sans);
}
img, video { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
p { margin: 0 0 1em; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.04; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--t-display); font-weight: 500; }
h2 { font-size: var(--t-head); }
h3 { font-size: 1.6rem; }

.skip { position: absolute; left: 12px; top: -80px; background: var(--navy); color: var(--cream); padding: 10px 16px; border-radius: var(--radius); z-index: 10; }
.skip:focus { top: 12px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons: one shape ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius);
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 2px solid var(--navy);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--navy); color: var(--cream); }
.btn-solid:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn-line { background: transparent; color: var(--navy); }
.btn-line:hover { background: var(--navy); color: var(--cream); }
.on-navy .btn-solid { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.on-navy .btn-solid:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

/* ---------- The split stage ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); padding: var(--gap); }
.reading { min-width: 0; }
.stage {
  position: sticky; top: var(--gap); height: calc(100svh - 2 * var(--gap));
  border-radius: var(--radius); overflow: hidden; background: var(--navy);
}
.stage .layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--ease); }
.stage .layer.on { opacity: 1; }
.stage .layer > video, .stage .layer > img { width: 100%; height: 100%; object-fit: cover; }
.stage .layer.fit { display: grid; place-items: center; background: var(--navy); }
.stage .layer.fit > video { width: 100%; height: 100%; object-fit: contain; }
.stage .layer.wide { display: grid; align-items: center; background: var(--navy); }
.stage .layer.wide > video { height: auto; width: 100%; object-fit: contain; }
.stage .label {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; justify-content: space-between; align-items: end; gap: 12px;
  color: var(--cream); font-size: var(--t-small); font-weight: 500;
}
.stage .label span { background: var(--navy); padding: 8px 12px; border-radius: var(--radius); }
/* hero rotator: before/after pairs (or finished photos) with a wipe and a slow push-in */
.rotator { position: absolute; inset: 0; overflow: hidden; }
.rotator .slide, .rotator .pair { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.rotator .slide.on, .rotator .pair.on { opacity: 1; }
.rotator img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rotator img.slide { transform: scale(1.02); }
.rotator .slide.on, .rotator .pair.on .push { animation: push 9s linear forwards; }
.rotator .push { position: absolute; inset: 0; }
@keyframes push { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.pair { --pos: 100%; }
.pair .after { clip-path: inset(0 0 0 var(--pos)); }
.pair .line {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--cream);
  box-shadow: 0 0 0 1px rgba(52, 75, 99, .25); pointer-events: none;
}
.pair .grip {
  position: absolute; top: 50%; left: var(--pos); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--gold); pointer-events: none; display: grid; place-items: center; color: var(--navy);
}
.pair .tag { position: absolute; top: 16px; padding: 8px 12px; border-radius: var(--radius); font-size: var(--t-small); font-weight: 600; pointer-events: none; transition: opacity .4s var(--ease); }
.pair .tag.b { left: 16px; background: var(--navy); color: var(--cream); }
.pair .tag.a { right: 16px; background: var(--cream); color: var(--navy); }
.pair input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 2; }
.pair:focus-within .grip { outline: 3px solid var(--gold); outline-offset: 4px; }
.rotator .dots { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; gap: 2px; z-index: 3; }
.pair .line, .pair .grip { transition: opacity .5s var(--ease); }
.pair.done .line, .pair.done .grip, .pair.done .tag.b { opacity: 0; }
.rotator .dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.rotator .dots button::after { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--cream); box-sizing: border-box; }
.rotator .dots button[aria-current="true"]::after { background: var(--cream); }

/* ---------- Hero card ---------- */
.card {
  min-height: calc(100svh - 2 * var(--gap));
  border-radius: var(--radius); background: var(--cream);
  display: flex; flex-direction: column; padding: 0 var(--pad) 28px;
}
.stripe { display: flex; height: 40px; margin: 0 calc(-1 * var(--pad)); border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.stripe i { flex: 1; background: var(--navy); }
.stripe i:nth-child(even) { background: var(--cream); }
.stripe i:nth-child(4n+3) { background: var(--gold); }
.card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px 0 24px; }
.wordmark { width: min(260px, 60%); height: auto; margin-bottom: 36px; }
.card h1 { max-width: 17ch; margin-bottom: 22px; text-wrap: balance; }
.card .sub { font-size: var(--t-lead); line-height: 1.5; max-width: 34ch; margin: 0 auto 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.price-note { margin: 18px 0 0; font-size: var(--t-small); font-weight: 500; }
.card-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; font-size: var(--t-small); font-weight: 500; }

/* ---------- Services as a menu ---------- */
.menu { padding: clamp(64px, 9vw, 120px) var(--pad) clamp(48px, 6vw, 80px); }
.menu > h2 { margin-bottom: 12px; }
.menu > .intro { max-width: 46ch; margin-bottom: 8px; }
.group { padding-top: 44px; scroll-margin-top: 24px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.group h3 { font-size: 1.9rem; }
.group .see {
  font: 600 var(--t-small)/1 var(--sans); color: var(--navy); background: none; border: 0; padding: 10px 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap;
}
.group .see[aria-pressed="true"] { text-decoration-color: var(--navy); }
.item { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; }
.item .name { font-size: var(--t-body); font-weight: 600; }
.item .price { font-size: var(--t-body); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item .price s { font-weight: 400; margin-right: 8px; text-decoration-color: var(--gold); }
.desc { max-width: 46ch; margin: 2px 0 0; }
.group .order { font-weight: 600; white-space: nowrap; }
.inline-ex { display: none; }

/* ---------- Full-width sections ---------- */
.on-navy { background: var(--navy); color: var(--cream); }
.on-navy a { color: var(--cream); }
.band { padding: clamp(72px, 10vw, 128px) var(--pad); }
.wrap { max-width: 1240px; margin: 0 auto; }

/* how it works: a slip */
.how { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: start; }
.how .text { grid-column: 1; }
.how .text h2 { font-size: clamp(2.4rem, 4.4vw, 4.2rem); margin-bottom: 20px; }
.how .text p { max-width: 34ch; font-size: var(--t-lead); line-height: 1.5; }
.slip {
  grid-column: 3; background: var(--cream); color: var(--navy);
  padding: 32px 32px 56px; max-width: 520px; width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), 96% 100%, 92% calc(100% - 14px), 88% 100%, 84% calc(100% - 14px), 80% 100%, 76% calc(100% - 14px), 72% 100%, 68% calc(100% - 14px), 64% 100%, 60% calc(100% - 14px), 56% 100%, 52% calc(100% - 14px), 48% 100%, 44% calc(100% - 14px), 40% 100%, 36% calc(100% - 14px), 32% 100%, 28% calc(100% - 14px), 24% 100%, 20% calc(100% - 14px), 16% 100%, 12% calc(100% - 14px), 8% 100%, 4% calc(100% - 14px), 0 100%);
  font-size: var(--t-body); font-variant-numeric: tabular-nums;
}
.slip h3 { font-family: var(--sans); font-size: var(--t-body); font-weight: 700; margin: 26px 0 8px; letter-spacing: 0; }
.slip h3:first-child { margin-top: 0; }
.row { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; }
.row .what { flex: 0 1 auto; }
.row .dots { flex: 1 1 24px; min-width: 24px; height: 4px; align-self: center; background: radial-gradient(circle, var(--navy) 1.5px, transparent 2px) 0 50% / 9px 4px repeat-x; }
.row .when { flex: none; font-weight: 600; }
.row.total { margin: 24px -32px 0; padding: 0 32px; min-height: 48px; align-items: center; background: var(--navy); color: var(--cream); font-weight: 600; }
.row.total .dots { background-image: radial-gradient(circle, var(--cream) 1.5px, transparent 2px); }

/* faq as reading text */
.faq-wrap { display: grid; grid-template-columns: 3fr 1fr 8fr; }
.faq-wrap h2 { grid-column: 1; }
.faq-text { grid-column: 3; columns: 2; column-gap: 56px; }
.faq-text p { break-inside: avoid; margin: 0 0 20px; line-height: 1.6; }
.faq-text b { font-weight: 600; }

/* closing sentence */
.closing { padding: 26svh var(--pad) 18svh; }
.closing p { font-size: clamp(1.25rem, 1.8vw, 1.5rem); max-width: 34ch; margin-bottom: 24px; }
.closing .actions { justify-content: flex-start; align-items: center; gap: 20px; }

/* footer: photograph half, menu half */
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding: var(--gap); }
.foot-photo { border-radius: var(--radius); overflow: hidden; min-height: 70svh; }
.foot-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.foot-menu { border-radius: var(--radius); padding: 48px var(--pad) 28px; display: flex; flex-direction: column; }
.foot-menu .mark { width: 64px; height: auto; margin-bottom: 40px; }
.foot-menu nav { display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px; }
.foot-menu nav a { font-family: var(--serif); font-size: clamp(1.9rem, 2.6vw, 2.6rem); font-weight: 600; text-decoration: none; line-height: 1.1; transition: transform .25s var(--ease), color .25s var(--ease); width: fit-content; }
.foot-menu nav a:hover { transform: translateX(12px); color: var(--gold); }
.foot-info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: var(--t-small); margin-bottom: 40px; }
.foot-info p { margin: 0; }
.legal { margin-top: auto; font-size: var(--t-small); line-height: 1.55; }
.legal p { margin: 0 0 6px; max-width: 70ch; }

/* entrance */
.rise { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rise.in { opacity: 1; transform: none; }

/* ---------- Page (sample, legal) ---------- */
.page-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px var(--pad); }
.page-top .lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.page-top .lockup img:first-child { width: 44px; height: auto; }
.page-top .lockup img:last-child { width: 150px; height: auto; }
.page-main { padding: clamp(32px, 6vw, 72px) var(--pad) 96px; }
.page-main .wrap { max-width: 760px; }
.page-main h1 { margin-bottom: 18px; }
.page-main .sub { font-size: var(--t-lead); line-height: 1.5; max-width: 44ch; margin-bottom: 40px; }
.legal-text h2 { font-size: 1.9rem; margin: 44px 0 12px; }
.legal-text ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-text li { margin-bottom: 8px; }
.legal-text p, .legal-text li { max-width: 68ch; }

/* form */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; }
.field .hint { font-size: var(--t-small); margin: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="url"], .field textarea {
  font: inherit; color: var(--navy); background: var(--white);
  border: 2px solid var(--navy); border-radius: var(--radius); padding: 12px 14px; min-height: 52px; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.drop {
  display: grid; place-items: center; text-align: center; gap: 6px; padding: 28px 16px;
  border: 2px dashed var(--navy); border-radius: var(--radius); background: var(--white); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.drop:hover, .drop.over { border-color: var(--gold); background: var(--cream); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumbs figure { margin: 0; position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--white); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 6px; right: 6px; min-width: 32px; min-height: 32px; border-radius: var(--radius); border: 0; background: var(--navy); color: var(--cream); font: 600 0.8125rem var(--sans); cursor: pointer; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.msg { padding: 16px 18px; border-radius: var(--radius); border: 2px solid var(--navy); background: var(--white); }
.msg[hidden] { display: none; }
.msg.err { border-color: var(--gold); }
.done h2 { margin-bottom: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .stage { position: relative; top: 0; height: 56svh; order: -1; }
  .card { min-height: 0; margin-top: -24px; position: relative; padding-bottom: 32px; }
  .stripe { height: 32px; }
  .card-body { padding-top: 32px; }
  .wordmark { width: min(56%, 230px); margin-bottom: 24px; }
  .card h1 { font-size: clamp(2.3rem, 9vw, 3rem); }
  .inline-ex { display: block; margin: 16px 0 6px; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
  .inline-ex video, .inline-ex img { width: 100%; height: auto; }
  .inline-ex.tall video { max-height: 70svh; width: auto; margin: 0 auto; }
  .group .see { display: none; }
  .how, .faq-wrap { grid-template-columns: 1fr; }
  .how .text, .slip, .faq-wrap h2, .faq-text { grid-column: 1; }
  .slip { margin-top: 36px; max-width: none; padding: 26px 20px 52px; }
  .row.total { margin: 22px -20px 0; padding: 0 20px; }
  .faq-wrap h2 { margin-bottom: 24px; }
  .faq-text { columns: 1; }
  .foot { grid-template-columns: 1fr; }
  .foot-photo { min-height: 46svh; }
  .foot-menu { padding: 36px 20px 24px; }
  .foot-menu nav a { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .two, .foot-info { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .actions .btn { width: 100%; }
  .row { gap: 14px; }
  .row .what { flex: 1 1 auto; }
  .row .dots { display: none; }
  .row .when { text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .stage .layer, .slides img { transition: none; }
  * { transition-duration: 0s !important; }
}
@media (max-width: 600px) {
  .page-top { padding: 14px 16px; }
  .page-top .lockup img:first-child { width: 36px; }
  .page-top .lockup img:last-child { width: 108px; }
  .page-top .btn { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; white-space: nowrap; }
}
