:root {
  --bg: #fbf6f0;
  --surface: #ffffff;
  --ink: #2b1208;
  --ink-soft: #55392c;
  --muted: #7f6a5e;
  --line: #ecdfd2;
  --brand: #4a1a08;
  --copper: #b8733a;
  --accent: #a0602a;
  --dark: #2b1208;
  --dark-line: rgba(255, 255, 255, 0.12);
  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --sans: "Inter", system-ui, sans-serif;
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 16ch; }
h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.js-anim [data-reveal] { opacity: 0; transform: translateY(24px); }
.js-anim [data-lines] > span > span { transform: translateY(105%); }
[data-lines] > span { display: block; overflow: hidden; padding-bottom: 0.06em; }
[data-lines] > span > span { display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 0.95rem var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 0.9rem; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent); }
.btn--ghost { border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.link { display: inline-flex; gap: 8px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link span { transition: transform 0.3s var(--ease); }
.link:hover span { transform: translateX(4px); }

.label { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 20px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 240, 0.8);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__logo { height: 64px; width: auto; }
.brand__name { font: 700 1.02rem var(--display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--brand); }
.brand__name span { color: var(--copper); }
.nav { display: flex; gap: 32px; }
.nav a { font-size: 0.92rem; color: var(--ink-soft); transition: color 0.2s; }
.nav a:hover { color: var(--ink); }
.menu { display: none; }

/* Hero */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 10vw, 140px) var(--gutter) clamp(48px, 6vw, 80px); }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; color: var(--ink-soft); background: var(--surface); margin-bottom: 36px; }
.tag__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(160, 96, 42, 0.18); }
.hero__title { font-size: clamp(2.9rem, 8.4vw, 7.4rem); letter-spacing: -0.05em; line-height: 0.98; }
.hero__title em { letter-spacing: -0.03em; }
.hero__foot { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-top: clamp(36px, 5vw, 64px); }
.hero__lead { max-width: 500px; font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--ink-soft); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Banner */
.banner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.banner__clip { border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: #d9d7d1; }
.banner__img { width: 100%; height: 125%; object-fit: cover; object-position: center 40%; }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--gutter) 0; }
.section__head { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); align-items: start; }
.section__head .label { margin: 10px 0 0; }

/* Services */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 18px; }
.panel__lead { color: var(--ink-soft); font-size: 1.05rem; }
.ticks { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 22px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 8px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg) translateY(-2px);
}
.panel .link { align-self: flex-start; margin-top: auto; }

/* Spaces */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  align-items: baseline;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.row::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * min(var(--gutter), 24px));
  background: var(--surface);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0;
  transform: scaleY(0.6);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.row:hover::before { opacity: 1; transform: none; }
.row__n { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.row h3 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; transition: transform 0.35s var(--ease); }
.row:hover h3 { transform: translateX(8px); }
.row p { color: var(--muted); }

/* Coverage (dark) */
.section--dark { max-width: none; background: var(--dark); color: #fff; margin-top: clamp(80px, 11vw, 150px); padding-bottom: clamp(80px, 11vw, 150px); }
.section--dark .label { color: rgba(255, 255, 255, 0.5); }
.section--dark em { color: #dc9a5e; }
.section--dark em { color: #7fd1bf; }
.coverage { max-width: calc(var(--max) - 2 * var(--gutter)); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.coverage__lead { color: rgba(255, 255, 255, 0.65); margin-top: 24px; max-width: 420px; font-size: 1.05rem; }
.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; align-content: start; }
.areas li { padding: 18px 0; border-bottom: 1px solid var(--dark-line); font: 500 1.1rem var(--display); letter-spacing: -0.01em; display: flex; justify-content: space-between; }
.areas li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7fd1bf; align-self: center; opacity: 0.6; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { border-top: 1px solid var(--ink); padding-top: 22px; display: grid; gap: 10px; align-content: start; }
.steps span { font-size: 0.82rem; color: var(--muted); }
.steps h3 { font-size: 1.6rem; }
.steps p { color: var(--ink-soft); max-width: 26ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); padding-bottom: clamp(80px, 11vw, 150px); }
.contact__lead { color: var(--ink-soft); margin: 24px 0 40px; max-width: 440px; font-size: 1.05rem; }
.details { margin: 0; display: grid; border-top: 1px solid var(--line); }
.details div { display: grid; grid-template-columns: 90px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); font-size: 0.88rem; }
.details dd { margin: 0; font-weight: 500; }
.details a:hover { color: var(--accent); }

.form { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); display: grid; gap: 18px; overflow: hidden; align-self: start; }
.segment { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 4px; border: 0; background: var(--bg); border-radius: 999px; }
.segment__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--ink); border-radius: 999px; transition: transform 0.45s var(--ease); }
.segment.is-owner .segment__pill { transform: translateX(100%); }
.segment label { position: relative; z-index: 1; cursor: pointer; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span { display: block; text-align: center; padding: 11px 8px; font-size: 0.9rem; font-weight: 500; border-radius: 999px; transition: color 0.3s; }
.segment input:checked + span { color: #fff; }
.segment input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field > span { font-size: 0.82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 1rem var(--sans);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2374767b' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); background: var(--surface); }
.field.is-invalid input { border-color: #c2412d; }
.form__note { font-size: 0.8rem; color: var(--muted); text-align: center; }
.form__note.is-error { color: #c2412d; }
.form button[disabled] { opacity: 0.6; cursor: progress; }
.form__done {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--surface);
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
}
.form.is-done .form__done { visibility: visible; opacity: 1; }
.form__check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; margin-bottom: 8px; }
.form__done h3 { font-size: 2rem; }
.form__done p { color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; font-size: 0.88rem; color: var(--muted); }
.footer__inner .brand { color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .hero__foot { flex-direction: column; align-items: start; }
  .section__head { grid-template-columns: 1fr; }
  .section__head .label { margin: 0; }
  .split, .coverage, .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .row { grid-template-columns: 48px 1fr; }
  .row p { grid-column: 2; margin-top: -12px; }
  .banner__clip { aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  .header__inner { gap: 12px; }
  .header__inner > .btn { display: none; }
  .brand__logo { height: 52px; }
  .menu { display: grid; place-content: center; gap: 6px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; }
  .menu span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease); }
  .header.is-open .menu span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .header.is-open .menu span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .header.is-open .nav { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font: 500 1.3rem var(--display); color: var(--ink); }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 100%; }
}

@media (max-width: 560px) {
  .steps, .areas, .form__grid { grid-template-columns: 1fr; }
  .banner__clip { aspect-ratio: 4 / 5; }
  .footer__inner { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}
