:root {
  color-scheme: light;
  font-family: "Vazirmatn", "DM Sans", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #102a43;
  --navy-soft: #214760;
  --aqua: #13b9ca;
  --aqua-bright: #53dce2;
  --aqua-soft: #e8f9fa;
  --ink: #17324b;
  --muted: #71869a;
  --muted-strong: #506a80;
  --border: #e3edf1;
  --page: #f6fafb;
  --surface: #ffffff;
  --surface-soft: #fbfdfe;
  --shadow: 0 22px 55px rgb(16 42 67 / 9%);
  --small-shadow: 0 8px 22px rgb(16 42 67 / 6%);
}

[data-theme="dark"] {
  color-scheme: dark;
  --navy: #e9f6fa;
  --navy-soft: #a9d9e4;
  --aqua: #46d9e0;
  --aqua-bright: #75eff0;
  --aqua-soft: #14333d;
  --ink: #e8f2f6;
  --muted: #9bb0bf;
  --muted-strong: #b7c9d3;
  --border: #27404e;
  --page: #0b1721;
  --surface: #11222f;
  --surface-soft: #162a38;
  --shadow: 0 24px 60px rgb(0 0 0 / 28%);
  --small-shadow: 0 9px 24px rgb(0 0 0 / 18%);
}

* {
  box-sizing: border-box;
}

.is-english {
  font-family: "DM Sans", "Vazirmatn", sans-serif;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 78% 4%, rgb(19 185 202 / 10%), transparent 28rem),
    radial-gradient(ellipse at 0% 42%, rgb(19 185 202 / 6%), transparent 24rem),
    var(--page);
  transition: color 220ms ease, background-color 220ms ease;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  z-index: -1;
  border: 1px solid rgb(19 185 202 / 15%);
  border-radius: 50%;
  pointer-events: none;
}

.ambient--one {
  top: 17rem;
  inset-inline-end: -18rem;
  width: 32rem;
  height: 32rem;
  box-shadow:
    0 0 0 2.4rem rgb(19 185 202 / 2%),
    0 0 0 4.8rem rgb(19 185 202 / 2%);
}

.ambient--two {
  top: 4rem;
  inset-inline-start: -12rem;
  width: 22rem;
  height: 22rem;
  background: rgb(19 185 202 / 4%);
}

.page-shell {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.topbar {
  display: flex;
  min-height: 5.4rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(112 134 154 / 14%);
  direction: inherit;
}

.brand {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  text-decoration: none;
}

.brand__mark {
  color: var(--navy);
  font: 800 1.65rem/1 "DM Sans", sans-serif;
  letter-spacing: -0.1em;
}

.brand__mark span {
  color: var(--aqua);
}

.brand__name {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.topbar__controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.language-toggle,
.theme-toggle {
  display: grid;
  min-width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  padding: 0 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  color: var(--navy);
  background: var(--surface);
  box-shadow: var(--small-shadow);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 220ms ease,
    color 220ms ease;
}

.language-toggle {
  font: 700 0.85rem/1 "DM Sans", "Vazirmatn", sans-serif;
  letter-spacing: 0.03em;
}

.theme-toggle {
  width: 2.8rem;
  padding: 0;
  border-radius: 50%;
}

.language-toggle:hover,
.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--aqua);
}

.language-toggle:focus-visible,
.theme-toggle:focus-visible,
.button:focus-visible,
.section-nav a:focus-visible,
.social-link:focus-visible {
  outline: 3px solid rgb(19 185 202 / 42%);
  outline-offset: 3px;
}

.theme-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.theme-toggle__sun {
  display: none;
}

[data-theme="dark"] .theme-toggle__moon {
  display: none;
}

[data-theme="dark"] .theme-toggle__sun {
  display: block;
}

.hero {
  position: relative;
  display: grid;
  min-height: 27rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
  margin-block: 2.2rem 1.4rem;
  padding: clamp(2rem, 6vw, 4rem);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 14% 50%, rgb(19 185 202 / 12%), transparent 18rem),
    var(--surface);
  box-shadow: var(--shadow);
  direction: inherit;
}

.hero::after {
  position: absolute;
  inset-inline-end: -5rem;
  bottom: -8rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgb(19 185 202 / 13%);
  border-radius: 50%;
  box-shadow: 0 0 0 2.2rem rgb(19 185 202 / 3%);
  content: "";
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  direction: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  width: max-content;
}

.eyebrow > span:first-child {
  width: 1.4rem;
  height: 2px;
  border-radius: 4px;
  background: var(--aqua);
}

.hero__hello {
  margin: 0 0 0.45rem;
  color: var(--muted);
  direction: inherit;
  font-size: 0.95rem;
  text-align: start;
}

