/* ==========================================================================
   Miguel Zacca — Portfolio
   A kinetic, editorial system built with native CSS.
   ========================================================================== */

:root {
  --ink: #090909;
  --ink-2: #11110f;
  --ink-3: #191916;
  --paper: #eee9df;
  --paper-bright: #f7f3ea;
  --paper-dim: #d7d1c5;
  --gold: #c7a96b;
  --gold-bright: #e1ca98;
  --gold-dark: #8e7548;
  --signal: #d8ff6a;
  --white: #fffdf7;
  --line-dark: rgba(255, 253, 247, 0.14);
  --line-light: rgba(9, 9, 9, 0.16);
  --muted-dark: rgba(255, 253, 247, 0.62);
  --muted-light: rgba(9, 9, 9, 0.62);
  --font-sans: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(1.25rem, 4vw, 5rem);
  --section-space: clamp(6.5rem, 13vw, 13rem);
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --shadow: 0 3rem 7rem rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--gold-dark) var(--ink);
  scrollbar-width: thin;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 280px;
  overflow-x: clip;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

body.command-open {
  overflow: hidden;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--gold-dark);
}

img,
picture,
svg,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

p,
h1,
h2,
h3,
h4,
blockquote,
figure {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 5px;
}

.wrap {
  width: min(calc(100% - (var(--gutter) * 2)), 100rem);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  padding: 0.8rem 1rem;
  transform: translateY(-200%);
  border-radius: 0.35rem;
  background: var(--signal);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 800;
  transition: transform 180ms ease;
}

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

.noscript-message {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  max-width: 22rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8rem;
}

/* Ambient layers */

.noise {
  position: fixed;
  z-index: 9000;
  inset: 0;
  opacity: 0.055;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(
      circle at 17% 32%,
      transparent 0,
      rgba(255, 255, 255, 0.65) 0.6px,
      transparent 1px,
      transparent 4px
    ),
    repeating-radial-gradient(
      circle at 73% 66%,
      transparent 0,
      rgba(255, 255, 255, 0.45) 0.5px,
      transparent 1px,
      transparent 5px
    );
  background-size:
    7px 7px,
    9px 9px;
  mix-blend-mode: soft-light;
}

.page-progress {
  position: fixed;
  z-index: 9100;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform-origin: left;
  pointer-events: none;
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--signal));
  will-change: transform;
}

/* Loader */

.loader {
  position: fixed;
  z-index: 9999;
  display: grid;
  place-items: center;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  transition:
    clip-path 1s var(--ease-in-out),
    visibility 1s;
  clip-path: inset(0 0 0 0);
  animation: loader-failsafe 0.5s 4s forwards;
}

.no-js .loader {
  display: none;
}

.is-loaded .loader {
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  animation: none;
}

.loader::before,
.loader::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.loader::before {
  width: min(58vw, 48rem);
  aspect-ratio: 1;
  animation: loader-orbit 8s linear infinite;
}

.loader::after {
  width: min(36vw, 28rem);
  aspect-ratio: 1;
  border-color: rgba(199, 169, 107, 0.18);
  animation: loader-orbit 5s linear infinite reverse;
}

.loader__track {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
}

.loader__track span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  background: var(--gold);
  animation: loader-track 1.8s var(--ease-out) both;
}

.loader__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.loader__mark {
  width: 4rem;
  fill: none;
  stroke: var(--gold);
  stroke-linecap: square;
  stroke-linejoin: bevel;
  stroke-width: 1.5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: draw-mark 1.2s 0.1s var(--ease-out) forwards;
}

.loader__copy {
  display: grid;
  gap: 0.1rem;
  overflow: hidden;
}

