/* Full Page 29 family ("Homeward") — shared chrome for the home and its deeper pages:
   tokens, type, base, line reveals, header + mobile menu, buttons and links, picture hairline,
   CTA band, footer, reduced motion. Page-specific layout stays inline in each page. */
:root {
  --paper: #ffffff;
  --paper-2: #f4f4f2;
  --ink: #2a2723;
  --ink-2: rgba(42, 39, 35, 0.76);
  --ink-3: rgba(42, 39, 35, 0.56);
  --olive: #4f5a2b;
  --olive-deep: #3e4721;
  --olive-soft: #8d9475;
  --sage: #e1e6d6;
  --line: rgba(42, 39, 35, 0.16);
  --line-olive: rgba(79, 90, 43, 0.34);
  --frame: rgba(42, 39, 35, 0.1);
  --err: #a3432f;

  --font-display: "Ivy Presto Headline", "Ivy Presto", Georgia, "Times New Roman", serif;
  --font-accent: "Ivy Presto Display", "Ivy Presto Headline", Georgia, "Times New Roman", serif;
  --font-body: "Albert Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-word: clamp(9.25rem, 31vw, 37.5rem);
  --fs-statement: clamp(2.125rem, 6.6vw, 8rem);
  --fs-h2: clamp(2rem, 1.2rem + 2.7vw, 3.75rem);
  --fs-h3: clamp(1.5rem, 1.05rem + 1.3vw, 2.4rem);
  --fs-lead: clamp(1.25rem, 1rem + 0.75vw, 1.75rem);
  --fs-quote: clamp(1.3rem, 0.95rem + 1vw, 2rem);
  --fs-body: clamp(1rem, 0.96rem + 0.14vw, 1.0625rem);
  --fs-small: clamp(0.8125rem, 0.78rem + 0.1vw, 0.875rem);
  --fs-title-word: clamp(3.4rem, 1.6rem + 7vw, 8.5rem);
  --fs-title-line: clamp(2.5rem, 1.25rem + 4.4vw, 6.25rem);

  --pad: clamp(20px, 3.4vw, 64px);
  --gutter: clamp(12px, 1.7vw, 28px);
  --hdr-h: clamp(64px, 5.4vw, 80px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-curtain: cubic-bezier(0.32, 0, 0.16, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
html.lock { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 350;
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 4px; border-radius: 2px; }
main:focus { outline: none; }

.skip {
  position: fixed; left: var(--pad); top: 12px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  text-decoration: none; font-size: var(--fs-small); border-radius: 999px;
  transform: translateY(-160%); transition: transform .4s var(--ease-out);
}
.skip:focus { transform: none; }

/* ---------- split-line reveals ---------- */
.sl-mask { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.2em; }
.sl-line { display: block; will-change: transform; }
.js:not(.rm) [data-split] { visibility: hidden; }
.js:not(.rm) [data-split].is-split { visibility: visible; }
.js:not(.rm) [data-split].is-split .sl-line { transform: translate3d(0, 108%, 0); }
.js:not(.rm) [data-split].is-split.is-in .sl-line {
  transform: none;
  transition: transform 1.25s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 85ms);
}
.js:not(.rm) .rv { clip-path: inset(100% 0 0 0); }
.js:not(.rm) .rv.is-in { clip-path: inset(-2px -2px -2px -2px); transition: clip-path 1.35s var(--ease-curtain); }
.js:not(.rm) .rv-fade { opacity: 0; transform: translate3d(0, 22px, 0); }
.js:not(.rm) .rv-fade.is-in { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) .15s, transform 1.2s var(--ease-out) .15s; }

/* ---------- header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--hdr-h);
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px);
  padding-inline: var(--pad);
  background: var(--paper);
  transition: transform .7s var(--ease-curtain), box-shadow .4s linear;
}
.hdr.is-scrolled { box-shadow: inset 0 -1px 0 var(--line); }
.hdr.is-hidden { transform: translate3d(0, -101%, 0); }
.logo {
  margin-right: auto;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.3rem, 1.05rem + 0.55vw, 1.7rem);
  letter-spacing: -0.015em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  position: relative; z-index: 2;
}
.nav ul { display: flex; gap: clamp(18px, 2.3vw, 40px); list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: inline-block; overflow: hidden; vertical-align: top;
  font-size: 0.9375rem; line-height: 1.35; text-decoration: none; color: var(--ink);
}
.nav a span { display: block; transition: transform .6s var(--ease-out); }
.nav a::after {
  content: attr(data-label);
  content: attr(data-label) / "";
  position: absolute; left: 0; top: 0; color: var(--olive);
  transform: translate3d(0, 105%, 0); transition: transform .6s var(--ease-out);
}
.nav a:hover span { transform: translate3d(0, -105%, 0); }
.nav a:hover::after { transform: none; }
.hdr-cta {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; height: 40px; padding: 0 20px;
  border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--olive); color: var(--paper);
  font-size: 0.9375rem; text-decoration: none; white-space: nowrap;
}
.hdr-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--ink); transform: translate3d(0, 101%, 0); transition: transform .55s var(--ease-curtain);
}
.hdr-cta:hover::before { transform: none; }
.menu-btn {
  display: none; position: relative; z-index: 2;
  width: 40px; height: 40px; margin-right: -8px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
}
.menu-btn i { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform .5s var(--ease-curtain); }
.menu-btn i:first-child { top: 16px; }
.menu-btn i:last-child { top: 23px; }
.nav-open .menu-btn i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .menu-btn i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 16px;
  color: var(--olive); text-decoration: none; font-size: 1rem; line-height: 1.2;
}
.btn-label { position: relative; padding-block: 6px; }
.btn-label::before, .btn-label::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
}
.btn-label::before { opacity: .3; }
.btn-label::after { transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out); }
.btn:hover .btn-label::after { transform: scaleX(1); }
.disc {
  position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid currentColor; overflow: hidden; isolation: isolate; color: inherit;
}
.disc::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 50%;
  background: var(--olive); transform: scale(0); transition: transform .55s var(--ease-out);
}
.arw { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; transition: color .3s linear; }
.arw svg {
  position: absolute; top: 50%; left: 50%; width: 14px; height: 12px; margin: -6px 0 0 -7px;
  transition: transform .55s var(--ease-out);
}
.arw svg:first-child { transform: translateX(0); }
.arw svg:last-child { transform: translateX(-48px); }
.btn:hover .disc::before, button.disc:hover::before { transform: scale(1); }
.btn:hover .arw, button.disc:hover .arw { color: var(--paper); }
.btn:hover .arw svg:first-child, button.disc:hover .arw svg:first-child { transform: translateX(48px); }
.btn:hover .arw svg:last-child, button.disc:hover .arw svg:last-child { transform: translateX(0); }
.btn--solid {
  gap: 22px; padding: 7px 7px 7px 30px; border-radius: 999px;
  background: var(--olive); color: var(--paper); transition: background-color .5s var(--ease-out);
}
.btn--solid .btn-label::before, .btn--solid .btn-label::after { display: none; }
.btn--solid .disc { width: 50px; height: 50px; border-color: rgba(255, 255, 255, .45); }
.btn--solid .disc::before { background: var(--paper); }
.btn--solid:hover { background: var(--olive-deep); }
.btn--solid:hover .arw { color: var(--olive); }
.tlink {
  display: inline-flex; align-items: baseline; gap: 10px;
  color: var(--olive); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: .32em; text-decoration-color: var(--line-olive);
  transition: text-decoration-color .4s linear;
}
.tlink svg { width: 13px; height: 11px; flex: none; transform: translateY(1px); transition: transform .5s var(--ease-out); }
.tlink:hover { text-decoration-color: currentColor; }
.tlink:hover svg { transform: translate(5px, 1px); }

/* current page in the header: olive label with a small olive dot under it; the roll-over is retired for it */
.nav a[aria-current] { overflow: visible; color: var(--olive); }
.nav a[aria-current]::after { content: none; }
.nav a[aria-current]:hover span { transform: none; }
.nav a[aria-current]::before {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: currentColor;
}

/* pictures that sit on the white page get a faint hairline drawn outside the image (no shadow, no tint) */
.framed img, img.framed { outline: 1px solid var(--frame); outline-offset: 0; }

/* ---------- deeper pages: shared type and grid (the home does not use these) ---------- */
.pg-top { padding-top: calc(var(--hdr-h) + clamp(48px, 9vh, 112px)); }
.pg-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.pg-h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--fs-title-word); line-height: .94; letter-spacing: -0.032em;
}
.pg-h1--line { font-size: var(--fs-title-line); line-height: 1.02; text-wrap: balance; }
.pg-h2 {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance;
}
.pg-lead {
  font-family: var(--font-display); font-weight: 300;
  font-size: var(--fs-lead); line-height: 1.25; letter-spacing: -0.012em;
}
.pg-body { color: var(--ink-2); max-width: 60ch; }
.pg-body + .pg-body { margin-top: 1.05em; }
.pg-sub { margin-top: 12px; color: var(--ink-2); }
.sign { font-family: var(--font-accent); font-weight: 300; font-size: var(--fs-lead); letter-spacing: -0.015em; line-height: 1.2; color: var(--olive); }
.tlink--back svg { transform: translateY(1px) rotate(180deg); }
.tlink--back:hover svg { transform: translate(-5px, 1px) rotate(180deg); }

