/* ========================================
   giorgiomonticelli.com — Design System v2
   ======================================== */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg:          #F7F7F4;
  --bg-dark:     #1D1D1B;
  --bg-alt:      #EFEFE9;
  --fg:          #1D1D1B;
  --fg-inv:      #F7F7F4;
  --accent:      #1E3A8A;
  --accentHover: #1B2F73;
  --accentLight: rgba(30, 58, 138, 0.06);
  --border:      #E6E6E0;
  --muted:       #6B6B66;
  --radius:      12px;
  --radius-lg:   20px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accentHover); }

/* ── Layout ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow {
  max-width: 1080px;
}

/* ── Label ── */
.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ========================================
   Header
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: rgba(247, 247, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.header-logo img {
  height: 18px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-cta--header {
  padding: 8px 18px;
  font-size: 13px;
  line-height: 1.2;
  border-radius: 8px;
  box-shadow: none;
}

.header-social {
  color: var(--fg);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.header-social:hover {
  color: var(--accent);
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================
   Drawer
   ======================================== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 29, 27, 0.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 300;
  transform: translateX(110%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 88px 32px 40px;
  overflow-y: auto;
}
.drawer.open { transform: translateX(0); }

.drawer-nav { list-style: none; }
.drawer-nav li { border-bottom: 1px solid var(--border); }
.drawer-nav a {
  display: block;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
  transition: color 0.2s, padding-left 0.2s;
}
.drawer-nav a:hover { color: var(--accent); padding-left: 8px; }
.drawer-cta { margin-top: 36px; }

.drawer-social {
  margin-top: 28px;
  display: flex;
  gap: 20px;
}

/* ========================================
   Hero
   ======================================== */
.hero {
  padding: 150px 0 100px;
  position: relative;
  overflow: hidden;
  background: url('/assets/hero-bg.jpg') center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(29, 29, 27, 0.85) 0%,
    rgba(29, 29, 27, 0.6) 50%,
    rgba(29, 29, 27, 0.4) 100%
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: clamp(0.75rem, 1.3vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(247, 247, 244, 0.55);
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 28px;
  max-width: 800px;
  color: var(--fg-inv);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(247, 247, 244, 0.75);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-cta--ghost {
  background: transparent;
  border: 1px solid rgba(247, 247, 244, 0.35);
  color: var(--fg-inv);
  box-shadow: none;
}

.btn-cta--ghost:hover {
  background: rgba(247, 247, 244, 0.08);
  border-color: rgba(247, 247, 244, 0.6);
  box-shadow: none;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(247, 247, 244, 0.55);
  padding-top: 24px;
  border-top: 1px solid rgba(247, 247, 244, 0.15);
  max-width: 640px;
}

/* ========================================
   Buttons
   ======================================== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 16px 36px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.15);
}

.btn-cta:hover {
  background: var(--accentHover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.2);
}

.btn-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.btn-cta:hover svg {
  transform: translateX(3px);
}

/* ── Link button (text style) ── */
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 24px;
  transition: gap 0.2s;
}

.btn-link:hover { gap: 10px; color: var(--accentHover); }

.btn-link svg {
  width: 16px;
  height: 16px;
}

.btn-link--inv { color: rgba(247, 247, 244, 0.7); }
.btn-link--inv:hover { color: var(--fg-inv); }

/* ========================================
   Sections — base
   ======================================== */
.section {
  padding: 64px 0;
}

/* Stato pre-reveal applicato solo via JS: senza script i contenuti restano visibili */
.section.reveal-pre {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

.section-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.section-body p {
  margin-bottom: 16px;
  color: var(--fg);
  font-size: 15.5px;
}

.section-body p:last-child { margin-bottom: 0; }

/* ── Section divider ── */
.section--bordered {
  border-top: 1px solid var(--border);
}

/* ── Dark section variant ── */
.section--dark {
  background: var(--bg-dark);
  color: var(--fg-inv);
}

.section--dark .section-title { color: var(--fg-inv); }
.section--dark .section-body p { color: rgba(247, 247, 244, 0.75); }
.section--dark .label { color: rgba(247, 247, 244, 0.5); }

/* ── Alt background section ── */
.section--alt {
  background: var(--bg-alt);
}

/* ========================================
   Elementi comuni delle sezioni
   ======================================== */
.section-intro {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.75;
  max-width: 720px;
  margin-bottom: 40px;
}

.section--dark .section-intro { color: rgba(247, 247, 244, 0.65); }

.section-body--lead {
  max-width: 780px;
}

.section-body--lead p {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.8;
}

.callout {
  margin-top: 36px;
  border-left: 4px solid var(--accent);
  background: var(--accentLight);
  padding: 20px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  color: var(--accent);
  max-width: 780px;
}

/* ========================================
   Problems section — numbered grid
   ======================================== */
.problems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  list-style: none;
}

.problem-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
}

.problem-card:hover {
  box-shadow: 0 8px 32px rgba(29, 29, 27, 0.08);
  transform: translateY(-2px);
}

.problem-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accentLight);
  color: var(--accent);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
}

.problem-card-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.problem-card-desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ========================================
   Competenze — griglia aree
   ======================================== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.skill-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
}

.skill-card:hover {
  box-shadow: 0 8px 32px rgba(29, 29, 27, 0.08);
  transform: translateY(-2px);
}

.skill-card-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.3;
  color: var(--accent);
}

