:root {
  --paper: #eee9df;
  --ink: #17231d;
  --orange: #f0643d;
  --line: rgba(23, 35, 29, 0.18);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(23, 35, 29, 0.045) 50%, transparent calc(50% + 0.5px)),
    var(--paper);
}

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

.noise {
  position: fixed;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  z-index: 0;
  width: 38rem;
  aspect-ratio: 1;
  left: 72%;
  top: 47%;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65), transparent 65%);
  transition: left 1.2s var(--ease-out), top 1.2s var(--ease-out);
}

.site-header,
.site-footer {
  position: fixed;
  z-index: 4;
  left: 3rem;
  right: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  top: 0;
  height: 6.5rem;
  border-bottom: 1px solid var(--line);
  animation: draw-line 1.4s var(--ease-out) both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 1.2rem;
}

.brand-mark span {
  display: block;
  width: 4px;
  border-radius: 4px;
  background: var(--orange);
}

.brand-mark span:nth-child(1) { height: 55%; }
.brand-mark span:nth-child(2) { height: 100%; }
.brand-mark span:nth-child(3) { height: 75%; }

.status,
.eyebrow,
.site-footer {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.status-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(240, 100, 61, 0.4);
  animation: pulse 2.5s infinite;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(21rem, 0.75fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
  padding: 7.5rem 3rem 5.5rem;
}

.hero {
  position: relative;
  z-index: 2;
  max-width: 64rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(28rem, 80%);
  margin-bottom: 2.1rem;
}

.eyebrow-line {
  height: 1px;
  flex: 1;
  background: var(--line);
}

h1 {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(4.5rem, 8.2vw, 9rem);
  font-weight: 400;
  line-height: 0.76;
  letter-spacing: -0.065em;
}

.title-line {
  display: block;
  overflow: hidden;
  padding: 0.11em 0.05em 0.11em 0;
}

.title-line > span {
  display: block;
  transform: translateY(115%);
  animation: title-in 1.25s var(--ease-out) forwards;
}

.title-line:nth-child(2) > span { animation-delay: 0.12s; }
.title-line:nth-child(3) > span { animation-delay: 0.24s; }

.title-line.italic {
  padding-left: 16%;
  font-style: italic;
}

.title-line.accent {
  position: relative;
  z-index: 2;
  color: var(--orange);
  font-size: 0.74em;
  line-height: 0.95;
}

.hero-footer {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: 3rem;
  animation-delay: 0.8s;
}

.hero-footer p {
  width: min(31rem, 45vw);
  margin: 0;
  color: rgba(23, 35, 29, 0.72);
  font-size: clamp(0.85rem, 1vw, 1rem);
  line-height: 1.7;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  flex: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.35s ease;
}

.cta-icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  transition: transform 0.5s var(--ease-out), background 0.35s ease;
}

.cta-icon svg {
  width: 1.1rem;
  stroke: currentColor;
  stroke-width: 1.5;
}

.cta:hover {
  color: var(--orange);
}

.cta:hover .cta-icon {
  background: var(--orange);
  transform: translateX(0.45rem) rotate(-20deg);
}

.migration-visual {
  position: relative;
  z-index: 2;
  width: min(100%, 32rem);
  justify-self: end;
  padding: 1rem;
  opacity: 0;
  animation: migration-enter 1.4s 0.35s var(--ease-out) forwards;
}

.migration-visual::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 100, 61, 0.1), transparent 66%);
}

.domain-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.4rem 1rem;
  min-height: 10.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(238, 233, 223, 0.76);
  backdrop-filter: blur(12px);
}

.domain-card-old {
  margin-right: 3.5rem;
  color: rgba(23, 35, 29, 0.5);
}

.domain-card-old::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  bottom: 3.3rem;
  left: 1.5rem;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  animation: strike 0.8s 1.25s var(--ease-out) forwards;
}

.domain-card-new {
  margin-left: 3.5rem;
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 1.8rem 4rem rgba(23, 35, 29, 0.18);
}

