@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --ink: #213138;
  --dark: #1a1a1a;
  --warm: #f5f0ea;
  --muted: rgba(255, 255, 255, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; overflow-x: clip; }

body {
  margin: 0;
  background: var(--warm);
  overflow-x: clip;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.font-syne { font-family: 'Syne', sans-serif; }
.font-body { font-family: 'Inter', sans-serif; }

/* ---- Preloader cursor blink ---- */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.pl-cursor {
  display: inline-block;
  width: 3px;
  height: 1.1em;
  background: #fff;
  margin-left: 4px;
  vertical-align: baseline;
  animation: blink 0.7s step-end infinite;
}

/* ---- Hero responsive type ---- */
.hero-own-the {
  font-size: 3vw;
  line-height: 0.95;
}
.hero-extraordinary {
  font-size: clamp(52px, 6.5vw, 9vw);
  white-space: nowrap;
  line-height: 0.9;
}
@media (max-width: 1023px) {
  .hero-own-the { font-size: 5.5vw; }
  .hero-extraordinary { font-size: 11vw; white-space: normal; }
}
@media (max-width: 767px) {
  .hero-own-the { font-size: 7.5vw; }
  .hero-extraordinary { font-size: 14.5vw; }
}

/* ---- Dark section content indent ---- */
.dark-pad {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 25%;
}
@media (max-width: 1023px) { .dark-pad { padding-left: 15%; } }
@media (max-width: 767px)  { .dark-pad { padding-left: 0; } }

/* ---- Gallery accordion / mobile grid ---- */
.gallery-section { height: 100vh; }
@media (max-width: 1023px) {
  .gallery-section { height: auto; min-height: 100vh; padding: 90px 0; display: flex; align-items: center; }
}

.gallery-row {
  display: flex;
  gap: 6px;
  height: 70%;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item {
  position: relative;
  flex: 1;
  border-radius: 0.75rem;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 0;
}
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 1023px) {
  .gallery-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    height: auto;
  }
  .gallery-item { flex: none !important; aspect-ratio: 4 / 5; }
  .gallery-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: 50%;
    justify-self: center;
  }
}

/* ---- Gallery background ticker ---- */
.ticker-row {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(100px, 14vw, 220px);
  color: #fff;
  white-space: nowrap;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* ---- Reveal-on-scroll (opacity instant so it never gets stuck; transform slides) ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ---- Listing image hover ---- */
.listing-img { transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.listing-card:hover .listing-img { transform: scale(1.05); }

input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.4); }

/* ============ PREMIUM ADDITIONS ============ */

/* Page transition (transform-only so content never stays hidden) */
@keyframes pageIn {
  from { transform: translateY(16px); }
  to   { transform: translateY(0); }
}
.page-enter { animation: pageIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* Full-screen menu links */
.menu-link {
  position: relative;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1), color 0.3s ease;
  display: inline-flex;
  align-items: baseline;
  gap: 1.1rem;
}
.menu-link .menu-idx {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: rgba(33,49,56,0.4);
  transform: translateY(-0.4em);
}
.menu-link:hover { color: #8a8278; }
.menu-link.is-active { color: #b1473b; }
.menu-stagger { opacity: 0; transform: translateY(26px); }
.menu-open .menu-stagger { animation: menuItemIn 0.7s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes menuItemIn { to { opacity: 1; transform: translateY(0); } }

/* Hairline scroll cue */
.scroll-cue { position: relative; width: 1px; height: 64px; background: rgba(255,255,255,0.35); overflow: hidden; }
.scroll-cue::after {
  content: ''; position: absolute; top: -60%; left: 0; width: 100%; height: 60%;
  background: #fff; animation: cueRun 2.2s cubic-bezier(0.7,0,0.3,1) infinite;
}
@keyframes cueRun { 0% { top: -60%; } 60%,100% { top: 100%; } }

/* Underlined nav-style link */
.u-link {
  position: relative; display: inline-block; padding-bottom: 2px;
}
.u-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.u-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* Listing hover affordance */
.listing-card .listing-cta {
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
.listing-card:hover .listing-cta { opacity: 1; transform: translateY(0); }

/* Filter chips */
.chip {
  font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.04em;
  padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(33,49,56,0.18);
  color: rgba(33,49,56,0.7); cursor: pointer; transition: all 0.3s ease; white-space: nowrap;
  background: transparent;
}
.chip:hover { border-color: rgba(33,49,56,0.45); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Eyebrow */
.eyebrow {
  font-family: 'Inter', sans-serif; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.32em; font-size: clamp(10px, 0.85vw, 12px);
}

/* Detail overlay */
.detail-scroll { scrollbar-width: thin; }
.detail-scroll::-webkit-scrollbar { width: 8px; }
.detail-scroll::-webkit-scrollbar-thumb { background: rgba(33,49,56,0.2); border-radius: 8px; }

/* Generic image zoom on hover */
.img-zoom { transition: transform 0.9s cubic-bezier(0.22,1,0.36,1); }
.zoom-wrap:hover .img-zoom { transform: scale(1.06); }

/* ============ 3D ============ */
.tilt3d { transform-style: preserve-3d; transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); will-change: transform; }
.tilt3d .d-1 { transform: translateZ(28px); }
.tilt3d .d-2 { transform: translateZ(55px); }
.tilt3d .d-3 { transform: translateZ(85px); }

/* 3D glare sweep on tilt cards */
.tilt-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx,50%) var(--gy,0%), rgba(255,255,255,0.4), rgba(255,255,255,0) 45%);
  opacity: 0; transition: opacity 0.4s ease; mix-blend-mode: soft-light;
}
.tilt3d:hover .tilt-glare { opacity: 1; }

/* 3D rotating monogram */
.scene-3d { perspective: 1100px; }
.monogram-3d { position: relative; transform-style: preserve-3d; animation: monoSpin 18s linear infinite; }
@keyframes monoSpin {
  from { transform: rotateX(-12deg) rotateY(0deg); }
  to   { transform: rotateX(-12deg) rotateY(360deg); }
}
.mono-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 900; }
@media (prefers-reduced-motion: reduce) { .monogram-3d { animation: none; transform: rotateX(-12deg) rotateY(-22deg); } }

