/* ==========================================================================
   Tidewire Digital — site styles
   Palette: Abyss, Trench, Shoal, Foam, Brine, Tide, Sodium
   Type: Schibsted Grotesk (headings and text), JetBrains Mono (code only)
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --abyss: #05141b;
  --abyss-2: #071a22;
  --trench: #0b232d;
  --trench-2: #0f2c38;
  --shoal: #1a3d4a;
  --shoal-2: #275564;
  --foam: #e8f3f2;
  --brine: #97b2b8;
  --brine-dim: #6d8a91;
  --tide: #56e3cb;
  --tide-deep: #1fb59c;
  --tide-ink: #03241f;
  --sodium: #ffb867;
  --danger: #ff7b72;

  --font-display: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* type scale, ~1.25 */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.3125rem;
  --t-xl: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --t-2xl: clamp(2rem, 1.4rem + 2.2vw, 2.75rem);
  --t-3xl: clamp(2.5rem, 1.6rem + 3.6vw, 4rem);
  --t-hero: clamp(2.75rem, 1.5rem + 5.4vw, 5.75rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 1240px;
  --narrow: 760px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--abyss);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--abyss);
  color: var(--foam);
  font-family: var(--font-text);
  font-size: var(--t-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--tide);
  color: var(--tide-ink);
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--tide);
  color: var(--tide-ink);
  font-weight: 600;
  border-radius: var(--radius-s);
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(5, 20, 27, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(86, 227, 203, 0.09);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand svg {
  width: 34px;
  height: 22px;
  flex: none;
}
.brand .brand-sub {
  color: var(--brine);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--brine);
  font-size: var(--t-sm);
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
}
.nav a:hover {
  color: var(--foam);
}
.nav a[aria-current="page"] {
  color: var(--foam);
}
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 14px;
  height: 2px;
  margin-left: -7px;
  border-radius: 2px;
  background: var(--tide);
}
.nav .btn {
  margin-left: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--shoal);
  border-radius: 12px;
  background: transparent;
  color: var(--foam);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.nav-toggle span::before {
  transform: translateY(-6px);
}
.nav-toggle span::after {
  transform: translateY(6px);
}
.is-open .nav-toggle span {
  background: transparent;
}
.is-open .nav-toggle span::before {
  transform: rotate(45deg);
}
.is-open .nav-toggle span::after {
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--abyss);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
  }
  .is-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
  }
  .nav a {
    padding: 1rem 0;
    border-radius: 0;
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--foam);
    border-bottom: 1px solid var(--shoal);
  }
  .nav a[aria-current="page"] {
    color: var(--tide);
  }
  .nav a[aria-current="page"]::after {
    display: none;
  }
  .nav .btn {
    margin: 2rem 0 0;
    justify-content: center;
    font-family: var(--font-text);
    font-size: var(--t-md);
    border-bottom: 0;
    padding: 1rem 1.5rem;
    border-radius: 999px;
    color: var(--tide-ink);
  }
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--tide);
  --btn-fg: var(--tide-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 var(--t-sm) / 1.2 var(--font-text);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease),
    box-shadow 0.3s var(--ease);
}
.btn:hover {
  background: #7aeed9;
  box-shadow: 0 8px 30px -10px rgba(86, 227, 203, 0.6);
}
.btn:active {
  transform: translateY(1px);
}
.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--foam);
  border-color: var(--shoal-2);
}
.btn-ghost:hover {
  background: rgba(86, 227, 203, 0.08);
  border-color: var(--tide);
  box-shadow: none;
}
.btn-sm {
  padding: 0.6rem 1.05rem;
}
.nav .btn {
  color: var(--tide-ink);
}
.nav .btn:hover {
  color: var(--tide-ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--tide);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.text-link:hover {
  background-size: 100% 1px;
}
.text-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s var(--ease);
}
.text-link:hover svg {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Sections & shared type
   -------------------------------------------------------------------------- */

main {
  display: block;
}

.section {
  padding-block: clamp(4.5rem, 3rem + 6vw, 8.5rem);
}
.section-tight {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}
.section + .section-rule {
  border-top: 1px solid var(--shoal);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  max-width: 44rem;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.section-head h2 {
  font-size: var(--t-3xl);
}
.section-head p {
  color: var(--brine);
  font-size: var(--t-lg);
  line-height: 1.5;
  max-width: 38rem;
}
.section-head.split {
  max-width: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 2rem 4rem;
}
@media (max-width: 860px) {
  .section-head.split {
    grid-template-columns: 1fr;
  }
}

.lede {
  font-size: var(--t-lg);
  line-height: 1.5;
  color: var(--brine);
}

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

/* page hero (inner pages) */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 3vw, 4rem));
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  overflow: hidden;
}
.page-hero h1 {
  font-size: var(--t-3xl);
  max-width: 18ch;
}
.page-hero .lede {
  margin-top: 1.5rem;
  max-width: 40rem;
}
.page-hero .wire-strip {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 120px;
  pointer-events: none;
  opacity: 0.8;
}

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

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + clamp(2rem, 1rem + 3vw, 4rem));
  padding-bottom: clamp(3.5rem, 2rem + 4vw, 6rem);
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero::before {
  /* soft glow behind text for legibility */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 70% at 0% 100%, rgba(5, 20, 27, 0.92) 25%, rgba(5, 20, 27, 0) 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  width: 100%;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
  padding: 0.4rem 0.9rem 0.4rem 0.55rem;
  border: 1px solid var(--shoal);
  border-radius: 999px;
  background: rgba(11, 35, 45, 0.6);
  color: var(--brine);
  font-size: var(--t-sm);
}
.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tide);
  margin-left: 0.25rem;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--tide);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
