/* =========================================================
   MARLOW | Pet Lifestyle Management
   Membership landing page (hero inspired by Soho House)
   Cream and Marlow blue alternate down the page; Gold accents (no pink)
   Cream: top bar, hero, closing photograph. Blue: opening logo, membership, footer.
   ========================================================= */
:root {
  --navy: #002845;
  --navy-deep: #001b30;
  --ivory: #F5F0E8;
  --ivory-soft: #FAF7F2;
  --gold: #C8A968;
  --gold-text: #A8873F;      /* deeper gold for text on Marlow blue */
  --gold-text-light: #6E5527; /* deeper gold for text on cream */
  --line: rgba(245, 240, 232, .16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.25, .46, .2, 1);
  --bar: 64px;
  --frame: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--ivory); color: var(--navy);
  font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: var(--serif); font-weight: 300; margin: 0; line-height: 1.1; }
p { margin: 0; }
.center { text-align: center; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--bar);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 calc(var(--frame) + 8px); background: var(--ivory); color: var(--navy);
}
.topbar-left { display: flex; gap: 28px; }
.topbar-left button, .topbar-apply {
  font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--navy-deep);
  position: relative; padding: 4px 0;
}
.topbar-left button::after, .topbar-apply::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.topbar-left button:hover::after, .topbar-apply::after { transform: scaleX(1); }
.topbar-mark { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--navy); letter-spacing: .42em; padding-left: .42em; }
.topbar-right { justify-self: end; }

/* ---------- Opening sequence: logo, then fade to the hero ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 100; background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ivory);
  transition: opacity 1.8s var(--ease), visibility 1.8s;
}
.curtain .mark {
  font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 84px);
  letter-spacing: .5em; padding-left: .5em; opacity: 0; transform: translateY(10px);
  animation: markIn 1.8s var(--ease) .3s forwards;
}
.curtain .mark-line { width: 0; height: 1px; background: var(--gold); margin: 26px 0 20px; animation: lineIn 1.4s var(--ease) 1.1s forwards; }
.curtain .mark-sub { font-size: clamp(13px, 1.3vw, 16px); letter-spacing: .38em; padding-left: .38em; text-transform: uppercase; color: var(--gold-text); opacity: 0; animation: fadeIn 1.4s var(--ease) 1.5s forwards; }
.curtain.done { opacity: 0; visibility: hidden; }
@keyframes markIn { to { opacity: 1; transform: none; } }
@keyframes lineIn { to { width: 90px; } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- Hero: one full-width picture, message set into its left side ---------- */
.hero { padding: 0; }
.hero-frame {
  position: relative; overflow: hidden;
  height: calc(100vh - var(--bar)); height: calc(100svh - var(--bar));
  min-height: 560px; display: flex; align-items: center;
}
.hero-picture { margin: 0; position: absolute; inset: 0; overflow: hidden; background: #e9e1d4; }
.hero-picture picture { display: contents; }
.hero-picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 50%;
  transform: scale(1.06); transition: transform 8s cubic-bezier(.2, .6, .2, 1);
}
/* a soft veil of cream over the stone wall so the message reads clearly */
.hero-picture::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(245, 240, 232, .55) 0%, rgba(245, 240, 232, .32) 34%, rgba(245, 240, 232, 0) 56%);
}
.hero.live .hero-picture img { transform: scale(1); }
.hero-copy {
  position: relative; z-index: 1; width: min(46%, 640px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 0 clamp(32px, 6vw, 112px); color: var(--navy);
}
.descriptor { font-size: clamp(13px, 1.1vw, 16px); font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-text-light); margin-bottom: 28px; }
.hero h1 { font-size: clamp(36px, 4vw, 64px); line-height: 1.12; max-width: 13ch; }
.hero h1 em { font-style: italic; display: block; color: var(--navy); opacity: .9; }
.btn-pill {
  margin-top: 44px; background: var(--navy); color: var(--ivory); border-radius: 0;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  padding: 17px 36px; transition: background .7s var(--ease), color .7s var(--ease);
}
.btn-pill:hover, .btn-pill:focus-visible { background: var(--gold); color: var(--navy); }
.hero-copy > * { opacity: 0; transform: translateY(14px); transition: opacity 1.8s var(--ease), transform 1.8s var(--ease); }
.hero.live .hero-copy > * { opacity: 1; transform: none; }
.hero.live .hero-copy > :nth-child(2) { transition-delay: .2s; }
.hero.live .hero-copy > :nth-child(3) { transition-delay: .45s; }

