/* =============================================================
   KaliTech — kalitech.mr
   Design system: "Engineered paper" — warm neutrals, deep ink,
   terracotta clay accent. IBM Plex family. No gradients anywhere.
   No emoji.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=IBM+Plex+Serif:ital,wght@0,400;0,500;0,600;1,400;1,500&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* Ink */
  --ink-950: #0B0E22;
  --ink-900: #11163A;
  --ink-800: #1A2050;
  --ink-700: #262E68;
  --ink-600: #3A4486;

  /* Paper */
  --paper-50:  #F7F8F8;
  --paper-100: #EEEFEF;
  --paper-200: #E1E2E2;
  --paper-300: #CECFCF;

  /* Clay (terracotta accent) */
  --clay-100: #F4DDD2;
  --clay-300: #DA9A85;
  --clay-500: #B85436;
  --clay-700: #7E351F;

  /* Indigo→Teal — KT mark only */
  --indigo-500: #2436A8;
  --indigo-700: #181F66;
  --teal-300:   #79E5D2;
  --teal-500:   #2AB7A2;
  --teal-700:   #146B5F;

  /* Warm neutrals */
  --warm-300: #B6AE96;
  --warm-400: #8A8470;
  --warm-500: #5F5A4B;

  /* States */
  --success: #3F8462;
  --warning: #B8853A;
  --danger:  #B0472D;

  /* Semantic surfaces */
  --bg:         var(--paper-50);
  --bg-raised:  #FFFFFF;
  --bg-sunken:  var(--paper-100);
  --bg-inverse: var(--ink-900);
  --bg-tint:    var(--paper-200);

  /* Foreground */
  --fg:         var(--ink-900);
  --fg-strong:  var(--ink-950);
  --fg-muted:   var(--warm-500);
  --fg-subtle:  var(--warm-400);
  --fg-on-ink:  var(--paper-50);

  /* Accent (clay) */
  --accent:        var(--clay-500);
  --accent-strong: var(--clay-700);
  --accent-soft:   var(--clay-100);
  --accent-fg:     var(--paper-50);

  /* Lines */
  --line:        var(--paper-300);
  --line-strong: var(--warm-300);
  --line-on-ink: rgba(246, 241, 231, 0.14);

  /* Fonts */
  --font-sans:    'IBM Plex Sans', system-ui, sans-serif;
  --font-serif:   'IBM Plex Serif', Georgia, serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing */
  --space-1:  4px;  --space-2:  8px;   --space-3:  12px; --space-4:  16px;
  --space-5:  20px; --space-6:  24px;  --space-8:  32px; --space-10: 40px;
  --space-12: 56px; --space-16: 72px;  --space-20: 96px; --space-24: 128px;

  /* Radii */
  --radius-sm:  6px;  --radius-md: 10px; --radius-lg: 14px;
  --radius-xl:  20px; --radius-2xl: 28px; --radius-pill: 999px;

  /* Shadows — warm */
  --shadow-xs: 0 1px 2px rgba(20, 16, 8, 0.06);
  --shadow-sm: 0 2px 6px rgba(20, 16, 8, 0.06), 0 1px 2px rgba(20, 16, 8, 0.04);
  --shadow-md: 0 8px 22px -8px rgba(20, 16, 8, 0.14), 0 2px 6px rgba(20, 16, 8, 0.05);
  --shadow-lg: 0 24px 40px -16px rgba(20, 16, 8, 0.18), 0 6px 12px rgba(20, 16, 8, 0.06);

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-emph:     cubic-bezier(0.4, 0, 0.1, 1);
  --dur-quick: 140ms;
  --dur-base:  220ms;
  --dur-slow:  420ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; }
a { color: inherit; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv05", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--fg-strong);
  text-wrap: balance;
  margin: 0;
}

p { text-wrap: pretty; margin: 0; }

::selection { background: var(--ink-900); color: var(--paper-50); }