.hero h1 {
  font-size: clamp(2.6rem, 1.3rem + 4.4vw, 5.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 17ch;
}
.hero h1 .line {
  display: block;
  text-wrap: balance;
}
.hero h1 .line-dim {
  color: var(--brine);
}
.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem 4rem;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}
.hero-bottom .lede {
  max-width: 34rem;
  color: #b7cbcf;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
@media (max-width: 860px) {
  .hero-bottom {
    grid-template-columns: 1fr;
  }
}

/* load-in sequence: one orchestrated moment on the home hero */
.js .hero [data-in] {
  opacity: 0;
  transform: translateY(18px);
}
.hero [data-in="1"] { --d: 1; }
.hero [data-in="2"] { --d: 2; }
.hero [data-in="3"] { --d: 3; }
.hero [data-in="4"] { --d: 4; }
.js .hero.is-in [data-in] {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms + 150ms);
}

/* --------------------------------------------------------------------------
   Trust bar
   -------------------------------------------------------------------------- */

.facts {
  border-top: 1px solid var(--shoal);
  border-bottom: 1px solid var(--shoal);
  background: var(--abyss-2);
}
.facts ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.35rem 1.25rem;
  color: var(--brine);
  font-size: var(--t-sm);
  line-height: 1.35;
}
.facts li + li {
  border-left: 1px solid var(--shoal);
}
.facts li:first-child {
  padding-left: 0;
}
.facts strong {
  display: block;
  color: var(--foam);
  font-weight: 600;
  font-size: var(--t-md);
}
.facts svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--tide);
}
@media (max-width: 980px) {
  .facts ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .facts li:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .facts li:nth-child(n + 3) {
    border-top: 1px solid var(--shoal);
  }
}
@media (max-width: 520px) {
  .facts ul {
    grid-template-columns: 1fr;
  }
  .facts li {
    padding-left: 0;
  }
  .facts li + li {
    border-left: 0;
    border-top: 1px solid var(--shoal);
  }
}

/* --------------------------------------------------------------------------
   Before / after
   -------------------------------------------------------------------------- */

.ba {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.ba-copy h2 {
  font-size: var(--t-3xl);
}
.ba-copy p {
  margin-top: 1.25rem;
  color: var(--brine);
  font-size: var(--t-lg);
  line-height: 1.5;
}
.ba-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 0.85rem;
}
.ba-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.75rem;
  color: var(--foam);
}
.ba-list svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--tide);
}
@media (max-width: 960px) {
  .ba {
    grid-template-columns: 1fr;
  }
}

.compare {
  --pos: 50%;
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--shoal);
  background: var(--trench);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7), 0 0 0 6px rgba(86, 227, 203, 0.03);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}
