:root {
  --ink:        #0a0d0f;
  --paper:      #f5f2ec;
  --cream:      #ede9e1;
  --gold:       #b8955a;
  --gold-light: #d4b07a;
  --verdigris:  #2a6b5e;
  --muted:      #6b6459;
  --rule:       rgba(184,149,90,0.25);
  --mono:       'DM Mono', monospace;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Outfit', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 4rem;
  background: rgba(245,242,236,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: padding 0.3s ease;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo-mark {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.nav-logo-sub {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-cta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 0.6rem 1.4rem;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 5rem;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem 6rem 4rem;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-heading {
  font-family: var(--serif);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-heading em {
  font-style: italic;
  color: var(--gold);
}

.hero-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 3rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.btn-primary {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 1rem 2rem;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: all 0.25s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.btn-secondary {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
}

.btn-secondary:hover { gap: 0.9rem; color: var(--gold); }

/* ─── HERO RIGHT — animated grid ─── */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--verdigris) 0%, var(--ink) 100%);
  clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(245,242,236,0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,242,236,0.8) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0%   { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}

.hero-circuit {
  position: relative;
  z-index: 2;
  padding: 4rem 3rem 4rem 5rem;
  clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.stat-cluster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1s;
}

.stat-card {
  border: 1px solid rgba(245,242,236,0.15);
  padding: 1.5rem;
  background: rgba(245,242,236,0.04);
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.stat-number {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--paper);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.5);
}

.hero-tagline {
  margin-top: 2.5rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: rgba(245,242,236,0.7);
  line-height: 1.5;
  border-left: 2px solid var(--gold);
  padding-left: 1.2rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.2s;
}

/* ─── MARQUEE ─── */
.marquee-section {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  padding: 1rem 0;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee-item {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 3rem;
  flex-shrink: 0;
}

.marquee-dot {
  color: rgba(184,149,90,0.4);
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SERVICES ─── */
.services {
  padding: 8rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-note {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: right;
  max-width: 200px;
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
}

.service-card {
  padding: 2.5rem;
  border-right: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  cursor: default;
}

.service-card:last-child { border-right: none; }

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(to top, rgba(184,149,90,0.06), transparent);
  transition: height 0.4s ease;
}

.service-card:hover::after { height: 100%; }

.service-number {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0.6;
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1.5rem;
  color: var(--verdigris);
}

.service-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.service-desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.service-tag {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--verdigris);
  border: 1px solid rgba(42,107,94,0.3);
  padding: 0.25rem 0.6rem;
}

/* ─── PHILOSOPHY ─── */
.philosophy {
  background: var(--ink);
  padding: 8rem 4rem;
  position: relative;
  overflow: hidden;
}

.philosophy::before {
  content: '"';
  position: absolute;
  top: -2rem;
  left: 3rem;
  font-family: var(--serif);
  font-size: 20rem;
  color: rgba(184,149,90,0.06);
  line-height: 1;
  pointer-events: none;
}

.philosophy-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: center;
}

.philosophy-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.philosophy-side-title {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--paper);
  line-height: 1.1;
}

.philosophy-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 2rem 0;
}

.philosophy-sub {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: rgba(245,242,236,0.4);
  line-height: 1.8;
}

.philosophy-quote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 300;
  color: var(--paper);
  line-height: 1.5;
  font-style: italic;
}

.philosophy-quote strong {
  font-style: normal;
  font-weight: 600;
  color: var(--gold-light);
}

.philosophy-body {
  margin-top: 2rem;
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(245,242,236,0.55);
  font-weight: 300;
  max-width: 560px;
}

/* ─── DIFFERENTIATORS ─── */
.differentiators {
  padding: 8rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 4rem;
}

.diff-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
}

.diff-index {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--rule);
  line-height: 1;
  padding-top: 0.1rem;
}

.diff-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.diff-body {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--muted);
  font-weight: 300;
}

/* ─── PROCESS ─── */
.process {
  background: var(--cream);
  padding: 8rem 4rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.process-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 4rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.process-step {
  padding: 0 2rem;
  text-align: center;
  position: relative;
}

.step-dot {
  width: 56px;
  height: 56px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  background: var(--cream);
  position: relative;
  z-index: 1;
}

.step-dot-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.step-number {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.step-body {
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
}

/* ─── CTA ─── */
.cta-section {
  padding: 8rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: 'AI';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 30vw;
  font-weight: 300;
  color: rgba(184,149,90,0.04);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.cta-heading {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.cta-heading em { font-style: italic; color: var(--gold); }

.cta-body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 3rem;
}

.cta-email {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 1.5rem;
  display: block;
}

.cta-email a {
  color: var(--gold);
  text-decoration: none;
}

/* ─── CONTACT FORM ─── */
.contact-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--rule);
  padding: 0.85rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(107,100,89,0.45);
}

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

.contact-form button.btn-primary {
  width: 100%;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  padding: 1rem 2rem;
  transition: all 0.25s;
}

.contact-form button.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ─── FORM SUCCESS MESSAGE ─── */
.success-message {
  display: none;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--rule);
  padding: 3rem 2rem;
  background: var(--cream);
  text-align: center;
}

.success-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}

.success-heading {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.success-heading em {
  font-style: italic;
  color: var(--gold);
}

.success-body {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
  font-weight: 300;
}

.success-mono {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 1.5rem;
}

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  padding: 3rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(184,149,90,0.2);
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--paper);
}

.footer-logo span {
  color: var(--gold);
  font-style: italic;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(245,242,236,0.3);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.35);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 7rem 2rem 4rem; }
  nav { padding: 1.2rem 2rem; }
  .nav-links { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .philosophy-inner { grid-template-columns: 1fr; gap: 3rem; }
  .diff-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; }
  .services, .differentiators { padding: 5rem 2rem; }
  .philosophy, .process, .cta-section { padding: 5rem 2rem; }
}
