/* TobaSec shared design system — mirrors existing homepage visual language */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #f4efe6;
  --dark:    #ffffff;
  --dark2:   #fbf8f1;
  --dark3:   #ece6d9;
  --orange:  #c2410c;
  --orange2: #ea580c;
  --orange-text: #9a3412;
  --white:   #0d0d10;
  --ink:     #0d0d10;
  --mid:     #3f3f3c;
  --light:   #4b4b48;
  --rule:    #e2dccd;
  --shadow-1: 0 1px 2px rgba(40,30,10,.06), 0 4px 12px rgba(40,30,10,.05);
  --shadow-2: 0 2px 6px rgba(40,30,10,.07), 0 14px 30px rgba(40,30,10,.08), 0 30px 60px -20px rgba(255,90,31,.12);
  --shadow-3: 0 4px 12px rgba(40,30,10,.08), 0 30px 60px rgba(40,30,10,.12), 0 60px 120px -30px rgba(255,90,31,.18);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 600px at 85% -10%, rgba(255,122,69,.14), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(255,90,31,.08), transparent 65%),
    radial-gradient(1000px 700px at 50% 110%, rgba(255,180,120,.12), transparent 60%);
  background-attachment: fixed;
}

body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 900; opacity: .5;
  background-image:
    radial-gradient(rgba(40,30,10,.045) 1px, transparent 1.2px),
    radial-gradient(rgba(40,30,10,.025) 1px, transparent 1.2px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: multiply;
}
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 899;
  background:
    radial-gradient(closest-side at 80% 18%, rgba(255,120,60,.18), transparent 70%),
    radial-gradient(closest-side at 12% 70%, rgba(255,170,90,.14), transparent 70%);
  filter: blur(40px);
}

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 99999;
  background: var(--orange); color: #fff; padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px; font-family: 'Space Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.1em; text-decoration: none;
}
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: 2px; }

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

/* Privacy modal */
#privacy-modal {
  position: fixed; inset: 0; z-index: 9000; background: rgba(40,30,15,0.35);
  backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center;
  padding: 2rem; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
#privacy-modal.open { opacity: 1; pointer-events: all; }
#privacy-modal[hidden] { display: none !important; }
.privacy-box {
  background: #ffffff; border: 1px solid var(--rule); border-top: 3px solid var(--orange);
  border-radius: 14px; width: 100%; max-width: 660px; max-height: 80vh; overflow-y: auto;
  padding: 2.5rem; position: relative; box-shadow: var(--shadow-3);
}
.modal-close {
  position: absolute; top: 1rem; right: 1.2rem; background: none; border: none;
  color: var(--mid); font-size: 1.2rem; cursor: pointer;
}
.modal-close:hover { color: var(--ink); }
.privacy-box h2 { font-family: 'Orbitron', monospace; font-size: 1rem; color: var(--ink); margin-bottom: 0.4rem; }
.privacy-box h3 { font-family: 'Space Mono', monospace; font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange-text); margin: 1.5rem 0 0.5rem; }
.privacy-box p { font-size: 0.8rem; color: var(--mid); line-height: 1.75; margin-bottom: 0.65rem; }
.privacy-box ul { padding-left: 1.2rem; margin-bottom: 0.65rem; }
.privacy-box li { font-size: 0.8rem; color: var(--mid); line-height: 1.75; }
.privacy-date { font-family: 'Space Mono', monospace; font-size: 0.52rem; color: var(--light); margin-bottom: 1.8rem; }

/* Nav */
nav {
  position: fixed; top: 1rem; left: 1rem; right: 1rem; z-index: 500;
  padding: 0.85rem 1.35rem; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  background: rgba(255,255,255,0.72); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--shadow-1);
}
.nav-logo { display: flex; flex-direction: column; gap: 0; text-decoration: none; }
.nav-wordmark { display: flex; align-items: baseline; gap: 0; line-height: 1; }
.nav-toba { font-family: 'Orbitron', monospace; font-weight: 900; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.nav-sec { font-family: 'Orbitron', monospace; font-weight: 900; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--orange); line-height: 1; }
.nav-rule { width: 100%; height: 2px; background: var(--orange); position: relative; margin-top: 4px; }
.nav-rule::after { content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }
.nav-links { display: flex; gap: 0.85rem; list-style: none; align-items: center; margin-left: auto; margin-right: 0.65rem; }
.nav-links a {
  font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ink); font-weight: 700; text-decoration: none;
  transition: color 0.2s; position: relative;
}
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--orange); transition: width 0.25s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--orange-text); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: linear-gradient(135deg, var(--orange), var(--orange2)); border: 1px solid var(--orange);
  border-radius: 8px; padding: 0.7rem 1.1rem; text-decoration: none; transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(255,90,31,.28), inset 0 1px 0 rgba(255,255,255,.3); white-space: nowrap; font-weight: 700; flex-shrink: 0;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,90,31,.42), inset 0 1px 0 rgba(255,255,255,.3); }