.card-label,
.card-state,
.route-copy {
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.card-label {
  grid-column: 1 / -1;
  align-self: start;
}

.domain-name {
  font-family: "Newsreader", serif;
  font-size: clamp(1.6rem, 2.3vw, 2.3rem);
  letter-spacing: -0.045em;
}

.card-state {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.domain-card-new .card-label {
  color: rgba(238, 233, 223, 0.55);
}

.domain-card-new .card-state {
  color: #ff906f;
}

.live-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #ff7954;
  box-shadow: 0 0 0 0 rgba(255, 121, 84, 0.5);
  animation: pulse 2.5s infinite;
}

.migration-route {
  position: relative;
  height: 7rem;
}

.route-line {
  position: absolute;
  top: 0.7rem;
  bottom: 0.7rem;
  left: 50%;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--line) 0 4px,
    transparent 4px 9px
  );
}

.route-packet {
  position: absolute;
  z-index: 2;
  top: 0.4rem;
  left: calc(50% - 0.3rem);
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0.35rem var(--paper);
  animation: packet-travel 2.4s 1.2s var(--ease-out) infinite;
}

.route-copy {
  position: absolute;
  left: calc(50% + 1.6rem);
  top: 50%;
  color: rgba(23, 35, 29, 0.55);
  transform: translateY(-50%);
}

.migration-route svg {
  position: absolute;
  top: 50%;
  left: calc(50% - 1.1rem);
  width: 2.2rem;
  height: 2.2rem;
  padding: 0.45rem;
  color: var(--paper);
  border-radius: 50%;
  background: var(--orange);
  stroke: currentColor;
  stroke-width: 1.5;
  transform: translateY(-50%) rotate(90deg);
}

.site-footer {
  bottom: 0;
  height: 4rem;
  border-top: 1px solid var(--line);
  animation-delay: 1s;
}

.footer-right {
  display: flex;
  gap: 2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  animation: reveal 1s 0.55s var(--ease-out) forwards;
}

@keyframes title-in {
  to { transform: translateY(0); }
}

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

@keyframes draw-line {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}

@keyframes migration-enter {
  from { opacity: 0; transform: translateX(3rem); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes strike {
  to { transform: scaleX(1); }
}

@keyframes packet-travel {
  0% { top: 0.4rem; opacity: 0; }
  12% { opacity: 1; }
  82% { opacity: 1; }
  100% { top: 6rem; opacity: 0; }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 0.6rem rgba(240, 100, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 100, 61, 0); }
}

@media (max-width: 1100px) {
  main {
    grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
    gap: 1rem;
  }

  h1 {
    font-size: clamp(4.3rem, 8.3vw, 7rem);
  }

  .domain-card-old {
    margin-right: 1.5rem;
  }

  .domain-card-new {
    margin-left: 1.5rem;
  }
}

@media (max-width: 820px) {
  body {
    overflow: auto;
  }

  .site-header,
  .site-footer {
    left: 1.25rem;
    right: 1.25rem;
  }

  .site-header {
    height: 5rem;
  }

  main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    min-height: auto;
    padding: 8.5rem 1.25rem 3rem;
  }

  h1 {
    font-size: clamp(4rem, 15vw, 7rem);
    line-height: 0.83;
  }

  .title-line.italic {
    padding-left: 8%;
  }

  .hero-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 2.5rem;
  }

  .hero-footer p {
    width: min(30rem, 90%);
  }

  .migration-visual {
    width: min(100%, 34rem);
    justify-self: center;
    padding: 0;
  }

  .site-footer {
    position: relative;
    left: auto;
    right: auto;
    margin: 0 1.25rem;
  }

  .footer-right .local-time {
    display: none;
  }
}

