/* ==========================================================================
   Mark Bucher — site styles
   Warm editorial palette: cream paper, deep ink, ember accent.
   ========================================================================== */

:root {
  --paper: #f6f1e9;
  --paper-2: #efe7da;
  --ink: #1d1f1c;
  --ink-soft: #4a4c47;
  --ink-mute: #7a7a72;
  --night: #171a18;
  --night-2: #222622;
  --ember: #b5502f;
  --ember-deep: #96401f;
  --ember-soft: #e2a284;
  --gold: #c9a46a;
  --line: rgba(29, 31, 28, 0.14);
  --line-light: rgba(246, 241, 233, 0.16);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 11vw, 9.5rem);
  --header-h: 76px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle paper grain, fixed so it never repaints on scroll */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

p {
  margin: 0 0 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--ember);
}

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

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---------- Header / navigation ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 var(--gutter);
  background: rgba(246, 241, 233, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(29, 31, 28, 0.45);
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: var(--ember);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.1rem);
}

.nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.4rem 0;
  transition: color 0.25s ease;
}

.nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav .nav-contact {
  padding: 0.6rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.nav .nav-contact.is-active {
  color: var(--ink);
}

.nav .nav-contact:hover {
  background: var(--ink);
  color: var(--paper);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0; /* hide the text glyph; bars are drawn below */
  cursor: pointer;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}

.menu-toggle::before {
  top: 17px;
}

.menu-toggle::after {
  top: 25px;
  left: 17px;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  left: 11px;
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- Shared section scaffolding ---------- */

main {
  display: block;
}

.section {
  position: relative;
  padding: var(--section-y) var(--gutter);
}

.section > * {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.1rem);
}

.section-kicker,
.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  max-width: 220px;
  background: currentColor;
  opacity: 0.4;
}

.eyebrow {
  margin-bottom: 1.5rem;
}

.section-kicker.light,
.eyebrow.light {
  color: var(--ember-soft);
}

.lead {
  font-size: clamp(1.13rem, 1.02rem + 0.45vw, 1.35rem);
  line-height: 1.6;
  color: var(--ink);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid currentColor;
  transition: color 0.25s ease, gap 0.3s var(--ease);
}

.text-link span,
.contact-button span {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.text-link:hover {
  color: var(--ember);
  gap: 0.8rem;
}

.text-link:hover span,
.contact-button:hover span {
  transform: translate(2px, -2px);
}

.light-link {
  color: var(--paper);
}

.light-link:hover {
  color: var(--ember-soft);
}

/* ---------- Image frames + graceful fallback ---------- */

.hero-image-wrap,
.community-photo {
  position: relative;
  isolation: isolate;
}

.hero-image-wrap img,
.community-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Shown only when a photo cannot be loaded, instead of a broken-image icon */
.hero-image-wrap::before,
.community-photo::before {
  content: "MB";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background:
    radial-gradient(120% 80% at 20% 10%, rgba(201, 164, 106, 0.35), transparent 60%),
    radial-gradient(90% 70% at 90% 100%, rgba(181, 80, 47, 0.45), transparent 60%),
    linear-gradient(160deg, #2b2f2a 0%, #1b1e1b 100%);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(5rem, 12vw, 9rem);
  letter-spacing: 0.04em;
  color: rgba(246, 241, 233, 0.16);
}

.media-missing img {
  visibility: hidden;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) var(--gutter) clamp(4rem, 8vw, 6rem);
}

.hero::before {
  /* hairline rule under the hero */
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero h1 {
  font-size: clamp(2.6rem, 1.2rem + 3.9vw, 4.75rem);
  line-height: 1.02;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.hero-intro {
  max-width: 34rem;
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

.hero-image-wrap {
  justify-self: end;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  box-shadow: 0 40px 80px -40px rgba(29, 31, 28, 0.55);
}

.hero-image-wrap img {
  border-radius: var(--radius);
}

/* offset frame */
.hero-image-wrap::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1.5rem -1.5rem -1.5rem 1.5rem;
  border: 1px solid var(--ember);
  border-radius: var(--radius);
  pointer-events: none;
}

.image-note {
  position: absolute;
  z-index: 2;
  left: -1.25rem;
  bottom: 2.5rem;
  padding: 0.85rem 1.2rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  box-shadow: 0 16px 30px -18px rgba(29, 31, 28, 0.5);
}

.image-note::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.7rem;
  border-radius: 50%;
  background: var(--ember);
  vertical-align: 1px;
}

/* ---------- About ---------- */

.intro-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.intro-content p:not(.lead) {
  color: var(--ink-soft);
}

/* ---------- Entrepreneurship ---------- */

.work {
  background: var(--paper-2);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: end;
}

.split h2 {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.split p:not(.lead) {
  color: var(--ink-soft);
  max-width: 38rem;
}

.split .lead {
  max-width: 40rem;
}

.stat-panel {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 30px 60px -36px rgba(29, 31, 28, 0.6);
}

.stat-panel:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 70px -36px rgba(29, 31, 28, 0.7);
}

.stat-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--ember);
}

