:root {
  --ink: #171a17;
  --muted: #707066;
  --paper: #f4efe7;
  --paper-deep: #e7dbc8;
  --charcoal: #111412;
  --bronze: #a98235;
  --gold: #d6b66d;
  --line: rgba(23, 26, 23, 0.18);
  --line-strong: rgba(23, 26, 23, 0.32);
  --shadow: 0 34px 90px rgba(31, 27, 19, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
  padding: 16px clamp(20px, 4vw, 58px);
  color: var(--ink);
  background: rgba(244, 239, 231, 0.1);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(244, 239, 231, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 38px rgba(23, 26, 23, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 330px;
}

.brand-mark {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  box-shadow: 0 16px 40px rgba(31, 27, 19, 0.16);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 3vw, 3rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.brand small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.4vw, 44px);
  color: var(--ink);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  opacity: 0.72;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
  color: var(--bronze);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: inherit;
  background: rgba(244, 239, 231, 0.72);
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 116px clamp(20px, 4vw, 58px) 36px;
  background:
    radial-gradient(circle at 78% 28%, rgba(214, 182, 109, 0.28), transparent 30%),
    linear-gradient(135deg, #f8f2e9 0%, #e6dac7 54%, #f4efe7 100%);
  isolation: isolate;
}

.grain {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(23, 26, 23, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 26, 23, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero::before {
  content: "MEMENTO MORI";
  position: absolute;
  top: clamp(78px, 8vw, 112px);
  left: clamp(20px, 4vw, 58px);
  z-index: -2;
  color: rgba(23, 26, 23, 0.055);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.6rem, 14vw, 13.5rem);
  line-height: 0.8;
  white-space: nowrap;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.64fr);
  gap: clamp(34px, 7vw, 110px);
  align-items: end;
  width: 100%;
  padding-bottom: clamp(44px, 7vh, 90px);
}

.hero-copy-block {
  max-width: 940px;
  padding-top: clamp(150px, 23vh, 250px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--bronze);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.95;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 6.2vw, 6.45rem);
}

.keep-together {
  white-space: nowrap;
}

h2 {
  font-size: clamp(2.05rem, 4.1vw, 4.15rem);
}

h3 {
  font-size: 1.15rem;
  line-height: 1.1;
}

.hero-copy {
  max-width: 760px;
  margin: 26px 0 0;
  color: #3d4038;
  font-size: clamp(1.5rem, 2.025vw, 1.77rem);
}

.delay-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  max-width: 720px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.delay-note strong {
  color: var(--bronze);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.delay-note span {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 2.1vw, 1.8rem);
  line-height: 1.08;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.button.primary {
  color: var(--paper);
  background: var(--ink);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #000000;
}

.button.secondary {
  color: var(--ink);
  background: rgba(244, 239, 231, 0.38);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--bronze);
  color: #7d5f22;
}

.hourglass-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 620px;
}

.time-ring {
  position: absolute;
  width: min(620px, 92vw);
  aspect-ratio: 1;
  top: calc(50% - 72px);
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(23, 26, 23, 0.18);
  border-radius: 50%;
  animation: turn 28s linear infinite;
  transform-origin: center;
}

.time-ring span {
  position: absolute;
  color: rgba(23, 26, 23, 0.58);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.time-ring span:nth-child(1) {
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.time-ring span:nth-child(2) {
  right: -18px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
}

.time-ring span:nth-child(3) {
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-hourglass {
  width: min(390px, 72vw);
  max-height: 58vh;
  filter: drop-shadow(0 36px 60px rgba(31, 27, 19, 0.22));
}

.glass {
  fill: none;
  stroke: var(--ink);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sand-top,
.sand-bottom {
  fill: url(#sand);
}

.sand-stream {
  fill: none;
  stroke: url(#sand);
  stroke-width: 7;
  stroke-linecap: round;
  animation: pulse 1.8s ease-in-out infinite;
}

.pin {
  fill: var(--gold);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(460px, 100%);
  margin-top: clamp(34px, 5vw, 58px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: rgba(248, 242, 233, 0.66);
  backdrop-filter: blur(14px);
}

.hero-metrics div {
  padding: clamp(8px, 1.1vw, 12px);
  border-right: 1px solid var(--line);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics strong {
  display: block;
  color: var(--bronze);
  font-size: clamp(0.82rem, 1.05vw, 1rem);
  letter-spacing: 0.12em;
}

.hero-metrics span {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.82rem, 1.05vw, 1.05rem);
  line-height: 1.05;
}

.section {
  padding: clamp(82px, 10vw, 138px) clamp(20px, 4vw, 58px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.72fr);
  gap: clamp(30px, 7vw, 110px);
  align-items: start;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.intro > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(1.5rem, 2.025vw, 1.77rem);
}

.reminder-section {
  display: block;
}

.reminder-section .section-heading {
  max-width: min(1280px, 100%);
}

.reminder-section h2 {
  max-width: 18ch;
  line-height: 1;
}

.reminder-section > p {
  max-width: 820px;
  margin-top: 24px;
  font-size: clamp(1.5rem, 2.025vw, 1.77rem);
}

.daily-exam {
  padding: clamp(62px, 8vw, 104px) clamp(20px, 4vw, 58px);
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(17, 20, 18, 0.94), rgba(17, 20, 18, 0.76)),
    radial-gradient(circle at 86% 20%, rgba(214, 182, 109, 0.24), transparent 30%),
    var(--charcoal);
}

.daily-exam h2 {
  max-width: 980px;
  color: var(--paper);
}

.exam-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid rgba(244, 239, 231, 0.28);
  border-left: 1px solid rgba(244, 239, 231, 0.28);
}

.exam-grid span {
  min-height: 150px;
  padding: 24px;
  border-right: 1px solid rgba(244, 239, 231, 0.28);
  border-bottom: 1px solid rgba(244, 239, 231, 0.28);
  color: rgba(244, 239, 231, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  line-height: 1.05;
}

.section-heading {
  max-width: 960px;
}

.section-heading-wide {
  max-width: 1120px;
}

.method {
  background: var(--charcoal);
  color: var(--paper);
}

.method h2,
.method h3 {
  color: var(--paper);
}

.method .eyebrow,
.outcomes .eyebrow {
  color: var(--gold);
}

.method-grid,
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid rgba(244, 239, 231, 0.28);
  border-left: 1px solid rgba(244, 239, 231, 0.28);
}

.method-grid article,
.outcome-grid div {
  min-height: 250px;
  padding: 30px;
  border-right: 1px solid rgba(244, 239, 231, 0.28);
  border-bottom: 1px solid rgba(244, 239, 231, 0.28);
}

.method-grid span {
  display: block;
  margin-bottom: 70px;
  color: var(--gold);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.method-grid p,
.outcome-grid span,
.contact-copy p {
  color: var(--muted);
  font-size: clamp(1.5rem, 2.025vw, 1.77rem);
  line-height: 1.32;
}

.method-grid h3,
.outcome-grid strong {
  font-size: clamp(1.5rem, 2.025vw, 1.77rem);
  line-height: 1.16;
}

.method-grid p,
.outcome-grid span {
  color: rgba(244, 239, 231, 0.68);
}

.outcomes {
  color: var(--ink);
  background: var(--paper-deep);
}

.outcome-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-color: var(--line-strong);
}

.outcome-grid div {
  min-height: 210px;
  border-color: var(--line-strong);
}

.outcome-grid strong,
.outcome-grid span {
  display: block;
}

.outcome-grid strong {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.outcome-grid span {
  margin-top: 14px;
  color: var(--muted);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 98px);
  align-items: start;
  background: var(--paper);
}

.contact-copy p {
  max-width: 620px;
  margin-top: 22px;
}

.contact-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--ink);
  font-size: clamp(1.5rem, 2.025vw, 1.77rem);
  font-weight: 900;
  border-bottom: 1px solid currentColor;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line-strong);
  background: rgba(248, 242, 233, 0.72);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 16px 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: clamp(1.18rem, 1.55vw, 1.42rem);
}

select option {
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--bronze);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 4vw, 58px);
  color: var(--paper);
  background: var(--charcoal);
}

.site-footer a {
  color: var(--gold);
  font-weight: 800;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 1;
  }
}

@keyframes turn {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (max-width: 980px) {
  .hero-shell,
  .intro,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hourglass-stage {
    min-height: 520px;
  }

  .method-grid,
  .exam-grid,
  .outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .site-header {
    min-height: 70px;
    padding: 12px 18px;
  }

  .brand {
    min-width: auto;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .brand strong {
    font-size: 1.68rem;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line-strong);
    color: var(--ink);
    background: rgba(244, 239, 231, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .hero {
    min-height: auto;
    padding: 104px 18px 28px;
  }

  .hero::before {
    top: 84px;
    font-size: clamp(4.2rem, 23vw, 7rem);
  }

  h1 {
    max-width: 10ch;
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  .hero-shell {
    gap: 36px;
    padding-bottom: 32px;
  }

  .hero-copy-block {
    padding-top: 148px;
  }

  .delay-note {
    grid-template-columns: 1fr;
  }

  .hourglass-stage {
    min-height: 430px;
  }

  .time-ring span {
    font-size: 0.62rem;
  }

  .time-ring {
    width: min(420px, 92vw);
  }

  .hero-metrics,
  .exam-grid,
  .method-grid,
  .outcome-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics div,
  .exam-grid span,
  .method-grid article,
  .outcome-grid div {
    border-right: 0;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
