:root {
  --paper: #f5f4ed;
  --mist: #e9ede3;
  --sage: #71806b;
  --moss: #2f4337;
  --deep-moss: #21342a;
  --ink: #26322c;
  --muted: #657069;
  --clay: #bd7044;
  --sun: #e5bb76;
  --line: rgba(47, 67, 55, 0.18);
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --body: "Avenir Next", Avenir, "Segoe UI", Helvetica, sans-serif;
  --page-x: clamp(1.25rem, 5vw, 5.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--deep-moss);
  color: white;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem var(--page-x);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--moss);
  font-family: var(--display);
  text-decoration: none;
}

.wordmark > span:first-child,
.footer-mark {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid var(--moss);
  border-radius: 50% 47% 48% 44%;
  font-size: 1.15rem;
  font-style: italic;
}

.wordmark-name {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

nav {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
}

nav a,
.back-to-top {
  position: relative;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.4rem;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
  padding: 8.5rem var(--page-x) 6rem;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  top: -22%;
  right: -12%;
  z-index: -2;
  width: min(68vw, 62rem);
  aspect-ratio: 1;
  border-radius: 48% 52% 62% 38% / 40% 44% 56% 60%;
  background: radial-gradient(circle at 42% 50%, rgba(229, 187, 118, 0.29), rgba(233, 237, 227, 0.78) 46%, rgba(233, 237, 227, 0) 72%);
  content: "";
}

.hero::after {
  position: absolute;
  bottom: 0;
  left: var(--page-x);
  width: calc(100% - (var(--page-x) * 2));
  height: 1px;
  background: var(--line);
  content: "";
}

.hero-copy {
  z-index: 2;
  max-width: 47rem;
  padding-left: clamp(0rem, 3vw, 3.5rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.5rem;
  color: var(--sage);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.8rem, 7.4vw, 7.8rem);
}

h1 em {
  color: var(--sage);
  font-weight: 400;
}

.hero-intro {
  max-width: 34rem;
  margin: 2.1rem 0 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.4rem;
}

.button {
  display: inline-flex;
  min-height: 3.65rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.button-primary {
  background: var(--deep-moss);
  color: #f9f8f1;
  box-shadow: 0 1rem 2.5rem rgba(33, 52, 42, 0.16);
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.button-primary svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 200ms ease;
}

.button-primary:hover {
  background: var(--moss);
  box-shadow: 0 1.2rem 3rem rgba(33, 52, 42, 0.22);
  transform: translateY(-2px);
}

.button-primary:hover svg {
  transform: translateY(3px);
}

.text-link {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--moss);
  font-family: var(--display);
  font-size: 1rem;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.text-link:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.portrait-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 36rem);
  padding: 1.5rem 2rem 2.6rem 0;
}

.portrait {
  position: relative;
  z-index: 2;
  width: 86%;
  aspect-ratio: 0.69;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 48% 48% 9rem 9rem / 29% 29% 12% 12%;
  box-shadow: 0 2rem 5rem rgba(64, 71, 53, 0.2);
}

.portrait::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(255,255,255,0.1), transparent 45%, rgba(52, 68, 55, 0.14));
  content: "";
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 29%;
  filter: saturate(0.78) contrast(0.94) sepia(0.05);
  transform: scale(1.02);
}

.portrait-halo {
  position: absolute;
  top: 0;
  right: 1%;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgba(113, 128, 107, 0.28);
  border-radius: 50%;
}

.portrait-caption {
  position: absolute;
  right: 0;
  bottom: 4.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.7rem 1rem;
  background: rgba(245, 244, 237, 0.86);
  color: var(--sage);
  font-family: var(--display);
  font-size: 0.9rem;
  font-style: italic;
  backdrop-filter: blur(8px);
}

.botanical-line {
  position: absolute;
  right: -1rem;
  bottom: 0;
  z-index: 1;
  width: 8rem;
  fill: none;
  stroke: var(--sage);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1;
  opacity: 0.56;
}

.scroll-note {
  position: absolute;
  bottom: 1.8rem;
  left: var(--page-x);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  color: var(--sage);
  font-family: var(--display);
  font-size: 0.8rem;
  font-style: italic;
}

.scroll-note span {
  width: 3rem;
  height: 1px;
  background: var(--line);
}