.big-mark {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(4.5rem, 8vw, 6.5rem);
  line-height: 0.9;
  color: var(--ember-soft);
  margin-bottom: 1.5rem;
}

.stat-panel p.panel-title {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.stat-panel p:not(.panel-title) {
  color: rgba(246, 241, 233, 0.72);
}

/* ---------- Community ---------- */

.community {
  background: var(--night);
  color: var(--paper);
  overflow: hidden;
}

.community .lead {
  color: var(--paper);
}

.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.community-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}

.community-photo img {
  transition: transform 1.2s var(--ease);
}

.community-photo:hover img {
  transform: scale(1.03);
}

.photo-caption {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3rem 1.5rem 1.4rem;
  background: linear-gradient(to top, rgba(23, 26, 24, 0.85), transparent);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.community-copy h2 {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.community-copy h2 em {
  color: var(--ember-soft);
}

.community-copy p:not(.lead):not(.eyebrow) {
  color: rgba(246, 241, 233, 0.7);
}

.community-copy .text-link {
  margin-top: 1.5rem;
}

/* ---------- Leadership ---------- */

.leadership-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(2rem, 6vw, 6rem);
  row-gap: 1.5rem;
}

.leadership-content h2 {
  grid-column: 1 / -1;
  max-width: 16ch;
  margin-bottom: clamp(1rem, 3vw, 2.5rem);
}

.leadership-content .lead {
  padding-left: 1.5rem;
  border-left: 2px solid var(--ember);
}

.leadership-content p:not(.lead) {
  color: var(--ink-soft);
}

/* ---------- Philosophy ---------- */

.philosophy {
  background: var(--night-2);
  color: var(--paper);
  overflow: hidden;
  padding-top: clamp(6rem, 13vw, 11rem);
  padding-bottom: clamp(6rem, 13vw, 11rem);
}

/* Clock face with a slowly sweeping second hand */
.philosophy-bg {
  position: absolute;
  top: 50%;
  right: -12vmin;
  width: min(78vmin, 760px);
  aspect-ratio: 1;
  max-width: none !important;
  margin: 0 !important;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid var(--line-light);
  background:
    radial-gradient(circle, rgba(181, 80, 47, 0.14) 0%, transparent 62%),
    repeating-conic-gradient(from -0.3deg, rgba(246, 241, 233, 0.22) 0deg 0.6deg, transparent 0.6deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 22px), #000 calc(50% - 21px));
  mask: radial-gradient(circle, transparent 0 calc(50% - 22px), #000 calc(50% - 21px));
  pointer-events: none;
}

.philosophy::after {
  /* the second hand itself (separate from the masked ring) */
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-12vmin + min(78vmin, 760px) / 2);
  width: 2px;
  height: calc(min(78vmin, 760px) / 2 - 28px);
  margin-right: -1px;
  background: linear-gradient(to top, transparent, var(--ember) 30%);
  transform-origin: 50% 100%;
  transform: translateY(-100%) rotate(0deg);
  animation: sweep 60s linear infinite;
  opacity: 0.85;
  pointer-events: none;
}

.philosophy::before {
  /* hub */
  content: "";
  position: absolute;
  top: 50%;
  right: calc(-12vmin + min(78vmin, 760px) / 2);
  width: 12px;
  height: 12px;
  margin: -6px -6px 0 0;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 6px rgba(181, 80, 47, 0.18);
  pointer-events: none;
}

@keyframes sweep {
  to {
    transform: translateY(-100%) rotate(360deg);
  }
}

.philosophy-content {
  position: relative;
  z-index: 1;
}

.philosophy-content > * {
  max-width: 40rem;
}

.philosophy h2 {
  font-size: clamp(2.8rem, 1.6rem + 5vw, 5.8rem);
  line-height: 1;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.philosophy h2 em {
  color: var(--ember-soft);
}

.philosophy-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem);
  line-height: 1.5;
  color: var(--paper);
}

