:root {
  --bg: #f4efe8;
  --bg-secondary: #fff8ef;
  --panel: rgba(255, 252, 247, 0.7);
  --panel-strong: rgba(255, 252, 247, 0.9);
  --text: #3f475c;
  --heading: #131a2b;
  --muted: #676f86;
  --line: rgba(19, 26, 43, 0.1);
  --accent: #ff6b3d;
  --accent-soft: rgba(255, 107, 61, 0.14);
  --accent-alt: #0f766e;
  --accent-alt-soft: rgba(15, 118, 110, 0.14);
  --shadow: 0 24px 90px rgba(41, 28, 14, 0.12);
  --shadow-soft: 0 16px 45px rgba(41, 28, 14, 0.08);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 18px;
}

body[data-theme='dark'] {
  --bg: #090d18;
  --bg-secondary: #12192b;
  --panel: rgba(15, 21, 37, 0.76);
  --panel-strong: rgba(15, 21, 37, 0.92);
  --text: #bcc6dc;
  --heading: #f6f2eb;
  --muted: #95a0bb;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ff8a5c;
  --accent-soft: rgba(255, 138, 92, 0.16);
  --accent-alt: #65d6c5;
  --accent-alt-soft: rgba(101, 214, 197, 0.14);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 14px 50px rgba(0, 0, 0, 0.24);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 107, 61, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.14), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
  transition: background 0.35s ease, color 0.25s ease;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

button {
  font: inherit;
}

h1,
h2,
h3,
.logo,
.footer-logo {
  font-family: 'Syne', sans-serif;
  color: var(--heading);
}

p {
  color: var(--text);
}

.container {
  width: min(90%, 1120px);
  margin: 0 auto;
}

.site-noise,
.orb {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.site-noise {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 92%);
  opacity: 0.2;
  z-index: 0;
}

.orb {
  inset: auto;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: 0;
}

.orb-one {
  width: 340px;
  height: 340px;
  top: 8%;
  left: -6%;
  background: rgba(255, 107, 61, 0.22);
}

.orb-two {
  width: 420px;
  height: 420px;
  right: -10%;
  top: 34%;
  background: rgba(15, 118, 110, 0.18);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 239, 232, 0.58);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

body[data-theme='dark'] .site-header {
  background: rgba(9, 13, 24, 0.62);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.control-btn,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--heading);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}

.control-btn:hover,
.control-btn:focus-visible,
.nav-toggle:hover,
.nav-toggle:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 61, 0.35);
  box-shadow: var(--shadow-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
}

.nav-toggle-bar {
  width: 1.3rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

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

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

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

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 24, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 20;
}

body.nav-open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

.hero,
.section {
  padding: 4.2rem 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 2.9rem;
  min-height: calc(88vh - 76px);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-alt);
}

.eyebrow::before,
.section-kicker::before {
  content: '';
  width: 1.7rem;
  height: 1px;
  background: currentColor;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.9rem;
  margin-bottom: 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 107, 61, 0.45);
  animation: pulse 2.2s infinite;
}

.hero-title {
  margin-bottom: 0.85rem;
  font-size: clamp(3.2rem, 9vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.hero-title span {
  display: block;
}

.hero-role-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  color: var(--heading);
}

.hero-role-prefix {
  opacity: 0.78;
}

.role-rotator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11ch;
  padding: 0.45rem 0.9rem;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-alt-soft));
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--heading);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.role-rotator.is-active {
  opacity: 1;
  transform: translateY(0);
}

.hero-intro,
.section-intro {
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.55rem 0 1.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.82rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ff926e 100%);
  color: #fff8f3;
}

.btn-secondary,
.btn-ghost {
  background: var(--panel);
  border-color: var(--line);
  color: var(--heading);
}

.btn-ghost {
  width: fit-content;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card {
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.metric-number {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
}

.portrait-shell {
  position: relative;
  padding: 1.2rem;
}

.portrait-frame {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent),
    linear-gradient(135deg, rgba(255, 107, 61, 0.18), rgba(15, 118, 110, 0.18));
  border: 1px solid var(--line);
  border-radius: 42px 42px 150px 42px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.portrait-image {
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: cover;
  border-radius: 32px 32px 128px 32px;
}

.portrait-badge {
  position: absolute;
  min-width: 220px;
  max-width: 260px;
  padding: 1rem 1.1rem;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.portrait-badge span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-alt);
}

.portrait-badge strong {
  color: var(--heading);
}

.badge-top {
  top: 4%;
  right: -4%;
}

.badge-bottom {
  bottom: 7%;
  left: -2%;
}

.ticker {
  margin-top: 3.5rem;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.2);
}

body[data-theme='dark'] .ticker {
  background: rgba(255, 255, 255, 0.03);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  padding: 1rem 0;
  animation: ticker 24s linear infinite;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heading);
  box-shadow: var(--shadow-soft);
}

.ticker-track span::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.section {
  margin-bottom: 1.5rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.services-grid,
.projects-grid,
.education-grid {
  display: grid;
  gap: 1.3rem;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.project-card,
.education-card,
.about-panel,
.contact-panel,
.timeline-item {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.service-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 61, 0.24);
}

.service-index,
.project-index {
  display: inline-flex;
  margin-bottom: 1rem;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.14em;
}

.service-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.55rem;
}

.service-card p {
  margin-bottom: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.service-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.service-list li,
.timeline-list li {
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.65;
  color: var(--text);
}

.service-list li::before,
.timeline-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-alt);
}

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

