.v7-root {
  --v7-panel: rgba(7, 10, 15, 0.78);
  --v7-panel-strong: rgba(7, 10, 15, 0.91);
  --v7-border: rgba(242, 239, 231, 0.2);
  --v7-border-bright: rgba(242, 239, 231, 0.42);
}

.v7-root body {
  background:
    linear-gradient(90deg, transparent calc(var(--page-pad) - 1px), rgba(255, 255, 255, 0.035) var(--page-pad), transparent calc(var(--page-pad) + 1px)),
    radial-gradient(circle at 78% 15%, rgba(38, 81, 86, 0.12), transparent 32rem),
    linear-gradient(180deg, #05070a 0%, #080b11 62%, #020305 100%);
}

.v7-root .site-header {
  background: linear-gradient(180deg, rgba(5, 7, 10, 0.98) 0%, rgba(5, 7, 10, 0.9) 66%, transparent 100%);
}

.v7-root .experience-vignette {
  background:
    linear-gradient(90deg, rgba(2, 4, 8, 0.91) 0%, rgba(2, 4, 8, 0.76) 30%, rgba(2, 4, 8, 0.24) 51%, transparent 68%),
    radial-gradient(circle at 69% 48%, transparent 0%, transparent 42%, rgba(2, 4, 8, 0.14) 70%, rgba(2, 4, 8, 0.52) 100%);
}

.v7-root.is-webgl.is-ready #experience-canvas {
  opacity: 0.88;
  filter: saturate(0.92) brightness(0.96);
}

.v7-root .scene {
  min-height: 108svh;
  scroll-margin-top: var(--header-height);
}

.v7-root h1,
.v7-root h2,
.v7-root h3 {
  text-wrap: balance;
}

.v7-root .v7-hero {
  align-items: center;
  min-height: 100svh;
}

.v7-root .v7-hero__copy {
  max-width: 46rem;
  padding: 6rem 0 2rem;
}

.v7-root .v7-hero h1 {
  max-width: 13.5ch;
  margin-bottom: 1.6rem;
  font-size: clamp(3.8rem, 6vw, 6.7rem);
  line-height: 0.92;
}

.v7-root .v7-hero .hero-copy__intro {
  max-width: 39rem;
  margin-bottom: 1.35rem;
  padding-left: 0;
  color: var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.65;
}

.v7-proofline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.85rem;
  align-items: center;
  margin: 0 0 2rem;
  color: var(--ink-faint);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.v7-proofline i {
  width: 0.22rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--estimand);
}

.v7-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.v7-button,
.v7-text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.05rem;
  border: 1px solid var(--v7-border);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.v7-button--primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ground);
}

.v7-text-action {
  border-color: transparent;
}

.v7-button:hover,
.v7-text-action:hover {
  border-color: var(--estimand);
  transform: translateY(-2px);
}

.v7-button--primary:hover {
  background: var(--estimand);
  color: var(--ground);
}

.v7-root .v7-about .scene__content {
  max-width: 43rem;
}

.v7-root .v7-about h2 {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.25rem, 5.8vw, 6.15rem);
}

.v7-root .v7-about .scene__lead {
  margin-bottom: 0.9rem;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
}

.v7-root .v7-about .scene__detail {
  margin-bottom: 1.3rem;
}

.v7-focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.v7-focus-list li {
  padding: 0.46rem 0.68rem;
  border: 1px solid var(--v7-border);
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.v7-root .v7-work {
  align-items: center;
}

.v7-root .v7-work .scene__content {
  padding-bottom: 0;
}

.v7-work-index {
  display: grid;
  grid-template-columns: minmax(16rem, 0.75fr) minmax(24rem, 1.25fr);
  gap: clamp(2rem, 6vw, 6rem);
  width: min(73rem, 82vw);
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--v7-border);
  background: linear-gradient(120deg, var(--v7-panel-strong), rgba(7, 10, 15, 0.69));
  box-shadow: 0 2.4rem 7rem rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.v7-work-index__intro h2 {
  max-width: 12ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2.8rem, 4.9vw, 5.4rem);
}

.v7-work-index__intro > p:last-child {
  max-width: 28rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.7;
}

.v7-work-index__list {
  border-top: 1px solid var(--v7-border);
}