/* ---------- Utility primitives ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.eyebrow.on-ink { color: var(--teal-300); }

.divider {
  height: 1px;
  background: var(--line);
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-quick) var(--ease-standard),
              transform var(--dur-quick),
              box-shadow var(--dur-quick) var(--ease-standard);
  text-decoration: none;
}
.btn-label-short { display: none; }
.btn:active { transform: translateY(1px); }
.btn-sm { font-size: 13px; padding: 7px 14px; border-radius: 8px; }
.btn-md { font-size: 15px; padding: 11px 22px; border-radius: 10px; }
.btn-lg { font-size: 16px; padding: 14px 26px; border-radius: 12px; }

.btn-primary {
  background: var(--ink-900);
  color: var(--paper-50);
}
.btn-primary:hover { background: var(--ink-800); }

.btn-clay {
  background: var(--clay-500);
  color: var(--paper-50);
}
.btn-clay:hover { background: var(--clay-700); }

.btn-ghost {
  background: transparent;
  color: var(--fg-strong);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg-raised); border-color: var(--line-strong); }

.btn-light {
  background: var(--paper-100);
  color: var(--fg-strong);
}
.btn-light:hover { background: var(--paper-200); }

.btn .icon-arrow { transition: transform var(--dur-quick) var(--ease-standard); }
.btn:hover .icon-arrow { transform: translateX(3px); }

/* ---------- Tags ---------- */
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tag-neutral { background: var(--paper-100); color: var(--fg-strong); }
.tag-clay    { background: var(--clay-100); color: var(--clay-700); }
.tag-ink     { background: rgba(246,241,231,0.08); color: rgba(246,241,231,0.78); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 248, 248, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  text-decoration: none;
}
.brand-lockup img { height: 26px; width: auto; }

.site-header nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.site-header nav a {
  color: var(--fg-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--dur-quick) var(--ease-standard);
}
.site-header nav a:hover { color: var(--fg-strong); }

/* ---------- Hero ---------- */
.hero {
  padding-top: 120px;
  padding-bottom: 96px;
  position: relative;
}
.hero-slogan {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 28px;
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-slogan span {
  color: var(--fg-strong);
  font-weight: 500;
}
.hero-slogan .clay-dot {
  color: var(--clay-500);
  margin-left: 0;
}
.hero h1 {
  font-size: 76px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  max-width: 920px;
  font-weight: 600;
  color: var(--fg-strong);
}
.hero h1 .clay-dot { color: var(--clay-500); }

.hero-lede {
  font-size: 21px;
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 0 36px;
}
.hero-cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.trust-row {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 13.5px;
  color: var(--fg-muted);
}
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-success { background: var(--success); }
.dot-clay    { background: var(--clay-500); }
.dot-ink     { background: var(--ink-700); }

/* ---------- Section ---------- */
.section {
  padding-top: 96px;
  padding-bottom: 96px;
}
.section-title {
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  font-weight: 600;
}

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.service-card {
  background: var(--bg-raised);
  color: var(--fg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
  transition: background var(--dur-base) var(--ease-standard);
  position: relative;
}
.service-card:hover { background: var(--paper-50); }

.service-card h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--fg-strong);
}
.service-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin: 0;
}

.service-card.featured {
  background: var(--ink-900);
  color: var(--paper-50);
}
.service-card.featured:hover { background: var(--ink-800); }
.service-card.featured h3 { color: var(--paper-50); }
.service-card.featured p { color: #D8D1BE; }
.service-card.featured::after {
  content: "";
  position: absolute;
  top: 24px; right: 24px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal-300);
}

/* ---------- Applied AI (matches paper-section rhythm) ---------- */
.ai-section { background: var(--bg-sunken); }
.ai-section .section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--clay-500);
  letter-spacing: -0.01em;
}
.ai-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.ai-head .section-title { margin: 0; max-width: 620px; }
.ai-claim {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
  max-width: 360px;
  text-align: right;
}

/* Deliverables — same grid pattern as services */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.ai-card {
  background: var(--bg-raised);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
  transition: background var(--dur-base) var(--ease-standard);
}
.ai-card:hover { background: var(--paper-50); }
.ai-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--clay-500);
  font-weight: 500;
}
.ai-card h3 {
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--fg-strong);
  margin: 0;
  font-weight: 600;
}
.ai-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-muted);
  margin: 0;
}

/* Disclaimer */
.ai-disclaimer {
  margin: 28px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: 620px;
}
.ai-disclaimer .clay-dot {
  color: var(--clay-500);
  font-weight: 700;
  font-style: normal;
  margin-right: 4px;
}

