:root {
  color-scheme: dark;
  --ink: #0e0f0d;
  --surface: #151611;
  --ivory: #f6f1e7;
  --ivory-muted: #bcb6aa;
  --gold: #d6b66a;
  --gold-deep: #b98e3f;
  --teal: #3fa38c;
  --line: rgba(246, 241, 231, 0.14);
  --line-soft: rgba(246, 241, 231, 0.08);
  --sans: Inter, "SF Pro Display", "SF Pro Text", -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ivory);
  background:
    radial-gradient(circle at 68% 38%, rgba(47, 125, 109, 0.08), transparent 27rem),
    var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.grain {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.84' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.ambient {
  position: absolute;
  z-index: -2;
  width: 30rem;
  height: 30rem;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
}

.ambient-one {
  top: -18rem;
  right: 5vw;
  background: rgba(201, 164, 92, 0.13);
}

.ambient-two {
  bottom: -25rem;
  left: 8vw;
  background: rgba(47, 125, 109, 0.14);
}

.site-header,
.site-footer,
.hero {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  border-bottom: 1px solid var(--line-soft);
}

.wordmark {
  font-size: 1.75rem;
  font-weight: 660;
  letter-spacing: -0.06em;
  line-height: 1;
  text-decoration: none;
}

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

.build-status {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ivory-muted);
  font-size: 0.78rem;
  font-weight: 630;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-pulse {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(63, 163, 140, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.92fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
  padding-block: clamp(4.5rem, 9vh, 8rem);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 1.6rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.7rem, 7.2vw, 7.4rem);
  font-weight: 560;
  letter-spacing: -0.072em;
  line-height: 0.9;
}

h1 span,
h1 em {
  display: block;
}

h1 span {
  color: var(--ivory);
}

h1 em {
  margin-top: 0.12em;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.93em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.intro {
  max-width: 635px;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  color: var(--ivory-muted);
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.15rem 0.85rem 1.35rem;
  gap: 0.75rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #17150f;
  font-size: 0.95rem;
  font-weight: 680;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.primary-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  transition: transform 180ms ease;
}

.primary-action:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  transform: translateY(-1px);
}

.primary-action:hover svg {
  transform: translateX(3px);
}

.text-action {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 0.2rem;
  color: var(--ivory);
  font-size: 0.95rem;
  font-weight: 620;
  text-underline-offset: 6px;
  text-decoration-color: rgba(246, 241, 231, 0.32);
}

.text-action:hover {
  text-decoration-color: var(--gold);
}

.social-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.85rem;
  margin-top: 1.15rem;
  color: rgba(246, 241, 231, 0.54);
  font-size: 0.78rem;
}

.social-shortcuts span {
  color: rgba(246, 241, 231, 0.34);
}

.social-shortcuts a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  font-weight: 620;
  text-decoration-color: rgba(214, 182, 106, 0.28);
  text-underline-offset: 5px;
}

.social-shortcuts a:hover {
  color: var(--ivory);
  text-decoration-color: var(--gold);
}

.primary-action:focus-visible,
.text-action:focus-visible,
.site-footer a:focus-visible,
.social-shortcuts a:focus-visible,
.wordmark:focus-visible,
.experience-field:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 5px;
}

.release-note {
  margin: 0.7rem 0 0;
  color: rgba(246, 241, 231, 0.48);
  font-size: 0.8rem;
  line-height: 1.5;
}

.experience-field {
  position: relative;
  width: min(45vw, 630px);
  aspect-ratio: 1.08;
  justify-self: end;
  border-radius: 42%;
  cursor: grab;
  isolation: isolate;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.experience-field.is-dragging {
  cursor: grabbing;
}

.field-aura,
.domain-sphere {
  position: absolute;
  inset: 0;
}

.field-aura {
  z-index: 0;
  pointer-events: none;
}

.field-aura::before {
  position: absolute;
  content: "";
  inset: 13%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(214, 182, 106, 0.1), transparent 24%),
    radial-gradient(circle at 42% 46%, rgba(63, 163, 140, 0.1), transparent 54%);
  filter: blur(4px);
}

