:root {
  --brand-blue: #5b8edb;
  --ink: #101010;
  --muted: #666a70;
  --line: #e6e8ec;
  --white: #ffffff;
  --sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.page-shell {
  --closing-gap: clamp(44px, 7vh, 76px);
  --contact-padding-top: 26px;
  position: relative;
  isolation: isolate;
  width: min(100%, 1120px);
  min-height: 0;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(22px, 5vw, 56px) 30px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0;
  overflow: hidden;
}

.page-shell::after {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 0;
  width: 106.08%;
  aspect-ratio: 760 / 494;
  background: url("assets/palumbo-plimsoll-black.svg") center / contain no-repeat;
  content: "";
  opacity: 0.03;
  pointer-events: none;
  transform: translate(-50%, 48%);
}

.page-shell > * {
  position: relative;
  z-index: 1;
}

.content {
  width: min(100%, 760px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Keep the composition balanced while sharing spare height with the closing mark. */
.content::before {
  content: "";
  flex: 1 0 0;
}

.logo-frame {
  width: min(100%, 470px);
  height: 220px;
  margin: 0 auto clamp(28px, 3.5vw, 42px);
  overflow: hidden;
}

.logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.brand-statement {
  width: auto;
  max-width: 100%;
  height: 72px;
  margin: 0 0 clamp(28px, 4vw, 42px);
  display: block;
  object-fit: contain;
}

.manifesto {
  width: min(100%, 760px);
  margin-inline: auto;
}

.manifesto-copy {
  color: #222326;
  font-size: clamp(1rem, 1.55vw, 1.12rem);
  font-weight: 300;
  letter-spacing: -0.006em;
  line-height: 1.5;
  text-align: justify;
  text-align-last: center;
  text-justify: inter-word;
  -webkit-hyphens: none;
  hyphens: none;
}

.typewriter-visual p {
  margin: 0 0 9px;
}

.typewriter-visual p:last-child {
  margin-bottom: 0;
}

@media (min-width: 760px) {
  .typewriter-visual p:first-child {
    text-align-last: justify;
  }
}

.typewriter-word {
  display: inline-block;
  white-space: nowrap;
}

.typewriter-character {
  position: relative;
  visibility: hidden;
}

.typewriter-character.is-visible {
  visibility: visible;
}

.typewriter-character.is-current::after {
  position: absolute;
  top: 0.05em;
  right: -3px;
  width: 1px;
  height: 1em;
  background: var(--brand-blue);
  content: "";
  animation: caret-blink 720ms steps(1, end) infinite;
}

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

.js .reveal {
  opacity: 0;
}

.js.is-loaded .reveal {
  opacity: 1;
  animation: reveal-in 720ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: var(--reveal-delay, 0ms);
}

.reveal-logo {
  --reveal-delay: 70ms;
  --reveal-distance: -10px;
}

.reveal-tagline {
  --reveal-delay: 190ms;
  --reveal-distance: 9px;
}

.reveal-button {
  --reveal-delay: 430ms;
  --reveal-distance: 10px;
}

.reveal-plimsoll {
  --reveal-delay: 500ms;
  --reveal-distance: 6px;
}

.reveal-contact {
  --reveal-delay: 570ms;
  --reveal-distance: 8px;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(var(--reveal-distance, 10px));
  }
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.brochure-button {
  min-height: 52px;
  margin-top: clamp(26px, 4vw, 38px);
  padding: 0 22px 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--brand-blue);
  border-radius: 3px;
  background: var(--brand-blue);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease,
    box-shadow 180ms ease;
}

.brochure-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.brochure-button-break {
  display: none;
}

.brochure-button:hover {
  background: #4b7dcc;
  box-shadow: 0 10px 28px rgba(91, 142, 219, 0.22);
  transform: translateY(-2px);
}

.brochure-button:focus-visible,
.contact a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-blue) 34%, white);
  outline-offset: 4px;
}

.closing-mark {
  display: grid;
  place-items: center;
  align-self: stretch;
  flex: 1 0 auto;
  padding-block: calc((var(--closing-gap) + 20px) / 2);
}

