/* HelixNames — self-contained stylesheet. No build step, no tracking. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f0e8;
  --paper-deep: #e8e3d6;
  --cream: #fbf9f4;
  --ink: #171a17;
  --ink-soft: #3c433d;
  --muted: #6a7169;
  --line: #ddd7c9;
  --line-strong: #c6bfae;
  --pine: #1b3d34;
  --pine-hover: #142e27;
  --moss: #2c5a4c;
  --gold: #8a7044;
  --gold-soft: #b89a63;
  --tag-bg: #e4eee8;
  --tag-text: #1b3d34;
  --focus: #1b3d34;
  --shadow: 0 1px 2px rgba(23, 26, 23, 0.04), 0 8px 24px rgba(23, 26, 23, 0.05);
  --radius: 14px;
  --header-h: 72px;
  --sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  z-index: 100;
  padding: 0.5rem 0.8rem;
  background: var(--pine);
  color: var(--cream);
  text-decoration: none;
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
  color: var(--cream);
}

.wrap {
  width: min(1160px, calc(100% - 2.75rem));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand:hover {
  color: inherit;
}

.mark {
  width: 32px;
  height: 32px;
  color: var(--pine);
  flex-shrink: 0;
}

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

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.tagline {
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  font-size: 0.94rem;
  font-weight: 500;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.nav .nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  background: var(--pine);
  color: var(--cream);
  border-radius: 999px;
  text-decoration: none;
}

.nav .nav-cta:hover {
  background: var(--pine-hover);
  color: var(--cream);
}

/* Hero
   ------------------------------------------------------------------ */

.hero {
  padding: 4.25rem 0 3.4rem;
  border-bottom: 1px solid var(--line);
}

.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.35rem, 5.2vw, 3.65rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 18ch;
  color: var(--ink);
}

.hero-lead,
.hero-trust {
  margin: 0 0 1rem;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

.hero-trust {
  margin-bottom: 1.75rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary,
.card .btn {
  background: var(--pine);
  color: var(--cream);
}

.btn-primary:hover,
.card .btn:hover {
  background: var(--pine-hover);
  color: var(--cream);
}

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

.btn-ghost:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--ink-soft);
}

/* Portfolio
   ------------------------------------------------------------------ */

.portfolio {
  padding: 2.75rem 0 4.5rem;
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.toolbar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-label {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.count {
  color: var(--muted);
  font-size: 0.92rem;
}

.search {
  position: relative;
  flex: 1 1 16rem;
  max-width: 22rem;
}

.search svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 2.7rem;
  padding: 0 0.9rem 0 2.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
}

.search input::placeholder {
  color: var(--muted);
}

.search input:hover {
  border-color: #b3ab9a;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}

.pill:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--cream);
}

.pill.is-active {
  background: var(--pine);
  border-color: var(--pine);
  color: var(--cream);
}

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

.card {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  padding: 1.3rem 1.3rem 1.2rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--pine) 35%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-top {
  flex: 1;
}

.domain {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  word-break: break-word;
}

.meaning {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.card .btn {
  width: 100%;
  border-radius: 10px;
  text-decoration: none;
}

.empty {
  display: none;
  margin: 2rem 0 0;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--cream) 60%, transparent);
}

.portfolio.is-empty .empty {
  display: block;
}

.portfolio.is-empty .grid {
  display: none;
}

/* Inquiry
   ------------------------------------------------------------------ */

.inquire {
  padding: 4rem 0;
  background: var(--pine);
  color: #f3efe4;
}

.inquire .wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.inquire h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fbf9f4;
}

.inquire p {
  margin: 0 0 1rem;
  color: #d5ddd8;
  max-width: 36rem;
}

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

.inquire a {
  color: #f0e0b8;
}

.inquire a:hover {
  color: #fff8e6;
}