.skill-card-desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ========================================
   Metodo — step numerati
   ======================================== */
.method-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.method-steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  counter-reset: step;
}

.method-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid rgba(247, 247, 244, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(247, 247, 244, 0.03);
}

.method-step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.method-step-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg-inv);
  margin-bottom: 8px;
  line-height: 1.3;
}

.method-step-content p {
  color: rgba(247, 247, 244, 0.7);
  font-size: 14.5px;
  line-height: 1.7;
}

.method-cta {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.method-cta-text {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg-inv);
}

/* ========================================
   AI — statement con citazione
   ======================================== */
.ai-body {
  max-width: 780px;
  border-left: 3px solid var(--accent);
  padding-left: 28px;
}

.ai-body p {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.85;
  color: var(--muted);
}

.ai-body p:last-child {
  color: var(--fg);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  margin-top: 24px;
}

/* ========================================
   Esperienza — ritratto, testo e numeri
   ======================================== */
.experience-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.experience-portrait {
  flex-shrink: 0;
  width: 280px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.experience-content {
  flex: 1;
  min-width: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat {
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}

.stat-value {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
}

.stat-label {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ========================================
   Aziende — VAY e Nexia
   ======================================== */
.companies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.company-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
}

.company-card:hover {
  box-shadow: 0 8px 32px rgba(29, 29, 27, 0.08);
  transform: translateY(-2px);
}

.company-card-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.3;
}

.company-card-desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ========================================
   FAQ — accordion accessibile
   ======================================== */
.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  list-style: none;
}

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

.faq-question h3 {
  display: inline;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
}

.faq-item[open] .faq-question::after {
  content: "\2212";
}

.faq-question:hover h3 { color: var(--accent); }

.faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-answer {
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  max-width: 720px;
}

/* ========================================
   CTA section (before footer)
   ======================================== */
.cta-section {
  text-align: center;
  padding: 64px 0;
  background: var(--accentLight);
}

.cta-section .section-title {
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--muted);
  margin-bottom: 36px;
  font-size: 15px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .section-title {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-microcopy {
  margin-top: 20px;
  margin-bottom: 0 !important;
  font-size: 13.5px;
  color: var(--muted);
}

/* ========================================
   Contact Form
   ======================================== */
.form-page {
  padding: 140px 0 100px;
}

.form-page h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.form-page .subtitle {
  color: var(--muted);
  margin-bottom: 48px;
  font-size: 15px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: stretch;
  margin-top: 8px;
}

.contact-layout form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(30, 58, 138, 0.25);
}

.contact-portrait {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.contact-aside-body {
  flex-shrink: 0;
}

.contact-aside-body {
  padding: 28px 32px 32px;
}

.contact-aside-name {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.contact-aside-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
  margin-bottom: 24px;
}

.contact-info {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.6;
}

.contact-info-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  opacity: 0.8;
}

.contact-info-item a {
  color: #fff;
  font-weight: 600;
}

.contact-info-item a:hover { color: rgba(255, 255, 255, 0.8); }

.contact-social {
  display: flex;
  gap: 18px;
  margin-top: 24px;
}

.contact-social a {
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  transition: color 0.2s, transform 0.15s;
}

.contact-social a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.contact-aside-note {
  margin-top: 24px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-layout form { padding: 28px 24px; }
  .contact-aside {
    position: static;
    order: -1;
    max-width: 480px;
  }
  .contact-portrait { height: 220px; }
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--fg);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
}

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

.form-group-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.form-group-checkbox input[type="checkbox"] { width: auto; margin-top: 4px; }
.form-group-checkbox label { font-size: 13px; font-weight: 400; color: var(--muted); }

.form-feedback {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}

.form-feedback.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.form-feedback.error {
  display: block;
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #f8bbd0;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-tagline {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 20px;
}

.footer-copy { font-size: 13px; color: var(--muted); }

.footer-links { list-style: none; display: flex; gap: 28px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }

/* ========================================
   About (Chi sono) page
   ======================================== */
