/* ============================================
   Veronika Lab
   Design: Apple × Linear × Vercel — Light
   White · Dark type · Green + Brown accents
   ============================================ */

:root {
  /* Surfaces */
  --bg: #fbfaf7;
  --bg-elevated: #f6f3ee;
  --bg-card: #ffffff;
  --bg-hover: #f3f0ea;
  --bg-soft: #efeae3;

  /* Borders */
  --border: rgba(28, 25, 23, 0.08);
  --border-hover: rgba(28, 25, 23, 0.16);
  --border-strong: rgba(28, 25, 23, 0.14);

  /* Type — dark on light */
  --text: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #57534e;
  --text-dim: #78716c;
  --text-faint: #a8a29e;

  /* Accents — forest green + warm brown */
  --accent: #2f6b4f;
  --accent-hover: #255a41;
  --accent-soft: rgba(47, 107, 79, 0.1);
  --accent-border: rgba(47, 107, 79, 0.28);
  --accent-brown: #7a5640;
  --accent-brown-soft: rgba(122, 86, 64, 0.1);
  --accent-brown-border: rgba(122, 86, 64, 0.28);

  --on-accent: #ffffff;
  --success: #2f6b4f;
  --progress: #7a5640;
  --warning: #b45309;
  --lab: #5c7a4a;

  /* Glow */
  --glow: rgba(47, 107, 79, 0.1);

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  /* Radius */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Layout */
  --nav-h: 64px;
  --container: 1080px;
  --section-y: clamp(3.25rem, 6vw, 5.5rem);
  --gap: clamp(1rem, 2.5vw, 1.5rem);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --duration: 0.7s;
  --duration-fast: 0.25s;
  --duration-slow: 1s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(47, 107, 79, 0.22);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

code {
  font-family: var(--mono);
  font-size: 0.84em;
  color: var(--accent-brown);
  letter-spacing: -0.02em;
}

/* ——— Ambient ——— */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  pointer-events: none;
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 68%);
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  mix-blend-mode: multiply;
}

body:hover .cursor-glow {
  opacity: 1;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--container));
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform var(--duration-fast) var(--ease),
    background var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease,
    color var(--duration-fast) ease;
  will-change: transform;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 14px 28px;
  font-size: 0.9375rem;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 2px rgba(47, 107, 79, 0.15);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 8px 24px rgba(47, 107, 79, 0.2);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.btn--ghost:hover {
  border-color: var(--border-hover);
  background: var(--bg-soft);
  color: var(--text);
}

/* ——— Nav ——— */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.4s ease,
    background 0.4s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.88);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: inherit;
}

.nav__mark-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg-elevated);
}

.nav__mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  background: var(--accent);
  color: var(--on-accent);
  letter-spacing: -0.04em;
}

.nav__name {
  font-size: 0.875rem;
  color: var(--text);
}

.nav__links {
  display: flex;
  gap: 28px;
}

.nav__links a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  transition: color var(--duration-fast) ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  height: 1.5px;
  width: 20px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s ease, width 0.3s ease;
}

.nav__burger span:last-child {
  width: 14px;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  flex-direction: column;
  padding: 48px 32px;
  gap: 28px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--text);
}

/* ——— Hero — airy, one viewport, nothing clipped ——— */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 28px) 0 36px;
  box-sizing: border-box;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 20%, rgba(47, 107, 79, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(122, 86, 64, 0.05), transparent 50%);
}

.hero__grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28, 25, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 25, 23, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, black 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, black 15%, transparent 72%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1100px);
  max-width: none;
}

.hero__layout {
  /* flex — text + photo as a tight pair, no 1fr dead zone in the middle */
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 3.5vw, 44px);
}

.hero__copy {
  flex: 0 1 32rem;
  min-width: 0;
  max-width: 32rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(47, 107, 79, 0.35);
  animation: pulse 2.4s ease-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 107, 79, 0.35); }
  70% { box-shadow: 0 0 0 8px rgba(47, 107, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 107, 79, 0); }
}

.hero__hello {
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.3;
}

.hero__role {
  margin: 0 0 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.hero__title {
  display: block;
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--text);
  max-width: 16ch;
}

