/*
 * upeasycrew.com — the company's own pages, in the product's own clothes.
 *
 * Every value below is taken from apps/web/src/app/globals.css in the upeasy
 * repository ("chart room": ink on paper, gold kept for hairlines and small
 * accents, chart blue as the second voice). Nothing is reinvented here, so a
 * reader who goes from this site to upeasy.app crosses no border. If a value
 * changes there, change it here too.
 *
 * The one thing this site has that the product's front page does not is the
 * door: a single dark panel on a paper page, the only one, so the way into
 * the CRM is the first thing the eye finds after the headline.
 */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/fraunces.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/fraunces-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2");
}

:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --text: #16243a;
  --muted: #5d6b80;
  --border: #e2ddd3;
  --gold: #b97d24;
  --gold-soft: #f2c078;
  --gold-text: #8a5a12;
  --chart: #2f6ea8;
  --chart-deep: #1f4d79;
  --chart-shallow: #a8c9e4;
  --chart-bg: #e7f0f8;
  --ok-bg: #e8f2ec;
  --ok-text: #24624a;
  --warn-bg: #fbf0d8;
  --warn-text: #83570f;
  --bad-bg: #f9e7e3;
  --bad-text: #9c3626;
  --quiet-bg: #eeebe4;

  /* The night of the door: the house ink, taken one step deeper. */
  --night: #12203a;
  --night-deep: #0c1628;
  --paper-on-night: #f7f2e8;
  --muted-on-night: #b5c0d1;

  --radius: 14px;
  --radius-inner: 8px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgb(22 36 58 / 0.05), 0 1px 3px rgb(22 36 58 / 0.04);
  --shadow-2: 0 2px 4px rgb(22 36 58 / 0.05), 0 8px 20px -6px rgb(22 36 58 / 0.13);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --press: 120ms;

  --t-3xs: 0.7rem;
  --t-2xs: 0.73rem;
  --t-xs: 0.79rem;
  --t-sm: 0.85rem;
  --t-base: 0.9rem;
  --t-md: 0.97rem;
  --t-lg: 1.03rem;
  --t-xl: 1.15rem;
  --t-2xl: 1.25rem;
  --t-3xl: 1.48rem;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* One column for words and pictures alike — the owner's rule on upeasy.app. */
  --column: 64rem;
  --gutter: 1rem;

  color-scheme: light;
  caret-color: var(--chart-deep);
  accent-color: var(--chart-deep);
}

/* ---------------------------------------------------------------- base -- */

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* A sideways swipe on a phone reads as a broken page. */
  overscroll-behavior-x: none;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--chart-bg);
  color: var(--text);
}

p,
li {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
}

h2 {
  font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--t-lg);
  line-height: 1.3;
}

a {
  color: var(--chart-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--text);
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--chart);
  outline-offset: 2px;
  border-radius: var(--radius-inner);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-inner);
  background: var(--text);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The column every page is set in, with the gutter a phone needs. */
.column {
  width: 100%;
  max-width: calc(var(--column) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/*
 * Small capitals above a heading. In running sections they are chart blue;
 * at the top of a page they are the house's own — gold, with the hairline
 * new-star-marine.com sets under it and upeasy.app carries over.
 */
.eyebrow {
  margin: 0 0 0.6rem;
  font-size: var(--t-2xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chart);
}

.hero > .eyebrow {
  display: inline-block;
  color: var(--gold-text);
  letter-spacing: 0.24em;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.1rem;
}

/* -------------------------------------------------------------- header -- */

header.front {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(247 245 241 / 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease-out, box-shadow 200ms ease-out;
}

header.front.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-1);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  header.front {
    background: var(--bg);
    border-bottom-color: var(--border);
  }
}

header.front .bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.25rem;
}

