/* =========================================================
   jaccsoft.com — Jose Couto
   1. Tokens & themes
   2. Base & layout
   3. Background (aurora + robot)
   4. Header & nav
   5. Buttons & shared UI
   6. Hero
   7. Sections: about, skills, experience, work, contact
   8. Footer
   9. Motion & responsive
   ========================================================= */

/* 1. Tokens & themes ------------------------------------- */
:root {
  --bg: #07080f;
  --bg-alt: #0b0d18;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f8;
  --text-muted: #9aa3bb;
  --text-dim: #6c7590;

  --accent: #6f7bff;
  --accent-2: #38e1c6;
  --accent-3: #ff7ac6;
  --accent-soft: rgba(111, 123, 255, 0.16);

  --grad: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 0 1px var(--line), 0 30px 70px -40px rgba(111, 123, 255, 0.7);

  --radius: 18px;
  --radius-sm: 11px;
  --radius-pill: 999px;

  --shell: 1140px;
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --header-h: 72px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --blob-opacity: 0.55;
  --grid-opacity: 0.35;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-alt: #eef0f8;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-strong: #ffffff;
  --line: rgba(16, 20, 40, 0.1);
  --line-strong: rgba(16, 20, 40, 0.2);
  --text: #14182b;
  --text-muted: #565f7d;
  --text-dim: #7a8299;

  --accent: #4b57e8;
  --accent-2: #12a394;
  --accent-3: #e0499f;
  --accent-soft: rgba(75, 87, 232, 0.12);

  --shadow: 0 24px 50px -32px rgba(20, 24, 43, 0.45);
  --shadow-glow: 0 0 0 1px var(--line), 0 26px 60px -40px rgba(75, 87, 232, 0.55);
  --blob-opacity: 0.4;
  --grid-opacity: 0.5;
  color-scheme: light;
}

/* 2. Base & layout --------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.06rem);
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease);
}

strong { color: var(--text); font-weight: 600; }

svg { width: 100%; height: 100%; }

.icon,
.btn__icon,
.contact-card__icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 50%;
  translate: -50% -200%;
  z-index: 999;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  transition: translate 0.25s var(--ease);
}
.skip-link:focus-visible { translate: -50% 0; }

/* 3. Background (aurora) --------------------------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -10%, color-mix(in oklab, var(--accent) 12%, transparent) 0%, transparent 60%),
    var(--bg);
}

.aurora__blob {
  position: absolute;
  width: 46vw;
  height: 46vw;
  min-width: 340px;
  min-height: 340px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: var(--blob-opacity);
  will-change: transform;
}

.aurora__blob--1 {
  top: -14vw;
  left: -8vw;
  background: radial-gradient(circle, var(--accent) 0%, transparent 68%);
  animation: drift-a 24s var(--ease) infinite alternate;
}
.aurora__blob--2 {
  top: 22vw;
  right: -12vw;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 68%);
  animation: drift-b 30s var(--ease) infinite alternate;
}
.aurora__blob--3 {
  bottom: -18vw;
  left: 28vw;
  background: radial-gradient(circle, var(--accent-3) 0%, transparent 68%);
  animation: drift-c 27s var(--ease) infinite alternate;
}

.aurora__grid {
  position: absolute;
  inset: 0;
  opacity: var(--grid-opacity);
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(105% 75% at 50% 0%, #000 0%, transparent 78%);
}

@keyframes drift-a {
  to { transform: translate3d(9vw, 7vw, 0) scale(1.15); }
}
@keyframes drift-b {
  to { transform: translate3d(-11vw, 5vw, 0) scale(1.2); }
}
@keyframes drift-c {
  to { transform: translate3d(6vw, -9vw, 0) scale(1.1); }
}

.robot-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.robot-bg.is-ready { opacity: 0.92; }
.robot-bg.is-poking { z-index: 2; }
html.is-robot-hot,
html.is-robot-hot body {
  cursor: pointer;
}

[data-theme="light"] .robot-bg.is-ready { opacity: 0.38; }

@supports (animation-timeline: scroll()) {
  .robot-bg.is-ready {
    animation: robot-recede linear both;
    animation-timeline: scroll(root block);
    animation-range: 0 85vh;
  }
  @keyframes robot-recede {
    from { opacity: 0.92; }
    to { opacity: 0.22; }
  }
  [data-theme="light"] .robot-bg.is-ready {
    animation-name: robot-recede-light;
  }
  @keyframes robot-recede-light {
    from { opacity: 0.38; }
    to { opacity: 0.1; }
  }
}

/* Scroll progress: CSS-only where scroll-driven animations exist */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  scale: 0 1;
  background: var(--grad);
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: progress-grow linear;
    animation-timeline: scroll(root block);
  }
  @keyframes progress-grow {
    from { scale: 0 1; }
    to { scale: 1 1; }
  }
}