.hero__title .accent,
.hero__title .word-reveal.accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-brown) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.word-reveal {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(16px);
  animation: wordIn 0.85s var(--ease) forwards;
  margin-right: 0.28em;
}

.word-reveal:last-child {
  margin-right: 0;
}

.word-reveal:nth-child(1) { animation-delay: 0.05s; }
.word-reveal:nth-child(2) { animation-delay: 0.1s; }
.word-reveal:nth-child(3) { animation-delay: 0.15s; }
.word-reveal:nth-child(4) { animation-delay: 0.2s; }
.word-reveal:nth-child(5) { animation-delay: 0.25s; }
.word-reveal:nth-child(6) { animation-delay: 0.3s; }
.word-reveal:nth-child(7) { animation-delay: 0.35s; }
.word-reveal:nth-child(8) { animation-delay: 0.4s; }
.word-reveal:nth-child(9) { animation-delay: 0.45s; }

@keyframes wordIn {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.hero__lead {
  margin: 0 0 28px;
  font-size: clamp(0.95rem, 1.2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--text-muted);
  max-width: 36ch;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 32px;
  margin: 0 0 28px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat strong {
  font-size: clamp(1.4rem, 2vh, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.1;
}

.stat span {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: -0.01em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
}

.hero__cta .btn {
  border-radius: var(--radius-full);
  padding: 11px 20px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__tags span {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--bg-elevated);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.hero__tags span:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Photo — 3:4 card, sits right next to copy */
.hero__photo {
  margin: 0;
  flex: 0 0 auto;
  height: min(68vh, 520px);
  width: auto;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow:
    0 4px 6px rgba(28, 25, 23, 0.03),
    0 28px 56px -24px rgba(28, 25, 23, 0.18);
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

@media (max-width: 960px) {
  .hero__layout {
    gap: 24px;
  }

  .hero__copy {
    flex-basis: 28rem;
  }

  .hero__title {
    max-width: none;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  }

  .hero__photo {
    height: min(58vh, 400px);
  }
}

@media (max-width: 720px) {
  .hero {
    height: auto;
    max-height: none;
    min-height: 100dvh;
    padding: calc(var(--nav-h) + 24px) 0 48px;
    align-items: flex-start;
    overflow: visible;
  }

  .hero__layout {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .hero__copy {
    flex: 1 1 auto;
    max-width: none;
  }

  .hero__photo {
    height: 280px;
    max-width: 210px;
    border-radius: 20px;
  }

  .hero__title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .hero__meta {
    gap: 20px 24px;
  }

  .hero__cta {
    margin-bottom: 24px;
  }
}

/* Short laptops */
@media (max-height: 760px) and (min-width: 721px) {
  .hero {
    padding: calc(var(--nav-h) + 16px) 0 20px;
  }

  .hero__badge {
    margin-bottom: 14px;
  }

  .hero__role {
    margin-bottom: 12px;
  }

  .hero__title {
    font-size: clamp(1.55rem, 3.2vh, 2.2rem);
    margin-bottom: 12px;
  }

  .hero__lead,
  .hero__meta,
  .hero__cta {
    margin-bottom: 16px;
  }

  .hero__photo {
    height: min(58vh, 400px);
  }
}

/* ——— Process strip ——— */
.process-strip {
  padding: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}

.process-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 120px;
  padding: 8px 12px;
}

.process-step__n {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.process-step span:last-child {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  line-height: 1.35;
}

.process-arrow {
  display: flex;
  align-items: center;
  color: var(--text-faint);
  font-size: 0.75rem;
  opacity: 0.7;
  transform: rotate(-90deg);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .process-flow {
    flex-direction: column;
    gap: 0;
  }
  .process-arrow {
    transform: none;
    justify-content: flex-start;
    padding-left: 12px;
    height: 24px;
  }
  .process-step {
    padding: 16px 12px;
  }
}

/* ——— Sections ——— */
.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section__head {
  max-width: 640px;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--accent-brown);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  font-family: var(--mono);
}

.section__title {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  letter-spacing: -0.04em;
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--text);
}

/* Only main section titles — muted variants, not neon */
.section__title--gradient {
  background: linear-gradient(
    120deg,
    #2a5f46 0%,
    #4a6b52 45%,
    #6b4e3a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__title--green {
  color: #2f5642;
}

.section__title--ink {
  color: var(--text);
}

.section__sub {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.015em;
  font-weight: 400;
}

/* ——— Lab wall ——— */
.lab {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(47, 107, 79, 0.05), transparent 55%),
    var(--bg-elevated);
}

.lab-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transform: none;
  transition:
    transform 0.5s var(--ease),
    border-color 0.4s ease,
    background 0.4s ease,
    box-shadow 0.5s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}

.exp-card:hover {
  border-color: var(--accent-border);
  background: var(--bg-card);
  box-shadow: 0 20px 40px -20px rgba(28, 25, 23, 0.12);
}

.exp-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.exp-id {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}

.status {
  font-family: var(--mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 400;
}

.status--done {
  color: var(--text-dim);
  background: var(--bg-soft);
}

.status--success {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.status--progress {
  color: var(--accent-brown);
  border-color: var(--accent-brown-border);
  background: var(--accent-brown-soft);
}

.status--lab {
  color: var(--lab);
  border-color: rgba(92, 122, 74, 0.3);
  background: rgba(92, 122, 74, 0.1);
}

.exp-card h3 {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  color: var(--text);
}

.exp-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.exp-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.exp-card__tags span {
  font-size: 0.6875rem;
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  letter-spacing: -0.01em;
  background: var(--bg-elevated);
}

/* ——— Cases ——— */
.cases-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: clamp(28px, 4vw, 40px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.case:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px -24px rgba(28, 25, 23, 0.12);
}

.case__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.case__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 400;
}

.case__domain {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: -0.01em;
}

.case__company {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.case__company a {
  color: var(--accent);
  font-weight: 500;
}

.case__title {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  max-width: 720px;
  line-height: 1.25;
  color: var(--text);
}

/* Experience timeline — card grid */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
}

.timeline--cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  border: 0;
  background: transparent;
  overflow: visible;
}

.timeline--cards .timeline__item {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease);
  min-height: 100%;
}

.timeline--cards .timeline__item:hover {
  border-color: var(--accent-border);
  box-shadow: 0 14px 32px -22px rgba(28, 25, 23, 0.14);
  transform: translateY(-2px);
}

.timeline--cards .timeline__item:last-child {
  border-bottom: 1px solid var(--border);
}

.timeline__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.timeline__when {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
}

.timeline__niche {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.timeline__role {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.timeline__org {
  margin: 0 0 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.timeline__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  max-width: none;
}

.exp-markets {
  margin-top: 16px;
  width: 100%;
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(47, 107, 79, 0.05), transparent 50%),
    var(--bg-card);
}

.exp-markets h3 {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text);
}

.chip-cloud--wide {
  gap: 10px;
}

.chip-cloud--wide span {
  padding: 10px 16px;
  font-size: 0.875rem;
}

.exp-panel--skills {
  margin-top: 12px;
  width: 100%;
}

@media (max-width: 720px) {
  .timeline--cards {
    grid-template-columns: 1fr;
  }
}

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

.case-block {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.case-block--learn {
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.case-block__label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-brown);
  margin-bottom: 10px;
  font-weight: 500;
}

.cases__note {
  margin: 36px 0 0;
  font-size: 0.875rem;
  color: var(--text-dim);
  letter-spacing: -0.01em;
}

.cases__note a {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.cases__note a:hover {
  border-bottom-color: var(--accent);
}

.cases__more {
  margin: 28px 0 0;
  font-size: 0.8125rem;
  color: var(--text-faint);
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.cases__more a {
  color: var(--text-dim);
  font-weight: 400;
  border-bottom: 1px solid rgba(28, 25, 23, 0.12);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cases__more a:hover {
  color: var(--accent);
  border-bottom-color: rgba(47, 107, 79, 0.35);
}

.case-block p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.case-block p a {
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid rgba(47, 107, 79, 0.25);
}

.case-block p a:hover {
  border-bottom-color: var(--accent);
}

.case-block p strong {
  color: var(--text);
  font-weight: 600;
}

/* ——— Experience ——— */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.exp-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: clamp(20px, 2.5vw, 28px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.exp-panel:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px -20px rgba(28, 25, 23, 0.1);
}

.exp-panel:last-child {
  grid-column: 1 / -1;
}

.exp-panel h3 {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-cloud span {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.chip-cloud span:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}

.skill-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px 18px;
}

.skill-cols h4 {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--accent-brown);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skill-cols ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.skill-cols li {
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

/* ——— Method ——— */
.method-cycle {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 0;
}

.method-node {
  padding: 18px 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  min-height: 140px;
  transition:
    transform 0.5s var(--ease),
    border-color 0.4s ease,
    background 0.4s ease,
    box-shadow 0.4s ease;
}

.method-node:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  background: var(--bg-hover);
  box-shadow: 0 12px 28px -16px rgba(28, 25, 23, 0.12);
}

.method-node--accent {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, var(--accent-soft) 0%, rgba(47, 107, 79, 0.03) 100%);
}

.method-node__n {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
  font-weight: 400;
}

.method-node h3 {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.method-node p {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.frameworks {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 36px);
  background: var(--bg-elevated);
}

.frameworks__title {
  font-size: 0.8125rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--text-dim);
  letter-spacing: -0.01em;
}

.frameworks__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.frameworks__list span {
  font-size: 0.8125rem;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  background: var(--bg-card);
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.frameworks__list span:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ——— AI Lab ——— */
.ai-lab {
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(122, 86, 64, 0.05), transparent),
    var(--bg);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition:
    border-color 0.4s ease,
    transform 0.5s var(--ease),
    background 0.4s ease,
    box-shadow 0.5s var(--ease);
  transform-style: preserve-3d;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.tool-card:hover {
  border-color: var(--accent-border);
  background: var(--bg-card);
  box-shadow: 0 20px 40px -20px rgba(28, 25, 23, 0.12);
}

.tool-card__id {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--accent-brown);
  display: block;
  margin-bottom: 16px;
}

.tool-card h3 {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  color: var(--text);
}

.tool-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  flex: 1;
}

.tool-card__meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.tool-card__cta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.tool-card:hover .tool-card__cta {
  color: var(--accent-hover);
}

.lab-tools-note {
  margin-top: 28px;
  max-width: 52rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

/* ——— CJM preview (AI Lab) ——— */
.cjm-preview {
  margin-bottom: 28px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(47, 107, 79, 0.04), transparent 40%),
    var(--bg-card);
}

.cjm-preview__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.cjm-preview__id {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--accent-brown);
  display: block;
  margin-bottom: 10px;
}

.cjm-preview__head h3 {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  color: var(--text);
}

.cjm-preview__head p {
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.cjm-preview__download {
  flex-shrink: 0;
}

.cjm-funnel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.cjm-funnel__item {
  padding: 14px 16px;
  border-radius: var(--radius-md, 12px);
  background: rgba(122, 86, 64, 0.08);
  border: 1px solid rgba(122, 86, 64, 0.12);
}

.cjm-funnel__item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent-brown);
  margin-bottom: 4px;
}

.cjm-funnel__item span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.cjm-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.cjm-stage {
  padding: 16px 14px;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border);
  background: var(--bg);
  min-height: 100%;
}

