/* Sofia Grandoni Portfolio — Warm, Energetic, People-First */

:root {
  --terracotta: #C75B3A;
  --terracotta-light: #E8845F;
  --amber: #D4943A;
  --cream: #FDFAF6;
  --warm-white: #FFF9F2;
  --sand: #F3EDE4;
  --charcoal: #2B2B2B;
  --charcoal-soft: #4A4A4A;
  --muted: #7A7168;
  --border: #E8E0D6;
  --font-main: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'DM Serif Display', Georgia, serif;
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.65;
  font-size: 16px;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* === NAV === */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(253, 250, 246, 0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  padding: 18px 0; transition: all var(--transition);
}
nav.scrolled { border-bottom-color: var(--border); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { font-family: var(--font-display); font-size: 1.2rem; color: var(--charcoal); text-decoration: none; }
.logo span { color: var(--terracotta); }
.nav-links { list-style: none; display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--charcoal-soft); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--terracotta); }
.lang-switch { display: flex; align-items: center; gap: 7px; background: var(--sand); padding: 6px 14px; border-radius: 8px; font-size: 0.82rem; }
.lang-switch .lang-current { font-weight: 700; color: var(--terracotta); }
.lang-switch .lang-sep { color: var(--muted); }
.lang-switch .lang-link { color: var(--charcoal-soft); text-decoration: none; font-weight: 500; transition: color var(--transition); }
.lang-switch .lang-link:hover { color: var(--terracotta); text-decoration: underline; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--charcoal); transition: all var(--transition); border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 140px 24px 100px; background: var(--cream);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -80px; right: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 91, 58, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: 60px; left: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  border: 1.5px solid rgba(199, 91, 58, 0.12);
  pointer-events: none;
}
.hero-intro {
  font-size: 1rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--terracotta); margin-bottom: 12px;
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-meta { font-size: 0.9rem; color: var(--charcoal-soft); font-weight: 500; margin-bottom: 24px; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: var(--charcoal); line-height: 1.15; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--terracotta); }
.hero-hook {
  font-family: var(--font-display); font-style: italic; font-size: 1.35rem;
  color: var(--terracotta); margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.1rem; color: var(--charcoal-soft); max-width: 620px;
  line-height: 1.75; margin-bottom: 48px;
}
.hero-proof {
  display: flex; gap: 40px; margin-bottom: 48px; flex-wrap: wrap;
}
.proof-item { display: flex; flex-direction: column; }
.proof-number { font-family: var(--font-display); font-size: 2rem; color: var(--terracotta); }
.proof-flagship .proof-number { font-size: 2.8rem; }
.proof-flagship .proof-label { color: var(--charcoal-soft); font-weight: 600; }
.proof-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cv-link {
  display: inline-block; font-size: 0.88rem; font-weight: 600; color: var(--charcoal-soft);
  text-decoration: underline; text-underline-offset: 3px; transition: color var(--transition);
}
.cv-link:hover { color: var(--terracotta); }
.hero-photo { display: flex; justify-content: center; }
.photo-frame {
  position: relative; width: 240px; height: 240px; border-radius: 50%;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--amber) 100%);
  box-shadow: 0 20px 50px rgba(199, 91, 58, 0.22);
}
.photo-monogram { font-family: var(--font-display); font-size: 4rem; color: white; }
.photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* === BUTTONS === */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: all var(--transition); cursor: pointer;
}
.btn-primary { background: var(--terracotta); color: white; }
.btn-primary:hover { background: var(--terracotta-light); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--charcoal); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* === SECTIONS === */
.section { padding: 100px 0; }
.section-warm { background: var(--warm-white); }
.section-label {
  font-family: var(--font-display); font-size: 2.2rem;
  color: var(--charcoal); margin-bottom: 16px;
}
.section-intro { color: var(--muted); font-size: 1rem; max-width: 600px; margin-bottom: 56px; }

/* === PROJECTS === */
.project.signature {
  background: white; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 48px; margin-bottom: 32px; transition: all var(--transition);
}
.project.signature:hover {
  box-shadow: 0 16px 48px rgba(199, 91, 58, 0.08);
  border-color: var(--terracotta);
}
.project-tag {
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--terracotta); margin-bottom: 12px; display: block;
}
.project-header h3 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 8px; }
.project-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0; }
.project-tldr {
  font-size: 1rem; font-weight: 600; color: var(--charcoal);
  background: var(--sand); padding: 14px 18px; border-radius: 10px;
  border-left: 3px solid var(--terracotta); margin: 20px 0 28px;
}
.project-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.project-narrative h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--terracotta); margin: 20px 0 8px; font-weight: 600; }
.project-narrative h4:first-child { margin-top: 0; }
.project-narrative p { font-size: 0.92rem; color: var(--charcoal-soft); }
.project-results { background: var(--sand); border-radius: 12px; padding: 24px; align-self: start; }
.project-results h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--charcoal); margin-bottom: 16px; font-weight: 600; }
.project-results ul { list-style: none; }
.project-results li { padding: 8px 0; font-size: 0.88rem; border-bottom: 1px solid var(--border); }
.project-results li:last-child { border-bottom: none; }
.project-results li strong { color: var(--terracotta); }