/* Floating 3D plane stack */
.plane-stack { transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.plane { position: absolute; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px rgba(33,49,56,0.18); }
@media (max-width: 767px) {
  .plane-accent { display: none !important; }
  .plane-stack { transform: none !important; }
}

/* Fade-up children utility handled by .reveal (already defined) */

/* ============ PREMIUM TEXTURE + CURSOR ============ */
/* Film grain — subtle tactile overlay across the whole site */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%; z-index: 60;
  pointer-events: none; opacity: 0.045; mix-blend-mode: multiply;
  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.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.6s steps(2) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0,0); } 50% { transform: translate(-1.5%, 1%); } 100% { transform: translate(1%, -1.5%); }
}

/* Custom cursor (desktop fine-pointer only) */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; border-radius: 999px; }
.cursor-dot { width: 6px; height: 6px; background: var(--ink); margin: -3px 0 0 -3px; transition: opacity 0.3s ease, background 0.3s ease; }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(33,49,56,0.5);
  display: flex; align-items: center; justify-content: center; text-align: center;
  transition: width 0.3s cubic-bezier(0.22,1,0.36,1), height 0.3s cubic-bezier(0.22,1,0.36,1), margin 0.3s cubic-bezier(0.22,1,0.36,1), border-color 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.cursor-ring.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: rgba(33,49,56,0.25); background: rgba(33,49,56,0.04); }
