:root {
  color-scheme: light;
  --bg: #faf8f3;
  --surface: #ffffff;
  --surface-2: #f4f1eb;
  --text: #111111;
  --muted: #525252;
  --line: #ded8cd;
  --accent: #c2410c;
  --accent-2: #7c2d12;
  --shadow: 0 18px 44px rgba(17, 17, 17, 0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(250, 248, 243, 0.75)),
    var(--bg);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -48px;
  transform: translateX(-50%);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  z-index: 1000;
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(222, 216, 205, 0.9);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.header-inner {
  width: min(calc(100% - 4rem), var(--container));
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: inline-grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 18px rgba(194, 65, 12, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.96rem;
  color: var(--muted);
}

.nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.main {
  overflow: clip;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  align-items: center;
  padding: 2.25rem 0 1.5rem;
}

.hero.no-image {
  grid-template-columns: 1fr;
}

.hero-copy h1,
.section h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.55rem, 4vw, 4.6rem);
  font-weight: 700;
  max-width: 13ch;
}

.hero-copy p,
.section p,
.lede {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 68ch;
  font-size: 1.03rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #111;
  color: #fff;
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.hero-media {
  min-width: 0;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media .media-frame {
  aspect-ratio: 4 / 3;
}

.section {
  padding: 3rem 0 0;
}

.section h2 {
  font-size: clamp(1.55rem, 2.15vw, 2.35rem);
  font-weight: 700;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem 1.05rem 1.1rem;
}

.panel h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.25;
  font-weight: 700;
}

.panel p {
  margin: 0.55rem 0 0;
  font-size: 0.96rem;
}

.card-link {
  display: grid;
  gap: 0.45rem;
  height: 100%;
}

.card-link strong {
  font-size: 1rem;
  line-height: 1.2;
}

.card-link span {
  color: var(--muted);
  font-size: 0.94rem;
}

.model-card {
  display: grid;
  gap: 0.45rem;
  height: 100%;
}

.model-card strong {
  font-size: 1rem;
  line-height: 1.2;
}

.model-card span {
  color: var(--muted);
  font-size: 0.94rem;
}

.service-list,
.link-list,
.bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li,
.link-list li,
.bullet-list li {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}

.service-list li:first-child,
.link-list li:first-child,
.bullet-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.service-list strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.18rem;
}

.service-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.callout {
  margin-top: 2rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(194, 65, 12, 0.15);
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.08), rgba(17, 17, 17, 0.03));
}

.callout p {
  margin: 0;
}

.micro {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 1.5rem 0 2.25rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: 1rem;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem;
  background: rgba(255, 255, 255, 0.87);
}

.contact-card h3 {
  margin: 0 0 0.85rem;
}

.contact-lines {
  display: grid;
  gap: 0.85rem;
}

.contact-line {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.contact-line:first-child {
  padding-top: 0;
  border-top: 0;
}

.contact-line strong {
  display: block;
  margin-bottom: 0.25rem;
}

.section-copy {
  display: grid;
  gap: 1rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.split p {
  margin: 0;
}

.page-note {
  color: var(--accent);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.anchor {
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 980px) {
  .hero,
  .grid-2,
  .grid-3,
  .grid-4,
  .contact-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .section-head,
  .header-inner,
  .footer-inner {
    align-items: start;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(calc(100% - 1.25rem), var(--container));
  }

  .page-shell {
    padding-top: 1.25rem;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .nav {
    gap: 0.7rem 0.9rem;
  }
}
