/* Tetherix Studio — design system
   Ink and paper carry everything. Blue is a signal, not a mood. */

:root {
  --ink: #0F1315;
  --ink-2: #1B2124;
  --ink-3: #2A3135;
  --slate: #5F6A70;
  --slate-light: #8A959B;
  --paper: #F4F5F2;
  --paper-2: #E8EAE6;
  --white: #FFFFFF;
  --border: #DDE0DC;
  --border-dark: #2A3135;
  --blue-tint: #E6EDFC;
  --blue-tint-border: #C9D8F6;
  --blue: #2C6BE0;
  --body-on-paper: #1B2124;
  --body-on-ink: #B9C0C4;
  --header-h: 74px;

  --font-sans: "Instrument Sans", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover { color: var(--ink); }

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

input, textarea, select, button {
  font-family: inherit;
}

.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate);
}

.label--on-ink { color: var(--slate-light); }
.label--accent { color: var(--blue); }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .wrap { padding: 0 40px; }
}

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  line-height: 1.2;
}

.btn-primary {
  background: var(--blue);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--ink); color: #FFFFFF; }

.btn-dark {
  background: var(--ink);
  color: var(--paper);
}
.btn-dark:hover { background: var(--blue); color: #FFFFFF; }

.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-outline--on-ink {
  border: 1px solid var(--body-on-ink);
  color: var(--paper);
}
.btn-outline--on-ink:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn-ghost {
  color: var(--blue);
  border-bottom: 1px solid var(--blue);
  padding-bottom: 2px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-ghost--on-ink { color: var(--blue); }
.btn-ghost--on-ink:hover { color: var(--paper); border-color: var(--paper); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 245, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (min-width: 640px) {
  .site-header__inner { padding: 0 40px; }
}

.logo {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo__word {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.logo__dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  display: block;
  margin-bottom: 4px;
  flex-shrink: 0;
}

.logo--footer .logo__word { font-size: 20px; }

.main-nav {
  display: none;
  align-items: center;
  gap: 34px;
}

@media (min-width: 860px) {
  .main-nav { display: flex; }
}

.main-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
}
.main-nav__links a:hover,
.main-nav__links a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0;
}
@media (min-width: 860px) {
  .nav-toggle { display: none; }
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}
.mobile-nav.is-open { display: flex; }
@media (min-width: 860px) {
  .mobile-nav { display: none !important; }
}
.mobile-nav__inner {
  padding: 8px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav a {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .btn { margin-top: 16px; align-self: flex-start; }

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
@media (min-width: 860px) { .section { padding: 88px 0; } }

.section--tight { padding: 48px 0; }

.on-ink { background: var(--ink); color: var(--paper); }
.on-paper2 { background: var(--paper-2); }
.on-white { background: var(--white); }
.on-tint { background: var(--blue-tint); border-top: 1px solid var(--blue-tint-border); border-bottom: 1px solid var(--blue-tint-border); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate);
}
.eyebrow--accent { color: var(--blue); }
.eyebrow--on-ink { color: var(--slate-light); }

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

p { margin: 0; }

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

.hero {
  padding: 56px 0 72px;
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .hero {
    padding: 88px 0 100px;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 56px;
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (min-width: 640px) { .hero__content { gap: 28px; } }

.hero__title {
  font-size: 40px;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
@media (min-width: 640px) { .hero__title { font-size: 50px; } }
@media (min-width: 1024px) { .hero__title { font-size: 60px; line-height: 1.04; } }

.hero__sub {
  font-size: 17px;
  line-height: 1.62;
  color: var(--body-on-paper);
  max-width: 46ch;
}
@media (min-width: 640px) { .hero__sub { font-size: 19px; } }

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__art {
  height: 280px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, transparent 48%, var(--border) 48% 52%, transparent 52%) 0 0/28px 28px,
    var(--paper);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
@media (min-width: 640px) { .hero__art { height: 360px; } }
@media (min-width: 900px) { .hero__art { height: 460px; } }

.hero__art-mark {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--ink);
  padding: 20px 22px;
}
.hero__art-mark span:first-child {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--paper);
  line-height: 1;
}
.hero__art-mark .dot {
  width: 8px; height: 8px;
  background: var(--blue);
  margin-bottom: 4px;
}

/* ---------- Problem cards ---------- */

.problem-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.problem-head h2 { font-size: 30px; max-width: 24ch; line-height: 1.16; }
@media (min-width: 640px) { .problem-head h2 { font-size: 38px; } }
.problem-head p { font-size: 16px; line-height: 1.6; color: var(--slate-light); max-width: 38ch; }

.problem-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) {
  .problem-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.problem-card {
  background: var(--ink-2);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 640px) { .problem-card { padding: 36px; } }
.problem-card__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blue); }
.problem-card__title { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
@media (min-width: 640px) { .problem-card__title { font-size: 24px; } }
.problem-card__body { font-size: 15px; line-height: 1.65; color: var(--body-on-ink); }

/* ---------- How it works ---------- */

.process {
  display: grid;
  gap: 40px;
}
@media (min-width: 860px) {
  .process { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
}
.process__intro { display: flex; flex-direction: column; gap: 16px; }
.process__intro h2 { font-size: 30px; max-width: 18ch; line-height: 1.16; }
@media (min-width: 640px) { .process__intro h2 { font-size: 38px; } }
.process__intro p { font-size: 16px; line-height: 1.65; color: var(--slate); max-width: 38ch; }

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) { .step { grid-template-columns: 56px 1fr; gap: 24px; padding: 28px 0; } }
.step__num { font-family: var(--font-mono); font-size: 13px; color: var(--blue); padding-top: 4px; }
.step__title { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; display: block; margin-bottom: 8px; }
@media (min-width: 640px) { .step__title { font-size: 21px; } }
.step__body { font-size: 15px; line-height: 1.65; color: var(--slate); max-width: 52ch; }

/* ---------- About panel ---------- */

.about-panel {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 32px;
  display: grid;
  gap: 32px;
}
@media (min-width: 640px) { .about-panel { padding: 44px; } }
@media (min-width: 900px) {
  .about-panel { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px; }
}
.about-panel__lead { display: flex; flex-direction: column; gap: 18px; }
.about-panel__lead h2 { font-size: 26px; letter-spacing: -0.028em; line-height: 1.2; max-width: 22ch; }
@media (min-width: 640px) { .about-panel__lead h2 { font-size: 32px; } }
.about-panel__body { display: flex; flex-direction: column; gap: 18px; }
.about-panel__body p { font-size: 16px; line-height: 1.7; color: var(--body-on-paper); }

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

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 28px; max-width: 26ch; line-height: 1.18; }
@media (min-width: 640px) { .cta-band h2 { font-size: 34px; } }

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.cta-stack h2 { font-size: 32px; max-width: 22ch; line-height: 1.14; }
@media (min-width: 640px) { .cta-stack h2 { font-size: 42px; } }
.cta-stack p { font-size: 17px; line-height: 1.6; color: var(--slate-light); max-width: 48ch; }

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

.services-head {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 20px;
}
@media (min-width: 860px) {
  .services-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; }
}
.services-head__col { display: flex; flex-direction: column; gap: 16px; }
.services-head h1 { font-size: 36px; max-width: 20ch; line-height: 1.1; }
@media (min-width: 640px) { .services-head h1 { font-size: 46px; } }
@media (min-width: 1024px) { .services-head h1 { font-size: 52px; } }
.services-head p { font-size: 16px; line-height: 1.65; color: var(--slate); max-width: 38ch; }

.back-link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--slate);
  align-self: flex-start;
}
.back-link:hover { color: var(--ink); }
.back-link--on-ink { color: var(--slate-light); }
.back-link--on-ink:hover { color: var(--paper); }

