/* Root */
:root {
  --bg: #FFF8F4;
  --surface: #FFFFFF;
  --text: #2B1D14;
  --muted: #6B5545;
  --accent: #B53A0B;
  --accent-text: #FFF8F4;
  --plate-bg: #2B1D14;
  --plate-text: #FFE8D6;
  --line: #E7D6C8;
  --tint: #F6EBE1;
  --font: 'Avenir Next', Avenir, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(16px, 4vw, 40px);
  --gap: clamp(64px, 9vw, 128px);
  --shadow: 0 1px 2px rgb(43 29 20 / 0.06), 0 12px 32px rgb(43 29 20 / 0.08);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(circle at 12% 0%, #F6E4D5 0%, transparent 42%),
    radial-gradient(circle at 88% 100%, #F3E0D0 0%, transparent 38%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.8rem, 2.6vw + 0.8rem, 3rem); line-height: 1.15; margin-bottom: 0.35em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
address { font-style: normal; }

/* Layout */
.l-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
body { overflow-x: hidden; }
.l-block { padding-top: var(--gap); padding-bottom: var(--gap); }
.l-block-tinted {
  background-color: var(--tint);
  position: relative;
}
.l-block-tinted::before {
  content: "";
  position: absolute;
  inset: -14px 0;
  background: inherit;
  border-radius: 48% 4% / 26px;
  z-index: -1;
  box-shadow: inset 0 0 0 1px var(--line);
}
.l-block-intro { color: var(--muted); font-size: clamp(1.05rem, 1vw + 0.6rem, 1.3rem); max-width: 62ch; margin-top: 14px; margin-bottom: 2em; }
.l-prose { max-width: 760px; }
.l-prose h2 { margin-top: 1.2em; }
.l-prose ul, .l-prose ol { padding-left: 1.4em; max-width: 68ch; }
.l-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
}
.l-prose th, .l-prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.l-prose th { font-weight: 700; }

/* Skip link */
.u-skiplink {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--plate-bg);
  color: var(--plate-text);
  padding: 12px 20px;
  z-index: 100;
}
.u-skiplink:focus { left: 12px; top: 12px; }

/* Header */
.c-topbar {
  background-color: var(--surface);
  border-bottom: 2px solid var(--text);
}
.l-topbar-row {
  display: flex;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
  padding-top: 8px;
  padding-bottom: 8px;
}
.l-topbar-contacts { margin: 0; font-size: 0.9rem; }
.l-topbar-contacts ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.l-topbar-contacts span { color: var(--muted); margin-right: 6px; }
.l-topbar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.c-mark {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.c-base .c-mark { margin: 0 0 12px; }

/* Nav */
.l-menu-toggle {
  display: none;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 2px solid var(--text);
  padding: 10px 16px;
  cursor: pointer;
  min-height: 48px;
  align-items: center;
  gap: 10px;
}
.u-toggle-lines, .u-toggle-lines::before, .u-toggle-lines::after {
  width: 20px; height: 2px; background: var(--text);
  display: inline-block; position: relative; content: "";
}
.u-toggle-lines::before { position: absolute; top: -6px; }
.u-toggle-lines::after { position: absolute; top: 6px; }
.l-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.l-menu-item a {
  display: inline-block;
  padding: 8px 18px;
  letter-spacing: 0.02em;
  border: 2px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.l-menu-item a:hover,
.l-menu-item a:focus-visible {
  background-color: var(--plate-bg);
  color: var(--plate-text);
  border-color: var(--plate-bg);
}
.l-menu-item a[aria-current="page"] {
  background-color: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}
.has-menu-open .l-menu-list { display: block; }

/* Hero */
.c-hero {
  display: grid;
  gap: 32px;
  align-items: center;
}
.c-hero-title { margin-bottom: 0.5em; }
.l-hero-line { display: block; line-height: 1.12; }
.c-hero-title { overflow: visible; }
.l-hero-line-sm { font-size: 0.55em; color: var(--muted); }
.u-strong {
  display: inline;
  color: var(--accent);
  font-size: clamp(2.4rem, 4.6vw + 0.6rem, 4.6rem);
  line-height: 1.06;
  vertical-align: baseline;
}
.l-hero-lede { color: var(--muted); font-size: clamp(1.05rem, 1vw + 0.6rem, 1.3rem); margin-bottom: 2em; }
.l-hero-media { max-width: 100%; }
.l-hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 8px 24px rgb(43 29 20 / 0.12); }
.l-hero-copy { min-width: 0; }

/* Buttons */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.c-btn:hover { background-color: var(--accent); border-color: var(--accent); color: var(--accent-text); transform: translateY(-1px); }
.c-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.c-btn:active { background-color: #5A3B29; border-color: #5A3B29; color: var(--plate-text); }
.c-btn-panel { border-color: var(--plate-text); color: var(--plate-text); }
.c-btn-panel:hover { background-color: var(--plate-text); color: var(--plate-bg); }

/* Frames */
.l-frame-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.c-frame { margin: 0; }
.c-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgb(43 29 20 / 0.12);
}
.l-frame-grid { align-items: stretch; }
.l-frame-grid .c-frame { display: flex; }
.l-frame-wide img { aspect-ratio: 16 / 9; }

/* Approach */
.l-approach-grid {
  display: grid;
  gap: 40px;
  align-items: stretch;
}
.l-approach-media { display: flex; }
.l-approach-media img { aspect-ratio: 4 / 3; height: 100%; object-fit: cover; box-shadow: 0 8px 24px rgb(43 29 20 / 0.12); }

/* Services */
.l-tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.c-tile {
  background-color: var(--surface);
  border: 2px solid var(--line);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.c-tile:hover, .c-tile:focus-within { border-color: var(--accent); box-shadow: var(--shadow); }
.c-tile h3 { margin-bottom: 0.4em; }
.c-tile p { margin: 0; }
.c-tile-initial {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Form */
.l-inquiry-head { margin-bottom: 32px; }
.c-inquiry {
  max-width: 680px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.l-inquiry-row { margin-bottom: 20px; }
.l-inquiry-tag {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}
.l-inquiry-input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background-color: var(--bg);
  border: 2px solid var(--line);
  padding: 12px 14px;
  min-height: 48px;
}
.l-inquiry-input::placeholder { color: var(--muted); opacity: 1; }
.l-inquiry-input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.l-inquiry-area { min-height: 130px; resize: vertical; }
.is-invalid { border-color: #8A1E00; background-color: #FBEAE4; }
.l-inquiry-agree { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.l-inquiry-agree input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); }
.l-inquiry-agree label { max-width: 62ch; font-size: 0.95rem; }
.l-inquiry-hint { color: var(--muted); font-size: 0.9rem; }
.is-busy { opacity: 0.6; pointer-events: none; }

/* FAQ */
.c-fold { max-width: 760px; }
.c-fold details {
  border: 1px solid var(--line);
  background-color: var(--surface);
  margin-bottom: 12px;
}
.c-fold summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 22px;
  list-style-position: inside;
}
.c-fold summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.c-fold details[open] summary { border-bottom: 1px solid var(--line); color: var(--accent); }
.c-fold details p { padding: 4px 22px 18px; margin: 0; }
.c-fold details { animation: fold-open 0.3s ease; }
@keyframes fold-open { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Panel */
.c-panel {
  background-color: var(--plate-bg);
  color: var(--plate-text);
  padding: clamp(28px, 4vw, 52px);
  max-width: 760px;
}
.c-panel h2 { color: var(--plate-text); }
.c-panel a { color: var(--plate-text); }
.l-panel-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.l-panel-list li {
  padding: 12px 0;
  border-bottom: 1px solid #4A3628;
}
.l-panel-list span {
  display: block;
  color: #D8B79C;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

/* Inner page lead */
.c-page-lead {
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: 0;
}
.c-page-lead h1 { margin-bottom: 0.4em; }
.c-page-lead p { color: var(--muted); font-size: clamp(1.05rem, 1vw + 0.6rem, 1.3rem); }

/* Contacts block */
.c-reach { max-width: 760px; }
.c-reach ul { list-style: none; margin: 0 0 24px; padding: 0; }
.c-reach li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.c-reach span { display: block; color: var(--muted); font-size: 0.9rem; }

/* Confirmation / 404 */
.c-confirm {
  text-align: left;
  max-width: 760px;
}
.c-wayback-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }

/* Footer */
.c-base {
  background-color: var(--surface);
  border-top: 2px solid var(--text);
  margin-top: var(--gap);
  font-size: 0.95rem;
}
.l-base-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: 32px;
}
.l-base-heading { font-size: 1rem; margin-bottom: 14px; }
.l-base-links { list-style: none; margin: 0; padding: 0; }
.l-base-links li { margin-bottom: 8px; }
.l-base-links a { color: var(--text); text-decoration: none; }
.l-base-links a:hover, .l-base-links a:focus-visible { color: var(--accent); text-decoration: underline; }
.l-base-note { color: var(--muted); margin: 0; }
.l-base-col address p { margin: 0 0 6px; }
.l-base-col > ul { list-style: none; margin: 0 0 16px; padding: 0; }
.l-base-col > ul span { color: var(--muted); margin-right: 6px; }
.l-base-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-bottom: 20px;
}
.l-base-copy { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Reveal */
html.has-js .c-rise {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
html.has-js .c-rise.is-shown { opacity: 1; transform: none; }

/* Breakpoints */
@media (min-width: 480px) {
  .l-tile-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 640px) {
  .c-hero { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .l-hero-copy h1 { margin-top: 0; }
  .l-approach-grid { grid-template-columns: 1.2fr 1fr; }
  .l-frame-grid { grid-template-columns: repeat(2, 1fr); }
  .l-frame-wide { grid-column: 1 / -1; }
  .l-frame-grid .c-frame:not(.l-frame-wide) { grid-row: span 1; align-self: stretch; }
  .l-base-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .l-inquiry-head { max-width: 760px; }
  .c-fold summary { list-style-position: outside; padding-left: 28px; }
}
@media (min-width: 1024px) {
  .l-tile-grid { grid-template-columns: repeat(3, 1fr); }
  .l-base-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  .l-frame-grid { gap: 16px; }
  .l-frame-grid .c-frame { margin-bottom: 0; }
  .l-menu-toggle { display: inline-flex; }
  .l-menu-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-bottom: 2px solid var(--text);
    padding: 16px var(--pad) 24px;
    flex-direction: column;
    z-index: 50;
  }
  .c-menu { position: relative; }
  .l-topbar-bar { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1280px) {
  .l-wrap { max-width: 1160px; }
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html.has-js .c-rise { opacity: 1; transform: none; }
}

/* Section rhythm */
#approach.l-block { padding-bottom: clamp(96px, 10vw, 120px); }

/* Mobile text measure */
@media (max-width: 639px) {
  .l-prose p,
  .l-hero-lede,
  .l-block-intro,
  .c-tile p { padding-left: 2px; padding-right: 2px; }
  .l-frame-grid .c-frame img { aspect-ratio: 4 / 3; }
  .l-hero-media { margin: 0; }
}

.l-hero-line-sm { margin-top: 4px; padding-top: 2px; }
