  :root {
    --bg:      #EDE9DF;
    --bg2:     #E4E0D5;
    --ink:     #17150E;
    --ink-mid: #4B4740;
    --ink-dim: #7C786F;
    --accent:  #C04020;
    --rule:    #C9C4B9;
    --ease:    cubic-bezier(0.16,1,0.3,1);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  /* Grain */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.038;
    pointer-events: none;
    z-index: 9999;
  }

  /* ─── Layout ─── */
  .wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 48px;
  }

  /* ─── Nav ─── */
  nav {
    border-bottom: 1px solid var(--rule);
    padding: 26px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav-logo {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 300;
    letter-spacing: 0.01em;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }

  .nav-logo svg { flex-shrink: 0; }

  .nav-link {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--ink-dim);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 200ms ease;
  }
  .nav-link:hover { color: var(--accent); }
  .nav-link::after { content: '↗'; font-size: 10px; }

/* ─── Nav pages ─── */
.nav-pages {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-page {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 200ms ease;
}
.nav-page:hover { color: var(--accent); }
.nav-page.is-active { color: var(--ink); }

  /* ─── Hero ─── */
  .hero {
    padding: 88px 0 72px;
  }

  .hero-name {
    opacity: 0;
    animation: riseIn 0.9s var(--ease) 0.05s forwards;
  }

  .hero-name h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(68px, 10.5vw, 138px);
    font-weight: 200;
    line-height: 0.88;
    letter-spacing: -0.035em;
    color: var(--ink);
  }

  .hero-name h1 .row2 {
    display: block;
    padding-left: clamp(60px, 9vw, 128px);
    font-style: italic;
    color: var(--ink-mid);
  }

  .hero-rule {
    width: 100%;
    height: 1px;
    background: var(--rule);
    margin: 52px 0;
    transform-origin: left;
    animation: scaleX 1s var(--ease) 0.35s both;
  }

  .hero-lower {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    opacity: 0;
    animation: riseIn 0.8s var(--ease) 0.5s forwards;
  }

  .hero-eyebrow {
    font-size: 10.5px;
    font-weight: 400;
    color: var(--ink-dim);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 18px;
  }

  .hero-desc {
    font-family: 'Fraunces', serif;
    font-size: clamp(20px, 2.4vw, 27px);
    font-weight: 300;
    line-height: 1.32;
    color: var(--ink-mid);
    letter-spacing: -0.01em;
    margin-bottom: 36px;
  }

  .cta-link {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 300;
    font-style: italic;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: gap 220ms ease;
  }
  .cta-link:hover { gap: 16px; }
  .cta-link span { font-style: normal; }

  .hero-meta {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding-top: 6px;
  }

  .meta-item {}
  .meta-label {
    font-size: 10px;
    color: var(--ink-dim);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 3px;
  }
  .meta-value {
    font-size: 12.5px;
    color: var(--ink-mid);
  }

  /* ─── Section base ─── */
  .section {
    border-top: 1px solid var(--rule);
    padding: 80px 0;
  }

  .section-label {
    font-size: 10px;
    font-weight: 400;
    color: var(--ink-dim);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 60px;
  }

  /* ─── Services ─── */
  .services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .svc {
    padding: 40px 44px 40px 0;
    border-right: 1px solid var(--rule);
    cursor: default;
  }
  .svc:not(:first-child) { padding-left: 44px; }
  .svc:last-child { border-right: none; }

  .svc-num {
    font-size: 10.5px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 22px;
    display: block;
  }

  .svc-title {
    font-family: 'Fraunces', serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
    margin-bottom: 14px;
    transition: color 200ms ease;
  }
  .svc:hover .svc-title { color: var(--accent); }

  .svc-desc {
    font-size: 12.5px;
    color: var(--ink-dim);
    line-height: 1.8;
    max-width: 230px;
  }

  /* ─── Process ─── */
  .process-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 80px;
  }

  .process-sticky {
    position: sticky;
    top: 40px;
    height: fit-content;
  }

  .process-heading {
    font-family: 'Fraunces', serif;
    font-size: clamp(34px, 4.5vw, 52px);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 20px;
  }
  .process-heading em { font-style: italic; color: var(--ink-mid); }

  .process-sub {
    font-size: 12.5px;
    color: var(--ink-dim);
    line-height: 1.8;
  }

  .steps {}

  .step {
    display: grid;
    grid-template-columns: 72px 1fr;
    padding: 34px 0;
    border-bottom: 1px solid var(--rule);
    transition: background 200ms ease;
  }
  .step:first-child { border-top: 1px solid var(--rule); }

  .step-n {
    font-family: 'Fraunces', serif;
    font-size: 60px;
    font-weight: 200;
    line-height: 1;
    color: var(--rule);
    letter-spacing: -0.04em;
    padding-top: 3px;
    transition: color 280ms ease;
  }
  .step:hover .step-n { color: var(--accent); }

  .step-body { padding-top: 7px; }

  .step-title {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 8px;
  }

  .step-desc {
    font-size: 12.5px;
    color: var(--ink-dim);
    line-height: 1.8;
    max-width: 460px;
  }