/* The mark: New Star's star in a porthole, in the house gold — the product's own. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  margin-inline-end: auto;
  flex: none;
}

.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand .name {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.1;
}

.brand .wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  white-space: nowrap;
  font-weight: 600;
  font-size: var(--t-xl);
  letter-spacing: -0.01em;
}

.brand small {
  font-size: 0.66em;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.brand .slogan {
  font-style: normal;
  font-weight: 500;
  font-size: var(--t-3xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chart);
}

.brand:hover {
  color: var(--text);
}

nav.site {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

nav.site a {
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-inner);
  color: var(--muted);
  font-size: var(--t-base);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--press) var(--ease-out), background-color var(--press) var(--ease-out);
}

nav.site a:hover {
  color: var(--text);
  background: rgb(22 36 58 / 0.04);
}

nav.site a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--gold);
  border-radius: 0;
}

/* The way into the CRM, small: gold, so it is the same door as the big one. */
.button-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-inner);
  background: linear-gradient(180deg, #f6cf91, #eab265);
  color: var(--text);
  font-weight: 700;
  font-size: var(--t-base);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.55) inset, 0 6px 16px -6px rgb(185 125 36 / 0.55);
  transition: transform var(--press) var(--ease-out), box-shadow var(--press) var(--ease-out);
}

.button-gold:hover {
  color: var(--text);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.55) inset, 0 10px 22px -6px rgb(185 125 36 / 0.65);
}

.button-gold:active {
  transform: scale(0.98);
}

.button-gold svg {
  width: 1em;
  height: 1em;
  flex: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex: none;
}

.menu-toggle svg {
  width: 1.2rem;
  height: 1.2rem;
}

.menu-toggle .close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .close {
  display: block;
}

/*
 * On a phone the navigation folds behind one button and the gold door stays
 * in the bar: the CRM is the one thing a visitor here may be looking for.
 * Without JavaScript the links simply stay in a row under the mark.
 */
@media (max-width: 820px) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .js nav.site {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-2);
  }

  .js nav.site.open {
    display: flex;
  }

  .js nav.site a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: var(--t-md);
  }

  .js nav.site a[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--gold);
    padding-inline-start: 0.75rem;
  }

  html:not(.js) header.front .bar {
    flex-wrap: wrap;
    padding-block: 0.6rem;
  }

  html:not(.js) nav.site {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .brand .slogan,
  .button-gold .long {
    display: none;
  }

  .brand svg {
    width: 30px;
    height: 30px;
  }

  .brand .wordmark {
    font-size: var(--t-lg);
  }

  header.front .bar {
    gap: 0.5rem;
  }

  .button-gold {
    padding-inline: 0.8rem;
  }
}

/* ---------------------------------------------------------------- hero -- */

/*
 * The ground: a desk lamp on paper. Warm light from the top right, the cold
 * of the chart from the bottom left, and grain, because paper is never flat.
 * Painted as wide as the window so the lit area never draws its own edge.
 */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: 3.5rem 3rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  pointer-events: none;
  /* The lamp fades into the page rather than ending on a line. */
  mask-image: linear-gradient(to bottom, #000 62%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
}

