/* ============================================================
   JSD CONSTRUCTION PTY LTD — Design System
   Palette derived from brand logo (brushed metallic champagne gold):
     --gold        #CFA168  (primary sampled tone)
     --gold-2      #C1955D  (secondary sampled tone)
     --gold-hi     #E0B171  (highlight)
     --bronze      #9F7745  (shadow bronze)
     --bronze-deep #7B613A  (deep shadow bronze)
   Dark luxury base: near-black charcoals for contrast with gold.
   ============================================================ */

:root {
  --gold: #CFA168;
  --gold-2: #C1955D;
  --gold-hi: #E0B171;
  --bronze: #9F7745;
  --bronze-deep: #7B613A;

  --ink: #100E0B;          /* page background */
  --ink-2: #17140F;        /* section alt background */
  --ink-3: #1F1B14;        /* card background */
  --line: rgba(207, 161, 104, 0.18);
  --text: #EDE6DA;
  --text-dim: #A89C8A;

  --grad-gold: linear-gradient(135deg, #7B613A 0%, #C1955D 28%, #E0B171 50%, #CFA168 72%, #9F7745 100%);
  --grad-gold-soft: linear-gradient(135deg, rgba(207,161,104,.16), rgba(123,97,58,.06));

  --font-display: "Marcellus", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", -apple-system, sans-serif;

  --radius: 14px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.65);
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container { width: min(var(--container), 92vw); margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: 0.01em; }
.display-xl { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.display-lg { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.display-md { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.gold-text {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: goldShimmer 6s ease-in-out infinite;
}
@keyframes goldShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--grad-gold); }

.lede { color: var(--text-dim); font-size: 1.06rem; max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 32px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  position: relative; overflow: hidden;
}
.btn-gold {
  background: var(--grad-gold); background-size: 200% 200%;
  color: #17130C;
  box-shadow: 0 12px 34px -12px rgba(207, 161, 104, 0.55);
}
.btn-gold:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 18px 44px -12px rgba(224, 177, 113, 0.6); }
.btn-ghost {
  background: transparent; color: var(--gold);
  border: 1px solid rgba(207, 161, 104, 0.45);
}
.btn-ghost:hover { background: rgba(207, 161, 104, 0.08); border-color: var(--gold-hi); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}
.site-header.scrolled {
  background: rgba(16, 14, 11, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 46px; width: auto; }
.brand-name { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.brand-name small { display: block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.42em; color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 18px; }
@media (max-width: 1280px) and (min-width: 921px) {
  .main-nav { gap: 13px; }
  .main-nav a { font-size: 0.74rem; letter-spacing: 0.05em; }
  .brand-name { font-size: 0.95rem; letter-spacing: 0.08em; }
  .nav-cta { padding: 10px 16px !important; }
}
.main-nav a {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-dim); position: relative; padding: 6px 0; transition: color 0.25s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--grad-gold); transition: width 0.3s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-hi); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.nav-cta { margin-left: 8px; padding: 11px 24px !important; }
.main-nav a.nav-cta { color: #17130C; }
.main-nav a.nav-cta:hover { color: #17130C; }
.main-nav a.nav-cta::after { display: none; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; z-index: 101; }
.nav-toggle span {
  display: block; width: 26px; height: 2px; margin: 6px auto;
  background: var(--gold); transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(14, 12, 9, 0.97); backdrop-filter: blur(18px);
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 100;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { font-size: 1.05rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 90px;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1000px 600px at 78% 18%, rgba(207, 161, 104, 0.14), transparent 60%),
    radial-gradient(700px 500px at 12% 85%, rgba(123, 97, 58, 0.12), transparent 65%),
    var(--ink);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image:
    linear-gradient(rgba(207, 161, 104, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207, 161, 104, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, black 35%, transparent 78%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero-kicker { margin-bottom: 22px; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 38px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-panel {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  aspect-ratio: 4 / 5; background: var(--ink-3);
}
.hero-panel img, .hero-panel svg { width: 100%; height: 100%; object-fit: cover; }
.hero-panel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(16, 14, 11, 0.82));
}
.hero-panel-caption {
  position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2;
  font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-hi);
}

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: 70px;
}
.stat { background: rgba(23, 20, 15, 0.75); padding: 26px 20px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(3rem, 6vw, 4rem); line-height: 1.1; color: var(--gold-hi); }
.stat > span { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.stat b span { font-size: inherit; color: inherit; letter-spacing: inherit; }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { max-width: 460px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin: 16px 0 18px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  background: var(--grad-gold-soft);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 26px; position: relative; overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(207, 161, 104, 0.5); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px; border-radius: 14px; margin-bottom: 22px;
  display: grid; place-items: center;
  background: rgba(207, 161, 104, 0.12); border: 1px solid var(--line);
  color: var(--gold-hi);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.28rem; margin-bottom: 12px; }
.service-card p { color: var(--text-dim); font-size: 0.94rem; }
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Projects ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--text-dim);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.25s ease;
}
.filter-btn:hover { color: var(--gold-hi); border-color: rgba(207, 161, 104, 0.5); }
.filter-btn.active { background: var(--grad-gold); color: #17130C; border-color: transparent; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.project-card {
  border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--line); background: var(--ink-3);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.project-media {
  aspect-ratio: 3 / 2; overflow: hidden;  /* enforced 3:2 brand ratio */
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  position: relative; background: var(--ink-2);
}
.project-media img, .project-media svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; display: block; }
.project-zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(16,14,11,0.55); color: var(--gold-hi); font-size: 1rem;
  opacity: 0; transform: translateY(-4px); transition: all 0.25s ease; backdrop-filter: blur(4px);
}
.project-card:hover .project-zoom { opacity: 1; transform: translateY(0); }
.project-card:hover .project-media img, .project-card:hover .project-media svg { transform: scale(1.06); }
.project-info { padding: 22px 24px 26px; }
.project-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.project-info h3 { font-size: 1.2rem; margin-bottom: 6px; }
.project-info p { color: var(--text-dim); font-size: 0.9rem; }
@media (max-width: 1024px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .projects-grid { grid-template-columns: 1fr; } }

