/* =========================================================
   WESTWAY LIMITED
   Private Lifestyle Management & Bespoke Travel
   Premium animated build — no framework, GSAP + Lenis driven
   ========================================================= */

:root {
  --cream: #f3efe6;
  --cream-deep: #e9e3d6;
  --ink: #121110;
  --ink-soft: #1c1b19;
  --paper: #f8f5ef;
  --gold: #b08d57;
  --gold-soft: #c8a877;
  --gold-deep: #8d6c3c;
  --muted: #6f6a60;
  --muted-light: rgba(243, 239, 230, 0.55);
  --line: rgba(18, 17, 16, 0.14);
  --line-light: rgba(243, 239, 230, 0.16);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1320px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html {
  /* Lenis handles smooth scroll; keep native off to avoid double-smoothing */
  scroll-behavior: auto;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

.display { font-size: clamp(3rem, 11vw, 12rem); font-weight: 500; line-height: 0.92; }
h1 { font-size: clamp(2.8rem, 8vw, 7rem); }
h2 { font-size: clamp(2.1rem, 5vw, 4.2rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); }

p { margin: 0 0 1.2em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.container--wide { max-width: 1640px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 1.6rem;
}
.eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.center::before { display: none; }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink-soft);
}

.italic { font-style: italic; color: var(--gold-deep); }

/* ============ Noise / grain overlay ============ */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(2) infinite;
}
@keyframes grain {
  0% { transform: translate(0,0); }
  50% { transform: translate(-3%, 2%); }
  100% { transform: translate(2%, -2%); }
}

/* ============ Custom cursor ============ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9500;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot { width: 6px; height: 6px; background: #fff; }
.cursor-ring {
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.7);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), background 0.4s var(--ease), opacity 0.3s;
}
.cursor-ring.hover { width: 74px; height: 74px; background: rgba(255,255,255,0.08); }
.cursor-ring .clabel {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 0.5rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: #fff; opacity: 0;
  transition: opacity 0.3s;
}
.cursor-ring.label .clabel { opacity: 1; }
body.using-touch .cursor-dot,
body.using-touch .cursor-ring { display: none; }

/* ============ Preloader ============ */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
.preloader__inner {
  width: 100%; max-width: var(--maxw);
  padding: 0 40px 8vh;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.preloader__word {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 9vw, 8rem);
  color: var(--cream);
  line-height: 0.9;
  overflow: hidden;
}
.preloader__word span { display: inline-block; transform: translateY(110%); }
.preloader__count {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 9vw, 8rem);
  color: var(--gold);
  line-height: 0.9;
}
.preloader__bar {
  position: absolute; left: 0; bottom: 0;
  height: 2px; width: 0%; background: var(--gold);
}

/* page-transition curtain */
.curtain {
  position: fixed; inset: 0; z-index: 9800;
  background: var(--ink);
  transform: translateY(100%);
  pointer-events: none;
}

/* ============ Header ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 40px;
  mix-blend-mode: difference;
  transition: padding 0.5s var(--ease);
}
.site-header.compact { padding: 18px 40px; }
.brand {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #fff;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.5rem; letter-spacing: 0.4em;
  color: rgba(255,255,255,0.7); margin-top: 3px; font-weight: 400;
}
.nav { display: flex; align-items: center; gap: 42px; }
.nav a {
  font-family: var(--sans);
  font-size: 0.74rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #fff; position: relative; overflow: hidden; padding: 4px 0;
}
.nav a .nav-line { display: block; transition: transform 0.5s var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: #fff; transition: width 0.45s var(--ease);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 210;
}
.nav-toggle span { width: 28px; height: 1.5px; background: #fff; transition: transform 0.4s var(--ease), opacity 0.4s var(--ease); }

/* ============ Hero ============ */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: flex-end;
  color: var(--cream); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero__media-inner {
  position: absolute; inset: -10%;
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.7) 100%);
}
.hero .container { position: relative; z-index: 2; padding-bottom: 7vh; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hero h1 { color: var(--cream); margin: 0; }
.hero__sub { max-width: 38ch; }
.hero__sub .lead { color: rgba(243,239,230,0.9); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 3; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(243,239,230,0.7); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero__scroll .scl { width: 1px; height: 46px; background: rgba(243,239,230,0.4); position: relative; overflow: hidden; }
.hero__scroll .scl::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--cream); animation: scl 2s var(--ease-inout) infinite;
}
@keyframes scl { 0% { top: -100%; } 60%,100% { top: 100%; } }

/* line-mask reveal helper */
.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; will-change: transform; }