/* ---------- Membership (Marlow blue): photograph, heading, one button ---------- */
.pathways-section { background: var(--navy); color: var(--ivory); padding: clamp(88px, 11vw, 150px) var(--frame) clamp(96px, 12vw, 160px); text-align: center; }
.eyebrow { font-size: 10px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 16px; }
.pathways-section .eyebrow { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: .36em; padding-left: .36em; font-weight: 500; margin-bottom: 0; }
.pathways { max-width: 1200px; margin: clamp(44px, 5vw, 64px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); }
.pathway { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pathway-picture { margin: 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; position: relative; cursor: pointer; background: var(--navy-deep); }
.pathway-picture img {
  width: 100%; height: 100%; object-fit: cover; filter: contrast(.95) brightness(.97);
  transform: scale(1.04); transition: transform 2.4s var(--ease);
}
.pathway-picture:hover img { transform: scale(1.015); }
.pathway-label { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; color: var(--ivory); margin-top: clamp(30px, 3vw, 40px); }
.pathway-link {
  margin-top: 26px; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ivory); border: 1px solid rgba(200, 169, 104, .7); padding: 14px 34px;
  transition: background .7s var(--ease), color .7s var(--ease), border-color .7s var(--ease);
}
.pathway-link:hover, .pathway-link:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* Gentle reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.6s var(--ease), transform 1.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.pathway.reveal + .pathway.reveal { transition-delay: .2s; }
.reveal.in .pathway-picture img, .editorial.in img { transform: none; }

/* ---------- Closing photograph (cream) ---------- */
.closing { background: var(--ivory); padding: clamp(88px, 11vw, 150px) var(--frame); }
.editorial { margin: 0 auto; max-width: 1320px; }
.editorial-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #e9e1d4; }
.editorial img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%;
  transform: scale(1.04); transition: transform 2.6s var(--ease);
}

/* ---------- Footer (Marlow blue) ---------- */
.landing-foot {
  --foot-edge: clamp(32px, 4vw, 56px);
  background: var(--navy); padding: 38px var(--foot-edge) 42px 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px 0;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: rgba(245, 240, 232, .6);
}
/* Wording centred on the page; MARLOW centred between the left edge and "Pet"; copyright on the right */
.foot-brand { display: contents; }
.foot-brand .foot-mark { justify-self: center; }
.foot-copy { justify-self: end; }
.foot-mark { font-family: var(--serif); font-size: 18px; letter-spacing: .4em; margin-right: -.4em; color: var(--ivory); text-transform: none; }
.foot-tag { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; font-size: clamp(13px, 1vw, 15px); letter-spacing: .28em; color: var(--gold-text); }
.foot-cities { font-size: clamp(9px, .64vw, 9.75px); letter-spacing: .26em; color: rgba(245, 240, 232, .8); white-space: nowrap; }
@media (max-width: 420px) { .foot-tag { letter-spacing: .2em; } .foot-cities { font-size: 9px; letter-spacing: .18em; } }