/* 4. Header & nav ---------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}

.site-header.is-stuck {
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(140%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 22px -10px var(--accent);
}

.brand__text { font-size: 0.98rem; }
.brand__dot { color: var(--accent-2); }

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__link {
  position: relative;
  display: block;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.16rem;
  width: 0;
  height: 2px;
  translate: -50% 0;
  border-radius: 2px;
  background: var(--grad);
  transition: width 0.3s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 42%; }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { width: 42%; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.icon--sun { display: none; }
[data-theme="light"] .icon--sun { display: block; }
[data-theme="light"] .icon--moon { display: none; }

.icon--sfx-off { display: none; }
.icon-btn.is-muted .icon--sfx-on { display: none; }
.icon-btn.is-muted .icon--sfx-off { display: block; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav-toggle__bar {
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* 5. Buttons & shared UI --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background-color 0.28s var(--ease), border-color 0.28s var(--ease), color 0.28s var(--ease);
}
.btn__icon { width: 18px; height: 18px; }

.btn--primary {
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 18px 40px -20px var(--accent);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 55px -22px var(--accent);
}
.btn--primary.is-poked {
  transform: translateY(3px) scale(0.96);
  box-shadow: 0 10px 24px -16px var(--accent);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-glow);
}

.card__glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 160px;
  z-index: -1;
  background: radial-gradient(50% 60% at 50% 50%, var(--accent-soft) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.card:hover .card__glow { opacity: 1; }

.card__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.12rem;
  margin-bottom: 0.9rem;
}

.card__idx {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  padding: 0.25rem 0.4rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.chips li {
  padding: 0.32rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.chips li:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.chips--sm li { font-size: 0.74rem; padding: 0.22rem 0.6rem; }

.grid { display: grid; gap: 1.1rem; }
.grid--skills { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid--work { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Section shell */
.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8rem);
}
.section--alt {
  background: color-mix(in oklab, var(--bg-alt) 70%, transparent);
  border-block: 1px solid var(--line);
}

.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }

.section__kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.section__title { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.05rem); }

.section__sub {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* 6. Hero ------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 3rem) 5rem;
}

.hero__inner { max-width: 900px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.84rem;
  backdrop-filter: blur(8px);
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}
.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-2);
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 0; transform: scale(3.2); }
}

.hero__title { margin-bottom: 0.7rem; }

.hero__hi {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.hero__name {
  display: block;
  font-size: clamp(2.9rem, 1.4rem + 7vw, 6.2rem);
  line-height: 0.95;
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}

.hero__role {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.9rem + 1.2vw, 1.85rem);
  color: var(--text);
}
.hero__role-static { color: var(--text-dim); }
.hero__typed { display: inline-flex; align-items: baseline; }
.typed { color: var(--accent-2); }

.caret {
  display: inline-block;
  width: 3px;
  height: 1.05em;
  margin-left: 4px;
  translate: 0 0.12em;
  border-radius: 2px;
  background: var(--accent-3);
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__lede {
  max-width: 60ch;
  margin-bottom: 2.1rem;
  color: var(--text-muted);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.16rem);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3.2rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem 1.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem);
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-dim);
  font-size: 0.86rem;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  opacity: 0.75;
  transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}
.scroll-hint:hover { opacity: 1; border-color: var(--accent); }
.scroll-hint__mouse {
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-2);
  animation: wheel 1.9s var(--ease) infinite;
}
@keyframes wheel {
  0% { transform: translateY(-7px); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* 7a. About ---------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.about__copy p { color: var(--text-muted); }

.about__list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.about__list li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}
.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--grad);
}

.card--profile { padding: 1.4rem 1.6rem; }

.profile__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}
.profile__row:last-child { border-bottom: 0; padding-bottom: 0; }
.profile__row:first-child { padding-top: 0; }

.profile__key {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 0.15rem;
}
.profile__val { text-align: right; color: var(--text); }
.profile__val--ok { color: var(--accent-2); }

/* 7b. Skills bars ---------------------------------------- */
.bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem 2.4rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.bar__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.bar__pct { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.8rem; }

.bar__track {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  overflow: hidden;
}

.bar__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad);
  transition: width 1.1s var(--ease);
}