.hero__name {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  margin: 0;
  color: var(--navy);
  direction: inherit;
  font: 800 clamp(2.7rem, 6vw, 4.2rem) / 1.05 "DM Sans", "Vazirmatn", sans-serif;
  letter-spacing: -0.065em;
}

.hero__name span:last-child {
  color: #21889a;
}

[data-theme="dark"] .hero__name span:last-child {
  color: var(--aqua);
}

[dir="rtl"] .hero__name {
  letter-spacing: 0;
}

.hero__role {
  margin: 0.9rem 0 0;
  color: var(--muted-strong);
  direction: inherit;
  font: 600 1.15rem/1.45 "DM Sans", "Vazirmatn", sans-serif;
}

.hero__description {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--muted);
  direction: inherit;
  font-size: 1rem;
  line-height: 1.9;
  text-align: start;
}

.is-english .eyebrow,
.is-english .hero__hello,
.is-english .hero__description,
.is-english .button {
  direction: ltr;
}

.is-english .hero__hello,
.is-english .hero__description {
  text-align: start;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  direction: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: var(--navy-soft);
  box-shadow: 0 0.55rem 1.4rem rgb(16 42 67 / 15%);
}

[data-theme="dark"] .button--primary {
  color: #0b1721;
}

.button--primary:hover {
  background: var(--navy);
}

.button--secondary {
  border-color: var(--border);
  color: var(--navy);
  background: var(--surface-soft);
}

.button--secondary:hover {
  border-color: var(--aqua);
  box-shadow: var(--small-shadow);
}

.hero__visual {
  position: relative;
  display: grid;
  min-height: 22rem;
  place-items: center;
}

.hero__orbit {
  position: absolute;
  border: 1px solid rgb(19 185 202 / 24%);
  border-radius: 50%;
}

.hero__orbit--outer {
  width: 18.5rem;
  height: 18.5rem;
  box-shadow: 0 0 0 1.5rem rgb(19 185 202 / 3%);
}

.hero__orbit--inner {
  width: 15rem;
  height: 15rem;
  border-color: rgb(19 185 202 / 15%);
}

.portrait-frame {
  position: relative;
  z-index: 1;
  width: 14rem;
  height: 17.5rem;
  padding: 0.45rem;
  border: 1px solid rgb(19 185 202 / 36%);
  border-radius: 7.5rem 7.5rem 2rem 2rem;
  background: linear-gradient(145deg, var(--aqua), var(--surface) 42%, var(--navy-soft));
  box-shadow: 0 1.5rem 3.8rem rgb(16 42 67 / 19%), 0 0 0 0.5rem rgb(19 185 202 / 5%);
  transform: rotate(-3deg);
}

.portrait-frame__inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 34%, rgb(83 220 226 / 25%), transparent 55%),
    linear-gradient(155deg, var(--surface-soft), var(--aqua-soft));
}

.portrait-frame__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.portrait-frame__image[hidden],
.portrait-placeholder[hidden] {
  display: none;
}

.portrait-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  align-content: center;
  justify-items: center;
  gap: 0.8rem;
  color: var(--navy);
}

.portrait-placeholder__monogram {
  color: var(--navy);
  font: 800 3.7rem/1 "DM Sans", sans-serif;
  letter-spacing: -0.12em;
  text-shadow: 0 0.5rem 1.5rem rgb(16 42 67 / 13%);
}

.portrait-placeholder__label {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgb(19 185 202 / 20%);
  border-radius: 999px;
  color: var(--muted-strong);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  font-size: 0.68rem;
  font-weight: 600;
}

.hero__logo-stamp {
  position: absolute;
  z-index: 2;
  inset-inline-start: calc(50% - 8.5rem);
  bottom: 2.2rem;
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  overflow: hidden;
  border: 3px solid var(--surface);
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 0.7rem 1.6rem rgb(16 42 67 / 18%);
}

.hero__logo-stamp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portrait-frame__corner {
  position: absolute;
  z-index: 2;
  width: 1.1rem;
  height: 1.1rem;
  border-color: var(--aqua-bright);
  border-style: solid;
  pointer-events: none;
}

.portrait-frame__corner--top {
  inset-block-start: 0.8rem;
  inset-inline-start: 0.8rem;
  border-width: 1px 0 0 1px;
  border-radius: 0.5rem 0 0;
}

.portrait-frame__corner--bottom {
  inset-block-end: 0.8rem;
  inset-inline-end: 0.8rem;
  border-width: 0 1px 1px 0;
  border-radius: 0 0 0.5rem;
}
.hero__badge {
  position: absolute;
  z-index: 2;
  inset-inline-end: 0.9rem;
  bottom: 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--navy);
  background: var(--surface);
  box-shadow: var(--small-shadow);
  direction: inherit;
  font: 700 0.72rem/1 "DM Sans", "Vazirmatn", sans-serif;
  letter-spacing: 0.1em;
}