.about {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 2rem clamp(3rem, 9vw, 10rem);
  padding: clamp(6rem, 12vw, 11rem) var(--page-x);
}

.section-number {
  position: absolute;
  top: clamp(4rem, 8vw, 7rem);
  right: var(--page-x);
  margin: 0;
  color: rgba(113, 128, 107, 0.22);
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 9rem);
  line-height: 1;
}

.about-heading,
.about-copy,
.values {
  position: relative;
  z-index: 1;
}

.about h2 {
  max-width: 9ch;
  font-size: clamp(3rem, 5.5vw, 6.4rem);
}

.about-copy {
  align-self: end;
  max-width: 38rem;
  padding-top: 4rem;
  color: var(--muted);
}

.about-copy .lead {
  margin-top: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.45;
}

.about-copy p:last-child {
  max-width: 32rem;
  margin-bottom: 0;
}

.values {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: clamp(4rem, 8vw, 7rem) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.values li {
  display: flex;
  min-height: 8rem;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem clamp(1rem, 3vw, 3rem);
}

.values li + li {
  border-left: 1px solid var(--line);
}

.values span {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}

.values small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.pause {
  position: relative;
  display: grid;
  min-height: 44rem;
  grid-template-columns: minmax(0, 0.85fr) minmax(24rem, 1.15fr);
  align-items: center;
  gap: 4rem;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 9rem) var(--page-x);
  background: var(--deep-moss);
  color: #eff1e8;
  isolation: isolate;
}

.pause::before,
.pause::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  filter: blur(1px);
}

.pause::before {
  top: -50%;
  right: -8%;
  width: min(70vw, 58rem);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(181, 167, 111, 0.18), rgba(47, 67, 55, 0) 68%);
}

.pause::after {
  bottom: -55%;
  left: -18%;
  width: 45rem;
  aspect-ratio: 1;
  border: 1px solid rgba(239, 241, 232, 0.08);
}

.pause-copy {
  max-width: 34rem;
}

.eyebrow-light {
  color: #aeb9a7;
}

.pause h2 {
  color: #f6f2e8;
  font-size: clamp(3.4rem, 6vw, 6.5rem);
}

.pause-copy > p:not(.eyebrow) {
  max-width: 29rem;
  margin: 2rem 0 0;
  color: #bfc8bd;
  font-family: var(--display);
  font-size: 1.15rem;
}

.pause-button {
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  gap: 0.8rem;
  margin-top: 2rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(239, 241, 232, 0.36);
  border-radius: 999px;
  background: transparent;
  color: #f4f1e8;
  font: 600 0.72rem/1 var(--body);
  letter-spacing: 0.09em;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease;
}

.pause-button:hover {
  border-color: rgba(239, 241, 232, 0.7);
  background: rgba(255, 255, 255, 0.07);
}

.play-icon {
  width: 0;
  height: 0;
  margin-left: 0.15rem;
  border-top: 0.28rem solid transparent;
  border-bottom: 0.28rem solid transparent;
  border-left: 0.42rem solid currentColor;
}

.pause-button[aria-pressed="true"] .play-icon {
  width: 0.5rem;
  height: 0.55rem;
  margin-left: 0;
  border: 0;
  border-right: 2px solid currentColor;
  border-left: 2px solid currentColor;
}

.breathing-space {
  display: grid;
  min-height: 28rem;
  place-items: center;
}

.breathing-orb {
  position: relative;
  display: grid;
  width: min(31vw, 23rem);
  min-width: 18rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(229, 187, 118, 0.27);
  border-radius: 44% 56% 51% 49% / 51% 42% 58% 49%;
  background: radial-gradient(circle at 38% 35%, rgba(229, 187, 118, 0.3), rgba(113, 128, 107, 0.12) 48%, rgba(255, 255, 255, 0.02) 70%);
  box-shadow: inset 0 0 5rem rgba(229, 187, 118, 0.06), 0 0 6rem rgba(191, 200, 189, 0.05);
}

.orb-ring {
  position: absolute;
  inset: -10%;
  border: 1px solid rgba(239, 241, 232, 0.13);
  border-radius: 52% 48% 43% 57% / 46% 53% 47% 54%;
}

.orb-ring-two {
  inset: -22%;
  border-color: rgba(239, 241, 232, 0.08);
  border-radius: 45% 55% 58% 42% / 54% 44% 56% 46%;
}