.hero::before {
  z-index: -2;
  background:
    radial-gradient(760px 380px at 76% -14%, rgb(185 125 36 / 0.12), transparent 62%),
    radial-gradient(820px 460px at 8% 116%, rgb(47 110 168 / 0.08), transparent 68%),
    linear-gradient(180deg, #fbf9f5 0%, var(--bg) 100%);
  background-repeat: no-repeat;
}

.hero::after {
  z-index: -1;
  opacity: 0.5;
  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.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

/* Depth contours with their soundings, far from the words and lightest near them. */
.chart-bed {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  color: var(--chart);
}

.chart-bed .contours {
  position: absolute;
  right: -30px;
  bottom: -20px;
  width: min(560px, 108%);
  opacity: 0.55;
  mask-image: radial-gradient(120% 120% at 100% 100%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 120% at 100% 100%, #000 35%, transparent 78%);
}

.hero h1 {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 0.9rem;
  max-width: 24ch;
}

/* The second half of the promise, in the house gold. */
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

/* One phrase gets the highlighter, drawn behind the letters so the ink stays dark. */
.keyword {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.keyword::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.12em;
  height: 0.34em;
  z-index: -1;
  background: var(--gold-soft);
  opacity: 0.45;
}

.lede {
  font-size: var(--t-xl);
  line-height: 1.6;
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
}

.trust-strip {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-size: var(--t-sm);
  color: var(--muted);
}

.trust-strip li::before {
  content: "";
  display: inline-block;
  inline-size: 0.45rem;
  block-size: 0.45rem;
  border-radius: 50%;
  background: var(--gold);
  margin-inline-end: 0.5rem;
  vertical-align: 0.1em;
}

/*
 * The horizon: one lit hairline, the width of the column, with the tanker
 * from the product's front page riding on it at watermark strength.
 */
.horizon {
  position: relative;
  height: 1px;
  margin-top: 2.2rem;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(185 125 36 / 0.45), rgb(185 125 36 / 0.12) 72%, transparent);
  box-shadow: 0 0 34px 3px rgb(242 192 120 / 0.25);
}

.horizon .ship {
  position: absolute;
  right: 1.5%;
  bottom: 1px;
  width: min(400px, 40%);
  height: auto;
  color: var(--chart-deep);
  opacity: 0.13;
  animation: ship-drift 18s ease-in-out infinite;
}

@keyframes ship-drift {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-16px, -2px);
  }
}

@media (max-width: 620px) {
  .horizon .ship {
    display: none;
  }

  /* On a phone the door has to reach the first screen. */
  .hero {
    padding-top: 1.8rem;
  }

  .hero > .eyebrow {
    margin-bottom: 0.8rem;
  }

  .lede {
    font-size: var(--t-lg);
  }

  .crm-door {
    margin-top: 1.6rem;
  }
}

/* ---------------------------------------------------------------- door -- */

/*
 * The door into the CRM. The owner asked for it to be big and impossible to
 * miss, so it is the one dark thing on a paper page: the night watch, with
 * the house gold for the sea and the ship heading in. Everything in it says
 * the same thing — this is where UpEasy is — and the gold button says it last
 * and loudest.
 */
.crm-door {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 2.2rem;
  border-radius: 22px;
  color: var(--paper-on-night);
  background:
    radial-gradient(640px 320px at 88% -10%, rgb(242 192 120 / 0.2), transparent 65%),
    radial-gradient(700px 420px at 0% 120%, rgb(47 110 168 / 0.32), transparent 70%),
    linear-gradient(160deg, #1c2e4b 0%, var(--night) 52%, var(--night-deep) 100%);
  box-shadow:
    inset 0 0 0 1px rgb(242 192 120 / 0.26),
    0 40px 70px -40px rgb(12 22 40 / 0.65),
    0 14px 30px -18px rgb(12 22 40 / 0.45);
  scroll-margin-top: 6rem;
}

/* A gold hairline along the top edge, as on every card of the house. */
.crm-door::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft) 40%, transparent);
  opacity: 0.9;
  z-index: 2;
}

/* Grain, as on the paper — the night is printed too. */
.crm-door::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  pointer-events: none;
  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.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E");
}

.door-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.6rem 3rem;
  align-items: end;
  padding: clamp(1.6rem, 1rem + 3.2vw, 3.2rem) clamp(1.25rem, 0.8rem + 3vw, 3.2rem) 0;
}