.nav-toggle {
  display: none; background: #fff; border: 1px solid var(--rule); border-radius: 8px;
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  box-shadow: var(--shadow-1);
}
.nav-toggle-bars { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }

/* Page chrome */
.page-orb {
  position: fixed; top: 8%; right: -160px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd5b8, #ff8a4d 35%, #ff5a1f 60%, #c93a00 90%);
  box-shadow: 0 60px 120px -20px rgba(255,90,31,.45), inset -40px -40px 80px rgba(120,30,0,.4);
  pointer-events: none; animation: floatOrb 9s ease-in-out infinite; z-index: 0;
}
.page-orb-2 {
  position: fixed; bottom: 6%; left: -100px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff5e8, #f4d3a8 40%, #d6a169 80%);
  box-shadow: 0 30px 60px -10px rgba(180,120,50,.35);
  pointer-events: none; animation: floatOrb 11s ease-in-out -3s infinite reverse; z-index: 0;
}
@keyframes floatOrb { 0%,100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-24px) translateX(-12px); } }

.page-hero { padding: 11rem 4rem 4rem; position: relative; z-index: 2; }
.page-section { padding: 4rem 4rem 6rem; position: relative; z-index: 2; border-top: 1px solid var(--rule); }
.section-label {
  font-family: 'Space Mono', monospace; font-size: 0.85rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--orange-text); margin-bottom: 1rem;
  display: flex; align-items: center; gap: .75rem; font-weight: 700;
}
.section-label::before { content: '//'; }
.section-title {
  font-family: 'Orbitron', monospace; font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.6rem); letter-spacing: -.02em; color: var(--ink);
  line-height: 1.05; margin-bottom: 1.5rem;
  text-shadow: 0 1px 0 #fff, 0 4px 10px rgba(40,30,10,.1);
}
.section-title .accent { color: var(--orange-text); }
.section-rule { width: 60px; height: 2px; background: var(--orange); margin-bottom: 2rem; position: relative; }
.section-rule::after {
  content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 4px; background: var(--orange); border-radius: 50%;
}
.hero-desc, .section-desc {
  font-size: 1.05rem; color: var(--mid); line-height: 1.8; font-weight: 400; max-width: 640px;
}
.hero-desc strong, .section-desc strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; margin-top: 2.5rem; }

.btn-primary {
  font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #fff;
  padding: 1.05rem 2rem; text-decoration: none; font-weight: 700; border-radius: 10px; border: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(255,90,31,.32), inset 0 1px 0 rgba(255,255,255,.4);
  transition: all 0.25s cubic-bezier(.2,.8,.2,1); display: inline-block;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(255,90,31,.42), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-secondary {
  font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--mid); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.2s;
}
.btn-secondary:hover { color: var(--ink); }
.btn-secondary::after { content: '→'; transition: transform 0.2s; }
.btn-secondary:hover::after { transform: translateX(4px); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.service-card, .project-card, .video-card, .article-card, .pillar-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbf8f1 100%);
  padding: 2.2rem; position: relative; overflow: hidden;
  border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow-1);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .3s;
}
.service-card::before, .project-card::before, .video-card::before, .article-card::before, .pillar-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0;
  background: linear-gradient(180deg, var(--orange), var(--orange2)); transition: height 0.4s ease; border-radius: 2px;
}
.service-card:hover, .project-card:hover, .video-card:hover, .article-card:hover, .pillar-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-3); border-color: rgba(194,65,12,.35);
}
.service-card:hover::before, .project-card:hover::before, .video-card:hover::before,
.article-card:hover::before, .pillar-card:hover::before { height: 100%; }

