/* ---------- Tokens ---------- */
:root {
  --ink: #0b1e27;          /* late-night ocean */
  --ink-2: #10283a;
  --ink-card: #132f3d;
  --line-dark: rgba(248, 245, 240, 0.14);
  --cream: #f8f5f0;
  --sand: #efe6dd;
  --espresso: #2a2420;
  --espresso-soft: #5a4f48;
  --taupe: #9a7b63;        /* logo accent — large text / decoration only */
  --taupe-ink: #7a5f4a;    /* taupe for small text on light (≥4.5:1) */
  --taupe-light: #d6bea6;  /* taupe on dark */
  --mist: #a9bbc3;         /* muted text on dark */
  --line-light: rgba(42, 36, 32, 0.14);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(80px, 11vw, 150px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--taupe-light); outline-offset: 3px; }
.section--cream :focus-visible, .section--sand :focus-visible { outline-color: var(--taupe-ink); }

/* ---------- Type ---------- */
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--taupe-ink); margin-bottom: 20px;
}
.eyebrow--light { color: var(--mist); }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02; letter-spacing: -.01em;
  text-wrap: balance;
}
.section__title em { color: var(--taupe); }
.section--ink .section__title em,
.section--ocean .section__title em { color: var(--taupe-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 0;
  font: 600 13px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 58px; padding: 16px 34px; font-size: 14px; }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.btn--dark { background: var(--espresso); color: var(--cream); }
.btn--dark:hover { background: #3a322c; box-shadow: 0 10px 30px -12px rgba(42,36,32,.6); }
.btn--block { width: 100%; }

.link-underline {
  font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; padding: 12px 0;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 6px) / 100% 1px no-repeat;
  transition: background-size .35s var(--ease);
}
.link-underline:hover { background-size: 40% 1px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s;
}
.nav.is-scrolled {
  background: rgba(11, 30, 39, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-dark);
}
.nav__inner {
  max-width: 1440px; margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.nav__brand img { width: 200px; }
.nav__links { display: flex; gap: 40px; margin: 0 auto; }
.nav__links a {
  font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: rgba(248,245,240,.85); padding: 10px 0;
  transition: color .2s;
}
.nav__links a:hover { color: #fff; }
.nav__cta { min-height: 46px; padding: 10px 22px; }
.nav__menu-cta { display: none; }
.nav__toggle path { transition: transform .25s var(--ease); transform-origin: 12px 12px; }
.nav__toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-dark); background: transparent; color: var(--cream); cursor: pointer;
  align-items: center; justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px 0 90px;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: var(--ink);
}
/* The ocean photo sits on its own layer so it can drift slowly and move with scroll (parallax) */
.hero__photo {
  position: absolute; inset: -18% 0;
  background: url("assets/ocean.jpg") center / cover no-repeat;
  translate: 0 var(--parallax, 0px);
  animation: ocean-drift 28s ease-in-out infinite alternate;
  will-change: transform, translate, scale;
}
/* Moving ocean video (added by script.js on larger screens only); the still photo stays underneath as a fallback */
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.2s ease;
}
.hero__video.is-playing { opacity: 1; }
@keyframes ocean-drift {
  from { scale: 1.04; transform: translateX(-1.2%); }
  to   { scale: 1.14; transform: translateX(1.2%); }
}
.hero__bg::before { /* darkening gradients over the photo so text stays readable */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(8, 24, 32, .86) 0%, rgba(8, 24, 32, .55) 45%, rgba(8, 24, 32, .35) 100%),
    linear-gradient(180deg, rgba(11,30,39,0) 60%, var(--ink) 100%);
}
.hero__bg::after { /* soft grain so the small source photo reads as texture, not blur */
  content: ""; position: absolute; inset: 0; z-index: 2; opacity: .18; mix-blend-mode: overlay;
  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 baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(54px, 8vw, 118px); line-height: .95; letter-spacing: -.015em;
  margin-bottom: 30px;
}
.hero__title em { color: var(--sand); }
.hero__lede { max-width: 34ch; font-size: clamp(17px, 1.5vw, 20px); color: rgba(248,245,240,.86); margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; margin-bottom: 44px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  font-size: 14px; letter-spacing: .04em; padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(248,245,240,.28); background: rgba(248,245,240,.06);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ---------- Before / after compare ---------- */
.compare {
  --pos: 50%;
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: var(--radius-lg);
  background: var(--ink-card);
  user-select: none; -webkit-user-select: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare::after { /* divider line */
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px;
  transform: translateX(-1px); background: var(--cream); pointer-events: none;
}
.compare__handle {
  position: absolute; top: 50%; left: var(--pos); z-index: 2;
  width: 56px; height: 56px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.45);
  pointer-events: none; transition: transform .2s var(--ease);
}
.compare:hover .compare__handle { transform: translate(-50%, -50%) scale(1.06); }
.compare__tag {
  position: absolute; bottom: 16px; z-index: 2; pointer-events: none;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  padding: 10px 18px; border-radius: 999px; background: var(--cream); color: var(--ink);
}
.compare__tag--before { left: 16px; }
.compare__tag--after { right: 16px; }
.compare__range {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.compare:has(.compare__range:focus-visible) {
  outline: 2px solid var(--taupe-light); outline-offset: 4px;
}
.compare--hero {
  border: 8px solid rgba(248,245,240,.92);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.65);
}
.compare--card .compare__handle { width: 46px; height: 46px; }
.compare--card .compare__tag { font-size: 11px; padding: 8px 14px; bottom: 14px; }

/* ---------- Sections ---------- */
.section { position: relative; isolation: isolate; padding: var(--section-y) 0; }
.section--ink { background: var(--ink); }
.section--cream { background: var(--cream); color: var(--espresso); }
.section--sand { background: var(--sand); color: var(--espresso); }
.section--ocean { background: var(--ink); overflow: hidden; }
.hero__bg--soft::before {
  background: linear-gradient(180deg, var(--ink) 0%, rgba(11,30,39,.78) 35%, rgba(11,30,39,.88) 100%);
}
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-bottom: 40px; margin-bottom: 48px; border-bottom: 1px solid var(--line-dark);
}
.section__aside { max-width: 28ch; color: var(--mist); font-size: 15px; }

