:root {
  --bg: #faf8f5;
  --ink: #1a1f1c;
  --muted: #5e6660;
  --line: rgba(26, 31, 28, 0.1);
  --accent: #c45c26;
  --accent-deep: #9a451c;
  --surface: #ffffff;
  --deep: #141816;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --space: clamp(1.25rem, 4vw, 2rem);
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2em;
}

.nav {
  display: none;
  gap: 1.75rem;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav a:hover,
.nav a:focus-visible { color: var(--accent); outline: none; }
.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.5rem 1rem;
  transition: background 0.25s;
}
.nav-cta:hover,
.nav-cta:focus-visible { background: var(--accent) !important; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem var(--space) 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav[hidden] { display: none !important; }

@media (min-width: 768px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.hero-plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, var(--bg) 95%),
    linear-gradient(90deg, var(--bg) 0%, transparent 55%),
    conic-gradient(from 210deg at 75% 45%, #c45c26 0deg, #1a1f1c 90deg, #3d4a42 180deg, #c45c26 360deg);
  opacity: 1;
}
.hero-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 78% 42%, transparent 20%, var(--bg) 75%);
  animation: planeDrift 16s ease-in-out infinite alternate;
}

@keyframes planeDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(-2%, 1%); }
}

.hero-inner { position: relative; z-index: 1; max-width: 34rem; }

.brand-hero {
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.95;
  margin: 0 0 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 1.15rem;
  letter-spacing: -0.015em;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 2rem;
  max-width: 28rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost {
  border-color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin: 0 0 2.25rem;
  letter-spacing: -0.015em;
  max-width: 16ch;
}

.about { border-top: 1px solid var(--line); }
.about-layout h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin: 0 0 1.25rem;
  max-width: 18ch;
  letter-spacing: -0.015em;
}
.about-text {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38rem;
  margin: 0;
}

.what { background: var(--surface); border-block: 1px solid var(--line); }
.what-grid {
  display: grid;
  gap: 2rem;
}
.what-grid article {
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}
.what-grid h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
}
.what-grid p {
  color: var(--muted);
  margin: 0;
}
@media (min-width: 768px) {
  .what-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

.approach { background: var(--deep); color: #f2f0ec; }
.approach .section-label { color: #e08a5c; }
.approach .section-title { color: #f2f0ec; }
.approach-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.approach-list li {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(242, 240, 236, 0.12);
}
.approach-list li:first-child { border-top: 1px solid rgba(242, 240, 236, 0.12); }
.approach-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
}
.approach-desc {
  color: rgba(242, 240, 236, 0.65);
  font-size: 1rem;
}
@media (min-width: 768px) {
  .approach-list li {
    grid-template-columns: 12rem 1fr;
    align-items: baseline;
    gap: 2rem;
  }
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
}
.contact-panel h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.5rem;
}
.contact-panel p {
  color: var(--muted);
  margin: 0;
}
@media (min-width: 640px) {
  .contact-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-inner nav a:hover,
.footer-inner nav a:focus-visible { color: var(--accent); outline: none; }
.footer-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(1rem);
  animation: revealUp 0.85s ease forwards;
}
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }

@keyframes revealUp {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .hero-plane::after { animation: none; }
}

/* Legal + 404 pages */
.legal-page,
.error-page {
  padding-block: clamp(6rem, 16vw, 8rem) 4rem;
  min-height: 60vh;
}
.legal-page .container,
.error-page .container {
  max-width: 42rem;
}
.legal-page h1,
.error-page h1 {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.legal-page .legal-updated {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0 0 2rem;
}
.legal-page h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}
.legal-page p,
.legal-page li {
  margin: 0 0 1rem;
  line-height: 1.65;
}
.legal-page ul {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.error-page {
  text-align: center;
  display: flex;
  align-items: center;
}
.error-page .container {
  margin-inline: auto;
}
.error-page .error-code {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.75rem;
}
.error-page p {
  margin: 0 0 1.75rem;
  opacity: 0.8;
}
