:root {
  --ink: #071f35;
  --deep: #0b3047;
  --marine: #17626b;
  --kelp: #668f76;
  --coral: #ef654f;
  --paper: #f4edda;
  --paper-muted: #d9d3c2;
  --line: rgba(244, 237, 218, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

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

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
}

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

.ambient-bubbles {
  position: fixed;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
}

.bubble {
  position: absolute;
  top: 0;
  left: var(--left);
  width: var(--size);
  aspect-ratio: 1;
  border: 1.5px solid rgba(244, 237, 218, 0.48);
  border-radius: 50%;
  opacity: var(--opacity);
  box-shadow: inset 3px 3px 0 rgba(244, 237, 218, 0.1);
  animation: ambient-rise var(--duration) linear var(--delay) infinite;
  will-change: transform;
}

@keyframes ambient-rise {
  from {
    transform: translate3d(0, 110vh, 0) scale(0.86);
  }
  to {
    transform: translate3d(var(--drift), -18vh, 0) scale(1.08);
  }
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 46px;
  height: 46px;
  border: 2px solid var(--paper);
  border-radius: 14px;
  object-fit: cover;
}

nav {
  display: flex;
  gap: 26px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a {
  padding: 9px 0;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

nav a:hover,
nav a:focus-visible {
  color: #ff8a70;
}

main {
  position: relative;
  z-index: 2;
}

.hero {
  display: grid;
  grid-template-columns: minmax(270px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 720px;
  margin: 0 auto;
  padding: 72px 0 98px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.ticker {
  margin: 0 0 18px;
  color: #ff8a70;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 650px;
  margin: 0;
  color: var(--paper);
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: clamp(4.2rem, 8.5vw, 8.8rem);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.hero-line {
  max-width: 430px;
  margin: 32px 0 28px;
  color: var(--paper-muted);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.5;
}

.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
  text-transform: uppercase;
}

.squid-scene {
  position: relative;
  width: 100%;
  min-height: 610px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  color: var(--paper);
  background: var(--deep);
  border: 2px solid rgba(244, 237, 218, 0.56);
  border-radius: 48% 52% 43% 57% / 53% 37% 63% 47%;
  box-shadow: 22px 24px 0 rgba(4, 19, 32, 0.56);
}

.squid-scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  transition: transform 280ms ease;
}

.squid-scene:hover img,
.squid-scene:focus-visible img {
  transform: scale(1.018);
}

.squid-scene:focus-visible {
  outline: 4px solid var(--paper);
  outline-offset: 7px;
}

.poke-note {
  position: absolute;
  right: 9%;
  bottom: 7%;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-4deg);
}

.ink-plume {
  position: absolute;
  left: 63%;
  top: 44%;
  width: 190px;
  height: 150px;
  pointer-events: none;
  opacity: 0;
  background: #03111f;
  border-radius: 58% 42% 61% 39%;
  transform: translate(-50%, -50%) scale(0.15);
  filter: blur(2px);
}

.ink-plume::before,
.ink-plume::after {
  position: absolute;
  content: "";
  background: #03111f;
  border-radius: 50%;
}

.ink-plume::before {
  width: 100px;
  height: 100px;
  left: -32px;
  top: 34px;
}

.ink-plume::after {
  width: 120px;
  height: 96px;
  right: -42px;
  top: 15px;
}

.ink-plume.is-active {
  animation: ink-bloom 900ms ease-out both;
}

@keyframes ink-bloom {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.12) rotate(-8deg);
  }
  30% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate(-57%, -55%) scale(1.2) rotate(8deg);
  }
}

.scene-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.extra-bubble {
  position: absolute;
  left: var(--left);
  bottom: 25%;
  width: var(--size);
  aspect-ratio: 1;
  border: 2px solid var(--paper);
  border-radius: 50%;
  animation: scene-bubble 1.3s ease-out both;
}

@keyframes scene-bubble {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.45);
  }
  20% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), -230px, 0) scale(1.15);
  }
}

.field-notes {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(300px, 1.3fr);
  gap: clamp(36px, 8vw, 130px);
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 132px;
  border-top: 1px solid var(--line);
}