.service-row {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  display: grid;
  gap: 20px;
}
@media (min-width: 720px) {
  .service-row { grid-template-columns: 56px 1fr; padding: 40px 0; gap: 28px; }
}
@media (min-width: 1024px) {
  .service-row { grid-template-columns: 80px 1fr 1fr; padding: 44px 0; gap: 40px; }
}
.service-row__num { font-family: var(--font-mono); font-size: 12px; color: var(--blue); padding-top: 6px; }
.service-row__main { display: flex; flex-direction: column; gap: 12px; }
.service-row__title { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
@media (min-width: 640px) { .service-row__title { font-size: 28px; } }
.service-row__body { font-size: 15px; line-height: 1.65; color: var(--slate); max-width: 40ch; }
@media (min-width: 640px) { .service-row__body { font-size: 16px; } }
.service-row__items { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.service-row__item {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body-on-paper);
}
.service-row__item::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--ink);
  display: block;
  margin-top: 8px;
}

.ask-line {
  border-top: 1px solid var(--border);
  padding: 32px 0 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 16px;
  color: var(--slate);
}

.care-panel {
  padding: 32px;
  display: grid;
  gap: 32px;
}
@media (min-width: 640px) { .care-panel { padding: 40px; } }
@media (min-width: 860px) {
  .care-panel { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px; }
}
.care-panel__lead { display: flex; flex-direction: column; gap: 14px; }
.care-panel__lead h2 { font-size: 26px; letter-spacing: -0.028em; line-height: 1.2; max-width: 22ch; }
@media (min-width: 640px) { .care-panel__lead h2 { font-size: 32px; } }
.care-panel__lead p { font-size: 16px; line-height: 1.65; color: var(--body-on-paper); max-width: 40ch; }
.care-panel__list { display: flex; flex-direction: column; gap: 12px; }
.care-panel__list li {
  list-style: none;
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.55;
}
.care-panel__list li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--blue);
  display: block;
  margin-top: 8px;
}
.care-panel__list { margin: 0; padding: 0; }

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

