/* ==========================================================================
   Aria Vance — Social Media & Brand Growth Portfolio
   Design system: Warm stone neutrals · Editorial luxury · Swiss minimalism
   Mobile-first, responsive & interactive timeline with growing vertical rail
   ========================================================================== */

:root {
  --ink:        #1C1917;
  --ink-2:      #292524;
  --obsidian:   #0C0A09;
  --paper:      #FAF9F7;
  --paper-2:    #F4F2EE;
  --card:       #FFFFFF;
  --muted:      #78716C;
  --muted-2:    #A8A29E;
  --line:       #E7E3DC;
  --line-2:     #D6D1C8;

  --gold:       #C4622D;
  --gold-soft:  #D4753E;
  --gold-tint:  rgba(196, 98, 45, 0.12);
  --gold-line:  rgba(196, 98, 45, 0.28);

  --paper-invert: #F5F2EC;
  --muted-invert: #A8A096;
  --line-invert:  rgba(255,255,255,0.10);

  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow: 0 4px 12px rgba(28,25,23,.05), 0 18px 40px -12px rgba(28,25,23,.14);
  --shadow-lg: 0 8px 24px rgba(28,25,23,.07), 0 40px 80px -24px rgba(28,25,23,.28);

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 64px);
}

* { box-sizing: border-box; }
html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ----------------------------- Header & Nav ----------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  background: rgba(250, 249, 247, 0.90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.brand span { color: var(--gold); font-style: italic; }

.nav-links { display: flex; gap: 28px; font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.nav-links a:hover { color: var(--gold); }

.burger {
  display: none; background: transparent; border: 1px solid var(--line-2);
  width: 44px; height: 44px; border-radius: var(--r-sm);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 0;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); transition: 0.3s; }

.mobile-menu {
  display: none; position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
  background: var(--paper); z-index: 99; padding: 32px var(--gutter);
  flex-direction: column; gap: 24px; border-top: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-display); font-size: 28px; font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 16px; }

/* -------------------------------- Hero -------------------------------- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 100px;
  background: var(--gold-tint); border: 1px solid var(--gold-line);
  color: var(--gold); font-size: 12px; font-weight: 600; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.12; font-weight: 500;
  margin: 0 0 20px;
}
.hero h1 em { color: var(--gold); font-style: italic; }

.hero-lead {
  font-size: 18px; color: var(--muted);
  max-width: 600px; margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn-primary { background: var(--ink); color: #FFF; }
.btn-primary:hover { background: var(--gold); }
.btn-ghost { border: 1px solid var(--line-2); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

/* Hero Portrait & Floating Badges */
.hero-portrait-wrap {
  position: relative; text-align: center;
}
.hero-portrait-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 2px solid var(--card);
}
.hero-portrait-frame img {
  width: 100%; height: 460px; object-fit: cover;
}

.float-badge {
  position: absolute; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 12px 18px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600;
  z-index: 2; animation: floatAnim 4s ease-in-out infinite alternate;
}
.float-badge.f1 { top: 20px; left: -20px; }
.float-badge.f2 { bottom: 30px; right: -20px; animation-delay: 2s; }
.float-badge .val { color: var(--gold); font-family: var(--font-display); font-size: 18px; display: block; }

@keyframes floatAnim {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* Stats Row */
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 50px;
  padding: 32px; background: var(--card);
  border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.stat-val { font-family: var(--font-display); font-size: 36px; font-weight: 600; color: var(--gold); }
.stat-lbl { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

/* ------------------------------ Sections ------------------------------ */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 500;
  margin: 0 0 12px;
}
.section-sub { font-size: 17px; color: var(--muted); margin: 0; }

/* Work Grid */
.work-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.work-card {
  background: var(--card); border-radius: var(--r-lg);
  border: 1px solid var(--line); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.3s ease;
}
.work-card:hover { transform: translateY(-6px); }
.work-img { height: 240px; width: 100%; object-fit: cover; }
.work-body { padding: 28px; }
.work-tag { font-size: 12px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; }
.work-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 6px 0 10px; }
.work-desc { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.work-stat { font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; gap: 16px; flex-wrap: wrap; }

/* -------------------------- Timeline Journey -------------------------- */
.timeline {
  position: relative; max-width: 860px; margin: 40px auto 0; padding: 20px 0;
}

/* Background Grey Line */
.tl-rail {
  position: absolute; top: 14px; bottom: 14px; left: 190px;
  width: 2px; background: var(--line-2);
}

/* Animated Growing Colored Line */
.tl-fill {
  position: absolute; top: 14px; left: 190px;
  width: 2px; height: calc(100% - 28px);
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  transform: scaleY(0); transform-origin: top;
  box-shadow: 0 0 12px rgba(196, 98, 45, 0.4);
  transition: transform 0.1s linear;
}

.tl-item {
  display: grid; grid-template-columns: 150px 1fr; gap: 60px;
  padding: 34px 0; border-top: 1px solid var(--line);
  align-items: start; position: relative;
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }

/* Timeline Node Circles */
.tl-node {
  position: absolute; left: 183px; top: 40px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper-2); border: 2px solid var(--line-2);
  z-index: 2;
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.tl-item.active .tl-node {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--gold-tint);
  transform: scale(1.1);
}

.tl-when { text-align: right; }
.tl-year { font-family: var(--font-display); font-size: 20px; font-weight: 600; transition: color 0.3s ease; }
.tl-item.active .tl-year { color: var(--gold); }
.tl-dur { font-size: 13px; color: var(--muted); margin-top: 4px; }

.tl-body {
  background: var(--card); border: 1px solid var(--line);
  padding: 24px; border-radius: var(--r); box-shadow: var(--shadow);
}
.tl-body h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 4px; }
.tl-company { font-size: 13.5px; font-weight: 600; color: var(--gold); margin-bottom: 12px; }
.tl-body p { font-size: 14.5px; color: var(--muted); margin: 0 0 16px; }
.tl-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-chip {
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 100px;
  background: var(--paper-2); color: var(--ink); border: 1px solid var(--line);
}

/* -------------------------- Dark Showcase -------------------------- */
.dark-section {
  background: var(--obsidian); color: var(--paper-invert);
  padding: 100px 0;
}
.dark-section .section-title { color: #FFF; }
.dark-section .section-sub { color: var(--muted-invert); }

.feature-box {
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-invert);
  border-radius: var(--r-xl); padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: center;
}
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; }
.feature-list li { margin-bottom: 16px; display: flex; gap: 12px; font-size: 15px; color: var(--muted-invert); }
.feature-list li span { color: var(--gold-soft); font-weight: 700; }

.cta-section {
  text-align: center; background: var(--paper-2); padding: 90px 0;
}

footer {
  border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted);
}
.footer-in { display: flex; justify-content: space-between; align-items: center; }

/* -------------------------- Mobile Responsive -------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait-frame img { height: 380px; }
  .float-badge.f1 { left: 0; }
  .float-badge.f2 { right: 0; }
  .feature-box { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav > .btn { display: none; }
  .burger { display: flex; }
  .work-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 16px; padding: 24px; text-align: center; }
  
  /* Mobile Timeline Adjustments */
  .tl-rail, .tl-fill { left: 15px; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; padding-left: 36px; }
  .tl-node { left: 8px; top: 4px; }
  .tl-when { text-align: left; margin-bottom: 4px; display: flex; gap: 12px; align-items: baseline; }
  .tl-dur { margin-top: 0; }
  
  .footer-in { flex-direction: column; gap: 16px; text-align: center; }
}