.bars.is-visible [data-level="85"] .bar__fill { width: 85%; }
.bars.is-visible [data-level="90"] .bar__fill { width: 90%; }
.bars.is-visible [data-level="95"] .bar__fill { width: 95%; }

.bars .bar:nth-child(2) .bar__fill { transition-delay: 0.08s; }
.bars .bar:nth-child(3) .bar__fill { transition-delay: 0.16s; }
.bars .bar:nth-child(4) .bar__fill { transition-delay: 0.24s; }
.bars .bar:nth-child(5) .bar__fill { transition-delay: 0.32s; }
.bars .bar:nth-child(6) .bar__fill { transition-delay: 0.4s; }

/* 7c. Timeline ------------------------------------------- */
.timeline {
  position: relative;
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.4rem);
  padding-left: 1.85rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 5px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2) 55%, transparent);
  opacity: 0.5;
}

.tl { position: relative; }

.tl__dot {
  position: absolute;
  top: 0.55rem;
  left: -1.85rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.tl:hover .tl__dot { background: var(--accent); transform: scale(1.15); }

.tl__date {
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--accent-2);
}

.tl__role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
}

.tl__type {
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tl__org {
  margin: 0.3rem 0 0.85rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.tl__points { display: grid; gap: 0.45rem; }
.tl__points li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}
.tl__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-3);
}

/* 7d. Work ----------------------------------------------- */
.card--work { display: flex; flex-direction: column; gap: 0.55rem; }

.card__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-3);
}
.card--work .card__title { margin-bottom: 0.15rem; }
.card__body { color: var(--text-muted); font-size: 0.95rem; }
.card--work .chips { margin-top: auto; padding-top: 0.9rem; }

/* 7e. Contact -------------------------------------------- */
.cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.6rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  text-align: center;
}

.cta-panel__glow {
  position: absolute;
  inset: -60% -10% auto;
  height: 340px;
  z-index: -1;
  background: radial-gradient(45% 60% at 50% 60%, color-mix(in oklab, var(--accent) 26%, transparent) 0%, transparent 70%);
}

.cta-panel__title {
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem);
  margin-bottom: 0.8rem;
}

.cta-panel__sub {
  max-width: 52ch;
  margin-inline: auto;
  color: var(--text-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
  gap: 0.9rem;
  margin-top: 2.2rem;
  text-align: left;
}

.contact-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  gap: 0.1rem 0.85rem;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.contact-card__icon {
  grid-row: span 2;
  align-self: center;
  width: 24px;
  height: 24px;
  color: var(--accent-2);
}

.contact-card__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-card__value {
  font-weight: 500;
  font-size: 0.95rem;
  word-break: break-word;
}

/* 8. Footer ---------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.8rem;
  background: color-mix(in oklab, var(--bg-alt) 60%, transparent);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.site-footer__copy,
.site-footer__meta {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.to-top {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.to-top:hover { transform: translateY(-3px); color: var(--text); border-color: var(--accent); }

/* 9. Motion & responsive --------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

.grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.grid .reveal:nth-child(4) { transition-delay: 0.21s; }
.grid .reveal:nth-child(5) { transition-delay: 0.28s; }
.grid .reveal:nth-child(6) { transition-delay: 0.35s; }

.hero__inner .reveal:nth-child(2) { transition-delay: 0.08s; }
.hero__inner .reveal:nth-child(3) { transition-delay: 0.16s; }
.hero__inner .reveal:nth-child(4) { transition-delay: 0.24s; }
.hero__inner .reveal:nth-child(5) { transition-delay: 0.32s; }
.hero__inner .reveal:nth-child(6) { transition-delay: 0.4s; }

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

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    padding: 1rem var(--gutter) 1.4rem;
    background: color-mix(in oklab, var(--bg) 94%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .nav__link { padding: 0.75rem 0.4rem; font-size: 1.02rem; border-radius: var(--radius-sm); }
  .nav__link::after { left: 0.4rem; translate: 0 0; bottom: 0.5rem; }

  .hero { min-height: auto; padding-block: calc(var(--header-h) + 3.5rem) 4.5rem; }
  .robot-bg.is-ready { opacity: 0.28; }
  .scroll-hint { display: none; }
  .site-footer__meta { order: 3; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .aurora__blob { animation: none; }
  .robot-bg { display: none; }
}

@media print {
  .site-header,
  .aurora,
  .robot-bg,
  .scroll-progress,
  .scroll-hint,
  .to-top { display: none !important; }
  body { background: #fff; color: #000; }
}
