:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --header-height: 5.5rem;
  --header-pad-y: 1.25rem;
  --page-padding: clamp(1rem, 2vw, 2rem);
  --signature-ease: cubic-bezier(0.42, 0, 0.58, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 34%),
    var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  opacity: 0;
  animation: page-fade 0.65s ease forwards;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  padding: var(--header-pad-y) var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
}

.site-brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  width: clamp(7rem, 12vw, 10rem);
}

.signature-wrapper {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: visible;
  opacity: 0;
  transform: translateY(1px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.08));
}

.signature-wrapper.is-ready {
  opacity: 1;
  transform: none;
}

.signature-solid,
.signature-reveal {
  transform-origin: center;
}

.signature-solid {
  opacity: 0;
  transition: opacity 260ms ease;
}

.signature-solid path {
  fill: #ffffff;
}

.signature-reveal {
  opacity: 1;
  transition: opacity 220ms ease;
}

.signature-reveal path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-miterlimit: 1;
  vector-effect: non-scaling-stroke;
  transition-property: stroke-dashoffset;
  transition-timing-function: var(--signature-ease);
  will-change: stroke-dashoffset;
}

.signature-wrapper.is-complete .signature-solid {
  opacity: 1;
}

.signature-wrapper.is-complete .signature-reveal {
  opacity: 0;
}

.nav-link {
  position: absolute;
  bottom: calc(var(--header-pad-y) + 0.1rem);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--muted);
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--fg);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link-center {
  left: 50%;
  transform: translateX(-50%);
}

.nav-link-right {
  right: var(--page-padding);
}

.home-main,
.about-main {
  padding-top: var(--header-height);
}

.home-hero {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
  gap: 1rem;
  padding:
    clamp(1rem, 2.5vw, 2rem)
    clamp(1rem, 5vw, 4rem)
    clamp(2rem, 4vw, 3rem);
}

.hero-frame {
  position: relative;
  margin: 0;
  width: min(44vw, 38rem);
  height: min(78svh, 52rem);
  min-width: min(78vw, 22rem);
  overflow: hidden;
  background: #070707;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  animation: image-settle 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 34vw) minmax(18rem, 1fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: start;
  padding: clamp(1rem, 2vw, 2rem) var(--page-padding) 3rem;
}

.portrait-panel {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  margin: 0;
  overflow: hidden;
  background: #0a0a0a;
}

.portrait-image {
  width: 100%;
  max-height: calc(100svh - var(--header-height) - 2rem);
  object-fit: cover;
  object-position: center;
  animation: image-settle 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about-copy {
  max-width: 47rem;
  padding-top: 0.4rem;
}

.section-label {
  margin: 0 0 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-copy p,
.detail-block p {
  margin: 0 0 1.15rem;
  max-width: 39rem;
  font-size: 1rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.92);
}

.detail-block {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.detail-block h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.info-block {
  margin-top: 2.6rem;
  border-top: 1px solid var(--line);
}

.info-row {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.5;
}

.info-row span:first-child {
  color: var(--muted);
  text-transform: lowercase;
}

.info-row a {
  transition: color 180ms ease;
}

.info-row a:hover,
.info-row a:focus-visible {
  color: var(--muted);
}

@keyframes page-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes image-settle {
  from {
    transform: scale(1.06);
    opacity: 0.82;
  }

  to {
    transform: scale(1.02);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero-frame {
    width: min(88vw, 32rem);
    height: min(72svh, 40rem);
  }

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

  .portrait-panel {
    position: relative;
    top: auto;
  }

  .portrait-image {
    max-height: none;
    height: min(72svh, 42rem);
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 6rem;
    --header-pad-y: 1rem;
  }

  .site-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .site-brand {
    width: 6.6rem;
  }

  .nav-link {
    bottom: calc(var(--header-pad-y) + 0.05rem);
    font-size: 0.72rem;
  }

  .home-hero {
    align-content: center;
    padding-inline: 1rem;
  }

  .hero-frame {
    min-width: 0;
    width: 100%;
    height: min(66svh, 34rem);
  }

  .about-copy p,
  .detail-block p {
    font-size: 0.96rem;
    line-height: 1.66;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}
