:root {
  --bg: #0A0C10;
  --panel: #12151C;
  --panel-2: #171B24;
  --border: rgba(201, 161, 94, 0.18);
  --border-strong: rgba(201, 161, 94, 0.4);
  --brass: #C9A15E;
  --brass-bright: #E3C081;
  --indigo: #4A5FE0;
  --text: #EDEEF0;
  --text-muted: #8B93A1;
  --text-dim: #5B6270;
  --radius: 2px 18px 2px 18px;
  --maxw: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'Sora', -apple-system, sans-serif; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, h3, .serif { font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; margin: 0; color: var(--text); }
p { color: var(--text-muted); max-width: 62ch; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(10, 12, 16, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding-top: env(safe-area-inset-top, 0px); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.wordmark { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 500; letter-spacing: -0.01em; cursor: pointer; }
.wordmark span { color: var(--brass); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links li { margin-right: 36px; }
.nav-links li:last-child { margin-right: 0; }
.nav-links a { font-size: 0.92rem; color: var(--text-muted); transition: color 0.25s ease; cursor: pointer; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--brass-bright); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #0A0C10; }
.nav-toggle { display: none; background: none; border: none; padding: 10px 6px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px 0; transition: transform 0.25s ease, opacity 0.2s ease; }
.site-nav.open .nav-toggle .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-nav.open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.site-nav.open .nav-toggle .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .mobile-header-cta { display: inline-flex; padding: 9px 16px; font-size: 0.82rem; gap: 6px; }
  .site-nav.open .nav-links { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 76px; left: 0; right: 0; background: var(--panel); padding: 24px 32px; gap: 20px; border-bottom: 1px solid var(--border); }
  .site-nav.open .nav-links li { margin-right: 0; }
}

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px; border-radius: var(--radius); font-size: 0.95rem; font-weight: 500; transition: all 0.25s cubic-bezier(.2,.8,.2,1); cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--brass); color: #0A0C10; box-shadow: 0 8px 20px -6px rgba(201, 161, 94, 0.5), 0 2px 0 0 rgba(255,255,255,0.15) inset; }
.btn-primary:hover { background: var(--brass-bright); transform: translateY(-3px); box-shadow: 0 16px 30px -8px rgba(201, 161, 94, 0.6), 0 2px 0 0 rgba(255,255,255,0.2) inset; }
.btn-primary:active { transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgba(201, 161, 94, 0.5); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: rgba(201,161,94,0.1); color: var(--brass-bright); transform: translateY(-3px); }
.btn-sm { padding: 10px 20px; font-size: 0.88rem; }

.hero { position: relative; padding: 100px 0 110px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-eyebrow { color: var(--brass); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em; margin-bottom: 22px; display: block; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: 26px; }
.hero h1 em { font-style: italic; color: var(--brass-bright); }
.hero p.lead { font-size: 1.12rem; margin-bottom: 34px; max-width: 48ch; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-subnote { font-size: 0.85rem; color: var(--text-dim); margin-top: 18px; }
.mobile-header-cta { display: none; }
.mobile-nav-actions { display: flex; align-items: center; gap: 10px; }
.hero-canvas-wrap { position: relative; height: 440px; perspective: 1200px; }
#hero-canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-canvas-wrap { height: 260px; order: 2; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; }
  .hero-eyebrow { order: 3; }
  .hero p.lead { order: 4; }
  .hero-ctas { order: 5; }
  .hero-subnote { order: 6; }
}

.section { padding: 92px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.section-head.center { max-width: 620px; margin-left: auto; margin-right: auto; text-align: center; }

.tilt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; perspective: 1400px; }
.tilt-card {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border-radius: var(--radius);
  padding: 34px 30px;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
  will-change: transform;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(36px) rotateX(-8deg);
}
.tilt-card.in-view { opacity: 1; transform: translateY(0) rotateX(0); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.tilt-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(201,161,94,0.12), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.tilt-card:hover::before { opacity: 1; }
.tilt-card:hover { box-shadow: 0 34px 70px -22px rgba(74, 95, 224, 0.32); }
.tilt-card .num { font-family: 'Fraunces', serif; font-size: 0.95rem; color: var(--brass); margin-bottom: 16px; display: block; }
.tilt-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.tilt-card p { font-size: 0.95rem; margin: 0; }

.process-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 780px) { .process-line { grid-template-columns: 1fr; } }

.scale-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; perspective: 1400px; }
@media (max-width: 780px) { .scale-grid { grid-template-columns: 1fr; } }
.scale-card {
  background: var(--panel); border-radius: var(--radius); padding: 38px 34px;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), box-shadow 0.3s ease;
  opacity: 0; transform: translateY(36px) rotateX(-8deg);
}
.scale-card.in-view { opacity: 1; transform: translateY(0) rotateX(0); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.scale-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -24px rgba(74, 95, 224, 0.3); }
.scale-card h3 { font-size: 1.35rem; margin-bottom: 14px; }
.scale-card p { font-size: 0.98rem; }

footer { border-top: 1px solid var(--border); padding: 44px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
footer .fmuted { color: var(--text-dim); font-size: 0.85rem; }
footer .flinks { display: flex; gap: 24px; flex-wrap: wrap; }
footer .flinks a { color: var(--text-muted); font-size: 0.85rem; margin-right: 24px; cursor: pointer; }
footer .flinks a:last-child { margin-right: 0; }
footer .flinks a:hover { color: var(--brass-bright); }

.page-hero { padding: 68px 0 52px; border-bottom: 1px solid var(--border); }
.page-hero .hero-eyebrow { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 2.9rem); }
.page-hero p.lead { margin-top: 18px; font-size: 1.02rem; }

.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(6, 7, 10, 0.72); backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 24px; perspective: 1200px; }
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--panel); border-radius: var(--radius);
  max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto;
  padding: 40px 38px; position: relative;
  transform: scale(0.9) rotateX(-8deg) translateY(20px); opacity: 0;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.35s ease;
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.6);
}
.modal-overlay.open .modal-box { transform: scale(1) rotateX(0) translateY(0); opacity: 1; }
.modal-close { position: absolute; top: 18px; right: 22px; background: none; border: none; color: var(--text-muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-box h2 { font-size: 1.6rem; margin-bottom: 10px; }
.modal-box p.lead-sm { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 28px; }
.modal-box .legal-body { font-size: 0.92rem; color: var(--text-muted); }
.modal-box .legal-body h3 { font-size: 1rem; color: var(--text); margin: 20px 0 8px; }
.modal-box .legal-body p { margin: 0 0 10px; }

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.86rem; color: var(--text-muted); margin-bottom: 7px; }
.field input, .field textarea, .field select { width: 100%; background: #0D1016; border-radius: 6px; padding: 12px 15px; color: var(--text); font-family: 'Sora', sans-serif; font-size: 0.94rem; transition: box-shadow 0.25s ease; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: 0 0 0 2px rgba(201,161,94,0.5); }
.field textarea { resize: vertical; min-height: 100px; }
.honeypot { position: absolute; left: -9999px; }


.cube3d { width: 34px; height: 34px; position: relative; transform-style: preserve-3d; margin-bottom: 22px; animation: spin3d 9s linear infinite; }
.cube3d div { position: absolute; width: 34px; height: 34px; border: 1px solid var(--border-strong); background: rgba(201,161,94,0.06); }
.cube3d .f1 { transform: translateZ(17px); }
.cube3d .f2 { transform: rotateY(180deg) translateZ(17px); }
.cube3d .f3 { transform: rotateY(90deg) translateZ(17px); }
.cube3d .f4 { transform: rotateY(-90deg) translateZ(17px); }
.cube3d .f5 { transform: rotateX(90deg) translateZ(17px); }
.cube3d .f6 { transform: rotateX(-90deg) translateZ(17px); }
@keyframes spin3d { from { transform: rotateX(-20deg) rotateY(0deg); } to { transform: rotateX(-20deg) rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .cube3d { animation: none; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ===== Small screen refinements (phones & small tablets) ===== */
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .page-hero { padding: 52px 0 40px; }
  .hero-canvas-wrap { height: 220px; }
  .tilt-card { padding: 26px 22px; }
  .scale-card { padding: 28px 24px; }
  .modal-box { padding: 30px 24px; }
  .hero-eyebrow { font-size: 0.95rem; }
  .btn { width: 100%; justify-content: center; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  footer .wrap { flex-direction: column; align-items: flex-start; text-align: left; }
}
@media (max-width: 400px) {
  .wordmark { font-size: 1.15rem; }
  .hero h1 { font-size: 2.1rem; }
}
/* Avoid hover-only interactions trapping mobile/touch users */
@media (hover: none) {
  .tilt-card:hover { transform: none; }
  .btn-primary:hover, .btn-ghost:hover { transform: none; }
}
