/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Design Tokens */
:root {
  /* Light Mode (Engineering Blueprint) */
  --bg: #f0f0ec;
  --bg-alt: #e8e8e4;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #1a1a1a;
  --muted: #4a4a48;
  --muted-strong: #3a3a38;
  --border: rgba(26, 26, 26, 0.15);
  --accent: #ff6b57;
  --accent-soft: rgba(255, 107, 87, 0.1);
  --success: #4b7a5c;
  --danger: #ae5148;
  --shadow: 0 4px 20px rgba(26, 26, 26, 0.1);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --content-width: 1100px;
  --nav-height: 72px;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* Dark Mode (Cinematic Night) - Default */
body {
  --bg: #181716;
  --bg-alt: #121110;
  --surface: rgba(40, 39, 38, 0.7);
  --surface-strong: rgba(40, 39, 38, 0.9);
  --text: #e5e5e5;
  --muted: #a0a0a0;
  --muted-strong: #c0c0c0;
  --border: rgba(229, 229, 229, 0.12);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Light Mode Class */
body.light-mode {
  --bg: #f0f0ec;
  --bg-alt: #e8e8e4;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --text: #1a1a1a;
  --muted: #4a4a48;
  --muted-strong: #3a3a38;
  --border: rgba(26, 26, 26, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Watermark / Grid */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 80% 20%, var(--accent-soft) 0%, transparent 50%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.mono {
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

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

/* Skip Link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--accent);
  color: white;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  z-index: 1001;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* Container */
.container {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
}

/* Utility Classes */
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.my-16 { margin: 16px 0; }
.mb-24 { margin-bottom: 24px; }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '::';
  color: var(--accent);
  font-weight: 400;
}

/* Section */
.section {
  padding: 100px 0;
  scroll-margin-top: 80px;
}

.section-tight {
  padding: 40px 0;
  scroll-margin-top: 80px;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-hero {
  padding: 100px 0 30px;
}

.about-hero-layout {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  gap: 12px;
}

.about-hero-text {
  flex: 1;
}

.about-hero-portrait {
  flex-shrink: 0;
}

.about-portrait {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--accent);
}

/* Surface Panel */
.surface-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  isolation: isolate;
}

/* Card */
.card {
  background: transparent;
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding: 20px 0 20px 24px;
  box-shadow: none;
  transition: border-color 0.25s ease;
}

.card:hover {
  border-left-color: var(--accent);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.card p {
  color: var(--muted);
}

/* Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  justify-content: flex-start;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'Inter', Arial, sans-serif;
  white-space: nowrap;
  max-width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #1a1a1a;
  border-color: #1a1a1a;
  box-shadow: 4px 4px 0 0 #1a1a1a;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 #1a1a1a;
}

body.light-mode .btn-primary {
  border-color: #1a1a1a;
  box-shadow: 4px 4px 0 0 #1a1a1a;
}

.btn-secondary {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: 2px 2px 0 0 var(--border);
}

.btn-secondary:hover {
  border-color: var(--text);
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 0 var(--text);
}

body.light-mode .btn-secondary {
  background: var(--surface);
  box-shadow: 2px 2px 0 0 var(--border);
}

body.light-mode .btn-secondary:hover {
  box-shadow: 3px 3px 0 0 var(--text);
}

.btn-ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.88rem;
  min-height: 40px;
  padding: 0 16px;
}

.btn-ghost:hover {
  border-color: var(--text);
  color: var(--text);
}

/* Chips & Tags */
.chip-row, .tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip, .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-strong);
  font-family: var(--mono);
  font-size: 0.82rem;
}

/* Navbar */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 999;
  min-height: var(--nav-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.is-scrolled {
  background: var(--surface-strong);
  border-color: var(--border);
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  gap: 20px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.15rem;
}

.brand-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--muted-strong);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  content: "";
}

.nav-toggle-bars::before {
  transform: translateY(-6px);
}

.nav-toggle-bars::after {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(0) rotate(-45deg);
}

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--text);
  transform: scale(1.05);
}

.theme-toggle-desktop {
    display: inline-flex;
}

.theme-toggle-mobile {
    display: none;
}

.theme-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

body.light-mode .theme-icon {
    transform: scaleX(-1);
}

.btn-small {
    min-height: 40px;
    padding: 0 20px;
    font-size: 0.9rem;
}

/* Hero */
.hero {
  padding: 160px 0 30px;
}

.scroll-cue {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  font-size: 1.5rem;
  color: var(--accent);
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding: 60px 50px;
}

.hero-copy h1 {
  margin: 0 0 20px;
}

.hero-copy h1 span {
  color: var(--accent);
}

.hero-copy .lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 700px;
}

/* Typing Animation */
.typing-line {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--muted-strong);
  min-height: 2em;
}