@media (min-width: 860px) {
  .door-body {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}

.door-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: var(--t-2xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* A lit dot: the CRM is running, right now, at that address. */
.door-eyebrow .live {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #7fd1a6;
  box-shadow: 0 0 0 0 rgb(127 209 166 / 0.6);
  animation: live 2.4s ease-out infinite;
}

@keyframes live {
  0% {
    box-shadow: 0 0 0 0 rgb(127 209 166 / 0.55);
  }

  70%,
  100% {
    box-shadow: 0 0 0 9px rgb(127 209 166 / 0);
  }
}

.crm-door h2 {
  font-size: clamp(2.2rem, 1.2rem + 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fbf7ef;
}

.crm-door h2 em {
  display: block;
  margin-top: 0.35rem;
  font-style: italic;
  font-weight: 400;
  font-size: 0.48em;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--gold-soft);
}

.door-text {
  margin: 1rem 0 0;
  max-width: 46ch;
  color: var(--muted-on-night);
  font-size: var(--t-md);
}

.door-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (min-width: 860px) {
  .door-action {
    align-items: stretch;
  }
}

/*
 * The button itself. Gold on night is the brightest pair this palette owns;
 * the address is set in the display face, large, because the address is the
 * thing being handed over. A light passes across it every few seconds — once
 * the page has settled, never while somebody is still reading the headline.
 */
.go {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 4.6rem;
  padding: 0.9rem 1.1rem 0.9rem 1.5rem;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8d59d 0%, #f0bd70 55%, #e3a653 100%);
  color: var(--text);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.6),
    inset 0 -2px 0 rgb(138 90 18 / 0.25),
    0 18px 40px -14px rgb(242 192 120 / 0.55),
    0 0 0 1px rgb(242 192 120 / 0.5);
  transition: transform 160ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.go:hover {
  color: var(--text);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.6),
    inset 0 -2px 0 rgb(138 90 18 / 0.25),
    0 26px 50px -14px rgb(242 192 120 / 0.7),
    0 0 0 1px rgb(242 192 120 / 0.7);
}

.go:active {
  transform: translateY(0) scale(0.99);
}

.go:focus-visible {
  outline: 3px solid #fbf7ef;
  outline-offset: 4px;
  border-radius: 14px;
}

.go .go-words {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.go .go-label {
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(22 36 58 / 0.72);
}

.go .go-url {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.go .go-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--text);
  color: var(--gold-soft);
  transition: transform 220ms var(--ease-out);
}

.go .go-arrow svg {
  width: 1.3rem;
  height: 1.3rem;
}

.go:hover .go-arrow {
  transform: translateX(4px);
}

.go .shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: shine 5s ease-in-out 1.6s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-120%);
  }

  28%,
  100% {
    transform: translateX(120%);
  }
}

.door-small {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--muted-on-night);
}

.door-small a {
  color: var(--gold-soft);
}

.door-small a:hover {
  color: #fff;
}

/*
 * The sea at the foot of the door: the product's swell, drawn in gold on the
 * night, with the tanker riding it. Served as a drawn wave; the canvas takes
 * its place only once it is running.
 */
.door-sea {
  position: relative;
  height: 130px;
  margin-top: 1.4rem;
  pointer-events: none;
}

.door-sea .wave-rule,
.door-sea canvas {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  width: 100%;
  height: 56px;
}

.door-sea .wave-rule {
  color: var(--gold-soft);
}

.door-sea canvas {
  opacity: 0;
  transition: opacity 400ms ease-out;
}

.door-sea.live .wave-rule {
  visibility: hidden;
}

.door-sea.live canvas {
  opacity: 1;
}

.door-sea .ship {
  position: absolute;
  right: 8%;
  bottom: 52px;
  width: min(300px, 46%);
  height: auto;
  color: var(--gold-soft);
  opacity: 0.32;
  transform-origin: 50% 100%;
  animation: ship-ride 7s ease-in-out infinite;
}

@keyframes ship-ride {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  30% {
    transform: translate(-10px, -3px) rotate(-0.6deg);
  }

  65% {
    transform: translate(-22px, 1px) rotate(0.5deg);
  }
}

/* The house mark, large and faint, where the door's light falls. */
.door-mark {
  position: absolute;
  top: -70px;
  right: -60px;
  width: 340px;
  height: 340px;
  z-index: 0;
  opacity: 0.07;
  color: var(--gold-soft);
  pointer-events: none;
}

@media (max-width: 620px) {
  .door-sea {
    height: 96px;
  }

  .door-sea .ship {
    bottom: 46px;
    width: 58%;
  }

  .door-mark {
    width: 240px;
    height: 240px;
    top: -60px;
    right: -70px;
  }

  .go {
    padding-inline-start: 1.1rem;
    min-height: 4.2rem;
  }

  .go .go-arrow {
    width: 2.6rem;
    height: 2.6rem;
  }
}