.cjm-stage:nth-child(1) { border-top: 3px solid #2f6b4f; }
.cjm-stage:nth-child(2) { border-top: 3px solid #7a5640; }
.cjm-stage:nth-child(3) { border-top: 3px solid #4f6b8a; }
.cjm-stage:nth-child(4) { border-top: 3px solid #b45309; }
.cjm-stage:nth-child(5) { border-top: 3px solid #9d4e6c; }

.cjm-stage__num {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.cjm-stage h4 {
  font-size: 0.95rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--text);
}

.cjm-stage__job {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cjm-stage__signal {
  font-size: 0.6875rem;
  font-family: var(--mono);
  line-height: 1.4;
  color: var(--accent);
  margin-bottom: 10px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--accent-soft, rgba(47, 107, 79, 0.08));
}

.cjm-stage__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cjm-stage__list li {
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--text-muted);
  padding-left: 10px;
  position: relative;
}

.cjm-stage__list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent-brown);
}

.cjm-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cjm-meta {
  padding: 14px 16px;
  border-radius: var(--radius-md, 12px);
  border: 1px dashed var(--border);
  background: transparent;
}

.cjm-meta__label {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--accent-brown);
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cjm-meta p {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 960px) {
  .cjm-stages {
    grid-template-columns: repeat(2, 1fr);
  }

  .cjm-meta-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cjm-funnel {
    grid-template-columns: 1fr;
  }

  .cjm-stages {
    grid-template-columns: 1fr;
  }
}

/* ——— About — live page previews (IG + TG) ——— */
.about {
  background:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(47, 107, 79, 0.05), transparent 55%),
    var(--bg);
}

.about__head {
  max-width: 640px;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* 3 equal columns: photo + caption under each */
.about__trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 0 0 16px;
  align-items: start;
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.about-shot {
  margin: 0;
  line-height: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 14px;
  box-shadow: 0 8px 22px -16px rgba(28, 25, 23, 0.18);
}

.about-shot img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.about-shot--a {
  transform: rotate(-0.8deg);
}

.about-shot--d {
  transform: rotate(0.6deg);
}

.about-shot--e {
  transform: rotate(-0.5deg);
}

.about-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  padding: 0 2px;
}

/* Education — full width under mosaic, before books */
.about__learn-card {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  margin: 0 0 12px;
  box-sizing: border-box;
}

.about__learn-card h3 {
  margin-bottom: 10px;
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent-brown);
}