.typing-text {
  color: var(--accent);
  border-right: 2px solid var(--accent);
  padding-right: 4px;
  animation: blink-cursor 0.8s step-end infinite;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes blink-cursor {
  0%, 100% { border-color: var(--accent); }
  50% { border-color: transparent; }
}

/* Project Cards */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.project-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-media img {
  opacity: 1;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.project-badge {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted-strong);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.project-badge.badge-school {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--muted-strong);
}

.project-badge.badge-freelance {
  border-color: rgba(255, 107, 87, 0.4);
  color: var(--accent);
}

.project-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.project-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  align-items: center;
}

.project-value, .service-value {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.project-value::before, .service-value::before {
  content: '→';
  flex-shrink: 0;
  font-family: var(--mono);
}

/* Feature Cards */
.feature-card .icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 16px;
  font-size: 1.15rem;
}

/* Split Panel */
.split-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}

/* Info & Check Lists */
.info-list, .check-list {
  display: grid;
  gap: 14px;
}

.info-list li, .check-list li {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted-strong);
}

.info-list li::before, .check-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex: 0 0 auto;
}

/* Stats Strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 32px 0;
}

.stat-item {
  text-align: center;
  padding: 0 12px;
  border-left: 1px solid var(--border);
}

.stat-item:first-child {
  border-left: none;
}

.stat-number {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Skills */
.skills-layout {
  display: grid;
  gap: 24px;
}

.skill-cluster h3 {
  margin-bottom: 14px;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 22px;
  margin-top: 6px;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 16px;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 18px;
  bottom: -22px;
  width: 1px;
  background: var(--border);
}

.timeline-marker {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: none;
}

.timeline-label {
  display: block;
  color: var(--muted-strong);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.timeline-content p {
  color: var(--muted);
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.process-step {
  padding: 0 0 0 22px;
  border: none;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: none;
  transition: border-left-color 0.25s ease;
}

.process-step:hover {
  border-left-color: var(--accent);
}

.process-number {
  display: block;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* Proof List */
.proof-list {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.proof-list li {
  list-style: none;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.proof-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.proof-list li strong {
  color: var(--muted-strong);
}

/* CTA Panel */
.cta-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 32px;
}

.cta-title {
  margin: 12px 0 8px;
}

.cta-panel p {
  color: var(--muted);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.contact-social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-link {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 1.3rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.social-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-family: var(--mono);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.required-star {
  color: var(--danger);
}

.error-message {
  color: var(--danger);
  font-size: 0.85rem;
  min-height: 1.2em;
}

.form-status {
  min-height: 1.5em;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--danger);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0;
}

.faq-item {
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
  transition: color 0.2s ease;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.25s ease, border-color 0.25s ease;
  margin-top: -4px;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--accent);
  margin-top: 4px;
}

.faq-item[open] summary {
  color: var(--accent);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item[open] .faq-body {
  grid-template-rows: 1fr;
}

.faq-body-inner {
  overflow: hidden;
  padding: 0;
  transition: padding 0.3s ease;
}

.faq-item[open] .faq-body-inner {
  padding: 0 0 20px;
}

.faq-body-inner p {
  color: var(--muted);
}

.link-accent {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Footer */
.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  text-align: center;
  color: var(--muted);
}

/* Progress Bar */
.progress-bar {
  position: fixed;
  inset: 0 auto auto 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 1002;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-3, .project-grid, .split-panel, .process-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
    .theme-toggle-desktop {
        display: none;
    }

    .theme-toggle-mobile {
        display: inline-flex;
    }

    .about-hero-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-portrait {
        width: 200px;
        height: 200px;
    }

    .btn-row {
        width: 100%;
        justify-content: center;
    }

    .btn {
        flex: 1;
        min-width: 0;
        padding: 0 16px;
        font-size: 0.88rem;
    }

    .btn.btn-small {
        flex: 0 1 auto;
        padding: 0 18px;
        min-height: 38px;
        font-size: 0.85rem;
    }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 24px;
    width: min(140px, calc(100% - 48px));
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav-menu.active {
    display: flex;
  }

  .hero {
    padding: 100px 0 50px;
  }

  .scroll-cue {
    font-size: 1.25rem;
    padding: 15px 0;
  }

  .hero-panel {
    padding: 40px 24px;
  }

  .cta-panel, .stats-strip, .form-grid, .grid-2, .grid-3, .project-grid, .split-panel, .process-steps {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
  }

  .stat-item {
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 16px 0 0;
  }

  .stat-item:first-child {
    border-top: none;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 70px 0;
  }

  .section-tight {
    padding: 30px 0;
  }

  .container {
    width: min(var(--content-width), calc(100% - 32px));
  }

  .card {
    padding-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-cue {
    animation: none;
  }
}