.compare-pane {
  position: relative;
}
.compare-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--pos));
}
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--tide);
  pointer-events: none;
  z-index: 3;
}
.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--tide)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303241f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E")
    center / 22px no-repeat;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.compare input[type="range"] {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare:focus-within .compare-handle::after {
  outline: 2px solid var(--foam);
  outline-offset: 3px;
}
.compare-tag {
  position: absolute;
  top: 0.85rem;
  z-index: 2;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: var(--t-xs);
  font-weight: 600;
  pointer-events: none;
}
.compare-tag.before {
  left: 0.85rem;
  background: #fff3c4;
  color: #6b4b00;
}
.compare-tag.after {
  right: 0.85rem;
  background: var(--tide);
  color: var(--tide-ink);
}

/* browser chrome used in compare + showcase */
.chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 42px;
  padding: 0 0.9rem;
  background: var(--trench-2);
  border-bottom: 1px solid var(--shoal);
}
.chrome-dots {
  display: flex;
  gap: 6px;
}
.chrome-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--shoal-2);
}
.chrome-url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 28px;
  padding: 0 0.75rem;
  border-radius: 8px;
  background: var(--abyss-2);
  color: var(--brine);
  font-size: var(--t-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chrome-url svg {
  width: 13px;
  height: 13px;
  flex: none;
}
.chrome-url .secure {
  color: var(--tide);
}
.chrome-url .insecure {
  color: var(--danger);
}

/* the "old site" — deliberately dated, built in CSS */
.oldsite {
  background: #c0c0c0;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.oldsite .chrome {
  background: #dcdcdc;
  border-bottom-color: #9a9a9a;
}
.oldsite .chrome-dots i {
  background: #a5a5a5;
}
.oldsite .chrome-url {
  background: #fff;
  color: #444;
  font-family: Arial, sans-serif;
}
.old-body {
  padding: 14px;
  height: calc(100% - 42px);
  background: #fffbe6 repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.025) 0 2px, transparent 2px 6px);
}
.old-banner {
  border: 3px outset #d4a373;
  background: linear-gradient(#8b4513, #5c2d0c);
  color: #ffd700;
  text-align: center;
  padding: 10px;
  font: bold clamp(16px, 2.6vw, 30px) / 1.1 "Comic Sans MS", "Comic Neue", cursive;
  text-shadow: 2px 2px 0 #000;
}
.old-marquee {
  margin: 8px 0;
  padding: 3px 0;
  background: #000080;
  color: #fff;
  font: bold 12px Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
}
.old-marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 14s linear infinite;
}
@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}
.old-cols {
  display: grid;
  grid-template-columns: 26% 1fr;
  gap: 10px;
}
.old-nav {
  border: 2px inset #999;
  background: #eee;
  padding: 6px;
  font-size: 13px;
}
.old-nav a {
  display: block;
  color: #00e;
  text-decoration: underline;
  margin-bottom: 4px;
}
.old-main {
  font-size: 13px;
  line-height: 1.35;
}
.old-main h3 {
  font: bold 18px "Times New Roman", serif;
  color: #800000;
  letter-spacing: 0;
  margin-bottom: 4px;
}
.old-main p {
  margin-bottom: 6px;
}
.old-table {
  border: 2px outset #999;
  border-collapse: separate;
  font-size: 12px;
  margin-top: 6px;
}
.old-table td {
  border: 1px inset #999;
  padding: 2px 6px;
  background: #fff;
}
.old-counter {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font: 11px Arial, sans-serif;
  color: #333;
}
.old-counter b {
  background: #000;
  color: #0f0;
  font-family: "Courier New", monospace;
  padding: 1px 4px;
  letter-spacing: 2px;
}
.old-construction {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  background: repeating-linear-gradient(45deg, #000 0 8px, #ffd400 8px 16px);
  color: #fff;
  font: bold 11px Arial, sans-serif;
  text-shadow: 1px 1px 0 #000;
}
.newsite {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--trench);
}
.newsite img {
  width: 100%;
  flex: 1;
  object-fit: cover;
  object-position: top center;
  min-height: 0;
}

/* --------------------------------------------------------------------------
   Services rows (home + services)
   -------------------------------------------------------------------------- */

