*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #0a0a0f; --paper: #f4f4f6; --accent: #2563eb;
  --muted: #6b7280; --line: rgba(10,10,15,0.1); --accent2: #10b981;
}
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 18px; line-height: 1.6; overflow-x: hidden; cursor: none;
}
.cursor {
  position: fixed; width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%; pointer-events: none; z-index: 9999;
  transition: transform 0.15s ease; mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed; width: 36px; height: 36px; border: 1px solid var(--accent);
  border-radius: 50%; pointer-events: none; z-index: 9998;
  transition: all 0.25s ease; mix-blend-mode: difference;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.45;
}
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 4rem;
  opacity: 0; transform: translateY(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  background: rgba(244,244,246,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
nav.nav--visible { opacity: 1; transform: translateY(0); }
[data-theme="dark"] nav { background: rgba(13,13,18,0.85); }
.nav-logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 0.85rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  position: relative; padding-top: 5rem;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 6rem 4rem; border-right: 1px solid var(--line); position: relative;
}
.hero-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.8s 0.2s forwards;
}
.hero-name {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(3.5rem, 6.5vw, 7rem); line-height: 0.92; letter-spacing: -0.03em;
  opacity: 0; animation: fadeUp 0.8s 0.4s forwards;
}
.hero-name em { font-style: normal; color: var(--accent); }
.hero-roles {
  margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.5rem;
  opacity: 0; animation: fadeUp 0.8s 0.6s forwards;
}
.hero-role {
  font-family: 'Syne', sans-serif; font-size: 0.8rem; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 1rem;
}
.hero-role::before { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--accent2); }
.hero-number {
  position: absolute; bottom: 2rem; left: 4rem;
  font-family: 'Space Grotesk', sans-serif; font-size: 11rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px var(--line); line-height: 1;
  pointer-events: none; opacity: 0; animation: fadeUp 1s 1s forwards;
}
.hero-right {
  padding: 6rem 4rem; display: flex; flex-direction: column;
  justify-content: center; position: relative;
}
.hero-tagline {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 400; line-height: 1.5;
  max-width: 480px; opacity: 0; animation: fadeUp 0.8s 0.8s forwards;
}
.hero-tagline strong { font-weight: 500; font-style: italic; }
.hero-scroll {
  position: absolute; bottom: 3rem; right: 4rem;
  font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted); writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 1rem;
  opacity: 0; animation: fadeUp 0.8s 1.2s forwards;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 60px; background: var(--accent2);
  animation: growLine 1.5s 1.8s ease forwards; transform-origin: top; transform: scaleY(0);
}
.section-divider { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.divider-label {
  padding: 1rem 4rem; font-family: 'DM Mono', monospace; font-size: 0.65rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  border-right: 1px solid var(--line);
}
.divider-count { padding: 1rem 4rem; font-family: 'DM Mono', monospace; font-size: 0.65rem; color: var(--muted); text-align: right; }
.about { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.about-image-area { border-right: 1px solid var(--line); padding: 6rem 4rem; }
.about-portrait { width: 100%; aspect-ratio: 4/5; overflow: hidden; }
.portrait-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0d1117 0%, #1e2a3a 60%, #0d1117 100%);
  display: flex; align-items: center; justify-content: center;
}
.portrait-initials {
  font-family: 'Syne', sans-serif; font-size: 7rem; font-weight: 800;
  color: rgba(244,244,246,0.1);
}
.about-caption { margin-top: 1.5rem; font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.1em; color: var(--muted); }
.about-content { padding: 6rem 4rem; display: flex; flex-direction: column; justify-content: center; }
.section-label { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 2rem; }
.about-text { font-family: 'Lora', Georgia, serif; font-size: 1.2rem; font-weight: 400; line-height: 1.85; margin-bottom: 1.5rem; }
.about-text.muted { color: var(--muted); font-size: 1.1rem; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.stat-number { font-family: 'Space Grotesk', sans-serif; font-size: 3.5rem; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-number span { color: var(--accent); }
.stat-label { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 0.5rem; }
.expertise { border-top: 1px solid var(--line); padding: 6rem 4rem; scroll-margin-top: 80px; }
.expertise-header { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 5rem; align-items: end; }
.expertise-title { font-family: 'Syne', sans-serif; font-size: clamp(2.5rem, 4.5vw, 5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.expertise-title em { font-style: normal; color: var(--accent); }
.expertise-intro { font-size: 1.05rem; font-weight: 300; color: var(--muted); line-height: 1.7; }
.expertise-why { font-family: 'DM Mono', monospace; font-size: 0.85rem; font-weight: 400; color: var(--accent); letter-spacing: 0.03em; margin-top: 1.5rem; line-height: 1.5; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.expertise-card { padding: 3rem; border: 1px solid var(--line); transition: background 0.3s; }
.expertise-card:hover { background: rgba(37,99,235,0.04); }
.expertise-card-number { font-family: 'DM Mono', monospace; font-size: 0.65rem; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 2rem; }
.expertise-card-title { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 1rem; line-height: 1.2; }
.expertise-card-text { font-size: 1rem; font-weight: 300; color: var(--muted); line-height: 1.65; }
.expertise-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; padding: 0.3rem 0.7rem; border: 1px solid var(--line); color: var(--muted); text-transform: uppercase; }
.process { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; }
.process-label-col { padding: 6rem 4rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.process-big-text { font-family: 'Syne', sans-serif; font-size: clamp(2.5rem, 4vw, 4.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.process-big-text em { font-style: normal; color: var(--accent); }
.process-note { font-size: 1rem; font-weight: 300; color: var(--muted); line-height: 1.65; }
.process-steps { padding: 6rem 4rem; }
.process-step { display: grid; grid-template-columns: 80px 1fr; gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--line); transition: all 0.3s; }
.process-step:first-child { padding-top: 0; }
.process-step:hover .step-title { color: var(--accent); }
.step-num { font-family: 'Space Grotesk', sans-serif; font-size: 3rem; font-weight: 300; color: var(--line); line-height: 1; font-variant-numeric: tabular-nums; }
.step-title { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.75rem; transition: color 0.3s; }
.step-text { font-size: 1rem; font-weight: 300; color: var(--muted); line-height: 1.65; }
.cases { border-top: 1px solid var(--line); padding: 6rem 4rem; }
.cases-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; }
.cases-title { font-family: 'Syne', sans-serif; font-size: clamp(2.5rem, 4.5vw, 5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.cases-title em { font-style: normal; color: var(--accent); }
.cases-all { font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: 0.75rem; transition: color 0.2s; white-space: nowrap; }
.cases-all:hover { color: var(--accent); }
.cases-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; }
.case-card { border: 1px solid var(--line); padding: 3rem; position: relative; overflow: hidden; transition: all 0.3s; }
.case-card:hover { background: #0d1117; color: var(--paper); }
.case-card:hover .case-industry, .case-card:hover .case-text { color: rgba(244,244,246,0.45); }
.case-card:hover .case-arrow { color: var(--accent); transform: translate(4px,-4px); }
.case-industry { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.5rem; transition: color 0.3s; }
.case-title { font-family: 'Space Grotesk', sans-serif; font-size: 1.35rem; font-weight: 500; line-height: 1.25; margin-bottom: 1rem; }
.case-text { font-size: 0.95rem; font-weight: 300; color: var(--muted); line-height: 1.6; transition: color 0.3s; }
.case-arrow { position: absolute; bottom: 2rem; right: 2rem; font-size: 1.5rem; transition: all 0.3s; }
.testimonial { border-top: 1px solid var(--line); background: #0d1117; color: var(--muted); padding: 8rem 4rem; display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: center; }
.testimonial-label { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent2); }
.testimonial-quote { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 300; line-height: 1.4; }
.quote-mark { color: var(--accent); }
.testimonial-author { margin-top: 2rem; font-family: 'DM Mono', monospace; font-size: 0.7rem; letter-spacing: 0.1em; color: rgba(244,244,246,0.45); }
.testimonial-author strong { display: block; color: var(--paper); margin-bottom: 0.25rem; font-weight: 400; font-family: 'DM Mono', monospace; }
.contact { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; min-height: 70vh; scroll-margin-top: 80px; }
.contact-left { padding: 6rem 4rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.contact-title { font-family: 'Syne', sans-serif; font-size: clamp(3rem, 5.5vw, 6rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.contact-title em { font-style: normal; color: var(--accent); }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item-label { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.2rem; }
.contact-item-value { font-size: 1.1rem; font-weight: 300; }
.contact-right { padding: 6rem 4rem; display: flex; flex-direction: column; justify-content: center; gap: 1.75rem; }
.contact-field { display: flex; flex-direction: column; gap: 0.5rem; }
.contact-field label { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.contact-field input, .contact-field textarea { background: transparent; border: none; border-bottom: 1px solid var(--line); padding: 0.75rem 0; font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; color: var(--ink); outline: none; transition: border-color 0.2s; resize: none; cursor: none; }
.contact-field input:focus, .contact-field textarea:focus { border-color: var(--accent); }
.contact-submit { margin-top: 0.5rem; display: inline-flex; align-items: center; gap: 1.5rem; background: none; border: none; cursor: none; font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink); transition: color 0.2s; padding: 0; }
.submit-arrow { font-size: 1.2rem; transition: transform 0.2s; display: inline-block; }
.contact-submit:hover { color: var(--accent); }
.contact-submit:hover .submit-arrow { transform: translateX(6px); }
footer { border-top: 1px solid var(--line); padding: 2rem 4rem; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.1em; color: var(--muted); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
/* Auto Dark Mode (system preference, no data-theme set) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --ink: #f0f0f2; --paper: #0d0d12; --accent: #4f8ef7;
    --muted: #9ca3af; --line: rgba(240,240,242,0.1); --accent2: #34d399;
  }
  :root:not([data-theme="light"]):not([data-theme="dark"]) nav { background: rgba(13,13,18,0.85); }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .testimonial { background: #17172a; color: var(--ink); }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .testimonial-author strong { color: var(--ink); }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .case-card:hover { background: #17172a; color: var(--ink); }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .case-card:hover .case-industry,
  :root:not([data-theme="light"]):not([data-theme="dark"]) .case-card:hover .case-text { color: rgba(240,240,242,0.45); }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .portrait-placeholder {
    background: linear-gradient(135deg, #17172a 0%, #1e2a4a 60%, #17172a 100%);
  }
  :root:not([data-theme="light"]):not([data-theme="dark"]) body::before { opacity: 0.7; }
}

/* Explicit Dark Mode */
[data-theme="dark"] {
  --ink: #f0f0f2; --paper: #0d0d12; --accent: #4f8ef7;
  --muted: #9ca3af; --line: rgba(240,240,242,0.1); --accent2: #34d399;
}
[data-theme="dark"] .testimonial { background: #17172a; color: var(--ink); }
[data-theme="dark"] .testimonial-author strong { color: var(--ink); }
[data-theme="dark"] .case-card:hover { background: #17172a; color: var(--ink); }
[data-theme="dark"] .case-card:hover .case-industry,
[data-theme="dark"] .case-card:hover .case-text { color: rgba(240,240,242,0.45); }
[data-theme="dark"] .portrait-placeholder {
  background: linear-gradient(135deg, #17172a 0%, #1e2a4a 60%, #17172a 100%);
}
[data-theme="dark"] body::before { opacity: 0.7; }

/* Theme Toggle Button */
.theme-toggle {
  background: none; border: 1px solid var(--line); cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* 3-state icons: default = auto */
.theme-toggle .icon-auto { display: block; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="dark"]  .theme-toggle .icon-auto { display: none; }
[data-theme="dark"]  .theme-toggle .icon-moon { display: none; }
[data-theme="dark"]  .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-auto { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes growLine { to { transform: scaleY(1); } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 900px) {
  nav { padding: 1.5rem 2rem; }
  .nav-links { display: none; }
  .hero, .about, .contact { grid-template-columns: 1fr; }
  .hero-left { border-right: none; border-bottom: 1px solid var(--line); padding: 8rem 2rem 4rem; }
  .hero-right { padding: 3rem 2rem 5rem; }
  .hero-number { display: none; }
  .about-image-area { border-right: none; padding: 4rem 2rem; }
  .about-content { padding: 3rem 2rem; }
  .expertise { padding: 4rem 2rem; }
  .expertise-header, .expertise-grid { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .process-label-col { border-right: none; padding: 4rem 2rem 2rem; }
  .process-steps { padding: 2rem 2rem 4rem; }
  .cases { padding: 4rem 2rem; }
  .cases-grid { grid-template-columns: 1fr; }
  .testimonial { grid-template-columns: 1fr; padding: 5rem 2rem; }
  .contact-left { border-right: none; min-height: auto; padding: 4rem 2rem; }
  .contact-right { padding: 3rem 2rem 5rem; }
  footer { padding: 2rem; flex-direction: column; gap: 1rem; text-align: center; }
  .section-divider { grid-template-columns: 1fr; }
  .divider-label { border-right: none; padding: 0.75rem 2rem; }
  .divider-count { display: none; }
}
