/* Sea Stories Raw Bar
   ---------------------------------------------------------------- */

/* Fonts ----------------------------------------------------------- */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Jost";
  src: url("../assets/fonts/jost.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Local fallbacks resized to match the web fonts, so text doesn't jump when they load */
@font-face {
  font-family: "Cormorant Fallback";
  src: local("Georgia");
  size-adjust: 90.2%;
  ascent-override: 102.44%;
  descent-override: 31.82%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Jost Fallback";
  src: local("Arial");
  size-adjust: 94.85%;
  ascent-override: 112.81%;
  descent-override: 39.54%;
  line-gap-override: 0%;
}

/* Tokens ---------------------------------------------------------- */

:root {
  --ink-950: #12171a;
  --ink-900: #1b2227;
  --ink-800: #272f34;
  --ink-600: #505b62;
  --cream-50: #fbf9f4;
  --cream-100: #f6f2ea;
  --cream-200: #ece5d8;
  --brass-300: #d9bf8f;
  --brass-500: #b08d57;
  --brass-700: #7a5c2e;
  --on-dark: #f4efe6;
  --on-dark-muted: #bfb8ab;
  --field-border: #7a848b;
  --error: #a23b2a;

  --line: rgb(39 47 52 / 0.16);
  --line-dark: rgb(244 239 230 / 0.16);

  --font-display: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
  --font-body: "Jost", "Jost Fallback", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-space: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --focus: var(--ink-800);

  color-scheme: light;
}

/* Base ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* keeps keyboard focus clear of the floating "Plan your event" button */
  scroll-padding-bottom: 5rem;
}

body {
  margin: 0;
  background: var(--cream-100);
  color: var(--ink-800);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  font-weight: 600;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

ul[role="list"],
ol[role="list"] {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.on-dark,
.hero,
.site-header {
  --focus: var(--brass-300);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--cream-50);
  color: var(--ink-900);
  font-weight: 500;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Shared pieces --------------------------------------------------- */

.container {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-space);
}

.on-dark {
  background: var(--ink-900);
  color: var(--on-dark);
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--brass-700);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.on-dark .eyebrow,
.hero .eyebrow {
  color: var(--brass-300);
}

.section-intro {
  max-width: 40rem;
  margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}

.section-intro h2 + p {
  margin-top: 1.5rem;
}

.on-dark .section-intro p:not(.eyebrow) {
  color: var(--on-dark-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.875rem 1.875rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.button--light {
  background: var(--on-dark);
  color: var(--ink-900);
}

.button--light:hover {
  background: var(--brass-300);
}

.button--dark {
  background: var(--ink-900);
  color: var(--on-dark);
}

.button--dark:hover {
  background: var(--ink-800);
  color: var(--brass-300);
}

.text-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration-color: var(--brass-500);
  text-underline-offset: 0.45em;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  flex: none;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  font-weight: 500;
  text-decoration: none;
}

.instagram-link:hover span {
  text-decoration: underline;
  text-decoration-color: var(--brass-500);
}

/* Header (desktop navigation over the hero panel) ----------------- */

.site-header {
  display: none;
}

@media (min-width: 960px) {
  .site-header {
    display: block;
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    width: 52%;
    padding: 1.75rem var(--gutter);
  }

  .site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 2.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .site-nav a {
    display: inline-block;
    padding-block: 0.5rem;
    color: var(--on-dark-muted);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
  }

  .site-nav a:hover {
    color: var(--on-dark);
  }

  .site-nav__cta a {
    padding: 0.6rem 1.1rem;
    border: 1px solid rgb(244 239 230 / 0.4);
    color: var(--on-dark);
  }

  .site-nav__cta a:hover {
    border-color: var(--brass-300);
    color: var(--brass-300);
  }
}

/* Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
  background: var(--ink-900);
  color: var(--on-dark);
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ink-800);
}

/* Phone scrim behind the logo. The copy carries its own scrim (.hero__copy::before),
   so the text stays readable whatever the screen height. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgb(18 23 26 / 0.82) 0%,
    rgb(18 23 26 / 0.62) 15%,
    rgb(18 23 26 / 0.22) 28%,
    rgb(18 23 26 / 0) 38%
  );
  pointer-events: none;
}

.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hidden until it actually plays; its first frame matches the poster, so the swap is seamless */
.hero__video {
  opacity: 0;
}

.hero__video.is-visible {
  opacity: 1;
}

.hero__toggle {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgb(244 239 230 / 0.55);
  border-radius: 50%;
  background: rgb(18 23 26 / 0.5);
  color: var(--on-dark);
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.2s ease;
}

.hero__toggle:hover {
  background: rgb(18 23 26 / 0.8);
}

.hero__toggle .icon {
  display: none;
}

.hero__toggle[data-state="pause"] .icon--pause,
.hero__toggle[data-state="play"] .icon--play {
  display: block;
}

.hero__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 6vw, 2.5rem) var(--gutter) clamp(2.5rem, 8vw, 3.5rem);
  text-align: center;
}