/* ============ Marquee ============ */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 26px 0; background: var(--cream);
}
.marquee__track { display: inline-flex; gap: 60px; will-change: transform; }
.marquee__track span {
  font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.6rem);
  letter-spacing: 0.02em; color: var(--ink); display: inline-flex; align-items: center; gap: 60px;
}
.marquee__track span::after { content: "✦"; color: var(--gold); font-size: 0.7em; }

/* ============ Sections ============ */
.section { padding: clamp(80px, 12vw, 180px) 0; position: relative; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--deep { background: var(--cream-deep); }
.section--dark { background: var(--ink); color: var(--cream); }
.section--dark .lead { color: rgba(243,239,230,0.8); }
.section--dark .eyebrow { color: var(--gold-soft); }
.section--dark .eyebrow::before { background: var(--gold-soft); }

.section-head { max-width: 860px; margin: 0 auto clamp(50px, 7vw, 96px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }

/* ============ Intro split ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.split--reverse .split__text { order: 2; }
.media-reveal { position: relative; overflow: hidden; }
.media-reveal__img { background-size: cover; background-position: center; will-change: transform; }
.split__media { aspect-ratio: 4/5; }
.split__media.tall { aspect-ratio: 3/4; }

.figures { display: flex; gap: 56px; margin-top: 46px; flex-wrap: wrap; }
.figure .num { font-family: var(--serif); font-size: clamp(2.6rem, 4vw, 3.6rem); color: var(--gold-deep); line-height: 1; }
.figure .label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ============ Horizontal scroll services ============ */
.h-scroll { background: var(--ink); color: var(--cream); overflow: hidden; }
.h-scroll__pin { height: 100vh; display: flex; align-items: center; }
.h-scroll__track { display: flex; align-items: stretch; gap: 0; will-change: transform; padding: 0 6vw; }
.h-intro {
  flex: 0 0 36vw; min-width: 320px; display: flex; flex-direction: column; justify-content: center;
  padding-right: 6vw;
}
.h-intro .eyebrow { color: var(--gold-soft); }
.h-intro .eyebrow::before { background: var(--gold-soft); }
.h-panel {
  flex: 0 0 30vw; min-width: 340px;
  border-left: 1px solid var(--line-light);
  padding: 0 4vw; display: flex; flex-direction: column; justify-content: center;
  transition: background 0.5s var(--ease);
}
.h-panel:hover { background: rgba(243,239,230,0.03); }
.h-panel__no { font-family: var(--serif); font-size: 1rem; color: var(--gold-soft); letter-spacing: 0.1em; margin-bottom: 30px; }
.h-panel h3 { color: var(--cream); margin-bottom: 0.5em; }
.h-panel p { color: rgba(243,239,230,0.6); font-size: 1rem; margin: 0; }
.h-panel__img { aspect-ratio: 16/10; background-size: cover; background-position: center; margin-top: 34px; }

.h-scroll__hint { position: absolute; right: 40px; bottom: 36px; z-index: 5; font-size: 0.62rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(243,239,230,0.5); }

/* fallback vertical grid (mobile) */
.v-grid { display: none; }
.v-grid .v-card { border-top: 1px solid var(--line-light); padding: 40px 0; }
.v-grid .v-card__no { font-family: var(--serif); color: var(--gold-soft); margin-bottom: 16px; }

/* ============ Feature list ============ */
.feature-list { border-top: 1px solid var(--line); }
.feature-row {
  display: grid; grid-template-columns: 90px 1fr 1.4fr; gap: 40px;
  padding: clamp(32px, 4vw, 56px) 0; border-bottom: 1px solid var(--line); align-items: baseline;
  position: relative; transition: padding-left 0.5s var(--ease);
}
.feature-row::before {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: var(--ink); z-index: -1; transition: width 0.5s var(--ease);
}
.feature-row .idx { font-family: var(--serif); font-size: 1.4rem; color: var(--gold-deep); transition: color 0.4s; }
.feature-row p { margin: 0; color: var(--muted); transition: color 0.4s; }
.feature-row h3 { transition: color 0.4s; }
.feature-row:hover { padding-left: 36px; color: var(--cream); }
.feature-row:hover::before { width: calc(100% + 80px); margin-left: -40px; }
.feature-row:hover .idx { color: var(--gold-soft); }
.feature-row:hover h3 { color: var(--cream); }
.feature-row:hover p { color: rgba(243,239,230,0.7); }

/* ============ Quote ============ */
.quote { text-align: center; max-width: 1000px; margin: 0 auto; }
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1.22; font-weight: 400; margin: 0 0 1.6rem;
}
.quote cite { font-style: normal; font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }

/* ============ CTA ============ */
.cta { text-align: center; }
.cta h2 { max-width: 16ch; margin: 0 auto 0.5em; }
.cta p { max-width: 50ch; margin: 0 auto 2.6rem; color: rgba(243,239,230,0.78); }

/* ============ Magnetic button ============ */
.magnetic { display: inline-block; position: relative; will-change: transform; }
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 20px 44px; border: 1px solid var(--ink); background: var(--ink); color: var(--cream);
  cursor: pointer; position: relative; overflow: hidden; border-radius: 60px;
}
.btn span { position: relative; z-index: 2; transition: color 0.5s var(--ease); }
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease); z-index: 1;
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover span { color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover span { color: var(--ink); }
.btn--light { border-color: var(--cream); background: transparent; color: var(--cream); }
.btn--light::before { background: var(--cream); }
.btn--light:hover span { color: var(--ink); }
.btn--dark-on-gold { }

/* ============ Page hero (subpages) ============ */
.page-hero {
  position: relative; height: 78vh; min-height: 540px;
  display: flex; align-items: flex-end; color: var(--cream); overflow: hidden;
}
.page-hero__media { position: absolute; inset: 0; overflow: hidden; }
.page-hero__media-inner { position: absolute; inset: -10%; background-size: cover; background-position: center; will-change: transform; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.3), rgba(0,0,0,0.65)); }
.page-hero .container { position: relative; z-index: 2; padding-bottom: 8vh; }
.page-hero h1 { color: var(--cream); margin: 0; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero .eyebrow::before { background: var(--gold-soft); }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-detail { margin-bottom: 40px; }
.contact-detail .k { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.contact-detail .v { font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; }
.contact-detail .v a { position: relative; }
.contact-detail .v a:hover { color: var(--gold-deep); }

form .field { margin-bottom: 30px; position: relative; }
form label { display: block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
form input, form select, form textarea {
  width: 100%; font-family: var(--sans); font-size: 1.05rem; font-weight: 300;
  padding: 16px 0; border: none; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--ink); transition: border-color 0.4s var(--ease);
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--gold); }
form textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.84rem; color: var(--muted); margin-top: 16px; }
.form-success { display: none; margin-top: 24px; padding: 18px 22px; background: var(--ink); color: var(--cream); font-size: 0.9rem; }
.form-success.show { display: block; }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: rgba(243,239,230,0.65); padding: clamp(70px,9vw,120px) 0 40px; overflow: hidden; }
.footer-mark {
  font-family: var(--serif); font-size: clamp(4rem, 18vw, 18rem); line-height: 0.8;
  color: var(--cream); letter-spacing: -0.01em; margin: 0 0 60px; white-space: nowrap;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-light); }
