/* ==========================================================================
   Codeflux Studio — one-page site
   Palette: deep navy / muted gold / cream / paper
   Type:    Marcellus (display) · Inter (UI & body)
   ========================================================================== */

:root {
  --navy: #162638;
  --navy-deep: #0f1b28;
  --navy-soft: #1d3247;
  --gold: #af915f;
  --gold-bright: #c9ac77;
  --cream: #fce1b6;
  --paper: #fcfcf8;
  --paper-dim: #f3f1e9;
  --ink: #162638;
  --ink-soft: rgba(22, 38, 56, 0.68);
  --white: #ffffff;
  --on-dark: rgba(255, 255, 255, 0.74);
  --line-dark: rgba(175, 145, 95, 0.28);
  --line-light: rgba(22, 38, 56, 0.14);
  --serif: "Marcellus", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.165, 0.84, 0.44, 1);
  --pad-x: clamp(1.25rem, 6vw, 6rem);
  --pad-y: clamp(5.5rem, 11vw, 9.5rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--navy-deep); }

img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-bright); }

/* ==========================================================================
   Shared atoms
   ========================================================================== */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow-rule {
  width: 2.4rem;
  height: 1px;
  background: var(--gold);
  flex: none;
}

.eyebrow-dark { color: var(--gold); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-align: right;
}

.section { padding: var(--pad-y) var(--pad-x); position: relative; }

.section-dark { background: var(--navy); color: var(--white); }
.section-light { background: var(--paper); color: var(--ink); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.45s var(--ease), background-color 0.45s var(--ease),
              color 0.45s var(--ease), border-color 0.45s var(--ease),
              box-shadow 0.45s var(--ease);
  will-change: transform;
}

.btn .ic { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.btn .ic-arrow { width: 1.05rem; height: 1.05rem; transition: transform 0.45s var(--ease); }
.btn:hover .ic-arrow { transform: translateX(4px); }

.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 14px 34px rgba(175, 145, 95, 0.35); }

.btn-navy { background: var(--navy); color: var(--paper); }
.btn-navy:hover { background: var(--navy-soft); box-shadow: 0 14px 34px rgba(22, 38, 56, 0.3); }

/* WhatsApp brand green — instantly recognisable, white glyph */
.btn-wa { background: #25d366; color: #ffffff; }
.btn-wa:hover { background: #1eb85a; box-shadow: 0 14px 34px rgba(37, 211, 102, 0.35); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(252, 225, 182, 0.4);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); background: rgba(175, 145, 95, 0.08); }

.btn-lg { padding: 1.15rem 2.3rem; font-size: 0.98rem; }
.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.82rem; }

/* Ghost link with sliding arrow */

.link-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--cream);
  padding-bottom: 0.35rem;
  position: relative;
}
.link-ghost::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  opacity: 0.35;
  transition: opacity 0.4s var(--ease);
}
.link-ghost:hover::after { opacity: 1; }
.link-ghost .ic-arrow { width: 1.05rem; height: 1.05rem; transition: transform 0.45s var(--ease); }
.link-ghost:hover .ic-arrow { transform: translateX(5px); }

.link-ghost-dark { color: var(--gold); }

/* Tick lists */

.tick-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 0.85rem; height: 0.45rem;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}
.tick-list-dark li { color: var(--on-dark); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem var(--pad-x);
  transition: padding 0.5s var(--ease), background-color 0.5s var(--ease),
              backdrop-filter 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 0.85rem var(--pad-x);
  background: rgba(15, 27, 40, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(175, 145, 95, 0.18);
}

.brand { display: inline-flex; align-items: baseline; gap: 0.55rem; color: var(--white); }
.brand-name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: 0.02em; }
.brand-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  transform: translateY(-2px);
}

.main-nav { display: flex; gap: 2.1rem; }
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.35s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px; height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--white);
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(4.2px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-4.2px) rotate(-45deg); }

/* Mobile overlay */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 27, 40, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