/* ---------- Estimator ---------- */
.estimator-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
  background: var(--ink-3); border: 1px solid var(--line);
  border-radius: 22px; padding: 54px; box-shadow: var(--shadow);
}
.estimate-result {
  border-left: 1px solid var(--line); padding-left: 50px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.estimate-figure { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); }
.estimate-note { color: var(--text-dim); font-size: 0.86rem; }
@media (max-width: 920px) {
  .estimator-wrap { grid-template-columns: 1fr; padding: 34px 26px; }
  .estimate-result { border-left: 0; border-top: 1px solid var(--line); padding: 34px 0 0; }
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.field { position: relative; }
.field label {
  display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 9px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 18px;
  background: rgba(16, 14, 11, 0.65); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.98rem; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(207, 161, 104, 0.14);
}
.field select option { background: var(--ink-2); }
.field .error-msg { color: #E58B8B; font-size: 0.78rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B25454; }
.field.invalid .error-msg { display: block; }

.form-status { margin-top: 22px; padding: 16px 20px; border-radius: 10px; font-size: 0.95rem; display: none; }
.form-status.ok { display: block; background: rgba(110, 168, 116, 0.12); border: 1px solid rgba(110, 168, 116, 0.4); color: #A8D8AE; }
.form-status.err { display: block; background: rgba(178, 84, 84, 0.12); border: 1px solid rgba(178, 84, 84, 0.4); color: #E5A0A0; }

/* Enquiry showcase card */
.enquiry-shell {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.enquiry-side {
  background:
    radial-gradient(600px 400px at 20% 10%, rgba(224, 177, 113, 0.16), transparent 60%),
    var(--ink-3);
  padding: 54px 44px; display: flex; flex-direction: column; gap: 28px;
}
.enquiry-side ul { display: flex; flex-direction: column; gap: 18px; }
.enquiry-side li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-dim); font-size: 0.95rem; }
.enquiry-side li svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--gold-hi); margin-top: 2px; }
.enquiry-form-pane { background: var(--ink-2); padding: 54px 46px; }
@media (max-width: 920px) { .enquiry-shell { grid-template-columns: 1fr; } .enquiry-side, .enquiry-form-pane { padding: 36px 26px; } }

/* ---------- Testimonials ---------- */
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; display: flex; flex-direction: column; gap: 18px;
}
.testimonial .stars { color: var(--gold-hi); letter-spacing: 4px; font-size: 1.05rem; }
.testimonial blockquote { color: var(--text-dim); font-size: 0.98rem; font-style: italic; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--text); font-size: 0.9rem; }
.testimonial cite span { display: block; font-weight: 500; color: var(--gold); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 3px; }
@media (max-width: 920px) { .testimonial-track { grid-template-columns: 1fr; } }

