:root {
  --bg: #f7f2ea;
  --surface: rgba(255, 255, 255, 0.82);
  --ink: #21252d;
  --muted: #525865;
  --line: rgba(33, 37, 45, 0.18);
  --accent-a: #e58659;
  --accent-b: #5f95bf;
  --accent-c: #eccd8d;
  --shadow: 0 16px 34px rgba(33, 37, 45, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 12% 10%, rgba(229, 134, 89, 0.2), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(95, 149, 191, 0.2), transparent 40%),
    radial-gradient(circle at 50% 92%, rgba(236, 205, 141, 0.2), transparent 48%),
    var(--bg);
  position: relative;
  overflow-x: hidden;
}

body.about-cursor {
  cursor: none;
}

body.about-cursor a,
body.about-cursor button,
body.about-cursor summary {
  cursor: none;
}

a {
  color: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  z-index: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.45) 0.7px, transparent 1px),
    radial-gradient(rgba(33, 37, 45, 0.2) 0.7px, transparent 1px);
  background-size: 3px 3px, 5px 5px;
  background-position: 0 0, 1px 2px;
}

.soft-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.54;
  pointer-events: none;
  z-index: 0;
}

.soft-shape-a {
  width: 280px;
  height: 280px;
  background: rgba(229, 134, 89, 0.3);
  top: -80px;
  left: -70px;
}

.soft-shape-b {
  width: 320px;
  height: 320px;
  background: rgba(95, 149, 191, 0.26);
  bottom: -110px;
  right: -90px;
}

.cursor-min-ring,
.cursor-min-dot {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0;
  transform: translate3d(-120px, -120px, 0) translate(-50%, -50%);
  will-change: transform, opacity;
}

.cursor-min-ring {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1.4px solid rgba(33, 37, 45, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 8px 18px rgba(33, 37, 45, 0.14);
  transition: width 140ms ease, height 140ms ease, border-color 140ms ease, opacity 120ms linear;
}

.cursor-min-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(33, 37, 45, 0.86);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.86);
  transition: width 120ms ease, height 120ms ease, background 120ms ease, opacity 120ms linear;
}

body.about-cursor .cursor-min-ring,
body.about-cursor .cursor-min-dot {
  opacity: 1;
}

.cursor-min-ring.is-hover {
  width: 38px;
  height: 38px;
  border-color: rgba(95, 149, 191, 0.78);
}

.cursor-min-dot.is-hover {
  width: 7px;
  height: 7px;
  background: rgba(95, 149, 191, 0.92);
}

.cursor-min-ring.is-press {
  width: 22px;
  height: 22px;
}

.cursor-min-dot.is-press {
  width: 10px;
  height: 10px;
}

.page-transition {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: 0;
  transition: opacity 600ms cubic-bezier(0.2, 0.7, 0.1, 1);
  background:
    radial-gradient(circle at 14% 20%, rgba(229, 134, 89, 0.44), transparent 42%),
    radial-gradient(circle at 84% 70%, rgba(95, 149, 191, 0.46), transparent 44%),
    linear-gradient(135deg, rgba(247, 242, 234, 0.98), rgba(238, 248, 255, 0.96), rgba(255, 238, 225, 0.98));
}

body.page-ready .page-transition {
  opacity: 0;
}

body.is-transitioning .page-transition {
  opacity: 1;
}

.about-topbar {
  position: sticky;
  top: 0.8rem;
  z-index: 20;
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.about-topbar-menu {
  display: contents;
}

.top-title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 700;
  flex: 0 1 auto;
  max-width: min(100%, 18rem);
  padding: 0 0.35rem;
  text-align: center;
}

.top-route-nav {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 24rem;
  min-width: 0;
  padding: 0.18rem;
  border: 1px solid rgba(33, 37, 45, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

.top-actions {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 24rem;
  min-width: 0;
  padding: 0.18rem;
  border: 1px solid rgba(33, 37, 45, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 180ms ease, background 180ms ease;
}

.mobile-menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(16, 34, 43, 0.08);
}

.mobile-menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.about-topbar.is-menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.about-topbar.is-menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.about-topbar.is-menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.34rem 0.7rem;
  background: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.top-link-cta {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, rgba(95, 149, 191, 0.96), rgba(229, 134, 89, 0.92));
  box-shadow: 0 12px 22px rgba(95, 149, 191, 0.22);
}

.top-link:hover {
  color: var(--ink);
  box-shadow: 0 8px 16px rgba(33, 37, 45, 0.12);
  transform: translateY(-1px);
}

.top-link-cta:hover {
  color: #fff;
  box-shadow: 0 14px 28px rgba(95, 149, 191, 0.28);
}

.top-link.is-current,
.top-link[aria-current="page"] {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(145deg, rgba(95, 149, 191, 0.96), rgba(229, 134, 89, 0.92));
  box-shadow: 0 10px 20px rgba(95, 149, 191, 0.2);
}

.top-link-back {
  color: var(--ink);
}

.about-main {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 2rem));
  margin: 1rem auto 1.2rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.7rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.05rem;
}

.section-tag {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent-b);
}