.offers {
  list-style: none;
  border-top: 1px solid var(--shoal);
}
.offer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) auto;
  gap: 1.5rem 3rem;
  align-items: start;
  padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem) 0;
  border-bottom: 1px solid var(--shoal);
  position: relative;
}
.offer h3 {
  font-size: var(--t-xl);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.offer h3 svg {
  width: 28px;
  height: 28px;
  color: var(--tide);
  flex: none;
}
.offer .offer-for {
  margin-top: 0.6rem;
  color: var(--brine);
  font-size: var(--t-sm);
  padding-left: calc(28px + 0.85rem);
}
.offer > p {
  color: #c2d4d7;
}
.offer .text-link {
  margin-top: 0.2rem;
}
@media (max-width: 860px) {
  .offer {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .offer .offer-for {
    padding-left: 0;
  }
}

/* --------------------------------------------------------------------------
   Included features (definition grid)
   -------------------------------------------------------------------------- */

.included {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--shoal);
  border-left: 1px solid var(--shoal);
}
.included > div {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-right: 1px solid var(--shoal);
  border-bottom: 1px solid var(--shoal);
  transition: background-color 0.3s;
}
.included > div:hover {
  background: rgba(11, 35, 45, 0.6);
}
.included dt {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.included dt svg {
  width: 22px;
  height: 22px;
  color: var(--tide);
  flex: none;
}
.included dd {
  margin: 0.7rem 0 0;
  color: var(--brine);
  font-size: var(--t-sm);
  line-height: 1.6;
}
@media (max-width: 960px) {
  .included {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .included {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Showcase teaser (home)
   -------------------------------------------------------------------------- */

.teaser {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
}
.teaser-card {
  position: relative;
  display: block;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--shoal);
  background: var(--trench);
  text-decoration: none;
  isolation: isolate;
}
.teaser-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s var(--ease);
}
.teaser-card:hover img {
  transform: scale(1.035);
}
.teaser-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding: 2.5rem 1.1rem 1rem;
  background: linear-gradient(transparent, rgba(3, 14, 19, 0.92));
}
.teaser-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.teaser-card span {
  color: var(--brine);
  font-size: var(--t-sm);
}
.teaser-card .go {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--tide);
  color: var(--tide-ink);
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.teaser-card .go svg {
  width: 16px;
  height: 16px;
}
.teaser-card:hover .go,
.teaser-card:focus-visible .go {
  transform: none;
  opacity: 1;
}
@media (max-width: 760px) {
  .teaser {
    grid-template-columns: 1fr;
  }
  .teaser-card .go {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Process (a real sequence, so it's numbered)
   -------------------------------------------------------------------------- */

.process {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
  position: relative;
}
.process li {
  position: relative;
  padding: 0 1.5rem 0 0;
  counter-increment: step;
}
.process .step-mark {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
.process .step-mark b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--tide);
  color: var(--tide);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-md);
  background: var(--abyss);
  position: relative;
  z-index: 1;
}
.process .step-mark::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 0.75rem;
  background: linear-gradient(90deg, var(--shoal-2), var(--shoal) 60%, transparent);
}
.process li:last-child .step-mark::after {
  display: none;
}
.process h3 {
  font-size: var(--t-lg);
  margin-bottom: 0.6rem;
}
.process p {
  color: var(--brine);
  font-size: var(--t-sm);
}
@media (max-width: 960px) {
  .process {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 0;
  }
  .process li:nth-child(2) .step-mark::after {
    display: none;
  }
}
@media (max-width: 560px) {
  .process {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .process li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0 1.25rem;
    padding: 0 0 2rem;
  }
  .process .step-mark {
    flex-direction: column;
    margin: 0;
    grid-row: span 2;
    height: 100%;
  }
  .process .step-mark::after,
  .process li:nth-child(2) .step-mark::after {
    display: block;
    width: 1px;
    height: auto;
    flex: 1;
    margin: 0.5rem 0 -2rem;
    background: var(--shoal);
  }
  .process li:last-child .step-mark::after {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  border: 1px solid var(--shoal);
  background: radial-gradient(90% 140% at 100% 100%, rgba(86, 227, 203, 0.16), transparent 55%),
    var(--trench);
  padding: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 2.5rem 4rem;
  align-items: end;
}
.cta h2 {
  font-size: var(--t-3xl);
  max-width: 16ch;
}
.cta p {
  margin-top: 1.25rem;
  color: var(--brine);
  font-size: var(--t-lg);
  max-width: 34rem;
}
.cta-side {
  display: grid;
  gap: 1rem;
  justify-items: start;
}
.cta-side .contact-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brine);
  text-decoration: none;
  font-size: var(--t-sm);
}
.cta-side .contact-line:hover {
  color: var(--foam);
}
.cta-side .contact-line svg {
  width: 17px;
  height: 17px;
  color: var(--tide);
}
.cta canvas {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 140px;
  pointer-events: none;
  opacity: 0.6;
  z-index: 0;
}
.cta > *:not(canvas) {
  position: relative;
  z-index: 1;
}
@media (max-width: 860px) {
  .cta {
    grid-template-columns: 1fr;
  }
}

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

.site-footer {
  margin-top: clamp(4rem, 3rem + 4vw, 7rem);
  border-top: 1px solid var(--shoal);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
  color: var(--brine);
  font-size: var(--t-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.7fr));
  gap: 2.5rem;
}
.footer-grid .brand {
  color: var(--foam);
  margin-bottom: 1rem;
}
.footer-grid p {
  max-width: 30rem;
}
.footer-grid h2 {
  font-family: var(--font-text);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--foam);
  margin-bottom: 1rem;
}
.footer-grid ul {
  list-style: none;
  display: grid;
  gap: 0.6rem;
}
.footer-grid a {
  text-decoration: none;
  transition: color 0.2s;
}
.footer-grid a:hover {
  color: var(--tide);
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--shoal);
  color: var(--brine-dim);
  font-size: var(--t-xs);
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */

