:root {
  --page-background: #ffffff;
  --text-color: #111318;
  --circle-color: #e9ebef;
  --muted-text: #6f7480;
  --divider-color: #e2e4e8;
  --button-start: #1580ff;
  --button-end: #0868ef;
  --disabled-button: #8a8f99;
  --disabled-button-text: #e9eaed;
  --toggle-background: #222633;
  --toggle-idle: #f2f3f6;
  --toggle-active: #6845ff;
  --accent-one: #08bfe8;
  --accent-two: #c214ff;
  --accent-three: #ff9918;
  --section-padding-inline: clamp(28px, 8vw, 130px);
  --button-width: 190px;
  --button-height: 70px;
  --circle-size: 164px;
  --content-max-width: 1240px;
  --description-max-size: 36px;
  --description-min-size: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  background: var(--page-background);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-background);
  color: var(--text-color);
  transition: background-color 180ms ease, color 180ms ease;
}

* {
  box-sizing: border-box;
}

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

.site-shell {
  width: 100%;
  overflow: clip;
}

.page-section {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--divider-color);
  background: var(--page-background);
  scroll-snap-align: start;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.page-section:last-child {
  border-bottom: 0;
}

.section-content {
  width: min(100%, var(--content-max-width));
  margin: 0 auto;
  padding: 90px var(--section-padding-inline);
  display: flex;
  align-items: center;
}

.section-content-left {
  justify-content: flex-start;
}

.section-content-right {
  justify-content: flex-end;
}

.item-section-content {
  justify-content: space-between;
  gap: clamp(56px, 8vw, 150px);
}

.item-description-wrap {
  --description-max-size: 36px;
  --description-min-size: 14px;
  flex: 0 1 460px;
  width: min(38vw, 460px);
  max-width: 460px;
  height: min(42svh, 360px);
  min-height: 180px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.item-description-left {
  justify-content: flex-start;
  text-align: left;
}

.item-description-right {
  justify-content: flex-end;
  text-align: right;
}

.item-description {
  margin: 0;
  max-width: 100%;
  font-size: var(--description-max-size);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.item-left,
.item-right {
  flex: 0 0 auto;
}

.theme-subsection {
  position: absolute;
  top: 28px;
  right: max(28px, calc((100vw - var(--content-max-width)) / 2 + var(--section-padding-inline)));
  z-index: 5;
}

.theme-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 108px;
  height: 50px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--toggle-background);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.theme-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--toggle-idle);
  transition: background-color 180ms ease, color 180ms ease;
}

.theme-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon svg {
  fill: currentColor;
  stroke: none;
}

html[data-theme="light"] .theme-icon-sun,
html:not([data-theme]) .theme-icon-sun {
  background: var(--toggle-active);
  color: #ffffff;
}

html[data-theme="dark"] .theme-icon-moon {
  background: var(--toggle-active);
  color: #ffffff;
}

.profile-stack,
.link-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(26px, 4vw, 58px);
  min-width: min(590px, 72vw);
}

.profile-photo-wrap {
  position: relative;
  flex: 0 0 auto;
  width: 220px;
  height: 220px;
}

.profile-photo-wrap .offset-circle {
  position: absolute;
  width: 178px;
  height: 178px;
  left: -42px;
  top: -32px;
  border-radius: 50%;
  background: var(--circle-color);
  transition: background-color 180ms ease;
}

.profile-photo {
  position: absolute;
  inset: 10px;
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  display: block;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}