.field-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.field-ring-one {
  width: 96%;
  height: 96%;
  border-color: rgba(246, 241, 231, 0.12);
  box-shadow: 0 0 80px rgba(63, 163, 140, 0.06);
  transform: translate(-50%, -50%) rotate(-9deg) scaleY(0.73);
}

.field-ring-two {
  width: 78%;
  height: 78%;
  border-color: rgba(63, 163, 140, 0.21);
  transform: translate(-50%, -50%) rotate(31deg) scaleY(0.46);
}

.field-ring-three {
  width: 61%;
  height: 61%;
  border-color: rgba(214, 182, 106, 0.19);
  transform: translate(-50%, -50%) rotate(-38deg) scaleY(0.52);
}

.field-axis {
  position: absolute;
  top: 50%;
  left: 50%;
  background: linear-gradient(90deg, transparent, var(--line-soft), transparent);
  transform: translate(-50%, -50%);
}

.field-axis-x {
  width: 105%;
  height: 1px;
}

.field-axis-y {
  width: 1px;
  height: 105%;
  background: linear-gradient(transparent, var(--line-soft), transparent);
}

.field-spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 0 18px rgba(246, 241, 231, 0.75);
  animation: field-pulse 3.8s ease-in-out infinite;
}

.field-spark-one {
  top: 18%;
  right: 20%;
}

.field-spark-two {
  right: 11%;
  bottom: 27%;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(214, 182, 106, 0.85);
  animation-delay: -1.2s;
}

.field-spark-three {
  bottom: 15%;
  left: 24%;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(63, 163, 140, 0.85);
  animation-delay: -2.5s;
}

.domain-sphere {
  z-index: 2;
  overflow: visible;
  pointer-events: none;
  perspective: 900px;
  transform-style: preserve-3d;
}

.domain-card {
  --accent: var(--gold);
  --accent-rgb: 214, 182, 106;
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 0.65rem;
  width: clamp(130px, 11vw, 160px);
  min-height: 54px;
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(var(--accent-rgb), calc(0.2 + var(--depth, 0.5) * 0.45));
  border-radius: 14px;
  background:
    linear-gradient(132deg, rgba(var(--accent-rgb), 0.11), transparent 46%),
    rgba(15, 17, 14, 0.9);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, calc(0.18 + var(--depth, 0.5) * 0.3)),
    inset 0 1px 0 rgba(246, 241, 231, 0.06),
    0 0 24px rgba(var(--accent-rgb), calc(var(--depth, 0.5) * 0.09));
  color: var(--ivory);
  transform-origin: center;
  will-change: transform, opacity, filter;
  backdrop-filter: blur(14px);
}

.domain-card::after {
  position: absolute;
  content: "";
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.055), transparent 36%);
  pointer-events: none;
}

.domain-card-teal {
  --accent: var(--teal);
  --accent-rgb: 63, 163, 140;
}

