:root {
  --bg: #F5EEE6;
  --surface: #FBF8F4;
  --sunken: #EAE1D6;
  --border: #D8CCBE;
  --border-strong: #918474;
  --text: #241F1B;
  --muted: #6E6357;
  --moss: #4F5D3A;
  --moss-hover: #3E4A2E;
  --moss-subtle: #E2E7D4;
  --selection: #C6D0AC;
  --serif: "Newsreader", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 10vw, 128px);
}

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

html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--selection); }

h1, h2, p, ul { margin: 0; }

a {
  color: var(--moss);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 140ms ease, text-decoration-thickness 140ms ease;
}
a:hover { color: var(--moss-hover); text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--moss-hover); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 50;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.scenery {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}

.ring-a {
  width: 120vmax;
  height: 120vmax;
  left: -70vmax;
  top: 8vh;
  border: 1px solid var(--border);
}

.disc {
  width: 46vmax;
  height: 46vmax;
  right: -24vmax;
  top: 30vh;
  background: var(--sunken);
}

.moss {
  width: 16vmax;
  height: 16vmax;
  right: 12vw;
  top: 120vh;
  background: var(--moss-subtle);
}

.ring-b {
  width: 34vmax;
  height: 34vmax;
  left: 6vw;
  top: 96vh;
  border: 1px solid var(--border);
}

.arc {
  width: 64vmax;
  height: 64vmax;
  right: -30vmax;
  top: 62vh;
  border: 1px solid transparent;
  border-top-color: var(--border-strong);
  opacity: 0.5;
}

.line {
  height: 1px;
  border-radius: 0;
  background: var(--border);
}
.line-1 { width: 58vw; left: 30vw; top: 150vh; }
.line-2 { width: 40vw; left: -6vw; top: 74vh; }

.dot {
  width: 10px;
  height: 10px;
  left: 62vw;
  top: 190vh;
  background: var(--moss);
  opacity: 0.6;
}

main, .site-footer { position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.wordmark span + span {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid currentColor;
}
.wordmark:hover { color: var(--text); }

h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 1.8rem + 4.6vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 15ch;
  text-wrap: balance;
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.375rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

.hero {
  min-height: calc(100vh - 65px);
  min-height: calc(100svh - 65px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 64px;
}
.hero .lead {
  margin-top: 40px;
  max-width: 58ch;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
}

.role {
  display: flex;
  flex-direction: column-reverse;
  gap: 40px;
  padding-bottom: var(--section);
}
.role-media {
  margin: 0;
  width: 82%;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: var(--sunken);
}
.role-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 52% 40%; }
.role p {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
  line-height: 1.42;
  letter-spacing: -0.01em;
  max-width: 34ch;
}

.services {
  display: grid;
  gap: 24px;
  padding-bottom: var(--section);
}
.service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  transition: border-color 140ms ease;
}
.service:hover { border-color: var(--border-strong); }
.service h2 { max-width: 14ch; }
.service p { margin-top: 20px; max-width: 60ch; }

.split {
  display: grid;
  gap: 32px;
  padding-bottom: var(--section);
}

.rows {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--border);
}
.rows li {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  max-width: 62ch;
}

.prose p { max-width: 62ch; }
.prose p + p { margin-top: 1.25em; }
.service .rows { margin-top: 20px; border-top: 0; }
.service .rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.service .prose { margin-top: 20px; }

.contact { padding-bottom: var(--section); }
.contact p {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  line-height: 1.45;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 32px;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

.page { min-height: calc(100vh - 160px); }
.page .hero { min-height: 0; padding-top: clamp(72px, 14vw, 176px); padding-bottom: 48px; }

.policy { padding-bottom: var(--section); }
.policy > * { max-width: 672px; }
.policy p + p, .policy ul + p { margin-top: 1em; }
.policy h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); margin-top: 64px; margin-bottom: 16px; }
.policy h3 { font-family: var(--sans); font-size: 1.125rem; font-weight: 500; margin-top: 0; margin-bottom: 12px; }
.policy ul { margin-top: 16px; margin-bottom: 0; padding-left: 1.2em; }
.policy li + li { margin-top: 6px; }

@media (min-width: 960px) {
  .policy > * { margin-left: 33%; }
}

@media (min-width: 720px) {
  .role p { margin-left: auto; }
  .role-media { width: 60%; }
  .service { padding: 40px; }
}

@media (min-width: 960px) {
  .hero {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 24px;
    align-content: center;
  }
  .hero h1 { grid-column: 1 / span 7; grid-row: 1; max-width: 13ch; }
  .hero .lead { grid-column: 8 / span 5; grid-row: 1; align-self: start; margin-top: 12px; }
  .role {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 24px;
    align-items: center;
  }
  .role-media { grid-column: 1 / span 5; grid-row: 1; width: auto; margin-top: -48px; }
  .role p { grid-column: 7 / span 6; grid-row: 1; max-width: 30ch; margin: 0; }
  .services { gap: 24px; }
  .service {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 24px 48px;
    padding: 56px 48px;
  }
  .service p, .service .rows, .service .prose { margin-top: 0; }
  .service .rows li:first-child { padding-top: 0; }
  .split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0 24px;
  }
  .split h2 {
    grid-column: 1 / span 4;
    position: sticky;
    top: 96px;
    align-self: start;
  }
  .split > :last-child { grid-column: 6 / span 7; }
  .rows li { padding: 28px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .shape { transform: none !important; }
  .cookies { transition: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font: 500 0.9375rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 140ms ease, border-color 140ms ease, transform 80ms ease;
}
.btn:focus-visible { outline: 2px solid var(--moss-hover); outline-offset: 2px; }
.btn-primary { background: var(--moss); color: var(--surface); }
.btn-primary:hover { background: var(--moss-hover); color: var(--surface); text-decoration: none; }
.btn-primary:active { transform: scale(0.98); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { background: rgb(56 49 43 / 0.06); color: var(--text); text-decoration: none; }
.btn-outline:active { background: rgb(56 49 43 / 0.12); }

.cookies {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 48px -12px rgb(56 49 43 / 0.18);
  font-size: 0.9375rem;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition: opacity 320ms cubic-bezier(.2,.7,.2,1), transform 320ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.cookies.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cookies-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 18px;
}
.cookies-actions .btn { flex: 1 1 auto; }

@media (min-width: 600px) {
  .cookies { left: 24px; right: auto; bottom: 24px; max-width: 400px; padding: 28px 28px 24px; }
  .cookies-actions .btn { flex: 0 0 auto; }
}

.notfound {
  min-height: calc(100vh - 160px);
  min-height: calc(100svh - 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 64px;
}
.notfound p {
  margin-top: 28px;
  max-width: 44ch;
  font-size: 1.125rem;
  color: var(--muted);
}
.notfound .btn { margin-top: 36px; align-self: flex-start; }

@media (min-width: 960px) {
  .notfound { padding-left: calc(var(--gutter) + 8%); }
}
