/* ==========================================================================
   YULIA SWANDARI — PERSONAL SITE
   Design tokens: Emerald & Cream, elegant/professional
   ========================================================================== */

:root {
  /* Color */
  --cream: #FAF6EC;
  --cream-deep: #F1EAD8;
  --white: #FFFDF8;
  --ink: #1C2620;
  --ink-soft: #4B5A50;
  --emerald-900: #0B3D2E;
  --emerald-700: #14543F;
  --emerald-500: #2F7A5D;
  --emerald-300: #8FBBA4;
  --emerald-100: #E4EEE7;
  --gold: #B8863B;
  --gold-soft: #D8B876;
  --line: #DCD2B8;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --max-width: 1140px;
  --header-h: 76px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); color: var(--emerald-900); margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
em { color: var(--emerald-700); font-style: italic; }
code {
  font-family: var(--font-mono);
  background: var(--emerald-100);
  color: var(--emerald-900);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(28px, 6vw, 80px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-title.center { text-align: center; }
.section-title::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  margin-top: 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), var(--emerald-500));
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.section-title.in-view::after { width: 60px; }
.section-title.center::after { margin-left: auto; margin-right: auto; }

.section-intro {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 48px;
}
.section-intro.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--emerald-500), var(--gold));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(250, 246, 236, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 24px rgba(11, 61, 46, 0.06);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 clamp(28px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--emerald-900);
}
.brand-mark {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--emerald-900);
  color: var(--cream);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.nav-desktop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-desktop a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 20px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-desktop a:hover { color: var(--emerald-900); background: var(--emerald-100); }
.nav-desktop a.active { color: var(--emerald-900); background: var(--emerald-100); }
.nav-desktop a.nav-cta {
  background: var(--emerald-900);
  color: var(--cream);
  margin-left: 4px;
}
.nav-desktop a.nav-cta:hover { background: var(--emerald-700); }
.nav-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--emerald-500));
  opacity: 0;
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), width 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  pointer-events: none;
}
.nav-indicator.visible { opacity: 1; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 14px;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.lang-toggle:hover { border-color: var(--emerald-500); }
.lang-toggle .lang-option {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-toggle .lang-option.active {
  background: var(--emerald-900);
  color: var(--cream);
}
.lang-toggle .lang-divider { color: var(--ink-soft); opacity: 0.4; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--emerald-900);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.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); }

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.nav-mobile.open { max-height: 320px; }
.nav-mobile a {
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) clamp(28px, 6vw, 80px) 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-blob-layer {
  position: absolute;
  inset: 0;
  transition: transform 0.15s ease-out;
  will-change: transform;
}
.hero-lines-layer {
  position: absolute;
  inset: 0;
  transition: transform 0.28s ease-out;
  will-change: transform;
}
.hero-blob {
  position: absolute;
  top: -10%;
  right: -8%;
  width: 640px;
  max-width: 90vw;
}
.star-spin {
  transform-origin: 400px 400px;
  animation: starSpin 46s linear infinite;
}
.star-ring {
  transform-origin: 400px 400px;
  animation: starRingSpin 60s linear infinite reverse;
}
.hero-dotgrid {
  position: absolute;
  left: -40px; bottom: -40px;
  width: 320px; height: 320px;
  color: var(--emerald-300);
  opacity: 0.35;
  background-image: radial-gradient(currentColor 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at bottom left, black, transparent 70%);
}
.hero-trace {
  position: absolute;
  right: 4%;
  bottom: 6%;
  width: 340px;
  max-width: 60vw;
  opacity: 0.9;
}
@keyframes starSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.06); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes starRingSpin {
  to { transform: rotate(360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero-title {
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.hero-title span { display: block; }
.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn svg { transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--emerald-900);
  color: var(--cream);
  box-shadow: 0 8px 20px rgba(11, 61, 46, 0.18);
}
.btn-primary:hover { background: var(--emerald-700); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11, 61, 46, 0.24); }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 253, 248, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }
.btn-ghost {
  background: transparent;
  color: var(--emerald-900);
  border-color: var(--emerald-900);
}
.btn-ghost:hover { background: var(--emerald-900); color: var(--cream); transform: translateY(-2px); }

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 40px;
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  max-width: 780px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--emerald-900);
}
.stat-label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}
@media (max-width: 700px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
}

.stat { transition: transform 0.3s ease; }
.stat:hover { transform: translateY(-3px); }

