:root {
  --bg: #f6f3ec;
  --paper: #fffdf8;
  --band: #efe8dc;
  --ink: #241f1b;
  --muted: #5e564c;
  --line: #e2d9cc;
  --accent: #8c3a2a;
  --link: #1a4f9c;
  --url: #137333;
  --shadow: 0 16px 40px rgba(70, 48, 24, 0.06);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

html.is-loading,
html.is-loading body {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

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

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

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

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

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
}

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 65;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 32px;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

html.is-loading .preloader {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.preloader-name {
  align-self: end;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.preloader-bar {
  height: 1px;
  margin-top: 22px;
  background: var(--line);
}

.preloader-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  animation: load 0.7s ease forwards;
}

@keyframes load {
  to {
    width: 100%;
  }
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
  padding: 0 22px;
  background: rgba(246, 243, 236, 0.92);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav.is-scrolled,
body.menu-open .nav {
  border-bottom-color: var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 14px;
}

.logo-text {
  display: grid;
  line-height: 1.15;
}

.logo-text strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
}

.logo-text small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
}

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

.clock {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s ease, top 0.2s ease, background 0.2s ease;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

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

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

.nav-toggle.is-open .nav-toggle-lines {
  background: transparent;
}

.nav-toggle.is-open .nav-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-short {
  display: none;
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

@media (hover: hover) {
  .btn-solid:hover {
    background: #3a332c;
  }
}

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

@media (hover: hover) {
  .btn-ghost:hover {
    border-color: var(--ink);
  }
}

.btn-xl {
  min-height: 52px;
  padding: 0 20px;
}

.menu[hidden] {
  display: none !important;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 96px 28px 36px;
  background: var(--bg);
}

.menu-link {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-decoration: none;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 92px 0 28px;
}

.hero-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 36px;
  align-items: stretch;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.95;
  overflow-wrap: anywhere;
}

.person-name {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.person-host {
  margin-top: 2px;
  color: var(--accent);
  font-size: 0.95rem;
}

.lead {
  max-width: 38rem;
  margin-top: 18px;
  font-size: 1.12rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  display: grid;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.hero-facts b {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1;
}

.hero-facts span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.hero-points li {
  min-width: 0;
}

.hero-points span {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--accent);
  font-size: 0.95rem;
}

.hero-points strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero-points p {
  color: var(--muted);
  font-size: 0.95rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.live {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.serp {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 18px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.serp-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.serp-person div:nth-child(2) {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.serp-person strong {
  font-size: 0.98rem;
}

.serp-person span {
  color: var(--muted);
  font-size: 0.88rem;
}

.monogram {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 15px;
}

.serp-label {
  margin-top: 16px;
}

.serp-query {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.serp-query span {
  color: var(--muted);
  font-size: 0.82rem;
}

.serp-query b {
  font-weight: 600;
  transition: opacity 0.18s ease;
}

.serp-query b.is-swap {
  opacity: 0;
}

.serp-title {
  color: var(--link);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.serp-url {
  margin-top: 4px;
  color: var(--url);
  font-size: 0.9rem;
}

.serp-desc {
  flex: 1;
  margin-top: 8px;
  color: var(--ink);
}

.serp-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.section,
.method,
.principle {
  padding: 88px 0;
  scroll-margin-top: 80px;
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head h2,
.principle blockquote,
.contact h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-head h2,
.contact h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.section-head p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.card,
.task-card {
  padding: 22px 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.card-index,
.task-card > span {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--accent);
  font-size: 0.95rem;
}

.card h3,
.task-card h3 {
  margin: 18px 0 8px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card p,
.task-card p {
  color: var(--muted);
}

.method {
  background: var(--band);
}

.method ol {
  list-style: none;
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.method-layout {
  position: relative;
}

.method-line {
  position: absolute;
  left: 15px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: #d7cdbf;
}

.method-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
}

.method-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.step-num {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  color: var(--accent);
  line-height: 1.4;
}

.method-step h3 {
  margin: 0 0 6px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.method-step p {
  max-width: 40rem;
  color: #3a342e;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.principle {
  padding-top: 28px;
  padding-bottom: 28px;
}

.principle blockquote {
  max-width: 22em;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.principle p {
  margin: 14px 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 32px;
  align-items: start;
}

.faq-layout .section-head {
  grid-template-columns: 1fr;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0;
}

.faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
}

.faq-item button i {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.faq-item button i::before,
.faq-item button i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.faq-item button i::after {
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.faq-item.is-open button i::after {
  transform: rotate(0deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a > div {
  overflow: hidden;
}

.faq-a p {
  padding-bottom: 18px;
  max-width: 46rem;
  color: var(--muted);
}

.contact {
  padding: 12px 0 80px;
  scroll-margin-top: 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 36px;
  align-items: start;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-solo {
  width: min(720px, calc(100% - 48px));
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.portrait {
  margin: 0;
}

.portrait img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 4px;
  background: var(--band);
}

.portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-top: 10px;
}

.portrait figcaption strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
}

.portrait figcaption span {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.contact h2 {
  max-width: 16em;
}

.contact-lead {
  max-width: 36rem;
  margin-top: 10px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d5cbbd;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 12px;
  font: inherit;
  font-size: 16px;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

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

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #b42318;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--accent);
}

.footer {
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 16px 28px;
  align-items: end;
  flex-wrap: wrap;
}

.footer strong {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 500;
}

.footer p,
.footer-host {
  color: var(--muted);
}

.footer a {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--muted);
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.to-top.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal-fallback 0.01s 1.2s forwards;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  animation: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes reveal-fallback {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1040px) {
  .nav-links,
  .clock {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .btn-full {
    display: none;
  }

  .btn-short {
    display: inline;
  }
}

@media (max-width: 980px) {
  .hero {
    display: block;
    min-height: 0;
    padding-top: 88px;
  }

  .hero-grid,
  .section-head,
  .faq-layout,
  .card-grid,
  .task-grid,
  .contact-grid,
  .form-row,
  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-points {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .portrait img {
    height: 420px;
  }

  .portrait figcaption {
    flex-direction: column;
    align-items: start;
  }

  .portrait figcaption span {
    text-align: left;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(1120px, calc(100% - 32px));
  }

  .nav {
    padding: 0 14px;
  }

  .logo-text small {
    display: none;
  }

  .section,
  .method,
  .principle {
    padding: 64px 0;
  }

  .hero {
    padding-top: 84px;
  }

  .portrait img {
    height: 360px;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .card,
  .task-card,
  .serp {
    padding: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal,
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .method-line span {
    transform: none;
  }
}