/* ---------- Service areas ---------- */
.areas-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.area-chip {
  padding: 10px 22px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-dim);
  font-size: 0.85rem; letter-spacing: 0.06em;
  transition: all 0.25s ease;
}
.area-chip:hover { color: var(--gold-hi); border-color: rgba(207, 161, 104, 0.55); transform: translateY(-2px); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; border-radius: 24px; overflow: hidden;
  padding: 74px 60px; text-align: center;
  background:
    radial-gradient(800px 400px at 50% -20%, rgba(224, 177, 113, 0.22), transparent 65%),
    var(--ink-3);
  border: 1px solid rgba(207, 161, 104, 0.35);
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { color: var(--text-dim); margin-bottom: 34px; }
@media (max-width: 640px) { .cta-band { padding: 50px 24px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; }
.contact-card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.contact-card:hover { border-color: rgba(207, 161, 104, 0.5); transform: translateX(4px); }
.contact-card svg { flex: 0 0 26px; width: 26px; height: 26px; color: var(--gold-hi); margin-top: 3px; }
.contact-card b { display: block; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
.contact-card a:hover { color: var(--gold-hi); }
.alias-list { font-size: 0.9rem; color: var(--text-dim); line-height: 2; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Archive / coming soon ---------- */
.coming-soon {
  min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 60px 0;
}
.coming-soon .badge {
  display: inline-block; margin-bottom: 26px; padding: 10px 26px; border-radius: 999px;
  border: 1px solid rgba(207, 161, 104, 0.45); color: var(--gold-hi);
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase;
  animation: pulseGold 2.6s ease-in-out infinite;
}
@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(207, 161, 104, 0.35); }
  50% { box-shadow: 0 0 0 14px rgba(207, 161, 104, 0); }
}

/* ---------- Footer ---------- */
.site-footer { background: #0C0A08; border-top: 1px solid var(--line); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-grid h4 { font-size: 0.82rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; font-family: var(--font-body); font-weight: 800; }
.footer-grid a, .footer-grid p { color: var(--text-dim); font-size: 0.92rem; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a:hover { color: var(--gold-hi); }
.footer-social { display: flex; gap: 14px; margin-top: 22px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--gold); transition: all 0.25s ease;
}
.footer-social a:hover { background: var(--grad-gold); color: #17130C; border-color: transparent; transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 26px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--text-dim); font-size: 0.82rem;
}
.footer-bottom .tagline { color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff;
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.55);
  transition: transform 0.25s ease;
  animation: waBob 3.4s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 32px; height: 32px; }
@keyframes waBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

/* ---------- Featured grid (home) — image only, zoom-out on hover ---------- */
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.featured-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 3 / 2; cursor: zoom-in;
  background: var(--ink-3); box-shadow: 0 10px 30px -18px rgba(0,0,0,0.6);
}
.featured-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.12); transition: transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.featured-card:hover img { transform: scale(1.0); }   /* zoom OUT to reveal the full shot */
.featured-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(224,177,113,0); transition: box-shadow 0.4s ease;
}
.featured-card:hover::after { box-shadow: inset 0 0 0 2px rgba(224,177,113,0.55); }
.featured-card .project-zoom { opacity: 0; }
.featured-card:hover .project-zoom { opacity: 1; }
@media (max-width: 1024px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .featured-grid { grid-template-columns: 1fr; } }