/* A smaller door at the foot of a page: the same panel, said once more. */
.crm-door.compact h2 {
  font-size: clamp(1.8rem, 1.1rem + 2.6vw, 2.8rem);
}

.crm-door.compact .door-sea {
  height: 92px;
}

.crm-door.compact .door-sea .ship {
  width: min(220px, 40%);
  bottom: 48px;
}

/* ------------------------------------------------------------ sections -- */

.section {
  padding-block: 3.2rem 0;
  scroll-margin-top: 5rem;
}

.section-head {
  max-width: 46rem;
  margin-bottom: 1.6rem;
}

.section-head p:not(.eyebrow) {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: var(--t-md);
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 1.35rem 1.5rem;
}

/* The house hairline on a card: gold, fading out to the right. */
.card.striped {
  overflow: hidden;
  padding-top: calc(1.35rem + 2px);
}

.card.striped::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft), transparent);
  opacity: 0.65;
}

/* The three sides of one record. */
.sides {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 1rem;
  align-items: stretch;
}

.side {
  display: flex;
  flex-direction: column;
}

.side .eyebrow {
  margin-bottom: 0.45rem;
}

.side h3 {
  font-size: var(--t-2xl);
  margin-bottom: 0.5rem;
}

.side .intro {
  margin: 0 0 1rem;
  color: var(--muted);
}

.side .more {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 600;
  font-size: var(--t-base);
}

.side .more a {
  text-decoration: none;
}

.side .more a:hover {
  text-decoration: underline;
}

.side .note {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: var(--t-base);
  color: var(--muted);
}

/* Outcomes, not features: a short dash in chart blue in place of a bullet. */
.outcomes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.outcomes li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.5;
}

.outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 0.8rem;
  height: 2px;
  border-radius: 1px;
  background: var(--chart);
}

/*
 * How we work: six rules, each numbered like a sounding on a chart, so the
 * list reads as a set of fixed positions rather than as a sales grid.
 */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.principles li {
  position: relative;
  padding: 1.4rem 1.4rem 1.5rem 3.4rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .principles li:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
}

@media (min-width: 980px) {
  .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .principles li:nth-child(odd) {
    border-right: 0;
  }

  .principles li:not(:nth-child(3n)) {
    border-right: 1px solid var(--border);
  }
}

.principles .n {
  position: absolute;
  left: 1.1rem;
  top: 1.35rem;
  font-family: var(--font-display);
  font-size: var(--t-xl);
  font-style: italic;
  color: var(--chart);
  font-variant-numeric: tabular-nums;
}

.principles h3 {
  margin-bottom: 0.4rem;
}

.principles p {
  margin: 0;
  color: var(--muted);
}

/* The founder's line: hers, verbatim, in the display face. */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: start;
}

@media (min-width: 820px) {
  .founder {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

.founder figure {
  margin: 0;
}

.founder blockquote {
  position: relative;
  margin: 0;
  padding-left: 1.4rem;
  border-left: 2px solid var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.1vw, 1.75rem);
  line-height: 1.32;
  letter-spacing: -0.005em;
}

.founder figcaption {
  margin-top: 0.9rem;
  padding-left: 1.4rem;
  font-size: var(--t-sm);
  color: var(--gold-text);
  letter-spacing: 0.02em;
}

.founder figcaption a {
  color: var(--gold-text);
}

.founder .facts p {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

/* The company in a few lines: a ledger, not a brochure. */
.ledger {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.ledger div {
  padding: 1rem 1rem 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.ledger dt {
  margin-bottom: 0.25rem;
  font-size: var(--t-2xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.ledger dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--t-xl);
  line-height: 1.3;
}

.ledger dd small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-size: var(--t-sm);
  color: var(--muted);
}

/* Contact: three ways to reach a person, each one real today. */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 3rem;
  align-items: start;
}

@media (min-width: 820px) {
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
}

.contact-ways {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-ways a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  color: var(--text);
  text-decoration: none;
  transition: box-shadow 160ms var(--ease-out), border-color 160ms var(--ease-out);
}

.contact-ways a:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-2);
}

