/* palette: bg=#EEEAE0 fg=#1A1A18 accent=#217A5B */
/* fonts: display="Playfair Display" body="Spectral" mono="Space Mono" */

:root {
  --bg: #EEEAE0;        /* warm paper background from reference */
  --bg-alt: #E5E1D5;    /* alternating section background */
  --paper: #F5F2EA;     /* lighter card paper */
  --fg: #1A1A18;        /* ink / primary text */
  --fg-soft: #38372F;   /* slightly lighter ink */
  --muted: #726C5E;     /* secondary text */
  --accent: #217A5B;    /* emerald accent from the reference headline */
  --accent-deep: #16593F; /* darker accent for hover */
  --border: rgba(26, 26, 24, 0.16);
  --hair: rgba(26, 26, 24, 0.10);
  --grid-line: rgba(26, 26, 24, 0.055);

  --serif: 'Playfair Display', ui-serif, Georgia, serif;
  --body: 'Spectral', ui-serif, Georgia, serif;
  --mono: 'Space Mono', ui-monospace, 'SFMono-Regular', monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.76;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--accent); color: var(--paper); }

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.section { padding: clamp(72px, 12vw, 156px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--fg); color: var(--bg); }
.section--tight { padding: clamp(56px, 8vw, 104px) 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }
.section--dark .eyebrow { color: #7fd3af; }
.section--dark .eyebrow::before { background: #7fd3af; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -0.02em; }
.h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.02; }
.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.7; color: var(--fg-soft); max-width: 46ch; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(238, 234, 224, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--hair);
  box-shadow: 0 8px 30px -18px rgba(26,26,24,0.35);
}
.header__bar { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand__mark { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }
.brand__sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 600px) { .brand__sub { display: none; } }

.nav { display: none; gap: 34px; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--fg-soft); position: relative; padding: 4px 0;
  transition: color .25s var(--ease);
}
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--accent); transition: width .3s var(--ease); }
.nav a:hover { color: var(--accent); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 12px 24px; border-radius: 999px; background: var(--accent); color: var(--paper);
  transition: transform .3s var(--ease), background .3s var(--ease), opacity .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn--light { background: var(--bg); color: var(--fg); }
.btn--light:hover { background: #fff; color: var(--fg); }
.header .btn { display: none; }
@media (min-width: 900px) { .header .btn { display: inline-flex; } }

.link-arrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 8px;
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.link-arrow::after { content: "\2192"; transition: transform .3s var(--ease); }
.link-arrow:hover { color: var(--accent-deep); }
.link-arrow:hover::after { transform: translateX(5px); }

/* hamburger */
.menu-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; }
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span { width: 22px; height: 1.6px; background: var(--fg); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 68px 0 0; z-index: 99; background: var(--bg);
  padding: 40px 24px; display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mobile-menu[data-open="true"] { opacity: 1; transform: none; pointer-events: all; }
.mobile-menu a { font-family: var(--serif); font-size: 2rem; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }

/* ---------- decorative grid backdrop ---------- */
.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 55%, transparent 100%);
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; text-align: center; padding: 120px 0 90px; width: 100%; }
.hero__eyebrow { font-family: var(--body); font-style: italic; font-size: clamp(1rem, 2.2vw, 1.35rem); color: var(--fg-soft); margin: 0 0 18px; letter-spacing: 0; }
.hero__title {
  font-family: var(--serif); font-weight: 500; color: var(--accent);
  font-size: clamp(3.4rem, 15vw, 12rem); line-height: 0.86; letter-spacing: -0.04em;
  margin: 0; position: relative; text-transform: uppercase;
}
.hero__title span { display: block; }
.hero__title em { font-style: italic; color: var(--fg); }
.hero__object {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -46%);
  width: clamp(140px, 24vw, 300px); aspect-ratio: 3/4; z-index: 3;
  overflow: hidden; border-radius: 2px; pointer-events: none;
  filter: grayscale(1) contrast(1.05);
  -webkit-mask-image: radial-gradient(ellipse 62% 74% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 74% at 50% 50%, #000 62%, transparent 100%);
}
.hero__object img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 9s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__byline { font-family: var(--body); font-style: italic; font-size: clamp(0.95rem, 1.6vw, 1.15rem); color: var(--fg-soft); margin: 26px 0 0; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); z-index: 4; }