.about__learn-card ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 20px;
}

.about__learn-card li {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.about__learn-card li strong {
  color: var(--text);
  font-weight: 560;
}

.about__books {
  margin: 0 0 24px;
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(122, 86, 64, 0.04), transparent 45%),
    var(--bg-card);
}

.about__books-head {
  margin-bottom: 16px;
  max-width: 36rem;
}

.about__books-head h3 {
  font-size: 1.15rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  color: var(--text);
}

.about__books-head p {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

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

.book-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 100%;
}

.book-card:hover {
  border-color: var(--accent-brown-border);
  box-shadow: 0 10px 24px -18px rgba(28, 25, 23, 0.18);
}

.book-card h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 6px;
  color: var(--text);
}

.book-card p {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin: 0;
}

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

@media (max-width: 520px) {
  .books-grid {
    grid-template-columns: 1fr;
  }
}

.about__blog-lead {
  max-width: 40rem;
  margin: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.about__blog-lead-title {
  display: inline;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

@media (max-width: 900px) {
  .about__trio {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 420px;
  }

  .about-shot {
    transform: none !important;
  }

  .books-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .books-grid {
    grid-template-columns: 1fr;
  }
}

.about__previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 24px);
  align-items: stretch;
  margin-top: 8px;
  margin-bottom: 0;
}