.footer-brand p { max-width: 36ch; margin-top: 18px; }
.footer-col h4 { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream); margin-bottom: 20px; }
.footer-col a { display: block; padding: 7px 0; transition: color 0.35s, transform 0.35s var(--ease); }
.footer-col a:hover { color: var(--gold-soft); transform: translateX(6px); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 0.76rem; color: rgba(243,239,230,0.45); }

/* ============ Reveal base (JS adds .in via GSAP; CSS fallback) ============ */
.no-js .line-mask > span,
.no-js .preloader { transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .split--reverse .split__text { order: 0; }
  .split__media { aspect-ratio: 16/11; }
  .hero__row { flex-direction: column; align-items: flex-start; }
  .feature-row { grid-template-columns: 56px 1fr; }
  .feature-row p { grid-column: 2/3; }
  .feature-row:hover { padding-left: 18px; }
  /* horizontal scroll → vertical fallback */
  .h-scroll__pin, .h-scroll__hint { display: none; }
  .h-scroll .v-grid { display: block; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 22px; }
  .site-header { padding: 18px 22px; mix-blend-mode: normal; }
  .preloader__inner { padding: 0 22px 8vh; }
  .nav {
    position: fixed; inset: 0; background: var(--ink); flex-direction: column;
    justify-content: center; gap: 28px; transform: translateX(100%);
    transition: transform 0.6s var(--ease-inout); mix-blend-mode: normal;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.3rem; font-family: var(--serif); }
  .nav-toggle { display: flex; }
  .nav-toggle span { background: #fff; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .figures { gap: 36px; }
  .footer-mark { font-size: 22vw; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero__scroll .scl::after { animation: none; }
  * { scroll-behavior: auto !important; }
}
