/* Naga Brief — soft black & white + Sun Life yellow.
   No pure #000: charcoal ink keeps photos and type softer. */

@font-face {
  font-family: "Young Serif";
  src: url("assets/fonts/YoungSerif-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("assets/fonts/AtkinsonHyperlegible-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("assets/fonts/AtkinsonHyperlegible-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* White side — bright, not pure glare */
  --paper: #f6f6f4;
  --paper-deep: #ececeb;
  --surface: #ffffff;
  /* Soft black — never #000 */
  --ink: #222222;
  --ink-soft: #5e5e5e;
  --night: #1a1a1a;
  --night-soft: #2e2e2e;
  /* Sun Life accent only */
  --sun: #f0b429;
  --sun-bright: #f6c84a;
  --line: color-mix(in srgb, var(--ink) 10%, var(--paper));
  --focus: var(--sun);
  --font-display: "Young Serif", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  --shell: min(1080px, calc(100% - 2.5rem));
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 700ms;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% 0%, color-mix(in srgb, var(--sun) 9%, transparent), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: color-mix(in srgb, var(--sun) 35%, white);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sun);
  color: var(--night);
  padding: 0.6rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Header — soft-black gradient so light nav type stays readable on any photo */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
}

.site-header--over-hero {
  /* Tall scrim: readable on white walls / bright skies without a solid bar */
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--night) 90%, transparent) 0%,
    color-mix(in srgb, var(--night) 62%, transparent) 42%,
    color-mix(in srgb, var(--night) 22%, transparent) 72%,
    transparent 100%
  );
  padding-bottom: 2.75rem;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.site-header--over-hero .locale,
.site-header--over-hero .nav a:not(.nav-cta) {
  color: #f5f5f5;
  text-shadow: 0 1px 2px color-mix(in srgb, var(--night) 55%, transparent);
}

.site-header--over-hero .nav a:not(.nav-cta):hover {
  color: #fff;
}

.site-header--over-hero .nav-cta,
.nav-cta {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--night) !important;
  background: var(--sun);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: none;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--night) 28%, transparent);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.locale {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

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

/* Hero — full-bleed photo, modern bottom-left type stack */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: var(--night);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.hero-media img {
  animation: settle 1.6s var(--ease) both;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Top: keeps nav readable when the photo is bright */
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--night) 55%, transparent) 0%,
      transparent 28%
    ),
    linear-gradient(
      105deg,
      color-mix(in srgb, var(--night) 78%, transparent) 0%,
      color-mix(in srgb, var(--night) 42%, transparent) 42%,
      transparent 68%
    ),
    linear-gradient(
      0deg,
      color-mix(in srgb, var(--night) 88%, transparent) 0%,
      color-mix(in srgb, var(--night) 35%, transparent) 38%,
      transparent 62%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin-inline: auto;
  padding: 0 0 clamp(2.75rem, 7vh, 4.5rem);
  padding-top: 5.5rem;
}

.hero-copy {
  max-width: 32rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-mark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #fff;
  text-wrap: balance;
}

.hero-rule {
  width: 3rem;
  height: 3px;
  margin: 1.35rem 0 1.5rem;
  background: var(--sun);
  border-radius: 1px;
  transform-origin: left center;
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 18ch;
  color: color-mix(in srgb, #fff 94%, var(--sun));
}

.lede {
  margin: 0;
  max-width: 28ch;
  color: color-mix(in srgb, #fff 72%, transparent);
  font-size: 1.02rem;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.45rem;
  border: 0;
  border-radius: 999px;
  background: var(--sun);
  color: var(--night);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--night) 25%, transparent);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--sun-bright);
}

.text-link {
  color: color-mix(in srgb, #fff 88%, var(--sun));
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid color-mix(in srgb, var(--sun) 65%, transparent);
  padding-bottom: 0.15rem;
}

.text-link:hover {
  color: #fff;
  border-bottom-color: var(--sun);
}

/* Affiliation — one quiet proof row */
.affiliation {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 70%, white);
}

.affiliation-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 0;
}

.affiliation img {
  height: 42px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.2);
}

.affiliation p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 52ch;
}

/* Sections */
.cover,
.about,
.stories,
.faq {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-intro {
  margin-bottom: 2.25rem;
  max-width: 36rem;
}

.section-intro h2,
.about-copy h2,
.book-shell h2,
.faq-shell h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--night);
}

.section-intro p {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
}

