:root {
  --bg: #09090b;
  --bg-2: #0f0f12;
  --surface: #13131a;
  --surface-2: #1a1a22;
  --ink: #f5f5f7;
  --body: #a1a1a6;
  --muted: #6e6e73;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --gold: #c8a24a;
  --gold-soft: rgba(200, 162, 74, 0.12);
  --gold-glow: rgba(200, 162, 74, 0.25);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ─── AMBIENT GLOW ─── */
.ambient-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
  animation: drift 24s ease-in-out infinite;
}
.glow-1 { width: 500px; height: 500px; background: var(--gold); top: -10%; left: -8%; }
.glow-2 { width: 420px; height: 420px; background: #7c6f9c; top: 35%; right: -12%; animation-delay: -8s; opacity: 0.15; }
.glow-3 { width: 360px; height: 360px; background: #4a5568; bottom: -10%; left: 35%; animation-delay: -16s; opacity: 0.12; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -25px) scale(1.04); }
  66%      { transform: translate(-25px, 20px) scale(0.98); }
}

/* ─── MASTHEAD ─── */
.masthead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 22px 0;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.masthead.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; font-size: 1rem;
  letter-spacing: -0.03em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; color: var(--ink); font-weight: 600; letter-spacing: 0.04em; }
.brand-text em { font-style: normal; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.primary-nav { display: flex; align-items: center; gap: 32px; font-size: 0.88rem; }
.primary-nav a:not(.nav-cta) { color: var(--body); transition: color 0.2s; }
.primary-nav a:not(.nav-cta):hover { color: var(--ink); }
.nav-cta {
  padding: 10px 18px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 100px;
  font-weight: 500;
  transition: all 0.25s var(--ease);
}
.nav-cta:hover { background: var(--gold); color: var(--bg); }

/* ─── HERO ─── */
.hero { padding: clamp(140px, 18vw, 200px) 0 clamp(80px, 10vw, 120px); }
.hero-meta {
  display: flex; align-items: center; gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 36px;
}
.hero-separator { color: var(--gold); }
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 32px;
  max-width: 900px;
}
.hero-title em { font-style: italic; font-weight: 400; color: var(--gold); }
.hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--body);
  max-width: 620px;
  margin-bottom: 44px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 80px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 500; font-size: 0.92rem;
  transition: all 0.25s var(--ease);
}
.btn-primary { background: var(--gold); color: var(--bg); border: 1px solid var(--gold); }
.btn-primary:hover { background: transparent; color: var(--gold); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-full { width: 100%; justify-content: center; }

.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.strip-item {
  background: var(--surface);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.strip-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.strip-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ─── SECTION HEAD ─── */
.section-head { margin-bottom: 64px; max-width: 720px; }
.section-kicker {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem; color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}
.section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-head p { color: var(--body); font-size: 1.02rem; max-width: 580px; }
.section-head-light h2, .section-head-light p { color: var(--ink); }

/* ─── SERVICES ─── */
.services { padding: clamp(80px, 10vw, 120px) 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: all 0.3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem; color: var(--gold);
  letter-spacing: 0.1em;
}
.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
}
.service-card p { color: var(--body); font-size: 0.95rem; }
.service-list { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.service-list li {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.service-list li::before { content: '·'; position: absolute; left: 0; color: var(--gold); }

/* ─── CASES ─── */
.cases { padding: clamp(80px, 10vw, 120px) 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case { display: grid; grid-template-columns: 80px 1fr; gap: 40px; padding: 56px 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; }
.case:last-of-type { border-bottom: 1px solid var(--line); }
.case-index {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}
.case-client {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  display: block;
}
.case-main h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 16px;
}
.case-main p { color: var(--body); max-width: 640px; margin-bottom: 28px; }
.case-stats { display: flex; gap: 48px; flex-wrap: wrap; }
.case-stats > div { display: flex; flex-direction: column; gap: 4px; }
.case-stats strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.case-stats span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ─── APPROACH ─── */
.approach { padding: clamp(80px, 10vw, 120px) 0; }
.approach-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.approach-list li { display: flex; flex-direction: column; gap: 16px; }
.approach-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.approach-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}
.approach-body p { color: var(--body); font-size: 0.92rem; margin-bottom: 16px; }
.approach-time {
  margin-top: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── TEAM ─── */
.team { padding: clamp(80px, 10vw, 120px) 0; border-top: 1px solid var(--line); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-member { text-align: center; }
.member-portrait {
  width: 88px; height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--gold);
  border: 1px solid var(--gold);
  background: var(--gold-soft);
}
.team-member h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.team-member > span { font-size: 0.78rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; }
.team-member p { font-size: 0.85rem; color: var(--body); margin-top: 12px; }

/* ─── CONTACT ─── */
.contact { padding: clamp(80px, 10vw, 120px) 0; border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  margin: 18px 0 20px;
}
.contact-text > p { color: var(--body); margin-bottom: 40px; max-width: 440px; }
.contact-details { display: flex; flex-direction: column; gap: 18px; }
.contact-details > div { display: flex; flex-direction: column; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.contact-details span:first-child { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-details a { color: var(--ink); font-weight: 500; transition: color 0.2s; }
.contact-details a:hover { color: var(--gold); }
.availability { color: var(--ink) !important; text-transform: none !important; letter-spacing: 0 !important; display: inline-flex; align-items: center; gap: 8px; }
.availability .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); } 100% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--bg-2); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { grid-column: 1 / -1; font-size: 0.75rem; color: var(--muted); text-align: center; margin-top: 8px; }

/* ─── FOOTER ─── */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--ink); }
.footer-links { display: flex; gap: 28px; font-size: 0.85rem; color: var(--body); }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-meta { display: flex; align-items: center; gap: 16px; font-size: 0.75rem; color: var(--muted); }
.footer-meta .mono { color: var(--gold); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; gap: 16px; }
  .approach-list { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero-strip { grid-template-columns: 1fr; }
  .approach-list { grid-template-columns: 1fr; }
  .case-stats { gap: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .contact-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .glow { animation: none; }
  .availability .dot { animation: none; }
}
