/* YKL Architect — light/editorial design system (shared across all pages) */

:root {
  --paper: #F4F1EA;
  --paper-2: #ECE8DD;
  --paper-3: #E4DFD2;
  --ink: #1B1A15;
  --ink-dim: #6B6557;
  --ink-mute: #A49C8A;
  --line: rgba(27, 26, 21, 0.13);
  --line-soft: rgba(27, 26, 21, 0.07);
  --accent: #9E7B4E;

  --serif: "Newsreader", "Hoefler Text", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1380px;
  --gutter: clamp(22px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--paper); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Type ---------- */

.serif { font-family: var(--serif); font-weight: 300; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.eyebrow .sep { color: var(--accent); padding: 0 0.5em; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.d1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(52px, 9vw, 150px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.d1 em { font-style: italic; color: var(--accent); }

.d2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5.2vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.d2 em { font-style: italic; color: var(--accent); }

.d3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.d3 em { font-style: italic; color: var(--accent); }

p { margin: 0; }
.lede {
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 52ch;
  text-wrap: pretty;
}
.body {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--ink-dim);
  max-width: 60ch;
  text-wrap: pretty;
}
.label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- Layout ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { position: relative; }

.pad {
  padding-top: clamp(72px, 11vw, 168px);
  padding-bottom: clamp(72px, 11vw, 168px);
}

.rule { border-top: 1px solid var(--line); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--gutter);
  transition: background .4s ease, border-color .4s ease, padding .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.nav-logo .mark {
  width: 30px; height: 30px;
  border: 1.4px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1;
}
.nav-logo small {
  display: block;
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 1px;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  color: var(--ink-dim);
  transition: color .25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }

.nav-menu-btn {
  display: none;
  background: none; border: none;
  font-family: var(--sans); font-weight: 500;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; color: var(--ink);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--paper);
    padding: 120px var(--gutter);
    gap: 8px;
    font-size: 28px;
    text-transform: none;
    letter-spacing: -0.01em;
    font-family: var(--serif);
    z-index: 99;
  }
  .nav-links.open a { color: var(--ink); }
  .nav-menu-btn { display: block; z-index: 101; }
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  padding-top: clamp(140px, 18vh, 220px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.page-hero .kicker { margin-bottom: 22px; }
.page-hero .crumbs {
  margin-top: 28px;
  display: flex; gap: 10px; align-items: center;
}

/* ---------- Buttons / links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background .3s ease, color .3s ease;
}
.btn svg { transition: transform .3s ease; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:hover svg { transform: translateX(5px); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: border-color .3s, gap .3s;
}
.link-arrow:hover { border-color: var(--accent); gap: 16px; }
.link-arrow svg { transition: transform .3s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Placeholder imagery ---------- */

.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(27,26,21,0.035) 0 11px,
      rgba(27,26,21,0) 11px 22px),
    var(--paper-3);
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  top: 14px; left: 14px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 7vw, 96px) var(--gutter) 36px;
}
.footer a { color: var(--paper); }
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid rgba(244,241,234,0.16);
}
.footer-cta .d2 { color: var(--paper); }
.footer-cta .d2 em { color: var(--accent); }
.footer-col h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-col ul a { font-size: 15px; color: rgba(244,241,234,0.82); transition: color .25s; }
.footer-col ul a:hover { color: var(--paper); }
.footer-col p { font-size: 15px; line-height: 1.7; color: rgba(244,241,234,0.82); }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-cta { grid-column: 1 / -1; }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }

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