/* Linh Podetti homepage. Tokens from LP Branding Guide 2026. */
:root {
  --clay: #8f5d46;        /* Brown Clay: logo, accents, CTAs */
  --clay-deep: #774b37;   /* hover state for clay */
  --ivory: #f6f4f0;       /* Warm Ivory: page background */
  --white: #ffffff;
  --charcoal: #3a3a3a;    /* Soft Charcoal: text, dark band (no harsh black) */
  --sand: #d8cfc8;        /* Muted Sand: lines, placeholders */
  --taupe: #b8a39a;       /* Warm Taupe: secondary text, soft fills */
  --ink-soft: #6b625d;    /* body copy on ivory */

  --font: "Poppins", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --r-photo: 4px;
  --r-card: 10px;
  --bleed: clamp(40px, 6vw, 88px); /* how far photos break out of their section */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.center { text-align: center; }
.narrow { max-width: 22em; margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

/* Type scale */
.h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-soft); font-weight: 300; }
.kicker { font-size: 14px; color: var(--clay); font-weight: 500; margin-bottom: 18px; letter-spacing: 0.01em; }
.kicker--light { color: var(--sand); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--clay);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 999px;
  transition: background-color .2s ease;
}
.btn:hover { background: var(--clay-deep); }
.btn--small { padding: 10px 20px; font-size: 14px; }
.btn--light { background: var(--ivory); color: var(--charcoal); }
.btn--light:hover { background: var(--white); }
.textlink { color: var(--clay); font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(246, 244, 240, .94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(216, 207, 200, .6); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo img { width: 132px; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--charcoal); }
.nav__links a:not(.btn):hover { color: var(--clay); }
.nav__toggle { display: none; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 48px; overflow-x: clip; } /* stops the photo slide-in from widening the page */
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero__title {
  font-size: clamp(40px, 5.2vw, 66px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero__title .l2 { font-weight: 300; color: var(--clay); }
.hero__title .l1, .hero__title .l2 { display: inline-block; }
@media (min-width: 901px) { .hero__title { white-space: nowrap; } }
.hero .lede { max-width: 30em; margin-bottom: 36px; }
.hero__note { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
/* Photo hangs below the hero into the logo strip */
.hero__photo { position: relative; isolation: isolate; z-index: 2; margin-bottom: calc(-1 * var(--bleed) - 48px); align-self: end; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 62% 50%; border-radius: var(--r-photo); }
/* Offset taupe block, borrowed from the brand guide's logo frame */
.hero__photo::before {
  content: ""; position: absolute; inset: 28px -28px -28px 28px;
  background: var(--taupe); opacity: .55; border-radius: var(--r-photo); z-index: -1;
}

/* Clients */
.clients { background: var(--white); padding: calc(var(--bleed) + 28px + 44px) 0 56px; }
.clients__title { font-size: 14px; font-weight: 400; color: var(--ink-soft); text-align: center; margin-bottom: 28px; }
.clients__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 32px clamp(48px, 9vw, 128px); }
/* Logos sit in muted greyscale so the strip stays calm; full colour on hover */
.clients__list img { height: 92px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s ease, opacity .3s ease; }
.clients__list li:hover img { filter: none; opacity: 1; }

/* Image placeholders, kept deliberately obvious for review */
.ph {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-photo);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.18) 0 2px, transparent 2px 12px),
    linear-gradient(160deg, #e4dcd5, var(--sand));
  display: grid; place-items: center; padding: 20px;
}
.ph span { font-size: 13px; color: var(--clay); background: rgba(246,244,240,.88); padding: 6px 12px; border-radius: 999px; text-align: center; }
.ph--wide { aspect-ratio: 16 / 10; }
.ph--short { aspect-ratio: 16 / 10; border-radius: var(--r-card) var(--r-card) 0 0; }

/* Accidental success */
.accidental .h2 { margin-bottom: clamp(40px, 6vw, 72px); }
.acc__intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-bottom: 56px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pills li { font-size: 13px; padding: 6px 14px; border: 1px solid var(--sand); border-radius: 999px; background: var(--white); color: var(--charcoal); }
.pills li::before { content: "\2191\00a0"; color: var(--clay); }
.acc__big { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.45; font-weight: 500; margin-bottom: 16px; letter-spacing: -0.01em; }
.acc__text > p:last-child { color: var(--ink-soft); }

.scenes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scenes figcaption { margin-top: 16px; text-align: center; font-size: 15px; padding: 0 12px; }

.decline { margin-top: clamp(72px, 9vw, 112px); }
.decline .muted { margin: 8px 0 32px; }
/* Five steps that darken from ivory to charcoal: the slide from "fine" to "too late" */
.decline__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.decline__steps li {
  padding: 40px 12px; text-align: center; font-weight: 500; font-size: 17px;
  border-radius: var(--r-card); border: 1px solid var(--sand);
}
.decline__steps li:nth-child(1) { background: var(--white); }
.decline__steps li:nth-child(2) { background: #efe9e4; }
.decline__steps li:nth-child(3) { background: #e2d7cf; }
.decline__steps li:nth-child(4) { background: var(--taupe); border-color: var(--taupe); }
.decline__steps li:nth-child(5) { background: var(--charcoal); border-color: var(--charcoal); color: var(--ivory); }

/* Life plan band */
.band {
  position: relative; overflow: hidden;
  padding: clamp(96px, 12vw, 160px) var(--gutter);
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(135deg, #cdbfb5, var(--taupe) 55%, #a58f84);
  display: grid; place-items: center;
}
.band__bg { position: absolute; inset: -12% 0; background: url(assets/linh-smiling.webp) center 28% / cover no-repeat; will-change: transform; }
/* Warm wash: lets the photo show on the left and keeps the card side calm */
.band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(184,163,154,.18), rgba(246,244,240,.6) 72%); }
.band__card { position: relative; background: var(--white); max-width: 600px; padding: clamp(32px, 5vw, 52px); text-align: center; border-radius: var(--r-photo); }
.band__card .h3 { margin-bottom: 12px; }
.band__card p { color: var(--ink-soft); }
.band__note { position: absolute; bottom: 16px; right: var(--gutter); font-size: 12px; color: var(--charcoal); }
@media (min-width: 901px) {
  .band { justify-items: end; padding-right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); }
}

/* Free years (dark) */
.dark { background: var(--charcoal); color: var(--ivory); }
.fy__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.dark .h2 { margin-bottom: 32px; }
.fy__list { margin-bottom: 28px; }
.fy__list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(216,207,200,.2); font-size: 16px; }
.fy__list li::before { content: ""; width: 18px; height: 1.5px; background: var(--taupe); flex: none; }
.fy__body { color: var(--sand); margin-bottom: 32px; max-width: 34em; }