.service-block {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem clamp(2rem, 1rem + 5vw, 6rem);
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--shoal);
}
.service-block:first-child {
  border-top: 0;
  padding-top: 0;
}
.service-block .sb-head {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  align-self: start;
}
.service-block .sb-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(86, 227, 203, 0.1);
  color: var(--tide);
  margin-bottom: 1.5rem;
}
.service-block .sb-icon svg {
  width: 26px;
  height: 26px;
}
.service-block h2 {
  font-size: var(--t-2xl);
}
.service-block .sb-head p {
  margin-top: 1rem;
  color: var(--brine);
  font-size: var(--t-lg);
  line-height: 1.5;
}
.service-block .sb-best {
  margin-top: 1.5rem;
  font-size: var(--t-sm);
  color: var(--brine);
  padding-left: 1rem;
  border-left: 2px solid var(--tide);
}
.service-block .sb-best strong {
  color: var(--foam);
  font-weight: 600;
}
.checklist {
  list-style: none;
  display: grid;
  gap: 0;
}
.checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--shoal);
}
.checklist li:first-child {
  padding-top: 0;
}
.checklist svg {
  width: 20px;
  height: 20px;
  color: var(--tide);
  margin-top: 4px;
}
.checklist strong {
  display: block;
  font-weight: 600;
  color: var(--foam);
}
.checklist span {
  display: block;
  margin-top: 0.2rem;
  color: var(--brine);
  font-size: var(--t-sm);
}
@media (max-width: 860px) {
  .service-block {
    grid-template-columns: 1fr;
  }
  .service-block .sb-head {
    position: static;
  }
}

/* live headers panel */
.headers-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.headers-panel h2 {
  font-size: var(--t-2xl);
}
.headers-panel .hp-copy p {
  margin-top: 1rem;
  color: var(--brine);
}
.terminal {
  border-radius: var(--radius-m);
  border: 1px solid var(--shoal);
  background: #031016;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.terminal .chrome {
  background: #071d26;
}
.terminal .chrome-url {
  font-family: var(--font-code);
  background: transparent;
  padding: 0;
}
.terminal-body {
  padding: 1.1rem 1.25rem 1.35rem;
  font: 400 0.8125rem/1.75 var(--font-code);
  color: #a9c3c8;
  overflow-x: auto;
  min-height: 300px;
}
.terminal-body .prompt {
  color: var(--tide);
}
.terminal-body .hk {
  color: var(--sodium);
}
.terminal-body .ok {
  color: var(--tide);
}
.terminal-body .note {
  color: var(--brine-dim);
}
.terminal-body .row {
  white-space: pre;
}
.terminal-body .row-wrap {
  white-space: pre-wrap;
  word-break: break-all;
}
@media (max-width: 860px) {
  .headers-panel {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq {
  max-width: 52rem;
  border-top: 1px solid var(--shoal);
}
.faq details {
  border-bottom: 1px solid var(--shoal);
}
.faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--t-lg);
  font-weight: 500;
  letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: linear-gradient(var(--tide), var(--tide)) center / 14px 2px no-repeat,
    linear-gradient(var(--tide), var(--tide)) center / 2px 14px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq .faq-body {
  padding: 0 0 1.5rem;
  color: var(--brine);
  max-width: 44rem;
}
.faq .faq-body p + p {
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 3rem clamp(2rem, 1rem + 5vw, 6rem);
  align-items: start;
}
.about-intro .prose p {
  font-size: var(--t-lg);
  line-height: 1.6;
  color: #c4d6d9;
}
.about-intro .prose p + p {
  margin-top: 1.25rem;
}
.about-intro .prose p:first-child {
  color: var(--foam);
  font-size: var(--t-xl);
  line-height: 1.45;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.id-card {
  position: relative;
  border-radius: var(--radius-l);
  border: 1px solid var(--shoal);
  background: linear-gradient(160deg, var(--trench-2), var(--trench) 60%);
  overflow: hidden;
}
.id-card .id-top {
  position: relative;
  height: 180px;
  background: var(--abyss-2);
  border-bottom: 1px solid var(--shoal);
}
.id-card .id-top canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.id-card .portrait {
  position: absolute;
  left: 1.5rem;
  bottom: -56px;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--trench-2);
  box-shadow: 0 0 0 6px var(--trench-2);
  z-index: 1;
}
.id-card .portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.id-card .id-body {
  padding: 4.75rem 1.5rem 1.5rem;
}
.id-card h2 {
  font-size: var(--t-xl);
}
.id-card .role {
  color: var(--brine);
  margin-top: 0.25rem;
}
.id-card dl {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0;
}
.id-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--shoal);
  font-size: var(--t-sm);
}
.id-card dt {
  color: var(--brine);
}
.id-card dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}
.id-card .id-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
@media (max-width: 960px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
  .id-card {
    max-width: 480px;
  }
}