.about-page { padding: 0; }

/* ── Hero band ── */
.about-hero {
  padding: 150px 0 64px;
  border-bottom: 1px solid var(--border);
}

.about-hero h1 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.about-hero .about-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.15rem);
  color: var(--muted);
  line-height: 1.75;
}

/* ── Opening: photo float + text ── */
.about-opening {
  padding: 64px 0;
}

.about-opening::after {
  content: "";
  display: table;
  clear: both;
}

.about-opening-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  line-height: 1.2;
}

.about-portrait {
  float: left;
  width: 260px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
  margin: 0 32px 20px 0;
  shape-outside: margin-box;
}


/* ── Sections ── */
.about-page .section-body p {
  margin-bottom: 24px;
}
.about-page .section-body p:last-child { margin-bottom: 0; }

.about-section .section-title {
  margin-bottom: 24px;
}

.about-section--dark {
  background: var(--bg-dark);
  color: var(--fg-inv);
}
.about-section--dark .section-title { color: var(--fg-inv); }
.about-section--dark .section-body p { color: rgba(247, 247, 244, 0.75); }

/* ── Highlight blocks ── */
.about-highlight {
  clear: both;
  border-left: 4px solid var(--accent);
  background: rgba(30, 58, 138, 0.05);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--fg);
  font-weight: 500;
}

.about-section--dark .about-highlight {
  background: rgba(147, 180, 255, 0.08);
  border-left-color: #93B4FF;
  color: #93B4FF;
}

/* ── Accent word ── */
.accent-word {
  color: var(--accent);
}

.about-section--dark .accent-word {
  color: #93B4FF;
}

/* ── Year badges ── */
.about-year-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .about-opening {
    padding: 48px 0;
  }
  .about-portrait {
    float: none;
    width: 100%;
    max-width: 280px;
    margin: 0 0 24px 0;
  }
  .about-hero {
    padding: 120px 0 48px;
  }
}

/* ========================================
   Blog
   ======================================== */
.blog-page {
  padding: 140px 0 100px;
}

.blog-page-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
  line-height: 1.15;
}

/* ── Blog list ── */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-card {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.blog-card:first-child {
  border-top: 1px solid var(--border);
}

.blog-card-date {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.blog-card-title a {
  color: var(--fg);
  transition: color 0.2s;
}

.blog-card-title a:hover {
  color: var(--accent);
}

.blog-card-excerpt {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}

.blog-card-link:hover { gap: 10px; color: var(--accentHover); }

.blog-card-link svg {
  width: 16px;
  height: 16px;
}

/* ── Blog post ── */
.blog-back {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 32px;
  transition: color 0.2s;
}

.blog-back:hover { color: var(--accent); }

.blog-post-date {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

.blog-post-title {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 40px;
}

.blog-post-body {
  margin-bottom: 48px;
}

.blog-post-body h3 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

.blog-post-body h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--accent);
}

.blog-post-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accentLight);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}

.blog-post-body blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--fg);
  margin-bottom: 0;
}

.blog-post-body ul {
  margin: 16px 0;
  padding-left: 24px;
}

.blog-post-body ul li {
  font-size: 15.5px;
  margin-bottom: 8px;
  color: var(--fg);
}

.blog-post-footer {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ========================================
   Privacy & Error pages
   ======================================== */
.privacy-page { padding: 140px 0 100px; }
.privacy-page h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.privacy-page h2 { font-size: 1.15rem; font-weight: 700; margin: 36px 0 12px; }
.privacy-page p { margin-bottom: 12px; font-size: 15px; }

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
}
.error-page h1 { font-size: 6rem; font-weight: 900; margin-bottom: 12px; color: var(--accent); letter-spacing: -0.04em; }
.error-page p { color: var(--muted); margin-bottom: 32px; }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .hero { padding: 120px 0 64px; background-position: 75% center; }
  .section { padding: 48px 0; }
  .drawer { width: 100%; }

  .hero-actions .btn-cta {
    width: 100%;
    justify-content: center;
  }

  .problems-grid,
  .skills-grid,
  .method-steps,
  .companies-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .experience-layout {
    flex-direction: column;
    gap: 28px;
  }
  .experience-portrait {
    width: 100%;
    max-width: 320px;
    height: auto;
  }

  .method-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-body { padding-left: 20px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-links { justify-content: center; }
  .footer-tagline { text-align: center; }

  .cta-section { padding: 48px 0; }
}

@media (max-width: 400px) {
  .container { padding: 0 20px; }
  .header-inner { padding: 0 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .method-step { padding: 22px; }
  .skill-card, .problem-card { padding: 24px; }
  .company-card { padding: 26px; }
}