.panel h1,
.panel h2 {
  margin: 0.32rem 0 0.64rem;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.2;
}

.panel h1 {
  font-size: clamp(1.26rem, 2.8vw, 2.1rem);
}

.panel h2 {
  font-size: clamp(1.06rem, 2.2vw, 1.54rem);
}

.panel p {
  margin: 0;
  line-height: 1.6;
  color: var(--ink);
}

.panel-intro {
  grid-column: span 7;
  background:
    radial-gradient(circle at 88% 18%, rgba(95, 149, 191, 0.12), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.84));
}

.dynamic-role {
  margin-top: 0.72rem !important;
  font-weight: 700;
  color: var(--muted) !important;
}

.intro-actions,
.contact-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

#typedRole {
  color: var(--ink);
  border-bottom: 1px dashed rgba(33, 37, 45, 0.28);
}

.panel-skills {
  grid-column: span 5;
}

.skills-orbit {
  min-height: 208px;
  position: relative;
  margin-top: 0.54rem;
  border-radius: 14px;
  border: 1px solid rgba(33, 37, 45, 0.14);
  background:
    radial-gradient(circle at 28% 22%, rgba(229, 134, 89, 0.1), transparent 46%),
    radial-gradient(circle at 72% 70%, rgba(95, 149, 191, 0.12), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(249, 251, 254, 0.82));
  overflow: hidden;
  isolation: isolate;
}

.skills-orbit::before,
.skills-orbit::after {
  content: "";
  position: absolute;
  inset: -22%;
  pointer-events: none;
}

.skills-orbit::before {
  background:
    conic-gradient(
      from 140deg at 50% 50%,
      rgba(229, 134, 89, 0.16),
      rgba(95, 149, 191, 0.14),
      rgba(236, 205, 141, 0.12),
      rgba(229, 134, 89, 0.16)
    );
  filter: blur(18px);
  opacity: 0.18;
  animation: orbit-sweep 20s linear infinite;
}

.skills-orbit::after {
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.76) 0 2px, transparent 3px),
    radial-gradient(circle at 32% 82%, rgba(255, 255, 255, 0.78) 0 2px, transparent 3px),
    radial-gradient(circle at 88% 66%, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px);
  opacity: 0.16;
  animation: orbit-stars 5.8s ease-in-out infinite;
}