.overlay-nav { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.overlay-link {
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.8rem);
  color: var(--white);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), color 0.3s;
}
.nav-overlay.open .overlay-link { opacity: 1; transform: none; }
.nav-overlay.open .overlay-link:nth-child(1) { transition-delay: 0.08s; }
.nav-overlay.open .overlay-link:nth-child(2) { transition-delay: 0.14s; }
.nav-overlay.open .overlay-link:nth-child(3) { transition-delay: 0.2s; }
.nav-overlay.open .overlay-link:nth-child(4) { transition-delay: 0.26s; }
.nav-overlay.open .overlay-link:nth-child(5) { transition-delay: 0.32s; }
.overlay-link:hover { color: var(--gold-bright); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(7rem, 14vh, 10rem) var(--pad-x) clamp(4rem, 8vh, 6rem);
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -30%; right: -18%;
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(175, 145, 95, 0.22) 0%, rgba(175, 145, 95, 0.05) 42%, transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(252, 225, 182, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252, 225, 182, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; max-width: 62rem; }

.hero-eyebrow { margin-bottom: 2.2rem; }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 8.2vw, 6.6rem);
  line-height: 1.03;
  letter-spacing: 0.005em;
  margin-bottom: 2.4rem;
}
.hero-title em { font-style: normal; color: var(--gold-bright); }

/* Masked line reveal */
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.js .hero-title .line-inner {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 1.1s var(--ease);
}
.js .hero-title.is-in .line-inner { transform: translateY(0); }
.js .hero-title .line:nth-child(2) .line-inner { transition-delay: 0.12s; }
.js .hero-title .line:nth-child(3) .line-inner { transition-delay: 0.24s; }

.hero-sub {
  max-width: 34rem;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  color: var(--on-dark);
  margin-bottom: 2.8rem;
}

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.8rem; margin-bottom: 4.5rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-dark);
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.4rem 2.4rem 0 0;
  margin-right: 2.4rem;
}
.hero-meta-item + .hero-meta-item { border-left: 1px solid var(--line-dark); padding-left: 2.4rem; }
.hero-meta-item strong { font-family: var(--serif); font-weight: 400; font-size: 1.18rem; color: var(--cream); }
.hero-meta-item span { font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }

/* Rotating seal */

.seal {
  position: absolute;
  right: clamp(1.5rem, 7vw, 7rem);
  bottom: clamp(4.5rem, 10vh, 7rem);
  width: clamp(108px, 11vw, 148px);
  aspect-ratio: 1;
  z-index: 3;
  display: grid;
  place-items: center;
}
.seal-ring { position: absolute; inset: 0; animation: seal-spin 16s linear infinite; }
.seal-ring text {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  fill: var(--gold);
}
.seal-arrow { width: 22%; color: var(--gold-bright); }
@keyframes seal-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  background: var(--gold);
  color: var(--navy-deep);
  overflow: hidden;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(15, 27, 40, 0.2);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track i { font-style: normal; font-size: 0.7rem; opacity: 0.65; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ==========================================================================
   Services — sticky stacking cards
   ========================================================================== */

.stack { display: flex; flex-direction: column; gap: 2rem; }

.stack-card {
  position: sticky;
  top: calc(6.5rem + var(--i, 0) * 1.6rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 20px;
  padding: clamp(1.8rem, 4.5vw, 4rem);
  box-shadow: 0 24px 60px rgba(22, 38, 56, 0.10);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), filter 0.6s var(--ease);
}
.stack-card[data-stack="0"] { --i: 0; }
.stack-card[data-stack="1"] { --i: 1; }
.stack-card[data-stack="2"] { --i: 2; }

.stack-num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  padding-top: 0.2rem;
}

.stack-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--ink);
}

.stack-desc { max-width: 38rem; color: var(--ink-soft); margin-bottom: 1.6rem; }

.stack-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.4rem;
  padding-top: 0.4rem;
  white-space: nowrap;
}

