/* ---------- Tokens ---------- */
:root {
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --muted: #5a5a5a;
  --muted-2: #8a8a8a;
  --line: #e6e4df;
  --bg: #ffffff;
  --bg-alt: #f7f6f2;
  --accent: #b88a4a;
  --accent-ink: #8e6a36;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 8px 30px rgba(10, 10, 10, 0.06);

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1140px;
  --pad: clamp(20px, 4vw, 32px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
address { font-style: normal; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 0 0 8px 0; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 38px; height: 38px; object-fit: contain; }
.brand__text {
  font-weight: 600; letter-spacing: 0.02em; font-size: 16px;
}
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  color: var(--ink-2); font-weight: 500; font-size: 15px;
  position: relative; padding: 6px 0;
  transition: color .2s ease;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 8px;
  padding: 0;
  align-items: center; justify-content: center;
}
.nav__toggle:hover { background: var(--bg-alt); }
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  margin: 3px 0;
  transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 8px var(--pad) 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a {
  padding: 14px 4px; border-bottom: 1px solid var(--line);
  font-weight: 500; font-size: 16px;
}
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(184, 138, 74, 0.08), transparent 60%),
    radial-gradient(800px 360px at 5% 110%, rgba(10, 10, 10, 0.04), transparent 60%),
    var(--bg);
}
.hero__inner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px;
  color: var(--accent-ink); font-weight: 600; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--ink);
}
.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 32px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__mark { display: flex; justify-content: center; align-items: center; }
.hero__mark img {
  width: min(360px, 70%);
  filter: drop-shadow(0 20px 40px rgba(10,10,10,0.08));
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px);
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.section__intro { color: var(--muted); font-size: 17px; max-width: 60ch; }

/* ---------- Services grid ---------- */
.grid { display: grid; gap: 18px; }
.grid--services { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d8d4cc;
}
.card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-ink);
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- About ---------- */
.about__grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
.about__lede { font-size: 18px; color: var(--ink-2); margin-bottom: 18px; line-height: 1.6; }
.about__grid p { color: var(--muted); }
.about__facts {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.about__facts dl { margin: 0; }
.about__facts > dl > div {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.about__facts > dl > div:last-child { border-bottom: 0; }
.about__facts dt { font-size: 13px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.1em; }
.about__facts dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px;
}
.contact__card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact__card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.contact__label {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px;
  color: var(--muted-2); font-weight: 600; margin-bottom: 12px;
}
.contact__value {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 500; line-height: 1.5;
  color: var(--ink);
  display: block;
}
a.contact__value { transition: color .2s ease; }
a.contact__value:hover { color: var(--accent-ink); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  background: #fff;
}
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.site-footer__brand { display: inline-flex; align-items: center; gap: 12px; }
.site-footer__brand img { width: 28px; height: 28px; object-fit: contain; }
.site-footer__brand p { font-weight: 600; }
.site-footer__meta { color: var(--muted-2); font-size: 13.5px; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__mark { order: -1; }
  .hero__mark img { width: min(220px, 50%); }
  .about__grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; flex-direction: column; }
  .mobile-menu:not([hidden]) { display: flex; }
}

@media (max-width: 720px) {
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}