.hero__spark {
  position: absolute;
  z-index: 1;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 0.35rem rgb(19 185 202 / 13%);
}

.hero__spark--one {
  top: 3rem;
  inset-inline-start: 3rem;
}

.hero__spark--two {
  inset-inline-end: 3rem;
  bottom: 3.6rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--navy-soft);
  box-shadow: 0 0 0 0.3rem rgb(16 42 67 / 9%);
}

[dir="rtl"] .hero__badge {
  letter-spacing: 0;
}

.is-english .hero {
  background:
    radial-gradient(circle at 86% 50%, rgb(19 185 202 / 12%), transparent 18rem),
    var(--surface);
}

.section-nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0 1.1rem;
  padding: 0.25rem 0 0.55rem;
}

.section-nav a {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-strong);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background-color 220ms ease,
    transform 150ms ease;
}

.section-nav a:hover {
  transform: translateY(-1px);
  border-color: var(--aqua);
  color: var(--navy);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
  padding-bottom: 3rem;
}

.section-card {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  background: var(--surface);
  box-shadow: var(--small-shadow);
  scroll-margin-top: 1rem;
  transition: background-color 220ms ease, border-color 220ms ease;
}

.section-card--personal,
.section-card--social {
  grid-column: 1 / -1;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
  direction: inherit;
}

.section-heading__number {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgb(19 185 202 / 20%);
  border-radius: 0.8rem;
  color: #13899a;
  background: var(--aqua-soft);
  font: 700 0.82rem/1 "DM Sans", sans-serif;
}

.section-heading__eyebrow {
  margin: 0 0 0.15rem;
  color: var(--muted);
  direction: inherit;
  font: 700 0.62rem/1.4 "DM Sans", sans-serif;
  letter-spacing: 0.14em;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: start;
}

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

.detail-tile {
  min-width: 0;
  min-height: 5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  background: var(--surface-soft);
}

.detail-tile__label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-tile strong,
.detail-tile p {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.detail-tile p.is-empty,
.detail-tile strong.is-empty {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.detail-tile--about {
  grid-column: 1 / -1;
  min-height: 5.3rem;
}

.entry-list,
.skill-list {
  display: grid;
  gap: 0.7rem;
}

.entry-card {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  background: var(--surface-soft);
}

.entry-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}

.entry-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.6;
}

.entry-card__date {
  flex: 0 0 auto;
  color: var(--aqua);
  direction: inherit;
  font: 600 0.76rem/1.5 "DM Sans", "Vazirmatn", sans-serif;
}

.entry-card__meta {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.entry-card__description {
  margin: 0.5rem 0 0;
  color: var(--muted-strong);
  font-size: 0.87rem;
  line-height: 1.8;
}

.skill-chip {
  display: grid;
  min-height: 3.35rem;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--surface-soft);
}