/* scattered decorative marks */
.mark { position: absolute; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); z-index: 2; opacity: 0.8; }
.mark--a { top: 20%; left: 7%; }
.mark--b { top: 30%; right: 8%; }
.mark--c { bottom: 24%; left: 11%; }
.mark--d { bottom: 20%; right: 10%; }
.mark--kana { font-family: var(--serif); font-size: 26px; color: var(--accent); opacity: 0.6; }
@media (max-width: 760px) { .mark { display: none; } }

/* ---------- editorial split ---------- */
.split { display: grid; gap: 48px; align-items: start; }
@media (min-width: 980px) { .split { grid-template-columns: 0.82fr 1.18fr; gap: 72px; } }

.offer-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: 4px;
  padding: 30px 30px 34px; box-shadow: 0 4px 24px -4px rgba(26,26,24,0.10);
  position: sticky; top: 96px;
}
.offer-card__cover { aspect-ratio: 4/5; overflow: hidden; border-radius: 3px; margin-bottom: 24px; background: var(--bg-alt); }
.offer-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.offer-card h3 { font-size: 1.5rem; margin-bottom: 4px; }
.offer-card__note { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.plan-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 13px 0; border-top: 1px solid var(--hair); }
.plan-row:first-of-type { border-top: 0; }
.plan-row strong { font-weight: 500; }
.plan-row span { font-family: var(--mono); font-size: 13px; color: var(--fg-soft); white-space: nowrap; }
.offer-card .btn { width: 100%; margin-top: 22px; }
.offer-card__fine { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 16px 0 0; }

.excerpt h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; margin-bottom: 26px; }
.excerpt__cols { columns: 1; column-gap: 40px; }
@media (min-width: 620px) { .excerpt__cols { columns: 2; } }
.excerpt__cols p { margin: 0 0 18px; break-inside: avoid; font-size: 16px; line-height: 1.72; color: var(--fg-soft); }
.excerpt__cols p:first-child::first-letter {
  font-family: var(--serif); font-size: 3.4em; float: left; line-height: 0.8; padding: 6px 10px 0 0; color: var(--accent);
}
.chart-wrap { border: 1px solid var(--border); border-radius: 4px; padding: 22px 22px 12px; margin: 0 0 30px; background: var(--paper); }
.chart-wrap figcaption { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.chart-wrap svg { width: 100%; height: auto; display: block; }

/* ---------- manifesto ---------- */
.manifesto { text-align: center; }
.manifesto__quote {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 5vw, 3.9rem);
  line-height: 1.12; letter-spacing: -0.02em; max-width: 18ch; margin: 0 auto;
}
.manifesto__quote em { font-style: italic; color: var(--accent); }
.section--dark .manifesto__quote em { color: #7fd3af; }
.manifesto__mark { font-family: var(--serif); font-size: clamp(4rem, 10vw, 8rem); line-height: 0; color: var(--accent); opacity: 0.35; display: block; height: 0.5em; }
.section--dark .manifesto__mark { color: #7fd3af; }

/* bio / about block */
.bio { display: grid; gap: 40px; margin-top: 68px; }
@media (min-width: 900px) { .bio { grid-template-columns: 1fr 1.35fr; gap: 68px; align-items: start; } }
.bio h3 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.06; }
.bio p { margin: 0 0 18px; color: var(--fg-soft); font-size: 16.5px; }
.section--dark .bio p { color: rgba(238,234,224,0.82); }

/* ---------- services grid ---------- */
.grid-services { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-top: 56px; }
@media (min-width: 640px) { .grid-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-services { grid-template-columns: repeat(2, 1fr); } }
.svc {
  background: var(--bg); padding: 40px 34px 34px; display: flex; flex-direction: column; gap: 14px;
  transition: background .35s var(--ease);
}
.section--alt .svc { background: var(--bg-alt); }
.svc:hover { background: var(--paper); }
.svc__no { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent); }
.svc h3 { font-size: 1.55rem; line-height: 1.1; }
.svc p { margin: 0; color: var(--fg-soft); font-size: 16px; line-height: 1.68; flex: 1; }
.svc .link-arrow { margin-top: 8px; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(238,234,224,0.16); }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 40px 24px; text-align: center; background: var(--fg); }
.stat__num { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem); color: #7fd3af; line-height: 1; letter-spacing: -0.02em; }
.stat__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(238,234,224,0.7); margin-top: 12px; }

