:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #5a5a5a;
  --color-accent: #ffe600;
  --color-border: #d8d8d8;
  --color-btn: #1a1a1a;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --max-width: 1120px;
  --section-gap: 6rem;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient line-art decoration */
.page-deco {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  transition: transform 0.2s ease-out;
}

.page-deco__ring {
  position: absolute;
  border: 1.5px solid rgba(17, 17, 17, 0.08);
  border-radius: 50%;
  animation: ring-drift 28s ease-in-out infinite;
}

.page-deco__ring--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
}

.page-deco__ring--2 {
  width: 280px;
  height: 280px;
  bottom: 12%;
  left: -60px;
  animation-delay: -8s;
  animation-duration: 22s;
}

.page-deco__cross {
  position: absolute;
  width: 48px;
  height: 48px;
}

.page-deco__cross::before,
.page-deco__cross::after {
  content: "";
  position: absolute;
  background: rgba(17, 17, 17, 0.1);
}

.page-deco__cross::before {
  width: 100%;
  height: 1.5px;
  top: 50%;
  transform: translateY(-50%);
}

.page-deco__cross::after {
  width: 1.5px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.page-deco__cross--tl {
  top: 18%;
  left: 6%;
  animation: cross-pulse 6s ease-in-out infinite;
}

.page-deco__cross--br {
  bottom: 22%;
  right: 8%;
  animation: cross-pulse 6s ease-in-out infinite 3s;
}

.page-deco__dots {
  position: absolute;
  top: 42%;
  right: 4%;
  opacity: 0.55;
  animation: dots-float 14s ease-in-out infinite;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

ul li {
  margin-bottom: 0.35rem;
  color: var(--color-muted);
}

/* Header */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.75rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.logo {
  font-weight: 700;
  font-size: 1.05rem;
  justify-self: start;
}

.main-nav {
  display: flex;
  gap: 2rem;
  justify-self: center;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--color-text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.main-nav a:hover {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-self: end;
}

.social-links a {
  display: flex;
  color: var(--color-text);
  transition: opacity 0.2s;
}

.social-links a:hover {
  opacity: 0.55;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.hero.is-visible .hero-content > * {
  animation: fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero.is-visible .hero-content > *:nth-child(1) {
  animation-delay: 0.05s;
}
.hero.is-visible .hero-content > *:nth-child(2) {
  animation-delay: 0.12s;
}
.hero.is-visible .hero-content > *:nth-child(3) {
  animation-delay: 0.19s;
}
.hero.is-visible .hero-content > *:nth-child(4) {
  animation-delay: 0.26s;
}
.hero.is-visible .hero-content > *:nth-child(5) {
  animation-delay: 0.33s;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero h1 .name {
  display: block;
}

.hero-role {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.hero-text {
  color: var(--color-muted);
  max-width: 34rem;
  margin: 0 0 1rem;
  font-size: 0.98rem;
}

.hero-objective {
  color: var(--color-muted);
  max-width: 34rem;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
}

.hero-objective strong {
  color: var(--color-text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.hero-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-link:hover {
  color: var(--color-text);
}

.btn-primary {
  display: inline-block;
  background: var(--color-btn);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  perspective: 800px;
}

.line-art-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 1.25rem;
}

.line-art-frame--hero {
  max-width: min(100%, 28rem);
  margin-left: auto;
}

.line-art-frame--photo::before {
  animation: none;
  opacity: 0.2;
}

.line-art-frame--photo .line-art-img {
  border-radius: 2px;
}

.line-art-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px dashed rgba(17, 17, 17, 0.14);
  border-radius: var(--radius-lg);
  animation: frame-dash 12s linear infinite;
}

.line-art-frame__corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-text);
  opacity: 0.35;
}

.line-art-frame__corner--tl {
  top: 0.5rem;
  left: 0.5rem;
  border-right: none;
  border-bottom: none;
}

.line-art-frame__corner--br {
  bottom: 0.5rem;
  right: 0.5rem;
  border-left: none;
  border-top: none;
}

.hero-banner-img,
.line-art-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

.hero-banner-img {
  max-width: min(100%, 26rem);
  animation: hero-float 7s ease-in-out infinite;
}

.line-art-img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.line-art-frame:hover .line-art-img {
  transform: scale(1.03) rotate(-0.5deg);
}

.timeline-row--reverse .line-art-frame {
  margin-left: auto;
}

.timeline-row:not(.timeline-row--reverse) .line-art-frame {
  margin-right: auto;
}

/* Section titles */
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 3rem;
  letter-spacing: -0.02em;
}

.section-title--center {
  text-align: center;
}

.section-title--right {
  text-align: right;
  margin-bottom: 1rem;
}

/* About / skills panel */
.about-panel {
  background: #fafafa;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--section-gap);
}

.about-panel__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.about-block__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.about-block__title--spaced {
  margin-top: 2rem;
}

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list li {
  margin: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tag-list li:hover {
  transform: translateY(-2px);
  border-color: var(--color-text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.subsection-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1.75rem;
}

.accomplishment-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.accomplishment-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.accomplishment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.accomplishment-card.is-visible .badge {
  animation: badge-pop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.accomplishment-card p {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.55;
}

.accomplishment-card strong {
  color: var(--color-text);
  font-weight: 700;
}

/* Education, experience, projects — shared timeline */
.education,
.experience,
.projects {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem var(--section-gap);
}

.project-desc {
  margin: 0.75rem 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.timeline-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4.5rem;
}

.timeline-row--reverse .timeline-content {
  order: 1;
}

.timeline-row--reverse .timeline-visual {
  order: 2;
}

.timeline-visual img {
  width: 100%;
  max-width: 360px;
}

.timeline-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.75rem 0 0.25rem;
}

.timeline-content .subtitle {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  transition: transform 0.25s ease;
}

.timeline-row.is-visible .badge {
  animation: badge-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Experience header */
.experience-header {
  margin-bottom: 2.5rem;
}

.dotted-rule {
  border: none;
  height: 2px;
  margin: 0;
  background-image: radial-gradient(circle, var(--color-border) 1.5px, transparent 1.5px);
  background-size: 10px 2px;
  background-repeat: repeat-x;
  animation: rule-shimmer 4s ease-in-out infinite;
}

.company-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 4rem;
  padding-bottom: 2rem;
}

.company-logos__item {
  display: block;
  transition: color 0.3s ease, transform 0.3s ease;
}

.company-logos.is-visible .company-logos__item {
  animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.company-logos.is-visible .company-logos__item:nth-child(1) {
  animation-delay: 0.05s;
}
.company-logos.is-visible .company-logos__item:nth-child(2) {
  animation-delay: 0.12s;
}
.company-logos.is-visible .company-logos__item:nth-child(3) {
  animation-delay: 0.19s;
}
.company-logos.is-visible .company-logos__item:nth-child(4) {
  animation-delay: 0.26s;
}

.company-logos__item:hover {
  color: var(--color-text);
  transform: translateY(-2px);
}

/* Timeline connector line */
.timeline-section {
  position: relative;
}

.timeline-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8rem;
  bottom: 4rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-border) 8%,
    var(--color-border) 92%,
    transparent
  );
  transform: translateX(-50%);
  opacity: 0.6;
  pointer-events: none;
}

.timeline-row.is-visible .line-art-frame::before {
  animation: frame-dash 8s linear infinite, frame-glow 2s ease 0.3s both;
}

.timeline-row.is-visible .line-art-img {
  animation: line-draw-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Contact */
.contact {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem 4rem;
  text-align: center;
}

.contact-lead {
  color: var(--color-muted);
  margin: 0 0 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-details {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 22rem;
  text-align: left;
}

.contact-details li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: var(--color-muted);
}

.contact-label {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9rem;
}

.contact-details a {
  color: var(--color-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.site-footer p {
  margin: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-2.is-visible {
  transition-delay: 0.15s;
}

.hero-visual.reveal.is-visible .line-art-frame {
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Keyframes */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes ring-drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-12px, 16px) rotate(4deg);
  }
}

@keyframes cross-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.08);
  }
}

@keyframes dots-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes frame-dash {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes frame-glow {
  from {
    border-color: rgba(17, 17, 17, 0.08);
  }
  to {
    border-color: rgba(17, 17, 17, 0.2);
  }
}

@keyframes badge-pop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes line-draw-in {
  from {
    opacity: 0;
    transform: scale(0.96);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes rule-shimmer {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

/* —— Interactive layer —— */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-text));
  transform-origin: left;
  transition: width 0.08s linear;
}

@media (hover: none), (pointer: coarse) {
  .cursor-glow {
    display: none;
  }
}

.cursor-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 230, 0, 0.14) 0%,
    transparent 68%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: transform;
}

body.is-cursor-active .cursor-glow {
  opacity: 1;
}

.page-deco__spark {
  position: absolute;
  bottom: 18%;
  left: 10%;
  animation: spark-spin 18s linear infinite;
}

@keyframes spark-spin {
  to {
    transform: rotate(360deg);
  }
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
}

.section-eyebrow--center {
  text-align: center;
}

.section-eyebrow--right {
  text-align: right;
}

.hero > .section-eyebrow {
  grid-column: 1 / -1;
}

.hero h1 .name {
  position: relative;
  display: inline-block;
  background: linear-gradient(120deg, var(--color-text) 0%, var(--color-text) 100%);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  animation: name-underline 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

@keyframes name-underline {
  to {
    background-size: 100% 3px;
  }
}

.hero-rotate {
  display: inline-grid;
  vertical-align: bottom;
  min-width: 11ch;
  height: 1.35em;
  overflow: hidden;
}

.hero-rotate__word {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  color: var(--color-text);
  font-weight: 700;
}

.hero-rotate__word.is-active {
  opacity: 1;
  transform: translateY(0);
}

.hero-rotate__word.is-exit {
  opacity: 0;
  transform: translateY(-100%);
}

.hero-stats {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}

.hero-stats li {
  margin: 0;
  color: var(--color-muted);
}

.hero-stats__value {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1.1;
}

.hero-stats__value.is-done {
  color: var(--color-text);
}

.hero-stats__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.2rem;
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.tilt-target {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.about-panel__layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 2rem;
}

.about-panel__art {
  margin: 0;
  position: sticky;
  top: 7rem;
}

.line-art-frame--compact {
  padding: 0.75rem;
  max-width: 220px;
}

.line-art-frame--compact .line-art-img {
  max-width: 200px;
}

.tag-list--interactive li {
  cursor: default;
  user-select: none;
}

.tag-list--interactive li.is-popped {
  background: var(--color-accent);
  border-color: var(--color-text);
  transform: translateY(-3px) scale(1.04);
}

.company-marquee {
  overflow: hidden;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.company-marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.company-marquee__item {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-muted);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.company-marquee__item:hover {
  color: var(--color-text);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.timeline-section::before {
  transform: translateX(-50%) scaleY(var(--timeline-progress, 0));
  transform-origin: top center;
  transition: transform 0.2s ease-out;
}

.badge--pop:hover {
  transform: scale(1.05) rotate(-1deg);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
  max-width: 52rem;
  margin: 0 auto;
}

.contact-visual {
  margin: 0;
  justify-self: center;
}

.contact-body {
  max-width: 24rem;
}

.contact-lead {
  margin: 0 0 1.5rem;
  text-align: left;
}

.contact-details {
  max-width: none;
  text-align: left;
}

.contact-card {
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.65rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.contact-card:hover {
  border-color: var(--color-border);
  background: #fafafa;
  transform: translateX(4px);
}

.contact-copy {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  text-align: left;
}

.contact-copy:hover {
  opacity: 0.75;
}

.contact-cta {
  margin-top: 1.25rem;
}

.toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--color-text);
  color: #fff;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 150;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s,
    border-color 0.25s ease, background 0.25s ease;
  z-index: 90;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--color-text);
  background: var(--color-accent);
}

.footer-spark {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
  margin: 0 0.15rem;
  vertical-align: middle;
  animation: footer-blink 2s ease-in-out infinite;
}

@keyframes footer-blink {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.7;
  }
}

.accomplishment-card.is-visible strong {
  display: inline-block;
  animation: stat-highlight 0.6s ease 0.2s both;
}

@keyframes stat-highlight {
  from {
    background: transparent;
  }
  50% {
    background: var(--color-accent);
  }
  to {
    background: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .page-deco,
  .cursor-glow,
  .scroll-progress {
    display: none;
  }

  .timeline-section::before {
    display: none;
  }

  .company-marquee__track {
    animation: none;
  }

  .hero-rotate__word {
    opacity: 1;
    transform: none;
  }

  .hero-rotate__word:not(:first-child) {
    display: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .logo {
    grid-column: 1;
  }

  .social-links {
    grid-column: 2;
    grid-row: 1;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    flex-wrap: wrap;
    gap: 1.25rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 1rem;
  }

  .line-art-frame--hero {
    margin: 0 auto !important;
  }

  .timeline-row,
  .timeline-row--reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline-row--reverse .timeline-content,
  .timeline-row--reverse .timeline-visual {
    order: unset;
  }

  .timeline-visual .line-art-frame,
  .line-art-frame--hero {
    margin: 0 auto !important;
  }

  .timeline-section::before {
    display: none;
  }

  .section-title--right {
    text-align: left;
  }

  .company-logos {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .accomplishment-list {
    grid-template-columns: 1fr;
  }

  .about-panel__layout {
    grid-template-columns: 1fr;
  }

  .about-panel__art {
    position: static;
    justify-self: center;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-lead,
  .contact-details {
    text-align: center;
  }

  .contact-body {
    margin: 0 auto;
  }

  .contact-card:hover {
    transform: none;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .about-panel__inner,
  .education,
  .experience,
  .projects,
  .contact {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .main-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }
}