.orb-center {
  text-align: center;
}

.orb-center p {
  margin: 0;
  color: #f1e8d7;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-style: italic;
}

.orb-center span {
  display: block;
  margin-top: 0.6rem;
  color: #acb6aa;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.breathing-orb.is-active[data-phase="inhale"] {
  animation: orb-inhale 4s ease-in-out forwards;
}

.breathing-orb.is-active[data-phase="hold"] {
  transform: scale(1.09);
}

.breathing-orb.is-active[data-phase="exhale"] {
  animation: orb-exhale 6s ease-in-out forwards;
}

.breathing-orb.is-active .orb-ring-one {
  animation: drift 12s linear infinite;
}

.breathing-orb.is-active .orb-ring-two {
  animation: drift-reverse 17s linear infinite;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2.4rem var(--page-x);
  background: var(--paper);
}

.footer-mark {
  text-decoration: none;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.9rem;
  font-style: italic;
}

.back-to-top {
  justify-self: end;
}

@keyframes orb-inhale {
  from { transform: scale(0.91); }
  to { transform: scale(1.09); }
}

@keyframes orb-exhale {
  from { transform: scale(1.09); }
  to { transform: scale(0.91); }
}

@keyframes drift {
  to { transform: rotate(360deg); }
}

@keyframes drift-reverse {
  to { transform: rotate(-360deg); }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr 0.75fr;
    gap: 2rem;
  }

  .hero-copy {
    padding-left: 0;
  }

  h1 {
    font-size: clamp(3.5rem, 8vw, 5.5rem);
  }

  .portrait-wrap {
    padding-right: 0;
  }

  .portrait {
    width: 100%;
  }

  .botanical-line {
    right: -2rem;
  }

  .pause {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding-top: 1.1rem;
  }

  .wordmark-name {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 7.8rem;
    padding-bottom: 5rem;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy .hero-intro,
  .hero-copy .hero-actions {
    grid-column: 1;
  }

  .hero-copy .eyebrow {
    grid-row: 1;
    margin-bottom: -0.5rem;
  }

  .hero-copy h1 {
    grid-row: 2;
    font-size: clamp(3.7rem, 15vw, 5.8rem);
  }

  .portrait-wrap {
    grid-row: 3;
    width: min(92%, 29rem);
    margin-top: 0.5rem;
    padding-bottom: 1.5rem;
  }

  .portrait {
    aspect-ratio: 0.79;
    border-radius: 48% 48% 7rem 7rem / 26% 26% 12% 12%;
  }

  .portrait img {
    object-position: center 23%;
  }

  .portrait-caption {
    right: -1rem;
    bottom: 3.5rem;
  }

  .hero-copy .hero-intro {
    grid-row: 4;
    margin-top: 0;
  }

  .hero-copy .hero-actions {
    grid-row: 5;
    margin-top: 0.4rem;
  }

  .scroll-note {
    display: none;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about h2 {
    max-width: 10ch;
  }

  .about-copy {
    padding-top: 2rem;
  }

  .values {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }

  .values li {
    min-height: 6.5rem;
    padding: 1.25rem 0;
  }

  .values li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .pause {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }

  .pause-copy {
    margin-inline: auto;
  }

  .pause-copy .eyebrow {
    justify-content: center;
  }

  .breathing-space {
    min-height: auto;
  }

  .breathing-orb {
    width: min(72vw, 20rem);
    min-width: 0;
  }

  footer {
    grid-template-columns: auto 1fr;
  }

  footer p {
    display: none;
  }
}

@media (max-width: 430px) {
  :root {
    --page-x: 1.15rem;
  }

  nav {
    gap: 1.25rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .button {
    width: 100%;
  }

  .portrait-wrap {
    width: 96%;
  }

  .section-number {
    display: none;
  }

  .pause h2 {
    font-size: 3.2rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .portrait-wrap {
    opacity: 0;
    animation: reveal 800ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .hero-copy .eyebrow { animation-delay: 100ms; }
  .hero-copy h1 { animation-delay: 200ms; }
  .hero-intro { animation-delay: 340ms; }
  .hero-actions { animation-delay: 460ms; }
  .portrait-wrap { animation-delay: 280ms; }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(1.2rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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

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