.lifebar { background: rgba(246,244,240,.05); border: 1px solid rgba(216,207,200,.18); border-radius: var(--r-card); padding: clamp(24px, 4vw, 40px); }
.lifebar__label { font-size: 14px; color: var(--sand); margin-bottom: 14px; }
.lifebar__track { display: flex; height: 120px; gap: 4px; }
.seg {
  position: relative; border-radius: 4px; background: var(--taupe);
  display: flex; align-items: flex-end; padding: 10px;
  transition: background-color .6s ease, opacity .6s ease, flex-grow .9s cubic-bezier(.6,0,.2,1);
}
.seg em { font-style: normal; font-size: 12px; color: var(--charcoal); white-space: nowrap; overflow: hidden; }
.seg--sleep { flex: 33 1 0; }
.seg--work  { flex: 28 1 0; }
.seg--must  { flex: 22 1 0; }
.seg--free  { flex: 17 1 0; }
.lifebar__result { margin-top: 18px; font-size: 15px; opacity: .25; transition: opacity .6s ease 2.2s; }
.lifebar figcaption { margin-top: 10px; font-size: 12px; color: var(--taupe); }

/* The one orchestrated moment: each slice is taken away in turn, leaving what's yours */
.lifebar.is-on .seg--sleep, .lifebar.is-on .seg--work, .lifebar.is-on .seg--must {
  background: transparent; box-shadow: inset 0 0 0 1px rgba(216,207,200,.35);
}
.lifebar.is-on .seg em { color: var(--sand); }
.lifebar.is-on .seg--sleep { transition-delay: .2s; }
.lifebar.is-on .seg--work  { transition-delay: .8s; }
.lifebar.is-on .seg--must  { transition-delay: 1.4s; }
.lifebar.is-on .seg--free  { background: var(--clay); flex-grow: 24; transition-delay: 2s; }
.lifebar.is-on .seg--free em { color: var(--ivory); font-weight: 500; }
.lifebar.is-on .lifebar__result { opacity: 1; }