.contact-ways .icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--chart-bg);
  color: var(--chart-deep);
}

.contact-ways .icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.contact-ways strong {
  display: block;
  font-size: var(--t-md);
  overflow-wrap: anywhere;
}

.contact-ways span.what {
  display: block;
  font-size: var(--t-sm);
  color: var(--muted);
}

/* ----------------------------------------------- the product's pictures -- */

/* A wave where a page would otherwise draw a rule. */
.swell {
  position: relative;
  margin: 2.6rem 0 0;
}

.wave-rule {
  display: block;
  width: 100%;
  height: 36px;
  color: var(--chart);
}

.swell canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 400ms ease-out;
}

.swell.live .wave-rule {
  visibility: hidden;
}

.swell.live canvas {
  opacity: 1;
}

/* The wall of records, as on upeasy.app: every record invented. */
.crew-wall {
  position: relative;
  width: 100%;
  margin: 0;
  height: 460px;
  overflow: hidden;
  perspective: 1400px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 72%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 72%, transparent);
}

.crew-stage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  height: 100%;
  width: 100%;
  transform-origin: 50% 100%;
  transform: rotateX(8deg);
  transform-style: preserve-3d;
}

.crew-column {
  min-width: 0;
}

@media (max-width: 900px) {
  .crew-stage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .crew-column:nth-child(n + 4) {
    display: none;
  }

  .crew-wall {
    height: 360px;
  }
}

@media (max-width: 620px) {
  .crew-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crew-column:nth-child(n + 3) {
    display: none;
  }

  .crew-wall {
    height: 300px;
  }
}

.crew-track {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  animation: crew-drift 38s linear infinite;
}

.crew-column.reverse .crew-track {
  animation-direction: reverse;
  animation-duration: 46s;
}

@keyframes crew-drift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-50%);
  }
}

.crew-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  box-shadow: 0 10px 24px rgb(22 36 58 / 0.05);
}

.crew-card header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
}

.crew-card strong {
  font-size: var(--t-base);
  line-height: 1.3;
}

.crew-card p {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--muted);
}

.crew-card .small {
  font-size: var(--t-2xs);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--t-3xs);
  font-weight: 600;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.badge::before {
  content: "";
  flex: none;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: currentColor;
}

.badge.ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.badge.warn {
  background: var(--warn-bg);
  color: var(--warn-text);
}

.badge.bad {
  background: var(--bad-bg);
  color: var(--bad-text);
}

.crew-wall-note {
  margin: 0.2rem 0 0;
  text-align: right;
  font-size: var(--t-2xs);
  color: var(--muted);
}

/* Everything about one seafarer, arriving in one place. */
.converge-figure {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.2rem 0 0.4rem;
  overflow: visible;
}

.converge-label {
  fill: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
}

.converge-detail {
  fill: var(--muted);
  font-family: var(--font-body);
  font-size: 12.5px;
}

.converge-record {
  fill: var(--surface);
  stroke: var(--gold);
  stroke-width: 1.2;
}

.converge-record-label {
  fill: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
}

.converge-spark {
  stroke-dasharray: 26 420;
  stroke-dashoffset: 446;
  animation: converge-run 4.5s linear infinite;
}

@keyframes converge-run {
  to {
    stroke-dashoffset: 0;
  }
}

.converge-caption {
  margin: 0;
  max-width: 46rem;
  color: var(--muted);
}

@media (max-width: 620px) {
  .converge-label {
    font-size: 21px;
  }

  .converge-feed-detail {
    display: none;
  }
}

/* Where the data sits: the places named. */
.data-panel h2 {
  margin-bottom: 0.9rem;
}

.data-panel .outcomes {
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------ the log -- */

/*
 * The company's story as a ship's log: a date in the margin, one line of
 * what happened, a rule down the side in chart blue. Read top to bottom, it
 * is fourteen years arriving at the CRM.
 */
.log {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.log::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 9.4rem;
  width: 1px;
  background: linear-gradient(180deg, var(--chart-shallow), var(--chart) 60%, var(--gold));
}

.log li {
  position: relative;
  display: grid;
  grid-template-columns: 8.4rem minmax(0, 1fr);
  gap: 2rem;
  padding: 0 0 1.6rem;
}

.log li::before {
  content: "";
  position: absolute;
  left: calc(9.4rem - 5px);
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--chart);
}

