:root {
  --ink: #303a42;
  --ink-soft: #68737b;
  --paper: #f4f6f6;
  --paper-deep: #e3e7e9;
  --night: #303a42;
  --night-deep: #20282e;
  --line: rgba(48, 58, 66, 0.16);
  --line-dark: rgba(255, 255, 255, 0.16);
  --accent: #9ca8af;
  --accent-bright: #c6ced2;
  --accent-ink: #263037;
  --max-width: 1180px;
  --header-height: 86px;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: white;
  background: var(--night);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 0 clamp(24px, 5vw, 72px);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  gap: 30px;
}

.header-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--accent-bright);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.header-nav a:hover::after,
.header-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: calc(var(--header-height) + clamp(50px, 8vh, 100px))
    clamp(24px, 8vw, 120px) clamp(34px, 5vh, 58px);
  color: white;
  background:
    radial-gradient(circle at 73% 43%, rgba(198, 206, 210, 0.2), transparent 26%),
    linear-gradient(120deg, var(--night-deep) 0%, #303a42 58%, #47545d 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(to right, transparent 3%, black 42%, black 76%, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(690px, 68vw);
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-summary {
  max-width: 520px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.67);
  font-family: var(--serif);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.35;
}

.hero-actions {
  display: grid;
  gap: 10px;
  width: min(100%, 420px);
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 210px;
  min-height: 58px;
  padding: 17px 20px 17px 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

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

.button-primary:hover,
.button-primary:focus-visible {
  border-color: var(--accent-bright);
  background: var(--accent-bright);
}

.button-calendar {
  border-color: rgba(198, 206, 210, 0.58);
  background: rgba(198, 206, 210, 0.08);
}

.button-calendar:hover,
.button-calendar:focus-visible {
  color: var(--accent-ink);
  border-color: var(--accent-bright);
  background: var(--accent-bright);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--ink);
  background: white;
  border-color: white;
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: clamp(-130px, 2vw, 40px);
  width: min(46vw, 630px);
  aspect-ratio: 1;
  transform: translateY(-49%);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.orbit-one {
  inset: 0;
  animation: orbit-drift 18s linear infinite;
}

.orbit-two {
  inset: 16%;
  border-color: rgba(198, 206, 210, 0.66);
  animation: orbit-drift 12s linear infinite reverse;
}

.orbit::before {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(198, 206, 210, 0.72);
  content: "";
}

.orbit-core {
  position: absolute;
  inset: 34%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: rgba(244, 246, 246, 0.94);
  backdrop-filter: blur(10px);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.025),
    0 18px 60px rgba(32, 40, 46, 0.16);
}

.orbit-core img {
  display: block;
  width: 78%;
  height: auto;
}

.hero-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-self: end;
  justify-content: space-between;
  grid-column: 1;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-footer span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(198, 206, 210, 0.13);
}

.section-shell {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

.work-section {
  padding-block: clamp(100px, 13vw, 180px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  column-gap: clamp(40px, 8vw, 120px);
  margin-bottom: clamp(70px, 9vw, 120px);
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2,
.about-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(43px, 5.5vw, 79px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1;
}

.section-heading > p:last-child {
  max-width: 360px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.work-list {
  border-top: 1px solid var(--line);
}

.work-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 130px 26px;
  align-items: center;
  min-height: 116px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition:
    color 200ms ease,
    padding 200ms ease,
    background 200ms ease;
}

a.work-row:hover,
a.work-row:focus-visible {
  padding-inline: 16px;
  color: white;
  outline: none;
  background: var(--night);
}

.work-index,
.work-state {
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

a.work-row:hover .work-index,
a.work-row:hover .work-state,
a.work-row:focus-visible .work-index,
a.work-row:focus-visible .work-state {
  color: rgba(255, 255, 255, 0.55);
}

.work-copy {
  display: grid;
  gap: 9px;
}

.work-copy strong {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.work-copy small {
  color: var(--ink-soft);
  font-size: 12px;
}

a.work-row:hover .work-copy small,
a.work-row:focus-visible .work-copy small {
  color: rgba(255, 255, 255, 0.6);
}

.work-state {
  justify-self: end;
}

.work-arrow {
  justify-self: end;
  font-size: 18px;
}

.work-row-muted {
  opacity: 0.58;
}

#command-center {
  scroll-margin-top: 36px;
  transition:
    opacity 200ms ease,
    color 200ms ease,
    padding 200ms ease,
    background 200ms ease;
}

#command-center:target {
  padding-inline: 16px;
  color: white;
  background: var(--night);
  opacity: 1;
}

#command-center:target .work-copy small,
#command-center:target .work-index,
#command-center:target .work-state {
  color: rgba(255, 255, 255, 0.58);
}

.about-section {
  padding-block: clamp(110px, 15vw, 210px);
  color: white;
  background: var(--night);
}

.about-section .eyebrow {
  color: var(--accent-bright);
}

.about-section h2 {
  max-width: 1000px;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 8vw, 120px);
  margin-top: clamp(70px, 9vw, 120px);
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}

.about-columns p {
  max-width: 480px;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  line-height: 1.75;
}

.privacy-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  padding-block: 64px;
  border-bottom: 1px solid var(--line);
}

.privacy-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.privacy-section p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding-block: 30px 44px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal-up 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-actions.reveal {
  animation-delay: 90ms;
}

.hero-summary.reveal {
  animation-delay: 210ms;
}

.hero-footer.reveal {
  animation-delay: 350ms;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbit-drift {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
  }

  .hero {
    align-content: center;
    padding-top: calc(var(--header-height) + 48px);
  }

  .hero-content {
    width: 86%;
  }

  .hero-orbit {
    right: -24vw;
    width: 66vw;
    opacity: 0.72;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading > p:last-child {
    margin-top: 28px;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding-inline: 20px;
  }

  .header-nav {
    display: none;
  }

  .hero {
    min-height: 780px;
    padding-inline: 22px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-summary {
    max-width: 330px;
    margin-top: 24px;
    font-size: 18px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .button {
    width: min(100%, 360px);
  }

  .hero-orbit {
    top: 30%;
    right: -30vw;
    width: 100vw;
    opacity: 0.36;
  }

  .hero-footer {
    gap: 18px;
    margin-top: 28px;
  }

  .section-shell {
    width: min(100% - 36px, var(--max-width));
  }

  .work-section {
    padding-block: 92px;
  }

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

  .work-row {
    grid-template-columns: 36px minmax(0, 1fr) 22px;
    min-height: 126px;
  }

  .work-state {
    display: none;
  }

  .work-copy small {
    max-width: 240px;
    line-height: 1.5;
  }

  .about-section {
    padding-block: 100px;
  }

  .about-columns {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 64px;
  }

  .privacy-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-height: 800px) and (min-width: 681px) {
  .hero {
    padding-top: calc(var(--header-height) + 38px);
  }

  .hero-summary {
    margin-top: 24px;
  }

  .hero-actions {
    margin-top: 24px;
  }
}

@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;
  }

  .reveal,
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