.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 0.5rem + 1.5vw, 1.5rem);
}
.skill {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--radius-m);
  border: 1px solid var(--shoal);
  background: var(--abyss-2);
}
.skill:first-child {
  grid-row: span 2;
  background: linear-gradient(170deg, rgba(86, 227, 203, 0.08), transparent 40%), var(--abyss-2);
}
.skill h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--t-xl);
}
.skill h3 svg {
  width: 26px;
  height: 26px;
  color: var(--tide);
}
.skill > p {
  margin-top: 0.85rem;
  color: var(--brine);
}
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}
.chips li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--shoal-2);
  color: #c9dadd;
  font-size: var(--t-xs);
  font-weight: 500;
}
@media (max-width: 760px) {
  .skills {
    grid-template-columns: 1fr;
  }
  .skill:first-child {
    grid-row: auto;
  }
}

.timeline {
  list-style: none;
  position: relative;
  max-width: 52rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(var(--tide), var(--shoal) 30%, var(--shoal));
}
.timeline li {
  position: relative;
  padding: 0 0 2.5rem 2.75rem;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--abyss);
  border: 2px solid var(--shoal-2);
}
.timeline li:first-child::before {
  border-color: var(--tide);
  background: var(--tide);
  box-shadow: 0 0 0 5px rgba(86, 227, 203, 0.15);
}
.timeline .when {
  color: var(--tide);
  font-size: var(--t-sm);
  font-weight: 600;
}
.timeline h3 {
  font-size: var(--t-lg);
  margin-top: 0.3rem;
}
.timeline p {
  margin-top: 0.5rem;
  color: var(--brine);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}
.principles h3 {
  font-size: var(--t-lg);
  padding-top: 1.25rem;
  border-top: 2px solid var(--tide);
}
.principles p {
  margin-top: 0.75rem;
  color: var(--brine);
}
@media (max-width: 860px) {
  .principles {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 3rem clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-l);
  border: 1px solid var(--shoal);
  background: var(--abyss-2);
}
.form .full {
  grid-column: 1 / -1;
}
.field {
  display: grid;
  gap: 0.45rem;
}
.field label,
.field legend {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--foam);
  padding: 0;
}
.field .opt {
  color: var(--brine-dim);
  font-weight: 400;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--shoal-2);
  border-radius: var(--radius-s);
  background: var(--abyss);
  color: var(--foam);
  font: inherit;
  font-size: var(--t-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--brine-dim);
}
.field input:hover,
.field textarea:hover {
  border-color: #3a6d7c;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--tide);
  box-shadow: 0 0 0 4px rgba(86, 227, 203, 0.14);
}
.field [aria-invalid="true"] {
  border-color: var(--danger);
}
.field .error {
  color: var(--danger);
  font-size: var(--t-xs);
  min-height: 0;
}
.field .error:empty {
  display: none;
}
fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.45rem;
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--shoal-2);
  color: var(--brine);
  font-size: var(--t-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.choice span::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid currentColor;
  transition: all 0.2s;
}
.choice input:checked + span {
  border-color: var(--tide);
  color: var(--foam);
  background: rgba(86, 227, 203, 0.1);
}
.choice input:checked + span::before {
  background: var(--tide)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2303241f' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
  border-color: var(--tide);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--tide);
  outline-offset: 2px;
}
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.form-foot small {
  color: var(--brine-dim);
  font-size: var(--t-xs);
  max-width: 30rem;
}
.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.form-status {
  grid-column: 1 / -1;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-s);
  font-size: var(--t-sm);
}
.form-status:empty {
  display: none;
}
.form-status.is-error {
  background: rgba(255, 123, 114, 0.1);
  border: 1px solid rgba(255, 123, 114, 0.4);
  color: #ffc1bc;
}
.form-done {
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-radius: var(--radius-l);
  border: 1px solid var(--tide);
  background: radial-gradient(80% 100% at 0% 0%, rgba(86, 227, 203, 0.14), transparent 60%), var(--abyss-2);
}
.form-done[hidden] {
  display: none;
}
.form-done svg {
  width: 48px;
  height: 48px;
  color: var(--tide);
}
.form-done h2 {
  margin-top: 1.25rem;
  font-size: var(--t-2xl);
}
.form-done p {
  margin-top: 0.75rem;
  color: var(--brine);
  max-width: 34rem;
}
@media (max-width: 600px) {
  .form {
    grid-template-columns: 1fr;
  }
}