.v7-index-card {
  display: grid;
  grid-template-columns: 2.3rem 1fr 1rem;
  gap: 1rem;
  align-items: center;
  min-height: 7.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--v7-border);
  transition: padding 220ms ease, border-color 220ms ease, background 220ms ease;
}

.v7-index-card__number,
.v7-index-card__role,
.v7-index-card__body > span:last-child {
  color: var(--ink-faint);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.v7-index-card__number,
.v7-index-card__arrow {
  color: var(--estimand);
}

.v7-index-card__body {
  display: grid;
  gap: 0.35rem;
}

.v7-index-card__body strong {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.v7-index-card__arrow {
  transition: transform 180ms ease;
}

.v7-index-card:hover {
  padding-right: 0.7rem;
  padding-left: 0.7rem;
  border-color: var(--v7-border-bright);
  background: rgba(255, 255, 255, 0.035);
}

.v7-index-card:hover .v7-index-card__arrow {
  transform: translateY(0.28rem);
}

.v7-root .v7-project .project {
  padding: clamp(1.35rem, 3vw, 2.5rem) clamp(1.35rem, 3vw, 2.8rem) clamp(1.35rem, 3vw, 2.5rem) clamp(2.2rem, 4vw, 3.6rem);
  border: 1px solid var(--v7-border);
  background: linear-gradient(135deg, var(--v7-panel-strong), rgba(7, 10, 15, 0.68));
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
}

.v7-root .v7-project .project::before {
  top: 0;
  bottom: 0;
}

.v7-root .v7-project .project::after {
  top: 1.55rem;
}

.v7-root .v7-project h3 {
  font-size: clamp(2.6rem, 4.8vw, 5rem);
}

.v7-root .v7-project .project__meta {
  margin-bottom: clamp(1.8rem, 4vh, 3rem);
}

.v7-project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.8rem;
  padding: 1rem 0;
  border-top: 1px solid var(--v7-border);
  border-bottom: 1px solid var(--v7-border);
}

.v7-project-facts div {
  display: grid;
  gap: 0.3rem;
}

.v7-project-facts dt {
  color: var(--ink-faint);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.v7-project-facts dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.45;
}

.v7-root .v7-writing {
  min-height: 145svh;
}

.v7-root .v7-writing .writing-layout {
  gap: clamp(3rem, 7vw, 7rem);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border: 1px solid var(--v7-border);
  background: linear-gradient(120deg, var(--v7-panel-strong), rgba(7, 10, 15, 0.7));
  box-shadow: 0 2.4rem 7rem rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(15px);
}

.v7-root .v7-writing .writing-intro h2 {
  max-width: 10ch;
  font-size: clamp(2.8rem, 4.8vw, 5.3rem);
}

.v7-writing-archive {
  margin-top: 0;
}

.v7-root .v7-writing-row {
  grid-template-columns: 2rem 1fr auto 1rem;
  min-height: 9rem;
}

.v7-writing-row__body {
  display: grid;
  gap: 0.65rem;
}

.v7-writing-row__subtitle {
  max-width: 31rem;
  color: var(--ink-faint);
  font-size: 0.78rem;
  line-height: 1.5;
}

.v7-writing-row time {
  color: var(--ink-faint);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.v7-root .v7-contact {
  min-height: 112svh;
}

.v7-root .v7-contact .contact-copy {
  max-width: 38rem;
}

.v7-root .v7-contact h2 {
  font-size: clamp(3rem, 6vw, 6.4rem);
}

.v7-root .v7-contact .contact-email {
  margin-bottom: 2.25rem;
  font-size: clamp(1.55rem, 3.1vw, 3.25rem);
}

.v7-root .v7-contact .copyright {
  margin-top: 2rem !important;
}

.v7-root .scene--project-3 {
  align-items: center;
  padding-top: calc(var(--header-height) + 1.5rem);
  padding-bottom: 7vh;
}

@media (max-width: 900px) {
  .v7-root .experience-vignette {
    background:
      linear-gradient(180deg, rgba(2, 4, 8, 0.08), rgba(2, 4, 8, 0.7) 58%, rgba(2, 4, 8, 0.82)),
      radial-gradient(circle at 64% 30%, transparent 0%, transparent 35%, rgba(2, 4, 8, 0.38) 80%);
  }

  .v7-root .v7-hero {
    align-items: flex-end;
  }

  .v7-root .v7-hero__copy {
    max-width: 42rem;
    padding-top: 6rem;
    padding-bottom: 9vh;
  }

  .v7-root .v7-hero h1 {
    font-size: clamp(3.8rem, 11vw, 6.7rem);
  }

  .v7-work-index {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    width: min(43rem, 88vw);
  }

  .v7-root .v7-project .project,
  .v7-root .scene--project-alt .project {
    max-width: min(43rem, 82vw);
  }

  .v7-root .v7-writing {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .v7-root .site-header {
    background: linear-gradient(180deg, rgba(5, 7, 10, 0.98) 0%, rgba(5, 7, 10, 0.9) 72%, transparent 100%);
  }

  .v7-root .v7-hero__copy {
    padding-bottom: 8vh;
  }

  .v7-root .v7-hero h1 {
    max-width: 9ch;
    margin-bottom: 1.15rem;
    font-size: clamp(3.25rem, 15vw, 5.2rem);
  }

  .v7-root .v7-hero .hero-copy__intro {
    max-width: 22rem;
    font-size: 0.93rem;
    line-height: 1.55;
  }

  .v7-proofline {
    margin-bottom: 1.35rem;
  }

  .v7-actions {
    gap: 0.55rem;
  }

  .v7-button,
  .v7-text-action {
    min-height: 2.65rem;
    padding: 0.58rem 0.72rem;
    font-size: 0.57rem;
  }

  .v7-root .v7-about {
    align-items: flex-end;
    min-height: 110svh;
    padding-top: 18rem;
    padding-bottom: 7vh;
  }

  .v7-root .v7-about .scene__content {
    padding: 0;
  }

  .v7-root .v7-about h2,
  .v7-work-index__intro h2,
  .v7-root .v7-writing .writing-intro h2 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .v7-root .v7-about .scene__lead {
    font-size: 1.08rem;
    line-height: 1.4;
  }

  .v7-root .v7-about .scene__detail {
    margin-bottom: 1.4rem;
  }

  .v7-root .v7-work {
    align-items: flex-end;
    min-height: 128svh;
    padding-bottom: 5vh;
  }

  .v7-work-index {
    gap: 1.6rem;
    width: 100%;
    padding: 1.2rem;
  }

  .v7-work-index__intro > p:last-child {
    font-size: 0.88rem;
  }

  .v7-index-card {
    grid-template-columns: 1.75rem 1fr 0.8rem;
    min-height: 5.8rem;
  }

  .v7-index-card__body strong {
    font-size: 1.18rem;
  }

  .v7-root .v7-project .project,
  .v7-root .scene--project-alt .project {
    max-width: 100%;
    padding: 1.25rem 1.15rem 1.25rem 1.7rem;
  }

  .v7-root .v7-project .project::after {
    top: 1.4rem;
  }

  .v7-root .v7-project h3 {
    font-size: clamp(2.4rem, 11.5vw, 3.7rem);
  }

  .v7-project-facts {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .v7-root .v7-writing {
    padding-top: 18rem;
  }

  .v7-root .v7-writing .writing-layout {
    gap: 2.6rem;
    padding: 1.2rem;
  }

  .v7-root .v7-writing-row {
    grid-template-columns: 1.5rem 1fr 0.8rem;
    min-height: 8rem;
  }

  .v7-writing-row time {
    display: none;
  }

  .v7-writing-row__subtitle {
    font-size: 0.72rem;
  }

  .v7-root .v7-contact {
    min-height: 125svh;
    padding-top: 18rem;
  }

  .v7-root .v7-contact .contact-copy {
    max-width: 100%;
  }

  .v7-root .v7-contact h2 {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }
}

@media (max-width: 360px) and (max-height: 780px) {
  .v7-root .v7-hero h1 {
    font-size: 3rem;
  }

  .v7-root .v7-work {
    min-height: 138svh;
  }

  .v7-root .v7-writing {
    padding-top: 20rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v7-root .v7-button:hover,
  .v7-root .v7-text-action:hover,
  .v7-root .v7-index-card:hover .v7-index-card__arrow {
    transform: none;
  }
}