.closing-plimsoll {
  display: block;
  width: 44px;
  height: auto;
}

.contact {
  width: 100%;
  padding-top: var(--contact-padding-top);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: #34363a;
  font-size: 0.81rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 621px) {
  .closing-mark {
    padding-block-start: calc((var(--closing-gap) + 20px) / 2);
    padding-block-end: calc(
      (var(--closing-gap) + 20px) / 2 - var(--contact-padding-top)
    );
  }

  .contact {
    border-top: 0;
  }
}

.contact a {
  text-decoration: none;
  transition: color 160ms ease;
}

.contact a:hover {
  color: var(--brand-blue);
}

.separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.availability {
  color: var(--muted);
}

.locations-footer {
  padding: 18px 0;
  overflow: hidden;
  background: var(--brand-blue);
}

.locations-marquee {
  width: 100%;
  overflow: hidden;
}

.locations-track {
  width: max-content;
  display: flex;
  align-items: center;
  animation: locations-scroll 28s linear infinite;
  will-change: transform;
}

.locations-list {
  --location-gap: clamp(38px, 5vw, 72px);
  flex: none;
  margin: 0;
  padding: 0 calc(var(--location-gap) / 2);
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--location-gap);
}

.locations-list li {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.locations-list img {
  display: block;
  width: auto;
  height: 18px;
}

@keyframes locations-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 620px) {
  .locations-list {
    --location-gap: 38px;
  }

  .locations-list img {
    height: 16px;
  }
}

/* Compact composition for laptop screens with limited vertical space. */
@media (min-width: 621px) and (max-height: 850px) {
  .page-shell {
    --closing-gap: 28px;
    --contact-padding-top: 12px;
    padding-top: 20px;
    padding-bottom: 8px;
  }

  .page-shell::after {
    transform: translate(-50%, 49.9%);
  }

  .logo-frame {
    width: min(100%, 350px);
    height: auto;
    aspect-ratio: 47 / 22;
    margin-bottom: 24px;
  }

  .brand-statement {
    height: 56px;
    margin-bottom: 32px;
  }

  .manifesto-copy {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .manifesto {
    width: min(100%, 760px);
  }

  .typewriter-visual p:not(:last-child) {
    margin-bottom: 10px;
  }

  .brochure-button {
    min-height: 44px;
    margin-top: 32px;
    padding: 0 19px 0 21px;
    gap: 12px;
    font-size: 0.74rem;
  }

  .brochure-button svg {
    width: 16px;
    height: 16px;
  }

  .closing-plimsoll {
    width: 48px;
  }

  .locations-footer {
    padding-block: 16px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    --closing-gap: 42px;
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .page-shell::after {
    width: 100%;
    transform: translate(-50%, -5%);
  }

  .page-shell footer {
    background-color: #ffffff;
  }

  .logo-frame {
    width: min(100%, 390px);
    height: 200px;
    margin-bottom: 4px;
  }

  .manifesto {
    width: calc(100% - 24px);
  }

  .manifesto-copy {
    font-size: 0.86rem;
    line-height: 1.6;
  }

  .brochure-button {
    width: auto;
    min-height: 37px;
    margin-top: 24px;
    padding: 0 14px 0 15px;
    gap: 8px;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  .brochure-button span {
    text-align: center;
  }

  .brochure-button-break {
    display: inline;
  }

  .brochure-button svg {
    width: 12px;
    height: 12px;
    stroke-width: 1.5;
  }

  .closing-plimsoll {
    width: 58px;
  }

  .contact {
    flex-direction: column;
    gap: 7px;
  }

  .separator {
    display: none;
  }
}

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

  .brochure-button,
  .contact a {
    transition: none;
  }

  .typewriter-character {
    visibility: visible;
  }

  .typewriter-character.is-current::after {
    display: none;
  }

  .locations-marquee {
    overflow-x: auto;
  }

  .locations-track {
    animation: none;
    will-change: auto;
  }

  .locations-list[aria-hidden="true"] {
    display: none;
  }

  .js .reveal,
  .js.is-loaded .reveal {
    opacity: 1;
    animation: none;
    transform: none;
  }
}
