/* ==========================================================================
   Rojan Parajuli — Portfolio stylesheet
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-400.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-500.woff2') format('woff2');
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/ibm-plex-mono-600.woff2') format('woff2');
}

:root {
  --bg: #0D0E0C;
  --surface: #171815;
  --surface-2: #1d1e1a;
  --text: #EDE8D8;
  --muted: #A3A092;
  --accent: #F28C28;
  --highlight: #FFB84D;
  --border: #46453D;
  --warning: #E0704C;
  --ok: #8fd19e;
  --font-head: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --nav-h: 68px;
  --ticker-h: 26px;
  --header-h: calc(var(--nav-h) + var(--ticker-h));
  --radius: 4px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

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

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

.text-link {
  color: var(--accent);
  border-bottom: 1px solid rgba(242, 140, 40, 0.35);
  transition: border-color .2s;
}

.text-link:hover {
  border-color: var(--accent);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Background decoration ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

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

/* ---------- Layout ---------- */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}

@media (max-width: 600px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}

section {
  position: relative;
  z-index: 2;
  padding-top: 88px;
  padding-bottom: 88px;
}

@media (max-width: 720px) {
  section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 2.5px;
  color: var(--accent);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 16.5px;
  color: var(--muted);
  margin-bottom: 48px;
  max-width: 680px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}

.panel::before,
.panel::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  background: var(--accent);
}

.panel::before {
  width: 18px;
  height: 2px;
}

.panel::after {
  width: 2px;
  height: 18px;
}

/* ---------- Header / navigation ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 14, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 600px) {
  .nav-inner {
    padding: 0 16px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 15px;
  border-radius: var(--radius);
}

nav.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

nav.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap;
}

nav.nav-links a:hover {
  color: var(--text);
  border-color: var(--border);
}

nav.nav-links a.active {
  color: var(--accent);
  border-color: var(--border);
  background: rgba(242, 140, 40, 0.06);
}

nav.nav-links a.nav-cta {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  margin-left: 8px;
  font-weight: 600;
}

nav.nav-links a.nav-cta:hover {
  background: var(--highlight);
  border-color: var(--highlight);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: transform .2s, opacity .2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 980px) {
  nav.nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 16px 16px;
    gap: 2px;
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  nav.nav-links.open {
    transform: translateY(0);
    visibility: visible;
  }

  nav.nav-links a {
    padding: 14px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  nav.nav-links a.nav-cta {
    margin: 12px 0 0;
    text-align: center;
    border-radius: var(--radius);
  }

  .nav-toggle {
    display: flex;
  }
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

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

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--highlight);
  border-color: var(--highlight);
}

.btn:disabled {
  opacity: .6;
  cursor: wait;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hero-photo {
    order: -1;
  }
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-kicker .avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ok);
  border: 1px solid rgba(143, 209, 158, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  letter-spacing: 1px;
}

.hero-kicker .avail::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px var(--ok);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(42px, 6.4vw, 78px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -1.5px;
}

.hero h1 .cursor {
  display: inline-block;
  width: 0.45em;
  background: var(--accent);
  margin-left: 6px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero .aka {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
}

.hero .aka strong {
  color: var(--text);
  font-weight: 500;
}

.hero .role {
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--accent);
  margin-top: 22px;
  line-height: 1.35;
}

.hero p.desc {
  max-width: 580px;
  color: var(--muted);
  margin-top: 16px;
  font-size: 17px;
}

.hero p.desc strong {
  color: var(--text);
  font-weight: 500;
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .hero-cta .btn {
    flex: 1 1 100%;
  }
}

.hero-stats {
  list-style: none;
  margin-top: 44px;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hstat b {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  color: var(--accent);
  font-weight: 700;
}

.hstat span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-photo {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 360px;
}

.hero-photo .frame {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  position: relative;
}

.hero-photo .frame::after {
  content: '';
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 60%;
  height: 60%;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  pointer-events: none;
}

.hero-photo picture,
.hero-photo img {
  width: 100%;
  height: 100%;
}

.hero-photo img {
  object-fit: cover;
  border-radius: 2px;
}

.hero-photo .tagline {
  position: absolute;
  bottom: -14px;
  left: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-photo {
    max-width: 260px;
  }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-photo {
    max-width: 320px;
  }
}

.about-photo {
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-body {
  padding: 32px;
}

@media (max-width: 600px) {
  .about-body {
    padding: 22px;
  }
}

.about-text p {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-text p strong {
  color: var(--text);
  font-weight: 500;
}

.facts {
  margin-top: 22px;
  border-top: 1px solid var(--border);
}

.fact-row {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  gap: 20px;
}

.fact-row:last-child {
  border-bottom: none;
}

.fact-row dt {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-top: 2px;
  flex-shrink: 0;
}

.fact-row dd {
  color: var(--text);
  text-align: right;
}

.fact-row dd a {
  color: var(--accent);
}

@media (max-width: 480px) {
  .fact-row {
    flex-direction: column;
    gap: 2px;
  }

  .fact-row dd {
    text-align: left;
  }
}

/* ---------- Experience (companies) ---------- */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
}

