/* LFRY shared styles - linked by index.html and about.html */
@font-face {
      font-family: "Public Sans";
      src: url("assets/publicsans-var.woff2") format("woff2");
      font-weight: 100 900;
      font-style: normal;
      font-display: swap;
    }

    :root {
      --paper: #FAFAF7;
      --tint: #F1F1ED;
      --ink: #17191D;
      --muted: #5C6068;
      --navy: #1F3B5B;
      --navy-deep: #152638;
      --navy-hover: #16304B;
      --hairline: #E5E4E0;
      --hairline-dark: rgba(250, 250, 247, 0.16);
      --pale: rgba(250, 250, 247, 0.68);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    html { scroll-behavior: smooth; scroll-padding-top: 76px; }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
    }

    body {
      background: var(--paper);
      color: var(--ink);
      font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 16px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      /* clip (not hidden) so the hero bleed is contained without breaking position:sticky */
      overflow-x: clip;
    }

    .wrap {
      max-width: 1120px;
      margin: 0 auto;
      padding: 0 24px;
    }

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

    /* ---------- Nav (frosted chrome, Apple-style) ---------- */
    header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: color-mix(in srgb, var(--paper) 82%, transparent);
      -webkit-backdrop-filter: saturate(180%) blur(20px);
      backdrop-filter: saturate(180%) blur(20px);
      border-bottom: 1px solid transparent;
      transition: border-color 0.4s ease, background 0.4s ease;
    }
    header.scrolled { border-bottom-color: var(--hairline); }
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
      header { background: var(--paper); }
    }
    nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 64px;
    }
    .wordmark {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-weight: 600;
      letter-spacing: 0.02em;
      color: var(--ink);
      text-decoration: none;
      font-size: 16.5px;
    }
    .wordmark .mark {
      width: 30px;
      height: 30px;
      flex: none;
      display: block;
    }
    .wordmark small {
      font-size: 16.5px;
      font-weight: 450;
      color: var(--muted);
    }
    nav .contact-link {
      color: var(--ink);
      text-decoration: none;
      font-size: 14.5px;
      font-weight: 550;
      padding: 12px 20px;
      border: 1px solid var(--hairline);
      border-radius: 999px;
      transition: border-color 0.3s ease, background 0.3s ease;
    }
    nav .contact-link:hover { border-color: var(--navy); }
    nav .contact-link:active { transform: translateY(1px); }

    /* ---------- Hero ---------- */
    .hero { padding: 88px 0 104px; position: relative; }
    .hero-grid {
      display: grid;
      grid-template-columns: 6fr 5fr;
      gap: 72px;
      align-items: center;
    }
    .kicker {
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--navy);
      margin-bottom: 26px;
    }
    h1 {
      font-size: clamp(2.25rem, 4.9vw, 3.6rem);
      line-height: 1.05;
      letter-spacing: -0.028em;
      font-weight: 560;
      max-width: 15ch;
      text-wrap: balance;
    }
    .hero p {
      margin-top: 26px;
      color: var(--muted);
      max-width: 42ch;
      font-size: 17.5px;
      line-height: 1.65;
    }
    .cta {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      margin-top: 40px;
      background: var(--navy);
      color: var(--paper);
      text-decoration: none;
      font-weight: 550;
      font-size: 15px;
      padding: 15px 30px;
      border-radius: 999px;
      transition: transform 0.15s ease, background 0.3s ease;
    }
    .cta::after {
      content: "";
      width: 14px;
      height: 1.5px;
      background: currentColor;
      display: inline-block;
      transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .cta:hover { background: var(--navy-hover); }
    .cta:hover::after { width: 22px; }
    .cta:active { transform: translateY(1px); }

    /* Image bleeds to the right viewport edge */
    .hero-media {
      position: relative;
      margin-right: calc((100vw - min(1120px, 100vw - 48px)) / -2);
    }
    .hero-media img {
      width: 100%;
      height: auto;
      display: block;
      aspect-ratio: 4 / 4.6;
      object-fit: cover;
      border-radius: 10px 0 0 10px;
      box-shadow: 0 30px 60px -34px rgba(31, 59, 91, 0.34);
    }
    .hero-media::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 10px 0 0 10px;
      box-shadow: inset 0 0 0 1px rgba(23, 25, 29, 0.06);
      pointer-events: none;
    }

    /* ---------- Load-in (hero only) ---------- */
    @media (prefers-reduced-motion: no-preference) {
      .hero-grid > * {
        opacity: 0;
        transform: translateY(16px);
        animation: rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      }
      .hero-grid > *:nth-child(2) { animation-delay: 0.14s; }
      @keyframes rise { to { opacity: 1; transform: none; } }
    }

    /* ---------- Scroll reveals (progressive: only when JS adds .reveal-ready
       AND motion is allowed; no-JS and reduced-motion stay fully visible) ---------- */
    @media (prefers-reduced-motion: no-preference) {
      html.reveal-ready :is(
        section h2, .service, .serve-grid > div, .stage,
        .faq details, .approach .inner, .contact-lede, .contact-grid,
        [data-reveal]
      ) {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
        will-change: opacity, transform;
      }
      html.reveal-ready :is(
        section h2, .service, .serve-grid > div, .stage,
        .faq details, .approach .inner, .contact-lede, .contact-grid,
        [data-reveal]
      ).in {
        opacity: 1;
        transform: none;
      }
    }

    /* ---------- Sections ---------- */
    section { padding: 104px 0; }
    .services { border-top: 1px solid var(--hairline); }
    h2 {
      font-size: clamp(1.5rem, 2.4vw, 1.75rem);
      font-weight: 600;
      letter-spacing: -0.02em;
      margin-bottom: 48px;
      text-wrap: balance;
    }

    /* Services: stacked rows */
    .service {
      display: grid;
      grid-template-columns: 4fr 8fr;
      gap: 32px;
      padding: 34px 0;
      border-top: 1px solid var(--hairline);
      transition: background 0.35s ease;
    }
    .service:last-child { border-bottom: 1px solid var(--hairline); }
    .service h3 {
      font-size: 1.125rem;
      font-weight: 600;
      letter-spacing: -0.01em;
      transition: color 0.35s ease;
    }
    .service p { color: var(--muted); max-width: 58ch; font-size: 16.5px; }
    .service:hover h3 { color: var(--navy); }

    /* Who we serve: ruled columns */
    .section-lede {
      color: var(--muted);
      max-width: 52ch;
      margin: -32px 0 48px;
      font-size: 17px;
    }
    .serve-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 40px;
    }
    @media (min-width: 768px) and (max-width: 1023px) {
      .serve-grid { grid-template-columns: repeat(2, 1fr); }
    }
    .serve-grid > div {
      border-top: 2px solid var(--ink);
      padding-top: 22px;
    }
    .serve-grid h3 {
      font-size: 1.0625rem;
      font-weight: 600;
      letter-spacing: -0.01em;
      margin-bottom: 12px;
    }
    .serve-grid p { color: var(--muted); font-size: 15.5px; }

    /* How we work: split with image */
    .process { background: var(--tint); }
    .process-grid {
      display: grid;
      grid-template-columns: 6fr 5fr;
      gap: 72px;
      align-items: start;
    }
    .stage {
      display: grid;
      grid-template-columns: 44px 1fr;
      gap: 20px;
      padding: 26px 0;
      border-top: 1px solid var(--hairline);
    }
    .stage:first-of-type { border-top: none; padding-top: 0; }
    .stage .n {
      font-size: 14px;
      font-weight: 600;
      color: var(--navy);
      padding-top: 3px;
      font-variant-numeric: tabular-nums;
    }
    .stage h3 {
      font-size: 1.0625rem;
      font-weight: 600;
      letter-spacing: -0.01em;
      margin-bottom: 6px;
    }
    .stage p { color: var(--muted); font-size: 15.5px; max-width: 48ch; }
    .process-media img {
      width: 100%;
      height: auto;
      display: block;
      aspect-ratio: 3 / 4;
      object-fit: cover;
      border-radius: 10px;
      box-shadow: 0 30px 60px -34px rgba(31, 59, 91, 0.30);
    }
    .process-media {
      position: relative;
      position: sticky;
      top: 48px;
    }
    .process-media::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 10px;
      box-shadow: inset 0 0 0 1px rgba(23, 25, 29, 0.06);
      pointer-events: none;
    }

    /* FAQ: native disclosure rows */
    .faq details {
      border-top: 1px solid var(--hairline);
    }
    .faq details:last-child { border-bottom: 1px solid var(--hairline); }
    .faq summary {
      list-style: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding: 24px 0;
      font-size: 1.0625rem;
      font-weight: 550;
      letter-spacing: -0.01em;
      transition: color 0.3s ease;
    }
    .faq summary::-webkit-details-marker { display: none; }
    .faq summary:hover { color: var(--navy); }
    .faq summary .x {
      flex: none;
      width: 14px;
      height: 14px;
      position: relative;
      transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .faq summary .x::before,
    .faq summary .x::after {
      content: "";
      position: absolute;
      background: var(--navy);
      inset: 50% auto auto 0;
      width: 14px;
      height: 1.5px;
      transform: translateY(-50%);
    }
    .faq summary .x::after { transform: translateY(-50%) rotate(90deg); }
    .faq details[open] summary .x { transform: rotate(45deg); }
    .faq details p {
      color: var(--muted);
      max-width: 62ch;
      padding: 0 0 26px;
      font-size: 16px;
    }

    /* Approach band */
    .approach { background: var(--tint); }
    .approach .inner {
      max-width: 62ch;
      border-left: 2px solid var(--navy);
      padding-left: 36px;
    }
    .approach p {
      font-size: clamp(1.25rem, 2vw, 1.5rem);
      line-height: 1.5;
      letter-spacing: -0.015em;
      font-weight: 480;
      color: var(--ink);
      text-wrap: balance;
    }
    .approach p + p {
      margin-top: 22px;
      color: var(--muted);
      font-size: 1.0625rem;
      font-weight: 400;
      letter-spacing: 0;
    }

    /* ---------- Structure diagram ---------- */
    .structure { background: var(--tint); }
    .diagram { max-width: 780px; margin: 8px auto 0; }
    .diagram svg { width: 100%; height: auto; display: block; }
    .diagram-caption {
      text-align: center;
      color: var(--muted);
      font-size: 14.5px;
      margin: 30px auto 0;
      max-width: 54ch;
    }
    /* Structure builds itself top-down: nodes settle in, connectors draw.
       Plays once on scroll-in; static for reduced-motion / no-JS. */
    @media (prefers-reduced-motion: no-preference) {
      .diagram.armed .grp {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
      }
      .diagram.armed .link {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        transition: stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      }
      .diagram.armed.animate .grp { opacity: 1; transform: none; }
      .diagram.armed.animate .link { stroke-dashoffset: 0; }
      .diagram.armed.animate .g1 { transition-delay: 0.05s; }
      .diagram.armed.animate .d1 { transition-delay: 0.36s; }
      .diagram.armed.animate .g2 { transition-delay: 0.60s; }
      .diagram.armed.animate .d2 { transition-delay: 0.86s; }
      .diagram.armed.animate .d3 { transition-delay: 1.00s; }
      .diagram.armed.animate .d4 { transition-delay: 1.20s; }
      .diagram.armed.animate .d5 { transition-delay: 1.26s; }
      .diagram.armed.animate .d6 { transition-delay: 1.32s; }
      .diagram.armed.animate .g3 { transition-delay: 1.36s; }
      .diagram.armed.animate .g4 { transition-delay: 1.46s; }
      .diagram.armed.animate .g5 { transition-delay: 1.56s; }
    }

    /* ---------- Full-bleed cinematic band ---------- */
    .band {
      position: relative;
      width: 100%;
      min-height: 460px;
      display: flex;
      align-items: center;
      overflow: hidden;
      background: var(--navy-deep);
    }
    .band > img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .band::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(90deg,
        rgba(21, 38, 56, 0.86) 0%,
        rgba(21, 38, 56, 0.52) 46%,
        rgba(21, 38, 56, 0.12) 100%);
    }
    .band .wrap { position: relative; z-index: 1; }
    .band p {
      color: var(--paper);
      font-size: clamp(1.5rem, 3.4vw, 2.375rem);
      font-weight: 550;
      letter-spacing: -0.02em;
      line-height: 1.14;
      max-width: 16ch;
      text-wrap: balance;
    }

    /* ---------- Monogram watermark (approach band) ---------- */
    .approach { position: relative; overflow: hidden; }
    .approach .inner { position: relative; z-index: 1; }
    .approach .watermark {
      position: absolute;
      right: -44px;
      bottom: -72px;
      width: 340px;
      height: 340px;
      opacity: 0.05;
      pointer-events: none;
      user-select: none;
    }

    /* ---------- Dark contact block (the one color-block moment) ---------- */
    .contact-block {
      background: var(--navy-deep);
      color: var(--paper);
    }
    .contact-block section { padding: 104px 0 88px; }
    .contact-block h2 { color: var(--paper); }
    .contact-lede {
      color: var(--pale);
      max-width: 46ch;
      margin: -28px 0 56px;
      font-size: 17px;
    }
    .contact-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 48px;
    }
    .contact-grid h3 {
      font-size: 12.5px;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--pale);
      margin-bottom: 16px;
    }
    .contact-grid address,
    .contact-grid p {
      font-style: normal;
      line-height: 1.75;
      font-size: 16.5px;
    }
    .contact-grid a {
      color: var(--paper);
      text-decoration: none;
      border-bottom: 1px solid var(--hairline-dark);
      transition: border-color 0.3s ease;
      /* comfortable touch target on mobile */
      display: inline-block;
      padding: 10px 0;
      min-height: 44px;
    }
    .contact-grid a:hover { border-color: var(--paper); }

    .contact-block footer {
      border-top: 1px solid var(--hairline-dark);
      padding: 36px 0 44px;
    }
    .footer-mark {
      display: block;
      width: 44px;
      height: 44px;
      margin-bottom: 28px;
      opacity: 0.9;
    }
    .contact-block footer .row {
      display: flex;
      justify-content: space-between;
      gap: 24px;
      flex-wrap: wrap;
    }
    .contact-block footer p {
      font-size: 13.5px;
      color: var(--pale);
      max-width: 62ch;
    }

    /* ---------- Mobile ---------- */
    @media (max-width: 767px) {
      .hero { padding: 40px 0 72px; }
      .hero-grid { grid-template-columns: 1fr; gap: 44px; }
      .hero-media { order: -1; margin-right: -24px; margin-left: -24px; }
      .hero-media img { aspect-ratio: 4 / 3; border-radius: 0; }
      .hero-media::after { border-radius: 0; }
      h1 { max-width: none; }
      section { padding: 72px 0; }
      .service { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
      .serve-grid { grid-template-columns: 1fr; gap: 32px; }
      .process-grid { grid-template-columns: 1fr; gap: 48px; }
      .process-media { position: static; order: -1; }
      .process-media img { aspect-ratio: 16 / 10; }
      .stage { grid-template-columns: 36px 1fr; gap: 14px; }
      .approach .inner { padding-left: 24px; }
      .contact-grid { grid-template-columns: 1fr; gap: 36px; }
      .contact-block section { padding: 72px 0 56px; }
      .band { min-height: 320px; }
      .approach .watermark { width: 210px; height: 210px; right: -30px; bottom: -44px; }
    }

/* ======================================================================
   Nav: About link + right group (index.html + about.html)
   ====================================================================== */
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 550;
  transition: color 0.25s ease;
}
.nav-link:hover { color: var(--navy); }
.nav-link[aria-current="page"] { color: var(--navy); }