.hero__logo {
  width: min(58vw, 14rem);
  filter: drop-shadow(0 1px 6px rgb(18 23 26 / 0.45));
}

.hero__copy {
  position: relative;
  isolation: isolate;
  max-width: 34rem;
  margin-top: auto;
  padding-top: 2rem;
}

.hero__copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -6rem;
  bottom: -4rem;
  left: 50%;
  width: 100vw;
  translate: -50% 0;
  background: linear-gradient(to bottom, rgb(18 23 26 / 0), rgb(18 23 26 / 0.86) 6.5rem, rgb(18 23 26 / 0.94));
  pointer-events: none;
}

.hero .eyebrow {
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.375rem, 1.5rem + 3.4vw, 4.25rem);
  line-height: 1.04;
}

.hero__lede {
  max-width: 32rem;
  margin: 1.25rem auto 0;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 2rem;
}

.hero__area {
  display: none;
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  }

  .hero__media {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
  }

  /* Desktop: a soft edge where the video meets the panel */
  .hero__media::after {
    background: linear-gradient(to right, rgb(27 34 39 / 0.45), rgb(27 34 39 / 0) 22%);
  }

  .hero__toggle {
    top: auto;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .hero__panel {
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
    padding: 6.5rem clamp(2.5rem, 5vw, 5.5rem) 5rem;
  }

  .hero__logo {
    width: min(21rem, 26vw);
    width: min(21rem, 26vw, 30svh * 1.734);
    filter: none;
  }

  .hero__copy {
    margin-top: 0;
    padding-top: clamp(1.75rem, 4.5svh, 3rem);
  }

  .hero__copy::before {
    content: none;
  }

  .hero__lede {
    color: var(--on-dark-muted);
  }

  .hero__area {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2rem;
    margin: 0;
    color: var(--on-dark-muted);
    font-size: 0.8125rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
  }
}

/* Story ----------------------------------------------------------- */

.story__grid {
  display: grid;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.story__image {
  position: relative;
  max-width: 30rem;
  margin-inline: auto;
}

/* Offset brass frame behind the photo */
.story__image::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--brass-500);
}

.story__image img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story__text {
  max-width: 34rem;
}

.story__text h2 {
  margin-bottom: 1.75rem;
}

.signature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  color: var(--ink-600);
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-style: italic;
}

.signature::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--brass-500);
}

@media (min-width: 960px) {
  .story__grid {
    grid-template-columns: 5fr 6fr;
  }

  .story__image {
    margin-inline: 0;
  }
}

/* Gallery --------------------------------------------------------- */

.gallery {
  background: var(--cream-50);
}

.section-intro--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  max-width: none;
  text-align: left;
}

.section-intro--split .instagram-link {
  color: var(--ink-800);
}

.instagram-link__handle {
  color: var(--brass-700);
}

.gallery__track {
  margin-inline: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
}

.gallery__list {
  display: flex;
  gap: 1rem;
}

.gallery__list > li {
  flex: 0 0 min(78vw, 22rem);
  scroll-snap-align: start;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery__item figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--ink-600);
  font-size: 0.9375rem;
}

.gallery__item figcaption::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--brass-500);
}

@media (min-width: 720px) {
  .gallery__track {
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }

  .gallery__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
  }

  .gallery__list > li:nth-child(2) {
    margin-top: clamp(2rem, 6vw, 4.5rem);
  }
}

/* Inquire --------------------------------------------------------- */

.inquire__grid {
  display: grid;
  gap: 3rem;
}

.inquire__intro h2 {
  margin-bottom: 1.5rem;
}

.inquire__aside {
  color: var(--ink-600);
  font-size: 0.9375rem;
}

.inquire__aside:first-of-type {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.inquire__card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  background: var(--cream-50);
  box-shadow: 0 1.5rem 3rem -2rem rgb(18 23 26 / 0.25);
}

@media (min-width: 960px) {
  .inquire__grid {
    grid-template-columns: 4fr 7fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }

  .inquire__intro {
    position: sticky;
    top: 3rem;
  }
}

/* Form ------------------------------------------------------------ */