.form {
  background: color-mix(in srgb, #08211b 55%, #1b3d34);
  border: 1px solid color-mix(in srgb, #f3efe4 14%, transparent);
  border-radius: 16px;
  padding: 1.4rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #d5ddd8;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, #f3efe4 18%, transparent);
  background: color-mix(in srgb, #061811 70%, #1b3d34);
  color: #fbf9f4;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.98rem;
  padding: 0.7rem 0.8rem;
}

.field textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8aa197;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'><path d='M1 1.5 6 6.5 11 1.5' stroke='%23d5ddd8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.1rem;
}

.field option {
  color: #171a17;
  background: #fbf9f4;
}

.form .btn-primary {
  width: 100%;
  margin-top: 0.25rem;
  background: #f3efe4;
  color: var(--pine);
  border: 0;
}

.form .btn-primary:hover {
  background: #fff;
  color: var(--pine-hover);
}

.form-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: #9aada6;
  text-align: center;
}

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

.site-footer {
  padding: 1.6rem 0;
  background: #102820;
  color: #c5d0cb;
  border-top: 1px solid color-mix(in srgb, #f3efe4 8%, transparent);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #f0e0b8;
}

/* Responsive
   ------------------------------------------------------------------ */

@media (max-width: 960px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .inquire .wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: min(1160px, calc(100% - 1.75rem));
  }

  .tagline {
    display: none;
  }

  .hero {
    padding: 2.75rem 0 2.4rem;
  }

  .nav {
    gap: 0.85rem;
  }

  .grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .search {
    max-width: none;
    flex-basis: 100%;
  }
}

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

  .card,
  .btn {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}

.card[hidden] { display: none !important; }
.card .tag { cursor: pointer; }

.money { position: relative; }
.money-sign { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: #fbf9f4; font-size: 0.98rem; pointer-events: none; }
.field .money input { padding-left: 1.7rem; }

.flagship { background: var(--pine); color: var(--cream); padding: 3.2rem 0 3.4rem; }
.flag-label { color: #d4b56a; }
.flag-title { font-family: var(--serif, "Instrument Serif", Georgia, serif); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0.3rem 0 1.6rem; color: var(--cream); }
.flag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.flag-tile { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.3rem 1.3rem 1.15rem; border-radius: var(--radius); background: color-mix(in srgb, #ffffff 6%, var(--pine)); border: 1px solid color-mix(in srgb, #d4b56a 35%, transparent); color: var(--cream); text-decoration: none; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.flag-tile:hover { transform: translateY(-2px); border-color: #d4b56a; background: color-mix(in srgb, #ffffff 10%, var(--pine)); }
.flag-domain { font-family: var(--serif, "Instrument Serif", Georgia, serif); font-size: 1.7rem; line-height: 1.1; }
.flag-meaning { font-size: 0.9rem; color: color-mix(in srgb, var(--cream) 72%, transparent); }
.flag-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.6rem; }
.flag-price { font-weight: 600; font-size: 1.1rem; color: #e6cf94; }
.flag-cta { font-size: 0.85rem; color: var(--cream); opacity: 0.85; }
@media (max-width: 860px) { .flag-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .flag-grid { grid-template-columns: 1fr; } .flagship { padding: 2.4rem 0 2.6rem; } }

.legal { padding: 3.5rem 0 4rem; }
.legal-wrap { max-width: 760px; }
.legal .section-label a { color: inherit; text-decoration: none; }
.legal-title { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(2.2rem, 5vw, 3rem); margin: 0.4rem 0 0.2rem; }
.legal-date { color: var(--gold); font-size: 0.9rem; margin-bottom: 2rem; }
.legal h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.5rem; margin: 2rem 0 0.5rem; }
.legal p { line-height: 1.7; margin: 0 0 1rem; }
.legal a { color: var(--moss); }

/* All-caps helix wordmark */
.brand .wordmark { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.7rem; letter-spacing: 0.16em; color: var(--pine); display: inline-flex; align-items: flex-end; line-height: 1; }
.brand .helix-x { width: 0.62em; height: 0.86em; margin: 0 0.16em 0.02em 0.02em; stroke: var(--gold); flex: none; }
.brand .tagline { display: block; font-family: var(--sans); font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-top: 0.42rem; padding-top: 0.38rem; border-top: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); }
.legal-brand { display: inline-block; margin-bottom: 2.2rem; text-decoration: none; }

/* Links on domain names */
.card .domain a { color: inherit; text-decoration: none; }
.card .domain a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.flag-tile { position: relative; }
.flag-tile a.flag-domain { color: var(--cream); text-decoration: none; }
.flag-tile a.flag-domain::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.flag-tile a.flag-cta { position: relative; z-index: 1; text-decoration: none; }
.flag-tile a.flag-cta:hover { opacity: 1; text-decoration: underline; }

/* Domain landing pages */
.crumbs { font-size: 0.85rem; color: var(--muted); margin: 0 0 1.4rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--pine); text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 0.45rem; }
.dp-hero { padding: 3rem 0 2.6rem; }
.dp-hero h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: clamp(2.8rem, 7vw, 4.6rem); line-height: 1; margin: 0.35rem 0 0.6rem; color: var(--pine); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.dp-meaning { font-size: 1.25rem; color: var(--ink-soft); margin: 0 0 1.4rem; }
.dp-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; margin: 0 0 1.8rem; }
.dp-price { font-family: "Instrument Serif", Georgia, serif; font-size: 2.2rem; color: var(--pine); line-height: 1; }
.dp-price small { display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.3rem; }
.dp-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.4rem; padding: 0 0 3rem; }
.dp-body h2, .dp-related h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.7rem; margin: 0 0 0.7rem; color: var(--ink); }
.dp-body p { line-height: 1.7; color: var(--ink-soft); margin: 0 0 1rem; }
.dp-details { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); padding: 0.4rem 1.2rem; }
.dp-details div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.dp-details div:last-child { border-bottom: 0; }
.dp-details dt { color: var(--muted); font-size: 0.9rem; }
.dp-details dd { margin: 0; font-weight: 500; text-align: right; }
.dp-related { padding: 0 0 3.5rem; }
.dp-related .grid { margin-top: 1.2rem; }
.dp-back { display: inline-block; margin-top: 1.6rem; color: var(--moss); }
.dp-index h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; font-size: 1.6rem; margin: 2rem 0 0.6rem; }
.dp-index ul { list-style: none; padding: 0; margin: 0; columns: 3 14rem; }
.dp-index li { padding: 0.25rem 0; }
.dp-index li a { color: var(--pine); }
.dp-index li span { color: var(--muted); font-size: 0.9rem; margin-left: 0.4rem; }
@media (max-width: 860px) { .dp-body { grid-template-columns: 1fr; } }