/* ======================================================================
   About page
   ====================================================================== */
.founder-hero { padding: 72px 0 88px; }
.founder-hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 72px;
  align-items: end;
}
.founder-role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
}
.founder-name {
  font-size: clamp(3.25rem, 8.6vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin: 22px 0 0;
  color: var(--ink);
}
.founder-name span { display: block; }
.founder-tagline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.founder-tagline span { display: inline-flex; align-items: center; gap: 22px; }
.founder-tagline span + span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.45;
}
.founder-lead {
  margin-top: 30px;
  max-width: 44ch;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}
.founder-photo { position: relative; }
.founder-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(23, 25, 29, 0.06), 0 24px 60px -24px rgba(21, 38, 56, 0.35);
}
.founder-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(23, 25, 29, 0.06);
  pointer-events: none;
}

.stats { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 28px 38px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--hairline); }
.stat-num {
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 22ch;
}

.founder-story { padding: 96px 0 104px; }
.story-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; }
.story-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  padding-top: 6px;
}
.story-body p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  max-width: 62ch;
}
.story-body p + p { margin-top: 20px; }
.story-quote {
  margin: 40px 0;
  padding-left: 28px;
  border-left: 2px solid var(--navy);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  max-width: 24ch;
  text-wrap: balance;
}

.awaken {
  background: var(--navy-deep);
  color: var(--paper);
  text-align: center;
}
.awaken p {
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  font-weight: 550;
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 18ch;
  margin: 0 auto;
  text-wrap: balance;
}
.awaken small {
  display: block;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pale);
}

@media (max-width: 900px) {
  .founder-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder-photo { max-width: 460px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
  .story-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 767px) {
  .nav-right { gap: 18px; }
  .founder-hero { padding: 40px 0 64px; }
  .founder-hero-grid .founder-photo { order: -1; }
  .stat { padding: 28px 16px 26px 0; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .founder-story { padding: 64px 0 72px; }
}
