/* RC Digital Automation: cinematic one-pager. Motion lives in site.js; without JS everything is simply visible. */

@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0A0D14;
  --bg-2: #0F1420;
  --navy: #1F2A44;
  --gold: #C9A46A;
  --gold-deep: #B8924B;
  --cream: #F3EDE2;
  --muted: #9EA3AE;
  --line: rgba(243, 237, 226, 0.12);
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--cream);
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.04; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(38px, 5.6vw, 84px); }
h3 { font-size: clamp(26px, 2.6vw, 36px); }
em { font-style: italic; color: var(--gold); }
.eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 28px;
}
/* Masked lines: the inner span rises into view */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: inline-block; }

/* ------------------------------------------------------------- overlays */
.curtain { position: fixed; inset: 0; z-index: 100; background: var(--bg); pointer-events: none; }
html:not(.js) .curtain { display: none; }
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07;
  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");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* Cursor: only with a real mouse */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.js .cursor { display: block; }
  html.js, html.js a, html.js button { cursor: none; }
}
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none; border-radius: 50%; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold); }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(243, 237, 226, 0.45);
  display: grid; place-items: center;
  transition: width 0.6s var(--ease), height 0.6s var(--ease), margin 0.6s var(--ease), background 0.6s var(--ease), border-color 0.6s var(--ease);
}
.cursor__label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bg);
  opacity: 0; transition: opacity 0.4s var(--ease); white-space: nowrap;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--gold); }
.cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--gold); border-color: var(--gold); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot, .cursor.is-hover .cursor__dot { opacity: 0; }