/* ---------- Home cinematic video ---------- */
.video-band { padding: 40px 0 20px; }
.video-frame {
  max-width: 1120px; margin-inline: auto; aspect-ratio: 16 / 9;
  border-radius: 18px; overflow: hidden; position: relative;
  border: 1px solid rgba(207,161,104,0.4);
  box-shadow: var(--shadow), 0 0 90px -40px rgba(207,161,104,0.55);
  background: #000;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 0%, transparent 60%, rgba(16,14,11,0.35));
}
.video-caption {
  position: absolute; left: 24px; bottom: 20px; z-index: 2;
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hi);
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(8, 7, 5, 0.94); backdrop-filter: blur(6px);
  padding: 4vh 4vw;
}
.lightbox.open { display: flex; animation: lbFade 0.25s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lb-stage { max-width: 92vw; max-height: 88vh; margin: 0; text-align: center; }
.lb-stage img {
  max-width: 92vw; max-height: 80vh; width: auto; height: auto;
  border-radius: 12px; border: 1px solid rgba(207,161,104,0.3);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
}
.lb-stage figcaption {
  margin-top: 16px; color: var(--gold-hi); font-family: var(--font-display);
  font-size: 1.05rem; letter-spacing: 0.04em;
}
.lb-close, .lb-nav {
  position: absolute; z-index: 2; background: rgba(31,27,20,0.7); color: var(--gold-hi);
  border: 1px solid var(--line); cursor: pointer; transition: all 0.2s ease;
  display: grid; place-items: center;
}
.lb-close {
  top: 22px; right: 24px; width: 46px; height: 46px; border-radius: 50%; font-size: 1.1rem;
}
.lb-nav {
  top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-close:hover, .lb-nav:hover { background: var(--grad-gold); color: #17130C; border-color: transparent; }
@media (max-width: 640px) {
  .lb-nav { width: 44px; height: 44px; font-size: 1.4rem; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 190px 0 80px; position: relative; }
.page-hero .hero-bg { z-index: -1; }
.page-hero h1 { margin: 16px 0 14px; }

/* ---------- Reveal animation defaults (GSAP enhances; CSS fallback) ---------- */
.reveal { opacity: 0; transform: translateY(34px); }
.no-js .reveal, .gsap-off .reveal { opacity: 1; transform: none; }

/* ---------- Marquee strip ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 20px 0; background: var(--ink-2); }
.marquee-inner { display: flex; gap: 60px; width: max-content; animation: marquee 28s linear infinite; }
.marquee-inner span {
  font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: rgba(207, 161, 104, 0.55); white-space: nowrap;
}
.marquee-inner span::after { content: "✦"; margin-left: 60px; color: var(--bronze); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Utility ---------- */
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 34px; } .mt-4 { margin-top: 54px; }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Cursor "lit fabric" effect (desktop only, JS-driven) ---------- */
#cursor-veil {
  position: fixed; inset: 0; z-index: 70; pointer-events: none;
  opacity: 0; transition: opacity 0.6s ease;
  mix-blend-mode: screen;
}
#cursor-sparkles {
  position: fixed; inset: 0; z-index: 71; pointer-events: none;
}
@media (pointer: coarse) { #cursor-veil, #cursor-sparkles { display: none; } }

/* ---------- App download showcase ---------- */
.app-showcase {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center;
}
.phone-mock {
  width: min(320px, 80%); margin-inline: auto; aspect-ratio: 9 / 19;
  border-radius: 40px; border: 2px solid rgba(207, 161, 104, 0.45);
  background:
    radial-gradient(400px 300px at 30% 0%, rgba(224, 177, 113, 0.18), transparent 60%),
    var(--ink-3);
  box-shadow: var(--shadow), 0 0 80px -30px rgba(207, 161, 104, 0.5);
  position: relative; overflow: hidden; padding: 22px 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.phone-mock::before {
  content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 8px; border-radius: 99px; background: rgba(207, 161, 104, 0.25);
}
.mock-row {
  background: rgba(16, 14, 11, 0.6); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 14px; font-size: 0.72rem; color: var(--text-dim);
}
.mock-row b { display: block; color: var(--gold-hi); font-size: 0.76rem; letter-spacing: 0.08em; margin-bottom: 3px; }
.mock-bar { height: 7px; border-radius: 99px; background: rgba(207, 161, 104, 0.15); overflow: hidden; margin-top: 7px; }
.mock-bar i { display: block; height: 100%; width: 68%; background: var(--grad-gold); border-radius: 99px; }
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 24px; border-radius: 12px;
  border: 1px solid rgba(207, 161, 104, 0.4); background: var(--ink-3);
  transition: all 0.25s ease;
}
.store-badge:hover { border-color: var(--gold-hi); transform: translateY(-3px); }
.store-badge svg { width: 26px; height: 26px; color: var(--gold-hi); }
.store-badge small { display: block; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.store-badge b { font-size: 0.95rem; }
.app-features { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.app-features li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-dim); font-size: 0.97rem; }
.app-features li svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--gold-hi); margin-top: 2px; }
@media (max-width: 920px) { .app-showcase { grid-template-columns: 1fr; } }

/* ---------- Auth portal (login/signup) ---------- */
.auth-shell { max-width: 520px; margin-inline: auto; }
.auth-card {
  background: var(--ink-3); border: 1px solid var(--line); border-radius: 22px;
  padding: 46px 42px; box-shadow: var(--shadow);
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 30px; }
.auth-tab {
  flex: 1; padding: 12px; border-radius: 999px; text-align: center;
  border: 1px solid var(--line); background: transparent; color: var(--text-dim);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: all 0.25s ease;
}
.auth-tab.active { background: var(--grad-gold); color: #17130C; border-color: transparent; }
.role-toggle { display: flex; gap: 10px; margin-bottom: 22px; }
.role-toggle label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border: 1px solid var(--line); border-radius: 10px;
  color: var(--text-dim); cursor: pointer; font-size: 0.9rem; font-weight: 600;
  text-transform: none; letter-spacing: 0; margin: 0;
  transition: all 0.2s ease;
}
.role-toggle input { display: none; }
.role-toggle label:has(input:checked) { border-color: var(--gold); color: var(--gold-hi); background: rgba(207, 161, 104, 0.08); }
@media (max-width: 560px) { .auth-card { padding: 34px 24px; } }

::selection { background: rgba(207, 161, 104, 0.35); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--bronze-deep); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--bronze); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
