:root {
  --bg: #071016;
  --bg-2: #0b171e;
  --bg-3: #12242c;
  --foam: #f3eee4;
  --foam-dim: #c7d2d2;
  --muted: #8aa0a6;
  --tide: #3ad1c8;
  --tide-deep: #1b8b86;
  --sand: #e3c39a;
  --sand-deep: #c4925a;
  --sunset: #d1765c;
  --line: color-mix(in oklab, var(--sand) 16%, transparent);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  --radius: 20px;
  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --max: 1120px;
  --pad: clamp(1.15rem, 4vw, 2.4rem);
  --header-h: 4.6rem;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--foam);
}

body {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.skip {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  z-index: 100;
  background: var(--sand);
  color: var(--bg);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
}

.skip:focus {
  top: 0.8rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--foam);
  position: relative;
  z-index: 60;
}

.brand img {
  width: 2.2rem;
  height: 2.2rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-text span {
  color: var(--sand);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--foam);
  cursor: pointer;
  position: relative;
  z-index: 60;
}

.nav-toggle span {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.05rem;
  height: 1.5px;
  background: currentColor;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

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

.nav a {
  text-decoration: none;
  color: var(--foam-dim);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--foam);
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--tide);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn-sand {
  background: var(--sand);
  color: var(--bg);
}

.btn-sand:hover {
  background: color-mix(in oklab, var(--sand) 82%, white);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--foam);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--tide);
  color: var(--tide);
}

.hero {
  position: relative;
  min-height: 22rem;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  filter: saturate(0.9) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 18%, transparent) 0%, color-mix(in oklab, var(--bg) 38%, transparent) 38%, var(--bg) 100%),
    linear-gradient(90deg, color-mix(in oklab, var(--bg) 55%, transparent), transparent 42%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vh, 3rem) 0 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--sand);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  margin: 0 0 1rem;
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--tide);
}

.hero h1,
.page-hero h1,
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 5rem);
  max-width: 12ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--sand);
  font-weight: 450;
}

.lede {
  max-width: 38rem;
  color: var(--foam-dim);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  margin: 1.4rem 0 1.8rem;
}

.lede.tight {
  margin-bottom: 0;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section {
  padding: clamp(2.25rem, 4.5vw, 3.75rem) 0;
}

.section-head {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}

.section-head p,
.muted {
  color: var(--muted);
  margin: 0;
}

.work,
.pricing {
  border-top: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--bg-3) 88%, white 4%), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem 1.5rem;
  min-height: 100%;
}

.card-index {
  font-family: var(--font-display);
  color: var(--tide);
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 1.4rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--foam-dim);
}

.price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--tide);
  margin: 0 0 1.1rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.split-media {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  min-height: 22rem;
  border: 1px solid var(--line);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
}

.split-media figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(10px);
  color: var(--sand);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.points {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.points li {
  padding-left: 1.2rem;
  position: relative;
  color: var(--foam-dim);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--tide);
}

.cta-band {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.cta-band .bg {
  position: absolute;
  inset: 0;
}

.cta-band .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
}

.cta-band .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
}

.cta-band .wrap {
  position: relative;
  padding-block: clamp(2.4rem, 5vw, 3.6rem);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 0 0 0.8rem;
  text-wrap: balance;
}

.page-hero {
  padding: clamp(1.4rem, 3vw, 2.2rem) 0 0.2rem;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  max-width: 16ch;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--sand);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: max-content;
  border: 1px solid var(--line);
  color: var(--sand);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.showcase-section {
  padding-top: 1rem;
}

.showcase-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  align-items: end;
  justify-content: space-between;
  margin: 0.4rem 0 1.6rem;
}

.showcase-title {
  display: grid;
  gap: 0.35rem;
}

.showcase-title h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.02em;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 0.85rem;
}

.showcase-actions .btn {
  min-height: 2.4rem;
  padding: 0.4rem 0.95rem;
}

.pager {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.pager-btn {
  appearance: none;
  min-height: 2.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--foam);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.pager-btn:hover:not(:disabled) {
  border-color: var(--tide);
  color: var(--tide);
}

.pager-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.pager-count {
  min-width: 3.6rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.showcase-summary {
  max-width: 46rem;
  color: var(--foam-dim);
  margin: 1.3rem 0 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-row span + span::before {
  content: "·";
  margin-right: 0.9rem;
  color: var(--sand-deep);
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compare-tabs {
  display: none;
}

.frame {
  margin: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.frame-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.95rem 0;
  color: var(--sand);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
}

.browser-dots {
  display: flex;
  gap: 0.28rem;
}

.browser-dots i {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: color-mix(in oklab, var(--foam) 22%, transparent);
}

.browser-dots i:nth-child(1) { background: #d1765c; }
.browser-dots i:nth-child(2) { background: var(--sand); }
.browser-dots i:nth-child(3) { background: var(--tide); }

.browser-url {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  color: var(--muted);
  background: color-mix(in oklab, var(--bg) 70%, white 4%);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewport {
  aspect-ratio: 4 / 3;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #101418;
  scrollbar-width: thin;
  scrollbar-color: var(--tide-deep) rgba(255, 255, 255, 0.04);
}

.viewport img {
  width: 100%;
  height: auto;
}

.frame-hint {
  margin: 0;
  padding: 0.55rem 0.95rem 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
}

.site-footer a {
  color: var(--sand);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--tide);
}

.status {
  color: var(--muted);
  padding: 0.6rem 0 1rem;
}

.status[hidden] {
  display: none;
}

@media (max-width: 860px) {
  .showcase-actions {
    width: 100%;
    justify-content: space-between;
  }

  .pager {
    width: auto;
    justify-content: flex-end;
    margin-left: auto;
  }

  .cards,
  .split,
  .compare {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    background: #050b10;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem var(--pad) 3rem;
    gap: 1.6rem;
    border-radius: 0;
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 220ms ease, opacity 220ms ease, visibility 220ms ease;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    font-size: 1.3rem;
    letter-spacing: 0.12em;
  }

  .compare-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
    padding: 0.3rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-2);
  }

  .compare-tabs button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--muted);
    min-height: 2.4rem;
    border-radius: 999px;
    font: inherit;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
    cursor: pointer;
  }

  .compare-tabs button[aria-selected="true"] {
    background: var(--sand);
    color: var(--bg);
  }

  .compare .frame {
    display: none;
  }

  .compare .frame.is-active {
    display: block;
  }
}

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

  .btn,
  .nav {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
