/* ==========================================================================
   Musselburgh 1567 — Coming Soon
   Mobile-first. No frameworks. Transform/opacity animation only.
   ========================================================================== */

:root {
  --cream: #f7f3ec;
  --cream-deep: #efe8da;
  --paper: #fcfaf6;
  --ink: #141410;
  --ink-soft: #2a2a22;
  --green: #1c3423;
  --green-deep: #122617;
  --brass: #b08d57;
  --brass-light: #d8be93;
  --muted: #6f6a5e;
  --line: rgba(20, 20, 16, 0.14);
  --line-light: rgba(247, 243, 236, 0.16);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--cream);
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

::selection {
  background: var(--green);
  color: var(--cream);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Utility ---------- */

.container {
  width: min(100% - clamp(2rem, 6vw, 5rem), 1180px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  padding: 0.7rem 1.2rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 4px;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

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

/* ---------- Texture & progress ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9500;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brass), var(--brass-light));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(247, 243, 236, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(20, 20, 16, 0.5);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.wordmark-year {
  color: var(--brass);
  font-size: 0.78em;
  letter-spacing: 0.12em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-note {
  display: none;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease);
}

.header-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--ease);
}

.header-cta:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
  transform: translateY(-1px);
}

.header-cta:hover svg {
  transform: translateX(3px);
}

@media (min-width: 640px) {
  .header-note {
    display: block;
  }
}

@media (min-width: 900px) {
  :root {
    --header-h: 88px;
  }

  .wordmark {
    font-size: 1.32rem;
  }

  .header-cta {
    padding: 0.65rem 1.15rem;
    font-size: 0.7rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + clamp(0.75rem, 2.5vh, 2.25rem)) 0 clamp(3.25rem, 7vh, 5.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}

.glow-a {
  width: 62vw;
  height: 62vw;
  min-width: 380px;
  min-height: 380px;
  top: -18%;
  right: -16%;
  background: radial-gradient(circle, rgba(176, 141, 87, 0.24), rgba(176, 141, 87, 0) 66%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.glow-b {
  width: 58vw;
  height: 58vw;
  min-width: 340px;
  min-height: 340px;
  bottom: 2%;
  left: -18%;
  background: radial-gradient(circle, rgba(28, 52, 35, 0.14), rgba(28, 52, 35, 0) 68%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.halo {
  position: absolute;
  top: 47%;
  left: 50%;
  width: min(78vw, 640px);
  aspect-ratio: 1;
  border: 1px solid rgba(176, 141, 87, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.halo::after {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(176, 141, 87, 0.13);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 920px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 clamp(0.9rem, 2.5vh, 1.8rem);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-rule {
  width: 22px;
  height: 1px;
  background: var(--brass);
  opacity: 0.7;
}

/* Crest — no opacity animation, so it can paint immediately (LCP) */
.hero-crest {
  width: clamp(150px, min(34vw, 25vh), 270px);
  margin-bottom: clamp(0.25rem, 1.4vh, 1rem);
  will-change: transform;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
}

.hero-crest picture {
  display: block;
  animation: float 8s ease-in-out infinite;
  animation-delay: 1.2s;
}

.hero-crest img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 34px rgba(20, 20, 16, 0.13));
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(3rem, min(12vw, 12vh), 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.1em;
}

.hero-title .line > span {
  display: block;
  transform: translateY(112%);
  animation: rise 1s var(--ease) forwards;
}

.hero-title .line:nth-child(1) > span {
  animation-delay: 0.12s;
}

.hero-title .line:nth-child(2) > span {
  animation-delay: 0.26s;
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--green);
}

.hero-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: clamp(0.9rem, 2.5vh, 1.5rem) 0 0;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  animation: fade-up 0.9s var(--ease) 0.55s both;
}

.hero-tagline::before,
.hero-tagline::after {
  content: "";
  width: clamp(18px, 5vw, 46px);
  height: 1px;
  background: var(--brass);
  opacity: 0.75;
}