.hero-scrollcue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 1;
  width: 1px;
  height: 44px;
  transform: translateX(-50%);
  opacity: 0.55;
  transition: opacity 0.4s ease;
  overflow: hidden;
}
.hero-scrollcue::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink-soft);
  opacity: 0.3;
}
.hero-scrollcue-dot {
  position: absolute;
  left: 0;
  top: -14px;
  width: 100%;
  height: 14px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollCueMove 1.9s ease-in-out infinite;
}
@keyframes scrollCueMove {
  0% { top: -14px; opacity: 0; }
  35% { opacity: 1; }
  100% { top: 44px; opacity: 0; }
}
.hero-scrollcue.is-hidden { opacity: 0; pointer-events: none; }
@media (max-height: 720px) {
  .hero-scrollcue { display: none; }
}

/* ==========================================================================
   SCROLL TO TOP
   ========================================================================== */
.scroll-top-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--emerald-900);
  color: var(--cream);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(11, 61, 46, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
  z-index: 800;
}
.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover { background: var(--emerald-700); }

/* ==========================================================================
   REVEAL ANIMATIONS
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  animation: revealUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.reveal-up[data-delay="0"] { animation-delay: 0.05s; }
.reveal-up[data-delay="1"] { animation-delay: 0.18s; }
.reveal-up[data-delay="2"] { animation-delay: 0.32s; }
.reveal-up[data-delay="3"] { animation-delay: 0.46s; }
.reveal-up[data-delay="4"] { animation-delay: 0.6s; }
.reveal-up[data-delay="5"] { animation-delay: 0.78s; }
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about { padding: 120px 0 100px; }
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.about-visual {
  position: sticky;
  top: calc(var(--header-h) + 30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.monogram-card {
  position: relative;
  width: 220px; height: 220px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--emerald-900);
  border-radius: 50%;
  color: var(--cream);
}
.monogram-ring { position: absolute; inset: -10px; animation: spinSlow 40s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.monogram-text { font-family: var(--font-display); font-size: 52px; font-weight: 600; }
.monogram-photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.monogram-card:hover .monogram-photo { transform: scale(1.05); }
.monogram-caption { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--emerald-700); }
.badge-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.badge-list li {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--emerald-700);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.about-text {
  color: var(--ink-soft);
  font-size: 16.5px;
  margin-bottom: 20px;
}
.about-text:last-of-type { margin-bottom: 34px; }

.edu-list { display: flex; flex-direction: column; gap: 18px; }
.edu-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.edu-year { font-family: var(--font-mono); font-size: 13px; color: var(--gold); }
.edu-title { font-weight: 600; color: var(--emerald-900); margin-bottom: 3px; }
.edu-sub { font-size: 14px; color: var(--ink-soft); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { position: static; flex-direction: row; justify-content: center; }
  .badge-list { display: none; }
}
@media (max-width: 520px) {
  .about-visual { flex-direction: column; }
  .badge-list { display: flex; }
  .edu-item { grid-template-columns: 1fr; gap: 4px; }
}

/* ==========================================================================
   JOURNEY / TIMELINE
   ========================================================================== */
.journey { padding: 100px 0; background: var(--cream-deep); }
.legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 56px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-eng { background: var(--emerald-500); }
.dot-edu { background: var(--gold); }

.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline-trace {
  position: absolute;
  left: 0; top: 0;
  width: 4px;
  height: 100%;
}
.timeline-trace-fill { transition: y2 0.1s linear; }

.tl-item {
  position: relative;
  padding: 0 0 52px 34px;
}
.tl-item:last-child { padding-bottom: 4px; }
.tl-node {
  position: absolute;
  left: -3px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--cream-deep);
  border: 2px solid var(--line);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.tl-item[data-track="eng"].in-view .tl-node { background: var(--emerald-500); border-color: var(--emerald-500); box-shadow: 0 0 0 5px rgba(47,122,93,0.15); }
.tl-item[data-track="edu"].in-view .tl-node { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(184,134,59,0.15); }
.tl-node::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid transparent;
  opacity: 0;
}
.tl-item[data-track="eng"].in-view .tl-node::after { border-color: var(--emerald-500); animation: nodePulse 1.6s ease-out 1; }
.tl-item[data-track="edu"].in-view .tl-node::after { border-color: var(--gold); animation: nodePulse 1.6s ease-out 1; }
@keyframes nodePulse {
  0% { opacity: 0.6; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(2); }
}