.schematic-frame {
  background: var(--ink-950);
  border: 1px solid rgba(246,246,243,0.10);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
/* Decorative corner accents — flat, no gradient. */
.schematic-frame::before,
.schematic-frame::after {
  content: "";
  position: absolute;
  width: 24px; height: 24px;
  border: 1px solid rgba(246,241,231,0.18);
  pointer-events: none;
}
.schematic-frame::before {
  top: 16px; left: 16px;
  border-right: 0; border-bottom: 0;
}
.schematic-frame::after {
  bottom: 16px; right: 16px;
  border-left: 0; border-top: 0;
}
.schematic-frame > * { position: relative; z-index: 1; }
.schematic-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246,246,243,0.62);
}

.schematic-pipeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.schematic-row {
  background: rgba(11,14,34,0.5);
  border: 1px solid rgba(246,241,231,0.18);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  font-size: 15px;
  color: #FBF8F1;
}
.schematic-row .left {
  display: flex;
  gap: 12px;
  align-items: center;
}
.schematic-row .index {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(121,229,210,0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--teal-300);
}

/* ---------- Founder ---------- */
.founder {
  background: var(--paper-100);
}
.founder .container {
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 56px;
  align-items: start;
}
.founder-portrait {
  aspect-ratio: 1/1.18;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink-900);
  position: relative;
  margin: 0;
}
.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
  display: block;
  filter: saturate(0.94) contrast(1.04);
}
.founder-portrait figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-50);
  background: rgba(11, 14, 34, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 6px;
}
.founder-body h2 {
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 8px 0 18px;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.founder-body > p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0 0 22px;
  max-width: 580px;
}
.founder-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.founder-links {
  display: flex;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.founder-links a {
  text-decoration: none;
  color: inherit;
  transition: color var(--dur-quick) var(--ease-standard);
}
.founder-links a:hover { color: var(--accent); }

/* ---------- Closing CTA ---------- */
.closing-cta {
  padding: 96px 0 120px;
  text-align: center;
}
.closing-cta h2 {
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 600;
}
.closing-cta p {
  font-size: 17px;
  color: var(--fg-muted);
  margin: 0 0 28px;
}
.closing-cta .btn { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-950);
  color: var(--paper-50);
}
.site-footer .container {
  padding-top: 56px;
  padding-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-brand .lockup {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.footer-brand .lockup img { height: 26px; width: auto; }
.footer-brand p {
  font-size: 13.5px;
  color: #B6AE96;
  margin-top: 10px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: #D8D1BE;
}
.footer-contact a {
  color: var(--paper-50);
  text-decoration: none;
  transition: color var(--dur-quick) var(--ease-standard);
}
.footer-contact a:hover { color: var(--teal-300); }

.footer-bottom {
  border-top: 1px solid rgba(246,241,231,0.14);
}
.footer-bottom .container {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(246,241,231,0.5);
  letter-spacing: 0.04em;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(11,14,34,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadein var(--dur-base) var(--ease-standard);
}
.modal-backdrop.open { display: flex; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-raised);
  border-radius: 20px;
  padding: 32px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: pop var(--dur-base) var(--ease-emph);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--fg-muted);
  padding: 6px;
  transition: color var(--dur-quick) var(--ease-standard);
}
.modal-close:hover { color: var(--fg-strong); }
.modal h3 {
  font-size: 26px;
  letter-spacing: -0.018em;
  margin: 8px 0 8px;
  color: var(--fg-strong);
}
.modal-sub {
  font-size: 15px;
  color: var(--fg-muted);
  margin: 0 0 22px;
  line-height: 1.55;
}

/* Contact cards (replace the form) */
.contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--paper-100);
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background var(--dur-quick) var(--ease-standard),
              border-color var(--dur-quick) var(--ease-standard);
}
.contact-card:hover {
  background: var(--bg-raised);
  border-color: var(--line-strong);
}
.contact-card:active { transform: translateY(1px); }
.contact-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ink-900);
  color: var(--paper-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.contact-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.contact-card-value {
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--fg-strong);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
}
.contact-card-cta .cta-default,
.contact-card-cta .cta-done {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity var(--dur-quick) var(--ease-standard);
}
.contact-card-cta .cta-done {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  color: var(--success);
}
.contact-card.copied .cta-default { opacity: 0; }
.contact-card.copied .cta-done    { opacity: 1; }
.contact-card.copied {
  background: var(--bg-raised);
  border-color: var(--success);
}