.project-card {
  display: grid;
  gap: 1.2rem;
  padding: 1.1rem;
  border-radius: var(--radius-xl);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 107, 61, 0.24);
}

.project-media {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 10px);
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(255, 107, 61, 0.16), rgba(15, 118, 110, 0.18)),
    var(--bg-secondary);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.04);
}

.project-media-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-media-logo img {
  width: min(62%, 240px);
  height: auto;
  object-fit: contain;
}

.project-media-shop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #fff8f3;
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #8b3a16, #ff6b3d 55%, #fdb388 100%);
}

.project-media-shop i {
  font-size: 2.6rem;
}

.project-category {
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-alt);
}

.project-copy h3 {
  margin-bottom: 0.7rem;
  font-size: 1.45rem;
  line-height: 1.08;
}

.project-copy p {
  line-height: 1.75;
  color: var(--muted);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.25rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--heading);
}

.timeline {
  display: grid;
  gap: 1.25rem;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 240px) 1fr;
  gap: 1.4rem;
  padding: 1.45rem 1.45rem 1.45rem 3rem;
  border-radius: var(--radius-lg);
}

.timeline-marker {
  position: absolute;
  left: 1.35rem;
  top: 2.05rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  box-shadow: 0 0 0 0.35rem rgba(255, 107, 61, 0.12);
}

.timeline-line {
  position: absolute;
  left: 1.75rem;
  top: -1.5rem;
  bottom: -1.5rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 107, 61, 0.35), transparent 90%);
}

.timeline-item:last-child .timeline-line {
  display: none;
}

.timeline-period,
.education-meta,
.contact-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-alt);
}

.timeline-meta h3,
.education-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.45rem;
  line-height: 1.08;
}

.timeline-company {
  color: var(--heading);
  font-weight: 800;
}

.timeline-content p {
  margin-bottom: 0.95rem;
  line-height: 1.8;
  color: var(--muted);
}

.timeline-list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
}

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

.education-card {
  padding: 1.2rem;
  border-radius: var(--radius-md);
}

.education-card p {
  line-height: 1.7;
  color: var(--muted);
}

.about-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.3rem;
  padding-bottom: 5.2rem;
}

.about-panel,
.contact-panel {
  padding: 1.45rem;
  border-radius: var(--radius-xl);
}

.about-panel h2,
.contact-panel h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.about-panel p,
.contact-panel p {
  line-height: 1.85;
  color: var(--muted);
}

.about-highlight {
  margin-top: 1.35rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--heading);
  font-weight: 700;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.25rem 0 1.35rem;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 0.95rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.contact-line:hover,
.contact-line:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 61, 0.3);
}

.contact-line strong {
  color: var(--heading);
}

.contact-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact-cta {
  width: fit-content;
}

.site-footer {
  padding: 0 0 1.6rem;
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0 1.4rem;
  border-top: 1px solid var(--line);
}

.footer-logo {
  margin-bottom: 0.45rem;
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-logo span {
  color: var(--accent);
}

.footer-note {
  max-width: 28ch;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.footer-icons {
  display: flex;
  gap: 0.75rem;
}

.footer-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.footer-icons a:hover,
.footer-icons a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 61, 0.3);
}

.copyright {
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(10px);
  transition: opacity 0.75s ease, transform 0.75s ease, filter 0.75s ease;
  transition-delay: var(--delay, 0s);
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 61, 0.45);
  }

  70% {
    box-shadow: 0 0 0 0.55rem rgba(255, 107, 61, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 61, 0);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1100px) {
  .hero,
  .about-contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    order: 2;
  }

  .hero-visual {
    order: 1;
    max-width: 620px;
    margin: 0 auto;
  }

  .portrait-shell {
    max-width: 520px;
    margin: 0 auto;
  }

  .services-grid,
  .projects-grid,
  .education-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

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

  .nav-links {
    position: fixed;
    top: 94px;
    left: 5%;
    right: 5%;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.15rem;
    margin-left: 0;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    z-index: 40;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero-metrics,
  .services-grid,
  .projects-grid,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .footer-shell {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(92%, 640px);
  }

  .hero,
  .section {
    padding-top: 3.7rem;
  }

  .portrait-shell {
    display: grid;
    gap: 1rem;
    padding: 0;
  }

  .portrait-badge {
    position: static;
    min-width: 0;
    max-width: none;
  }

  .hero-role-row {
    align-items: flex-start;
  }

  .role-rotator {
    min-width: 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn,
  .contact-cta {
    width: 100%;
  }

  .contact-cta-group {
    flex-direction: column;
  }

  .timeline-item {
    padding: 1.45rem 1.25rem 1.45rem 2.7rem;
  }

  .timeline-marker {
    left: 1rem;
  }

  .timeline-line {
    left: 1.4rem;
  }
}

@media (max-width: 560px) {
  .nav-shell {
    min-height: 76px;
  }

  .logo,
  .footer-logo {
    font-size: 1.25rem;
  }

  .control-btn,
  .nav-toggle {
    min-width: 2.65rem;
    height: 2.65rem;
  }

  .hero-title {
    font-size: clamp(3rem, 18vw, 4.4rem);
  }

  .section-head h2,
  .about-panel h2,
  .contact-panel h2 {
    font-size: clamp(1.9rem, 12vw, 2.8rem);
  }

  .ticker-track span {
    padding-inline: 0.8rem;
    font-size: 0.75rem;
  }
}

@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;
    scroll-behavior: auto !important;
  }

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