.tl-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.tl-card:hover { border-color: var(--emerald-300); box-shadow: 0 14px 30px rgba(11, 61, 46, 0.08); }
.tl-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.tag-eng { background: var(--emerald-100); color: var(--emerald-700); }
.tag-edu { background: #F3E8D2; color: var(--gold); }
.tl-year {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.tl-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.tl-card p { color: var(--ink-soft); font-size: 15px; }

@media (max-width: 600px) {
  .timeline { padding-left: 28px; }
  .tl-item { padding-left: 22px; }
}

/* Skills */
.skills-block { margin-top: 80px; }
.skills-heading {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--emerald-900);
  margin-bottom: 34px;
}
.skills-groups {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 880px;
  margin: 0 auto;
}
.skill-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--emerald-900);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.chip:hover { border-color: var(--emerald-500); transform: translateY(-2px); }
.chip-row.small .chip { font-size: 12.5px; padding: 5px 12px; }

/* ==========================================================================
   WORK / PORTFOLIO
   ========================================================================== */
.work { padding: 100px 0; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.work-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(11, 61, 46, 0.1);
  border-color: var(--emerald-300);
}

/* Cursor-follow spotlight glow — shared by cards with pointer tracking */
.work-card::before,
.blog-card::before,
.tl-card::before,
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 122, 93, 0.10), transparent 72%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.work-card:hover::before,
.blog-card:hover::before,
.tl-card:hover::before,
.contact-form:hover::before {
  opacity: 1;
}
.work-card > *, .blog-card > *, .tl-card > *, .contact-form > * {
  position: relative;
  z-index: 1;
}
.work-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}
.work-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.work-card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 18px; }

@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog { padding: 100px 0; background: var(--cream-deep); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.blog-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(11, 61, 46, 0.1); }

.blog-thumb-wrap {
  display: block;
  margin: 0 -24px 4px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--emerald-100);
}
.blog-thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-thumb { transform: scale(1.05); }
.blog-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--emerald-900), var(--emerald-500));
}
.blog-thumb-fallback span {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  color: var(--cream);
  opacity: 0.85;
}

.blog-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--emerald-100);
  color: var(--emerald-700);
  padding: 3px 10px;
  border-radius: 20px;
}
.blog-card h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.blog-card h3 a { transition: color 0.2s ease; }
.blog-card h3 a:hover { color: var(--emerald-500); }
.blog-card p { color: var(--ink-soft); font-size: 14px; flex-grow: 1; }

.blog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.blog-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); opacity: 0.75; }
.blog-readmore {
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald-700);
  white-space: nowrap;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.blog-readmore:hover { color: var(--gold); transform: translateX(2px); }

.blog-viewall {
  display: block;
  text-align: center;
  margin-top: 42px;
  font-weight: 600;
  color: var(--emerald-900);
  font-size: 15px;
  transition: color 0.2s ease;
}
.blog-viewall:hover { color: var(--gold); }

.inline-link {
  color: var(--emerald-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--emerald-300);
  text-underline-offset: 3px;
}
.inline-link:hover { color: var(--gold); }

@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { padding: 110px 0 100px; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.contact-actions { margin-bottom: 30px; }

.contact-form {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 760px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 16px 34px rgba(11, 61, 46, 0.06);
  transition: box-shadow 0.3s ease;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.form-grid.form-extra { padding-top: 4px; border-top: 1px dashed var(--line); }
.form-grid.form-extra[hidden] { display: none; }

.form-extra-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}
.form-extra-stack[hidden] { display: none; }

.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald-900);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 110px; font-family: var(--font-body); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-soft); opacity: 0.6; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(47, 122, 93, 0.15);
}

.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 10px 18px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--emerald-900);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.pill:hover { border-color: var(--emerald-500); transform: translateY(-1px); }
.pill.active { background: var(--emerald-900); color: var(--cream); border-color: var(--emerald-900); }

.form-submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-submit-row .btn { border: none; }
.form-submit-row .btn:disabled { opacity: 0.65; cursor: default; transform: none; }
.form-note { font-size: 13px; color: var(--ink-soft); margin: 0; }

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.form-status { font-size: 14px; margin: 0; min-height: 1em; }
.form-status.success { color: var(--emerald-700); }
.form-status.error { color: #A3402B; }

.contact-divider {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-bottom: 22px;
}

.social-row { display: flex; gap: 16px; }
.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--emerald-900);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.social-link:hover { background: var(--emerald-900); color: var(--cream); border-color: var(--emerald-900); transform: translateY(-2px); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--emerald-900); color: var(--emerald-100); padding: 44px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--cream); }
.footer-tagline { font-size: 13px; color: var(--emerald-300); margin-top: 4px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: 13.5px; color: var(--emerald-100); opacity: 0.85; transition: opacity 0.2s ease; }
.footer-nav a:hover { opacity: 1; }
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: var(--emerald-300); }

@media (max-width: 700px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}