.person-name {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.link-visual {
  position: relative;
  width: 261px;
  height: 196px;
}

.link-visual .offset-circle {
  position: absolute;
  left: 16px;
  top: 22px;
  width: var(--circle-size);
  height: var(--circle-size);
  border-radius: 50%;
  background: var(--circle-color);
  transition: background-color 180ms ease;
}

.link-button {
  position: absolute;
  top: 34px;
  left: 55px;
  width: var(--button-width);
  height: var(--button-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--button-start), var(--button-end));
  color: #ffffff;
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 520;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(8, 104, 239, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.link-button-disabled {
  background: var(--disabled-button);
  color: var(--disabled-button-text);
  text-decoration: line-through;
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
}

.link-button-disabled .external-icon {
  opacity: 0.6;
}

.link-button:not(.link-button-disabled):hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 30px rgba(8, 104, 239, 0.24);
}

.link-button:focus-visible,
.theme-toggle:focus-visible {
  outline: 3px solid #6aa9ff;
  outline-offset: 4px;
}

.external-icon {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.accent-lines {
  width: 104px;
  height: 68px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  margin-top: 18px;
}

.accent-lines span {
  display: block;
  width: 8px;
  border-radius: 999px;
  transform-origin: center;
  animation: accent-pulse 3.2s ease-in-out infinite;
}

.accent-lines span:nth-child(1) {
  animation-delay: -0.9s;
}

.accent-lines span:nth-child(2) {
  animation-delay: -1.8s;
}

.accent-lines span:nth-child(3) {
  animation-delay: -2.6s;
}

@keyframes accent-pulse {
  0%, 100% {
    transform: scaleY(0.7);
  }

  50% {
    transform: scaleY(1);
  }
}

.accent-lines span:nth-child(1) {
  height: 39px;
  margin-top: 12px;
  background: var(--accent-one);
}

.accent-lines span:nth-child(2) {
  height: 64px;
  background: var(--accent-two);
}

.accent-lines span:nth-child(3) {
  height: 39px;
  margin-top: 12px;
  background: var(--accent-three);
}

.profile-stack .accent-lines {
  align-self: flex-start;
  margin-top: 22px;
  margin-left: 32px;
}

.final-section {
  padding-bottom: 78px;
}

.copyright-notice {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  text-align: center;
  color: var(--muted-text);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 450;
  letter-spacing: 0.005em;
  transition: color 180ms ease;
}

html[data-theme="dark"] {
  --page-background: #000000;
  --text-color: #f5f6f8;
  --circle-color: #17191f;
  --muted-text: #8b909c;
  --divider-color: #24262d;
  --disabled-button: #3f434c;
  --disabled-button-text: #9da2ad;
}

@media (max-width: 760px) {
  :root {
    --section-padding-inline: 28px;
    --button-width: 168px;
    --button-height: 62px;
    --circle-size: 146px;
  }

  .theme-subsection {
    top: 20px;
    right: 20px;
  }

  .theme-toggle {
    width: 96px;
    height: 46px;
  }

  .section-content {
    padding-top: 92px;
    padding-bottom: 72px;
  }

  .item-section-content {
    gap: 34px;
  }

  .item-description-wrap {
    --description-max-size: 28px;
    --description-min-size: 12px;
    flex-basis: 42%;
    width: 42%;
    height: min(38svh, 300px);
    min-height: 150px;
  }

  .profile-row {
    min-width: 0;
    gap: 22px;
  }

  .profile-photo-wrap {
    width: 158px;
    height: 158px;
  }

  .profile-photo-wrap .offset-circle {
    width: 130px;
    height: 130px;
    left: -29px;
    top: -22px;
  }

  .profile-photo {
    inset: 8px;
    width: 142px;
    height: 142px;
  }

  .person-name {
    font-size: clamp(1.55rem, 6vw, 2.2rem);
  }

  .link-visual {
    width: 228px;
    height: 180px;
  }

  .link-visual .offset-circle {
    left: 14px;
    top: 20px;
  }

  .link-button {
    top: 30px;
    left: 46px;
    font-size: 1.25rem;
  }

  .profile-stack .accent-lines {
    margin-left: 9px;
  }
}

@media (max-width: 500px) {
  .item-section-content {
    gap: 18px;
  }

  .item-description-wrap {
    --description-max-size: 22px;
    --description-min-size: 11px;
    flex-basis: 40%;
    width: 40%;
    min-width: 0;
    height: min(34svh, 260px);
    min-height: 130px;
  }

  .profile-row {
    gap: 16px;
  }

  .profile-photo-wrap {
    width: 130px;
    height: 130px;
  }

  .profile-photo-wrap .offset-circle {
    width: 106px;
    height: 106px;
    left: -23px;
    top: -18px;
  }

  .profile-photo {
    inset: 7px;
    width: 116px;
    height: 116px;
  }

  .person-name {
    font-size: 1.55rem;
  }

  .profile-stack .accent-lines {
    margin-left: 0;
  }
}

@media (max-width: 420px) {
  .item-section-content {
    flex-direction: column;
    justify-content: center;
    gap: 24px;
  }

  .item-description-wrap {
    --description-max-size: 22px;
    --description-min-size: 10px;
    flex: 0 0 auto;
    width: min(100%, 310px);
    max-width: 310px;
    height: min(28svh, 210px);
    min-height: 96px;
    justify-content: center;
    text-align: center;
  }

  .item-left,
  .item-right {
    flex: 0 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

.item-description-empty {
  visibility: hidden;
}

@media (max-width: 420px) {
  .item-description-empty {
    display: none;
  }
}