/* Device / page shell — same footprint for IG & TG */
.device {
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow:
    0 4px 6px rgba(28, 25, 23, 0.03),
    0 24px 48px -28px rgba(28, 25, 23, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.device__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.device__profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.device__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.device__avatar--ig {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f9a825, #e1306c 50%, #833ab4);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  border: 0;
}

.device__profile strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.device__profile span {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: -0.01em;
}

.device__follow {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: var(--on-accent);
  letter-spacing: -0.01em;
  transition: background 0.25s ease;
}

.device__follow:hover {
  background: var(--accent-hover);
}

.device__bio {
  margin: 0;
  padding: 12px 16px 14px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
  /* same bio band height on both devices */
  min-height: 4.2em;
  box-sizing: border-box;
}

/* Shared content viewport: IG grid & TG feed same size */
.device__grid,
.device__posts {
  flex: 0 0 auto;
  height: 300px;
  min-height: 300px;
  max-height: 300px;
  box-sizing: border-box;
}

/* Instagram grid */
.device__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  overflow: hidden;
}

.device__grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
  min-height: 0;
}

.device__link {
  display: block;
  padding: 12px 16px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  margin-top: auto; /* pin footer to bottom */
}

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

/* Telegram posts feed */
.device__posts {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-x: hidden;
  overflow-y: auto;
  background: #e8eef5;
  padding: 10px 10px 12px;
  -webkit-overflow-scrolling: touch;
}

