:root {
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #6e6e73;
  --border: #e5e5e5;
  --link: #06c;
  --background: #fff;
  --page-width: 1120px;
  --page-padding: clamp(1.5rem, 5vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 4px;
  border-radius: 2px;
}

.page-width {
  width: min(100%, var(--page-width));
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: #fff;
  background: var(--text);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: 1px solid var(--border);
}

.site-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

nav {
  display: flex;
  gap: 1.75rem;
}

nav a {
  color: var(--secondary);
  font-size: 0.82rem;
  transition: color 150ms ease;
}

nav a:hover {
  color: var(--text);
}

.intro {
  display: grid;
  align-items: center;
  padding-top: clamp(7rem, 14vw, 11rem);
  padding-bottom: clamp(8rem, 16vw, 13rem);
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(4rem, 8vw, 7rem);
}

.label {
  margin: 0 0 1.5rem;
  color: var(--tertiary);
  font-size: 0.8rem;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.intro-copy {
  max-width: 670px;
  margin: 2.2rem 0 0;
  color: #424245;
  font-size: clamp(1.35rem, 2.7vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.42;
}

.intro-note {
  max-width: 570px;
  margin: 2rem 0 0;
  color: var(--secondary);
}

.field {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.08), transparent 28%) padding-box,
    linear-gradient(#09090a, #09090a) padding-box,
    radial-gradient(circle at var(--mx) var(--my), #d8dcff 0, #696d82 13%, #2b2b30 34%, #151517 66%) border-box;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
  cursor: crosshair;
  isolation: isolate;
  perspective: 900px;
}

.field::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.12), transparent 22%);
  content: "";
  opacity: 0.75;
  pointer-events: none;
}

.field-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-position: center;
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 95%);
}

.field-status {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  left: 1.25rem;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.45);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.field-object {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 120ms linear;
}

.field-layer,
.field-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.38);
  place-items: center;
}

.field-layer {
  width: 118px;
  height: 118px;
  border-radius: 14px;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.04);
}

.field-layer-one {
  transform: translate(-50%, -50%) rotate(45deg) translateZ(-28px);
}

.field-layer-two {
  width: 150px;
  height: 150px;
  border-color: rgba(168, 178, 255, 0.3);
  transform: translate(-50%, -50%) rotate(45deg) translateZ(0);
}

.field-layer-three {
  width: 182px;
  height: 182px;
  border-color: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%) rotate(45deg) translateZ(28px);
}

.field-center {
  z-index: 2;
  width: 68px;
  height: 68px;
  border-color: rgba(255, 255, 255, 0.62);
  border-radius: 11px;
  background: rgba(8, 8, 9, 0.88);
  box-shadow:
    0 0 55px rgba(255, 255, 255, 0.14),
    inset 0 1px rgba(255, 255, 255, 0.12);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  transform: translate(-50%, -50%) translateZ(48px);
}

.field-caption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.1rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.38);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section {
  display: grid;
  padding-top: 5rem;
  padding-bottom: 5rem;
  border-top: 1px solid var(--border);
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 5rem);
}

.section-label h2 {
  margin: 0;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.prose {
  max-width: 650px;
}

.prose p {
  margin: 0 0 1.35rem;
  color: #424245;
  font-size: 1.08rem;
  line-height: 1.68;
}

.prose p:last-child {
  margin-bottom: 0;
}

.roles {
  display: grid;
  gap: 0.75rem;
}

.role {
  --card-x: 50%;
  --card-y: 50%;
  --card-light: 0;
  position: relative;
  padding: 1.8rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    radial-gradient(
        420px circle at var(--card-x) var(--card-y),
        rgba(105, 113, 255, calc(0.1 * var(--card-light))),
        transparent 58%
      )
      padding-box,
    linear-gradient(#fff, #fff) padding-box,
    radial-gradient(
        230px circle at var(--card-x) var(--card-y),
        rgba(82, 93, 255, calc(0.62 * var(--card-light))),
        transparent 72%
      )
      border-box,
    linear-gradient(135deg, #e8e8ea, #f5f5f6 45%, #dedee2) border-box;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.role:hover {
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.055);
  transform: translateY(-2px);
}

.role-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 2rem;
}

.role h3,
.role-heading p,
.role > p {
  margin-top: 0;
}

.role h3 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
  font-weight: 600;
}

.role-heading p {
  margin-bottom: 0;
  color: var(--secondary);
  font-size: 0.9rem;
}

.role .role-date {
  color: var(--tertiary);
  font-size: 0.82rem;
  white-space: nowrap;
}

.role > p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.focus-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3rem;
}

.focus-list p {
  margin: 0;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  color: #424245;
  font-size: 0.95rem;
}

.contact {
  padding-bottom: 7rem;
}

.contact-links {
  display: flex;
  margin-top: 2.25rem;
  gap: 1.5rem;
}

.contact-links a {
  color: var(--link);
  font-size: 0.95rem;
}

.contact-links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100px;
  border-top: 1px solid var(--border);
  color: var(--tertiary);
  font-size: 0.75rem;
}

[data-reveal].is-visible {
  animation: reveal-in 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 64px;
  }

  nav {
    gap: 1rem;
  }

  nav a:first-child {
    display: none;
  }

  .intro {
    padding-top: 6rem;
    padding-bottom: 8rem;
    grid-template-columns: 1fr;
    gap: 4.5rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .intro-copy {
    font-size: 1.3rem;
  }

  .field {
    min-height: 340px;
    border-radius: 14px;
    cursor: default;
  }

  .field-object {
    transform: translate(-50%, -50%);
  }

  .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .role-heading {
    flex-direction: column;
    gap: 0.65rem;
  }

  .role {
    padding: 1.35rem;
  }

  .role:hover {
    box-shadow: none;
    transform: none;
  }

  .role .role-date {
    order: -1;
  }

  .focus-list {
    grid-template-columns: 1fr;
  }

  .contact {
    padding-bottom: 5rem;
  }

  .site-footer {
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
  }

  .site-footer p {
    margin: 0;
  }
}

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

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

  .field-object {
    transform: translate(-50%, -50%);
  }
}