/* ---------- testimonials ---------- */
.quotes { display: grid; gap: 26px; margin-top: 56px; }
@media (min-width: 820px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: var(--paper); border: 1px solid var(--border); border-radius: 4px; padding: 30px 28px;
  display: flex; flex-direction: column; gap: 22px; box-shadow: 0 4px 24px -4px rgba(26,26,24,0.08);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.quote:hover { transform: translateY(-4px); box-shadow: 0 12px 40px -8px rgba(26,26,24,0.16); }
.quote p { margin: 0; font-family: var(--serif); font-size: 1.18rem; line-height: 1.42; font-style: italic; }
.quote__by { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; color: var(--paper); font-size: 1rem; flex: none; }
.quote__meta strong { display: block; font-weight: 500; font-family: var(--body); font-style: normal; font-size: 15px; }
.quote__meta span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 48px auto 0; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.4rem; color: var(--accent); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--fg-soft); max-width: 68ch; font-size: 16.5px; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1; margin-bottom: 22px; }
.cta .lead { margin: 0 auto 38px; }
.cta__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; max-width: 640px; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 620px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 16px; color: var(--fg); background: var(--paper);
  border: 1px solid var(--border); border-radius: 3px; padding: 13px 15px; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(33,122,91,0.14); }
.field textarea { resize: vertical; min-height: 130px; }
.form .btn { justify-self: start; }

/* contact detail list */
.contact-grid { display: grid; gap: 44px; }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.contact-list { display: grid; gap: 26px; }
.contact-item { border-top: 1px solid var(--border); padding-top: 18px; }
.contact-item .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-item .v { font-size: 17px; color: var(--fg); line-height: 1.5; }

/* ---------- footer ---------- */
.footer { background: var(--fg); color: var(--bg); padding: 84px 0 40px; }
.footer__top { display: grid; gap: 44px; }
@media (min-width: 820px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__brand .brand__mark { color: #7fd3af; font-size: 1.8rem; }
.footer__brand p { color: rgba(238,234,224,0.72); max-width: 34ch; margin: 18px 0 0; font-size: 15.5px; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(238,234,224,0.6); margin: 0 0 18px; font-weight: 400; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { color: rgba(238,234,224,0.86); font-size: 15px; transition: color .25s var(--ease); }
.footer ul a:hover { color: #7fd3af; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(238,234,224,0.16); }
.footer__bottom p { margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: rgba(238,234,224,0.6); }

/* ---------- legal / article pages ---------- */
.page-head { padding: clamp(120px, 16vw, 180px) 0 clamp(48px, 6vw, 80px); background: var(--bg-alt); }
.page-head h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 0.98; }
.page-head p { margin-top: 20px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 44px 0 16px; }
.prose h3 { font-size: 1.3rem; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--fg-soft); font-size: 16.5px; line-height: 1.74; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* thanks page */
.thanks { min-height: 76vh; display: grid; place-items: center; text-align: center; padding: 120px 0; }
.thanks h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1; margin-bottom: 20px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s var(--ease), transform .65s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__object img { animation: none; }
}

/* ---------- cookie popup ---------- */
.cookie-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; padding: 24px; background: rgba(26,26,24,0.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card { background: var(--bg); padding: 32px 34px; max-width: 480px; border-radius: 4px; border: 1px solid var(--border); box-shadow: 0 20px 60px -20px rgba(26,26,24,0.5); margin: 0 auto; }
@media (min-width: 620px) { .cookie-popup { align-items: center; } }
.cookie-popup__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.cookie-popup__card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.cookie-popup__card p { margin: 0; font-size: 14.5px; line-height: 1.62; color: var(--fg-soft); }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button { padding: 11px 24px; border: 1px solid var(--border); cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; transition: background .25s var(--ease), color .25s var(--ease); }
.cookie-popup__actions button:hover { background: var(--hair); }
.cookie-popup__actions button:last-child { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); }