/* ---------- cta ---------- */
.cta { padding: clamp(72px, 9vh, 120px) var(--pad) clamp(72px, 9.5vh, 120px); text-align: center; }
.cta-h {
  margin-inline: auto; max-width: 24ch;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.1rem, 1.2rem + 3.3vw, 4.9rem); line-height: 1.05; letter-spacing: -0.03em;
  text-wrap: balance;
}
.cta-actions { margin-top: clamp(40px, 7vh, 64px); display: flex; justify-content: center; align-items: center; gap: clamp(20px, 3vw, 44px); flex-wrap: wrap; }

/* ---------- footer ---------- */
.ftr { padding: 0 var(--pad) 28px; }
.ftr-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  padding-top: clamp(40px, 6vh, 64px); border-top: 1px solid var(--line);
}
.ftr-brand { grid-column: 1 / span 4; }
.ftr-brand .logo { display: inline-block; }
.ftr-place { margin-top: 14px; color: var(--ink-2); font-size: 0.9375rem; }
.ftr nav { grid-column: 6 / span 3; }
.ftr nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ftr nav a, .ftr-mail { text-decoration: none; font-size: 0.9375rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.ftr nav a:hover, .ftr-mail:hover { background-size: 100% 1px; }
.ftr-contact { grid-column: 10 / -1; justify-self: end; text-align: right; }
.ftr-base { margin-top: clamp(40px, 5.5vh, 64px); display: flex; justify-content: space-between; color: var(--ink-2); font-size: 0.9375rem; }

/* ---------- mobile (shared chrome) ---------- */
@media (max-width: 760px) {
  :root { --gutter: 12px; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: calc(var(--hdr-h) + 24px) var(--pad) 48px;
    background: var(--paper);
    visibility: hidden; transform: translate3d(0, -100%, 0);
    transition: transform .8s var(--ease-curtain), visibility 0s linear .8s;
  }
  .nav-open .nav { visibility: visible; transform: none; transition: transform .8s var(--ease-curtain), visibility 0s; }
  .nav ul { flex-direction: column; gap: 4px; }
  .nav a { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1.12; letter-spacing: -0.025em; overflow: visible; }
  .nav a::after { content: none; }
  .nav a:hover span { transform: none; }
  .menu-btn { display: block; }
  .hdr-cta { height: 36px; padding: 0 16px; font-size: 0.875rem; }
  .nav a[aria-current]::before { left: 100%; right: auto; bottom: auto; top: 50%; margin: -3px 0 0 12px; width: 6px; height: 6px; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); }
  .ftr-brand, .ftr nav, .ftr-contact { grid-column: 1; }
  .ftr nav { margin-top: 32px; }
  .ftr-contact { justify-self: start; text-align: left; margin-top: 32px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (min-width: 1680px) {
  :root { --fs-body: 1.125rem; }
}
