:root {
  --ink: #1a1a1a;
  --muted: #555;
  --paper: #f7f4ef;
  --card: #fff;
  --line: #e2dcd3;
  --accent: #2c4a3e;
  --caption: #6a635a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

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

.wrap { width: min(920px, 92vw); margin: 0 auto; }

.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  z-index: 2;
}

.brand {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tag { margin: 0.25rem 0 1rem; color: var(--muted); font-size: 0.95rem; }

/* Full-bleed hero with photographic backdrop */
.hero {
  position: relative;
  min-height: clamp(28rem, 70vw, 36rem);
  display: flex;
  align-items: flex-end;
  padding: 0 0 2.5rem;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 22, 18, 0.78) 0%, rgba(18, 22, 18, 0.55) 48%, rgba(18, 22, 18, 0.28) 100%),
    linear-gradient(0deg, rgba(18, 22, 18, 0.55) 0%, transparent 45%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
}

.hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  line-height: 1.25;
  margin: 0 0 1rem;
  max-width: 18ch;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero .lede {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 58ch;
}

.hero-caption {
  margin: 1.25rem 0 0.35rem;
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
}

.hero-fig,
.media-caption {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.7rem 1.1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
}

.btn:hover { filter: brightness(1.08); }

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 2.5rem 0;
}

.cards article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 0 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cards article > h2,
.cards article > p {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

.card-photo {
  margin: 0 0 1rem;
}

.card-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-photo figcaption,
.who-photo figcaption,
.atmosphere-figure figcaption {
  margin: 0.45rem 0.9rem 0;
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--caption);
}

.cards h2 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.cards p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Atmosphere band between How we work and Who we’re for */
.atmosphere {
  margin: 0 0 2.5rem;
  background: #2a2620;
}

.atmosphere-figure {
  margin: 0;
}

.atmosphere-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.atmosphere-figure figcaption {
  margin: 0 auto;
  padding: 0.65rem 0 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.note { padding: 0 0 3rem; }
.note h2 { margin-bottom: 0.4rem; font-size: 1.2rem; }

.who-for-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.who-photo {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.who-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.who-photo figcaption {
  margin: 0.5rem 0.9rem 0.75rem;
}

@media (max-width: 720px) {
  .who-for-grid { grid-template-columns: 1fr; }
  .hero { min-height: 32rem; }
  .hero h1 { max-width: none; }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-family: system-ui, sans-serif;
}

.site-footer a { color: var(--accent); }
.site-footer p { margin: 0.35rem 0; }
.site-footer .footer-nav { margin-top: 0.75rem; }
.site-footer .footer-nav a { margin-right: 1rem; }
.site-footer .media-note {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  max-width: 62ch;
  color: var(--caption);
}

/* Legal / secondary pages */
.legal { padding: 2.5rem 0 3rem; max-width: 62ch; }
.legal h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.75rem; }
.legal h2 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2rem; }
.legal .meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.5rem; }
.site-header a.brand-link { color: inherit; text-decoration: none; }


/* Ask box */
.ask-section {
  padding: 2.5rem 0 1rem;
}
.ask-section h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin: 0 0 0.5rem;
  max-width: 28ch;
}
.ask-help {
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 1rem;
}
.ask-box { margin: 0; }
.ask-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem;
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.05);
}
.ask-meta {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 0.75rem;
}
.ask-field {
  position: relative;
  margin: 0;
  min-width: 0;
}
.ask-field input,
.ask-field select,
.ask-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f1efe9;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  line-height: 1.3;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ask-field input,
.ask-field select {
  height: 3.15rem;
  padding: 1.2rem 0.95rem 0.45rem;
}
.ask-field textarea {
  min-height: 7.5rem;
  padding: 1.4rem 0.95rem 0.8rem;
  resize: vertical;
  display: block;
}
.ask-field select {
  appearance: none;
  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 fill='%236a635a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.25rem;
}
.ask-field label {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: var(--caption);
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.ask-field-area label {
  top: 1.15rem;
  transform: none;
}
.ask-field input:focus,
.ask-field select:focus,
.ask-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: rgba(44, 74, 62, 0.35);
  box-shadow: 0 0 0 4px rgba(44, 74, 62, 0.12);
}
.ask-field input:focus + label,
.ask-field input:not(:placeholder-shown) + label,
.ask-field select:focus + label,
.ask-field select:not([value=""]):valid + label,
.ask-field textarea:focus + label,
.ask-field textarea:not(:placeholder-shown) + label {
  top: 0.42rem;
  transform: none;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--accent);
}
/* keep select label floated when empty option selected via :has or class - JS optional */
.ask-field-select select:focus + label,
.ask-field-select.select-filled label {
  top: 0.42rem;
  transform: none;
  font-size: 0.68rem;
  color: var(--accent);
}
.ask-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
  margin-top: 0.9rem;
}
.btn-ask {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  margin-top: 0;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(44, 74, 62, 0.22);
}
.btn-ask:disabled { opacity: 0.7; box-shadow: none; }
.ask-note {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--caption);
  max-width: 44ch;
  line-height: 1.4;
}
.ask-reply {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.ask-reply-cat {
  margin: 0 0 0.35rem;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.ask-reply-next {
  margin: 0.75rem 0 0;
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--caption);
}

/* Service tabs */
.services {
  padding: 1.5rem 0 2.5rem;
}
.tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.tab {
  appearance: none;
  border: 1px solid transparent;
  border-bottom: none;
  background: transparent;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  padding: 0.65rem 1rem;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
}
.tab:hover {
  color: var(--ink);
  background: rgba(44, 74, 62, 0.06);
}
.tab.is-active {
  color: var(--ink);
  background: var(--card);
  border-color: var(--line);
  font-weight: 600;
  margin-bottom: -1px;
  padding-bottom: calc(0.65rem + 1px);
}
.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.tab-panel[hidden] { display: none; }
.tab-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0 8px 8px 8px;
  padding: 1.25rem;
}
.tab-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.tab-grid p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}
.tab-grid ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.tab-grid li { margin: 0.25rem 0; }
.tab-caveat {
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  color: var(--caption);
  margin-top: 0.85rem !important;
}
.tab-photo {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.tab-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.tab-photo figcaption {
  margin: 0.45rem 0.75rem 0.65rem;
  font-family: system-ui, sans-serif;
  font-size: 0.75rem;
  color: var(--caption);
}
.how-work { padding-bottom: 1.5rem; }

.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;
}

@media (max-width: 720px) {
  .tab-grid { grid-template-columns: 1fr; }
  .tab { flex: 1 1 auto; text-align: center; }
  .ask-meta {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 0.85rem;
  align-items: start;
}
.ask-field {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
}
.ask-field label {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.2;
  min-height: 1.2em;
  margin: 0 0 0.4rem;
  color: var(--muted);
}
.ask-field input,
.ask-field select {
  width: 100%;
  height: 2.6rem;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 0.75rem;
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
  background: var(--card);
  color: var(--ink);
}
.ask-field select {
  appearance: none;
  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 fill='%23555' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}
.ask-field input:focus,
.ask-field select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ask-reply {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}
.ask-reply-cat {
  margin: 0 0 0.35rem;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.ask-reply-next {
  margin: 0.75rem 0 0;
  font-family: system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--caption);
}
