/* JAMAC. Dark-only by brand: the logo, statues and irises all live on black.
   Shape rule: buttons and tabs are full pill, everything else is sharp. */

:root {
  --bg: #0f1111;          /* sampled from the statue photographs */
  --bg-2: #151818;
  --line: rgba(233, 234, 236, 0.12);
  --text: #e9eaec;
  --muted: #a0a6a9;
  --gold: #e0a65a;        /* sampled from the iris */
  --gold-ink: #17130d;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 68px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Grain lives on one fixed layer so scrolling never repaints it. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.06;
  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.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn--gold { background: var(--gold); color: var(--gold-ink); }
.btn--gold:hover { background: #ebb872; }
.btn--ghost { border-color: rgba(233, 234, 236, 0.35); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 var(--gutter);
  transition: background-color 0.5s var(--ease-out), backdrop-filter 0.5s var(--ease-out);
}
.nav.is-solid {
  background: rgba(15, 17, 17, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__brand img { height: 22px; width: auto; }
.nav__links { display: flex; gap: 32px; margin-left: auto; }
.nav__links a {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__cta { height: 40px; padding: 0 20px; font-size: 14px; }
.nav__menu {
  display: none;
  margin-left: auto;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(233, 234, 236, 0.35);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 49;
  display: grid;
  padding: 8px var(--gutter) 24px;
  background: rgba(15, 17, 17, 0.96);
  border-bottom: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 14px 0;
  font-size: 22px;
  font-stretch: 112%;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; }

@media (max-width: 860px) {
  .nav { gap: 12px; }
  .nav__links { display: none; }
  .nav__menu { display: inline-flex; align-items: center; }
  .nav__cta { order: 3; }
}

/* ---------- Film (scroll hero), as in the first version ---------- */
.film { position: relative; height: 760vh; }
.film__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: var(--bg);
}
.film__canvas, .film__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.film__canvas { opacity: 0; transition: opacity 1.2s var(--ease-out); }
.film__canvas.is-ready { opacity: 1; }
/* Shown until the WebGL film is ready, and as the whole hero under reduced motion. */
.film__poster { object-fit: contain; object-position: 82% center; transition: opacity 1.2s var(--ease-out); }
.film__canvas.is-ready + .film__poster { opacity: 0; }

.film__hero {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(48px, 12vh, 120px);
  max-width: min(560px, 42vw);
  z-index: 2;
}
.film__title {
  margin: 0 0 20px;
  font-weight: 300;
  font-stretch: 118%;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.film__title em { font-style: italic; color: var(--gold); padding-bottom: 0.06em; }
.film__sub {
  margin: 0 0 28px;
  max-width: 40ch;
  color: #c8cccf;
  font-size: clamp(16px, 1.25vw, 18px);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.7);
}

.film__cap {
  position: absolute;
  top: 50%;
  z-index: 2;
  max-width: min(420px, 34vw);
  margin: 0;
  font-weight: 300;
  font-stretch: 115%;
  font-size: clamp(26px, 3vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  opacity: 0;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.7),
    0 2px 14px rgba(0, 0, 0, 0.75),
    0 0 48px rgba(0, 0, 0, 0.85);
  will-change: opacity, transform;
}
.film__cap--left { left: var(--gutter); }
.film__cap--right { right: var(--gutter); text-align: right; }

.film__progress {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  width: 1px;
  height: 120px;
  background: var(--line);
  z-index: 2;
}
.film__progress span {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: top;
  transform: scaleY(0);
}

@media (max-width: 860px) {
  .film { height: 680vh; }
  .film__hero {
    left: var(--gutter);
    right: var(--gutter);
    bottom: calc(28px + env(safe-area-inset-bottom));
    max-width: none;
    padding-top: 80px;
    background: linear-gradient(to top, rgba(15, 17, 17, 0.92), rgba(15, 17, 17, 0));
    margin: 0 calc(-1 * var(--gutter));
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }
  .film__cap {
    top: auto;
    bottom: calc(56px + env(safe-area-inset-bottom));
    left: var(--gutter);
    right: var(--gutter);
    max-width: none;
    text-align: left;
    font-size: 30px;
  }
  .film__progress { display: none; }
  .film__stage::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 34%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(15, 17, 17, 0.78), rgba(15, 17, 17, 0));
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Type ---------- */
.h2 {
  margin: 0 0 48px;
  font-weight: 300;
  font-stretch: 118%;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Intro ---------- */
.intro { padding: clamp(96px, 16vh, 180px) 0 clamp(80px, 12vh, 140px); }
.intro__lead {
  margin: 0;
  max-width: 20ch;
  font-weight: 300;
  font-stretch: 120%;
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.intro__body {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(0, 46ch);
  align-items: center;
  gap: 32px;
  margin-top: 64px;
  margin-left: auto;
  max-width: 900px;
}
.intro__body p { margin: 0; color: var(--muted); font-size: 19px; }
.thread { width: 100%; height: 2px; overflow: visible; }
.thread line, .process__line line {
  stroke: var(--gold);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2.2s var(--ease-io);
}
.thread line { stroke-dasharray: 400; stroke-dashoffset: 400; }
.is-in .thread line, .process__track.is-in .process__line line { stroke-dashoffset: 0; }

@media (max-width: 767px) {
  .intro__body { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
  .thread { width: 96px; }
}

/* ---------- Services ---------- */
.services { padding: clamp(80px, 12vh, 140px) 0; border-top: 1px solid var(--line); }
.services__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.services__visual { position: sticky; top: calc(var(--nav-h) + 40px); }
.services__eye {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px rgba(224, 166, 90, 0.08);
}
.services__eye img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  transform: scale(var(--eye-scale, 1.15));
  transition: transform 1.6s var(--ease-out);
}
.service { padding: 36px 0; border-top: 1px solid var(--line); }
.service__name {
  margin: 0 0 12px;
  font-weight: 400;
  font-stretch: 112%;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  transition: color 0.4s var(--ease-out);
}
.service:hover .service__name { color: var(--gold); }
.service__desc { margin: 0 0 20px; max-width: 52ch; color: var(--muted); }
.service__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.service__tags li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: #c8cccf;
}

@media (max-width: 860px) {
  .services__grid { grid-template-columns: 1fr; }
  .services__visual { position: relative; top: 0; max-width: 260px; }
}

/* ---------- Process ---------- */
.process { padding: clamp(80px, 12vh, 140px) 0; background: var(--bg-2); }
.process__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding-top: 40px;
}
.process__line { position: absolute; top: 0; left: 0; width: 100%; height: 2px; overflow: visible; }
.step h3 {
  margin: 0 0 12px;
  font-weight: 300;
  font-stretch: 122%;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.step p { margin: 0; max-width: 32ch; color: var(--muted); }
.step:nth-child(3) { transition-delay: 0.12s; }
.step:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 767px) {
  .process__track { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Pricing ---------- */
.pricing { padding: clamp(80px, 12vh, 140px) 0; }
.pricing .h2 { margin-bottom: 40px; }
/* Service selector: frosted glass track with a gold glass pill that slides to the active tab.
   This is a web glassmorphism approximation, not Apple's Liquid Glass. */
.tabs {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin-bottom: 48px;
  border-radius: 999px;
  border: 1px solid rgba(233, 234, 236, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(255, 255, 255, 0.03), 0 18px 50px rgba(0, 0, 0, 0.35);
}
.tabs__pill {
  position: absolute;
  z-index: -1;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--pill-w, 0px);
  transform: translateX(var(--pill-x, 0px));
  border-radius: 999px;
  background: linear-gradient(180deg, #f2c88a 0%, var(--gold) 52%, #cf9246 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 4px rgba(120, 70, 10, 0.25),
    0 6px 22px rgba(224, 166, 90, 0.28);
  transition: transform 0.7s cubic-bezier(0.34, 1.32, 0.5, 1), width 0.7s cubic-bezier(0.34, 1.32, 0.5, 1);
}
.tabs__pill::before {
  content: "";
  position: absolute;
  inset: 1px 8% 52% 8%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.tabs button {
  height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.4s var(--ease-out);
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: var(--gold-ink); }
@media (prefers-reduced-transparency: reduce) {
  .tabs { background: var(--bg-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.tier { padding: 40px 36px 44px; }
.tier + .tier { border-left: 1px solid var(--line); }
.tier--lift { background: linear-gradient(180deg, rgba(224, 166, 90, 0.08), rgba(224, 166, 90, 0) 70%); }
.tier__name {
  margin: 0;
  font-weight: 400;
  font-stretch: 115%;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.tier__for { margin: 4px 0 28px; color: var(--muted); font-size: 15px; }
.tier__price {
  margin: 0 0 28px;
  font-weight: 300;
  font-stretch: 110%;
  font-size: clamp(40px, 3.6vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.tier--lift .tier__price { color: var(--gold); }
.tier__price span { margin-left: 6px; font-size: 15px; letter-spacing: 0; color: var(--muted); }
.tier ul { margin: 0; padding: 24px 0 0; list-style: none; border-top: 1px solid var(--line); }
.tier li { position: relative; padding: 6px 0 6px 22px; color: #c8cccf; font-size: 15px; line-height: 1.5; }
.tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 10px;
  height: 1px;
  background: var(--gold);
}
.tier__desc { margin: 0; color: #c8cccf; font-size: 15px; line-height: 1.55; max-width: 34ch; }
.tier__time { margin: -16px 0 24px; color: var(--muted); font-size: 14px; }
.maint {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 56px;
  padding: 36px;
  border: 1px solid var(--line);
  border-top: 0;
}
.maint .tier__name { margin-bottom: 8px; }
.maint__price { margin: 0; font-size: clamp(30px, 2.6vw, 40px); }
@media (max-width: 760px) {
  .maint { grid-template-columns: 1fr; padding: 32px 24px; gap: 16px; }
}
.panel__empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 40px;
  border: 1px solid var(--line);
}
.panel__empty p { margin: 0; font-size: 22px; font-stretch: 110%; font-weight: 300; }
.panel { animation: panel-in 0.6s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .tiers { grid-template-columns: 1fr; }
  .tier + .tier { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .tabs { display: flex; }
  .tabs button { flex: 1 1 0; padding: 0 12px; font-size: 14px; }
  .tier { padding: 32px 24px 36px; }
  .panel__empty { padding: 32px 24px; }
}

/* ---------- About ---------- */
.about { padding: clamp(80px, 12vh, 140px) 0; border-top: 1px solid var(--line); }
.about__grid {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: clamp(32px, 7vw, 120px);
  align-items: center;
}
.about__img { margin: 0; max-height: 78vh; overflow: hidden; }
.about__img img { width: 100%; height: 100%; max-height: 78vh; object-fit: cover; object-position: 50% 20%; }
.about__text p { max-width: 52ch; color: var(--muted); font-size: 18px; }
.about__text p:first-of-type { color: var(--text); font-size: 21px; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__img { max-height: 60vh; }
  .about__img img { max-height: 60vh; }
}

/* ---------- Contact ---------- */
.contact { padding: clamp(80px, 12vh, 140px) 0 clamp(96px, 14vh, 160px); background: var(--bg-2); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.contact__title {
  margin: 0 0 20px;
  font-weight: 300;
  font-stretch: 122%;
  font-size: clamp(44px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.03em;
}
.contact__lead { margin: 0; max-width: 34ch; color: var(--muted); font-size: 19px; }
/* Direct contact: WhatsApp and phone, for people who would rather not fill in a form. */
.ways { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 12px; max-width: 360px; }
.way {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  border: 1px solid var(--line); color: var(--text); text-decoration: none;
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out), transform 160ms var(--ease-out);
}
.way:active { transform: scale(0.98); }
.way svg { flex: none; width: 22px; height: 22px; color: var(--gold); }
.way span { display: grid; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--muted); }
.way b { font-weight: 500; font-size: 15px; letter-spacing: 0.02em; color: var(--text); }
@media (hover: hover) and (pointer: fine) { .way:hover { border-color: var(--gold); background: rgba(224, 166, 90, 0.06); } }
.footer__legal a { color: var(--muted); text-decoration: none; }
.footer__legal a:hover { color: var(--gold); }

.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; letter-spacing: 0.02em; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(233, 234, 236, 0.28);
  border-radius: 0;
  background: rgba(15, 17, 17, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.3s var(--ease-out);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field [aria-invalid="true"] { border-color: #f08a7a; }
.field__error { margin: 0; color: #f6a596; font-size: 14px; }
.field__help { margin: 0; color: var(--muted); font-size: 14px; }
.form__submit { justify-self: start; min-width: 160px; }
.form__submit[disabled] { opacity: 0.6; cursor: progress; }
.form__status { margin: 0; min-height: 1.6em; color: var(--gold); }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer { padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.footer__logo { height: 44px; width: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer nav a:hover { color: var(--text); }
.footer__legal { width: 100%; margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- Reduced motion: the film becomes a single still frame. ---------- */
@media (prefers-reduced-motion: reduce) {
  .film { height: auto; }
  .film__stage { position: relative; height: 100vh; height: 100svh; }
  .film__canvas, .film__cap, .film__progress { display: none; }
  .film__poster { opacity: 1 !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .thread line, .process__line line { stroke-dashoffset: 0; transition: none; }
  .btn, .panel, .tabs__pill { transition: none; animation: none; }
}