.direct {
  display: grid;
  gap: 0.75rem;
}
.direct-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--shoal);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
a.direct-item:hover {
  border-color: var(--tide);
  background: rgba(86, 227, 203, 0.05);
}
.direct-item .di-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(86, 227, 203, 0.1);
  color: var(--tide);
}
.direct-item .di-icon svg {
  width: 20px;
  height: 20px;
}
.direct-item small {
  display: block;
  color: var(--brine);
  font-size: var(--t-xs);
}
.direct-item strong {
  display: block;
  font-weight: 600;
  word-break: break-word;
}
.direct-note {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-m);
  background: var(--abyss-2);
  color: var(--brine);
  font-size: var(--t-sm);
}
.direct-note strong {
  color: var(--foam);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Projects showcase
   -------------------------------------------------------------------------- */

.showcase {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.sc-side {
  position: sticky;
  top: calc(var(--header-h) + 1.25rem);
}
.sc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.sc-filter {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--shoal);
  background: transparent;
  color: var(--brine);
  font: 500 var(--t-xs) / 1.2 var(--font-text);
  cursor: pointer;
  transition: all 0.2s;
}
.sc-filter:hover {
  color: var(--foam);
  border-color: var(--shoal-2);
}
.sc-filter[aria-pressed="true"] {
  background: var(--foam);
  border-color: var(--foam);
  color: var(--abyss);
}
.sc-list {
  list-style: none;
  display: grid;
  gap: 0.25rem;
}
.sc-list li[hidden] {
  display: none;
}
.sc-item {
  width: 100%;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.6rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--foam);
  text-align: left;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.sc-item:hover {
  background: var(--abyss-2);
}
.sc-item[aria-selected="true"] {
  background: var(--trench);
  border-color: var(--shoal-2);
}
.sc-swatch {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.sc-item > span:last-child {
  min-width: 0;
}
.sc-item strong {
  display: block;
  font-weight: 600;
  font-size: var(--t-sm);
  line-height: 1.3;
}
.sc-item > span:last-child > span {
  display: block;
  color: var(--brine);
  font-size: var(--t-xs);
}
.sc-hint {
  margin-top: 1.25rem;
  color: var(--brine-dim);
  font-size: var(--t-xs);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.sc-hint kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 5px;
  border: 1px solid var(--shoal-2);
  font: 500 0.7rem var(--font-text);
  color: var(--brine);
}

.sc-stage,
.sc-side {
  min-width: 0;
}
.sc-frame {
  border-radius: var(--radius-m);
  border: 1px solid var(--shoal-2);
  background: var(--trench);
  overflow: hidden;
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.sc-frame .chrome {
  height: 50px;
  gap: 0.6rem;
}
.sc-frame .chrome-url {
  height: 32px;
  font-size: var(--t-sm);
}
.sc-devices {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: var(--abyss-2);
}
.sc-devices button,
.sc-icon-btn {
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--brine);
  cursor: pointer;
  transition: all 0.2s;
}
.sc-devices button:hover,
.sc-icon-btn:hover {
  color: var(--foam);
}
.sc-devices button[aria-pressed="true"] {
  background: var(--shoal);
  color: var(--foam);
}
.sc-devices svg,
.sc-icon-btn svg {
  width: 17px;
  height: 17px;
}
.sc-icon-btn {
  width: 34px;
  height: 34px;
  text-decoration: none;
}
.sc-viewport {
  position: relative;
  height: min(76vh, 820px);
  min-height: 520px;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0 10px, transparent 10px 20px),
    var(--abyss-2);
  display: flex;
  justify-content: center;
  overflow: hidden;
  overflow: clip;
}
.sc-screen {
  position: relative;
  width: 100%;
  height: 100%;
  transition: width 0.55s var(--ease), height 0.55s var(--ease), border-radius 0.55s var(--ease),
    margin 0.55s var(--ease);
  background: #fff;
  overflow: hidden;
  overflow: clip;
}
.sc-viewport[data-device="tablet"] .sc-screen {
  width: 820px;
  max-width: calc(100% - 2rem);
  height: calc(100% - 2.5rem);
  margin-top: 1.25rem;
  border-radius: 18px;
  box-shadow: 0 0 0 10px #10232b, 0 0 0 11px var(--shoal-2), 0 30px 60px rgba(0, 0, 0, 0.6);
}
.sc-viewport[data-device="phone"] .sc-screen {
  width: 390px;
  max-width: calc(100% - 2rem);
  height: calc(100% - 2.5rem);
  margin-top: 1.25rem;
  border-radius: 34px;
  box-shadow: 0 0 0 10px #10232b, 0 0 0 11px var(--shoal-2), 0 30px 60px rgba(0, 0, 0, 0.6);
}
.sc-screen iframe {
  width: 100%;
  height: 100%;
  max-width: none;
  transform-origin: 0 0;
  border: 0;
  background: #fff;
}
/* "switched to tablet" confirmation */
.sc-toast {
  position: absolute;
  top: 1rem;
  left: 50%;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.45rem 0.95rem 0.45rem 0.7rem;
  border-radius: 999px;
  background: var(--tide);
  color: var(--tide-ink);
  font-size: var(--t-sm);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 10px 30px -8px rgba(86, 227, 203, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translate(-50%, -8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease);
}
.sc-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.sc-toast svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.sc-toast span {
  font-weight: 500;
  opacity: 0.75;
}

/* tooltips on the preview buttons */
[data-tip] {
  position: relative;
}
@media (hover: hover) {
  [data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 20;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    background: var(--foam);
    color: var(--abyss);
    font: 600 var(--t-xs) / 1.2 var(--font-text);
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translate(-50%, -4px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  [data-tip]::before {
    content: "";
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    z-index: 20;
    border: 5px solid transparent;
    border-top: 0;
    border-bottom-color: var(--foam);
    opacity: 0;
    transform: translate(-50%, -4px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  [data-tip]:hover::after,
  [data-tip]:hover::before,
  [data-tip]:focus-visible::after,
  [data-tip]:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, 0);
    transition-delay: 0.25s;
  }
  /* keep the last tooltip from running off the right edge */
  .sc-icon-btn[data-tip]::after {
    left: auto;
    right: 0;
    transform: translate(0, -4px);
  }
  .sc-icon-btn[data-tip]:hover::after,
  .sc-icon-btn[data-tip]:focus-visible::after {
    transform: translate(0, 0);
  }
}

.sc-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--trench);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 2;
}
.sc-loading.is-on {
  opacity: 1;
}
.sc-loading span {
  width: 120px;
  height: 2px;
  background: var(--shoal);
  overflow: hidden;
  border-radius: 2px;
  position: relative;
}
.sc-loading span::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--tide);
  animation: load 0.9s var(--ease) infinite;
}
@keyframes load {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(260%);
  }
}

