:root {
  --bg: #000;
  --panel: #0b0b0b;
  --panel-strong: #111;
  --text: #fff;
  --muted: #b7b7b7;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #fff;
  --accent-2: #fff;
  --shadow: rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  cursor: default;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.binary-trail {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.binary-particle {
  position: fixed;
  left: 0;
  top: 0;
  color: rgba(255, 255, 255, 0.86);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.26);
  transform: translate3d(var(--x), var(--y), 0);
  animation: binary-fade 720ms ease-out forwards;
}
.page-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
  min-height: 92vh;
  padding: clamp(28px, 6vw, 80px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(28px, 6vw, 80px);
  right: clamp(28px, 6vw, 80px);
  bottom: 0;
  height: 1px;
  background: var(--line);
  border-radius: 999px;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(62vw, 520px);
  perspective: 900px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(52vw, 430px);
  aspect-ratio: 1;
  border: 6px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  transform: rotate(0deg);
  animation: drift 9s ease-in-out infinite alternate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: min(56vw, 460px);
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: scale(1.08);
  opacity: 0.65;
  pointer-events: none;
}

.brand-frame,
.portrait-frame {
  position: relative;
  width: min(44vw, 360px);
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 999px;
  transform-style: preserve-3d;
  transition: transform 260ms ease, filter 260ms ease;
  animation: settle 900ms ease both;
}

.brand-frame::after,
.portrait-frame::after {
  content: none;
}

.brand-frame.is-active,
.portrait-frame.is-active {
  filter: contrast(1.18);
}

.brand-frame img,
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  filter: grayscale(1) contrast(1.08) drop-shadow(0 26px 44px var(--shadow));
  transform: translateZ(24px);
}

.brand-frame img {
  border: 0;
  filter: drop-shadow(0 26px 44px var(--shadow));
}

.hero-content {
  max-width: 720px;
  animation: rise 800ms ease both;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Segoe UI Light", "Segoe UI", Arial, sans-serif;
  font-weight: 300;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 8vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.5rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button span {
  position: relative;
  z-index: 1;
}

.button::after {
  content: "";
  position: absolute;
  inset: -80% auto -80% -40%;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  transform: skewX(-18deg) translateX(-140%);
  transition: transform 520ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
}

.button:hover::after,
.button:focus-visible::after {
  transform: skewX(-18deg) translateX(520%);
}

.button.primary {
  background: var(--text);
  color: #000;
}

.button.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}

.button.secondary span {
  color: #fff;
}

.profile-section {
  padding: clamp(42px, 8vw, 100px) clamp(28px, 6vw, 80px);
}

.about-section {
  padding: clamp(42px, 8vw, 100px) clamp(28px, 6vw, 80px);
  border-top: 1px solid var(--line);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.56fr) minmax(300px, 1fr);
  gap: clamp(24px, 6vw, 78px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.about-image {
  display: grid;
  place-items: center;
}

.about-image img {
  width: min(36vw, 260px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 999px;
  border: 6px solid rgba(255, 255, 255, 0.92);
  filter: grayscale(1) contrast(1.08);
}

.about-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

.about-copy p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.site-footer {
  display: flex;
  justify-content: center;
  padding: 30px clamp(28px, 6vw, 80px) 38px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.site-footer a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  border: 0;
  transition: color 160ms ease, opacity 160ms ease;
}

.legal-content a,
.back-link {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
  opacity: 1;
}

.legal-content a:hover,
.legal-content a:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
  border-bottom-color: var(--text);
}

.legal-page {
  min-height: 100vh;
  padding: clamp(28px, 6vw, 80px);
}

.back-link {
  display: inline-flex;
  margin-bottom: clamp(36px, 7vw, 72px);
  color: var(--muted);
  font-weight: 700;
}

.legal-content {
  max-width: 860px;
  overflow-wrap: anywhere;
  word-break: normal;
}

.legal-content h1 {
  margin-bottom: clamp(34px, 6vw, 58px);
  font-size: clamp(2.7rem, 7vw, 6.2rem);
}

.legal-content section {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 12px;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
}

.legal-content p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  hyphens: auto;
}

.section-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 6vw, 78px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.profile-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.profile-copy p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.info-grid {
  display: grid;
  gap: 10px;
}

.info-card {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 66px;
  padding: 18px 20px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  border-radius: 8px;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-120%);
  transition: transform 620ms ease;
}

.info-card:hover::before {
  transform: translateX(120%);
}

.info-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.info-card strong {
  text-align: right;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
}

@keyframes drift {
  from {
    transform: translate3d(-8px, 8px, 0) scale(1);
  }
  to {
    transform: translate3d(8px, -8px, 0) scale(1.03);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: scale(0.94) rotate(-4deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

body.effects-ready .reveal,
body.effects-ready .reveal-item {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible,
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal-item:nth-child(2).is-visible {
  transition-delay: 100ms;
}

.reveal-item:nth-child(3).is-visible {
  transition-delay: 200ms;
}

body.is-clicking .brand-frame,
body.is-clicking .portrait-frame {
  transform: scale(0.985) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

@keyframes binary-fade {
  0% {
    opacity: 0;
    transform: translate3d(var(--x), var(--y), 0) scale(0.9);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy)), 0) scale(1.08);
  }
}

@media (max-width: 820px) {
  .legal-page {
    padding: 26px 18px 44px;
  }

  .legal-content {
    width: 100%;
    max-width: 100%;
  }

  .legal-content h1 {
    font-size: clamp(2.2rem, 12vw, 3.7rem);
    line-height: 1;
  }

  .legal-content h2 {
    font-size: clamp(1.25rem, 7vw, 2rem);
    line-height: 1.08;
  }

  .legal-content p {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .hero,
  .section-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
    gap: 34px;
  }

  .hero-visual {
    order: -1;
    min-height: 205px;
  }

  .hero-visual::before {
    width: min(58vw, 245px);
    border-width: 4px;
  }

  .hero-visual::after {
    width: min(62vw, 265px);
  }

  .hero-visual img {
    width: 100%;
  }

  .brand-frame,
  .portrait-frame {
    width: min(54vw, 220px);
  }

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

  .about-image {
    justify-content: start;
  }

  .about-image img {
    width: min(58vw, 220px);
  }

  .info-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .info-card strong {
    text-align: left;
  }

  .binary-trail {
    display: none;
  }
}

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