.skill-chip__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.skill-chip__name {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.skill-chip__meter {
  display: block;
  height: 0.28rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(19 185 202 / 12%);
}

.skill-chip__meter > span {
  display: block;
  width: var(--skill-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aqua), var(--aqua-bright));
  transition: width 450ms ease;
}
.skill-chip__level {
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.empty-state {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px dashed var(--border);
  border-radius: 0.9rem;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.85rem;
  line-height: 1.7;
}

.empty-state__dot {
  width: 0.45rem;
  height: 0.45rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 0.25rem rgb(19 185 202 / 10%);
}

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

.social-link {
  display: flex;
  min-width: 0;
  min-height: 4.5rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  color: var(--ink);
  background: var(--surface-soft);
  text-decoration: none;
  transition:
    border-color 150ms ease,
    transform 150ms ease,
    background-color 220ms ease;
}

.social-link:not(.is-disabled):hover {
  transform: translateY(-2px);
  border-color: var(--aqua);
}

.social-link.is-disabled {
  cursor: pointer;
}

.social-link__icon {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.75rem;
  color: #108e9d;
  background: var(--aqua-soft);
  font: 700 0.9rem/1 "DM Sans", sans-serif;
}

.social-link__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link__icon--telegram-xynorair,
.social-link__icon--telegram-svbioir {
  color: #168fc0;
  background: #e8f6fc;
}

.social-link__icon--instagram {
  color: #fff;
  background: linear-gradient(145deg, #7057d8, #e94d88 58%, #ffab52);
}

.social-link__icon--linkedin {
  color: #0a76b7;
  background: #e7f3fb;
}

.social-link__icon--github {
  color: var(--surface);
  background: var(--navy-soft);
}

.social-link__icon--whatsapp {
  color: #168b68;
  background: #e8f8f1;
}

.social-link__icon--email {
  color: #13899a;
  background: var(--aqua-soft);
}

.social-link__icon--phone {
  color: #536e84;
  background: #edf2f6;
}

.social-link__copy {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.social-link__name {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-link__hint {
  color: var(--muted);
  font-size: 0.73rem;
}

.footer {
  display: flex;
  min-height: 4.2rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgb(112 134 154 / 14%);
  color: var(--muted);
  direction: inherit;
  font: 600 0.7rem/1.5 "DM Sans", "Vazirmatn", sans-serif;
  letter-spacing: 0.06em;
}

.footer__mark {
  color: var(--muted-strong);
  font: 800 1.2rem/1 "DM Sans", sans-serif;
  letter-spacing: -0.08em;
}

.footer__mark span {
  color: var(--aqua);
}

.toast {
  position: fixed;
  z-index: 5;
  right: 50%;
  bottom: 1.4rem;
  max-width: calc(100vw - 2rem);
  padding: 0.75rem 1rem;
  transform: translate(50%, 1rem);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translate(50%, 0);
  opacity: 1;
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 2.25rem, 48rem);
  }

  .hero {
    min-height: 25rem;
    grid-template-columns: 1fr 0.72fr;
    gap: 1.2rem;
    padding: 2rem;
  }

  .hero__orbit--outer {
    width: 15.5rem;
    height: 15.5rem;
  }

  .hero__orbit--inner {
    width: 12.5rem;
    height: 12.5rem;
  }

  .portrait-frame {
    width: 12rem;
    height: 15.5rem;
  }

  .hero__logo-stamp {
    inset-inline-start: calc(50% - 7.3rem);
    bottom: 2rem;
    width: 3.5rem;
    height: 3.5rem;
  }

  .content-grid {
    gap: 0.8rem;
  }

  .section-card {
    padding: 1.2rem;
  }

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

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 1.5rem, 40rem);
  }

  .topbar {
    min-height: 4.5rem;
  }

  .brand__name {
    font-size: 0.8rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 1rem;
    padding: 1.6rem 1.25rem 1.2rem;
    border-radius: 1.5rem;
  }

  .hero__copy {
    text-align: start;
  }

  .eyebrow {
    margin: 0 0 1rem;
    font-size: 0.85rem;
  }

  .hero__hello {
    text-align: start;
  }

  .hero__name {
    justify-content: flex-start;
    gap: 0 0.4rem;
    font-size: clamp(2.5rem, 11vw, 3.5rem);
  }

  .hero__role {
    margin-top: 0.7rem;
    font-size: 1.05rem;
  }

  .hero__description {
    margin: 0.8rem auto 0;
    font-size: 0.94rem;
    text-align: start;
  }

  .hero__actions {
    justify-content: flex-start;
    margin-top: 1.1rem;
  }

  .hero__visual {
    min-height: 19rem;
  }

  .hero__orbit--outer {
    width: 16rem;
    height: 16rem;
  }

  .hero__orbit--inner {
    width: 13rem;
    height: 13rem;
  }

  .portrait-frame {
    width: 11rem;
    height: 14rem;
  }

  .hero__logo-stamp {
    inset-inline-start: calc(50% - 7.5rem);
    bottom: 1.7rem;
    width: 3.25rem;
    height: 3.25rem;
  }

  .hero__badge {
    inset-inline-end: calc(50% - 8.3rem);
    bottom: 0.7rem;
  }

  .hero__spark--one {
    top: 1.5rem;
    inset-inline-start: calc(50% - 6.3rem);
  }

  .hero__spark--two {
    inset-inline-end: calc(50% - 7rem);
    bottom: 1.5rem;
  }

  .section-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 1.15rem;
    padding: 0.25rem 0.1rem 0.7rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .section-nav a {
    flex: 0 0 auto;
    min-height: 2.5rem;
    font-size: 0.8rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .section-card--personal,
  .section-card--social {
    grid-column: auto;
  }

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

  .detail-tile--about {
    grid-column: 1 / -1;
  }

  .footer {
    min-height: 3.8rem;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }
}

@media (max-width: 390px) {
  .page-shell {
    width: min(100% - 1.1rem, 40rem);
  }

  .brand {
    gap: 0.5rem;
  }

  .brand__name {
    font-size: 0.73rem;
  }

  .topbar__controls {
    gap: 0.35rem;
  }

  .language-toggle,
  .theme-toggle {
    min-width: 2.55rem;
    height: 2.55rem;
  }

  .theme-toggle {
    width: 2.55rem;
  }

  .personal-grid {
    grid-template-columns: 1fr;
  }

  .detail-tile--about {
    grid-column: auto;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .footer > span:last-child {
    display: none;
  }
}

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