.company-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.company-card .label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.company-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.company-card p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.company-card ul {
  list-style: none;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-card li {
  font-family: var(--font-mono);
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  color: var(--text);
}

/* ---------- Education timeline ---------- */
.timeline {
  position: relative;
  padding-left: 40px;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}

.t-item {
  position: relative;
  padding-bottom: 40px;
}

.t-item:last-child {
  padding-bottom: 0;
}

.t-node {
  position: absolute;
  left: -40px;
  top: 24px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 10px rgba(242, 140, 40, 0.5);
}

.t-date {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.t-role {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 2px;
}

.t-org {
  font-size: 15px;
  color: var(--muted);
}

.edu-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

.edu-thumb {
  width: 72px;
  height: 72px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-shrink: 0;
  overflow: hidden;
  background: #f4f1e8;
}

.edu-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

/* ---------- Skills ---------- */
.skills-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 24px;
}

.skill-group {
  padding: 26px;
}

.skill-group h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  transition: border-color .2s;
}

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

.chip.primary {
  border-color: rgba(242, 140, 40, 0.6);
  color: var(--highlight);
}

.skill-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.skill-icon.invert {
  filter: invert(0.9);
}

.skill-icon-fa {
  width: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Projects ---------- */
.project-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

.filter-btn[aria-pressed="true"] {
  color: var(--bg);
  border-color: var(--accent);
  background: var(--accent);
}

.filter-btn .count {
  margin-left: 4px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.case-file {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}

.case-file[hidden] {
  display: none;
}

@media (hover: hover) {
  .case-file:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
  }
}

.case-thumb {
  height: 180px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at 50% 40%, #24251f, #0e0f0c 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.case-thumb img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 14px;
}

.case-thumb.light {
  background: radial-gradient(circle at 50% 40%, #f4f1e8, #d9d5c8 80%);
}

.case-thumb.wide img {
  border-radius: 6px;
}

.case-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.case-client {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.case-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  list-style: none;
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--muted);
}

.case-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
}

.case-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.case-status.stable {
  color: var(--ok);
}

.case-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
}

.case-file .btn {
  align-self: flex-start;
  padding: 10px 16px;
  font-size: 12px;
}

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 24px;
}

.service-card {
  padding: 28px;
}

.service-card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ---------- FAQ ---------- */
.faq {
  margin-top: 72px;
}

.faq h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  padding: 20px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color .2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--highlight);
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--muted);
  transition: transform .25s, color .25s;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-item p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
  padding: 0 4px 22px;
  max-width: 760px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-panel {
  padding: 32px;
}

@media (max-width: 600px) {
  .contact-panel {
    padding: 22px;
  }
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6f6d63;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
}

.form-msg {
  margin-top: 14px;
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid currentColor;
}

.form-msg[hidden] {
  display: none;
}

.form-msg.success {
  color: var(--ok);
}

.form-msg.error {
  color: var(--warning);
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.channel {
  background: var(--surface);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background .2s;
}

a.channel:hover {
  background: var(--surface-2);
}

.channel .ch-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
  flex-shrink: 0;
}

.channel .label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.channel .value {
  display: block;
  font-size: 16px;
  word-break: break-word;
}

.channel .arrow {
  margin-left: auto;
  color: var(--accent);
  font-family: var(--font-mono);
}

.social-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.social-row a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color .2s, border-color .2s;
}