/* Meet Linh */
.meet__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
/* Portrait rises into the free-years section above */
.meet__photo { position: relative; z-index: 2; align-self: start; margin-top: calc(-1 * var(--section) - var(--bleed)); }
.meet__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-photo); }
.meet__copy .h2 { margin-bottom: 20px; }
.meet__copy .lede { margin-bottom: 32px; }
.timeline { border-left: 1px solid var(--sand); }
.timeline li { padding: 0 0 22px 24px; position: relative; color: var(--ink-soft); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
.timeline strong { display: block; font-size: 13px; font-weight: 500; color: var(--clay); margin-bottom: 2px; }

.two__title { margin: clamp(72px, 9vw, 112px) 0 32px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two__card { display: grid; grid-template-columns: 132px 1fr; gap: 24px; background: var(--white); padding: 24px; border-radius: var(--r-card); align-items: start; }
.two__card img { width: 132px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: var(--r-photo); }
.two__step { font-size: 13px; color: var(--clay); font-weight: 500; margin-bottom: 4px; }
.two__card h4 { font-size: 18px; font-weight: 500; line-height: 1.35; margin-bottom: 10px; }
.two__card p:last-child { color: var(--ink-soft); font-size: 15px; }
.two__close { margin-top: 36px; font-size: 18px; font-weight: 500; }

.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(48px, 6vw, 72px); }
.creds li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--sand); border-radius: var(--r-card); }
.creds__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--sand); display: grid; place-items: center; }
.creds__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--clay); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.creds p { font-size: 15px; color: var(--ink-soft); }
.creds strong { color: var(--charcoal); font-weight: 500; }

.featured { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--sand); text-align: center; }
.featured__title { font-size: 14px; color: var(--ink-soft); margin-bottom: 18px; }
.featured__logos { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; justify-items: center; gap: 36px 48px; max-width: 880px; margin: 0 auto 40px; }
/* Same muted greyscale as the client strip; colour on hover */
.featured__logos img { max-height: 44px; max-width: 150px; width: auto; height: auto; filter: grayscale(1); opacity: .65; transition: filter .3s ease, opacity .3s ease; }
.featured__logos img.is-tall { max-height: 84px; }
/* Optical balancing: each mark should feel the same size and weight */
.featured__logos img.is-wide { max-width: 180px; max-height: 50px; }
.featured__logos img.is-heavy { max-height: 30px; }
.featured__logos img.is-pale { filter: grayscale(1) brightness(.55) contrast(1.4); }
.featured__logos li:hover img.is-pale { filter: none; }
.featured__logos li:hover img { filter: none; opacity: 1; }