/* ─── Service detail ─── */
.service-detail {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
}

.service-sidebar {
  position: sticky;
  top: 40px;
  height: fit-content;
}

.service-content p {
  font-size: 12.5px;
  color: var(--ink-dim);
  line-height: 1.8;
  margin-bottom: 20px;
}
.service-content p:last-child {
  margin-bottom: 0;
}

  /* ─── Footer ─── */
  footer {
    border-top: 1px solid var(--rule);
    padding: 80px 0 72px;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 40px;
  }

  .footer-cta-label {
    font-size: 10px;
    font-weight: 400;
    color: var(--ink-dim);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 16px;
  }

  .footer-heading {
    font-family: 'Fraunces', serif;
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 200;
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 36px;
  }
  .footer-heading em { font-style: italic; color: var(--ink-mid); }

  .footer-email {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 400;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 220ms ease, color 200ms ease;
  }
  .footer-email:hover { gap: 14px; color: var(--ink); }
  .footer-email::after { content: '↗'; }

  .footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
  }

  .footer-li {
    color: var(--ink-dim);
    text-decoration: none;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color 200ms ease;
  }
  .footer-li:hover { color: var(--accent); }

  .footer-li svg { width: 16px; height: 16px; flex-shrink: 0; }

  .footer-copy {
    font-size: 11px;
    color: var(--ink-dim);
    opacity: 0.6;
  }

  .footer-logo { margin-bottom: 24px; }

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 6px;
}

.form-field {
  margin-bottom: 32px;
}

.form-input {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 12px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.7;
  outline: none;
  transition: border-color 200ms ease;
  resize: vertical;
}

.form-input::placeholder {
  color: var(--ink-dim);
}

.form-input:focus {
  border-bottom-color: var(--ink);
}

.form-submit {
  background: none;
  border: none;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  transition: gap 220ms ease;
}

.form-submit:hover {
  gap: 16px;
}

.form-submit span {
  font-style: normal;
}

.form-status {
  margin-top: 24px;
  font-size: 12.5px;
  line-height: 1.7;
  min-height: 1.7em;
}
.form-status--ok { color: var(--ink-mid); }
.form-status--err { color: var(--accent); }

/* ─── Blog ─── */
.post-item {
  padding: 34px 0;
  border-bottom: 1px solid var(--rule);
}
.post-item:first-child {
  border-top: 1px solid var(--rule);
}

.post-title {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 8px 0;
}
.post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}
.post-title a:hover { color: var(--accent); }

.post-excerpt {
  font-size: 12.5px;
  color: var(--ink-dim);
  line-height: 1.8;
  margin-bottom: 12px;
  max-width: 560px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.post-status {
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 6px 12px;
  display: inline-block;
  margin-bottom: 12px;
}

.post-tag {
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 200ms ease;
}
.post-tag:hover { color: var(--accent); }

.post-author-link {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 200ms ease;
}
.post-author-link:hover { color: var(--accent); }

.author-links {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.author-link {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: color 200ms ease;
}
.author-link:hover { color: var(--accent); }
.author-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ─── Post content typography ─── */
.post-content h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 48px 0 20px;
  line-height: 1.1;
}

.post-content h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 40px 0 16px;
  line-height: 1.15;
}

.post-content p {
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.8;
  margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
  font-size: 15px;
  color: var(--ink-dim);
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content blockquote {
  border-left: 1px solid var(--rule);
  padding-left: 24px;
  margin: 32px 0;
  font-family: 'Fraunces', serif;
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.4;
}

.post-content a {
  color: var(--accent);
  text-decoration: none;
  transition: color 200ms ease;
}
.post-content a:hover {
  text-decoration: underline;
}

.post-content code {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  background: var(--bg2);
  padding: 2px 6px;
}

.post-content pre {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 24px;
  margin: 32px 0;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.7;
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 32px 0;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
}

  /* ─── Animations ─── */
  @keyframes riseIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes scaleX {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }

  /* ─── Responsive ─── */
  @media (max-width: 800px) {
    .wrap { padding: 0 24px; }

    .hero { padding: 56px 0 56px; }

    .hero-lower {
      grid-template-columns: 1fr;
      gap: 36px;
    }

    .services {
      grid-template-columns: 1fr;
    }
    .svc {
      padding: 32px 0;
      border-right: none;
      border-bottom: 1px solid var(--rule);
    }
    .svc:not(:first-child) { padding-left: 0; }
    .svc:last-child { border-bottom: none; }

    .process-layout {
      grid-template-columns: 1fr;
      gap: 40px;
    }
    .process-sticky { position: static; }

    .step { grid-template-columns: 56px 1fr; }
    .step-n { font-size: 46px; }

    .footer-grid {
      grid-template-columns: 1fr;
    }
    .footer-right {
      align-items: flex-start;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 14px;
    }

    nav {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }

    .service-detail {
      grid-template-columns: 1fr;
      gap: 40px;
    }
    .service-sidebar { position: static; }

    .contact-grid {
      grid-template-columns: 1fr;
      gap: 48px;
    }
  }