.contact-shell {
  display: grid;
  gap: 48px;
  padding: 56px 0 72px;
}
@media (min-width: 900px) {
  .contact-shell { grid-template-columns: 0.85fr 1.15fr; gap: 72px; padding: 80px 0 96px; align-items: start; }
}

.contact-info { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 640px) { .contact-info { gap: 36px; } }
.contact-info__top { display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 640px) { .contact-info__top { gap: 20px; } }
.contact-info h1 { font-size: 36px; letter-spacing: -0.038em; line-height: 1.08; }
@media (min-width: 640px) { .contact-info h1 { font-size: 44px; } }
@media (min-width: 1024px) { .contact-info h1 { font-size: 52px; line-height: 1.04; } }
.contact-info__top p { font-size: 16px; line-height: 1.65; color: var(--body-on-ink); max-width: 36ch; }
@media (min-width: 640px) { .contact-info__top p { font-size: 17px; } }

.contact-info__meta {
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-top: 1px solid var(--border-dark);
  padding-top: 28px;
}
.contact-info__meta-item { display: flex; flex-direction: column; gap: 5px; }
.contact-info__meta-item span:first-child { color: var(--slate-light); }
.contact-info__meta-item span:last-child,
.contact-info__meta-item a { font-size: 15px; color: var(--paper); }
.contact-info__meta-item a { font-weight: 500; color: var(--blue); }
.contact-info__meta-item a:hover { color: var(--paper); }

.contact-panel {
  background: var(--paper);
  color: var(--ink);
  padding: 28px;
}
@media (min-width: 640px) { .contact-panel { padding: 40px; } }
@media (min-width: 1024px) { .contact-panel { padding: 48px; } }

.field-grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 560px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
}

.field { display: flex; flex-direction: column; gap: 9px; }
.field > span,
.field > label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}
.field input,
.field textarea,
.field select {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 13px 14px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  appearance: none;
  width: 100%;
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%235F6A70'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 30px;
}
.field textarea { resize: vertical; line-height: 1.6; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
}

.form-block { display: flex; flex-direction: column; gap: 26px; }

.chip-group { display: flex; flex-direction: column; gap: 12px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--body-on-paper);
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}
.chip input {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.chip.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.chip:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 26px;
}
.form-footer p { font-size: 13px; color: var(--slate); max-width: 34ch; line-height: 1.5; }

.form-status {
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-error { border-color: #c0392b; color: #8f2a1f; background: #fdeeec; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.success-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 32px 0;
}
.success-panel .dot { width: 10px; height: 10px; background: var(--blue); }
.success-panel h2 { font-size: 26px; letter-spacing: -0.028em; line-height: 1.2; max-width: 24ch; }
@media (min-width: 640px) { .success-panel h2 { font-size: 30px; } }
.success-panel p { font-size: 16px; line-height: 1.65; color: var(--slate); max-width: 44ch; }

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

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--border);
}
.site-footer__inner {
  padding: 44px 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (min-width: 720px) {
  .site-footer__inner { padding: 56px 0; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; }
}
.site-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.site-footer__brand .fine { font-size: 13px; color: var(--slate); }
.site-footer__links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
@media (min-width: 720px) { .site-footer__links { gap: 26px; } }
.site-footer__links a { font-size: 14px; color: var(--slate); }
.site-footer__links a:hover { color: var(--ink); }

/* ---------- Utility ---------- */

.text-wrap-pretty { text-wrap: pretty; }
.js-only { display: none; }
.no-js .js-only { display: none !important; }