.cursor-ring .cursor-label {
  font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--warm); opacity: 0; transition: opacity 0.25s ease; white-space: nowrap;
}
.cursor-ring.has-label {
  width: 86px; height: 86px; margin: -43px 0 0 -43px;
  background: var(--ink); border-color: transparent;
}
.cursor-ring.has-label .cursor-label { opacity: 1; }
.cursor-on-dark .cursor-dot { background: #fff; }
.cursor-on-dark .cursor-ring { border-color: rgba(255,255,255,0.55); }
.cursor-on-dark .cursor-ring.is-hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); }
.cursor-on-dark .cursor-ring.has-label { background: #fff; }
.cursor-on-dark .cursor-ring.has-label .cursor-label { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .has-custom-cursor, .has-custom-cursor * { cursor: none !important; }
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* Kinetic location marquee */
.marquee { overflow: hidden; white-space: nowrap; display: flex; }
.marquee-track { display: inline-flex; align-items: center; flex: none; animation: marquee 38s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.marquee-item { font-family: 'Syne', sans-serif; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(34px, 5vw, 76px); color: var(--ink); padding: 0 0.35em; display: inline-flex; align-items: center; }
.marquee-star { color: #b1473b; font-size: 0.42em; padding: 0 0.5em; transform: translateY(-0.15em); }

/* Nav enquire pill */
.nav-pill { border: 1px solid currentColor; border-radius: 999px; padding: 8px 20px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.3s ease, color 0.3s ease; }
.nav-pill:hover { background: currentColor; }
.nav-pill:hover span { color: var(--warm); }

/* Editorial drop cap */
.dropcap::first-letter {
  font-family: 'Syne', sans-serif; font-weight: 800; float: left;
  font-size: 3.4em; line-height: 0.78; padding: 0.06em 0.12em 0 0; color: var(--ink);
}

/* ============ KINETIC TYPE + EFFECTS ============ */
/* Split-text reveal (opacity instant, transform slides — bulletproof, no hard clip) */
.sr-piece { display: inline-block; opacity: 0; transform: translateY(0.6em) rotate(1.5deg); transition: transform 0.85s cubic-bezier(0.22,1,0.36,1); }
.sr-in .sr-piece { opacity: 1; transform: translateY(0) rotate(0deg); }
.sr-line { display: inline-block; vertical-align: top; }

/* Self-drawing SVG illustrations */
.draw path, .draw line, .draw circle, .draw polyline, .draw rect {
  stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600);
  transition: stroke-dashoffset 1.6s cubic-bezier(0.65,0,0.35,1);
}
.draw.is-drawn path, .draw.is-drawn line, .draw.is-drawn circle, .draw.is-drawn polyline, .draw.is-drawn rect { stroke-dashoffset: 0; }

/* Rotating meridian mark */
.spin-slow { animation: spinSlow 26s linear infinite; transform-origin: center; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin-slow { animation: none; } }

/* Process timeline */
.proc-row { position: relative; }
.proc-num { font-variant-numeric: tabular-nums; }
.proc-line { transition: transform 1.1s cubic-bezier(0.22,1,0.36,1); transform: scaleY(0); transform-origin: top; }
.proc-row.is-in .proc-line { transform: scaleY(1); }

/* Route curtain transition */
.curtain { position: fixed; inset: 0; z-index: 90; pointer-events: none; transform: scaleY(0); transform-origin: bottom; }
.curtain.sweep { animation: curtainSweep 0.9s cubic-bezier(0.76,0,0.24,1) both; }
@keyframes curtainSweep {
  0% { transform: scaleY(0); transform-origin: bottom; }
  45% { transform: scaleY(1); transform-origin: bottom; }
  46% { transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}

/* Scroll progress meridian line */
.scroll-prog { position: fixed; top: 0; left: 0; height: 2px; z-index: 55; background: #b1473b; width: 0; transition: width 0.1s linear; }

/* Featured parallax */
.parallax-img { will-change: transform; }

/* Recognition / press strip */
.press-name { font-family: 'Syne', sans-serif; font-weight: 600; letter-spacing: -0.01em; color: rgba(33,49,56,0.42); font-size: clamp(17px, 1.7vw, 26px); transition: color 0.35s ease; cursor: default; }
.press-name:hover { color: var(--ink); }

/* Fill-from-bottom button */
.btn-fill { position: relative; overflow: hidden; isolation: isolate; }
.btn-fill::before { content: ''; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform 0.5s cubic-bezier(0.22,1,0.36,1); }
.btn-fill:hover::before { transform: translateY(0); }
.btn-fill-ink::before { background: var(--ink); }
.btn-fill-ink:hover { color: var(--warm) !important; }
.btn-fill-red::before { background: #b1473b; }
.btn-fill-red:hover { color: #fff !important; }

/* ============ COLLECTIONS HORIZONTAL SCROLL ============ */
.hscroll { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; scrollbar-width: none; cursor: grab; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll.dragging { cursor: grabbing; scroll-snap-type: none; }
.hcard { scroll-snap-align: start; flex: 0 0 auto; width: clamp(280px, 42vw, 540px); }
.hcard .hcard-img { transition: transform 0.9s cubic-bezier(0.22,1,0.36,1); }
.hcard:hover .hcard-img { transform: scale(1.05); }

/* ============ TESTIMONIALS ============ */
.testi { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.testi-enter { opacity: 0; transform: translateY(14px); }
.testi-in { opacity: 1; transform: translateY(0); }
.testi-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.25); transition: all 0.4s ease; cursor: pointer; }
.testi-dot.on { width: 26px; background: #b1473b; }

/* ============ WORLD / COORDINATE MAP ============ */
.coord-field { position: relative; width: 100%; }
.city-dot { position: absolute; width: 9px; height: 9px; border-radius: 999px; background: #b1473b; transform: translate(-50%, -50%); cursor: pointer; }
.city-dot::after { content: ''; position: absolute; inset: -6px; border-radius: 999px; border: 1px solid rgba(177,71,59,0.6); animation: cityPulse 2.6s ease-out infinite; }
@keyframes cityPulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
.city-dot .city-tip { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap; font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.85); opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; }
.city-dot:hover .city-tip { opacity: 1; transform: translateX(-50%) translateY(-3px); }
.city-dot:hover { background: #fff; }

/* ============ SERVICES ============ */
.svc-row { border-top: 1px solid rgba(33,49,56,0.14); transition: background 0.4s ease; }
.svc-row:hover { background: rgba(33,49,56,0.02); }
.svc-row:last-child { border-bottom: 1px solid rgba(33,49,56,0.14); }
.svc-arrow { transition: transform 0.45s cubic-bezier(0.22,1,0.36,1); }
.svc-row:hover .svc-arrow { transform: translate(6px, -6px); }
.svc-big { transition: color 0.4s ease; }

/* ============ NEWSLETTER ============ */
.nl-input { background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.3); color: #fff; transition: border-color 0.3s ease; }
.nl-input:focus { outline: none; border-color: #fff; }