.price-chip {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  background: var(--paper);
}
.price-chip strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--gold);
  margin-left: 0.25rem;
}

/* ==========================================================================
   Portfolio — browser-frame demos
   ========================================================================== */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 2.5vw, 2.4rem);
}

.work-card { transition: transform 0.6s var(--ease); }
.work-card:hover { transform: translateY(-8px); }

.browser-link { display: block; }
a.browser-link .browser { cursor: pointer; }

.browser {
  border: 1px solid var(--line-dark);
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy-deep);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.work-card:hover .browser {
  border-color: rgba(175, 145, 95, 0.65);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line-dark);
}
.b-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(252, 225, 182, 0.25); }
.b-dot:first-child { background: rgba(175, 145, 95, 0.7); }
.b-url {
  margin-left: 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: rgba(252, 225, 182, 0.45);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

/* CSS-drawn miniature sites */

.mock { aspect-ratio: 4 / 3; padding: 8% 9%; display: flex; flex-direction: column; }

.mock-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9%; }
.mock-wordmark { font-family: var(--serif); font-size: clamp(0.72rem, 1vw, 0.9rem); color: var(--cream); }
.mock-wordmark.serif { color: var(--navy); }
.mock-wordmark.bold { font-family: var(--sans); font-weight: 600; color: var(--navy); font-size: clamp(0.66rem, 0.95vw, 0.82rem); }
.mock-pill {
  font-size: 0.55rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy-deep); background: var(--gold); border-radius: 999px; padding: 0.28em 0.9em;
}
.mock-pill.light { background: var(--navy); color: var(--paper); }
.mock-pill.navy { background: var(--navy); color: var(--paper); }

.mock-hero-line { height: clamp(8px, 1vw, 12px); border-radius: 3px; background: rgba(252, 225, 182, 0.3); margin-bottom: 4%; }
.mock-hero-line.gold { background: var(--gold); }
.mock-hero-line.light-line { background: rgba(22, 38, 56, 0.22); }
.w70 { width: 70%; } .w60 { width: 60%; } .w45 { width: 45%; } .w75 { width: 75%; } .w50 { width: 50%; }

.mock-btn {
  align-self: flex-start;
  font-size: 0.58rem; font-weight: 600;
  color: var(--navy-deep); background: var(--gold);
  border-radius: 999px; padding: 0.5em 1.2em;
  margin: 3% 0 7%;
}
.dark-btn { background: var(--navy); color: var(--paper); }
.gold-btn { background: var(--gold); color: var(--navy-deep); }

.mock-rows { display: flex; flex-direction: column; gap: 8%; flex: 1; }
.mock-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(252, 225, 182, 0.16); padding-bottom: 4%; }
.mock-row span { width: 52%; height: 6px; border-radius: 3px; background: rgba(252, 225, 182, 0.22); }
.mock-row em { font-style: normal; font-family: var(--serif); font-size: 0.62rem; color: var(--gold-bright); }