.loader__copy > span:first-child {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.loader__status {
  color: var(--muted-dark);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.loader__count {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

@keyframes loader-track {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes draw-mark {
  to {
    stroke-dashoffset: 0;
  }
}

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

@keyframes loader-failsafe {
  to {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}

/* Cursor */

.cursor {
  position: fixed;
  z-index: 9500;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}

.cursor--dot {
  width: 6px;
  height: 6px;
  background: var(--signal);
}

.cursor--ring {
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  place-items: center;
  transition:
    width 250ms var(--ease-out),
    height 250ms var(--ease-out),
    border-color 250ms,
    background-color 250ms;
}

.cursor--ring span {
  opacity: 0;
  color: var(--ink);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  transition: opacity 150ms;
}

.cursor--ring.is-link {
  width: 64px;
  height: 64px;
  border-color: rgba(216, 255, 106, 0.72);
  background: rgba(216, 255, 106, 0.12);
}

.cursor--ring.is-project {
  width: 88px;
  height: 88px;
  border-color: var(--signal);
  background: var(--signal);
}

.cursor--ring.is-project span {
  opacity: 1;
}

@media (pointer: coarse), (max-width: 900px) {
  .cursor {
    display: none;
  }
}

/* Header & navigation */

.site-header {
  position: fixed;
  z-index: 500;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 5.75rem;
  padding: max(0.75rem, env(safe-area-inset-top)) var(--gutter) 0.75rem;
  color: var(--white);
  transition:
    min-height 400ms var(--ease-out),
    background-color 300ms,
    backdrop-filter 300ms,
    border-color 300ms;
}

.site-header::after {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  left: var(--gutter);
  height: 1px;
  content: "";
  transform: scaleX(0);
  border-bottom: 1px solid var(--line-dark);
  transition: transform 500ms var(--ease-out);
}

.site-header.is-scrolled {
  min-height: 4.5rem;
  border-color: var(--line-dark);
  background: rgba(9, 9, 9, 0.74);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.site-header.is-scrolled::after {
  transform: scaleX(1);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  gap: 0.7rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.brand__mark {
  width: 2.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: bevel;
  stroke-width: 1.6;
}

.brand__mark path:last-child {
  stroke: var(--gold);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3.25rem);
}

.desktop-nav a {
  position: relative;
  display: grid;
  min-height: 44px;
  place-items: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 200ms;
}

.desktop-nav a::after {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--gold);
  transition: transform 300ms var(--ease-out);
}

.desktop-nav a:hover {
  color: var(--white);
}

.desktop-nav a[aria-current="location"] {
  color: var(--white);
}

.desktop-nav a[aria-current="location"]::before {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 4px;
  content: "";
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--gold);
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.explore-trigger {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  min-height: 44px;
  padding: 0;
  gap: 0.7rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.explore-trigger > span {
  font-size: 0.72rem;
  font-weight: 700;
}

kbd {
  display: inline-grid;
  min-width: 1.8rem;
  min-height: 1.8rem;
  padding-inline: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted-dark);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  place-items: center;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: rgba(9, 9, 9, 0.45);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 350ms var(--ease-out);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 450;
  display: none;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  transform: translateY(-100%);
  background: var(--ink);
  transition:
    transform 650ms var(--ease-in-out),
    visibility 650ms;
}

.mobile-menu::before {
  position: absolute;
  right: -30vw;
  bottom: -20vw;
  width: 80vw;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(199, 169, 107, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 15vw rgba(199, 169, 107, 0.035),
    0 0 0 30vw rgba(199, 169, 107, 0.02);
}

.mobile-menu.is-open {
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu__inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(calc(100% - 2.5rem), 48rem);
  height: 100%;
  margin-inline: auto;
  padding: 8.5rem 0 max(2rem, env(safe-area-inset-bottom));
  flex-direction: column;
}

.mobile-menu nav {
  display: grid;
  margin-top: 3rem;
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  min-height: 3.9rem;
  gap: 1rem;
  border-bottom: 1px solid var(--line-dark);
  font-size: clamp(2rem, 9vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}

.mobile-menu nav a span {
  width: 2rem;
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.mobile-menu__footer {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  color: var(--muted-dark);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Command palette */

.command-menu {
  width: min(calc(100% - 2rem), 48rem);
  max-height: min(46rem, calc(100svh - 2rem));
  padding: 0;
  overflow: hidden auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.5rem;
  background: rgba(17, 17, 15, 0.96);
  box-shadow: 0 5rem 10rem rgba(0, 0, 0, 0.65);
  color: var(--white);
  opacity: 0;
  transform: translateY(2rem) scale(0.96);
  transition:
    opacity 300ms var(--ease-out),
    transform 500ms var(--ease-out),
    display 500ms allow-discrete,
    overlay 500ms allow-discrete;
  backdrop-filter: blur(22px);
}

.command-menu[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  .command-menu[open] {
    opacity: 0;
    transform: translateY(2rem) scale(0.96);
  }
}

.command-menu::backdrop {
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transition:
    opacity 300ms,
    display 500ms allow-discrete,
    overlay 500ms allow-discrete;
  backdrop-filter: blur(6px);
}

.command-menu[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .command-menu[open]::backdrop {
    opacity: 0;
  }
}

.command-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 1rem 1.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.command-menu__top p {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.command-menu__top button {
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  place-items: center;
}

.command-menu__top svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.command-menu nav {
  display: grid;
  padding: 0.5rem;
}

.command-menu nav a {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  align-items: center;
  min-height: 5.2rem;
  padding-inline: 1rem;
  border-radius: 0.9rem;
  transition:
    background-color 200ms,
    padding 300ms var(--ease-out);
}

.command-menu nav a:hover,
.command-menu nav a:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  padding-left: 1.4rem;
}

.command-menu nav a > span {
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
}

.command-menu nav strong {
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.command-menu nav small {
  color: var(--muted-dark);
  font-size: 0.65rem;
}

.command-menu__hint {
  padding: 1rem 1.5rem 1.5rem;
  color: var(--muted-dark);
  font-size: 0.63rem;
}

.command-menu__hint kbd {
  display: inline-grid;
  margin-inline: 0.25rem;
}

/* Shared titles & reveal */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow > span {
  color: var(--gold-dark);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  padding-bottom: clamp(2rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line-light);
}

.section-head__aside {
  color: var(--muted-light);
  font-size: 0.72rem;
  line-height: 1.65;
  text-align: right;
}

.section-head--light {
  border-color: var(--line-dark);
}

.section-head--light .section-head__aside {
  color: var(--muted-dark);
}

.js .reveal {
  opacity: 0;
  transform: translateY(2.5rem);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out);
}

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

.js .reveal-up {
  opacity: 0;
  transform: translateY(1.5rem);
}

.is-loaded .reveal-up {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 800ms 850ms var(--ease-out),
    transform 800ms 850ms var(--ease-out);
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  min-height: max(52rem, 100svh);
  overflow: hidden;
  flex-direction: column;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0
      0 / clamp(4rem, 8vw, 8rem) 100%,
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 100%
      clamp(4rem, 8vw, 8rem),
    radial-gradient(
      circle at 72% 44%,
      rgba(199, 169, 107, 0.12),
      transparent 24%
    ),
    var(--ink);
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -10vw;
  bottom: -30vw;
  width: 70vw;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(199, 169, 107, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 9vw rgba(255, 255, 255, 0.012),
    0 0 0 18vw rgba(255, 255, 255, 0.009);
}

.hero__canvas {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.68;
}

.hero__orb {
  position: absolute;
  z-index: -1;
  border: 1px solid;
  border-radius: 50%;
  pointer-events: none;
}

.hero__orb::before {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 2rem rgba(199, 169, 107, 0.45);
}

.hero__orb--one {
  top: 22%;
  right: 9%;
  width: clamp(12rem, 25vw, 28rem);
  aspect-ratio: 1;
  border-color: rgba(199, 169, 107, 0.14);
  animation: spin 24s linear infinite;
}

.hero__orb--one::before {
  top: 12%;
  left: 7%;
  width: 6px;
  height: 6px;
}

.hero__orb--two {
  right: 20%;
  bottom: 9%;
  width: clamp(6rem, 11vw, 12rem);
  aspect-ratio: 1;
  border-color: rgba(216, 255, 106, 0.12);
  animation: spin 15s linear infinite reverse;
}

.hero__orb--two::before {
  right: 6%;
  bottom: 22%;
  width: 4px;
  height: 4px;
  background: var(--signal);
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(7rem, 13vh, 9.5rem);
  color: var(--muted-dark);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__availability {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero__availability > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow:
    0 0 0 5px rgba(216, 255, 106, 0.1),
    0 0 1rem rgba(216, 255, 106, 0.45);
  animation: pulse 2s ease-in-out infinite;
}

.hero__content {
  display: flex;
  padding-block: clamp(3.5rem, 9vh, 7.5rem) clamp(5rem, 9vh, 8rem);
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.hero__pretitle {
  margin-bottom: clamp(1.5rem, 3vw, 2.8rem);
  color: var(--gold-bright);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__title {
  position: relative;
  z-index: 2;
  max-width: 12ch;
  font-size: clamp(4.1rem, 10.8vw, 11.2rem);
  font-weight: 600;
  letter-spacing: -0.085em;
  line-height: 0.78;
}

.title-line {
  display: block;
  overflow: hidden;
  padding: 0.06em 0.08em 0.12em 0;
}

.title-line > span {
  display: block;
  transform: translateY(120%) rotate(2deg);
  transform-origin: left bottom;
}

.is-loaded .title-line > span {
  transform: translateY(0) rotate(0);
  transition: transform 1.15s var(--ease-out);
}

.is-loaded .title-line:nth-child(1) > span {
  transition-delay: 420ms;
}

.is-loaded .title-line:nth-child(2) > span {
  transition-delay: 520ms;
}

.is-loaded .title-line:nth-child(3) > span {
  transition-delay: 620ms;
}

.title-line--serif {
  margin-left: clamp(1rem, 8vw, 8rem);
  color: var(--paper-dim);
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.05em;
}

.title-line--offset {
  margin-left: clamp(0rem, 3vw, 3rem);
}

.title-dot {
  color: var(--gold);
  font-family: var(--font-serif);
}

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(15rem, 28rem) auto;
  align-items: end;
  justify-content: space-between;
  margin-top: clamp(2.5rem, 5vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

.hero__intro {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.9rem, 1.2vw, 1.08rem);
  line-height: 1.75;
}

.circle-link {
  display: flex;
  width: clamp(7.5rem, 10vw, 10rem);
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid rgba(199, 169, 107, 0.48);
  border-radius: 50%;
  color: var(--gold-bright);
  transition:
    background-color 350ms,
    color 350ms,
    border-color 350ms;
}

.circle-link::before {
  position: absolute;
  content: "";
  inset: 0.5rem;
  border: 1px dashed rgba(199, 169, 107, 0.18);
  border-radius: inherit;
  animation: spin 18s linear infinite;
}

.circle-link span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.circle-link svg {
  width: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.4;
  transition: transform 300ms var(--ease-out);
}

.circle-link:hover {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--ink);
}

.circle-link:hover svg {
  transform: translateY(0.3rem);
}

.hero__signature {
  position: absolute;
  z-index: 0;
  right: 3.5vw;
  bottom: 4vh;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(7rem, 17vw, 18rem);
  font-weight: 800;
  letter-spacing: -0.13em;
  line-height: 0.7;
  pointer-events: none;
}

.hero__signature i {
  width: 0.14em;
  height: 0.14em;
  margin-left: 0.07em;
  border-radius: 50%;
  background: rgba(199, 169, 107, 0.18);
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero__scroll span {
  width: 1px;
  height: 2.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}

.hero__scroll span::after {
  display: block;
  width: 100%;
  height: 50%;
  content: "";
  transform: translateY(-110%);
  background: var(--gold);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.45;
    transform: scale(0.75);
  }
}

@keyframes scroll-line {
  0% {
    transform: translateY(-110%);
  }
  55%,
  100% {
    transform: translateY(220%);
  }
}

/* Marquee */

.marquee {
  overflow: hidden;
  padding-block: 1.2rem;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-light);
  background: var(--gold);
  color: var(--ink);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  padding-right: 2rem;
  gap: 2rem;
}

.marquee__group span {
  font-size: clamp(0.72rem, 1vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__group i {
  width: 0.38rem;
  height: 0.38rem;
  transform: rotate(45deg);
  background: currentColor;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Manifesto */

.manifesto {
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
}

.manifesto::before {
  position: absolute;
  top: 0;
  right: 10%;
  width: 1px;
  height: 100%;
  content: "";
  background: rgba(9, 9, 9, 0.06);
}

.manifesto__statement {
  max-width: 14.5ch;
  margin-top: clamp(3.5rem, 8vw, 8rem);
  font-size: clamp(2.8rem, 6.7vw, 7.1rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.manifesto__statement > span {
  display: block;
  color: rgba(9, 9, 9, 0.18);
  transition: color 500ms ease;
}

.manifesto__statement > span.is-active {
  color: var(--ink);
}

.manifesto__statement em {
  color: inherit;
  font-family: var(--font-serif);
  font-weight: 400;
}

.manifesto__statement > span.is-active em {
  color: var(--gold-dark);
}

.manifesto__foot {
  display: grid;
  grid-template-columns: minmax(15rem, 34rem) auto;
  justify-content: space-between;
  margin-top: clamp(4rem, 10vw, 10rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
}

.manifesto__foot > p {
  color: var(--muted-light);
  font-size: clamp(0.92rem, 1.2vw, 1.1rem);
}

.manifesto__coordinates {
  display: flex;
  gap: 2rem;
  color: var(--gold-dark);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

/* Conectei project */

.project {
  overflow: clip;
  background:
    linear-gradient(
      90deg,
      transparent 49.95%,
      rgba(255, 255, 255, 0.025) 50%,
      transparent 50.05%
    ),
    var(--ink);
  color: var(--white);
}

.project__halo {
  position: absolute;
  top: 4%;
  left: 50%;
  width: 80vw;
  max-width: 90rem;
  aspect-ratio: 1.8;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(199, 169, 107, 0.13),
    transparent 75%
  );
  filter: blur(30px);
  pointer-events: none;
}

.project__title-row {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-top: clamp(3rem, 7vw, 7rem);
}

.project__overline {
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.project__title {
  white-space: nowrap;
  font-size: clamp(5.2rem, 17vw, 17rem);
  font-weight: 700;
  letter-spacing: -0.105em;
  line-height: 0.72;
}

.project__title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.8em) rotate(6deg);
  transition:
    transform 900ms var(--ease-out),
    opacity 600ms;
}

.project__title.is-visible .char {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.project__external {
  display: flex;
  align-items: center;
  min-height: 4rem;
  margin-bottom: 0.2rem;
  padding: 0.4rem 0.4rem 0.4rem 1.4rem;
  gap: 1.3rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    color 250ms,
    background-color 250ms,
    border-color 250ms;
}

.project__external svg {
  width: 3.1rem;
  height: 3.1rem;
  padding: 0.9rem;
  border-radius: 50%;
  background: var(--gold);
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
}

.project__external:hover {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--ink);
}

.project__lead {
  max-width: 50rem;
  margin-top: clamp(3rem, 7vw, 6.5rem);
  margin-left: auto;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1.2rem, 2.1vw, 2.05rem);
  letter-spacing: -0.03em;
  line-height: 1.45;
}

.project__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(4rem, 8vw, 8rem);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.stat {
  min-height: 15rem;
  padding: 2rem;
  border-right: 1px solid var(--line-dark);
}

.stat:last-child {
  border: 0;
}

.stat > p {
  color: var(--paper);
  font-size: clamp(2.8rem, 5vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 1;
}

.stat sup {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 0.45em;
  font-weight: 400;
}

.stat > span {
  display: block;
  margin-top: 3rem;
  color: var(--muted-dark);
  font-size: 0.7rem;
  line-height: 1.6;
}

.stat--statement {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  background: var(--gold);
  color: var(--ink);
  flex-direction: column;
}

.stat--statement > p {
  align-self: flex-end;
  color: var(--ink);
  font-size: 5rem;
}

.stat--statement > span {
  margin: 0;
  color: rgba(9, 9, 9, 0.65);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-window-wrap {
  width: min(calc(100% - (var(--gutter) * 0.9)), 112rem);
  margin: clamp(6rem, 12vw, 13rem) auto;
  perspective: 1400px;
}

.project-window-link {
  display: block;
  border-radius: clamp(0.8rem, 2vw, 1.8rem);
}

.project-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: clamp(0.8rem, 2vw, 1.8rem);
  background: #f6f3ec;
  box-shadow: var(--shadow);
  transform: rotateX(var(--window-rx, 0deg)) rotateY(var(--window-ry, 0deg));
  transform-style: preserve-3d;
  transition:
    transform 300ms ease,
    box-shadow 500ms ease;
}

.project-window::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 45%,
    transparent 60%
  );
  transform: translateX(-80%);
  transition: opacity 300ms;
  pointer-events: none;
}

.project-window:hover {
  box-shadow: 0 5rem 10rem rgba(0, 0, 0, 0.45);
}

.project-window:hover::after {
  opacity: 1;
  animation: window-shine 1.3s ease both;
}

.window-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: clamp(2.8rem, 5vw, 4.2rem);
  padding-inline: clamp(0.8rem, 2vw, 1.6rem);
  border-bottom: 1px solid rgba(9, 9, 9, 0.11);
  background: #eae6de;
  color: rgba(9, 9, 9, 0.55);
}

.window-dots {
  display: flex;
  gap: 0.4rem;
}

.window-dots i {
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid rgba(9, 9, 9, 0.25);
  border-radius: 50%;
}

.window-url {
  display: flex;
  align-items: center;
  padding: 0.42rem 1.5rem;
  gap: 0.5rem;
  border: 1px solid rgba(9, 9, 9, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.58rem;
}

.window-url > span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #46a66a;
}

.window-status {
  justify-self: end;
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.project-window picture,
.project-window picture img {
  width: 100%;
}

.project-window figcaption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(9, 9, 9, 0.1);
  border-radius: 0.5rem;
  background: rgba(247, 243, 234, 0.78);
  color: rgba(9, 9, 9, 0.68);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  backdrop-filter: blur(10px);
}

@keyframes window-shine {
  to {
    transform: translateX(100%);
  }
}

/* Product story */

.product-story {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(20rem, 0.75fr);
  align-items: start;
  min-height: 170rem;
  gap: clamp(4rem, 8vw, 9rem);
}

.product-story__visual {
  position: sticky;
  top: 12vh;
  padding-top: 8vh;
}

.story-device {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.4rem;
  background: #eae7e0;
  box-shadow: 0 4rem 8rem rgba(0, 0, 0, 0.35);
}

.story-device__chrome {
  display: flex;
  align-items: center;
  height: 3rem;
  padding-inline: 1rem;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(9, 9, 9, 0.1);
}

.story-device__chrome > span {
  width: 0.42rem;
  height: 0.42rem;
  border: 1px solid rgba(9, 9, 9, 0.2);
  border-radius: 50%;
}

.story-device__chrome p {
  margin-left: auto;
  color: rgba(9, 9, 9, 0.48);
  font-size: 0.53rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story-device__screen {
  position: relative;
  aspect-ratio: 1.6;
  overflow: hidden;
  background: #f6f4ef;
}

.story-device__screen img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 800ms var(--ease-out),
    transform 1.4s var(--ease-out);
}

.story-device__screen img.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.story-device__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.4rem;
  padding-inline: 1rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-story__chapters {
  padding-top: 18vh;
}

.story-chapter {
  min-height: 52rem;
  padding-top: clamp(2rem, 8vh, 6rem);
  opacity: 0.32;
  transition: opacity 500ms;
}

.story-chapter.is-active {
  opacity: 1;
}

.story-chapter__number {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.story-chapter__number::before {
  width: 2rem;
  height: 1px;
  content: "";
  background: currentColor;
}

.story-chapter h3 {
  margin-top: 1.5rem;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.story-chapter > p:not(.story-chapter__number) {
  margin-top: 2rem;
  color: var(--muted-dark);
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
}

.story-chapter ul {
  display: grid;
  margin-top: 2rem;
}

.story-chapter li {
  display: flex;
  align-items: center;
  min-height: 3rem;
  gap: 0.7rem;
  border-bottom: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
}

.story-chapter li::before {
  width: 0.35rem;
  height: 0.35rem;
  transform: rotate(45deg);
  background: var(--gold);
  content: "";
}

.story-chapter__mobile-image {
  display: none;
}

/* System map */

.system-map-wrap {
  position: relative;
  margin-top: clamp(5rem, 12vw, 12rem);
  padding-block: clamp(7rem, 12vw, 12rem);
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background:
    radial-gradient(
      circle at center,
      rgba(199, 169, 107, 0.11),
      transparent 36%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(10% - 1px),
      rgba(255, 255, 255, 0.025) 10%
    );
}

.system-map__heading {
  display: grid;
  grid-template-columns: 0.7fr 1.5fr 0.7fr;
  align-items: end;
  gap: 2rem;
}

.system-map__heading h3 {
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.system-map__heading h3 em {
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-weight: 400;
}

.system-map__heading > p:last-child {
  color: var(--muted-dark);
  font-size: 0.8rem;
}

.system-map {
  position: relative;
  width: min(calc(100% - (var(--gutter) * 2)), 75rem);
  height: 40rem;
  margin: clamp(5rem, 10vw, 9rem) auto 0;
}

.system-map__lines {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  overflow: visible;
  fill: none;
  stroke: rgba(199, 169, 107, 0.24);
  stroke-dasharray: 4 8;
  stroke-width: 1;
}

.system-map__lines circle {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-dasharray: none;
}

.system-node {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  position: absolute;
  display: flex;
  width: 13rem;
  min-height: 8rem;
  padding: 1.2rem;
  justify-content: center;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  background:
    radial-gradient(
      circle at var(--glow-x) var(--glow-y),
      rgba(199, 169, 107, 0.18),
      transparent 45%
    ),
    rgba(17, 17, 15, 0.88);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.28);
  transform: perspective(700px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition:
    border-color 250ms,
    transform 180ms ease;
}

.system-node:hover {
  border-color: rgba(216, 255, 106, 0.5);
}

.system-node > span {
  color: var(--gold);
  font-size: 0.55rem;
  font-weight: 800;
}

.system-node strong {
  margin-top: 0.55rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.system-node small {
  margin-top: 0.4rem;
  color: var(--muted-dark);
  font-size: 0.56rem;
}

.system-node--center {
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 12rem;
  min-height: 12rem;
  align-items: center;
  transform: translate(-50%, -50%) perspective(700px) rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  border-color: rgba(199, 169, 107, 0.48);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
}

.system-node--center img {
  width: 3.2rem;
}

.system-node--center strong {
  font-size: 1.15rem;
}

.system-node--center span {
  color: var(--muted-light);
}

.system-node--one {
  top: 4rem;
  left: 0;
}
.system-node--two {
  top: 0;
  left: 50%;
  transform: translateX(-50%) perspective(700px) rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
}
.system-node--three {
  top: 4rem;
  right: 0;
}
.system-node--four {
  right: 0;
  bottom: 2.5rem;
}
.system-node--five {
  bottom: 2.5rem;
  left: 0;
}

.project-outcome {
  padding-top: clamp(8rem, 14vw, 15rem);
}

.project-outcome__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-outcome__label i {
  width: 4rem;
  height: 1px;
  background: currentColor;
}

.project-outcome blockquote {
  max-width: 13ch;
  margin-top: 2.5rem;
  font-size: clamp(2.8rem, 6.5vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.98;
}

.project-outcome blockquote em {
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-weight: 400;
}

.project-outcome__tags {
  display: flex;
  max-width: 58rem;
  margin-top: clamp(4rem, 8vw, 7rem);
  margin-left: auto;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.project-outcome__tags span {
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--muted-dark);
  font-size: 0.63rem;
  font-weight: 700;
}

/* Capabilities */

.capabilities {
  overflow: hidden;
  background: var(--paper-bright);
  color: var(--ink);
}

.capabilities__intro {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: end;
  margin-top: clamp(4rem, 9vw, 9rem);
  gap: 3rem;
}

.capabilities__intro h2 {
  font-size: clamp(3.3rem, 8vw, 8.8rem);
  font-weight: 500;
  letter-spacing: -0.085em;
  line-height: 0.86;
}

.capabilities__intro h2 em {
  color: var(--gold-dark);
  font-family: var(--font-serif);
  font-weight: 400;
}

.capabilities__intro > p {
  max-width: 29rem;
  padding-bottom: 0.5rem;
  color: var(--muted-light);
  font-size: 0.92rem;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(12rem, auto);
  margin-top: clamp(4rem, 8vw, 8rem);
  gap: 0.75rem;
}

.bento-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glow-x: 50%;
  --glow-y: 50%;
  position: relative;
  display: flex;
  min-height: 31rem;
  padding: clamp(1.4rem, 2.5vw, 2.4rem);
  overflow: hidden;
  justify-content: space-between;
  flex-direction: column;
  border: 1px solid rgba(9, 9, 9, 0.1);
  border-radius: var(--radius-md);
  background:
    radial-gradient(
      circle at var(--glow-x) var(--glow-y),
      rgba(199, 169, 107, 0.18),
      transparent 35%
    ),
    #ebe6dc;
  transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition:
    transform 180ms ease,
    box-shadow 300ms ease,
    border-color 300ms ease;
}

.bento-card::after {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 0.45rem;
  height: 0.45rem;
  content: "";
  border: 1px solid var(--gold-dark);
  border-radius: 50%;
}

.bento-card:hover {
  z-index: 2;
  border-color: rgba(142, 117, 72, 0.38);
  box-shadow: 0 2.5rem 5rem rgba(68, 57, 39, 0.13);
}

.bento-card--product {
  grid-column: span 7;
}

.bento-card--experience {
  grid-column: span 5;
}

.bento-card--engineering,
.bento-card--ai,
.bento-card--data {
  grid-column: span 4;
}

.bento-card--operation {
  grid-column: span 12;
  min-height: 25rem;
}

.bento-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bento-card__index {
  font-size: 0.62rem;
  font-weight: 800;
}

.bento-card__tag {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: var(--muted-light);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bento-card h3 {
  font-size: clamp(1.65rem, 3vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1;
}

.bento-card > div:last-child {
  position: relative;
  z-index: 2;
  transform: translateZ(20px);
}

.bento-card > div:last-child p {
  max-width: 36rem;
  margin-top: 1.2rem;
  color: var(--muted-light);
  font-size: 0.78rem;
}

.mini-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  align-self: center;
  width: min(100%, 38rem);
  margin-block: 3rem;
  gap: 0.7rem;
}

.mini-flow span {
  display: grid;
  min-height: 3.3rem;
  padding: 0.65rem;
  border: 1px solid var(--line-light);
  border-radius: 0.8rem;
  font-size: 0.57rem;
  font-weight: 700;
  place-items: center;
}

.mini-flow i {
  position: relative;
  height: 1px;
  background: var(--gold-dark);
}

.mini-flow i::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  content: "";
  transform: rotate(45deg);
  border-top: 1px solid var(--gold-dark);
  border-right: 1px solid var(--gold-dark);
}

.interface-sketch {
  display: grid;
  width: min(88%, 24rem);
  aspect-ratio: 1.5;
  margin: 2rem auto;
  padding: 1rem;
  border: 1px solid var(--line-light);
  border-radius: 1rem;
  background: var(--paper-bright);
  box-shadow: 1rem 1rem 0 rgba(199, 169, 107, 0.22);
}

.interface-sketch > div:first-child {
  display: flex;
  gap: 0.35rem;
}

.interface-sketch > div:first-child span {
  width: 0.38rem;
  height: 0.38rem;
  border: 1px solid var(--gold-dark);
  border-radius: 50%;
}

.interface-sketch > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.interface-sketch i {
  border: 1px solid rgba(9, 9, 9, 0.08);
  border-radius: 0.45rem;
  background: #e8e2d7;
}

.interface-sketch i:first-child {
  grid-row: span 2;
  background: var(--ink);
}

.code-orbit {
  position: relative;
  display: grid;
  width: 10rem;
  aspect-ratio: 1;
  margin: 2rem auto;
  border: 1px dashed rgba(9, 9, 9, 0.18);
  border-radius: 50%;
  place-items: center;
  animation: spin 20s linear infinite;
}

.code-orbit span {
  display: grid;
  width: 5.4rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-bright);
  font-size: 1rem;
  font-weight: 700;
  place-items: center;
  animation: spin 20s linear infinite reverse;
}

.code-orbit i {
  position: absolute;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--gold-dark);
}

.code-orbit i:nth-of-type(1) {
  top: -0.3rem;
  left: 50%;
}
.code-orbit i:nth-of-type(2) {
  right: 0.4rem;
  bottom: 1.2rem;
  background: var(--signal);
}
.code-orbit i:nth-of-type(3) {
  bottom: 1rem;
  left: 0.2rem;
}

.signal-viz {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 9rem;
  margin-block: 2rem;
  gap: 0.45rem;
}

.signal-viz i {
  width: 0.55rem;
  height: 20%;
  border-radius: 999px;
  background: var(--gold-dark);
  animation: signal 1.6s ease-in-out infinite alternate;
}

.signal-viz i:nth-child(2) {
  height: 50%;
  animation-delay: -0.2s;
}
.signal-viz i:nth-child(3) {
  height: 82%;
  animation-delay: -0.5s;
}
.signal-viz i:nth-child(4) {
  height: 100%;
  animation-delay: -0.8s;
  background: var(--ink);
}
.signal-viz i:nth-child(5) {
  height: 68%;
  animation-delay: -0.4s;
}
.signal-viz i:nth-child(6) {
  height: 42%;
  animation-delay: -0.7s;
}
.signal-viz i:nth-child(7) {
  height: 24%;
  animation-delay: -0.1s;
}

@keyframes signal {
  to {
    transform: scaleY(0.45);
    opacity: 0.5;
  }
}

.data-radar {
  position: relative;
  width: 9rem;
  aspect-ratio: 1;
  margin: 2rem auto;
  border: 1px solid rgba(9, 9, 9, 0.15);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1.8rem rgba(9, 9, 9, 0.025),
    inset 0 0 0 3.6rem rgba(9, 9, 9, 0.025);
}

.data-radar::before,
.data-radar::after {
  position: absolute;
  content: "";
  background: rgba(9, 9, 9, 0.12);
}

.data-radar::before {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.data-radar::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.data-radar span {
  position: absolute;
  width: 50%;
  height: 50%;
  transform-origin: bottom right;
  border-radius: 100% 0 0 0;
  background: linear-gradient(45deg, transparent, rgba(199, 169, 107, 0.48));
  animation: radar 3s linear infinite;
}

.data-radar i {
  position: absolute;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gold-dark);
  box-shadow: 0 0 0 0.35rem rgba(199, 169, 107, 0.14);
}

.data-radar i:nth-of-type(1) {
  top: 24%;
  right: 19%;
}
.data-radar i:nth-of-type(2) {
  right: 31%;
  bottom: 18%;
}
.data-radar i:nth-of-type(3) {
  bottom: 34%;
  left: 16%;
}

@keyframes radar {
  to {
    transform: rotate(360deg);
  }
}

.uptime {
  position: absolute;
  top: 50%;
  right: clamp(2rem, 8vw, 8rem);
  width: min(38%, 28rem);
  transform: translateY(-50%);
}

.uptime strong {
  color: var(--gold-dark);
  font-family: var(--font-serif);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.8;
}

.uptime strong span {
  color: var(--ink);
}

.uptime small {
  margin-left: 0.4rem;
  color: var(--muted-light);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.uptime svg {
  width: 100%;
  margin-top: 1.5rem;
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.bento-card--operation > div:last-child {
  max-width: 42%;
}

/* About */

.about {
  overflow: hidden;
  background: var(--gold);
  color: var(--ink);
}

.about::before {
  position: absolute;
  top: -25%;
  left: -15%;
  width: 50vw;
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(9, 9, 9, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 10vw rgba(9, 9, 9, 0.025),
    0 0 0 20vw rgba(9, 9, 9, 0.018);
}

.about__monogram {
  position: absolute;
  right: -0.1em;
  bottom: -0.22em;
  color: rgba(9, 9, 9, 0.07);
  font-size: clamp(14rem, 44vw, 48rem);
  font-weight: 800;
  letter-spacing: -0.16em;
  line-height: 0.72;
  pointer-events: none;
}

.about__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(4rem, 10vw, 12rem);
}

.about__heading h2 {
  margin-top: clamp(3rem, 6vw, 6rem);
  font-size: clamp(3.6rem, 7.8vw, 8rem);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.88;
}

.about__heading h2 em {
  color: var(--paper-bright);
  font-family: var(--font-serif);
  font-weight: 400;
}

.about__copy {
  padding-top: clamp(6rem, 14vw, 14rem);
}

.about__lead {
  font-size: clamp(1.5rem, 2.8vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.22;
}

.about__body {
  display: grid;
  margin-top: 3rem;
  gap: 1.4rem;
  color: rgba(9, 9, 9, 0.68);
  font-size: 0.88rem;
}

.about__principles {
  display: grid;
  margin-top: clamp(4rem, 7vw, 7rem);
}

.about__principles article {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: center;
  min-height: 4rem;
  border-top: 1px solid rgba(9, 9, 9, 0.18);
}

.about__principles article:last-child {
  border-bottom: 1px solid rgba(9, 9, 9, 0.18);
}

.about__principles span {
  font-size: 0.58rem;
  font-weight: 800;
}

.about__principles p {
  font-size: 0.76rem;
  font-weight: 650;
}

/* Contact */

.contact {
  position: relative;
  display: flex;
  min-height: min(70rem, 100svh);
  padding-block: clamp(8rem, 15vw, 15rem) clamp(10rem, 17vw, 17rem);
  overflow: hidden;
  align-items: center;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0
      0 / 8vw 100%,
    var(--ink);
}

.contact__canvas {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.contact__ring {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(199, 169, 107, 0.12);
  border-radius: 50%;
}

.contact__ring--one {
  top: 10%;
  right: 2%;
  width: clamp(17rem, 42vw, 42rem);
  aspect-ratio: 1;
  animation: spin 35s linear infinite;
}

.contact__ring--one::after,
.contact__ring--two::after {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  content: "";
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 2rem rgba(199, 169, 107, 0.5);
}

.contact__ring--one::after {
  top: 15%;
  left: 12%;
}

.contact__ring--two {
  right: 22%;
  bottom: 12%;
  width: clamp(7rem, 18vw, 18rem);
  aspect-ratio: 1;
  animation: spin 20s linear infinite reverse;
}

.contact__ring--two::after {
  right: 8%;
  bottom: 25%;
  background: var(--signal);
}

.contact__inner {
  position: relative;
  z-index: 2;
}

.contact h2 {
  max-width: 12ch;
  margin-top: clamp(3rem, 6vw, 6rem);
  font-size: clamp(3.8rem, 9.8vw, 10rem);
  font-weight: 500;
  letter-spacing: -0.09em;
  line-height: 0.82;
}

.contact h2 > span {
  display: block;
}

.contact__serif {
  margin-left: clamp(1rem, 8vw, 8rem);
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-weight: 400;
}

.contact__copy {
  max-width: 33rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--muted-dark);
  font-size: clamp(0.9rem, 1.3vw, 1.12rem);
}

.contact__actions {
  display: flex;
  align-items: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact__primary {
  display: inline-flex;
  align-items: center;
  min-height: 4.4rem;
  padding: 0.5rem 0.5rem 0.5rem 1.6rem;
  gap: 1.4rem;
  border-radius: 999px;
  background: var(--signal);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
}

.contact__primary svg {
  width: 3.35rem;
  height: 3.35rem;
  padding: 0.95rem;
  border-radius: 50%;
  background: var(--ink);
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.4;
  transition: transform 350ms var(--ease-out);
}

.contact__primary:hover svg {
  transform: rotate(45deg);
}

.contact__secondary {
  display: grid;
  min-height: 4.4rem;
  padding-inline: 1.6rem;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 700;
  place-items: center;
  transition:
    border-color 250ms,
    background-color 250ms;
}

.contact__secondary:hover {
  border-color: var(--gold);
  background: rgba(199, 169, 107, 0.08);
}

.contact__ticker {
  position: absolute;
  right: 0;
  bottom: 2rem;
  left: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.09);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  white-space: nowrap;
}

.contact__ticker > div {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 2rem;
  animation: contact-ticker 35s linear infinite;
}

.contact__ticker i {
  width: 0.18em;
  height: 0.18em;
  transform: rotate(45deg);
  background: var(--gold);
}

@keyframes contact-ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Footer */

.site-footer {
  padding-block: 2rem max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  background: var(--ink);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
}

.site-footer__inner > p,
.site-footer__links a {
  color: var(--muted-dark);
  font-size: 0.61rem;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.site-footer__links {
  display: flex;
  gap: 1.25rem;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.3rem;
  transition: color 200ms;
}

.site-footer__links a:hover {
  color: var(--white);
}

.site-footer__links span {
  color: var(--gold);
}

.magnetic {
  --mx: 0px;
  --my: 0px;
  position: relative;
  transform: translate(var(--mx), var(--my));
  transition:
    transform 400ms var(--ease-out),
    color 250ms,
    background-color 250ms,
    border-color 250ms;
  will-change: transform;
}

/* Responsive */

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .explore-trigger {
    display: none;
  }

  .menu-toggle,
  .mobile-menu {
    display: flex;
  }

  .hero__title {
    font-size: clamp(4.3rem, 13vw, 8.4rem);
  }

  .project__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-dark);
  }

  .product-story {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
  }

  .system-map__heading {
    grid-template-columns: 1fr 2fr;
  }

  .system-map__heading > p:last-child {
    grid-column: 2;
  }

  .system-map {
    height: 36rem;
  }

  .bento-card--engineering,
  .bento-card--ai {
    grid-column: span 6;
  }

  .bento-card--data {
    grid-column: span 12;
    min-height: 25rem;
  }

  .data-radar {
    position: absolute;
    top: 50%;
    right: 15%;
    margin: 0;
    transform: translateY(-50%);
  }

  .bento-card--data > div:last-child {
    max-width: 50%;
  }
}

@media (max-width: 780px) {
  :root {
    --gutter: 1.25rem;
    --section-space: clamp(5rem, 21vw, 8rem);
  }

  .noise {
    opacity: 0.035;
  }

  .site-header {
    min-height: 4.75rem;
  }

  .site-header.is-scrolled {
    min-height: 4.25rem;
  }

  .brand__name {
    font-size: 0.7rem;
  }

  .hero {
    min-height: max(47rem, 100svh);
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0
        0 / 25vw 100%,
      radial-gradient(
        circle at 72% 36%,
        rgba(199, 169, 107, 0.14),
        transparent 28%
      ),
      var(--ink);
  }

  .hero__top {
    padding-top: 6rem;
  }

  .hero__availability {
    max-width: 10rem;
    justify-content: flex-end;
    line-height: 1.4;
    text-align: right;
  }

  .hero__content {
    padding-block: 4rem 5rem;
  }

  .hero__pretitle {
    margin-bottom: 1.5rem;
    font-size: 0.56rem;
  }

  .hero__title {
    max-width: none;
    font-size: clamp(3.65rem, 18.7vw, 7rem);
    line-height: 0.81;
  }

  .title-line--serif {
    margin-left: 0.3em;
  }

  .title-line--offset {
    margin-left: 0;
  }

  .hero__bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
  }

  .hero__intro {
    font-size: 0.78rem;
  }

  .circle-link {
    width: 6.7rem;
    flex: 0 0 auto;
  }

  .circle-link span {
    font-size: 0.55rem;
  }

  .hero__signature,
  .hero__scroll {
    display: none;
  }

  .hero__orb--one {
    top: 24%;
    right: -18%;
    width: 17rem;
  }

  .hero__orb--two {
    right: 12%;
    bottom: 4%;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

  .section-head__aside {
    text-align: left;
  }

  .manifesto__statement {
    margin-top: 3.5rem;
    font-size: clamp(2.4rem, 11.6vw, 4.5rem);
    line-height: 1.02;
  }

  .manifesto__foot {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .manifesto__coordinates {
    justify-content: space-between;
  }

  .project__title-row {
    display: grid;
    gap: 2.5rem;
  }

  .project__title {
    font-size: clamp(4rem, 20.5vw, 9rem);
  }

  .project__external {
    justify-self: start;
    margin: 0;
  }

  .project__lead {
    font-size: 1.12rem;
  }

  .project__stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    min-height: 12rem;
    padding: 1.35rem;
  }

  .stat > p {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .stat > span {
    margin-top: 2rem;
    font-size: 0.59rem;
  }

  .stat--statement > p {
    font-size: 3.5rem;
  }

  .project-window-wrap {
    width: calc(100% - 1rem);
    margin-block: 5rem 7rem;
  }

  .window-bar {
    grid-template-columns: 1fr auto;
  }

  .window-url {
    justify-self: end;
    padding-inline: 0.8rem;
    font-size: 0.48rem;
  }

  .window-status {
    display: none;
  }

  .project-window figcaption {
    right: 0.6rem;
    bottom: 0.6rem;
    max-width: calc(100% - 1.2rem);
    font-size: 0.48rem;
  }

  .product-story {
    display: block;
    min-height: auto;
  }

  .product-story__visual {
    display: none;
  }

  .product-story__chapters {
    padding: 0;
  }

  .story-chapter {
    min-height: auto;
    padding: 5rem 0;
    opacity: 1;
    border-top: 1px solid var(--line-dark);
  }

  .story-chapter h3 {
    font-size: clamp(2.8rem, 13vw, 5rem);
  }

  .story-chapter__mobile-image {
    display: block;
    width: min(78%, 22rem);
    max-height: 36rem;
    margin: 3rem auto 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.3rem;
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.35);
    object-fit: cover;
    object-position: top;
  }

  .system-map-wrap {
    padding-block: 6rem;
  }

  .system-map__heading {
    grid-template-columns: 1fr;
  }

  .system-map__heading > p:last-child {
    grid-column: auto;
  }

  .system-map__heading h3 {
    font-size: clamp(3.1rem, 14vw, 5.5rem);
  }

  .system-map {
    display: grid;
    width: calc(100% - 2.5rem);
    height: auto;
    grid-template-columns: 1fr;
    margin-top: 4rem;
    gap: 0.6rem;
  }

  .system-map__lines {
    display: none;
  }

  .system-node,
  .system-node--center,
  .system-node--one,
  .system-node--two,
  .system-node--three,
  .system-node--four,
  .system-node--five {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    min-height: 7.5rem;
    transform: none;
    border-radius: 1rem;
  }

  .system-node--center {
    display: grid;
    min-height: 9rem;
    grid-template-columns: auto 1fr;
    justify-content: start;
    column-gap: 1rem;
    background: var(--gold);
  }

  .system-node--center img {
    grid-row: span 2;
  }

  .system-node--center strong,
  .system-node--center span {
    margin: 0;
    align-self: end;
  }

  .system-node--center span {
    align-self: start;
  }

  .project-outcome blockquote {
    font-size: clamp(2.6rem, 12vw, 5rem);
  }

  .project-outcome__tags {
    margin-left: 0;
  }

  .capabilities__intro {
    grid-template-columns: 1fr;
  }

  .capabilities__intro h2 {
    font-size: clamp(3.2rem, 15vw, 6rem);
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento-card,
  .bento-card--product,
  .bento-card--experience,
  .bento-card--engineering,
  .bento-card--ai,
  .bento-card--data,
  .bento-card--operation {
    grid-column: auto;
    min-height: 27rem;
    transform: none;
  }

  .bento-card--operation {
    min-height: 35rem;
  }

  .bento-card--operation > div:last-child,
  .bento-card--data > div:last-child {
    max-width: none;
  }

  .uptime,
  .data-radar {
    position: relative;
    top: auto;
    right: auto;
    width: 85%;
    margin: 2.5rem auto;
    transform: none;
  }

  .data-radar {
    width: 9rem;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__heading h2 {
    font-size: clamp(3.2rem, 15vw, 6rem);
  }

  .about__copy {
    padding-top: 2rem;
  }

  .contact {
    min-height: 54rem;
  }

  .contact h2 {
    font-size: clamp(3.6rem, 16vw, 6.5rem);
    line-height: 0.87;
  }

  .contact__serif {
    margin-left: 0.25em;
  }

  .contact__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contact__primary,
  .contact__secondary {
    justify-content: space-between;
  }

  .site-footer__inner {
    grid-template-columns: 1fr auto;
  }

  .site-footer__inner > p:first-of-type {
    display: none;
  }

  .site-footer__copy {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid var(--line-dark);
  }
}

@media (max-width: 430px) {
  .loader__content {
    transform: scale(0.8);
  }

  .hero__index {
    display: none;
  }

  .hero__top {
    justify-content: flex-end;
  }

  .hero__title {
    font-size: clamp(3.25rem, 17.5vw, 4.55rem);
  }

  .hero__bottom {
    grid-template-columns: 1fr;
  }

  .hero__intro {
    max-width: 21rem;
  }

  .circle-link {
    width: 6rem;
    margin-left: auto;
  }

  .project__stats {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat:nth-child(2),
  .stat:nth-child(-n + 2) {
    min-height: 10.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .stat > span {
    margin-top: 1.5rem;
  }

  .stat--statement {
    min-height: 12rem;
  }

  .window-url {
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-window figcaption {
    display: none;
  }

  .command-menu nav a {
    grid-template-columns: 2rem 1fr;
  }

  .command-menu nav small {
    display: none;
  }

  .mini-flow {
    grid-template-columns: 1fr;
  }

  .mini-flow i {
    width: 1px;
    height: 1.4rem;
    justify-self: center;
  }

  .mini-flow i::after {
    top: auto;
    right: -2px;
    bottom: 0;
    transform: rotate(135deg);
  }

  .bento-card {
    min-height: 29rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__links {
    justify-content: space-between;
    border-top: 1px solid var(--line-dark);
  }

  .site-footer__copy {
    grid-column: auto;
  }
}

@media (max-height: 650px) and (min-width: 781px) {
  .hero {
    min-height: 38rem;
  }

  .hero__top {
    padding-top: 5.8rem;
  }

  .hero__content {
    padding-block: 2rem 3.5rem;
  }

  .hero__pretitle {
    margin-bottom: 1rem;
  }

  .hero__title {
    font-size: clamp(4rem, 8vw, 6.8rem);
  }

  .hero__bottom {
    margin-top: 2rem;
  }

  .circle-link {
    width: 6.5rem;
  }
}

/* Accessibility and performance modes */

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

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

  .loader {
    display: none;
  }

  .title-line > span,
  .project__title .char,
  .js .reveal,
  .js .reveal-up {
    opacity: 1;
    transform: none;
  }

  .hero__canvas,
  .contact__canvas {
    display: none;
  }
}

@media (forced-colors: active) {
  .page-progress span,
  .hero__availability > span,
  .marquee,
  .stat--statement,
  .about,
  .contact__primary {
    background: CanvasText;
    color: Canvas;
  }

  .noise,
  .hero__canvas,
  .contact__canvas {
    display: none;
  }
}

@media print {
  .loader,
  .site-header,
  .mobile-menu,
  .command-menu,
  .cursor,
  .page-progress,
  .noise,
  canvas,
  .marquee,
  .contact__ticker {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section,
  .contact {
    min-height: auto;
    padding-block: 3rem;
    break-inside: avoid;
    background: white;
    color: black;
  }
}

/* Reveal transforms that preserve interactive 3D states. */

.js .bento-card.reveal {
  opacity: 0;
  transform: translateY(2.5rem) perspective(1000px) rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out),
    box-shadow 300ms ease,
    border-color 300ms ease;
}

.js .bento-card.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) perspective(1000px) rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
}

.js .project-window.reveal {
  opacity: 0;
  transform: translateY(2.5rem) rotateX(var(--window-rx, 0deg))
    rotateY(var(--window-ry, 0deg));
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out),
    box-shadow 500ms ease;
}

.js .project-window.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) rotateX(var(--window-rx, 0deg))
    rotateY(var(--window-ry, 0deg));
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body,
  a,
  button {
    cursor: none;
  }
}

@media (max-width: 780px) {
  .js .bento-card.reveal,
  .js .bento-card.reveal.is-visible {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .bento-card.reveal,
  .js .bento-card.reveal.is-visible,
  .js .project-window.reveal,
  .js .project-window.reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .js .bento-card.reveal,
  .js .project-window.reveal {
    opacity: 1;
    transform: none;
  }
}