/* More Work */
.more-work-label { font-family: var(--font-display); font-size: 1.4rem; margin: 64px 0 24px; color: var(--charcoal); }
.projects-compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.compact-card {
  background: white; border: 1px solid var(--border); border-radius: 12px;
  padding: 28px; transition: all var(--transition);
}
.compact-card:hover { border-color: var(--terracotta); }
.compact-card h4 { font-family: var(--font-display); font-size: 1.1rem; margin: 8px 0 12px; }
.compact-card p { font-size: 0.85rem; color: var(--charcoal-soft); margin-bottom: 16px; }
.compact-metric { font-size: 0.78rem; color: var(--terracotta); font-weight: 600; display: block; }

/* === ABOUT === */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.about-narrative p { margin-bottom: 16px; font-size: 0.95rem; }
.about-lead { font-size: 1.1rem; color: var(--charcoal); font-weight: 500; }
.about-personal { font-size: 0.88rem; color: var(--muted); font-style: italic; margin-top: 24px; }
.detail-block { margin-bottom: 28px; }
.detail-block h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--terracotta); margin-bottom: 12px; font-weight: 600; }
.detail-block p { font-size: 0.9rem; margin-bottom: 4px; }

/* Career Arc */
.career-arc { display: flex; flex-direction: column; gap: 16px; }
.arc-step { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.arc-num { font-family: var(--font-display); font-size: 1.1rem; color: var(--terracotta); min-width: 24px; }
.arc-step span { font-weight: 600; font-size: 0.92rem; }
.arc-step small { width: 100%; padding-left: 36px; font-size: 0.82rem; color: var(--muted); }

/* === TOOLS === */
.section-tools {
  background: var(--sand);
  position: relative;
}
.section-tools::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(199, 91, 58, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-group { background: white; border-radius: 12px; padding: 24px; }
.tool-group h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--terracotta); margin-bottom: 8px; font-weight: 600; }
.tool-group p { font-size: 0.88rem; color: var(--charcoal-soft); }

/* === VOICES === */
.section-voices { background: var(--charcoal); }
.section-voices .section-label { color: white; }
.voices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.voice-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 32px; position: relative;
}
.voice-card::before {
  content: '\201C'; position: absolute; top: 16px; left: 24px;
  font-family: var(--font-display); font-size: 4rem; line-height: 1;
  color: rgba(232, 132, 95, 0.25); pointer-events: none;
}
.voice-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--terracotta);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; margin-bottom: 16px; position: relative; z-index: 1;
}
.voice-card p { font-size: 0.92rem; color: rgba(255,255,255,0.9); font-style: italic; line-height: 1.7; margin-bottom: 16px; }
.voice-card cite { font-size: 0.78rem; color: var(--terracotta-light); font-style: normal; font-weight: 500; }

/* === CTA === */
.section-cta { background: var(--warm-white); text-align: center; padding: 120px 0; }
.cta-content h2 { font-family: var(--font-display); font-size: 2.4rem; margin-bottom: 16px; }
.cta-content p { font-size: 1rem; color: var(--muted); max-width: 560px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.email-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.email-text { font-size: 0.92rem; color: var(--charcoal-soft); text-decoration: underline; text-underline-offset: 3px; }
.email-text:hover { color: var(--terracotta); }
.copy-btn {
  background: transparent; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 6px 14px; font-size: 0.78rem; font-weight: 600; color: var(--charcoal-soft);
  cursor: pointer; transition: all var(--transition); font-family: var(--font-main);
}
.copy-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
.sticky-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 99;
  background: var(--terracotta); color: white; padding: 14px 26px; border-radius: 30px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 12px 32px rgba(199, 91, 58, 0.35);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}
.sticky-cta.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sticky-cta:hover { background: var(--terracotta-light); }

/* === FOOTER === */
footer { padding: 24px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
footer p { font-size: 0.8rem; color: var(--muted); }
footer a { color: var(--terracotta); text-decoration: none; }

/* === PROGRESS INDICATOR === */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 101;
  background: var(--terracotta); width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* === REVEAL ANIMATION === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 120px 20px 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-content { order: 2; }
  .hero-photo { order: 1; }
  .photo-frame { width: 160px; height: 160px; }
  .photo-monogram { font-size: 2.6rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-hook { font-size: 1.1rem; }
  .hero-proof { gap: 24px; justify-content: center; }
  .proof-number { font-size: 1.6rem; }
  .proof-flagship .proof-number { font-size: 2.1rem; }
  .hero-cta { justify-content: center; }
  .project.signature { padding: 28px; }
  .project-body { grid-template-columns: 1fr; gap: 24px; }
  .projects-compact { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .tools-grid { grid-template-columns: 1fr; }
  .voices-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--cream); border-bottom: 1px solid var(--border);
    padding: 20px 24px; gap: 16px; align-items: flex-start;
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
  }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { font-size: 0.95rem; }
  .lang-switch { padding: 5px 10px; font-size: 0.75rem; gap: 5px; }
  .section { padding: 72px 0; }
  .cta-content h2 { font-size: 1.8rem; }
  .sticky-cta { left: 16px; right: 16px; bottom: 16px; text-align: center; padding: 14px 20px; }
}

@media (max-width: 375px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-proof { flex-direction: column; gap: 16px; }
  .project.signature { padding: 20px; }
  .project-header h3 { font-size: 1.3rem; }
}