/* ---------- Inquiry drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; visibility: hidden; transition: visibility 0s .9s; }
.drawer.open { visibility: visible; transition: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 27, 48, .5); opacity: 0; transition: opacity .9s var(--ease); }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%);
  background: var(--ivory-soft); color: var(--navy-deep); font-weight: 400; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .9s var(--ease);
}
.drawer.open .drawer-panel { transform: none; }
.drawer-close { position: absolute; top: 20px; right: 26px; font-size: 34px; line-height: 1; font-weight: 300; }
.drawer-close:hover { color: var(--gold-text-light); }
.drawer-body { padding: 78px clamp(24px, 6vw, 56px) 56px; }
.eyebrow { font-size: 10px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 16px; }
.drawer-body h2 { font-size: clamp(34px, 4vw, 46px); }

.drawer .eyebrow { color: var(--gold-text-light); font-size: 11px; }
.switch { display: grid; grid-template-columns: 1fr 1fr; margin: 30px 0 28px; border: 1px solid rgba(0, 27, 48, .45); }
.switch button { padding: 15px 10px; font-size: 12px; font-weight: 600; color: var(--navy-deep); letter-spacing: .26em; text-transform: uppercase; transition: background .6s var(--ease), color .6s var(--ease); }
.switch button[aria-selected="true"] { background: var(--navy); color: var(--ivory); }

.form-intro { font-size: 15px; color: #1f3346; margin-bottom: 30px; }
.field { display: block; margin-bottom: 20px; min-width: 0; }
.field > span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--navy-deep); margin-bottom: 4px; }
.field > span em { font-style: normal; text-transform: none; letter-spacing: .02em; color: #4a5a68; font-weight: 400; margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; font-weight: 400; color: var(--navy-deep); background: transparent;
  border: 0; border-bottom: 1px solid rgba(0, 27, 48, .5); border-radius: 0; padding: 8px 0 10px; outline: none;
  -webkit-appearance: none; appearance: none; transition: border-color .4s;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='none' stroke='%23002845'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 20px; }
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--gold); }
.field.invalid input { border-bottom-color: #9b3b3b; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--navy-deep); line-height: 1.5; margin: 6px 0 28px; cursor: pointer; }
.consent input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.consent.invalid { color: #9b3b3b; }
.form-error { color: #9b3b3b; font-size: 13px; margin-bottom: 16px; }
.hp { position: absolute; left: -9999px; }
.link { font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; border-bottom: 1px solid var(--gold); padding-bottom: 5px; margin-top: 8px; }
.thanks h2 { margin-bottom: 18px; }
.btn { display: inline-block; border-radius: 0; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; padding: 17px 32px; transition: background .6s var(--ease), color .6s var(--ease); }
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-navy:hover, .btn-navy:focus-visible { background: var(--gold); color: var(--navy-deep); }
.btn-block { display: block; width: 100%; text-align: center; }
button[disabled] { opacity: .6; cursor: wait; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  :root { --bar: 58px; --frame: 12px; }
  .topbar-left { display: none; }
  .topbar { grid-template-columns: 1fr auto; padding: 0 20px; }
  .topbar-mark { font-size: 22px; letter-spacing: .34em; padding-left: 0; justify-self: start; }
  .hero-frame { display: flex; flex-direction: column-reverse; align-items: stretch; height: auto; min-height: 0; }
  .hero-picture { position: relative; inset: auto; width: 100%; aspect-ratio: 4 / 5; }
  .hero-picture::after { display: none; }
  .hero-picture img { object-position: 74% 50%; }
  .hero-copy { width: auto; align-items: center; text-align: center; padding: 48px 24px 56px; }
  .hero h1 { font-size: 32px; margin: 0 auto; }
  .pathways { grid-template-columns: 1fr; gap: 72px; padding: 0 8px; }
  .pathway.reveal + .pathway.reveal { transition-delay: 0s; }
  .closing { padding: 72px var(--frame); }
  .editorial-frame { aspect-ratio: 4 / 3; }
  .editorial img { object-position: 66% 50%; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .landing-foot { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-left: var(--foot-edge); }
  .foot-copy { justify-self: center; }
  .foot-mark { margin-right: 0; padding-left: .4em; }
  .foot-tag { align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .hero-copy > * { opacity: 1; transform: none; }
  .hero-picture img { transform: none; }
  .curtain { display: none; }
  .reveal, .reveal img, .editorial img { opacity: 1; transform: none; }
}