.service-num, .step-num {
  font-family: 'Orbitron', monospace; font-weight: 900; font-size: 1.4rem;
  color: rgba(194,65,12,0.28); letter-spacing: 0.05em; margin-bottom: 1rem;
}
.service-title, .project-title, .video-title, .article-title, .pillar-title {
  font-family: 'Orbitron', monospace; font-weight: 700; font-size: 1.05rem;
  color: var(--ink); letter-spacing: 0.02em; margin-bottom: 0.85rem; line-height: 1.3;
}
.service-desc, .project-desc, .video-desc, .article-summary, .pillar-desc {
  font-size: 0.9rem; color: var(--mid); line-height: 1.7;
}
.service-list { margin-top: 1rem; padding-left: 1.1rem; }
.service-list li { font-size: 0.85rem; color: var(--mid); line-height: 1.65; margin-bottom: 0.35rem; }
.service-tag, .badge, .category-chip {
  display: inline-block; margin-top: 1.2rem; font-family: 'Space Mono', monospace;
  font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-text);
  background: rgba(194,65,12,.08); border: 1px solid rgba(194,65,12,0.22);
  padding: 0.35rem 0.7rem; border-radius: 999px;
}
.badge.draft { color: var(--mid); background: var(--dark3); border-color: var(--rule); }
.badge.example { color: var(--mid); background: #fff; border-color: var(--rule); }

/* Process steps */
.process-list { display: grid; gap: 0; margin-top: 2.5rem; max-width: 720px; }
.process-step {
  display: grid; grid-template-columns: 56px 1fr; gap: 1.25rem; padding: 1.35rem 0;
  border-bottom: 1px solid var(--rule); align-items: start;
}
.process-step:first-child { border-top: 1px solid var(--rule); }
.process-step h3 { font-family: 'Orbitron', monospace; font-size: 0.95rem; margin-bottom: 0.35rem; color: var(--ink); }
.process-step p { font-size: 0.88rem; color: var(--mid); line-height: 1.65; }

/* Portfolio / video */
.project-meta, .video-meta, .article-meta {
  font-family: 'Space Mono', monospace; font-size: 0.55rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--light); margin-bottom: 0.75rem;
}
.video-thumb {
  aspect-ratio: 16/9; background: var(--dark3); border: 1px solid var(--rule); border-radius: 12px;
  margin-bottom: 1.2rem; display: flex; align-items: center; justify-content: center;
  color: var(--light); font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; position: relative; overflow: hidden;
}
.video-thumb::after {
  content: ''; position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(194,65,12,.9); box-shadow: 0 8px 20px rgba(194,65,12,.35);
}
.video-card.placeholder .video-thumb::after { opacity: 0.45; }

/* Founder */
.founder-block {
  display: grid; grid-template-columns: 180px 1fr; gap: 2.5rem; align-items: center;
  background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 2rem;
  box-shadow: var(--shadow-1); margin-top: 2rem;
}
.founder-photo {
  width: 180px; height: 180px; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); flex-shrink: 0;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.founder-name { font-family: 'Orbitron', monospace; font-weight: 900; font-size: 1.4rem; margin-bottom: 0.35rem; }
.founder-role {
  font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange-text); font-weight: 700; margin-bottom: 1rem;
}
.founder-bio { font-size: 0.9rem; color: var(--mid); line-height: 1.7; }
.founder-bio strong { color: var(--ink); }

/* Forms */
.contact-form, .inquiry-form {
  display: flex; flex-direction: column; gap: 1.2rem; background: #fff; padding: 2.2rem;
  border: 1px solid var(--rule); border-radius: 18px; box-shadow: var(--shadow-2); max-width: 640px;
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label {
  font-family: 'Space Mono', monospace; font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--mid);
}
.form-input, .form-textarea, .form-select {
  background: #fbf8f1; border: 1px solid var(--rule); color: var(--ink); padding: 0.9rem 1rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; outline: none; width: 100%;
  -webkit-appearance: none; border-radius: 10px; box-shadow: inset 0 2px 4px rgba(40,30,10,.04);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--orange); background: #fff;
  box-shadow: inset 0 2px 4px rgba(40,30,10,.04), 0 0 0 3px rgba(194,65,12,.15);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit {
  font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #fff; border: none;
  padding: 1.1rem 2rem; cursor: pointer; font-weight: 700; border-radius: 10px; margin-top: 0.5rem;
  box-shadow: 0 6px 16px rgba(255,90,31,.32), inset 0 1px 0 rgba(255,255,255,.4);
}
.form-submit:hover { transform: translateY(-2px); }
.form-consent { font-size: 0.7rem; color: var(--light); line-height: 1.6; }
.inline-btn {
  color: var(--orange-text); background: none; border: none; font-family: inherit;
  font-size: inherit; cursor: pointer; padding: 0; text-decoration: underline;
}
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; margin-top: 2rem; }
.contact-desc { font-size: 0.95rem; color: var(--mid); line-height: 1.75; margin-bottom: 2rem; max-width: 420px; }

/* Pillar cards on homepage-style sections */
.pillar-card a { color: var(--orange-text); font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; display: inline-flex; margin-top: 1.25rem; }
.pillar-card a:hover { text-decoration: underline; }