.philosophy-content p:not(.philosophy-quote):not(.eyebrow):not(.closing-line) {
  color: rgba(246, 241, 233, 0.7);
}

.closing-line {
  display: inline-block;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Contact ---------- */

.contact {
  text-align: left;
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  align-items: end;
  column-gap: clamp(2rem, 6vw, 6rem);
  row-gap: 2rem;
}

.contact-content h2 {
  grid-row: span 2;
  font-size: clamp(2.4rem, 1.4rem + 4vw, 4.8rem);
}

.contact-content p {
  color: var(--ink-soft);
  max-width: 24rem;
}

.contact-button {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 1.9rem;
  background: var(--ember);
  color: var(--paper);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 18px 32px -18px rgba(150, 64, 31, 0.8);
  transition: background-color 0.25s ease, transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.contact-button:hover {
  background: var(--ember-deep);
  transform: translateY(-2px);
  box-shadow: 0 22px 36px -18px rgba(150, 64, 31, 0.9);
}

.contact-button:active {
  transform: translateY(0);
}

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

footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 2rem;
  padding: 2.5rem var(--gutter);
  background: var(--night);
  color: rgba(246, 241, 233, 0.6);
  font-size: 0.85rem;
}

footer p {
  margin: 0;
  letter-spacing: 0.04em;
}

footer small {
  font-size: 0.78rem;
}

.footer-brand {
  color: var(--paper);
}

/* ---------- Scroll reveal (only when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero load sequence */
.js .hero-copy > * {
  animation: rise 1s var(--ease) both;
}

.js .hero-copy > :nth-child(1) { animation-delay: 0.1s; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.22s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.38s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.52s; }

.js .hero-image-wrap {
  animation: rise 1.2s 0.3s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav {
    gap: 1.1rem;
  }

  .nav a {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 920px) {
  :root {
    --header-h: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.75rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -28px rgba(29, 31, 28, 0.5);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0s;
  }

  .nav a {
    font-size: 0.9rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a:not(.nav-contact)::after {
    display: none;
  }

  .nav .nav-contact,
  .nav .nav-contact.is-active {
    margin-top: 1.25rem;
    padding: 0.95rem 1.2rem;
    text-align: center;
    background: var(--ink);
    color: var(--paper);
    border-bottom: 1px solid var(--ink);
  }

  /* No-JS fallback: keep links reachable */
  html:not(.js) .menu-toggle {
    display: none;
  }

  html:not(.js) .site-header {
    position: absolute;
    height: auto;
    min-height: var(--header-h);
    flex-wrap: wrap;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  html:not(.js) .nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  html:not(.js) .nav a {
    border: 0;
    padding: 0.25rem 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 3.5rem;
  }

  .hero-image-wrap {
    justify-self: start;
    max-width: 440px;
    width: calc(100% - 1.5rem);
  }

  .intro-content,
  .split,
  .community-grid,
  .leadership-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-content h2 {
    grid-row: auto;
  }

  .community-photo {
    max-width: 480px;
  }

  .stat-panel {
    max-width: 480px;
  }

  .philosophy-bg {
    right: -40vmin;
    width: 100vmin;
    opacity: 0.35;
  }

  .philosophy::after {
    opacity: 0.45;
  }

  .philosophy::before,
  .philosophy::after {
    right: calc(-40vmin + 50vmin);
  }

  .philosophy::after {
    height: calc(50vmin - 28px);
  }
}

@media (max-width: 600px) {
  .section-kicker::after {
    max-width: 80px;
  }

  .image-note {
    left: -0.75rem;
    bottom: 1.5rem;
    font-size: 0.62rem;
  }

  .hero-image-wrap::after {
    inset: 1rem -1rem -1rem 1rem;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: calc(var(--header-h) + 3rem);
}

.not-found > * {
  margin-left: 0;
  margin-right: 0;
}

.not-found h2 {
  margin-bottom: 1.75rem;
}

.not-found .lead {
  max-width: 34rem;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}