.notes-heading > p {
  margin: 0 0 16px;
  color: #ff8a70;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.notes-heading h2,
.contract-copy h2 {
  margin: 0;
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.notes-copy {
  padding-top: 4px;
}

.notes-copy p {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--paper-muted);
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  line-height: 1.55;
}

.notes-copy .big-note {
  margin-bottom: 38px;
  color: var(--paper);
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: clamp(3rem, 7vw, 7rem);
  letter-spacing: -0.065em;
  line-height: 0.88;
}

.lore-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(42px, 7vw, 84px) max(20px, calc((100vw - 1080px) / 2));
  color: var(--ink);
  background: var(--coral);
}

.lore-strip p {
  max-width: 800px;
  margin: 0;
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 5vw, 5.2rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.lore-strip span {
  flex: 0 0 auto;
  color: transparent;
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: clamp(5rem, 15vw, 12rem);
  line-height: 0.7;
  -webkit-text-stroke: 3px var(--ink);
  transform: rotate(7deg);
}

.contract-section {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto;
  padding: 130px 0;
}

.contract-squid {
  width: 180px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid var(--paper);
  border-radius: 31% 69% 47% 53% / 52% 38% 62% 48%;
  box-shadow: 12px 13px 0 var(--marine);
  transform: rotate(-3deg);
}

.address-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 32px;
  border: 2px solid var(--paper);
  background: rgba(4, 22, 37, 0.58);
}

.address-box code {
  min-width: 0;
  overflow: hidden;
  padding: 19px 20px;
  color: var(--paper);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.9rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-box button {
  min-width: 142px;
  padding: 15px 20px;
  cursor: pointer;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-left: 2px solid var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.address-box button:not(:disabled):hover,
.address-box button:not(:disabled):focus-visible {
  background: var(--coral);
}

.address-box button:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.address-box button:disabled {
  cursor: not-allowed;
  color: #62707a;
  background: #c9c5b9;
}

.copy-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: #ff9c86;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 42px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

footer p {
  margin: 0;
  color: var(--paper-muted);
  font-style: italic;
}

.motion-paused .bubble,
.motion-paused .extra-bubble,
.motion-paused .ink-plume {
  animation-play-state: paused !important;
}

@media (max-width: 840px) {
  .site-header {
    width: min(100% - 28px, 720px);
  }

  nav {
    gap: 16px;
  }

  nav a:first-child {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 720px);
    min-height: 0;
    padding: 60px 0 94px;
  }

  h1 {
    font-size: clamp(4.1rem, 19vw, 7.8rem);
  }

  .squid-scene {
    min-height: min(125vw, 650px);
    border-radius: 40% 60% 51% 49% / 51% 40% 60% 49%;
    box-shadow: 12px 15px 0 rgba(4, 19, 32, 0.56);
  }

  .squid-scene img {
    object-position: 68% center;
  }

  .field-notes {
    grid-template-columns: 1fr;
    width: min(100% - 40px, 680px);
    padding: 90px 0 100px;
  }

  .notes-copy .big-note {
    margin-bottom: 30px;
  }

  .contract-section {
    grid-template-columns: 130px minmax(0, 1fr);
    width: min(100% - 40px, 720px);
    padding: 100px 0;
  }

  .contract-squid {
    width: 130px;
  }

  .address-box {
    grid-template-columns: 1fr;
  }

  .address-box button {
    width: 100%;
    border-top: 2px solid var(--paper);
    border-left: 0;
  }
}

@media (max-width: 590px) {
  .brand img {
    width: 40px;
    height: 40px;
  }

  nav {
    font-size: 0.68rem;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(3.75rem, 20vw, 6.2rem);
  }

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

  .squid-scene {
    min-height: 116vw;
    max-height: 570px;
  }

  .poke-note {
    right: 6%;
  }

  .lore-strip {
    align-items: flex-end;
  }

  .lore-strip span {
    font-size: 5rem;
    -webkit-text-stroke-width: 2px;
  }

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

  .contract-squid {
    width: 112px;
  }

  .contract-copy h2 {
    font-size: clamp(2.3rem, 13vw, 4rem);
  }

  .address-box code {
    font-size: 0.78rem;
  }
}

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

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

  .ambient-bubbles {
    display: none;
  }
}
