*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #e96b2e;
  --accent-line: rgba(30, 25, 25, 0.12);
  --bg-dark: #1e1919;
  --bg-light: #ffffff;
  --white: #ffffff;
  --button-size: 90px;
  --nav-tile-gap: 0px;
  --tile-col: calc(100% / 3);
  --tile-row: calc(50% + var(--button-size) / 2);
  --tile-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-easing: cubic-bezier(0.4, 0, 0.2, 1);
  --nav-easing-swoop: cubic-bezier(0.6, 0, 0, 1);
}

@media (max-width: 991px) {
  :root {
    --button-size: 64px;
    --nav-tile-gap: 0px;
    --tile-col: 50%;
    --tile-row: calc(100% / 3);
  }
}

html {
  height: 100%;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100%;
  font-family: "Noto Sans Mono", ui-monospace, monospace;
  font-size: 14px;
  line-height: 1.4;
  color: var(--bg-dark);
  background: var(--white);
  overscroll-behavior: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

h1, h2, h3, .tile-title, .page-heading {
  font-family: "Space Grotesk", system-ui, sans-serif;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.scroll-spacer {
  height: 300vh;
  pointer-events: none;
}

.nav-shell {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.nav-shell.interactive .nav-tile {
  pointer-events: auto;
}

.nav-shell.interactive .menu-wrap {
  pointer-events: auto;
}

.nav-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--white);
}

.nav-bg {
  display: none;
}

.nav-shell.state-hero .nav-tile {
  opacity: 0;
  visibility: hidden;
}

.nav-shell.state-hero .gridlines {
  opacity: 0;
}

.nav-shell.state-hero .menu-wrap {
  inset: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-shell.state-hero .menu-button {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  border-radius: 0;
  border-color: transparent;
}

.nav-shell.state-hero .menu-content {
  width: calc(100% - clamp(48px, 8vw, 120px));
  max-width: none;
  height: 100%;
  min-height: 0;
  flex: 1;
  justify-content: center;
  align-items: stretch;
  padding: clamp(24px, 5vw, 64px);
  margin: 0 auto;
}

.hero-lander {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  width: 100%;
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  width: 100%;
}

.hero-left {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 24px);
  align-self: end;
}

.hero-portrait {
  width: clamp(120px, 18vw, 220px);
  height: clamp(120px, 18vw, 220px);
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
  opacity: 0;
  animation: hero-step-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.hero-name {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(40px, 8vw, 88px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--accent);
  opacity: 0;
  animation: hero-step-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
  padding-bottom: 0.05em;
  margin: 0;
}

.hero-right {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  padding-top: clamp(12px, 2vw, 24px);
  max-width: 34ch;
  justify-self: start;
}

.hero-desc {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--bg-dark);
  opacity: 0;
  animation: hero-step-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards;
  margin: 0;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: hero-step-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 2.6s forwards;
}

@media (max-width: 768px) {
  .hero-row {
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vw, 32px);
  }

  .hero-left,
  .hero-name {
    align-self: start;
  }

  .hero-left {
    grid-column: 1;
  }

  .hero-right {
    grid-column: 1;
    padding-top: 0;
    max-width: none;
  }
}

.hero-scroll .scroll-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-scroll .chevron-stack svg {
  display: block;
  width: 26px;
  color: var(--accent-line);
  animation: chevron-pulse 2.5s ease infinite;
}

.hero-scroll .chevron-stack svg + svg {
  margin-top: -8px;
  animation-delay: 0.15s;
}

.nav-shell.state-hero .scroll-chevrons {
  display: none;
}

@keyframes hero-step-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

.nav-shell.state-hero .menu-icon.logo,
.nav-shell.state-mid .menu-icon.logo,
.nav-shell.state-menu .menu-icon.logo {
  display: none;
}

.nav-shell:not(.state-hero) .hero-lander {
  display: none;
}

