:root {
  --ink: #050505;
  --muted: #777;
  --soft: #efefef;
  --line: #d9d9d9;
  --line-strong: #111;
  --paper: #fff;
  --header-h: 90px;
  --sub-h: 58px;
  --gutter: 9vw;
  --content-max: 1180px;
  --table-max: 956px;
  --landing-reveal: 0;
  --landing-header-offset: -14px;
  --landing-sub-offset: -10px;
  --landing-cue-opacity: 0.62;
  --landing-cue-hover-opacity: 0.88;
  --serif: "EB Garamond", Georgia, "Times New Roman", "Noto Serif SC", serif;
  --sans: Arial, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}

body.is-scrolled .site-header {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

body.is-resume-deep .site-header {
  transform: translateY(calc(var(--header-h) * -1));
}

body.is-resume-deep .sub-header {
  top: 0;
}

body.has-landing.is-before-resume .site-header,
body.has-landing.is-before-resume .sub-header,
body.has-landing.is-before-resume .floating-contact,
body.has-landing.is-before-resume .contact-hub {
  pointer-events: none;
}

body.has-landing.is-before-resume .floating-contact,
body.has-landing.is-before-resume .contact-hub {
  opacity: 0;
}

body.has-landing .site-header {
  position: fixed;
  left: 0;
  right: 0;
  opacity: var(--landing-reveal);
}

body.has-landing .sub-header {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--header-h);
  opacity: var(--landing-reveal);
}

body.has-landing:not(.is-resume-deep) .site-header {
  transform: translateY(var(--landing-header-offset));
}

body.has-landing:not(.is-resume-deep) .sub-header {
  transform: translateY(var(--landing-sub-offset));
}

body.has-landing.is-resume-deep .site-header {
  transform: translateY(calc(var(--header-h) * -1));
  opacity: 1;
}

body.has-landing.is-resume-deep .sub-header {
  top: 0;
  opacity: 1;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
}

.landing {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #020305;
  color: #fff;
  isolation: isolate;
}

.landing[hidden] {
  display: none;
}

.landing-poster,
.landing-video,
.landing-canvas,
.landing-noise,
.landing-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.landing-poster,
.landing-video,
.landing-canvas {
  object-fit: cover;
}

.landing-poster {
  z-index: -5;
  opacity: 0.45;
  filter: saturate(0.7) contrast(1.08) brightness(0.74);
}

.landing-video {
  z-index: -4;
  filter: saturate(0.74) contrast(1.04) brightness(0.78);
}

.landing-canvas {
  z-index: -3;
  opacity: 0.78;
  filter: saturate(0.76) contrast(0.96) brightness(0.72);
}

.landing.has-video .landing-canvas {
  opacity: 0;
}

.landing-noise {
  z-index: -2;
  opacity: 0.24;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.13) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 65%, rgba(255, 255, 255, 0.11) 0 1px, transparent 1px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px);
  background-size: 4px 4px, 6px 6px, 5px 100%;
  mix-blend-mode: soft-light;
}

.landing-vignette {
  z-index: -1;
  background:
    radial-gradient(circle at 70% 22%, transparent 0 18%, rgba(0, 0, 0, 0.48) 58%, rgba(0, 0, 0, 0.86) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.74) 88%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 58%);
}

.landing-inner {
  position: absolute;
  left: clamp(52px, 5vw, 72px);
  right: 52px;
  top: 36.7vh;
  max-width: 960px;
}

.landing-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 118px;
  color: #fff;
}

.landing-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 86px;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 0 26px 0 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
}

.landing-mark::before,
.landing-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 7px, rgba(255, 255, 255, 0.92) 7px 10px, transparent 10px 17px),
    repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255, 255, 255, 0.78) 12px 15px, transparent 15px 24px);
  opacity: 0.94;
}

.landing-mark::after {
  inset: 16px 14px 14px;
  border-radius: 0 15px 0 0;
  background: rgba(1, 3, 8, 0.86);
  opacity: 1;
}

.landing-mark {
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}

.landing-mark b {
  position: relative;
  z-index: 2;
  font-weight: 400;
  letter-spacing: 1px;
}

.landing-name {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.landing-brand small {
  display: block;
  margin-top: 6px;
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.landing-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
  margin-top: 66px;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.landing-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: #fff;
  text-transform: uppercase;
}

.landing-nav a::after,
.landing-utility a::after,
.landing-info a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 180ms ease;
}

