:root {
  --radius: 0.25rem;
  --background: oklch(0.985 0.008 230);
  --foreground: oklch(0.22 0.05 245);
  --card: oklch(0.98 0.012 225);
  --primary: oklch(0.62 0.16 235);
  --primary-foreground: oklch(0.99 0.005 230);
  --muted: oklch(0.95 0.015 225);
  --muted-foreground: oklch(0.48 0.04 245);
  --border: oklch(0.85 0.03 230 / 70%);
  --ring: oklch(0.68 0.14 230);
  --gradient-hero: radial-gradient(ellipse at top, oklch(0.78 0.13 215 / 0.35), transparent 60%);
  --gradient-primary: linear-gradient(135deg, oklch(0.68 0.14 230), oklch(0.80 0.13 200));
  --shadow-glow: 0 20px 60px -20px oklch(0.68 0.14 230 / 0.35);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 80rem;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background-image: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--primary);
}

.section-heading { max-width: 42rem; }
.section-heading.center { margin: 0 auto; text-align: center; }
.section-heading h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
}
.section-heading p {
  margin: 1rem 0 0;
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.6;
}

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 100%, transparent);
  background: color-mix(in oklch, var(--background) 80%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo-image {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-nav { display: none; gap: 2rem; align-items: center; }
.site-nav a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--foreground); }

.header-cta {
  display: none;
  align-items: center;
  height: 2.25rem;
  padding: 0 1rem;
  border: 1px solid color-mix(in oklch, var(--primary) 40%, transparent);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s;
}
.header-cta:hover { background: color-mix(in oklch, var(--primary) 20%, transparent); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid color-mix(in oklch, var(--border) 100%, transparent);
}
.mobile-nav.open { display: block; }
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.5rem 1.25rem;
}
.mobile-nav a {
  padding: 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.mobile-nav a:hover { background: var(--card); color: var(--foreground); }
.mobile-nav .header-cta {
  display: inline-flex;
  justify-content: center;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .site-nav, .header-cta { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}
.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
}
.btn-outline:hover { background: var(--card); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in oklch, var(--border) 100%, transparent);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 6rem 0;
}
.hero h1 {
  margin-top: 1.25rem;
  max-width: 48rem;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
}
.hero-lede {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted-foreground);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .hero-inner { padding: 8rem 0; }
}

/* Sections */
.section { border-bottom: 1px solid color-mix(in oklch, var(--border) 100%, transparent); }
.section-pad { padding: 6rem 0; }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.clients-grid div {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: color-mix(in oklch, var(--foreground) 80%, transparent);
}
@media (min-width: 768px) {
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .clients-grid div { font-size: 1.25rem; }
}

.grid-cards {
  display: grid;
  gap: 1px;
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--border) 100%, transparent);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--border) 100%, transparent);
}
.grid-cards.cols-3 { grid-template-columns: 1fr; }
.grid-cards.cols-2 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
}
.grid-card {
  background: var(--background);
  padding: 1.5rem;
}
.grid-card.lg { padding: 2rem; }
.grid-card h3 {
  font-size: 1rem;
  font-weight: 600;
}
.grid-card.lg h3 { font-size: 1.25rem; }
.grid-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.work-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}
.work-card {
  display: flex;
  flex-direction: column;
  border: 1px solid color-mix(in oklch, var(--border) 100%, transparent);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.5rem;
  transition: border-color 0.15s;
}
.work-card:hover { border-color: color-mix(in oklch, var(--primary) 40%, transparent); }
.work-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.work-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.work-tag {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.125rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}
.work-icon {
  margin-top: 2rem;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}
.work-card h3 {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}
.work-card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.about-grid {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}
.quote-card {
  border: 1px solid color-mix(in oklch, var(--border) 100%, transparent);
  border-radius: var(--radius);
  background: var(--card);
  padding: 2rem;
}
.quote-card blockquote {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.35;
}
.quote-card cite {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--muted-foreground);
}
.prose p {
  margin: 0 0 1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}
.prose p:last-child { margin-bottom: 0; }

.milestones {
  margin-top: 3rem;
  border: 1px solid color-mix(in oklch, var(--border) 100%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
  background: color-mix(in oklch, var(--border) 100%, transparent);
}
.milestone {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--background);
  border-bottom: 1px solid color-mix(in oklch, var(--border) 100%, transparent);
}
.milestone:last-child { border-bottom: 0; }
.milestone-year {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--primary);
}
@media (min-width: 768px) {
  .milestone { grid-template-columns: 7.5rem 1fr; }
}

.team-grid {
  display: grid;
  gap: 1px;
  margin-top: 3rem;
  border: 1px solid color-mix(in oklch, var(--border) 100%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
  background: color-mix(in oklch, var(--border) 100%, transparent);
}
@media (min-width: 768px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}
.team-card {
  background: var(--background);
  padding: 2rem;
}
.team-photo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  object-fit: cover;
  background: transparent;
  filter: grayscale(100%);
}
.team-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-family: var(--font-display);
  font-weight: 600;
}
.team-card h3 {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}
.team-role {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.team-card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}
.team-card a {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--primary);
}
.team-card a:hover { text-decoration: underline; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
}
.tag {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  color: color-mix(in oklch, var(--foreground) 90%, transparent);
}
.tag.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--background);
}

.cta-panel {
  border: 1px solid color-mix(in oklch, var(--border) 100%, transparent);
  border-radius: var(--radius);
  background: var(--card);
  padding: 2.5rem;
}
@media (min-width: 768px) {
  .cta-panel { padding: 4rem; }
}
.cta-panel-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .cta-panel-grid { grid-template-columns: 1fr 1fr; }
  .cta-panel-grid .btn-wrap { text-align: right; }
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 0.8fr 1.2fr; }
}
.contact-aside a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
}
.contact-aside a:hover { color: var(--primary); }
.contact-aside p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.contact-form {
  border: 1px solid color-mix(in oklch, var(--border) 100%, transparent);
  border-radius: var(--radius);
  background: var(--card);
  padding: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}
.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font: inherit;
  font-size: 0.875rem;
  padding: 0.75rem;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { min-height: 9rem; resize: vertical; }
.form-row {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}
.form-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  opacity: 0;
  transform: translateY(0.5rem);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid color-mix(in oklch, var(--border) 100%, transparent);
  background: var(--background);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-grid p {
  margin-top: 1rem;
  max-width: 24rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}
.footer-grid h4 {
  font-size: 0.875rem;
  font-weight: 500;
}
.footer-links {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.footer-links a:hover { color: var(--foreground); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid color-mix(in oklch, var(--border) 100%, transparent);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.footer-bottom .mono { font-family: var(--font-mono); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
