/* ==========================================================================
   Home page (index.html). Uses the theme tokens from css/theme.css.
   ========================================================================== */

.home { position: relative; overflow: hidden; }
.home section { position: relative; }
.h-wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 5vw, 64px); }
.h-section { padding-block: clamp(56px, 8vw, 104px); }
.h-tinted { background: var(--t-tint-section); border-block: 1px solid var(--t-hair); }

/* Decorative glows and sparkles; never interactive, hidden from screen readers. */
.h-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.h-glow { position: absolute; border-radius: 50%; filter: blur(110px); }
.h-spark { position: absolute; display: block; }
.h-spark svg { display: block; width: 100%; height: 100%; }
.h-spark-1 { color: var(--t-spark-1); }
.h-spark-2 { color: var(--t-spark-2); }
.h-spark-3 { color: var(--t-spark-3); }
.home .h-wrap { position: relative; z-index: 1; }

/* — nav: brand styling for the new home header — */
.home-header { position: relative; z-index: 30; background: var(--t-surface); border-bottom: 2px solid var(--t-pink-line); }
.home-header .nav { max-width: 1200px; margin: 0 auto; padding: 16px clamp(16px, 5vw, 64px); }
.home-header .nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--t-font-head); font-size: 22px; font-weight: 700;
  letter-spacing: var(--t-logo-spacing); color: var(--t-accent-big); text-decoration: none;
}
.home-header .nav-brand svg { width: 18px; height: 18px; color: var(--t-gold); }
.home-header .nav-links { gap: 4px 6px; }
.home-header .nav-links a { color: var(--t-plum-text); font-size: 15px; font-weight: 500; padding: 10px 10px; }
.home-header .nav-links a:hover { color: var(--t-accent); }
.home-header .nav-links a.h-nav-resume {
  margin-left: 6px; padding: 9px 20px; border-radius: var(--t-radius-btn);
  background: var(--t-btn); color: var(--t-btn-text); font-weight: 700;
}
.home-header .nav-links a.h-nav-resume:hover { color: var(--t-btn-text); filter: brightness(0.96); }

/* — shared bits — */
.h-eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-muted); }
.h-title { margin: 0; font-family: var(--t-font-head); font-weight: 700; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; color: var(--t-heading); }
.h-accent { color: var(--t-accent-big); }
.h-rule { width: 50px; height: 3px; border-radius: 3px; background: var(--t-bar); }
.h-lede { margin: 0; font-family: var(--t-font-accent); font-style: italic; font-size: clamp(19px, 2vw, 22px); color: var(--t-plum-text); }
.h-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-bottom: clamp(32px, 4vw, 44px); }
.h-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 30px; border-radius: var(--t-radius-btn);
  font-family: var(--t-font-cta); font-weight: 700; letter-spacing: var(--t-cta-spacing);
  text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.h-btn-cta { background: var(--t-cta); color: var(--t-cta-text); box-shadow: var(--t-cta-shadow); }
.h-btn-cta:hover { transform: translateY(-2px); color: var(--t-cta-text); }
.h-btn-ghost { background: var(--t-card); color: var(--t-plum-text); border: 1px solid var(--t-line); }
.h-btn-ghost:hover { border-color: var(--t-accent); color: var(--t-accent); }
.h-link { color: var(--t-accent); font-weight: 700; text-decoration: none; padding: 8px 0; display: inline-block; }
.h-link:hover { text-decoration: underline; }