.mock-restaurant { background: #20140e; background: linear-gradient(160deg, #241710 0%, #1a0f0a 100%); }
.mock-restaurant .mock-wordmark { color: var(--cream); }

.mock-salon { background: var(--paper); }
.mock-rule-gold { width: 22%; height: 2px; background: var(--gold); margin-bottom: 6%; }
.mock-services { display: flex; gap: 5%; margin-bottom: 7%; }
.mock-svc { flex: 1; aspect-ratio: 1; border-radius: 6px; background: linear-gradient(150deg, var(--paper-dim), #e7dfcc); border: 1px solid rgba(175, 145, 95, 0.3); }

.mock-trades { background: #f4f6f8; }
.mock-checks { display: flex; flex-direction: column; gap: 10px; }
.mock-check { width: 64%; height: 6px; border-radius: 3px; background: rgba(22, 38, 56, 0.16); position: relative; }
.mock-check::before { content: ""; position: absolute; left: -14px; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.mock-checks { padding-left: 14px; }

.work-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.3rem 0.3rem 0;
}
.work-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--white); }
.work-card figcaption p { font-size: 0.84rem; color: rgba(255, 255, 255, 0.55); margin-top: 0.2rem; }

.demo-tag {
  flex: none;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px dashed rgba(175, 145, 95, 0.55);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  margin-top: 0.2rem;
}

.demo-tag-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-style: solid;
  border-color: var(--gold);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.demo-tag-live .ic-arrow { width: 0.85rem; height: 0.85rem; transition: transform 0.4s var(--ease); }
.demo-tag-live:hover { background: var(--gold); color: var(--navy-deep); }
.demo-tag-live:hover .ic-arrow { transform: translate(2px, -2px); }

.work-note {
  margin-top: 3rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

/* ==========================================================================
   Process
   ========================================================================== */

.process-wrap { position: relative; }

.process-line {
  position: absolute;
  top: 2.6rem;
  left: 0;
  width: 100%;
  height: 60px;
  color: var(--gold);
  overflow: visible;
}
.process-line path {
  stroke-dasharray: 1100;
  stroke-dashoffset: 1100;
}
.process-wrap.is-in .process-line path {
  transition: stroke-dashoffset 2s var(--ease) 0.2s;
  stroke-dashoffset: 0;
}

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
}

.step { padding-top: 5.5rem; position: relative; }

.step-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 3.4rem; height: 3.4rem;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  background: var(--paper);
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.2;
  margin-bottom: 0.9rem;
  color: var(--ink);
}
.step p { font-size: 0.95rem; color: var(--ink-soft); max-width: 24rem; }

.step:nth-child(3) h3 { color: var(--gold); }

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 34rem));
  justify-content: center;
  gap: clamp(1.4rem, 2.5vw, 2.4rem);
}

.price-card {
  position: relative;
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  padding: clamp(1.9rem, 3.5vw, 3rem);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-direction: column;
  transition: transform 0.6s var(--ease), border-color 0.5s var(--ease), background-color 0.5s var(--ease);
}
.price-card:hover { transform: translateY(-6px); border-color: rgba(175, 145, 95, 0.55); }

.price-card-featured {
  background: rgba(175, 145, 95, 0.07);
  border-color: var(--gold);
}
.price-card-featured:hover { border-color: var(--gold-bright); }

.featured-tag {
  position: absolute;
  top: -0.8rem;
  right: 1.8rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-deep);
  background: var(--gold);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
}

.price-name { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--white); }
.price-for { font-size: 0.9rem; color: rgba(255, 255, 255, 0.55); margin: 0.4rem 0 1.6rem; }

.price-amount {
  font-family: var(--serif);
  font-size: clamp(3rem, 4.5vw, 4rem);
  line-height: 1;
  color: var(--gold-bright);
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line-dark);
}
.price-currency { font-size: 0.45em; vertical-align: 0.85em; margin-right: 0.1em; }
.price-period {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 0.5rem;
  letter-spacing: 0.06em;
}

.price-card .tick-list { margin-bottom: 2.2rem; flex: 1; }
.price-card .btn { width: 100%; }

/* Care plan strip */

.care-plan {
  max-width: calc(2 * 34rem + 2.4rem);
  margin: 2.4rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.4rem;
  border: 1px dashed rgba(175, 145, 95, 0.5);
  border-radius: 16px;
  padding: 1.6rem 2rem;
  background: rgba(175, 145, 95, 0.05);
}
.care-text h3 { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--cream); }
.care-text h3 strong { color: var(--gold-bright); font-weight: 400; }
.care-text p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.55); margin-top: 0.3rem; max-width: 40rem; }

.pricing-note {
  margin-top: 3rem;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--cream);
}
.pricing-note::before {
  content: "";
  display: block;
  width: 3rem; height: 1px;
  background: var(--gold);
  margin: 0 auto 1.4rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
  max-width: 30rem;
}
.contact-lede strong { color: var(--ink); font-weight: 600; }

