:root {
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Helvetica Neue", sans-serif;

  /* Dark premium palette */
  --bg-primary: #0a0f14;
  --bg-secondary: #0f161d;
  --bg-card: #141c26;
  --bg-card-hover: #1a2433;
  --bg-elevated: #1e2a38;

  /* Text colors */
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Accent colors */
  --gold: #d4a853;
  --gold-dim: rgba(212, 168, 83, 0.15);
  --gold-glow: rgba(212, 168, 83, 0.25);
  --teal: #2dd4bf;
  --teal-dim: rgba(45, 212, 191, 0.12);

  /* Borders and shadows */
  --border: rgba(148, 163, 184, 0.1);
  --border-subtle: rgba(148, 163, 184, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(212, 168, 83, 0.08);

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  line-height: 1.6;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(212, 168, 83, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(45, 212, 191, 0.04), transparent),
    radial-gradient(ellipse 50% 50% at 0% 80%, rgba(212, 168, 83, 0.03), transparent);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

figure {
  margin: 0;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: var(--space-md);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: 8px;
  border: 1px solid var(--border);
  z-index: 100;
}

.skip-link:focus {
  left: var(--space-md);
}

/* Container */
.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(10, 15, 20, 0.85);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo-sub {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 8px;
  font-weight: 500;
  font-size: var(--text-sm);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #c49a3d);
  color: var(--bg-primary);
  box-shadow: var(--shadow-sm), 0 0 20px rgba(212, 168, 83, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 30px rgba(212, 168, 83, 0.3);
  color: var(--bg-primary);
}

/* Main sections */
.suite {
  position: relative;
  padding: var(--space-3xl) 0;
}

/* Watermark */
.trie-watermark {
  position: absolute;
  top: 0;
  right: 5%;
  width: clamp(200px, 28vw, 360px);
  opacity: 0.06;
  pointer-events: none;
}

.trie-watermark g[fill="#b0894d"] {
  fill: var(--gold);
}

.trie-watermark g[fill="#1f6f64"] {
  fill: var(--teal);
}

/* Grid layouts */
.suite-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: var(--space-xl);
  align-items: start;
}

.suite-right {
  display: grid;
  gap: var(--space-lg);
}

.suite-stack {
  display: grid;
  gap: var(--space-lg);
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: var(--space-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(148, 163, 184, 0.15);
}

/* Intro card (hero) */
.intro {
  background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}

.intro::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--gold-dim), transparent 70%);
  opacity: 0.6;
  border-radius: 50%;
}

.intro h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-lg);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro p {
  margin: 0 0 var(--space-md);
  line-height: 1.7;
  color: var(--text-secondary);
  font-size: var(--text-lg);
}

/* Eyebrow labels */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: var(--text-xs);
  color: var(--gold);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

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

/* Intro trie section */
.intro-trie {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-lg);
  align-items: center;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: var(--space-lg) 0;
}

.intro-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
}

.intro-note {
  margin: var(--space-xs) 0 0;
  line-height: 1.6;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.trie-mark {
  width: 140px;
  height: auto;
  opacity: 0.9;
}

/* Meta information */
.meta {
  display: grid;
  gap: var(--space-md);
}

.meta-row {
  display: grid;
  gap: 4px;
}

.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 600;
}

.meta-value {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

/* Work/Services panel */
.work-panel {
  background: var(--bg-card);
  border-radius: 16px;
  padding: var(--space-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: var(--space-lg);
}

.work-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: var(--space-xs) 0 var(--space-sm);
  line-height: 1.3;
}

.work-header p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Services grid */
.services-grid {
  display: grid;
  gap: var(--space-sm);
}

.service-card {
  display: grid;
  gap: 4px;
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.service-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border);
  transform: translateX(4px);
}

.service-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
}

.service-note {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* Approach card */
.approach-card h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--space-lg);
  line-height: 1.3;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.approach-item {
  display: grid;
  gap: 4px;
  padding: var(--space-md);
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.25s ease;
}

.approach-item:hover {
  border-color: var(--gold-dim);
}

.approach-title {
  font-weight: 600;
  color: var(--gold);
  font-size: var(--text-sm);
}

.approach-note {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.approach-footer {
  margin: 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Info section */
.info-section {
  padding: 0 0 var(--space-3xl);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.info-card {
  padding: var(--space-xl);
}

.info-card h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  line-height: 1.3;
}

.info-card p {
  margin: 0 0 var(--space-md);
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: var(--text-sm);
}

.info-note {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Lists */
.client-list,
.tech-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: var(--text-sm);
}

.client-list li,
.tech-list li {
  position: relative;
  padding-left: var(--space-md);
}

.client-list li::before,
.tech-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

/* Contact card */
.contact-card h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--space-sm);
}

.contact-card p {
  margin: 0 0 var(--space-md);
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: var(--text-sm);
}

.contact-lines {
  display: grid;
  gap: var(--space-xs);
  font-weight: 500;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.contact-lines span:first-child {
  color: var(--gold);
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: var(--space-xl) 0 var(--space-2xl);
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.footer-brand {
  display: grid;
  gap: var(--space-xs);
}

.footer-brand .logo-name {
  font-size: var(--text-lg);
  color: var(--text-primary);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: flex-end;
  align-items: center;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive breakpoints */
@media (max-width: 1100px) {
  .suite-grid {
    grid-template-columns: 1fr;
  }

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

  .info-grid .contact-card {
    grid-column: span 2;
  }
}

@media (max-width: 780px) {
  :root {
    --space-xl: 1.5rem;
    --space-2xl: 2rem;
    --space-3xl: 3rem;
  }

  .intro-trie {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .trie-mark {
    width: 120px;
    margin: 0 auto;
  }

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

  .info-grid .contact-card {
    grid-column: auto;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-legal {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md) 0;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .intro h1 {
    font-size: var(--text-2xl);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .service-card,
  .approach-item,
  .card {
    transition: none;
  }
}