.domain-mark {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.domain-card strong {
  overflow: hidden;
  font-size: clamp(0.68rem, 0.8vw, 0.79rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-state {
  margin-top: 0.22rem;
  color: rgba(246, 241, 231, 0.46);
  font-size: 0.54rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.core {
  position: absolute;
  z-index: 55;
  inset: 50%;
  display: grid;
  align-content: center;
  justify-items: center;
  width: clamp(132px, 27%, 154px);
  aspect-ratio: 1;
  padding: 1rem;
  border: 1px solid rgba(214, 182, 106, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 28%, rgba(214, 182, 106, 0.16), transparent 42%),
    radial-gradient(circle at 68% 76%, rgba(63, 163, 140, 0.06), transparent 48%),
    rgba(19, 20, 16, 0.94);
  box-shadow:
    0 0 0 9px rgba(14, 15, 13, 0.56),
    0 24px 80px rgba(0, 0, 0, 0.46),
    0 0 72px rgba(214, 182, 106, 0.07),
    inset 0 0 40px rgba(214, 182, 106, 0.06);
  text-align: center;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(16px);
}

.core-kicker {
  margin-bottom: 0.58rem;
  color: var(--gold);
  font-size: clamp(0.52rem, 0.65vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.core strong {
  font-family: var(--serif);
  font-size: clamp(1.24rem, 1.65vw, 1.58rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.core-note {
  max-width: 15ch;
  margin-top: 0.56rem;
  color: var(--ivory-muted);
  font-size: clamp(0.58rem, 0.66vw, 0.67rem);
  line-height: 1.35;
}

.field-label {
  position: absolute;
  z-index: 70;
  top: 1%;
  left: 50%;
  margin: 0;
  padding: 0.48rem 0.72rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(14, 15, 13, 0.62);
  color: rgba(246, 241, 231, 0.38);
  font-size: clamp(0.55rem, 0.62vw, 0.64rem);
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.drag-hint {
  position: absolute;
  z-index: 70;
  bottom: 0;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.5rem 0.72rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(14, 15, 13, 0.64);
  color: rgba(246, 241, 231, 0.48);
  font-size: clamp(0.58rem, 0.64vw, 0.66rem);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: color 180ms ease, border-color 180ms ease, opacity 180ms ease;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.drag-hint > span:first-child {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0;
}

.experience-field:hover .drag-hint,
.experience-field:focus-visible .drag-hint {
  border-color: rgba(63, 163, 140, 0.28);
  color: rgba(246, 241, 231, 0.7);
}

.experience-field.is-dragging .drag-hint {
  opacity: 0.35;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 92px;
  border-top: 1px solid var(--line-soft);
  color: rgba(246, 241, 231, 0.48);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

.footer-brand {
  display: grid;
  gap: 0.3rem;
}

.footer-brand p:last-child {
  color: rgba(246, 241, 231, 0.3);
  font-size: 0.7rem;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-socials {
  justify-self: center;
}

.footer-contact {
  justify-self: end;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
}

.site-footer a:hover {
  color: var(--ivory);
  text-decoration-color: var(--gold);
}

@keyframes field-pulse {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.72);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 4rem;
    padding-top: clamp(4rem, 8vh, 6rem);
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(3.8rem, 11vw, 6.5rem);
  }

  .experience-field {
    width: min(86vw, 610px);
    justify-self: center;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer,
  .hero {
    width: min(100% - 32px, 1320px);
  }

  .site-header {
    min-height: 84px;
  }

  .wordmark {
    font-size: 1.5rem;
  }

  .build-status {
    font-size: 0.68rem;
  }

  .hero {
    gap: 3.25rem;
    padding-block: 4rem;
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 5rem);
    line-height: 0.92;
  }

  .eyebrow {
    max-width: 28ch;
    margin-bottom: 1.25rem;
    font-size: 0.71rem;
  }

  .intro {
    margin-top: 2rem;
    font-size: 1rem;
  }

  .actions {
    align-items: flex-start;
    gap: 1rem 1.35rem;
  }

  .experience-field {
    width: min(100%, 460px);
  }

  .domain-card {
    width: clamp(120px, 32vw, 144px);
    min-height: 52px;
    padding: 0.62rem 0.66rem;
    border-radius: 12px;
  }

  .domain-mark {
    width: 25px;
    height: 25px;
  }

  .keyboard-hint {
    display: none;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 168px;
    gap: 0.2rem;
    padding-block: 1.1rem;
  }

  .site-footer nav,
  .footer-socials,
  .footer-contact {
    justify-self: start;
  }

  .footer-brand {
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 3rem;
  }

  .build-status {
    letter-spacing: 0.08em;
  }

  .experience-field {
    width: 320px;
    max-width: 100%;
  }

  .domain-card {
    width: 118px;
    min-height: 50px;
    column-gap: 0.45rem;
    padding: 0.55rem;
  }

  .domain-mark {
    width: 23px;
    height: 23px;
    border-radius: 7px;
    font-size: 0.52rem;
  }

  .domain-card strong {
    font-size: 0.61rem;
  }

  .domain-state {
    font-size: 0.48rem;
  }

  .core {
    width: 126px;
  }

  .field-label,
  .drag-hint {
    font-size: 0.52rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