.social-row a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Footer ---------- */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.footer-grid h2 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-grid h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 6px;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, border-color .2s;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  border-color: var(--accent);
}

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Focus & motion ---------- */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Miss Minutes (TVA guide, fan tribute) ---------- */
.mm {
  position: fixed;
  left: 16px;
  bottom: 12px;
  z-index: 95;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  pointer-events: none;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.mm > * {
  pointer-events: auto;
}

.mm-figure {
  width: 132px;
  height: 134px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(242, 140, 40, 0.35));
  animation: mm-arrive .9s cubic-bezier(.2, 1.4, .4, 1) both, mm-bob 3.2s ease-in-out 1s infinite;
  transform-origin: 50% 100%;
}

.mm-figure svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mm-figure:hover .mm-arm-r,
.mm-figure:focus-visible .mm-arm-r {
  animation: mm-wave .5s ease-in-out 2;
}

.mm-arm-r {
  transform-origin: 116px 84px;
}

.mm-eyes {
  transform-origin: 70px 60px;
  animation: mm-blink 5s infinite;
}

.mm-open {
  opacity: 0;
  transform-origin: 70px 88px;
}

.mm-smile {
  transition: opacity .08s;
}

.mm.talking .mm-smile {
  opacity: 0;
}

.mm.talking .mm-open {
  opacity: 1;
  animation: mm-talk .18s ease-in-out infinite alternate;
}

@keyframes mm-talk {
  from { transform: scaleY(.25); }
  to { transform: scaleY(1); }
}

.mm.talking .mm-figure {
  animation: mm-bob 1.4s ease-in-out infinite;
}

@keyframes mm-arrive {
  0% { opacity: 0; transform: translateY(40px) scale(.4); }
  100% { opacity: 1; transform: none; }
}

@keyframes mm-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

@keyframes mm-wave {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(-38deg); }
}

@keyframes mm-blink {
  0%, 94%, 100% { transform: scaleY(1); }
  97% { transform: scaleY(.1); }
}

.mm-bubble {
  position: relative;
  max-width: 290px;
  margin-bottom: 92px;
  background: #FFF4E0;
  color: #2a1a08;
  border: 2px solid var(--accent);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 64px 12px 14px;
  font-size: 14.5px;
  line-height: 1.45;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  animation: mm-pop .25s ease-out;
}

.mm-bubble[hidden] {
  display: none;
}

.mm-bubble::after {
  content: '';
  position: absolute;
  left: -9px;
  bottom: 10px;
  border: 8px solid transparent;
  border-right-color: var(--accent);
  border-left: 0;
}

.mm-name {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8a4206;
  margin-bottom: 2px;
}

.mm-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 0;
  background: none;
  color: #8a5a2a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.mm-hint {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .5px;
  color: #c0560f;
  animation: pulse 1.6s ease-in-out infinite;
}

.mm-hint[hidden] {
  display: none;
}

.mm-voice {
  position: absolute;
  top: 6px;
  right: 34px;
  width: 26px;
  height: 24px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: #8a5a2a;
  font-size: 13px;
  cursor: pointer;
}

.mm-voice[hidden] {
  display: none;
}

.mm-voice:hover,
.mm-voice[aria-pressed="true"] {
  color: #2a1a08;
  background: rgba(242, 140, 40, 0.18);
}

.mm-voice[aria-pressed="true"] {
  color: #c0560f;
}

.mm-close:hover {
  color: #2a1a08;
}

@keyframes mm-pop {
  from { opacity: 0; transform: translateY(6px) scale(.96); }
  to { opacity: 1; transform: none; }
}

.mm.dismissed .mm-bubble {
  display: none;
}

@media (max-width: 600px) {
  .mm {
    left: 8px;
    bottom: 8px;
  }

  .mm-figure {
    width: 92px;
    height: 94px;
  }

  .mm-bubble {
    max-width: calc(100vw - 112px);
    margin-bottom: 62px;
    font-size: 13.5px;
  }
}

@media print {
  .mm,
  .to-top {
    display: none;
  }
}

/* ---------- Extra responsive tuning ---------- */
@media (min-width: 1600px) {
  .wrap,
  .nav-inner {
    max-width: 1280px;
  }

  body {
    font-size: 17px;
  }
}