/* Article list */
.article-card a { text-decoration: none; color: inherit; display: block; }
.article-card a:hover .article-title { color: var(--orange-text); }
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 2rem 0 0; }
.filter-btn {
  font-family: 'Space Mono', monospace; font-size: 0.55rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: #fff; border: 1px solid var(--rule); color: var(--mid); padding: 0.55rem 0.9rem;
  border-radius: 999px; cursor: pointer;
}
.filter-btn[aria-pressed="true"], .filter-btn:hover {
  border-color: var(--orange); color: var(--orange-text); background: rgba(194,65,12,.06);
}

/* Article body */
.article-body { max-width: 720px; }
.article-body h2 {
  font-family: 'Orbitron', monospace; font-size: 1.25rem; margin: 2.5rem 0 1rem; color: var(--ink);
}
.article-body h3 {
  font-family: 'Orbitron', monospace; font-size: 1rem; margin: 1.75rem 0 0.75rem; color: var(--ink);
}
.article-body p, .article-body li { font-size: 0.95rem; color: var(--mid); line-height: 1.8; margin-bottom: 1rem; }
.article-body ul, .article-body ol { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.draft-banner {
  background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--orange);
  border-radius: 10px; padding: 1rem 1.25rem; margin: 1.5rem 0 2rem; font-size: 0.88rem; color: var(--mid); line-height: 1.6;
}

/* CTA band */
.cta-band {
  background: linear-gradient(160deg, #ffffff 0%, #fbf6ec 100%);
  border: 1px solid var(--rule); border-radius: 18px; padding: 3rem; box-shadow: var(--shadow-2);
  margin-top: 1rem;
}
.cta-band h2 { font-family: 'Orbitron', monospace; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.cta-band p { color: var(--mid); line-height: 1.7; max-width: 520px; margin-bottom: 1.75rem; }

/* Footer */
footer {
  padding: 2rem 4rem; border-top: 1px solid var(--rule); display: flex;
  justify-content: space-between; align-items: flex-start; background: rgba(255,255,255,.5);
  backdrop-filter: blur(8px); flex-wrap: wrap; gap: 1.5rem; position: relative; z-index: 2;
}
.footer-left { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-logo { font-family: 'Orbitron', monospace; font-weight: 900; font-size: 0.9rem; color: var(--ink); }
.footer-logo span { color: var(--orange); }
.footer-entity { font-family: 'Space Mono', monospace; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--mid); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-top: 0.75rem; }
.footer-right { font-family: 'Space Mono', monospace; font-size: 0.75rem; color: var(--mid); text-align: right; line-height: 1.9; }
.footer-link {
  color: var(--mid); background: none; border: none; font-family: 'Space Mono', monospace;
  font-size: 0.75rem; cursor: pointer; padding: 0; text-decoration: underline; text-decoration-color: transparent;
}
.footer-link:hover, a.footer-link:hover { color: var(--orange-text); text-decoration-color: var(--orange-text); }
a.footer-link { text-decoration: none; }

/* Focus */
a:focus-visible, button:focus-visible, .nav-cta:focus-visible, .btn-primary:focus-visible,
.btn-secondary:focus-visible, .form-submit:focus-visible, .footer-link:focus-visible,
.inline-btn:focus-visible, .filter-btn:focus-visible, .modal-close:focus-visible,
.nav-toggle:focus-visible, .nav-links a:focus-visible, .skip-link:focus-visible,
.form-input:focus-visible, .form-textarea:focus-visible, .form-select:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 3px;
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 1000px) {
  .nav-links { gap: 1rem; }
  .contact-layout, .founder-block { grid-template-columns: 1fr; }
  .founder-photo { width: 140px; height: 140px; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border: 1px solid var(--rule);
    border-radius: 12px; padding: 0.35rem; box-shadow: var(--shadow-2);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 1rem 1.1rem; min-height: 48px; display: flex; align-items: center;
    justify-content: flex-start; text-align: left;
    font-size: 0.9rem; letter-spacing: 0.04em; opacity: 1; color: var(--ink);
    border-bottom: 1px solid var(--rule); font-weight: 700;
  }
  .nav-links a::after { display: none; }
  .nav-links li:last-child a { border-bottom: none; }
  nav { flex-wrap: wrap; gap: 0.75rem; padding: 0.9rem 1.1rem; }
  .page-hero, .page-section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .page-hero { padding-top: 8.5rem; }
  .founder-block { grid-template-columns: 1fr; justify-items: start; }
  .founder-photo { width: 140px; height: 140px; }
  footer { padding: 1.5rem 1.25rem; flex-direction: column; text-align: left; }
  .footer-right { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
}
