@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
  --ink: #0f2744;
  --ink-soft: #3a5168;
  --muted: #6b7f93;
  --paper: #f5f7f4;
  --paper-2: #e8eee6;
  --white: #ffffff;
  --line: rgba(15, 39, 68, 0.12);
  --line-strong: rgba(15, 39, 68, 0.28);
  --ledger: #1f6b4a;
  --ledger-soft: #d7ebe0;
  --gold: #b8892d;
  --font: 'Anuphan', sans-serif;
  --heading: 'Anuphan', sans-serif;
  --brand: 'Libre Baskerville', 'Anuphan', Georgia, serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 1080px;
  --demo-h: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    repeating-linear-gradient(
      transparent,
      transparent 31px,
      rgba(15, 39, 68, 0.035) 31px,
      rgba(15, 39, 68, 0.035) 32px
    ),
    var(--paper);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Demo bar */
.demo-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.25rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
}

.demo-bar strong {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: #9dcbb5;
}

.demo-bar__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.demo-bar a {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.demo-bar a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.demo-bar a.is-primary {
  background: var(--ledger);
  border-color: var(--ledger);
}

/* Header */
.site-header {
  position: sticky;
  top: var(--demo-h);
  z-index: 50;
  background: rgba(245, 247, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-strong);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  font-family: var(--brand);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.brand small {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ledger);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}

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

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff !important;
  font-size: 0.85rem !important;
}

.nav-cta:hover {
  background: var(--ledger) !important;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--white);
  padding: 0.4rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--ledger {
  background: var(--ledger);
  color: #fff;
  border-color: var(--ledger);
}

.btn--ledger:hover {
  background: #175538;
  border-color: #175538;
}

.btn--ink {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

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

.btn--outline:hover {
  border-color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero — ledger statement, not photo fullscreen */
.hero {
  padding: 4rem 0 3.5rem;
  border-bottom: 1px solid var(--line-strong);
}

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ledger);
  margin-bottom: 0.85rem;
}

.hero h1 {
  font-family: var(--heading);
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 16ch;
  animation: rise 0.7s var(--ease) both;
}

.hero h1 em {
  font-style: normal;
  color: var(--ledger);
  border-bottom: 3px solid var(--gold);
}

.hero__lead {
  max-width: 36ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  animation: rise 0.7s var(--ease) 0.1s both;
}

.hero__meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: right;
  line-height: 1.8;
  animation: rise 0.7s var(--ease) 0.15s both;
}

.hero__meta strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  letter-spacing: 0;
  font-family: var(--font);
}

/* Statement strip */
.statement {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1.5px solid var(--ink);
  background: var(--white);
  animation: rise 0.7s var(--ease) 0.2s both;
}

.statement article {
  padding: 1.35rem 1.25rem;
  border-right: 1px solid var(--line-strong);
}

.statement article:last-child {
  border-right: none;
}

.statement .label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.statement strong {
  font-family: var(--mono);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  display: block;
}

.statement span {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
  display: block;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
}

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.section__head .eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ledger);
  margin-bottom: 0.5rem;
}

.section__head h2 {
  font-family: var(--heading);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section__head p {
  color: var(--ink-soft);
  max-width: 34ch;
  font-size: 0.98rem;
}

/* Packages — comparison table (unique layout) */
.pkg-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1.5px solid var(--ink);
  font-size: 0.95rem;
}

.pkg-table th,
.pkg-table td {
  padding: 1rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.pkg-table thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}

.pkg-table thead th .price {
  display: block;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 0.35rem;
  color: #b8e0cb;
}

.pkg-table thead th.is-hot {
  background: var(--ledger);
}

.pkg-table thead th.is-hot .price {
  color: #fff;
}

.pkg-table tbody th {
  font-weight: 500;
  color: var(--ink-soft);
  width: 32%;
  background: var(--paper-2);
}

.pkg-table td {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.88rem;
}

.pkg-table td .yes {
  color: var(--ledger);
  font-weight: 600;
}

.pkg-table td .no {
  color: var(--muted);
}

.pkg-table tfoot td {
  border-bottom: none;
  padding: 1.15rem;
  background: var(--white);
}

.pkg-table tfoot .btn {
  width: 100%;
  font-size: 0.85rem;
  padding: 0.7rem 0.75rem;
}

/* Services list — ledger rows */
.svc-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.svc-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.svc-row__code {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ledger);
  font-weight: 500;
  padding-top: 0.2rem;
}

.svc-row h3 {
  font-family: var(--heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.svc-row p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 52ch;
}

.svc-row__fee {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  text-align: right;
}

/* About + image */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.about-visual {
  border: 1.5px solid var(--ink);
  overflow: hidden;
  aspect-ratio: 5 / 4;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.checklist li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.checklist li span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ledger);
  font-weight: 600;
  padding-top: 0.2rem;
}

/* Process — numbered ledger */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1.5px solid var(--ink);
  background: var(--white);
}

.process article {
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--line-strong);
  min-height: 180px;
}

.process article:last-child {
  border-right: none;
}

.process .num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.process h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.process p {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* FAQ */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}

.faq summary {
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--ledger);
  font-size: 1.2rem;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  max-width: 60ch;
  font-size: 0.95rem;
}

/* Contact band */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border: 1.5px solid var(--ink);
  background: var(--white);
}

.contact__info {
  padding: 2.5rem 2rem;
  background: var(--ink);
  color: #fff;
}

.contact__info .eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9dcbb5;
  margin-bottom: 0.75rem;
}

.contact__info h2 {
  font-family: var(--heading);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.contact__info > p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.info-list span {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9dcbb5;
  margin-bottom: 0.2rem;
}

.info-list strong {
  font-weight: 600;
  font-size: 0.98rem;
}

.contact__form {
  padding: 2.5rem 2rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

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

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 0.75rem 0.85rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ledger);
  background: var(--white);
}

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

/* Footer */
.site-footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line-strong);
  padding: 2.5rem 0 1.25rem;
  color: var(--ink-soft);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer__grid .brand {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.footer__grid h4 {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ledger);
  margin-bottom: 0.75rem;
}

.footer__grid a {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

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

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .statement,
  .process,
  .about-grid,
  .contact,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .statement article,
  .process article {
    border-right: none;
    border-bottom: 1px solid var(--line-strong);
  }

  .statement article:last-child,
  .process article:last-child {
    border-bottom: none;
  }

  .pkg-table {
    display: block;
    overflow-x: auto;
  }

  .svc-row {
    grid-template-columns: 56px 1fr;
  }

  .svc-row__fee {
    grid-column: 2;
    text-align: left;
    margin-top: 0.35rem;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-strong);
    padding: 0.5rem 1.25rem 1rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--line);
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero__meta {
    text-align: left;
  }

  .demo-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .wrap {
    width: min(100% - 1.5rem, var(--max));
  }
}