.inquiry__group {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

/* Floated so the legend sits inside the fieldset instead of on its top border */
.inquiry__group > legend {
  float: left;
  width: 100%;
  margin-bottom: 1.25rem;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.2;
}

.inquiry__group > legend + * {
  clear: both;
}

.inquiry__group + .inquiry__group {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  margin: 0 0 1.25rem;
  min-width: 0;
}

.field-row {
  display: grid;
  gap: 0 1rem;
}

@media (min-width: 640px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label,
.choices > legend {
  display: block;
  color: var(--ink-800);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
}

.field__optional {
  margin-left: 0.4rem;
  color: var(--ink-600);
  font-size: 0.8125rem;
  font-weight: 400;
}

.field__hint {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.875rem;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.875rem;
  border: 1px solid var(--field-border);
  border-radius: 2px;
  background: #fff;
  color: var(--ink-900);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
}

.field input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23272f34' d='M7 9.5l5 5 5-5z'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.25rem;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:not([type="checkbox"]):focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--ink-900);
  outline: 2px solid var(--ink-900);
  outline-offset: 1px;
}

.field [aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: inset 0 0 0 1px var(--error);
}

.field__error {
  margin: 0;
  color: var(--error);
  font-size: 0.9375rem;
  font-weight: 500;
}

.choices {
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

.choices > legend {
  margin-bottom: 0.25rem;
  padding: 0;
}

.choices__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.75rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  font-size: 1rem;
  cursor: pointer;
}

.choice input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--ink-800);
}

.inquiry__trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.inquiry__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  padding-top: 0.5rem;
}

.form-status {
  margin: 0;
  font-size: 0.9375rem;
}

.form-status.is-error {
  color: var(--error);
  font-weight: 500;
}

.form-errors {
  margin-bottom: 2rem;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--error);
  background: #fff;
}

.form-errors h3 {
  margin-bottom: 0.75rem;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.25rem;
}

.form-errors a {
  color: var(--error);
  font-weight: 500;
}

.inquiry-thanks {
  padding: clamp(2rem, 6vw, 4rem) 1rem;
  text-align: center;
}

.inquiry-thanks__mark {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.5rem;
  padding: 0.75rem;
  border: 1px solid var(--brass-500);
  border-radius: 50%;
  fill: var(--brass-700);
}

.inquiry-thanks h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
}

.inquiry-thanks h3:focus {
  outline: none;
}

.inquiry-thanks p {
  max-width: 28rem;
  margin: 0 auto;
  color: var(--ink-600);
}

/* Footer ---------------------------------------------------------- */

.site-footer {
  padding-block: clamp(3.5rem, 7vw, 5rem) 2.5rem;
  background: var(--ink-950);
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
}

.site-footer__brand img {
  width: 12.5rem;
  margin-bottom: 1.25rem;
}

.site-footer__brand p {
  max-width: 22rem;
  color: var(--on-dark-muted);
}

.site-footer .eyebrow {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}

.site-footer__nav li + li {
  margin-top: 0.25rem;
}

.site-footer__nav a {
  display: inline-block;
  padding-block: 0.25rem;
  color: var(--on-dark);
  text-decoration: none;
}

.site-footer__nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--brass-500);
}

.site-footer__legal {
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-muted);
  font-size: 0.875rem;
}

.advisory {
  max-width: 62ch;
  margin: 0;
}

@media (min-width: 760px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .site-footer__legal {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1rem;
  }

  .site-footer__legal p:first-child {
    flex: none;
  }

  .advisory {
    text-align: right;
  }
}

/* Thank-you page (shown after a no-JavaScript form submission) ---- */

.thanks-page {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.5rem;
  min-height: 100vh;
  min-height: 100svh;
  padding: 3rem var(--gutter);
  text-align: center;
}

.thanks-page img {
  width: min(60vw, 16rem);
}

.thanks-page h1 {
  max-width: 20ch;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.thanks-page p {
  margin: 0;
  color: var(--on-dark-muted);
}

/* Floating call to action ----------------------------------------- */

.float-cta {
  position: fixed;
  z-index: 20;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  padding: 0.95rem 1.5rem;
  border: 1px solid rgb(244 239 230 / 0.2);
  border-radius: 999px;
  background: var(--ink-900);
  box-shadow: 0 0.75rem 2rem rgb(18 23 26 / 0.3);
  color: var(--on-dark);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s, background-color 0.2s ease;
}

.float-cta.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.float-cta:hover {
  background: var(--ink-800);
  color: var(--brass-300);
}

/* Two-tone ring so focus shows over both light and dark sections */
.float-cta:focus-visible {
  outline: 2px solid var(--ink-900);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--cream-50);
}

@media (min-width: 960px) {
  .float-cta {
    right: 2rem;
    bottom: 2rem;
  }
}

/* Motion ---------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