.gridlines {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.nav-shell.interactive .gridlines {
  opacity: 0;
}

.nav-grid {
  position: absolute;
  inset: 0;
}

.nav-tile {
  position: absolute;
  padding: 0;
  will-change: transform;
  pointer-events: none;
}

.nav-tile:nth-child(1) {
  top: 0;
  left: 0;
  width: var(--tile-col);
  height: var(--tile-row);
  transform-origin: 100% 100%;
}

.nav-tile:nth-child(2) {
  top: 0;
  left: var(--tile-col);
  width: var(--tile-col);
  height: var(--tile-row);
  transform-origin: 50% 100%;
}

.nav-tile:nth-child(3) {
  top: 0;
  right: 0;
  width: var(--tile-col);
  height: var(--tile-row);
  transform-origin: 0 100%;
}

.nav-tile:nth-child(4) {
  bottom: 0;
  left: 0;
  width: var(--tile-col);
  height: var(--tile-row);
  transform-origin: 100% 0;
}

.nav-tile:nth-child(5) {
  bottom: 0;
  left: var(--tile-col);
  width: var(--tile-col);
  height: var(--tile-row);
  transform-origin: 50% 0;
}

.nav-tile:nth-child(6) {
  bottom: 0;
  right: 0;
  width: var(--tile-col);
  height: var(--tile-row);
  transform-origin: 0 0;
}

@media (max-width: 991px) {
  .nav-tile:nth-child(1) {
    top: 0;
    left: 0;
    width: var(--tile-col);
    height: var(--tile-row);
    transform-origin: 100% 100%;
  }

  .nav-tile:nth-child(2) {
    top: 0;
    right: 0;
    left: auto;
    width: var(--tile-col);
    height: var(--tile-row);
    transform-origin: 0 100%;
  }

  .nav-tile:nth-child(3) {
    top: var(--tile-row);
    left: 0;
    right: auto;
    width: var(--tile-col);
    height: var(--tile-row);
    transform-origin: 100% 50%;
  }

  .nav-tile:nth-child(4) {
    top: var(--tile-row);
    right: 0;
    left: auto;
    bottom: auto;
    width: var(--tile-col);
    height: var(--tile-row);
    transform-origin: 0 50%;
  }

  .nav-tile:nth-child(5) {
    bottom: 0;
    left: 0;
    top: auto;
    width: var(--tile-col);
    height: var(--tile-row);
    transform-origin: 100% 0;
  }

  .nav-tile:nth-child(6) {
    bottom: 0;
    right: 0;
    left: auto;
    top: auto;
    width: var(--tile-col);
    height: var(--tile-row);
    transform-origin: 0 0;
  }
}

.tile-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 18px 20px;
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  position: relative;
  transition: filter var(--tile-transition);
}

@media (any-hover: hover) {
  .tile-link:hover {
    filter: brightness(1.04);
  }
}

.tile-title {
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.1;
  z-index: 2;
}

.tile-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.85;
  pointer-events: none;
}

.tile-visual svg,
.tile-visual .visual-shape {
  width: min(55%, 120px);
  height: auto;
  transition: transform var(--tile-transition), opacity var(--tile-transition);
}

@media (any-hover: hover) {
  .tile-link:hover .tile-visual svg,
  .tile-link:hover .tile-visual .visual-shape {
    transform: scale(1.06) rotate(-4deg);
    opacity: 1;
  }
}