.contact-meta {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-meta > div {
  display: flex;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fg-muted);
  flex-wrap: wrap;
}
.contact-meta-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  flex-shrink: 0;
  min-width: 88px;
}
.contact-meta-value {
  flex: 1;
  min-width: 0;
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-emph),
              transform var(--dur-slow) var(--ease-emph);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero h1 { font-size: 64px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .container { padding-left: var(--space-6); padding-right: var(--space-6); }
  .site-header nav { display: none; }
  .hero { padding-top: 64px; padding-bottom: 64px; }
  .hero h1 { font-size: 48px; }
  .hero-lede { font-size: 18px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-title { font-size: 28px; margin-bottom: 28px; }
  .ai-head { flex-direction: column; gap: 14px; align-items: flex-start; }
  .ai-claim { text-align: left; max-width: 100%; }
  .founder .container { grid-template-columns: 1fr; gap: 32px; padding-top: 64px; padding-bottom: 64px; }
  .founder-portrait { max-width: 280px; }
  .founder-body h2 { font-size: 26px; }
  .closing-cta { padding: 64px 0 88px; }
  .closing-cta h2 { font-size: 32px; }
  .trust-row { gap: 12px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
}

/* Phone — main breakpoint for 375–540 */
@media (max-width: 540px) {
  .container { padding-left: var(--space-4); padding-right: var(--space-4); }
  .site-header .container { gap: var(--space-3); }
  .brand-lockup span { font-size: 17px; }
  .brand-lockup img { height: 22px; }

  /* Header CTA: shorter copy on narrow phones */
  .site-header .btn {
    padding: 7px 12px;
    font-size: 12.5px;
  }
  .site-header .btn .btn-label-long { display: none; }
  .site-header .btn .btn-label-short { display: inline; }
  .site-header .btn .icon-arrow { width: 12px; height: 12px; }

  .hero { padding-top: 48px; padding-bottom: 48px; }
  .hero-slogan {
    font-size: 11px; letter-spacing: 0.14em; gap: 10px; margin-bottom: 20px;
  }
  .hero h1 {
    font-size: 34px; line-height: 1.06; letter-spacing: -0.02em;
    margin-bottom: 16px;
    overflow-wrap: break-word;
  }
  .hero h1 br { display: none; }
  .hero-lede { font-size: 16px; margin-bottom: 28px; }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
  }
  .trust-row { margin-top: 40px; padding-top: 18px; font-size: 12.5px; }

  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-title { font-size: 24px; margin-bottom: 22px; }
  .service-card { padding: 22px 18px; min-height: 0; }
  .service-card h3 { font-size: 17px; }
  .service-card p { font-size: 13.5px; }

  .ai-head { margin-bottom: 24px; }
  .ai-section .section-title { font-size: 26px; }
  .ai-card { padding: 22px 18px; min-height: 0; }
  .ai-card h3 { font-size: 18px; }
  .ai-card p { font-size: 13.5px; }
  .ai-disclaimer { font-size: 14.5px; }

  .founder .container { padding-top: 56px; padding-bottom: 56px; }
  .founder-portrait { max-width: 100%; aspect-ratio: 4/5; }
  .founder-portrait img { object-position: 60% 35%; }
  .founder-body h2 { font-size: 22px; }
  .founder-body > p { font-size: 15px; }
  .founder-tags { gap: 6px; }
  .tag { font-size: 10.5px; padding: 4px 9px; }
  .founder-links { font-size: 11.5px; gap: 10px; }

  .closing-cta { padding: 48px 0 64px; }
  .closing-cta h2 { font-size: 26px; }
  .closing-cta p { font-size: 15px; }
  .closing-cta .btn { width: 100%; justify-content: center; }

  .site-footer .container {
    flex-direction: column; gap: 24px; padding: 48px var(--space-4) 24px;
  }
  .footer-contact { font-size: 13px; }
  .footer-bottom .container { font-size: 10.5px; padding: 14px var(--space-4); }

  /* Modal */
  .modal { padding: 24px 20px; max-height: calc(100vh - 32px); overflow-y: auto; }
  .modal h3 { font-size: 22px; }
  .contact-card { padding: 12px 14px; gap: 12px; }
  .contact-card-icon { width: 36px; height: 36px; }
  .contact-card-value { font-size: 13px; }
  .contact-card-cta { font-size: 12px; }
  .contact-meta-label { min-width: 70px; font-size: 10px; }
  .contact-meta > div { font-size: 12px; gap: 6px; }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 32px; }
  .section-title { font-size: 22px; }
  .closing-cta h2 { font-size: 24px; }
}

/* Prevent horizontal scroll across the whole document */
html, body { overflow-x: hidden; }
