:root {
  --paper: #FAFBFD;
  --ink: #1C2541;
  --ink-soft: #4A5372;
  --sun: #FFC845;
  --sun-deep: #F2A900;
  --pool: #8FD0EE;
  --blush: #F9BACB;
  --line: #E3E7F0;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
.hero { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h3 { font-size: 1.45rem; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 99px; z-index: 100; }
.skip:focus { left: 8px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.02rem; }
.brand-dot {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sun); font-family: var(--serif); font-weight: 750; font-size: 1.1rem;
}
.nav nav { display: flex; align-items: center; gap: 26px; font-weight: 500; font-size: .95rem; }
.nav nav a { text-decoration: none; }
.nav nav a:not(.nav-cta):hover { text-decoration: underline; text-decoration-color: var(--sun-deep); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nav-cta { background: var(--ink); color: var(--paper) !important; padding: 9px 18px; border-radius: 99px; }
@media (max-width: 820px) { .nav nav a:not(.nav-cta) { display: none; } }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: 99px;
  font-weight: 650; font-size: 1rem; text-decoration: none;
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), background .2s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 var(--sun-deep); }
.btn-ghost { border: 2px solid var(--ink); }
.btn-ghost-light { border: 2px solid rgba(255,255,255,.6); color: #fff; }

/* HERO */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) var(--gutter) clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.hero-kicker { font-weight: 600; color: var(--ink-soft); margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5.6rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.squiggle {
  background: linear-gradient(transparent 62%, var(--sun) 62%, var(--sun) 92%, transparent 92%);
  padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; margin: 26px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hint { display: flex; align-items: center; gap: 8px; margin-top: 28px; font-family: var(--serif); font-style: italic; color: var(--ink-soft); }

.table { position: relative; height: clamp(440px, 52vw, 640px); touch-action: none; user-select: none; }
.print, .sticker {
  position: absolute; margin: 0;
  cursor: grab;
  will-change: transform;
  transition: box-shadow .2s;
}
.print {
  width: clamp(150px, 19vw, 250px);
  background: #fff; padding: 10px 10px 34px; border-radius: 4px;
  box-shadow: 0 1px 2px rgba(28,37,65,.12), 0 12px 30px -10px rgba(28,37,65,.35);
}
.print-wide { width: clamp(220px, 28vw, 360px); }
.print img { width: 100%; height: auto; border-radius: 2px; pointer-events: none; -webkit-user-drag: none; }
.print.dragging { cursor: grabbing; box-shadow: 0 2px 4px rgba(28,37,65,.15), 0 30px 50px -14px rgba(28,37,65,.45); }
.sticker { width: clamp(80px, 9vw, 120px); }
.sticker svg { width: 100%; height: auto; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* drop-in on load (the one orchestrated moment) */
.table.ready .print { animation: drop .8s cubic-bezier(.2,1.4,.4,1) both; }
.table.ready .print:nth-child(2) { animation-delay: .12s; }
.table.ready .print:nth-child(3) { animation-delay: .24s; }
.table.ready .print:nth-child(4) { animation-delay: .36s; }
.table.ready .print:nth-child(5) { animation-delay: .48s; }
@keyframes drop { from { opacity: 0; translate: 0 -60px; scale: 1.15; } to { opacity: 1; translate: 0 0; scale: 1; } }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .table { height: 470px; margin-top: 8px; }
  .print { width: 150px; }
  .print-wide { width: 220px; }
}

/* WAYS */
.ways { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.ways h2 { max-width: 14em; margin-bottom: clamp(28px, 4vw, 48px); }
.ways-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.way {
  position: relative; text-decoration: none; border-radius: 28px; overflow: hidden;
  display: flex; flex-direction: column; min-height: 520px;
}
.way img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.way:hover img { transform: scale(1.04); }
.way > div {
  position: relative; margin-top: auto; margin: auto 14px 14px;
  padding: 20px 22px; border-radius: 20px;
}
.way p { margin-top: 8px; font-size: .97rem; }
.way-home > div { background: var(--pool); }
.way-studio > div { background: var(--sun); }
.way-trip > div { background: var(--blush); }
.way-home img { object-position: 50% 60%; }
@media (max-width: 900px) {
  .ways-grid { grid-template-columns: 1fr; }
  .way { min-height: 440px; }
}

/* GALLERY */
.work { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); scroll-margin-top: 60px; }
.work-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  font: 600 .95rem var(--sans); color: var(--ink);
  background: transparent; border: 2px solid var(--line);
  padding: 9px 18px; border-radius: 99px; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.masonry { columns: 3 300px; column-gap: 16px; }
.tile {
  break-inside: avoid; margin: 0 0 16px; padding: 0; border: 0; width: 100%;
  display: block; cursor: zoom-in; background: var(--line);
  border-radius: 18px; overflow: hidden;
}
.tile img { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .3s; }
.tile:hover img { transform: scale(1.03); }
@media (max-width: 640px) {
  .masonry { columns: 2; column-gap: 10px; }
  .tile { margin-bottom: 10px; border-radius: 12px; }
}
.tile.in { animation: pop .5s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* BTS */
.bts {
  background: var(--ink); color: var(--paper);
  scroll-margin-top: 60px;
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
  border-radius: clamp(28px, 4vw, 48px);
  margin: 0 clamp(8px, 1.5vw, 20px);
}
.bts-copy { max-width: 30em; justify-self: end; }
.bts-copy p { margin-top: 20px; font-size: 1.1rem; color: #C9D0E4; }
.bts-copy .bts-note { font-family: var(--serif); font-style: italic; color: var(--sun); font-size: 1.15rem; }
.phones { display: flex; gap: clamp(14px, 2.5vw, 32px); justify-content: center; align-items: center; }
.phone {
  position: relative; width: min(260px, 42vw); aspect-ratio: 9 / 16;
  border-radius: 34px; overflow: hidden;
  border: 6px solid #2C3757; background: #000;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.phone-a { transform: rotate(-4deg) translateY(16px); }
.phone-b { transform: rotate(3deg) translateY(-16px); }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.play {
  position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%;
  border: 0; background: var(--sun); color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(255,200,69,.25);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.play:hover { transform: scale(1.08); }
.phone.playing .play { opacity: 0; pointer-events: none; }
.phone-tag {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  font-size: .8rem; font-weight: 600; color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
  transition: opacity .3s;
}
.phone.playing .phone-tag { opacity: 0; }
@media (max-width: 880px) {
  .bts { grid-template-columns: 1fr; }
  .bts-copy { justify-self: start; }
}

/* PROCESS */
.process { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter); scroll-margin-top: 60px; }
.steps {
  list-style: none; padding: 0; margin: clamp(32px, 4vw, 52px) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px);
  counter-reset: step;
}
.steps li { counter-increment: step; position: relative; padding-top: 74px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.6rem;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.steps li:nth-child(1)::before { background: var(--pool); }
.steps li:nth-child(2)::before { background: var(--sun); }
.steps li:nth-child(3)::before { background: var(--blush); }
.steps li:nth-child(4)::before { background: var(--ink); color: var(--paper); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: 68px; right: 8px;
  border-top: 2px dashed var(--line);
}
.steps p { margin-top: 10px; color: var(--ink-soft); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps li::after { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* BOOKING */
.booking { padding: 0 clamp(8px, 1.5vw, 20px) clamp(48px, 6vw, 80px); scroll-margin-top: 60px; }
.booking-card {
  max-width: calc(var(--max) + 40px); margin: 0 auto;
  background: linear-gradient(160deg, #24305A, var(--ink));
  color: #fff; border-radius: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center; gap: clamp(24px, 5vw, 72px);
  padding: clamp(20px, 3vw, 40px);
  overflow: hidden;
}
.booking-img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 26px; transform: rotate(-2deg); border: 8px solid #fff; }
.booking-copy h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.booking-copy p { margin: 20px 0 30px; font-size: 1.12rem; color: #C9D0E4; max-width: 30em; }
@media (max-width: 820px) {
  .booking-card { grid-template-columns: 1fr; }
  .booking-img { max-height: 360px; }
}

.footer {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: .9rem; color: var(--ink-soft);
}

/* LIGHTBOX */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh; margin: 0;
}
.lightbox::backdrop { background: rgba(20,26,46,.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img {
  max-width: min(92vw, 1500px); max-height: 86vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lb-close, .lb-nav {
  position: fixed; border: 0; cursor: pointer;
  background: var(--paper); color: var(--ink);
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 1.8rem; line-height: 1; display: grid; place-items: center;
}
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; translate: 0 -50%; }
.lb-next { right: 18px; top: 50%; translate: 0 -50%; }
.lb-count { position: fixed; bottom: 18px; left: 0; right: 0; text-align: center; color: #C9D0E4; font-size: .9rem; }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 14px; translate: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