.sc-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem;
  margin-top: 1.75rem;
  align-items: start;
}
.sc-meta h2 {
  font-size: var(--t-2xl);
}
.sc-meta .sc-type {
  color: var(--tide);
  font-size: var(--t-sm);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.sc-meta .sc-desc {
  margin-top: 0.85rem;
  color: var(--brine);
  max-width: 42rem;
}
.sc-pager {
  display: flex;
  gap: 0.5rem;
}
.sc-pager button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--shoal-2);
  background: transparent;
  color: var(--foam);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}
.sc-pager button:hover {
  border-color: var(--tide);
  color: var(--tide);
}
.sc-pager svg {
  width: 18px;
  height: 18px;
}
.sc-details {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 2rem 3rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--shoal);
}
.sc-details h3 {
  font-family: var(--font-text);
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--foam);
  margin-bottom: 0.9rem;
}
.sc-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
}
.sc-features li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.6rem;
  color: var(--brine);
  font-size: var(--t-sm);
}
.sc-features svg {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--tide);
}
.sc-palette {
  display: flex;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  height: 44px;
  border: 1px solid var(--shoal);
}
.sc-palette span {
  flex: 1;
}
.sc-type-specimen {
  margin-top: 1rem;
  display: grid;
  gap: 0.2rem;
  color: var(--brine);
  font-size: var(--t-sm);
}
.sc-type-specimen strong {
  color: var(--foam);
  font-weight: 600;
}

@media (max-width: 1080px) {
  .showcase {
    grid-template-columns: minmax(0, 1fr);
  }
  .sc-side {
    position: static;
    min-width: 0;
  }
  .sc-list {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .sc-list li {
    flex: none;
    scroll-snap-align: start;
  }
  .sc-item {
    border-color: var(--shoal);
    padding-right: 1rem;
  }
  .sc-hint {
    display: none;
  }
}
@media (max-width: 700px) {
  .sc-viewport {
    height: 72vh;
    min-height: 480px;
  }
  .sc-devices button[data-device="tablet"] {
    display: none;
  }
  .sc-frame .chrome-dots {
    display: none;
  }
  .sc-meta,
  .sc-details {
    grid-template-columns: 1fr;
  }
  .sc-features {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.lost {
  min-height: 100svh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.lost .hero-canvas {
  z-index: -1;
}
.lost h1 {
  font-size: var(--t-hero);
  letter-spacing: -0.04em;
}
.lost p {
  margin-top: 1.25rem;
  max-width: 32rem;
}
.lost .hero-actions {
  margin-top: 2rem;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .hero [data-in] {
    opacity: 1;
    transform: none;
  }
}