/* — hero card — */
.h-hero { padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 88px); }
.h-hero-card {
  position: relative; overflow: hidden; max-width: 880px; margin: 0 auto;
  background: var(--t-glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 2px solid var(--t-pink-line); border-radius: 20px;
  box-shadow: 0 14px 40px rgba(84, 54, 115, 0.08);
  padding: clamp(40px, 6vw, 68px) clamp(22px, 5vw, 56px) clamp(28px, 4vw, 40px);
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.h-bar { position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: var(--t-bar); }
.h-divider { display: flex; align-items: center; gap: 12px; color: var(--t-gold); }
.h-divider span { width: 48px; height: 1px; background: currentColor; }
.h-divider svg { width: 14px; height: 14px; }
.h-hero h1 { margin: 0; font-family: var(--t-font-head); font-weight: 700; font-size: clamp(34px, 4.8vw, 58px); line-height: 1.14; color: var(--t-heading); max-width: none; }
.h-hero h2 { margin: 0; font-family: var(--t-font-accent); font-style: italic; font-weight: 500; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; color: var(--t-plum-text); }
.h-hero .h-where { margin: 0; font-size: 15px; color: var(--t-muted); }
.h-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 8px; }
.h-stats {
  width: 100%; margin: 22px 0 0; padding: 24px 0 0; border-top: 1px solid var(--t-pink-line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px;
}
.h-stats div { margin: 0; }
.h-stats dt { order: 2; font-size: 13px; color: var(--t-muted); }
.h-stats dd { margin: 0; font-family: var(--t-font-head); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--t-accent-big); }
.h-stats div { display: flex; flex-direction: column; }

/* — selected work — */
.h-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.h-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: var(--t-card); border: 1px solid var(--t-card-border); border-radius: var(--t-radius-card);
  box-shadow: var(--t-shadow-card); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.h-card:hover { transform: translateY(-4px); border-color: var(--t-accent); }
.h-card-bar { height: 6px; background: var(--t-bar); }
.h-card-metric { padding: 24px 26px 20px; background: var(--t-metric-band); border-bottom: 1px solid var(--t-pink-line); display: flex; flex-direction: column; gap: 6px; }
.h-card-metric .h-industry { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-muted); }
.h-card-metric strong { font-family: var(--t-font-head); font-weight: 700; font-size: 42px; line-height: 1.05; color: var(--t-accent-big); }
.h-card-metric span:last-child { font-size: 14px; color: var(--t-muted); }
.h-card-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.h-card-body h3 { margin: 0; font-family: var(--t-font-head); font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--t-card-title); }
.h-card-body h3 a { color: inherit; text-decoration: none; }
.h-card-body h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card is the link */
.h-card-body p { margin: 0; font-size: 15px; }
.h-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 6px 0 0; list-style: none; }
.h-tags li { background: var(--t-tag-bg); color: var(--t-tag-text); border: 1px solid var(--t-tag-border); padding: 3px 10px; font-size: 13px; font-weight: 600; border-radius: var(--t-radius-tag); }
.h-card-more { color: var(--t-accent); font-weight: 700; font-size: 15px; }
.h-card-all {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; text-decoration: none; min-height: 240px; padding: 32px;
  background: var(--t-card); border: 1px dashed var(--t-card-border); border-radius: var(--t-radius-card);
}
.h-card-all:hover { border-color: var(--t-accent); }
.h-card-all svg { width: 26px; height: 26px; color: var(--t-spark-2); }
.h-card-all strong { font-family: var(--t-font-head); font-size: 22px; color: var(--t-card-title); }
.h-card-all span { font-size: 14px; color: var(--t-muted); }

/* — story — */
.h-story { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.h-portrait { flex: 1 1 280px; min-width: 0; display: flex; justify-content: center; }
.h-frame {
  position: relative; width: 280px; max-width: 100%; aspect-ratio: 4 / 5; box-sizing: border-box;
  border: 3px solid var(--t-accent-big); border-radius: var(--t-radius-card); padding: 8px; background: var(--t-card);
}
.h-frame img, .h-monogram { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--t-radius-inner); background: var(--t-tint); }
.h-monogram {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--t-font-head); font-weight: 700; font-size: 72px; color: var(--t-accent-big);
  background: var(--t-metric-band);
}
.h-frame .h-spark { top: -16px; right: -16px; width: 32px; height: 32px; }
.h-story-text { flex: 2 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.h-story-text blockquote { margin: 0; font-family: var(--t-font-accent); font-style: italic; font-weight: 500; font-size: clamp(21px, 2.3vw, 27px); line-height: 1.4; color: var(--t-accent); }
.h-story-text p { margin: 0; font-size: 17px; }

/* — skills — */
.h-skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.h-skill { overflow: hidden; background: var(--t-card); border: 1px solid var(--t-pink-line); border-radius: var(--t-radius-card); }
.h-skill::before { content: ""; display: block; height: 4px; background: var(--t-bar); }
.h-skill-body { padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.h-skill h3 { margin: 0; font-family: var(--t-font-head); font-size: 18px; font-weight: 700; color: var(--t-card-title); }
.h-skill ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.h-skill li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.h-skill li svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--t-check); }

/* — availability — */
.h-week { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.h-day { background: var(--t-card); border: 1px solid var(--t-card-border); border-radius: var(--t-radius-card); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.h-day.is-today { border-color: var(--t-accent-big); box-shadow: 0 0 0 1px var(--t-accent-big); }
.h-day h3 { margin: 0; font-family: var(--t-font-head); font-weight: 700; font-size: 15px; color: var(--t-card-title); }
.h-slot { border-radius: var(--t-radius-slot); padding: 6px 10px; font-size: 14px; }
.h-slot.is-free { background: var(--t-btn); color: var(--t-btn-text); }
.h-slot.is-free b { font-weight: 700; }
.h-slot.is-busy { background: var(--t-tint); color: var(--t-muted); }
.h-week-note { margin: 0; text-align: center; font-size: 15px; color: var(--t-muted); }

/* — contact — */
.h-contact { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.h-contact .h-divider-gem { width: 22px; height: 22px; color: var(--t-gold); }
.h-contact h2 { margin: 0; font-family: var(--t-font-head); font-weight: 700; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; color: var(--t-heading); }
.h-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 8px; }
.h-socials .h-btn { padding: 0 22px; font-family: var(--t-font-body); letter-spacing: 0; }
.h-email { margin: 0; font-size: 15px; color: var(--t-muted); }

.home-footer { background: var(--t-surface); border-top: 2px solid var(--t-pink-line); }
.home-footer .h-wrap { padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--t-muted); }
.home-footer p { margin: 0; }

@media (max-width: 1100px) {
  .home-header .nav-links a { padding: 6px 0; }
  .home-header .nav-links a.h-nav-resume { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .h-btn, .h-card { transition: none; }
  .h-btn-cta:hover, .h-card:hover { transform: none; }
}
