:root {
  --bg: #fafaf7;
  --bg-warm: #f4f1ea;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-mute: #8a8580;
  --rule: #e5e1d8;
  --rule-strong: #cdc7bb;
  --accent: #b8492e;
  --accent-soft: #f0d5c8;
  --net: #2d5d4f;
  --net-soft: #d4e2dc;
  --sql: #5b6f8c;
  --highlight: #f5e8b8;
  --shadow-md: 0 4px 12px rgba(40,30,20,0.06), 0 2px 4px rgba(40,30,20,0.04);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
  --text-xs: 11px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: var(--text-base);
  font-weight: 400;
  letter-spacing: 0;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(184,73,46,0.025) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(45,93,79,0.025) 0%, transparent 40%);
  overflow-x: hidden;
}
::selection { background: var(--highlight); color: var(--ink); }
a { color: inherit; }
strong, b { font-weight: 600; }
em { font-style: italic; }
small { font-size: var(--text-sm); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.site-header { padding: 40px 0 28px; border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 36px; height: 36px; background: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: var(--text-base); font-weight: 600; color: var(--paper); }
.logo-text { font-weight: 700; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; }
.logo-ref { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); background: var(--accent-soft); padding: 4px 8px; letter-spacing: 0.05em; }
nav { display: flex; flex-wrap: wrap; gap: 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; }
nav a { color: var(--ink-soft); text-decoration: none; transition: color 0.2s; }
nav a:hover, .active { color: var(--accent); }
.site-header .menu-toggle { display: none !important; width: 40px; height: 40px; border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink); align-items: center; justify-content: center; padding: 0; letter-spacing: 0; text-transform: none; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform 0.2s, opacity 0.2s; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.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; }
.hero { padding: 76px 0 58px; border-bottom: 1px solid var(--rule); }
.hero-eyebrow, .section-kicker { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); display: flex; align-items: center; gap: 12px; }
.hero-eyebrow { margin-bottom: 24px; }
.hero-eyebrow::before, .section-kicker::before { content: ""; width: 24px; height: 1px; background: var(--ink-mute); }
h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: 0; max-width: 900px; font-variation-settings: "opsz" 144; }
h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.hero-sub { font-family: var(--font-sans); font-size: var(--text-lg); line-height: 1.65; color: var(--ink-soft); max-width: 640px; margin-top: 28px; font-weight: 400; letter-spacing: 0; font-stretch: normal; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 24px 32px; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-mute); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 34px; }
.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.services, .content { padding: 0; }
.service-section, .content-section { padding: 58px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.service-section:nth-child(even) { direction: rtl; }
.service-section:nth-child(even) > * { direction: ltr; }
.service-number { font-family: var(--font-mono); font-size: 48px; font-weight: 600; color: var(--rule-strong); line-height: 1; letter-spacing: 0; }
h2, .service-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin-bottom: 18px; color: var(--ink); letter-spacing: 0; font-variation-settings: "opsz" 144; }
h3 { font-family: var(--font-serif); font-size: 24px; line-height: 1.2; margin: 28px 0 12px; font-weight: 500; letter-spacing: 0; font-variation-settings: "opsz" 144; }
p { font-family: var(--font-sans); font-size: var(--text-base); font-weight: 400; line-height: 1.7; color: var(--ink-soft); margin-bottom: 16px; max-width: 760px; letter-spacing: 0; font-stretch: normal; }
ul { list-style: none; display: grid; gap: 10px; margin: 18px 0; }
li { font-family: var(--font-sans); font-size: var(--text-base); line-height: 1.65; color: var(--ink-soft); padding-left: 18px; position: relative; letter-spacing: 0; }
li::before { content: ""; width: 6px; height: 6px; background: var(--accent); position: absolute; left: 0; top: 0.72em; }
.service-tags, .tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.service-tag, .tag { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.05em; padding: 4px 10px; background: var(--bg-warm); color: var(--ink-mute); border: 1px solid var(--rule); }
.service-link, .text-link { font-family: var(--font-mono); font-size: 12px; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-soft); padding-bottom: 2px; transition: border-color 0.2s; letter-spacing: 0.03em; }
.service-link:hover, .text-link:hover { border-color: var(--accent); }
.service-visual, .content-panel { background: var(--bg-warm); border: 1px solid var(--rule); padding: 28px; box-shadow: var(--shadow-md); }
.service-visual { min-height: 200px; display: flex; align-items: center; justify-content: center; }
.service-visual svg { width: 100%; max-width: 280px; height: auto; }
.content-panel { margin-bottom: 24px; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 26px 0; }
.link-card { display: block; text-decoration: none; padding: 22px; border: 1px solid var(--rule); background: var(--paper); transition: border-color 0.2s, transform 0.2s; }
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.link-card strong { display: block; font-family: var(--font-serif); font-size: var(--text-xl); font-weight: 500; line-height: 1.2; margin-bottom: 8px; letter-spacing: 0; }
.link-card span { display: block; font-family: var(--font-sans); color: var(--ink-soft); font-size: var(--text-sm); line-height: 1.55; letter-spacing: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
input, textarea, select { width: 100%; border: 1px solid var(--rule-strong); background: var(--paper); padding: 13px 14px; font: inherit; color: var(--ink); }
textarea { min-height: 150px; resize: vertical; }
.button, form button { border: 0; background: var(--accent); color: white; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; padding: 14px 18px; text-decoration: none; display: inline-flex; cursor: pointer; }
.cta { padding: 78px 0; text-align: center; }
.cta h2 { font-weight: 400; }
.cta h2 em { font-style: italic; color: var(--accent); }
.rotating-upgrade-word {
  display: inline-block;
  min-width: 0;
  background: var(--accent);
  color: var(--paper);
  padding: 0.02em 0.18em 0.08em;
  line-height: 1;
  transition: opacity 0.28s ease, transform 0.28s ease;
  will-change: opacity, transform;
}
.rotating-upgrade-word.is-changing {
  opacity: 0;
  transform: rotateX(82deg) translateY(8px);
}
.cta p { margin: 0 auto 28px; }
.cta-email { font-family: var(--font-mono); font-size: var(--text-base); color: var(--accent); text-decoration: none; border-bottom: 2px solid var(--accent-soft); padding-bottom: 4px; }
footer { padding: 46px 0; border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-mute); letter-spacing: 0.05em; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: var(--ink-mute); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
@media (max-width: 768px) {
  .container { padding: 0 22px; }
  .header-inner { align-items: center; flex-direction: row; flex-wrap: wrap; }
  .logo { min-width: 0; flex: 1; }
  .logo-ref { display: none; }
  .site-header .menu-toggle { display: inline-flex !important; }
  nav { display: none; width: 100%; gap: 0; padding-top: 16px; border-top: 1px solid var(--rule); }
  nav.is-open { display: grid; grid-template-columns: 1fr; }
  nav a { padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
  .hero { padding: 54px 0 42px; }
  h1 { font-size: 38px; }
  .service-section, .content-section { grid-template-columns: 1fr; gap: 22px; padding: 44px 0; }
  .service-section:nth-child(even) { direction: ltr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