/* Needs as a list — not icon cards */
.need-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.need-list li {
  display: grid;
  grid-template-columns: minmax(10rem, 0.4fr) 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.need-name {
  font-weight: 700;
  color: var(--ink);
}

.need-desc {
  color: var(--ink-soft);
}

/* About */
.about {
  background: color-mix(in srgb, white 55%, var(--paper));
}

.about-shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.about-copy p {
  margin: 1rem 0 0;
  color: var(--ink-soft);
  max-width: 42ch;
}

.steps {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  align-items: baseline;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  color: var(--sun);
  font-size: 1.1rem;
  grid-row: span 2;
}

.steps strong {
  color: var(--night);
}

.steps span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.about-note {
  margin: 0;
  padding: 1.75rem;
  background: var(--night);
  color: #eef5f3;
  border-radius: 2px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.about-note blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.35;
}

.about-note figcaption {
  margin-top: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sun-bright) 80%, white);
}

/* Stories — one featured, two supporting (not three twin cards) */
.story-feature {
  margin: 0 0 1.5rem;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.story-feature blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  line-height: 1.35;
  max-width: 28ch;
  color: var(--night);
}

.story-feature figcaption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.story-feature img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.story-feature strong {
  display: block;
}

.story-feature em {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.story-mini {
  margin: 0;
}

.story-mini blockquote {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
}

.story-mini figcaption {
  color: var(--ink);
  font-size: 0.9rem;
}

/* Book — the interactive container */
.book {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background: var(--night);
  color: #eef5f3;
}

.book-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.book-shell--simple {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.book-actions {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.book-shell h2 {
  color: #fff;
}

.book-shell > div > p {
  margin: 0.75rem 0 0;
  color: color-mix(in srgb, #eef5f3 75%, var(--night));
  max-width: 36ch;
}

.book-fallback {
  margin-top: 1.25rem !important;
  font-size: 0.92rem;
}

.book-fallback-link {
  margin-left: 0.35rem;
}

.book-cal {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

#cal-embed {
  width: 100%;
  min-height: 560px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
}

#cal-embed iframe {
  width: 100%;
  min-height: 560px;
  border: 0;
}

.form-note {
  margin: 0;
  font-size: 0.8rem;
  color: color-mix(in srgb, #eef5f3 55%, transparent);
}

.form-note code {
  font-size: 0.78em;
  color: var(--sun-bright);
}

.cal-placeholder {
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 2rem;
  text-align: center;
  color: var(--ink-soft);
  background: var(--surface);
}

.cal-placeholder p {
  margin: 0;
  max-width: 28ch;
  line-height: 1.5;
}

.cal-placeholder code {
  color: var(--night);
  font-weight: 700;
}

/* FAQ */
.faq-shell {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 2rem;
  align-items: start;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--night);
}

.faq-list p {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  max-width: 48ch;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-shell {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  font-size: 1.75rem;
  color: var(--night);
}

.site-footer p {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}

.disclosure {
  max-width: 58ch;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Motion — one load sequence, not scatter */
@media (prefers-reduced-motion: no-preference) {
  .animate-in {
    opacity: 0;
    transform: translateY(16px);
    animation: rise var(--dur) var(--ease) forwards;
  }

  .hero-rule.animate-in {
    transform: scaleX(0);
    opacity: 1;
    animation: rule-in 0.8s var(--ease) 0.12s forwards;
  }

  .delay-1 {
    animation-delay: 90ms;
  }
  .delay-2 {
    animation-delay: 180ms;
  }
  .delay-3 {
    animation-delay: 270ms;
  }
  .delay-4 {
    animation-delay: 360ms;
  }

  @keyframes rise {
    to {
      opacity: 1;
      transform: none;
    }
  }

  @keyframes rule-in {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }

  @keyframes settle {
    from {
      transform: scale(1.08);
      filter: saturate(0.92);
    }
    to {
      transform: scale(1);
      filter: none;
    }
  }

  .need-list li {
    transition: background 200ms ease, padding-left 200ms var(--ease);
  }

  .need-list li:hover {
    background: color-mix(in srgb, white 45%, transparent);
    padding-left: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-in,
  .hero-media img {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    min-height: 100svh;
  }

  .hero-scrim {
    background:
      linear-gradient(
        0deg,
        color-mix(in srgb, var(--night) 92%, transparent) 0%,
        color-mix(in srgb, var(--night) 45%, transparent) 42%,
        color-mix(in srgb, var(--night) 20%, transparent) 70%,
        transparent 100%
      );
  }

  .hero-media img {
    object-position: center 10%;
  }

  .affiliation-shell,
  .about-shell,
  .book-shell,
  .faq-shell,
  .story-row,
  .need-list li {
    grid-template-columns: 1fr;
  }

  .nav {
    gap: 0.75rem;
  }
}

@media (max-width: 560px) {
  .header-shell {
    padding-inline: 0;
  }

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

  .brand-mark {
    font-size: clamp(2.6rem, 14vw, 3.4rem);
  }

  .hero-content {
    padding-bottom: 2.25rem;
  }
}