/* ------------------------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--pad); transition: background 0.8s var(--ease), padding 0.8s var(--ease), transform 0.9s var(--ease);
}
.nav.is-solid { background: rgba(10, 13, 20, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: 18px; padding-bottom: 18px; }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0.06em; text-decoration: none; }
.nav__brand span { font-family: var(--sans); font-size: 10px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); margin-left: 10px; }
.nav__links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav__links a {
  position: relative; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--muted);
  transition: color 0.6s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform 0.8s var(--ease);
}
.nav__links a:hover { color: var(--cream); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { color: var(--gold) !important; }
@media (max-width: 640px) {
  .nav__brand span { display: none; }
  .nav__links a:not(.nav__cta) { display: none; }
}

/* ------------------------------------------------------------- buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 18px 34px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  transition: color 0.8s var(--ease), border-color 0.8s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform 0.9s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--gold::before { background: var(--cream); }
.btn--ghost { border: 1px solid rgba(243, 237, 226, 0.3); color: var(--cream); }
.btn--ghost::before { background: var(--cream); }
.btn--ghost:hover { color: var(--bg); border-color: var(--cream); }
.btn--lg { padding: 24px 48px; font-size: 13px; }

/* ------------------------------------------------------------- scenes (layered landscapes) */
.scene { position: absolute; inset: 0; overflow: hidden; }
.scene__layer { position: absolute; left: -3%; right: -3%; will-change: transform; transform-origin: 50% 100%; }
.scene__sky {
  top: -12%; bottom: 0;
  background: linear-gradient(180deg, #0A0D14 0%, #151C30 24%, #2A2F4A 42%, #5B4256 58%, #A4605A 72%, #D98F5C 84%, #EDB675 100%);
}
.scene__sun {
  left: 50%; bottom: 8%; width: 70vmax; height: 70vmax; margin-left: -35vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 160, 0.9) 0%, rgba(240, 160, 100, 0.45) 12%, rgba(200, 110, 80, 0.15) 32%, transparent 60%);
}
.scene__ridge { bottom: 0; width: 106%; height: 62%; }
.scene__ridge--far path { fill: #6E4450; }
.scene__ridge--mid path { fill: #3E2330; }
.scene__ridge--near { height: 40%; bottom: -2%; }
.scene__ridge--near path { fill: #0A0D14; }
.scene__haze { top: 0; bottom: 0; background: linear-gradient(180deg, rgba(10, 13, 20, 0.55) 0%, transparent 38%, transparent 70%, rgba(10, 13, 20, 0.4) 100%); }

/* ------------------------------------------------------------- 1. hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; display: flex; align-items: center; }
.hero__content { position: relative; z-index: 2; padding: 0 var(--pad); max-width: 1180px; margin-top: -6vh; }
.hero__title { font-size: clamp(46px, 6.6vw, 112px); margin-bottom: 34px; }
.hero__sub { max-width: 520px; color: rgba(243, 237, 226, 0.78); font-size: clamp(15px, 1.25vw, 18px); margin: 0 0 44px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: rgba(243, 237, 226, 0.6);
}
.scroll-cue i { width: 1px; height: 56px; background: rgba(243, 237, 226, 0.2); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--cream);
  animation: cue 2.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }

/* ------------------------------------------------------------- 2. statement */
.statement { padding: clamp(120px, 22vh, 240px) var(--pad); max-width: 1320px; margin: 0 auto; }
.statement__text { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4.6vw, 70px); line-height: 1.12; margin: 0; }
.statement__text .w { display: inline-block; }

/* ------------------------------------------------------------- 3. expanding frame */
.expand { position: relative; }
.expand__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.expand__frame { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0% 0% 0% 0% round 0px); }
.expand__media { position: absolute; inset: 0; }
.expand__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 80%, rgba(232, 160, 100, 0.45), transparent 70%),
    linear-gradient(180deg, #0E1322 0%, #2B2B45 45%, #7A4A52 75%, #C98458 100%);
}
.expand__ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 48%; }
.expand__ridge path { fill: #1A1220; }
.expand__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 13, 20, 0.78) 0%, rgba(10, 13, 20, 0.2) 55%, transparent 75%); pointer-events: none; }
@media (min-width: 861px) { html:not(.js) .phone { left: 66%; } }
.phone {
  position: absolute; top: 50%; left: 50%; width: min(310px, 72vw); aspect-ratio: 9 / 18.5; transform: translate(-50%, -50%);
  border-radius: 46px; padding: 12px; background: linear-gradient(160deg, #2A2F3D, #0C0F17);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone__notch { position: absolute; top: 22px; left: 50%; width: 88px; height: 24px; margin-left: -44px; border-radius: 20px; background: #05070B; z-index: 2; }
.phone__screen {
  height: 100%; border-radius: 36px; padding: 62px 16px 20px; overflow: hidden;
  background: linear-gradient(180deg, #F7F3EC, #EFE8DC); color: #1B1F2A;
  display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; line-height: 1.45; font-weight: 400;
}
.phone__meta { margin: 0 0 4px; text-align: center; font-size: 11px; color: #8A8F99; letter-spacing: 0.04em; }
.msg { max-width: 84%; padding: 10px 14px; border-radius: 18px; }
.msg--out { align-self: flex-end; background: var(--navy); color: #F3EDE2; border-bottom-right-radius: 6px; }
.msg--in { align-self: flex-start; background: #FFFFFF; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.msg--event { align-self: center; max-width: none; padding: 6px 12px; font-size: 11.5px; color: #8A4B3A; background: rgba(184, 146, 75, 0.12); }
.msg--done { color: #2F6B4F; background: rgba(47, 107, 79, 0.1); }
.msg__icon { font-weight: 600; margin-right: 4px; }
.expand__caption { position: absolute; z-index: 2; left: var(--pad); bottom: clamp(48px, 12vh, 120px); max-width: 520px; }
.expand__caption h2 { margin-bottom: 26px; }
.expand__caption p:last-child { color: rgba(243, 237, 226, 0.8); max-width: 420px; margin: 0; }
@media (max-width: 860px) {
  .phone { left: 50%; top: 38%; width: min(240px, 60vw); }
  .expand__caption { right: var(--pad); bottom: 40px; }
  .expand__caption h2 { font-size: 40px; margin-bottom: 14px; }
  .expand__caption p:last-child { font-size: 14px; }
}

/* ------------------------------------------------------------- shared section layout */
.section-head { max-width: 1320px; margin: 0 auto clamp(56px, 9vh, 100px); padding: 0 var(--pad); }
.section-head h2 { max-width: 15em; }
.offer, .packages, .steps { padding: clamp(110px, 18vh, 200px) 0; }

/* ------------------------------------------------------------- 4. offer list */
.offer__list { list-style: none; margin: 0 auto; padding: 0 var(--pad); max-width: 1320px; }
.offer__item {
  position: relative; display: grid; grid-template-columns: 80px 1fr 1fr; align-items: baseline; gap: 24px;
  padding: clamp(28px, 4.5vh, 48px) 0;
}
.offer__item::before, .offer__item:last-child::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: left;
  transform: scaleX(var(--line-scale, 1));
}
.offer__item::before { top: 0; }
.offer__item:last-child::after { bottom: 0; }
.offer__num { font-size: 12px; letter-spacing: 0.2em; color: var(--muted); }
.offer__item h3 { transition: transform 1s var(--ease), color 1s var(--ease); }
.offer__item p { margin: 0; color: var(--muted); max-width: 420px; transition: color 1s var(--ease); }
.offer__item:hover h3 { transform: translateX(18px); color: var(--gold); }
.offer__item:hover p { color: var(--cream); }
@media (max-width: 760px) {
  .offer__item { grid-template-columns: 48px 1fr; }
  .offer__item p { grid-column: 2; }
}

/* ------------------------------------------------------------- 5. packages */
.packages { background: var(--bg-2); }
.packages__grid {
  display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr);
  max-width: 1320px; margin: 0 auto; padding: 0 var(--pad);
}
@media (max-width: 1080px) { .packages__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .packages__grid { grid-template-columns: 1fr; } }
.pkg {
  --mx: 50%; --my: 50%;
  position: relative; padding: 40px 32px 44px; border-radius: 20px; border: 1px solid var(--line);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(201, 164, 106, 0.13), transparent 60%), rgba(255, 255, 255, 0.015);
  transition: border-color 1.1s var(--ease);
}
.pkg.is-ready { transition: transform 1.1s var(--ease), border-color 1.1s var(--ease); }
.pkg:hover { transform: translateY(-8px); border-color: rgba(201, 164, 106, 0.5); }
.pkg h3 { font-size: 30px; margin-bottom: 26px; }
.pkg__price { font-family: var(--serif); font-size: 58px; line-height: 1; margin: 0 0 8px; color: var(--cream); }
.pkg__price small { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-left: 4px; letter-spacing: 0.08em; }
.pkg__setup { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.pkg p:last-child { margin: 0; color: var(--muted); font-size: 15px; }
.pkg--top { border-color: rgba(201, 164, 106, 0.35); }

/* ------------------------------------------------------------- 6. steps */
.steps__list { position: relative; list-style: none; margin: 0 auto; padding: 0 var(--pad); max-width: 1320px; }
.steps__line { position: absolute; top: 0; bottom: 0; left: calc(var(--pad) + 26px); width: 1px; background: var(--line); }
.steps__line span { position: absolute; inset: 0; background: var(--gold); transform-origin: top; transform: scaleY(var(--progress, 1)); }
.step { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: clamp(24px, 4vw, 56px); padding: 0 0 clamp(56px, 9vh, 96px); }
.step:last-child { padding-bottom: 0; }
.step__num {
  position: relative; z-index: 1; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid rgba(201, 164, 106, 0.5); color: var(--gold); font-size: 12px; letter-spacing: 0.1em;
}
.step h3 { margin: 8px 0 10px; }
.step p { margin: 0; color: var(--muted); max-width: 520px; }

/* ------------------------------------------------------------- 7. contact */
.contact { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.scene__night-sky { top: 0; bottom: 0; background: linear-gradient(180deg, #05070C 0%, #0A0F1E 50%, #18203A 82%, #2A2C48 100%); }
.scene__stars {
  top: -20%; bottom: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 42%, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 44% 12%, #fff, transparent), radial-gradient(1px 1px at 61% 30%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 77% 14%, #fff, transparent), radial-gradient(1.5px 1.5px at 88% 38%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 6% 52%, rgba(255,255,255,.6), transparent), radial-gradient(1px 1px at 36% 24%, #fff, transparent),
    radial-gradient(1px 1px at 53% 48%, rgba(255,255,255,.5), transparent), radial-gradient(1px 1px at 70% 56%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 94% 22%, #fff, transparent), radial-gradient(1.5px 1.5px at 20% 8%, rgba(255,255,255,.8), transparent);
  background-size: 640px 640px; opacity: 0.8;
}
.scene__moon {
  top: 11%; left: 80%; width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #FFF7E8, #E9DCC2 60%, #CDBE9F);
  box-shadow: 0 0 80px 20px rgba(243, 237, 226, 0.12), 0 0 240px 80px rgba(201, 164, 106, 0.08);
}
@media (max-width: 640px) { .scene__moon { left: 66%; width: 64px; height: 64px; } }
.scene__ridge--night-far { height: 48%; }
.scene__ridge--night-far path { fill: #141A2C; }
.scene__ridge--night-near { height: 34%; }
.scene__ridge--night-near path { fill: #07090F; }
.contact__content { position: relative; z-index: 2; padding: 0 var(--pad); }
.contact__title { font-size: clamp(64px, 13vw, 200px); margin-bottom: 32px; }
.contact__who { color: rgba(243, 237, 226, 0.75); margin: 0 0 48px; font-size: clamp(15px, 1.3vw, 18px); }
.contact__who a { text-decoration: none; border-bottom: 1px solid rgba(201, 164, 106, 0.4); transition: color 0.6s var(--ease), border-color 0.6s var(--ease); }
.contact__who a:hover { color: var(--gold); border-color: var(--gold); }

/* ------------------------------------------------------------- footer */
.footer {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  padding: 30px var(--pad); border-top: 1px solid var(--line); background: var(--bg);
  font-size: 12px; letter-spacing: 0.06em; color: var(--muted);
}
.footer a { text-decoration: none; transition: color 0.6s var(--ease); }
.footer a:hover { color: var(--gold); }

/* ------------------------------------------------------------- reduced motion: no grain, no cue */
@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-cue i::after { animation: none; }
  .curtain { display: none; }
}
