:root {
  --ink: #191717;
  --red: #a52325;
  --gold: #d9a62e;
  --cream: #f3ead7;
  --paper: #fbf7ed;
  --green: #315d4b;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(25, 23, 23, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 23, 23, 0.035) 1px, transparent 1px),
    var(--cream);
  background-size: 34px 34px;
  font-family: "DM Sans", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle at 75% 40%, rgba(217, 166, 46, 0.2), transparent 34%);
}

main {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid rgba(25, 23, 23, 0.18);
}

a {
  color: inherit;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 36px;
  height: 42px;
  place-items: center;
  color: var(--red);
  background: var(--paper);
  border: 1px solid rgba(25, 23, 23, 0.18);
  border-radius: 6px;
  box-shadow: 0 4px 0 #c9bfa9;
  font-family: serif;
  font-size: 20px;
}

.contact-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(480px, 1.12fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  min-height: calc(100vh - 172px);
  padding: 72px 0 86px;
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 25px;
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 26px;
  height: 2px;
  background: var(--red);
}

h1 {
  max-width: 680px;
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(58px, 7vw, 104px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.lede {
  max-width: 530px;
  margin: 30px 0 26px;
  color: rgba(25, 23, 23, 0.72);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.65;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(49, 93, 75, 0.12);
  animation: breathe 2.5s ease-in-out infinite;
}

.email-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-width: 190px;
  padding: 16px 18px;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.email-button:hover {
  color: var(--ink);
  background: transparent;
  transform: translateY(-3px);
}

.email-button:focus-visible,
.contact-link:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.tile-stage {
  position: relative;
  min-height: 540px;
  isolation: isolate;
}

.sunburst {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -2;
  width: min(44vw, 560px);
  aspect-ratio: 1;
  background: repeating-conic-gradient(from 8deg, rgba(165, 35, 37, 0.12) 0 10deg, transparent 10deg 20deg);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.sunburst::after {
  position: absolute;
  inset: 16%;
  content: "";
  background: var(--cream);
  border-radius: 50%;
}

.tile {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 270px;
  padding: 18px;
  background: linear-gradient(140deg, #fffdf8, #eee3cd);
  border: 1px solid rgba(25, 23, 23, 0.17);
  border-radius: 18px;
  box-shadow: 0 18px 0 #d3c6ac, 0 32px 46px rgba(25, 23, 23, 0.18);
  animation: settle 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.tile::after {
  position: absolute;
  inset: 12px;
  content: "";
  border: 1px solid rgba(165, 35, 37, 0.22);
  border-radius: 11px;
}

.tile-one {
  top: 105px;
  left: 4%;
  z-index: 1;
  transform: rotate(-11deg);
}

.tile-two {
  top: 58px;
  left: 34%;
  z-index: 3;
  transform: rotate(2deg);
  animation-delay: 120ms;
}

.tile-three {
  top: 136px;
  right: 1%;
  z-index: 2;
  transform: rotate(12deg);
  animation-delay: 240ms;
}

.tile-corner {
  position: absolute;
  top: 23px;
  left: 25px;
  color: var(--red);
  font-family: "Fraunces", serif;
  font-size: 17px;
  font-weight: 700;
}

.crab,
.flower {
  color: var(--red);
  font-family: serif;
  font-size: 86px;
  line-height: 1;
}

.flower {
  color: var(--green);
  font-size: 94px;
}

.flag-mark {
  display: grid;
  grid-template-columns: repeat(2, 42px);
  grid-template-rows: repeat(2, 42px);
  overflow: hidden;
  border: 3px solid var(--ink);
  transform: rotate(45deg);
}

.flag-mark i:nth-child(1),
.flag-mark i:nth-child(4) {
  background: repeating-linear-gradient(45deg, var(--gold) 0 9px, var(--ink) 9px 18px);
}

.flag-mark i:nth-child(2),
.flag-mark i:nth-child(3) {
  background: var(--red);
}

.tile-caption {
  position: absolute;
  bottom: 22px;
  z-index: 1;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.stage-note {
  position: absolute;
  right: 12%;
  bottom: 34px;
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 18px;
  font-style: italic;
  transform: rotate(-4deg);
}

footer {
  display: flex;
  justify-content: space-between;
  width: min(1240px, calc(100% - 48px));
  min-height: 80px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(25, 23, 23, 0.18);
  color: rgba(25, 23, 23, 0.58);
  font-size: 12px;
}

@keyframes settle {
  from { opacity: 0; translate: 0 -24px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes breathe {
  50% { box-shadow: 0 0 0 8px rgba(49, 93, 75, 0.08); }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 64px;
  }

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

  .tile-stage {
    width: min(680px, 100%);
    min-height: 520px;
    margin: -10px auto 0;
  }

  .sunburst {
    width: min(72vw, 550px);
  }
}

@media (max-width: 640px) {
  main,
  footer {
    width: min(100% - 32px, 1240px);
  }

  nav {
    min-height: 78px;
  }

  .contact-link {
    display: none;
  }

  .hero {
    padding: 54px 0 64px;
  }

  h1 {
    font-size: clamp(54px, 17vw, 78px);
  }

  .lede {
    margin-top: 24px;
  }

  .tile-stage {
    min-height: 390px;
  }

  .tile {
    width: 137px;
    height: 190px;
    border-radius: 13px;
    box-shadow: 0 11px 0 #d3c6ac, 0 23px 34px rgba(25, 23, 23, 0.16);
  }

  .tile-one { top: 88px; left: 0; }
  .tile-two { top: 47px; left: calc(50% - 68px); }
  .tile-three { top: 98px; right: 0; }

  .tile-corner { top: 18px; left: 19px; font-size: 13px; }
  .crab { font-size: 59px; }
  .flower { font-size: 66px; }
  .flag-mark { grid-template-columns: repeat(2, 29px); grid-template-rows: repeat(2, 29px); }
  .tile-caption { bottom: 17px; font-size: 8px; }
  .stage-note { right: 5%; bottom: 20px; }

  footer {
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
  }
}

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