.orbit-chip {
  position: absolute;
  left: var(--x);
  top: var(--y);
  border: 1px solid rgba(33, 37, 45, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transform:
    translate(
      calc(var(--ux, 0px) + var(--ax, 0px)),
      calc(var(--uy, 0px) + var(--ay, 0px))
    )
    scale(calc(1 + var(--ps, 0)));
  transition: box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
  will-change: transform;
  animation: chip-bob var(--dur, 7.2s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  z-index: 2;
  box-shadow: 0 8px 16px rgba(33, 37, 45, 0.08);
}

.orbit-chip:hover,
.orbit-chip:focus-visible,
.topic-btn.is-active {
  border-color: rgba(95, 149, 191, 0.56);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 20px rgba(95, 149, 191, 0.2);
}

.top-link,
.question-btn,
.timeline-item,
.orbit-chip {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    filter 180ms ease;
}

.top-link:hover,
.question-btn:hover,
.timeline-item:hover,
.orbit-chip:hover {
  filter: saturate(1.05);
}

.small-note {
  margin-top: 0.56rem !important;
  color: var(--muted) !important;
  font-size: 0.86rem;
}

.panel-work {
  grid-column: span 5;
}

.timeline-list {
  display: grid;
  gap: 0.45rem;
}

.timeline-item {
  text-align: left;
  border: 1px solid rgba(33, 37, 45, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.6rem 0.68rem;
  display: grid;
  gap: 0.2rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.timeline-item span {
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
}

.timeline-item strong {
  font-size: 0.88rem;
  line-height: 1.4;
}

.timeline-item:hover,
.timeline-item:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(33, 37, 45, 0.12);
  border-color: rgba(229, 134, 89, 0.5);
}

.eye-row {
  margin-top: 0.85rem;
  display: inline-flex;
  gap: 0.58rem;
}

.eye {
  width: 52px;
  height: 30px;
  border: 1.8px solid rgba(33, 37, 45, 0.7);
  border-radius: 50%;
  position: relative;
  background: #fff;
  overflow: hidden;
}

.pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(33, 37, 45, 0.88);
  transform: translate(-50%, -50%);
  transition: transform 120ms linear;
}

.panel-about {
  grid-column: span 7;
}

.about-block {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
}

.portrait-wrap {
  width: 128px;
  height: 164px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(33, 37, 45, 0.2);
  box-shadow: 0 14px 24px rgba(33, 37, 45, 0.14);
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.panel-facts {
  grid-column: span 12;
}

.facts-list {
  margin: 0.68rem 0 0;
  padding-left: 1.02rem;
  display: grid;
  gap: 0.34rem;
}

.facts-list li {
  line-height: 1.5;
}

.facts-list strong {
  color: var(--ink);
}

.panel-interact {
  grid-column: span 8;
}

.question-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.question-btn {
  border: 1px solid rgba(33, 37, 45, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.34rem 0.72rem;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.question-btn:hover,
.question-btn:focus-visible {
  border-color: rgba(95, 149, 191, 0.56);
  box-shadow: 0 8px 16px rgba(95, 149, 191, 0.2);
  transform: translateY(-1px);
}

.response-card {
  margin-top: 0.72rem;
  border: 1px solid rgba(33, 37, 45, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 90% 14%, rgba(95, 149, 191, 0.16), transparent 40%),
    radial-gradient(circle at 12% 78%, rgba(229, 134, 89, 0.14), transparent 44%),
    rgba(255, 255, 255, 0.86);
  padding: 0.75rem;
}

.response-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted) !important;
  font-weight: 800;
}

.response-card h3 {
  margin: 0.18rem 0 0.34rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.02rem;
}

.response-card p {
  color: var(--ink);
}

.panel-contact {
  grid-column: span 4;
  background:
    radial-gradient(circle at 82% 18%, rgba(95, 149, 191, 0.14), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(247, 251, 255, 0.84));
}

.consulting-points {
  margin: 0.8rem 0 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.38rem;
}

.panel-contact .consulting-points {
  margin-top: 0.8rem;
  padding-left: 1.05rem;
}

.consulting-points li {
  color: var(--ink);
  line-height: 1.5;
}

.panel-contact ul {
  margin: 0.6rem 0 0;
  padding-left: 1.06rem;
  display: grid;
  gap: 0.34rem;
}

.panel-contact li {
  color: var(--ink);
  line-height: 1.4;
}

.panel-contact a {
  color: var(--muted);
}

.panel-contact .top-link {
  color: var(--ink);
}

.panel-contact .top-link-cta,
.panel-contact .top-link-cta:hover {
  color: #fff;
}

.panel-contact a:hover {
  color: var(--ink);
}

@keyframes orbit-sweep {
  from {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.04);
  }
  to {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes orbit-stars {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0px);
  }
  50% {
    opacity: 0.42;
    transform: translateY(-4px);
  }
}

@keyframes chip-bob {
  0%,
  100% {
    filter: drop-shadow(0 8px 10px rgba(33, 37, 45, 0.06));
  }
  50% {
    filter: drop-shadow(0 14px 14px rgba(33, 37, 45, 0.1));
  }
}

@media (max-width: 960px) {
  .about-topbar {
    top: 0.6rem;
    padding: 0.74rem 0.78rem;
  }

  .top-title {
    width: 100%;
    order: -1;
    max-width: none;
  }

  .top-route-nav,
  .top-actions {
    width: 100%;
    justify-content: center;
  }

  .top-route-nav .top-link {
    flex: 1 1 calc(50% - 0.4rem);
    text-align: center;
  }

  .top-actions .top-link {
    flex: 1 1 calc(33.333% - 0.4rem);
    text-align: center;
  }

  .about-main {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .panel-intro,
  .panel-skills,
  .panel-work,
  .panel-about,
  .panel-facts,
  .panel-interact,
  .panel-contact {
    grid-column: span 6;
  }
}

@media (max-width: 700px) {
  .about-topbar,
  .about-main {
    width: min(1120px, calc(100% - 1rem));
  }

  .about-topbar {
    top: 0.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 0.58rem 0.62rem;
    gap: 0.45rem;
    transition: transform 220ms ease, opacity 220ms ease, box-shadow 220ms ease;
    will-change: transform, opacity;
  }

  .top-title {
    width: 100%;
    order: -1;
    font-size: 0.95rem;
    padding: 0;
    text-align: left;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .about-topbar-menu {
    display: none;
    grid-column: 1 / -1;
    gap: 0.34rem;
  }

  .about-topbar.is-menu-open .about-topbar-menu {
    display: grid;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
    padding: 0.22rem;
    border-radius: 16px;
  }

  .top-route-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
    padding: 0.22rem;
    border-radius: 16px;
  }

  .top-route-nav .top-link,
  .top-actions .top-link {
    width: 100%;
    text-align: center;
    min-width: 0;
    min-height: 46px;
    padding: 0.44rem 0.42rem;
    line-height: 1.08;
    white-space: normal;
    text-wrap: balance;
    overflow-wrap: anywhere;
    border-radius: 13px;
    font-size: 0.76rem;
  }

  .about-block {
    grid-template-columns: 1fr;
  }

  .portrait-wrap {
    width: 118px;
    height: 148px;
  }

  .skills-orbit {
    min-height: 230px;
  }

  .panel {
    border-radius: 12px;
    padding: 0.84rem;
  }

  .intro-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  body.mobile-nav-hidden .about-topbar {
    transform: translateY(calc(-100% - 1rem));
    opacity: 0.02;
    pointer-events: none;
    box-shadow: none;
  }

  body.mobile-nav-hidden .about-topbar.is-menu-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 12px 28px rgba(16, 34, 43, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .skills-orbit::before,
  .skills-orbit::after {
    display: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor-min-ring,
  .cursor-min-dot {
    display: none !important;
  }
}