/* How it works */
.how { background: #efebe6; }
.how .h2 { margin-bottom: clamp(40px, 6vw, 64px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.step { background: var(--white); border-radius: var(--r-card); display: flex; flex-direction: column; }
.step__body { padding: 28px; }
.step h3 { font-size: 20px; font-weight: 500; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.step__n { width: 32px; height: 32px; border-radius: 50%; background: var(--clay); color: var(--white); font-size: 14px; display: grid; place-items: center; }
.step p { color: var(--ink-soft); font-size: 15px; }
.step p + p { margin-top: 12px; }

/* Footer */
.footer { background: var(--ivory); border-top: 1px solid var(--sand); padding: 36px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { font-size: 13px; color: var(--ink-soft); }

/* Tablet */
@media (max-width: 900px) {
  .hero__grid, .fy__grid, .meet__grid, .acc__intro { grid-template-columns: 1fr; }
  .hero__photo { max-width: 560px; margin-right: 28px; }
  .meet__photo { max-width: 480px; }
  .two, .creds, .steps { grid-template-columns: 1fr; }
  .scenes { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .decline__steps { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .decline__steps li { padding: 16px; }

  .nav__toggle {
    display: block; font: inherit; font-size: 14px; font-weight: 500;
    background: none; border: 1px solid var(--sand); border-radius: 999px; padding: 8px 18px; color: var(--charcoal); cursor: pointer;
  }
  .nav__links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--sand); padding: 8px var(--gutter) 20px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(216,207,200,.6); }
  .nav__links .btn { margin-top: 16px; text-align: center; }
}

/* Phone */
@media (max-width: 520px) {
  .featured__logos { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .featured__logos img { max-width: 124px; max-height: 38px; }
  .featured__logos img.is-wide { max-width: 140px; max-height: 44px; }
  .featured__logos img.is-heavy { max-height: 26px; }
  .featured__logos img.is-tall { max-height: 72px; }
  .clients__list { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; justify-items: center; gap: 32px 56px; }
  .clients__list img { height: 76px; }
  .two__card { grid-template-columns: 1fr; }
  .two__card img { width: 100%; aspect-ratio: 4 / 3; }
  .hero__photo::before { inset: 16px -16px -16px 16px; }
  .hero__photo { margin-right: 16px; }
  .btn { padding: 14px 22px; }
}

/* ---------- Motion (only when .js-anim is set, i.e. reduced motion is off) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.js-anim .hero__title .l1 { animation: rise .9s cubic-bezier(.2,.7,.2,1) .1s both; }
.js-anim .hero__title .l2 { animation: rise .9s cubic-bezier(.2,.7,.2,1) .35s both; }
.js-anim .hero .lede     { animation: rise .9s cubic-bezier(.2,.7,.2,1) .55s both; }
.js-anim .hero .btn      { animation: rise .9s cubic-bezier(.2,.7,.2,1) .7s both; }
.js-anim .hero__note     { animation: rise .9s cubic-bezier(.2,.7,.2,1) .8s both; }
.js-anim .hero__photo    { animation: slide-in 1.2s cubic-bezier(.2,.7,.2,1) .3s both; }

.js-anim .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.js-anim .reveal.is-in { opacity: 1; transform: none; }

/* The five D's start neutral and darken one by one */
.decline__steps li { transition: background-color .7s ease, color .7s ease, border-color .7s ease; }
.decline__steps li:nth-child(2) { transition-delay: .35s; }
.decline__steps li:nth-child(3) { transition-delay: .7s; }
.decline__steps li:nth-child(4) { transition-delay: 1.05s; }
.decline__steps li:nth-child(5) { transition-delay: 1.4s; }
.js-anim .decline__steps:not(.is-in) li { background: var(--white); color: var(--charcoal); border-color: var(--sand); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  *, *::before, *::after { transition: none !important; transition-delay: 0s !important; }
}

/* Review-only version switch. Remove before launch. */
.vswitch {
  position: fixed; left: 16px; bottom: 16px; z-index: 30;
  background: var(--charcoal); color: var(--ivory); text-decoration: none;
  font-size: 13px; padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(58,58,58,.25);
}
.vswitch span { text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