.tile.strategy { background: #283750; color: #b4c8e1; }
.tile.voice { background: #fad24b; color: #684505; }
.tile.logo { background: #3dd3ee; color: #055463; }
.tile.type { background: #fa551e; color: #4e0119; }
.tile.lock { background: #b4dc19; color: #175641; }
.tile.color { background: #ff8c19; color: #6d2e09; }
.tile.imagery { background: #892055; color: #ffafa5; }
.tile.motion { background: #c8aff0; color: #682760; }

.visual-curve {
  width: 70%;
  height: 50%;
  border: 2px solid currentColor;
  border-color: transparent transparent currentColor transparent;
  border-radius: 0 0 50% 50%;
}

.visual-quote {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.8;
  opacity: 0.35;
}

.visual-diamond {
  width: 56px;
  height: 56px;
  background: currentColor;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  transition: transform var(--tile-transition);
}

.tile-visual.tile-photo img {
  width: min(70%, 140px);
  height: min(70%, 140px);
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
  opacity: 0.9;
  transition: transform var(--tile-transition), opacity var(--tile-transition);
}

@media (any-hover: hover) {
  .tile-link:hover .tile-visual.tile-photo img {
    transform: scale(1.06);
    opacity: 1;
  }
}

.tile.logo:hover .visual-diamond {
  transform: translate(30%, 30%) rotate(180deg);
}

.visual-aa {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(56px, 10vw, 88px);
  font-weight: 600;
  letter-spacing: -0.06em;
}

.visual-lock {
  width: 48px;
  height: 64px;
  border: 3px solid currentColor;
  border-radius: 8px 8px 4px 4px;
  position: relative;
}

.visual-lock::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 28px;
  height: 22px;
  border: 3px solid currentColor;
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  transform: translateX(-50%);
}

.visual-swatches {
  display: grid;
  grid-template-columns: repeat(2, 28px);
  gap: 8px;
}

.visual-swatches span {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: currentColor;
  opacity: 0.55;
}

.visual-hills {
  width: 75%;
  height: 45%;
  background: linear-gradient(to top, currentColor 0 60%, transparent 60%);
  clip-path: polygon(0 100%, 18% 55%, 38% 72%, 58% 40%, 78% 58%, 100% 30%, 100% 100%);
  opacity: 0.5;
}

.visual-bezier {
  width: 75%;
  height: 40%;
  border-top: 2px solid currentColor;
  border-radius: 100% 100% 0 0;
  transform: rotate(-8deg);
}

.tile-line {
  position: absolute;
  background: var(--accent-line);
  pointer-events: none;
}

.tile-line.vl {
  width: 1px;
  height: 300vh;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  transform-origin: center top;
}

.tile-line.vr {
  width: 1px;
  height: 300vh;
  top: 50%;
  right: 0;
  transform: translateY(-50%) scaleY(0);
  transform-origin: center bottom;
}

.tile-line.ht {
  width: 300vw;
  height: 1px;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: right center;
}

.tile-line.hb {
  width: 300vw;
  height: 1px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  transform-origin: left center;
}

.nav-shell.loaded .menu-wrap .tile-line.vl,
.nav-shell.loaded .menu-wrap .tile-line.vr {
  transform: translateY(-50%) scaleY(1);
  transition: transform 3s cubic-bezier(0.5, 0, 0, 1), background-color 1.5s ease-in-out 0.75s;
}

.nav-shell.loaded .menu-wrap .tile-line.ht,
.nav-shell.loaded .menu-wrap .tile-line.hb {
  transform: translateX(-50%) scaleX(1);
  transition: transform 3s cubic-bezier(0.5, 0, 0, 1), background-color 1.5s ease-in-out 0.75s;
}

.menu-wrap {
  position: absolute;
  z-index: 101;
  left: calc(50vw - var(--button-size) / 3);
  bottom: 50%;
  transform: translateY(50%);
  pointer-events: auto;
  transition: inset 0.6s cubic-bezier(0.5, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.5, 0, 0.2, 1),
              width 0.6s cubic-bezier(0.5, 0, 0.2, 1),
              height 0.6s cubic-bezier(0.5, 0, 0.2, 1);
}

@media (max-width: 991px) {
  .menu-wrap {
    left: 50%;
    bottom: calc(var(--button-size) / -8);
    transform: translate(-50%, calc(-50dvh - var(--button-size) * 3 / -8));
  }

  .nav-shell.state-hero .menu-wrap {
    inset: 0;
    left: 0;
    bottom: 0;
    transform: none;
  }
}

.menu-button {
  position: relative;
  display: block;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--white);
  color: var(--accent);
  cursor: pointer;
  overflow: hidden;
  transition: width 0.6s cubic-bezier(0.5, 0, 0.2, 1),
              height 0.6s cubic-bezier(0.5, 0, 0.2, 1),
              background 0.6s ease,
              color 0.6s ease,
              transform 0.3s var(--nav-easing);
}

.menu-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.menu-button-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.menu-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 22px;
  pointer-events: none;
}

.menu-quote {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(16px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  max-width: 28ch;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.25s ease;
}

.menu-quote.active {
  opacity: 1;
}

.menu-icon {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: 46px;
  height: 42px;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-icon.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-chevrons {
  position: absolute;
  right: 14px;
  bottom: 18px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.scroll-chevrons.visible {
  opacity: 1;
}

.scroll-chevrons svg {
  display: block;
  width: 26px;
  color: var(--accent-line);
  animation: chevron-pulse 2.5s ease infinite;
}

.scroll-chevrons svg + svg {
  margin-top: -8px;
  animation-delay: 0.15s;
}

@keyframes chevron-pulse {
  0%, 70%, 100% { transform: translateY(0); color: var(--accent-line); }
  35% { transform: translateY(8px); color: var(--accent); }
}

.nav-shell.state-hero .menu-button {
  background: var(--white);
  color: var(--accent);
}

.nav-shell.state-mid .menu-button {
  background: var(--white);
  color: var(--bg-dark);
  border-color: rgba(30, 25, 25, 0.08);
}

.nav-shell.state-menu .menu-button {
  background: transparent;
  color: var(--bg-dark);
  border-color: transparent;
  box-shadow: none;
}

.nav-shell.menu-open .menu-wrap {
  z-index: 200;
}

.nav-shell.menu-open .nav-tile:not(.enlarged) {
  opacity: 0;
  pointer-events: none;
}

.nav-tile.enlarged {
  z-index: 150;
  opacity: 1 !important;
  pointer-events: auto !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  transition: opacity 0.2s ease;
}

.nav-tile.enlarged .tile-link {
  border-radius: 0;
  background: var(--white) !important;
  color: var(--bg-dark) !important;
}

.nav-tile.enlarged .tile-title {
  position: absolute;
  top: 50%;
  left: clamp(24px, 8vw, 120px);
  transform: translateY(-50%) scale(3);
  color: var(--bg-dark);
  transition: transform 0.6s var(--nav-easing);
}

.nav-tile.enlarged .tile-visual {
  opacity: 0;
}

.nav-shell.menu-open .menu-wrap {
  transform: translate(calc(50vw - 50%), 50%);
}

@media (max-width: 991px) {
  .nav-shell.menu-open .menu-wrap {
    transform: translate(-50%, 0);
  }

  .nav-tile.enlarged .tile-title {
    transform: translateY(-50%) scale(2);
  }
}

.info-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 210;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: var(--bg-dark);
  color: var(--white);
  font: 500 12px/1 "Noto Sans Mono", monospace;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.3s ease;
}

.nav-shell.interactive .info-btn {
  opacity: 1;
  pointer-events: auto;
}

.info-btn:hover {
  transform: translateY(-2px);
}

.outro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(30, 25, 25, 0.92);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.outro.open {
  opacity: 1;
  pointer-events: auto;
}

.outro-card {
  max-width: 720px;
  width: 100%;
}

.outro-quote {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.outro-quote mark {
  background: none;
  color: var(--accent);
}

.outro-author {
  opacity: 0.7;
  margin-bottom: 32px;
}

.outro-close {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: inherit;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
}

.page {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: var(--bg-light);
  transform: translateY(100%);
  transition: transform 0.55s var(--nav-easing-swoop);
  overflow: auto;
}

.page.open {
  transform: translateY(0);
}

.page-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(32px, 8vw, 96px) 24px 64px;
}

.page-tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.page-heading {
  font-size: clamp(36px, 8vw, 72px);
  line-height: 1.05;
  margin-bottom: 24px;
}

.page-photo {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  margin-bottom: 24px;
  display: block;
  object-fit: cover;
}

.page-photo[hidden] {
  display: none;
}

.page-copy {
  font-family: "Noto Sans Mono", monospace;
  font-size: 15px;
  line-height: 1.7;
  max-width: 58ch;
  color: #4a4545;
}

.page-body .page-copy + .page-copy {
  margin-top: 1.25em;
}

.page-subheading {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
  color: var(--bg-dark);
}

.page-subheading.is-first {
  margin-top: 8px;
}

.page-extra[hidden] {
  display: none;
}

.page-prompt {
  font-family: "Noto Sans Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  max-width: 100%;
  padding: 20px;
  border-radius: 8px;
  background: #f5f3f1;
  color: #3a3535;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid rgba(30, 25, 25, 0.08);
}

.page-back {
  position: sticky;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  padding: 10px 0;
  border: none;
  background: none;
  color: var(--bg-dark);
  font: 500 13px/1 "Noto Sans Mono", monospace;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .hero-name,
  .hero-desc,
  .hero-scroll,
  .hero-portrait {
    opacity: 1;
    transform: none;
  }

  .tile-line {
    transform: none !important;
  }
}