.log li.now::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 5px rgb(242 192 120 / 0.35);
}

.log time,
.log .when {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  text-align: right;
  color: var(--chart-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.log h3 {
  margin-bottom: 0.25rem;
}

.log p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 620px) {
  .log::before {
    left: 0.3rem;
  }

  .log li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
    padding-left: 1.8rem;
  }

  .log li::before {
    left: calc(0.3rem - 4px);
  }

  .log time,
  .log .when {
    text-align: left;
    font-size: var(--t-md);
  }
}

/* What we are not: three refusals, each a fact that can be checked. */
.refusals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1rem 1.5rem;
}

.refusals h3 {
  margin-bottom: 0.35rem;
}

.refusals p {
  margin: 0;
  color: var(--muted);
}

/* Plain pages: the legal notes and the missing page. */
.prose {
  max-width: 46rem;
}

.prose section {
  padding-top: 1.8rem;
  scroll-margin-top: 5.5rem;
}

.prose h2 {
  font-size: var(--t-3xl);
  margin-bottom: 0.6rem;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose p {
  margin: 0 0 0.8rem;
}

.prose ul {
  padding-left: 1.2rem;
  margin: 0 0 0.8rem;
}

.prose dl {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 0.5rem 1.2rem;
  margin: 0 0 1rem;
}

.prose dt {
  color: var(--muted);
}

.prose dd {
  margin: 0;
  font-weight: 500;
}

@media (max-width: 520px) {
  .prose dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }

  .prose dd {
    margin-bottom: 0.6rem;
  }
}

/* ---------------------------------------------------------------- foot -- */

.site-foot {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  background: var(--quiet-bg);
}

.site-foot .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding-block: 2.2rem 2.5rem;
}

.site-foot .col {
  flex: 1 1 13rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.site-foot h2 {
  font-family: var(--font-body);
  font-size: var(--t-3xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 0.2rem;
}

.site-foot a,
.site-foot p {
  font-size: var(--t-sm);
  color: var(--muted);
  margin: 0;
}

.site-foot a {
  text-decoration: none;
  width: fit-content;
}

.site-foot a:hover {
  color: var(--chart-deep);
  text-decoration: underline;
}

.site-foot a.crm {
  color: var(--gold-text);
  font-weight: 600;
}

.site-foot .free {
  color: var(--ok-text);
  font-weight: 600;
}

.site-foot .legal {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.site-foot .legal p,
.site-foot .legal a {
  font-size: var(--t-xs);
}

.site-foot .legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
}

/* ------------------------------------------------------- less motion -- */

/* Somebody who asked for less motion gets every picture, standing still. */
@media (prefers-reduced-motion: reduce) {
  .horizon .ship,
  .door-sea .ship,
  .go .shine,
  .door-eyebrow .live,
  .converge-spark {
    animation: none;
  }

  .go .shine {
    display: none;
  }

  .crew-track {
    animation: none;
  }

  .crew-stage {
    transform: none;
  }

  .crew-wall {
    height: auto;
    max-height: 420px;
  }

  .go,
  .go .go-arrow {
    transition: none;
  }
}

/* Small layout notes that would otherwise be inline styles. */
.after-sides {
  margin: 1.2rem 0 0;
}

.contact-lead {
  margin: 0.7rem 0 0;
  max-width: 42ch;
}

/* Five arrivals staggered, so they read as a stream rather than a pulse. */
.converge-spark.beam-2 {
  animation-delay: 0.9s;
}

.converge-spark.beam-3 {
  animation-delay: 1.8s;
}

.converge-spark.beam-4 {
  animation-delay: 2.7s;
}

.converge-spark.beam-5 {
  animation-delay: 3.6s;
}