.hero-copy {
  max-width: 47ch;
  margin: clamp(0.7rem, 2vh, 1.15rem) auto 0;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.7vw, 1rem);
  line-height: 1.7;
  text-wrap: pretty;
  animation: fade-up 0.9s var(--ease) 0.66s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: clamp(1.2rem, 3.5vh, 2rem);
  animation: fade-up 0.9s var(--ease) 0.78s both;
}

.hero-meta {
  margin: clamp(1rem, 3vh, 1.8rem) 0 0;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.75;
  animation: fade-up 0.9s var(--ease) 0.9s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.9rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease), background-color 0.4s ease, color 0.4s ease,
    border-color 0.4s ease, box-shadow 0.4s ease;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 10px 26px -16px rgba(20, 20, 16, 0.8);
}

.btn-primary svg {
  transition: transform 0.35s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--green);
  box-shadow: 0 16px 32px -18px rgba(18, 38, 23, 0.9);
}

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

.btn-ghost {
  border-color: rgba(20, 20, 16, 0.22);
  color: var(--ink);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  background: rgba(20, 20, 16, 0.04);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.54rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.scroll-cue-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--ink), transparent);
  opacity: 0.5;
  animation: cue 2.4s ease-in-out infinite;
  transform-origin: top;
}

@media (min-width: 700px) {
  .hero {
    padding-bottom: clamp(3.5rem, 7vh, 6rem);
  }

  .hero-eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.32em;
  }

  .hero-tagline {
    font-size: 0.68rem;
    letter-spacing: 0.4em;
  }

  .hero-meta {
    font-size: 0.64rem;
  }
}

@media (min-width: 900px) {
  .hero-crest {
    width: clamp(210px, min(24vw, 24vh), 280px);
  }

  .halo {
    top: 45%;
    width: min(52vw, 600px);
  }

  .hero-actions {
    gap: 0.85rem;
    margin-top: clamp(1.4rem, 3.5vh, 2.2rem);
  }

  .btn {
    min-height: 50px;
    padding: 0.95rem 1.8rem;
    font-size: 0.74rem;
  }
}

/* Short screens: keep the hero inside one viewport without clipping */
@media (min-width: 700px) and (max-height: 780px) {
  .hero-meta {
    display: none;
  }

  .hero-eyebrow {
    margin-bottom: 0.7rem;
  }

  .hero {
    padding-bottom: 2.75rem;
  }
}

@media (max-height: 620px) {
  .hero {
    min-height: auto;
  }

  .hero-copy,
  .hero-meta,
  .scroll-cue {
    display: none;
  }
}

/* ---------- Heritage ---------- */

.heritage {
  position: relative;
  overflow: hidden;
  background: var(--green);
  color: var(--cream);
  padding: clamp(4.5rem, 11vw, 8.5rem) 0;
}

.heritage::before {
  content: "1567";
  position: absolute;
  top: 50%;
  right: -3%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(12rem, 34vw, 30rem);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: rgba(247, 243, 236, 0.04);
  pointer-events: none;
  user-select: none;
}

.heritage .container {
  position: relative;
  z-index: 1;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-light);
}

.section-kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.section-kicker--dark {
  color: var(--brass);
}

.statement {
  margin: 1.1rem 0 clamp(2.5rem, 6vw, 4rem);
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 7.5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.statement em {
  font-style: italic;
  color: var(--brass-light);
}

.heritage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line-light);
}

.heritage-item {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line-light);
}

.heritage-index {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  color: var(--brass-light);
  opacity: 0.8;
}

.heritage-item h3 {
  margin: 0.55rem 0 0.15rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.1;
}

.heritage-item p {
  margin: 0;
  color: rgba(247, 243, 236, 0.62);
  font-size: 0.86rem;
}

@media (min-width: 760px) {
  .heritage-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    border-bottom: 1px solid var(--line-light);
  }

  .heritage-item {
    padding: 2rem 0 0;
    border-bottom: 0;
  }

  .heritage-item h3 {
    font-size: 2rem;
  }
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  padding: clamp(4.5rem, 11vw, 8.5rem) 0;
}