/* ---------- Work grid (reference-style cards) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.card__title { font-family: var(--font-body); font-size: 22px; font-weight: 500; margin-top: 22px; letter-spacing: -.005em; }
.card__meta { font-size: 17px; color: var(--mist); margin-top: 4px; }
.card__cta-panel {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  text-decoration: none; text-align: center; padding: 24px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(214,190,166,.14), transparent 60%),
    var(--ink-card);
  border: 1px solid var(--line-dark);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card__cta-panel:hover { border-color: rgba(214,190,166,.5); transform: translateY(-3px); }
.card__cta-panel img { width: 84px; opacity: .9; }
.card__cta-text { font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 38px); line-height: 1; }
.card__cta-text em { color: var(--taupe-light); }
.card__cta-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mist);
}
.card__cta-panel:hover .card__cta-link { color: var(--cream); }
.card__cta-panel:hover .card__cta-link svg { transform: translateX(3px); }
.card__cta-link svg { transition: transform .25s var(--ease); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.pricing__lede { max-width: 44ch; margin: 28px 0 40px; color: var(--espresso-soft); font-size: 18px; }
.price-card {
  background: var(--ink); color: var(--cream);
  border-radius: var(--radius-lg); padding: clamp(32px, 4vw, 52px);
  box-shadow: 0 30px 60px -30px rgba(11,30,39,.45);
}
.price-card__label { font-size: 12.5px; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--mist); }
.price-card__amount {
  font-family: var(--font-display); font-size: clamp(88px, 10vw, 128px); line-height: 1; margin-top: 14px;
  font-variant-numeric: lining-nums;
}
.price-card__amount span { font-size: .45em; vertical-align: .9em; margin-right: 4px; color: var(--taupe-light); }
.price-card__note { color: var(--mist); margin-top: 6px; }
.price-card hr { border: 0; border-top: 1px solid var(--line-dark); margin: 30px 0 26px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  background: var(--taupe-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1e27' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__mark { width: min(100%, 340px); justify-self: center; }
.about__copy p:not(.eyebrow) { color: var(--espresso-soft); font-size: 18px; max-width: 58ch; margin-top: 22px; }
.about__copy .section__title { margin-bottom: 8px; }
.values { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-light); }
.values li { padding: 22px 20px 0 0; display: grid; gap: 4px; }
.values strong { font-family: var(--font-display); font-size: 26px; font-weight: 500; line-height: 1.1; }
.values span { font-size: 15px; color: var(--taupe-ink); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact__lede { color: rgba(248,245,240,.82); font-size: 18px; max-width: 38ch; margin: 26px 0 36px; }
.contact__list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 6px; }
.contact__list li { display: flex; align-items: center; gap: 14px; color: var(--mist); }
.contact__list a { color: var(--cream); text-decoration: none; font-size: 18px; padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact__list a:hover { border-color: var(--taupe-light); }

.form {
  background: rgba(19, 47, 61, .72); border: 1px solid var(--line-dark);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 44px);
  display: grid; gap: 20px;
}
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.optional { font-weight: 400; color: var(--mist); }
.field input, .field textarea {
  width: 100%; font: 16px/1.5 var(--font-body); color: var(--cream);
  background: rgba(11, 30, 39, .6); border: 1px solid rgba(248,245,240,.2); border-radius: var(--radius-md);
  padding: 14px 16px; min-height: 50px; transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(169,187,195,.7); }
.field input:hover, .field textarea:hover { border-color: rgba(248,245,240,.35); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--taupe-light); background: rgba(11,30,39,.85); }
.field input[aria-invalid="true"] { border-color: #f0a79a; }
.field__error { font-size: 14px; color: #f6b8ad; }
.form__hint { font-size: 13.5px; color: var(--mist); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); border-top: 1px solid var(--line-dark); padding: 48px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__mark { width: 180px; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__links a { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--mist); padding: 8px 0; }
.footer__links a:hover { color: var(--cream); }
.footer__copy { font-size: 14px; color: var(--mist); }

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.work-grid .reveal:nth-child(2) { transition-delay: .08s; }
.work-grid .reveal:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__photo { animation: none; translate: none; scale: 1.04; }
  .hero__video { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero__lede { max-width: 46ch; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing, .contact { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__mark { width: 180px; justify-self: start; }
}

@media (max-width: 820px) {
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--ink); border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 30px 40px -20px rgba(0,0,0,.6);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav__links.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav__links a { padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
  .nav.is-open { background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__links .nav__menu-cta { display: flex; margin-top: 20px; padding: 16px 26px; border-bottom: 0; color: var(--ink); }
  .nav__toggle[aria-expanded="true"] .bar-top { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .bar-bot { transform: translateY(-4px) rotate(-45deg); }
  .section__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__brand img { width: 160px; }
  .work-grid { grid-template-columns: 1fr; }
  .compare--hero { border-width: 5px; }
  .compare__tag { font-size: 10.5px; padding: 7px 12px; bottom: 12px; }
  .compare__tag--before { left: 12px; } .compare__tag--after { right: 12px; }
  .compare__handle { width: 44px; height: 44px; }
  .values { grid-template-columns: 1fr; }
  .values li { padding: 18px 0; border-bottom: 1px solid var(--line-light); }
  .hero__actions .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
