@font-face {
  font-family: "Rethink Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/rethink-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Rethink Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/rethink-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "Rethink Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/rethink-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Rethink Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/rethink-sans-700.woff2") format("woff2");
}

:root {
  --paper: #f3f0e8;
  --card: #fbf9f4;
  --ink: #1c1d1a;
  --ink-soft: #3a3d38;
  --muted: #5e5a52;
  --line: rgba(28, 29, 26, 0.14);
  --line-strong: rgba(28, 29, 26, 0.32);
  --copper: #c4512c;
  --copper-dark: #8d3416;
  --pine: #17302c;
  --danger: #8d2f1b;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Rethink Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { position: relative; line-height: 1.05; letter-spacing: -0.04em; font-weight: 600; overflow-wrap: break-word; }
h1::before, h2::before, h3::before {
  content: "./";
  position: absolute;
  right: 100%;
  top: 0;
  color: var(--copper);
  font-weight: 500;
  letter-spacing: 0;
  line-height: inherit;
}
.type-line::before { content: none; position: static; }
a { color: var(--copper-dark); }
a:hover { color: var(--copper); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
::selection { background: #f0c7b6; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: white;
  padding: 0.4rem 0.7rem;
  z-index: 50;
}
.skip:focus { top: 0.75rem; }
.sr-only, .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: 2.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #121614;
  color: #f4f1ea;
  border-top: 3px solid var(--copper);
  border-bottom: 1px solid rgba(244, 241, 234, 0.12);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
}
.logo svg { width: 1.75rem; height: 1.75rem; display: block; }
.nav { display: flex; align-items: center; gap: 1.15rem; }
.nav a {
  position: relative;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.28rem;
  height: 2px;
  background: var(--copper);
  transition: right 0.28s ease;
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { right: 0; }
.langs { display: flex; gap: 0.35rem; margin: 0; align-items: center; }
.langs a {
  color: rgba(244, 241, 234, 0.62);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.langs a.is-active { color: #f4f1ea; }
.langs span { color: rgba(244, 241, 234, 0.4); }
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.nav-btn { display: none; }

.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-dark);
}
.kicker a { color: inherit; text-decoration: none; }
.lead {
  font-size: 1.25rem;
  line-height: 1.45;
  max-width: 38rem;
  color: var(--ink-soft);
}
.prompt-band {
  background-color: #f7f5ef;
  background-image:
    linear-gradient(rgba(23, 48, 44, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 48, 44, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  padding: clamp(2.6rem, 7vw, 4.6rem) 0;
  overflow: hidden;
  animation: grid-drift 18s linear infinite;
}
.type-line {
  margin: 0;
  min-height: 1.25em;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: clamp(0.95rem, 2.15vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
}
.type-prompt,
.type-word {
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
}
.type-word {
  text-decoration: none;
  white-space: nowrap;
  border-right: 0.12em solid var(--copper);
  padding-right: 0.12em;
  animation: blink 1.05s steps(1) infinite;
}
.type-word:hover { color: var(--copper-dark); }
.actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.facts li {
  display: grid;
  gap: 0.1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.facts span { color: var(--muted); font-size: 0.95rem; }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--pine);
  color: #f6f3ec;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.btn, button.btn { transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.btn:hover, button.btn:hover { background: #21423c; color: #f6f3ec; transform: translateY(-2px); }
.btn.secondary {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.btn.secondary:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.danger {
  background: transparent;
  color: var(--danger);
  box-shadow: inset 0 0 0 1.5px var(--danger);
}
.btn.ghost {
  background: transparent;
  color: #f6f3ec;
  box-shadow: inset 0 0 0 1.5px rgba(246, 243, 236, 0.45);
}

.home-copy { padding-bottom: 2.5rem; }
.band { background: var(--pine); color: #f6f3ec; }
.band p {
  margin: 0;
  padding: 3rem 0;
  max-width: 16em;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
  font-weight: 500;
}
.section { padding-block: 2.5rem 3rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.section-title { margin-bottom: 1.2rem; }
.service-list { margin-top: 0.5rem; }
.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
  animation: rise 0.55s ease both;
}
.service-row:nth-child(2) { animation-delay: 0.04s; }
.service-row:nth-child(3) { animation-delay: 0.08s; }
.service-row:nth-child(4) { animation-delay: 0.12s; }
.service-row:nth-child(5) { animation-delay: 0.16s; }
.service-row:nth-child(6) { animation-delay: 0.2s; }
.service-row:nth-child(7) { animation-delay: 0.24s; }
.service-row:nth-child(8) { animation-delay: 0.28s; }
.service-row:nth-child(9) { animation-delay: 0.32s; }
.service-row:nth-child(10) { animation-delay: 0.36s; }
.service-row:nth-child(11) { animation-delay: 0.4s; }
.service-row:nth-child(12) { animation-delay: 0.44s; }
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row:hover,
.service-row:focus-visible {
  background: #fff;
  transform: translateX(6px);
  box-shadow: 0 12px 32px rgba(23, 48, 44, 0.07);
  z-index: 1;
}
.service-row:hover .service-name,
.service-row:focus-visible .service-name { color: var(--copper-dark); }
.service-list.compact .service-row { grid-template-columns: 3rem minmax(0, 1fr) auto; }
.idx { color: var(--copper); font-weight: 600; font-variant-numeric: tabular-nums; transition: transform 0.25s ease; }
.service-row:hover .idx { transform: translateY(-1px); }
.service-name { font-weight: 600; letter-spacing: -0.03em; font-size: 1.15rem; transition: color 0.2s ease; }
.service-desc { color: var(--muted); }
.go { color: var(--ink); transition: transform 0.25s ease; }
.service-row:hover .go,
.service-row:focus-visible .go { transform: translateX(6px); }

.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.process article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.15rem 1.3rem;
}
.step-no { margin: 0; color: var(--copper); font-weight: 600; letter-spacing: 0.06em; }
.process h3 { margin: 0.2rem 0 0.4rem; font-size: 1.35rem; }
.process p { margin: 0; color: var(--ink-soft); }

.page-head { padding-block: 3.2rem 0.5rem; }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); max-width: 18em; margin-bottom: 0.8rem; }
.intro { padding-top: 0.5rem; }
.page-body { padding-bottom: 1rem; }
.updated { padding-bottom: 3rem; }
.narrow { padding-block: 4rem 5rem; }
.narrow > * { max-width: 40rem; }
.narrow .btn { margin-top: 0.5rem; }

.service {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18.5rem;
  grid-template-areas: "head card" "body card";
  gap: 1.5rem 3rem;
  padding-top: 3.2rem;
  padding-bottom: 2rem;
}
.service-head { grid-area: head; }
.service-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 16em; }
.quote-card { grid-area: card; align-self: start; position: sticky; top: 5.5rem; }
.service .prose { grid-area: body; }
.service .updated { grid-column: 1 / -1; }
.quote-card {
  background: var(--pine);
  color: #f6f3ec;
  border-radius: 18px;
  padding: 1.3rem 1.25rem 1.2rem;
}
.quote-card h2 { font-size: 1.55rem; margin-bottom: 0.45rem; }
.quote-card h2::before { content: none; position: static; }
.quote-card p { margin: 0 0 0.8rem; }
.quote-card .kicker { color: #f0b59a; }
.quote-card .btn { background: #f6f3ec; color: var(--pine); }
.quote-card .btn:hover { background: white; color: var(--pine); }
.quote-card a { color: #f6f3ec; }
.quote-card .fine { color: rgba(246, 243, 236, 0.78); }

.prose { max-width: 68ch; }
.wrap.prose { width: min(1120px, 100%); max-width: none; }
.wrap.prose > * { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 0.6rem; }
.prose h3 { font-size: 1.15rem; margin: 1.4rem 0 0.4rem; }
.prose p, .prose ul, .prose ol { margin: 0.75rem 0; }
.prose ul, .prose ol { margin-left: -1.15rem; padding-left: 1.15rem; }
.prose li + li { margin-top: 0.35rem; }
.prose a { text-underline-offset: 3px; }
.prose blockquote {
  margin: 1.2rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--copper);
}
.prose code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(23, 48, 44, 0.08);
  padding: 0.05em 0.3em;
  border-radius: 4px;
}
.prose pre {
  background: var(--pine);
  color: #f6f3ec;
  padding: 1rem;
  border-radius: 12px;
  overflow: auto;
}
.prose pre code { background: transparent; color: inherit; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border-bottom: 1px solid var(--line); text-align: left; padding: 0.45rem 0.3rem; }
.prose img { display: block; max-width: 100%; height: auto; margin: 1rem 0; border-radius: 12px; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  padding-bottom: 4rem;
}
.text-link { font-weight: 600; }

.form { display: grid; gap: 0.9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.opt { font-weight: 500; color: var(--muted); }
input, textarea, select {
  width: 100%;
  font: inherit;
  color: inherit;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
textarea { resize: vertical; }
label.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
}
label.check input { width: 1.05rem; height: 1.05rem; margin-top: 0.2rem; }
.field-error { color: var(--danger); font-size: 0.9rem; margin: 0.25rem 0 0; }
.form-error {
  background: #f8e4dc;
  color: #6d2616;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  margin: 0;
}
.fine { color: var(--muted); font-size: 0.92rem; }
.draft-banner {
  margin: 0;
  background: #f3d7a1;
  color: #3d2a08;
  text-align: center;
  padding: 0.55rem 1rem;
}

.site-footer { border-top: 1px solid var(--line); padding-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.footer-grid a { color: inherit; }
.footer-logo { margin-bottom: 0.4rem; }
.copyright { padding-bottom: 2.5rem; }

.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: var(--pine);
  color: #f6f3ec;
}
body:has(.cookie) { padding-bottom: 6rem; }
.cookie p { margin: 0; max-width: 70ch; font-size: 0.95rem; }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie .btn { background: #f6f3ec; color: var(--pine); }
.cookie .btn:hover { background: white; color: var(--pine); }

.page-home { background: #222322; color: #eceae3; }
.page-home .home-about .lead,
.page-home .prose { color: #d8d4ca; }
.page-home h2,
.page-home h3 { color: #f6f3ec; }
.page-home .kicker { color: #e08a62; }
.page-home .prose a { color: #f0b59a; }
.page-home .site-footer {
  background: #222322;
  border-top: 1px solid rgba(244, 241, 234, 0.12);
  color: #eceae3;
}
.page-home .site-footer a { color: inherit; }
.page-home .fine { color: #b7b3a8; }
.page-home .process article {
  background: #2a2b2b;
  border-color: rgba(244, 241, 234, 0.1);
}
.page-home .process p { color: #c9c5bb; }
.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 0.8fr);
  gap: 3.5rem;
  align-items: start;
}
.blog-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.35rem; }
.blog-list a {
  display: grid;
  gap: 0.25rem;
  color: inherit;
  text-decoration: none;
}
.blog-list time {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #9c9890;
}
.blog-list h3 { margin: 0; font-size: 1.2rem; }
.blog-list p { margin: 0; color: #c9c5bb; font-size: 0.98rem; }
.blog-list a:hover h3 { color: #f0b59a; }
.home-blog h2 { position: relative; }
.home-blog h2 a { color: inherit; text-decoration: none; }
.home-blog h2 a::after { content: ""; position: absolute; inset: 0; }
.home-blog h2:hover,
.home-blog h2:hover a { color: #f0b59a; }
.blog-index { list-style: none; margin: 0; padding: 0; }
.blog-index li { border-top: 1px solid var(--line); }
.blog-index li:last-child { border-bottom: 1px solid var(--line); }
.blog-index a {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0;
  color: inherit;
  text-decoration: none;
}
.blog-index time {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.blog-index h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.blog-index p { margin: 0; max-width: 42rem; color: var(--ink-soft); }
.blog-index a:hover h2 { color: var(--copper-dark); }
.page-home .stream-label {
  margin: 0 0 0.8rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #fff;
}
.page-home .process h3::before { content: none; position: static; }
.coming { min-height: 100vh; display: flex; align-items: center; }
.coming-main { padding-block: 4rem; }
.coming .logo { margin-bottom: 1.2rem; font-size: 1.35rem; }
.coming h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0; }
.service-stream {
  margin: 0;
  max-width: 48rem;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1.12rem;
  line-height: 1.9;
}
.service-stream a {
  color: #f3f0e6;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.service-stream a:hover { color: #f0b59a; border-bottom-color: var(--copper); }
.service-stream .sep { color: #8a8680; margin: 0 0.55rem; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 60;
  pointer-events: none;
}
@keyframes blink {
  50% { border-right-color: transparent; }
}
@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 32px, 32px 0; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .service, .contact-layout, .process, .footer-grid, .home-split { grid-template-columns: 1fr; }
  .service { grid-template-areas: "head" "card" "body"; }
  .quote-card { position: static; }
  .service-row { grid-template-columns: 2.4rem minmax(0, 1fr) auto; }
  .service-desc { grid-column: 2 / -1; }
  .page-head h1, .service-head h1, .hero h1 { max-width: none; }
}
@media (max-width: 860px) {
  .nav-btn {
    display: grid;
    gap: 5px;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border: 1px solid rgba(244, 241, 234, 0.35);
    border-radius: 999px;
    align-content: center;
    justify-items: center;
  }
  .nav-btn i {
    display: block;
    width: 1rem;
    height: 1.5px;
    background: #f4f1ea;
  }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #121614;
    border-bottom: 1px solid rgba(244, 241, 234, 0.12);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.4rem 2.5rem 1rem;
  }
  .header-inner:has(.nav-toggle:checked) .nav { display: flex; }
}
@media (max-width: 700px) {
  .form-row, .cookie { grid-template-columns: 1fr; }
  .cookie { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .type-word { border-right: 0; animation: none !important; }
}
@media print {
  .site-header, .cookie, .nav-btn, .langs, .draft-banner, .quote-card, .scroll-progress { display: none !important; }
  body { background: white; }
  .site-header { position: static; }
}