.landing-nav a:hover::after,
.landing-utility a:hover::after,
.landing-info a:hover::after {
  right: 0;
}

.landing-nav a.has-separator {
  margin-left: 31px;
}

.landing-nav a.has-separator::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 4px;
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.72);
}

.landing-utility {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.landing-utility a {
  position: relative;
  padding-left: 18px;
  color: #fff;
}

.landing-utility a::before {
  content: "→";
  position: absolute;
  left: 0;
  top: -1px;
  font-weight: 400;
}

.landing-info {
  width: min(540px, 56vw);
  margin-top: 54px;
  color: #fff;
}

.landing-info h2 {
  margin: 0 0 18px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.78);
  font-size: 16px;
  line-height: 1.25;
}

.landing-info ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-info li {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 26px;
  align-items: baseline;
  min-height: 21px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.landing-info time {
  font-family: var(--sans);
  white-space: nowrap;
}

.landing-info a {
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-copyright {
  position: absolute;
  right: clamp(40px, 7vw, 100px);
  bottom: 58px;
  min-width: 245px;
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 11px;
  line-height: 2;
}

.landing-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 4.5vh, 46px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  opacity: var(--landing-cue-opacity);
  transform: translateX(-50%);
  transition: opacity 180ms ease;
}

.landing-scroll-cue span {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  animation: landingCue 1800ms ease-in-out infinite;
}

.landing-scroll-cue span::before {
  content: "";
  position: absolute;
  inset: 2px 0 0 2px;
  width: 10px;
  height: 10px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}

.landing-scroll-cue:hover {
  opacity: var(--landing-cue-hover-opacity);
}

@keyframes landingCue {
  0%,
  100% {
    transform: translateY(-2px);
  }

  50% {
    transform: translateY(4px);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 90px 1fr 90px;
  align-items: center;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 180ms ease, transform 260ms ease, opacity 220ms ease;
}

.menu-button {
  display: grid;
  place-content: center;
  gap: 5px;
  height: var(--header-h);
  background: #fff;
  border-right: 1px solid var(--line);
  cursor: pointer;
}

.menu-button:hover span,
.sub-menu-button:hover i {
  background: #777;
}

.menu-button span {
  display: block;
  width: 31px;
  height: 2px;
  background: #111;
}

.menu-button b {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.top-button {
  gap: 6px;
}

.top-button i {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border: 1px solid #111;
  border-radius: 50%;
}

.top-button i::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-left: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

.top-button:hover i {
  border-color: #777;
  color: #777;
}

.site-logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 180px;
  min-width: 180px;
  overflow: visible;
}

.logo-mark {
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid #111;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1;
}

.logo-type {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 0.95;
  white-space: nowrap;
}

.logo-type small {
  display: block;
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 8px;
  line-height: 1;
}

.header-link {
  display: none;
  min-width: 208px;
  height: var(--header-h);
  place-items: center;
  border-left: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.header-link:hover {
  background: #f6f6f6;
}

.header-link::before {
  content: ">";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border: 1px solid #aaa;
  border-radius: 50%;
  font-size: 13px;
}

.store-link {
  display: grid;
  width: 90px;
  height: var(--header-h);
  place-items: center;
  background: #484848;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  transition: background 160ms ease;
}

.store-link:hover {
  background: #111;
}

.sub-header {
  position: sticky;
  top: var(--header-h);
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--sub-h);
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: top 260ms ease, transform 260ms ease, opacity 220ms ease;
}

.sub-header span {
  flex: 0 1 var(--content-max);
  width: calc(100% - 260px);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.sub-header em {
  margin-left: 6px;
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
}

.sub-menu-button {
  position: absolute;
  right: max(25px, calc((100vw - var(--content-max)) / 2));
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 8px;
  width: 42px;
  padding: 10px 4px;
  background: transparent;
  cursor: pointer;
}

.sub-menu-button i {
  display: block;
  height: 1px;
  background: #111;
}

.hero {
  position: relative;
  padding: 110px 0 0;
  text-align: center;
}

body.has-landing .hero {
  padding-top: 258px;
}

.hero-title h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.4;
}

.hero-title p {
  margin: 1px var(--gutter) 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
}

.hero-media {
  position: relative;
  --hero-gallery-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  width: 90vw;
  max-width: none;
  margin: 109px 0 0 auto;
}

.hero-media-frame {
  position: relative;
  overflow: hidden;
  background: #111;
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transform: scale(1) translate3d(0, 0, 0);
  transition:
    opacity 1100ms var(--hero-gallery-ease),
    transform 1500ms var(--hero-gallery-ease),
    filter 1100ms var(--hero-gallery-ease);
  will-change: opacity, transform, filter;
}

.hero-media [data-hero-image] {
  position: relative;
  z-index: 1;
}

.hero-gallery-next {
  position: absolute;
  inset: 0;
  z-index: 2;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.026) translate3d(var(--hero-pan-x, 0), var(--hero-pan-y, 0), 0);
}

.hero-gallery-next.is-visible {
  opacity: 1;
  transform: scale(1) translate3d(0, 0, 0);
}

.hero-media img.is-fading-out {
  opacity: 0.24;
  filter: brightness(0.9) saturate(0.96);
  transform: scale(1.018) translate3d(var(--hero-pan-out-x, 0), var(--hero-pan-out-y, 0), 0);
}

.hero-media img.is-gallery-syncing {
  opacity: 1 !important;
  filter: none !important;
  transform: scale(1) translate3d(0, 0, 0) !important;
  transition: none !important;
}

.hero-photo-credit {
  margin: 12px 0 0;
  color: #777;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  text-align: left;
}

.hero-gallery-button {
  position: absolute;
  left: clamp(18px, 2.4vw, 34px);
  bottom: clamp(18px, 2.4vw, 34px);
  z-index: 4;
  display: inline-grid;
  grid-template-columns: minmax(0, auto) 38px;
  grid-template-rows: auto auto;
  grid-template-areas:
    "label icon"
    "counter icon";
  gap: 4px 14px;
  align-items: center;
  min-width: 132px;
  min-height: 56px;
  padding: 10px 10px 10px 16px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03)),
    rgba(6, 8, 10, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 4px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px) saturate(1.2);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.hero-gallery-button::before {
  content: "";
  grid-area: icon;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-gallery-button::after {
  content: "";
  grid-area: icon;
  justify-self: center;
  align-self: center;
  width: 7px;
  height: 7px;
  margin-left: -2px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  transform: rotate(45deg);
}

.hero-gallery-button span,
.hero-gallery-button b {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-gallery-button span {
  grid-area: label;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
}

.hero-gallery-button b {
  grid-area: counter;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 400;
}

.hero-gallery-button:hover,
.hero-gallery-button:focus-visible {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(6, 8, 10, 0.58);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  transform: translateY(-2px);
}

.floating-contact {
  display: none;
}

.content-shell {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 140px 0 132px;
}

.section-rail {
  position: sticky;
  top: calc(var(--sub-h) + 72px);
  z-index: 12;
  width: 90px;
  height: 0;
  margin-left: max(24px, calc((100vw - var(--content-max)) / 2 - 98px));
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
}

body.is-resume-deep .section-rail {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.section-rail p {
  margin: 0 0 24px;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.section-rail nav {
  display: grid;
  gap: 13px;
}

.section-rail a {
  position: relative;
  display: block;
  padding-left: 0;
  color: #aaa;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  transition: color 160ms ease;
}

.section-rail a.is-active,
.section-rail a:hover {
  color: #111;
}

.resume-section {
  width: calc(100% - 260px);
  max-width: var(--content-max);
  margin: 0 auto 148px;
  scroll-margin-top: calc(var(--header-h) + var(--sub-h) + 24px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.resume-section.is-visible {
  opacity: 1;
  transform: none;
}

.resume-section:last-child {
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 126px;
  text-align: left;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.35;
}

.summary {
  max-width: 720px;
  margin: 26px 0 0;
  color: #555;
  font-size: 14px;
  line-height: 2;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  width: var(--table-max);
  max-width: 100%;
  margin: 0 0 58px auto;
}

.metrics article {
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
}

.metrics b {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 14px;
  color: #555;
  font-size: 13px;
  font-weight: 700;
}

.definition-table {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  width: var(--table-max);
  max-width: 100%;
  margin: 0 0 0 auto;
  border-top: 1px solid var(--line-strong);
}

.definition-table dt,
.definition-table dd {
  min-height: 74px;
  margin: 0;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.definition-table dt {
  font-weight: 700;
}

.definition-table dd {
  color: #222;
  overflow-wrap: anywhere;
}

.definition-table dd p {
  margin: 0 0 5px;
}

.definition-table dd p:last-child {
  margin-bottom: 0;
}

.definition-table a,
.timeline-body a,
.site-footer a {
  border-bottom: 1px solid #111;
}

.definition-table a:hover,
.timeline-body a:hover,
.site-footer a:hover {
  color: #666;
}

.timeline-list {
  width: var(--table-max);
  max-width: 100%;
  margin-left: auto;
  border-top: 1px solid var(--line-strong);
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--line);
}

.timeline-item.has-media {
  display: block;
  padding: 44px 0 74px;
}

.timeline-item time {
  color: #777;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.45;
}

.timeline-item.has-media time {
  display: block;
  margin: 0 0 22px;
}

.timeline-feature {
  display: grid;
  grid-template-columns: minmax(0, 458px) minmax(0, 1fr);
  gap: 67px;
  align-items: start;
}

.feature-media {
  position: relative;
  display: block;
  margin: 0;
  color: inherit;
  border-bottom: 0;
}

.timeline-body .feature-media {
  border-bottom: 0;
}

.feature-media img {
  display: block;
  width: 100%;
  aspect-ratio: 458 / 286;
  object-fit: cover;
}

.feature-media::after,
.feature-media::before {
  content: "";
  position: absolute;
}

.feature-media::after {
  content: "";
  left: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
}

.feature-media::before {
  z-index: 1;
  left: 39px;
  bottom: 35px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid rgba(255, 255, 255, 0.96);
}

.feature-caption {
  display: block;
  margin-top: 16px;
  color: #777;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

.feature-copy {
  padding-top: 4px;
}

.timeline-body h3,
.group-grid h3,
.compact-groups h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}

.item-meta {
  margin: 8px 0 16px;
  color: #666;
  font-size: 13px;
  font-weight: 700;
}

.timeline-body ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-body li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 20px;
  color: #333;
  line-height: 1.85;
}

.timeline-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 6px;
  height: 6px;
  background: #111;
}

.group-grid,
.compact-groups {
  display: grid;
  grid-template-columns: 1fr;
  width: var(--table-max);
  max-width: 100%;
  margin-left: auto;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.group-grid article,
.compact-groups article {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 0;
  padding: 31px 0 34px;
  border-bottom: 1px solid var(--line);
}

.group-grid p,
.compact-groups p {
  grid-column: 2;
  margin: 0 0 13px;
  color: #444;
  line-height: 1.88;
}

.group-grid p:last-child,
.compact-groups p:last-child {
  margin-bottom: 0;
}

.group-grid h3,
.compact-groups h3 {
  grid-column: 1;
  grid-row: 1 / span 20;
}

.ai-logo-cloud {
  position: relative;
  width: var(--table-max);
  max-width: 100%;
  height: clamp(300px, 33vw, 430px);
  margin: 58px 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(164, 188, 194, 0.44);
  border-radius: 6px;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.96),
    0 18px 50px rgba(40, 56, 62, 0.08);
  isolation: isolate;
}

.ai-logo-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
}

.ai-logo-caption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
  max-width: min(520px, calc(100% - 36px));
  margin: 0;
  color: rgba(75, 82, 84, 0.58);
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0;
  pointer-events: none;
}

.ai-logo-fallback-item {
  position: relative;
  z-index: 0;
  display: inline-flex;
  margin: 12px;
  color: #6d777a;
  font-size: 12px;
}

.ai-logo-cloud.is-webgl-ready .ai-logo-fallback-item {
  display: none;
}

.drawer {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  width: 420px;
  max-width: 88vw;
  padding: 108px 42px 60px;
  background: #111;
  color: #fff;
  transform: translateX(-100%);
  transition: transform 280ms ease;
  pointer-events: none;
}

.drawer.is-open {
  transform: translateX(0);
  pointer-events: auto;
}

.drawer nav {
  display: grid;
  gap: 24px;
}

.drawer a {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.08;
}

.contact-hub {
  position: fixed;
  left: clamp(24px, 4vw, 58px);
  bottom: clamp(22px, 4vw, 46px);
  z-index: 42;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

body.has-landing.is-before-resume .contact-hub {
  transform: translateY(10px);
}

.contact-hub-button {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(20, 30, 42, 0.14);
  border-radius: 50%;
  background: #fff;
  color: #111;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.contact-hub-button img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.contact-hub-button:hover,
.contact-hub.is-open .contact-hub-button {
  background: #f8fbff;
  color: #111;
  transform: translateY(-1px);
}

.contact-popover {
  position: absolute;
  left: 0;
  bottom: 66px;
  width: 238px;
  border: 1px solid #222;
  background: #111;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.contact-hub.is-open .contact-popover {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.contact-action {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.contact-action:last-child {
  border-bottom: 0;
}

.contact-action:hover {
  background: rgba(255, 255, 255, 0.08);
}

.contact-action b {
  font-size: 13px;
  line-height: 1.3;
}

.contact-action span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.5;
}

.assistant-chat {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  align-items: end;
  justify-items: start;
  padding: 24px;
  background: rgba(255, 255, 255, 0.28);
}

.assistant-chat[hidden] {
  display: none;
}

.assistant-dialog {
  display: flex;
  flex-direction: column;
  width: min(430px, calc(100vw - 48px));
  height: min(640px, calc(100vh - 64px));
  border: 1px solid #111;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--line);
}

.assistant-head p {
  margin: 0 0 5px;
  color: #777;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assistant-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.assistant-head button {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.assistant-head button:hover {
  border-color: #111;
}

.assistant-status {
  min-height: 38px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  color: #666;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.assistant-status[data-kind="ok"] {
  color: #1b7a43;
}

.assistant-status[data-kind="error"] {
  color: #b3261e;
}

.assistant-messages {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 18px 22px;
  overflow: auto;
  background: #fafafa;
}

.assistant-message {
  max-width: 88%;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: #fff;
  color: #222;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.assistant-message.user {
  align-self: flex-end;
  border-color: #111;
  background: #111;
  color: #fff;
}

.assistant-message.assistant {
  align-self: flex-start;
}

.assistant-message.is-error {
  border-color: #f2c5c0;
  color: #b3261e;
  background: #fff3f1;
}

.assistant-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.assistant-form textarea {
  width: 100%;
  min-height: 64px;
  max-height: 150px;
  padding: 14px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  resize: vertical;
  color: #111;
  font: inherit;
  line-height: 1.6;
}

.assistant-form button {
  background: #111;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.assistant-form button:disabled {
  background: #777;
  cursor: wait;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  padding: 38px var(--gutter);
  border-top: 1px solid var(--line);
  color: #555;
  font-size: 13px;
}

.site-footer p {
  margin: 0;
  color: #111;
  font-family: var(--serif);
  font-size: 15px;
}

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
    --sub-h: 58px;
    --gutter: 25px;
  }

  .landing {
    min-height: 100svh;
  }

  .landing-vignette {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.82) 73%, rgba(0, 0, 0, 0.96)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 72%);
  }

  .landing-inner {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: 28px;
    max-width: none;
  }

  .landing-brand {
    width: 45px;
  }

  .landing-mark {
    width: 34px;
    height: 38px;
    margin-bottom: 4px;
    font-size: 11px;
  }

  .landing-name {
    font-size: 8px;
  }

  .landing-brand small {
    margin-top: 3px;
    font-size: 4px;
  }

  .landing-nav {
    gap: 0 8px;
    margin-top: 20px;
    font-size: 10px;
  }

  .landing-nav a {
    min-height: 15px;
  }

  .landing-nav a.has-separator {
    margin-left: 11px;
  }

  .landing-nav a.has-separator::before {
    left: -11px;
    top: 2px;
    height: 12px;
  }

  .landing-utility {
    gap: 8px;
    margin-top: 6px;
    font-size: 6px;
  }

  .landing-utility a {
    padding-left: 8px;
  }

  .landing-info {
    width: min(100%, 330px);
    margin-top: 18px;
  }

  .landing-info h2 {
    margin-bottom: 8px;
    padding-bottom: 8px;
    font-size: 7px;
  }

  .landing-info ul {
    gap: 2px;
  }

  .landing-info li {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    min-height: 13px;
    font-size: 7px;
    line-height: 1.45;
  }

  .landing-info li:nth-child(n + 5) {
    display: none;
  }

  .landing-copyright {
    right: 20px;
    bottom: 13px;
    font-size: 6px;
    line-height: 1.4;
  }

  .landing-scroll-cue {
    bottom: 116px;
    width: 26px;
    height: 26px;
  }

  .site-header {
    grid-template-columns: 70px 1fr 70px;
  }

  .menu-button {
    height: var(--header-h);
  }

  .menu-button span {
    width: 27px;
  }

  .site-logo {
    gap: 8px;
    width: 184px;
    min-width: 184px;
  }

  .logo-mark {
    flex-basis: 35px;
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .logo-type {
    font-size: 20px;
  }

  .logo-type small {
    font-size: 8px;
  }

  .header-link {
    display: none;
  }

  .store-link {
    width: 70px;
    height: var(--header-h);
    font-size: 10px;
  }

  .sub-header span {
    flex: 0 1 auto;
    width: calc(100% - 50px);
    font-size: 11px;
  }

  .sub-header span {
    font-size: 11px;
  }

  .hero {
    padding-top: 82px;
  }

  body.has-landing .hero {
    padding-top: 198px;
  }

  .hero-title h1 {
    font-size: 30px;
  }

  .hero-title p {
    margin-top: 14px;
    font-size: 12px;
  }

  .hero-media {
    width: calc(100% - 25px);
    margin-top: 62px;
    margin-left: auto;
    margin-right: 0;
  }

  .hero-media img {
    aspect-ratio: 1.42 / 1;
  }

  .hero-gallery-button {
    left: 14px;
    bottom: 14px;
    grid-template-columns: minmax(0, auto) 32px;
    gap: 3px 10px;
    min-width: 112px;
    min-height: 50px;
    padding: 9px 9px 9px 13px;
  }

  .hero-gallery-button::before {
    width: 30px;
    height: 30px;
  }

  .hero-photo-credit {
    margin-top: 10px;
    font-size: 10px;
  }

  .hero-gallery-button span,
  .hero-gallery-button b {
    font-size: 10px;
  }

  .floating-contact {
    display: none;
  }

  .content-shell {
    display: block;
    width: 100%;
    padding-top: 96px;
    padding-bottom: 82px;
  }

  .section-rail {
    display: none;
  }

  .resume-section {
    width: calc(100% - 50px);
    max-width: none;
    margin-bottom: 96px;
  }

  .section-heading {
    margin-bottom: 56px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 26px;
  }

  .definition-table,
  .timeline-item {
    display: block;
  }

  .definition-table dt {
    min-height: 0;
    padding: 22px 0 6px;
    border-bottom: 0;
  }

  .definition-table dd {
    min-height: 0;
    padding: 0 0 22px;
  }

  .timeline-item time {
    display: block;
    margin-bottom: 12px;
  }

  .timeline-item.has-media {
    padding: 28px 0 44px;
  }

  .timeline-feature {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-copy {
    padding-top: 0;
  }

  .group-grid,
  .compact-groups {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .group-grid article,
  .compact-groups article {
    display: block;
    padding: 24px 0 26px;
  }

  .group-grid p,
  .compact-groups p {
    margin-top: 10px;
  }

  .ai-logo-cloud {
    width: 100%;
    height: 300px;
    margin-top: 38px;
  }

  .ai-logo-caption {
    left: 12px;
    bottom: 10px;
    max-width: calc(100% - 24px);
    font-size: 10px;
  }

  .ai-logo-item {
    --active-cube-size: var(--mobile-cube-size);
  }

  .drawer {
    width: 84vw;
    padding: 88px 30px;
  }

  .drawer a {
    font-size: 31px;
  }

  .contact-hub {
    left: 18px;
    bottom: 18px;
  }

  .contact-hub-button {
    width: 48px;
    height: 48px;
  }

  .contact-hub-button img {
    width: 33px;
    height: 33px;
  }

  .contact-popover {
    bottom: 60px;
    width: min(238px, calc(100vw - 36px));
  }

  .assistant-chat {
    align-items: end;
    justify-items: stretch;
    padding: 12px;
  }

  .assistant-dialog {
    width: 100%;
    height: min(620px, calc(100vh - 24px));
  }

  .assistant-head {
    padding: 16px 18px 14px;
  }

  .assistant-head h2 {
    font-size: 22px;
  }

  .assistant-status {
    padding: 9px 18px;
  }

  .assistant-messages {
    padding: 16px 18px;
  }

  .assistant-form {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

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

  .resume-section,
  .drawer,
  .site-header,
  .sub-header,
  .landing-scroll-cue span,
  .hero-media img,
  .hero-gallery-button,
  .ai-logo-item,
  .ai-logo-cube,
  .ai-logo-cloud::before,
  .contact-hub,
  .contact-popover {
    transition: none;
    animation: none;
  }
}