@media (max-width: 520px) {
  .status span:last-child {
    display: none;
  }

  .eyebrow {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  h1 {
    font-size: clamp(3.25rem, 16.5vw, 5rem);
  }

  .hero-footer p {
    width: 100%;
  }

  .domain-card {
    min-height: 9rem;
    padding: 1.2rem;
  }

  .domain-card-old {
    margin-right: 0.75rem;
  }

  .domain-card-new {
    margin-left: 0.75rem;
  }

  .domain-name {
    font-size: clamp(1.25rem, 6.7vw, 1.85rem);
  }

  .route-copy {
    display: none;
  }

  .site-footer > span:first-child {
    display: none;
  }

  .site-footer {
    justify-content: flex-end;
  }
}

@media (max-height: 760px) and (min-width: 821px) {
  main {
    padding-top: 6.8rem;
    padding-bottom: 4.5rem;
  }

  h1 {
    font-size: clamp(3.8rem, 7vw, 6.5rem);
  }

  .hero-footer {
    margin-top: 1.5rem;
  }

  .domain-card {
    min-height: 8rem;
  }

  .migration-route {
    height: 4.5rem;
  }

  .route-packet {
    animation-name: none;
  }
}

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

/* Main transition composition */
body {
  overflow-x: hidden;
  overflow-y: auto;
}

main {
  display: block;
  min-height: 100svh;
  padding: clamp(3rem, 7vw, 6rem) 1.5rem;
}

.transition-page {
  width: min(100%, 58rem);
  margin: 0 auto;
}

.transition-page .eyebrow {
  width: min(100%, 34rem);
  margin: 0 auto 2rem;
}

.transition-page h1 {
  width: 100%;
  margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
  text-align: center;
  font-size: clamp(4rem, 8.2vw, 7.5rem);
  line-height: 0.88;
}

.transition-page .title-line {
  display: inline-block;
}

.transition-page .title-line.italic {
  padding-left: 0.12em;
}

.transition-page .title-line.accent {
  display: block;
  padding-top: 0.06em;
  font-size: 0.7em;
}

.transition-page .migration-visual {
  width: min(100%, 46rem);
  margin: 0 auto;
  padding: 0;
  justify-self: auto;
}

.transition-page .domain-card {
  min-height: clamp(9rem, 17vw, 12rem);
  padding: clamp(1.25rem, 2.8vw, 2rem);
}

.transition-page .domain-card-old {
  margin-right: clamp(1rem, 8vw, 5rem);
}

.transition-page .domain-card-new {
  margin-left: clamp(1rem, 8vw, 5rem);
}

.transition-page .domain-card-old::after {
  right: clamp(1.25rem, 2.8vw, 2rem);
  bottom: clamp(3.5rem, 4.5vw, 3rem);
  left: clamp(1.25rem, 2.8vw, 2rem);
}

.transition-page .domain-name {
  font-size: clamp(1.6rem, 4.5vw, 3rem);
}

.page-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(100%, 46rem);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  animation-delay: 1.2s;
}

.page-action p {
  width: min(100%, 31rem);
  margin: 0;
  color: rgba(23, 35, 29, 0.68);
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  main {
    padding: 3.5rem 1rem;
  }

  .transition-page .eyebrow {
    margin-bottom: 1.75rem;
    font-size: 0.52rem;
  }

  .transition-page h1 {
    margin-bottom: 2.5rem;
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .transition-page .title-line {
    display: block;
  }

  .transition-page .title-line.italic {
    padding-left: 0;
  }

  .transition-page .domain-card {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    min-height: 9.5rem;
  }

  .transition-page .domain-card-old {
    margin-right: 0.5rem;
  }

  .transition-page .domain-card-new {
    margin-left: 0.5rem;
  }

  .transition-page .domain-card-old::after {
    bottom: 3.8rem;
  }

  .transition-page .domain-name {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
  }

  .migration-route {
    height: 6rem;
  }

  .route-copy {
    display: block;
    left: calc(50% + 1.45rem);
    font-size: 0.5rem;
  }

  .page-action {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.5rem;
  }
}