@media (max-width: 1100px) and (min-width: 981px) {
  nav.nav-links a {
    padding: 8px 9px;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 28px;
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .hero-stats {
    gap: 18px;
  }

  .hstat b {
    font-size: 24px;
  }

  .hstat span {
    font-size: 11px;
  }

  .social-row a {
    flex-direction: column;
    gap: 4px;
    font-size: 12.5px;
    padding: 12px 6px;
  }

  .channel {
    padding: 16px;
  }

  .company-card,
  .service-card,
  .skill-group {
    padding: 20px;
  }

  .case-body {
    padding: 18px;
  }

  .timeline {
    padding-left: 28px;
  }

  .t-node {
    left: -28px;
  }

  .edu-row {
    gap: 14px;
  }

  .edu-thumb {
    width: 56px;
    height: 56px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 32px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 32px;
  }

  .hero-photo {
    order: 0;
    max-width: 180px;
  }

  .hero-stats {
    margin-top: 28px;
  }

  .mm-figure {
    width: 76px;
    height: 78px;
  }

  .mm-bubble {
    margin-bottom: 48px;
  }
}

@media (hover: none) {
  .chip:hover,
  .social-row a:hover {
    border-color: var(--border);
  }
}

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

.case-file .btn-icon {
  padding: 10px 14px;
  font-size: 15px;
}

.case-actions .btn {
  align-self: stretch;
}

/* ---------- Company developer pages ---------- */
.page-hero {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 56px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 36px;
}

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

.breadcrumb [aria-current] {
  color: var(--text);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: center;
}

@media (max-width: 820px) {
  .page-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-photo {
    max-width: 220px;
    order: -1;
  }
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -1px;
}

.accent-text {
  color: var(--accent);
}

.page-hero .aka {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  margin-top: 12px;
}

.page-hero .aka strong {
  color: var(--text);
  font-weight: 500;
}

.page-lead {
  color: var(--muted);
  font-size: 17.5px;
  max-width: 640px;
  margin-top: 18px;
}

.page-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.page-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.page-section .section-title {
  margin-bottom: 24px;
}

.page-text p {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.75;
  max-width: 760px;
  margin-bottom: 14px;
}

.page-more {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.page-more h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.page-more ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.company-more {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  align-self: flex-start;
}

.company-more:hover {
  text-decoration: underline;
}

/* ---------- Project detail pages ---------- */
.case-title a:hover {
  color: var(--accent);
}

.case-file {
  position: relative;
}

.case-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.case-file .btn {
  position: relative;
  z-index: 2;
}

.case-title a:focus-visible {
  outline: none;
}

.case-file:has(.case-title a:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.case-more {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.proj-hero-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

@media (max-width: 820px) {
  .proj-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

.proj-icon {
  aspect-ratio: 1;
  max-width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: radial-gradient(circle at 50% 40%, #24251f, #0e0f0c 75%);
}

.proj-icon.light {
  background: radial-gradient(circle at 50% 40%, #f4f1e8, #d9d5c8 80%);
}

.proj-icon img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 22px;
}

.proj-icon.wide img {
  border-radius: 8px;
}

@media (max-width: 820px) {
  .proj-icon {
    max-width: 140px;
    padding: 18px;
  }
}

.page-hero .proj-aka {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 14px;
}

.proj-aka strong {
  color: var(--text);
  font-weight: 500;
}

.proj-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .proj-overview {
    grid-template-columns: minmax(0, 1fr);
  }
}

.proj-facts {
  margin-top: 0;
  padding: 6px 22px;
}

.feature-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}

.feature {
  padding: 20px 22px;
}

.feature h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.shots {
  list-style: none;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  overscroll-behavior-x: contain;
}

.shots li {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.shots img {
  height: min(520px, 70vh);
  width: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.shots:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.stack-panel {
  padding: 26px;
}

.stack-panel h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.stack-panel .chips {
  margin-bottom: 32px;
}

.arch-list {
  display: grid;
  gap: 18px;
}

.arch-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
}

@media (max-width: 640px) {
  .arch-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

.arch-row dt {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--highlight);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding-top: 3px;
}

.arch-row dd {
  color: var(--muted);
  line-height: 1.7;
}

.install {
  margin-top: 28px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg);
}

.install-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.install code,
.faq-item code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--highlight);
  overflow-wrap: anywhere;
}

/* ---------- TVA atmosphere (fan tribute) ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 184, 77, 0.035) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

body::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  top: -20vh;
  height: 18vh;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(255, 184, 77, 0.045), transparent);
  animation: tva-scan 9s linear infinite;
}

@keyframes tva-scan {
  to { transform: translateY(140vh); }
}

.tva-ticker {
  height: var(--ticker-h);
  overflow: hidden;
  border-top: 1px solid rgba(242, 140, 40, 0.25);
  background: linear-gradient(to bottom, rgba(242, 140, 40, 0.10), rgba(242, 140, 40, 0.04));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--highlight);
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.tva-live {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 14px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.tva-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bg);
  animation: pulse 1.2s ease-in-out infinite;
}

.tva-track {
  display: flex;
  animation: tva-marquee 48s linear infinite;
  text-shadow: 0 0 8px rgba(255, 184, 77, 0.55);
}

.tva-track span {
  padding-right: 48px;
}

@keyframes tva-marquee {
  to { transform: translateX(-50%); }
}

.hero {
  position: relative;
}

.hero > .hero-grid {
  position: relative;
  z-index: 1;
}

.sacred-timeline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6%;
  width: 100%;
  height: 220px;
  pointer-events: none;
  opacity: .55;
  overflow: visible;
}

.sacred-timeline path {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(242, 140, 40, 0.9)) drop-shadow(0 0 16px rgba(242, 140, 40, 0.5));
}

.sacred-timeline .st-main {
  stroke-width: 2.5;
  stroke-dasharray: 14 10;
  animation: st-flow 2.8s linear infinite;
}

.sacred-timeline .st-branch {
  stroke-width: 1.4;
  opacity: .7;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: st-branch 7s ease-in-out infinite;
}

.sacred-timeline .st-branch:nth-of-type(3) { animation-delay: 1.8s; }
.sacred-timeline .st-branch:nth-of-type(4) { animation-delay: 3.4s; }
.sacred-timeline .st-branch:nth-of-type(5) { animation-delay: 5s; }

.sacred-timeline circle {
  fill: var(--highlight);
  filter: drop-shadow(0 0 6px var(--accent));
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes st-flow {
  to { stroke-dashoffset: -48; }
}

@keyframes st-branch {
  0% { stroke-dashoffset: 600; opacity: 0; }
  15% { opacity: .8; }
  55% { stroke-dashoffset: 0; opacity: .8; }
  85%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

.hero h1 {
  text-shadow: 0 0 22px rgba(242, 140, 40, 0.28);
  animation: crt-on 1.1s ease-out both;
}

@keyframes crt-on {
  0% { opacity: 0; filter: brightness(3) blur(2px); transform: scaleY(.04); }
  35% { opacity: 1; transform: scaleY(1); }
  45% { opacity: .55; }
  55% { opacity: 1; filter: none; }
  70% { opacity: .8; }
  100% { opacity: 1; }
}

.section-title,
.page-hero h1 {
  text-shadow: 0 0 18px rgba(242, 140, 40, 0.18);
}

.tva-stamp {
  position: absolute;
  top: 18px;
  right: -16px;
  z-index: 2;
  padding: 6px 12px;
  border: 3px double var(--warning);
  border-radius: 4px;
  color: var(--warning);
  background: rgba(13, 14, 12, 0.55);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(9deg);
  mix-blend-mode: screen;
  animation: stamp-in .5s cubic-bezier(.2, 1.6, .4, 1) 1.2s both;
}

.tva-stamp small {
  display: block;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  opacity: .8;
}

@keyframes stamp-in {
  0% { opacity: 0; transform: rotate(9deg) scale(2.4); }
  100% { opacity: .92; transform: rotate(9deg) scale(1); }
}

.project-grid {
  counter-reset: case;
}

.case-file {
  counter-increment: case;
}

.case-thumb {
  position: relative;
}

.case-thumb::after {
  content: 'TVA // CASE ' counter(case, decimal-leading-zero);
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--accent);
  opacity: .75;
}

.case-thumb.light::after {
  color: #8a4206;
}

@media (max-width: 600px) {
  .tva-ticker {
    font-size: 10px;
  }

  .tva-stamp {
    right: -8px;
    font-size: 10px;
  }

  .sacred-timeline {
    height: 140px;
    bottom: 2%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  .tva-track,
  .sacred-timeline *,
  .hero h1,
  .tva-stamp,
  .mm.talking .mm-open {
    animation: none !important;
  }

  body::after {
    display: none;
  }

  .sacred-timeline .st-branch {
    stroke-dashoffset: 0;
  }
}