.contact-alt { margin-top: 1.6rem; font-size: 0.9rem; color: var(--ink-soft); }

/* Form */

.contact-form {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 20px;
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
  box-shadow: 0 24px 60px rgba(22, 38, 56, 0.08);
}

.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.field { position: relative; margin-bottom: 1.5rem; }

.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(22, 38, 56, 0.25);
  padding: 1.15rem 0 0.6rem;
  outline: none;
  border-radius: 0;
  resize: vertical;
  transition: border-color 0.4s var(--ease);
}
.field textarea { min-height: 6rem; }

.field label {
  position: absolute;
  left: 0;
  top: 1.05rem;
  font-size: 0.98rem;
  color: rgba(22, 38, 56, 0.5);
  pointer-events: none;
  transition: transform 0.35s var(--ease), font-size 0.35s var(--ease), color 0.35s var(--ease);
  transform-origin: left top;
}

.field input:focus,
.field textarea:focus { border-bottom-color: var(--gold); }

.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label {
  transform: translateY(-1.15rem);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.field.error input,
.field.error textarea { border-bottom-color: #b0543f; }
.field.error label { color: #b0543f; }

.btn-submit { width: 100%; margin-top: 0.6rem; }
.btn-submit[disabled] { opacity: 0.65; cursor: wait; }

.form-status {
  margin-top: 1.4rem;
  border-radius: 12px;
  padding: 1.1rem 1.3rem;
  font-size: 0.92rem;
}
.form-status strong { display: block; margin-bottom: 0.25rem; font-weight: 600; }
.form-status p { color: inherit; opacity: 0.8; }
.form-success { background: rgba(175, 145, 95, 0.12); border: 1px solid rgba(175, 145, 95, 0.45); color: var(--navy); }
.form-error { background: rgba(176, 84, 63, 0.08); border: 1px solid rgba(176, 84, 63, 0.35); color: #7c3a2b; }
.form-error a { text-decoration: underline; font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: clamp(3rem, 6vw, 4.5rem) var(--pad-x) 2rem;
  border-top: 1px solid rgba(175, 145, 95, 0.18);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.6rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(175, 145, 95, 0.15);
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 1.8rem; }
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold-bright); }

.footer-wa { font-size: 0.9rem; font-weight: 600; color: var(--gold-bright); }
.footer-wa:hover { color: var(--cream); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 1.6rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
}

/* ==========================================================================
   Reveal animations (JS-gated)
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-delay="1"] { transition-delay: 0.1s; }
.js [data-delay="2"] { transition-delay: 0.2s; }
.js [data-delay="3"] { transition-delay: 0.3s; }
.js [data-delay="4"] { transition-delay: 0.4s; }
.js [data-delay="5"] { transition-delay: 0.5s; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1060px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .work-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .section-title { text-align: left; }

  .stack-card { grid-template-columns: 1fr; gap: 1.4rem; }
  .stack-num { font-size: 2.4rem; }
  .stack-side { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }

  .process-steps { grid-template-columns: 1fr; gap: 2.6rem; }
  .process-line { display: none; }
  .step { padding-top: 0; padding-left: 4.6rem; }
  .step-num { top: -0.4rem; }

  .contact-grid { grid-template-columns: 1fr; }

  .seal { display: none; }
}

@media (max-width: 720px) {
  .header-cta span { display: none; }
  .header-cta { padding: 0.6rem 0.85rem; border-radius: 50%; }

  .work-grid { grid-template-columns: 1fr; }

  .pricing-grid { grid-template-columns: 1fr; }
  .care-plan { flex-direction: column; align-items: flex-start; }

  .hero-meta-item { padding-right: 1.4rem; margin-right: 1.4rem; }
  .hero-meta-item + .hero-meta-item { padding-left: 1.4rem; }

  .hero-actions { gap: 1.3rem; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js [data-reveal], .js .hero-title .line-inner { opacity: 1; transform: none; }
  .process-line path { stroke-dashoffset: 0; }
}