.contact-title {
  margin: 1.1rem 0 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 6.5vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.contact-title em {
  font-style: italic;
  color: var(--green);
}

.contact-lede {
  max-width: 52ch;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: clamp(0.93rem, 2vw, 1.02rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 172px;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.45s var(--ease), border-color 0.45s ease, box-shadow 0.45s ease,
    background-color 0.45s ease;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.contact-icon svg {
  width: 19px;
  height: 19px;
}

.contact-label {
  margin-top: 1.5rem;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value {
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.25;
  word-break: break-word;
}

.contact-go {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.4s var(--ease), color 0.4s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(176, 141, 87, 0.65);
  background: #fffdf9;
  box-shadow: 0 30px 50px -34px rgba(20, 20, 16, 0.4);
}

.contact-card:hover .contact-icon {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
}

.contact-card:hover .contact-go {
  transform: translate(3px, -3px);
  color: var(--brass);
}

@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 980px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
  }

  .contact-card {
    padding: 1.75rem;
    min-height: 190px;
  }

  .contact-value {
    font-size: 1.4rem;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem 0 1.75rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(247, 243, 236, 0.14);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.9;
}

.footer-name {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.1;
}

.footer-name span {
  color: var(--brass-light);
  font-size: 0.85em;
  letter-spacing: 0.1em;
}

.footer-line {
  margin: 0.25rem 0 0;
  font-size: 0.56rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.55);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.footer-nav a {
  position: relative;
  padding-bottom: 2px;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(247, 243, 236, 0.8);
  transition: color 0.3s ease;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--brass-light);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s var(--ease);
}

.footer-nav a:hover {
  color: var(--cream);
}

.footer-nav a:hover::after {
  transform: scaleX(1);
}

.footer-social {
  display: flex;
  gap: 0.55rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(247, 243, 236, 0.22);
  border-radius: 50%;
  color: rgba(247, 243, 236, 0.8);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease);
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

.footer-social a:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 1.4rem;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 236, 0.45);
}

.footer-bottom p {
  margin: 0;
}

@media (min-width: 760px) {
  .site-footer {
    padding: 3.5rem 0 2rem;
  }

  .footer-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Floating WhatsApp ---------- */

.fab {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #1faa59;
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(18, 38, 23, 0.65);
  text-decoration: none;
  transition: transform 0.35s var(--ease), background-color 0.35s ease;
  animation: fab-pulse 3.2s ease-out 1.5s infinite;
}

.fab svg {
  width: 26px;
  height: 26px;
}

.fab:hover {
  transform: translateY(-3px) scale(1.04);
  background: #199a4f;
}

.fab-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 821px) {
  .fab {
    display: none;
  }
}

/* ---------- Scroll reveals (JS-progressive) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}

.js .reveal[data-delay="1"] {
  transition-delay: 0.1s;
}

.js .reveal[data-delay="2"] {
  transition-delay: 0.2s;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Keyframes ---------- */

@keyframes rise {
  to {
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes drift-a {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-7%, 6%, 0) scale(1.08);
  }
}

@keyframes drift-b {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(6%, -5%, 0) scale(1.06);
  }
}

@keyframes cue {
  0% {
    transform: scaleY(0.35);
    opacity: 0.2;
  }
  50% {
    transform: scaleY(1);
    opacity: 0.6;
  }
  100% {
    transform: scaleY(0.35);
    opacity: 0.2;
  }
}

@keyframes fab-pulse {
  0% {
    box-shadow: 0 12px 30px -10px rgba(18, 38, 23, 0.65), 0 0 0 0 rgba(31, 170, 89, 0.35);
  }
  70% {
    box-shadow: 0 12px 30px -10px rgba(18, 38, 23, 0.65), 0 0 0 14px rgba(31, 170, 89, 0);
  }
  100% {
    box-shadow: 0 12px 30px -10px rgba(18, 38, 23, 0.65), 0 0 0 0 rgba(31, 170, 89, 0);
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }

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

  .hero-crest {
    transform: none;
  }

  .glow,
  .scroll-cue-line,
  .fab {
    animation: none;
  }
}
