:root {
  --paper: #f4f0e6;
  --paper-2: #fbfaf6;
  --ink: #161815;
  --muted: #3e453e;
  --line: rgba(22, 24, 21, 0.14);
  --green: #0e6b52;
  --green-deep: #0a4d3b;
  --mint: #d7efe6;
  --signal: #e24b32;
  --shadow: 0 28px 70px rgba(22, 24, 21, 0.14);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --header: 76px;
  --radius: 22px;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

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

h1, h2, h3 {
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 560;
}

h1, h2 {
  font-family: var(--serif);
}

::selection {
  background: var(--green);
  color: var(--paper-2);
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 40;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 999px;
}

.skip:focus {
  top: 12px;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(244, 240, 230, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-bar,
.footer-bar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  display: block;
}

.brand-name {
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-name em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 520;
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: grid;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 8px 16px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(22, 24, 21, 0.08);
  gap: 2px;
}

.site-nav a {
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 12px;
}

.site-nav a:hover,
.site-nav a.is-active,
.site-nav a[aria-current="page"] {
  background: rgba(14, 107, 82, 0.08);
}

.nav-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  content: "";
}

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

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

.nav-cta {
  justify-self: start;
  margin: 8px 10px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--green);
  color: #f7f6f1;
  text-decoration: none;
  font-weight: 560;
  cursor: pointer;
}

.btn:hover { background: var(--green-deep); }

.btn-small { min-height: 42px; padding: 0 16px; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(22, 24, 21, 0.22);
}

.btn-ghost:hover { background: rgba(22, 24, 21, 0.05); }

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

.btn-light:hover { background: #fff; }

.btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

.btn.header-cta { display: none; }

.hero {
  position: relative;
  padding: 36px 0 28px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 24, 21, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 24, 21, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 10%, transparent 88%);
  pointer-events: none;
}

.hero-grid,
.about-grid,
.contact-grid {
  position: relative;
  display: grid;
  gap: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(226, 75, 50, 0.6);
  animation: pulse 2.2s ease infinite;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 6.4vw, 4.9rem);
  max-width: 11.5em;
}

h1 em {
  font-style: italic;
  font-weight: 520;
  color: var(--green);
}

.lead,
.section-lead {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-meta li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  transform: translateY(-1px);
}

.specimen {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: relative;
}

.specimen-top,
.specimen-chips {
  display: flex;
  align-items: center;
  gap: 8px;
}

.specimen-top {
  color: rgba(244, 240, 230, 0.62);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.window-dots {
  display: inline-flex;
  gap: 5px;
  margin-right: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a403a;
  display: block;
}

.window-dots i:first-child { background: var(--signal); }

.specimen-body { padding: 28px 10px 12px; }

.specimen-kicker {
  margin: 0 0 8px;
  color: #8fcbb6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.specimen-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 12ch;
}

.specimen-lines {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.specimen-lines span {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(244, 240, 230, 0.14);
}

.specimen-lines span:nth-child(1) { width: 78%; }
.specimen-lines span:nth-child(2) { width: 54%; }
.specimen-lines span:nth-child(3) { width: 36%; }

.specimen-chips span {
  border: 1px solid rgba(244, 240, 230, 0.2);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.85rem;
}

.specimen-badge {
  position: absolute;
  right: 22px;
  bottom: -16px;
  margin: 0;
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(22, 24, 21, 0.12);
}

.section { padding: 84px 0; }

.section-head { margin-bottom: 28px; }

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 4.4vw, 3.7rem);
  max-width: 14ch;
}

.service-grid,
.steps {
  display: grid;
  gap: 14px;
}

.service,
.steps li {
  background: rgba(251, 250, 246, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--mint);
  color: var(--green-deep);
}

.service-no {
  margin: 16px 0 6px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--green);
  font-size: 1.25rem;
}

.service h3,
.steps h3,
.principles h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.service p:last-child,
.steps p,
.principles p {
  margin-bottom: 0;
  color: var(--muted);
}

.service {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service:hover {
  border-color: rgba(14, 107, 82, 0.45);
  transform: translateY(-2px);
}

.about-plate {
  margin: 0;
}

.about-plate img,
.about-plate svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.about-plate figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.app-points {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.app-points li {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(251, 250, 246, 0.72);
}

.app-points h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.app-points p {
  margin: 0;
  color: var(--muted);
}

.app-hero,
.app-shot {
  margin: 0;
}

.app-hero a,
.app-shot a {
  display: block;
}

.app-hero img,
.app-shot img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.app-hero figcaption,
.app-shot figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.app-gallery {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.app-entry + .app-entry {
  margin-top: 72px;
}

.service a {
  color: var(--green-deep);
}

.principles {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.principles li {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.steps span {
  display: block;
  margin-bottom: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--green);
}

.contact-section {
  background: var(--ink);
  color: var(--paper);
}

.contact-section .section-lead,
.eyebrow-light {
  color: #c9c6bc;
}

.contact-facts {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
}

.contact-facts div {
  padding-top: 12px;
  border-top: 1px solid rgba(244, 240, 230, 0.16);
}

.contact-facts dt {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fcbb6;
}

.contact-facts dd {
  margin: 4px 0 0;
}

.contact-facts a { color: var(--paper); }

.contact-form {
  background: #21251f;
  border: 1px solid rgba(244, 240, 230, 0.12);
  border-radius: 28px;
  padding: 22px;
}

.field-row,
.form-fields {
  display: grid;
  gap: 14px;
}

.field label,
.consent {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.field label span,
.form-note {
  color: #b7b3a8;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(244, 240, 230, 0.16);
  background: #161815;
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 48px;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #8fcbb6;
  outline-offset: 1px;
  border-color: transparent;
}

.field-error,
.form-status {
  min-height: 0;
  margin: 6px 0 0;
  color: #ffb1a6;
  font-size: 0.88rem;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
.consent.is-invalid {
  border-color: #e24b32;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 0;
}

.consent input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--green);
}

.form-note {
  margin: 0;
  font-size: 0.85rem;
}

.form-success {
  padding: 28px 8px;
}

.form-success h3 {
  font-family: var(--serif);
  font-size: 2rem;
  margin-bottom: 8px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.site-footer {
  background: #101210;
  color: #c9c6bc;
}

.footer-bar {
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 18px 0;
  gap: 10px 24px;
}

.site-footer .brand { margin-right: 0; color: var(--paper); }
.site-footer p { margin: 0; }
.footer-copy { color: #8d8a82; }

@media (min-width: 760px) {
  .container { width: min(1120px, calc(100% - 48px)); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .app-points,
  .app-gallery { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 54px; }
}

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .btn.header-cta { display: inline-flex; }
  .nav-cta { display: none; }
  .site-nav,
  .site-nav.is-open {
    display: flex;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    align-items: center;
    gap: 4px;
  }
  .site-nav a { padding: 8px 12px; }
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1.12fr 0.88fr;
    align-items: center;
    gap: 56px;
  }
  .service-grid,
  .steps { grid-template-columns: repeat(4, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .app-points { grid-template-columns: repeat(3, 1fr); }
  .specimen { margin-bottom: 18px; }
  .contact-form { padding: 28px; }
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .service:hover { transform: none; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 75, 50, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(226, 75, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 75, 50, 0); }
}