.device--tg .device__posts {
  background: linear-gradient(180deg, #dfeaf5 0%, #e8eef5 40%, #edf2f7 100%);
}

.tg-post {
  display: block;
  background: #fff;
  border-radius: 14px;
  padding: 12px 12px 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(28, 25, 23, 0.06);
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.tg-post:last-child {
  margin-bottom: 0;
}

.tg-post:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -12px rgba(28, 25, 23, 0.18);
}

.tg-post__media {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
}

.tg-post__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
}

.tg-post__title {
  margin: 0 0 6px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}

.tg-post__text {
  margin: 0 0 8px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tg-post--text .tg-post__text {
  -webkit-line-clamp: 4;
}

.tg-post__meta {
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: -0.01em;
}

.about__honest {
  margin: 0;
  max-width: 520px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .about__previews {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  .device__grid,
  .device__posts {
    height: 280px;
    min-height: 280px;
    max-height: 280px;
  }
}

@media (max-width: 480px) {
  .device {
    border-radius: 18px;
  }

  .device__bar {
    padding: 12px;
  }
}

/* ——— Match ——— */
.match-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 48px;
}

.match-card {
  padding: clamp(28px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.match-card--yes {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, var(--accent-soft) 0%, rgba(47, 107, 79, 0.02) 100%);
}

.match-label {
  display: block;
  font-size: 0.6875rem;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.match-card ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.match-card li {
  position: relative;
  padding-left: 16px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.match-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.comp-bar {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.comp-bar__item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  gap: 20px;
}

.comp-bar__item span {
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.comp-bar__item em {
  font-style: normal;
  font-size: 0.6875rem;
  color: var(--accent-brown);
  letter-spacing: 0.02em;
}

.bar {
  height: 3px;
  border-radius: var(--radius-full);
  background: rgba(28, 25, 23, 0.08);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #4a8f6c);
  transition: width 1.4s var(--ease);
}

.bar--grow i {
  background: linear-gradient(90deg, var(--accent-brown), #a67c52);
}

.comp-bar.in-view .bar i {
  width: var(--w);
}

/* ——— Contact ——— */
.contact {
  padding-bottom: calc(var(--section-y) + 24px);
}

.contact__inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(56px, 8vw, 88px) 40px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(47, 107, 79, 0.08), transparent 60%),
    var(--bg-elevated);
}

.contact__inner .section__title,
.contact__inner .section__sub,
.contact__inner .eyebrow {
  margin-inline: auto;
}

.contact__inner .section__sub {
  margin-bottom: 40px;
  max-width: 420px;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.contact__secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ——— Footer ——— */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  background: var(--bg-elevated);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-dim);
  letter-spacing: -0.01em;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__brand:hover {
  color: var(--text);
}

.footer__brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg);
}

.footer__tag {
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ——— Reveal ——— */
.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(32px);
  transition:
    opacity var(--duration-slow) var(--ease),
    filter var(--duration-slow) var(--ease),
    transform var(--duration-slow) var(--ease);
}

.reveal.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.18s; }
.delay-3 { transition-delay: 0.26s; }
.delay-4 { transition-delay: 0.34s; }
.delay-5 { transition-delay: 0.42s; }

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .lab-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .case__flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .method-cycle {
    grid-template-columns: repeat(3, 1fr);
  }

  .skill-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .comp-bar__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .nav__links,
  .nav > .btn {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .lab-wall,
  .tools-grid,
  .match-grid,
  .exp-grid {
    grid-template-columns: 1fr;
  }

  .case__flow,
  .method-cycle,
  .skill-cols {
    grid-template-columns: 1fr;
  }

  .contact__inner {
    padding: 48px 24px;
  }

  .method-node {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .word-reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
