/* Duolingo brand study. Colours observed on duolingo.com: #58CC02 (Feather Green), #4B4B4B (Eel), #042C60.
   Type: Nunito stands in for feather and duolingo-sans (both proprietary).
   This page follows its own advice: green is used for fills, a deeper green (#398501, 4.64:1 on white) for text,
   and #042C60 on green (6.55:1) for labels. Eel on white 8.72:1. */

:root {
  --green: #58cc02;
  --deep: #398501;
  --navy: #042c60;
  --eel: #4b4b4b;
  --ink: #2b2b2b;
  --line: #e5e5e5;
  --soft: #f7f7f7;
  --paper: #fff;
  --mint: #e9f9d8;
  --warn: #b3261e;
  --warn-l: #fdecea;
  --wrap: 1120px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; font-family: "Nunito", system-ui, sans-serif; font-size: 1rem; line-height: 1.6; color: var(--eel); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, figure, fieldset, blockquote { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--deep); }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .86em; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 8px; }
.sec--ink :focus-visible, .cta :focus-visible { outline-color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--navy); color: #fff; padding: .7rem 1rem; font-weight: 800; border-radius: 10px; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ic--lg { width: 2.2rem; height: 2.2rem; }

.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 1rem; min-height: 3.6rem; padding: .35rem var(--pad); background: rgba(255, 255, 255, .97); border-bottom: 2px solid var(--line); }
.top__back { display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; color: var(--ink); text-decoration: none; min-height: 44px; margin-right: auto; }
.top__nav { display: flex; gap: .2rem; }
.top__nav a { text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--eel); padding: .5rem .8rem; border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; transition: background .15s; }
.top__nav a:hover { background: var(--soft); }
.top__cta { background: var(--green); color: var(--navy); font-weight: 800; text-decoration: none; padding: .6rem 1.2rem; border-radius: 14px; min-height: 44px; display: inline-flex; align-items: center; box-shadow: 0 4px 0 var(--deep); transition: transform .1s, box-shadow .1s; }
.top__cta:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--deep); }

/* hero */
.hero { padding-top: clamp(2rem, 6vw, 4.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.kicker { font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--deep); }
.hero h1 { font-size: clamp(2.4rem, 6.6vw, 4.8rem); font-weight: 900; line-height: .98; letter-spacing: -.035em; color: var(--ink); margin: 1rem 0 1.3rem; max-width: 14ch; }
.lede { font-size: clamp(1.1rem, 1.9vw, 1.4rem); line-height: 1.5; max-width: 38rem; font-weight: 600; }
.by { margin-top: 1.1rem; font-size: .92rem; font-weight: 700; }
.hero__icon { text-align: center; max-width: 11rem; }
.hero__icon img { width: clamp(7rem, 15vw, 10rem); height: auto; margin: 0 auto .8rem; border-radius: 22px; }
.hero__icon p { font-size: .74rem; line-height: 1.35; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 0; transform: translateY(2.2rem); }
.stat { display: flex; flex-direction: column; gap: .3rem; padding: 1.4rem 1.5rem; border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 18px; background: var(--paper); text-decoration: none; color: var(--eel); transition: transform .15s var(--ease), border-color .15s; }
.stat:hover { transform: translateY(-3px); border-color: var(--green); }
.stat b { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1; font-weight: 900; color: var(--deep); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { line-height: 1.4; font-weight: 700; }
.stat i { font-style: normal; font-size: .78rem; margin-top: auto; padding-top: .5rem; color: var(--eel); opacity: .85; }

.sec { padding-block: clamp(3rem, 8vw, 6rem); }
.sec--soft { background: var(--soft); }
.hero + .sec--soft { padding-top: clamp(5.5rem, 10vw, 8rem); }
.sec--ink { background: var(--navy); color: #fff; }
.eyebrow { font-size: .8rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--deep); }
.sec--ink .eyebrow { color: var(--green); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); font-weight: 900; line-height: 1.04; letter-spacing: -.03em; margin: .5rem 0 1.8rem; max-width: 22ch; color: var(--ink); }
.sec--ink h2, .cta h2 { color: #fff; }
h3 { font-size: 1.3rem; font-weight: 800; line-height: 1.25; color: var(--ink); }
.note { font-size: .9rem; line-height: 1.55; margin-top: 1rem; max-width: 62ch; }
.note--n { padding: .9rem 1rem; background: var(--paper); border: 2px solid var(--line); border-radius: 14px; }
.note--l { color: #d7e3f4; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { padding: 1.6rem; border-radius: 20px; border: 2px solid var(--line); border-bottom-width: 5px; background: var(--paper); display: flex; flex-direction: column; gap: .8rem; }
.card--g { border-color: var(--green); background: var(--mint); }
.card--g .ic { color: var(--deep); }
.card--o { border-color: #f2c77a; background: #fff6e5; }
.card--o .ic { color: #8a4b00; }
.card--b { border-color: #bcd2ee; background: #eef4fc; }
.card--b .ic { color: var(--navy); }

/* timeline */
.tl { position: relative; display: grid; gap: 1rem; padding-left: 1.8rem; }
.tl::before { content: ""; position: absolute; left: .55rem; top: .6rem; bottom: .6rem; width: 4px; border-radius: 4px; background: var(--line); }
.tl__i { position: relative; padding: 1.2rem 1.4rem; border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 18px; background: var(--paper); }
.tl__i::before { content: ""; position: absolute; left: -1.78rem; top: 1.5rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 4px solid var(--paper); background: var(--m, var(--green)); box-shadow: 0 0 0 2px var(--m, var(--green)); }
.tl__i--r { --m: var(--warn); }
.tl__i--o { --m: #d98200; }
.tl__i--g { --m: var(--deep); }
.tl time { font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--m, var(--deep)); }
.tl h3 { margin: .15rem 0 .4rem; }
.tl p { max-width: 70ch; }
.tl .src { font-size: .85rem; margin-top: .5rem; }
.read { margin-top: 1.4rem; padding: 1.1rem 1.3rem; border-radius: 16px; background: var(--mint); border: 2px solid var(--green); max-width: 72ch; }

/* system */
.sys { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.sys h3 { margin-bottom: 1rem; }
.swatches { display: grid; gap: .5rem; }
.swatches li { background: var(--c); color: var(--t); border-radius: 14px; padding: .85rem 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 2px solid var(--line); font-weight: 800; }
.type { display: grid; gap: .6rem; }
.type li { padding: .9rem 1.1rem; background: var(--paper); border: 2px solid var(--line); border-radius: 14px; display: grid; gap: .1rem; }
.type b { font-size: 1.8rem; line-height: 1.15; }
.t-feather { font-weight: 900; letter-spacing: -.02em; color: var(--deep); }
.t-body { font-weight: 600; }
.type span { font-size: .9rem; }

/* findings */
.finding { padding-block: clamp(1.5rem, 4vw, 2.5rem); border-top: 3px solid var(--line); }
.finding__head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.4rem; }
.num { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--green); color: var(--navy); font-weight: 900; font-size: 1.3rem; box-shadow: 0 4px 0 var(--deep); }
.finding h3 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.finding__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.finding__grid--rev { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.finding p { margin-bottom: 1rem; max-width: 62ch; }
.finding p b { color: var(--ink); }
.doubt { background: #eef4fc; border-left: 5px solid var(--navy); border-radius: 0 14px 14px 0; padding: .8rem 1rem; font-size: .96rem; }
.quote { padding: 1.6rem; border-radius: 20px; background: var(--mint); border: 2px solid var(--green); border-bottom-width: 5px; }
.quote blockquote { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; line-height: 1.15; color: var(--ink); letter-spacing: -.02em; }
.quote figcaption { margin-top: .9rem; font-size: .85rem; }
.cdemo { display: grid; gap: 1rem; }
.cdemo > div { padding: 1.3rem 1.4rem; border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 18px; background: var(--paper); }
.cdemo__h { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; letter-spacing: -.025em; line-height: 1.05; margin: 0 0 .6rem !important; }
.cdemo__a .cdemo__h { color: #58cc02; }
.cdemo__b .cdemo__h { color: #398501; }
.cdemo__r { margin: 0 !important; font-size: .95rem; }
.cdemo__a .cdemo__r b { color: var(--warn); }
.cdemo__b .cdemo__r b { color: var(--deep); }
.shot { border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 20px; overflow: hidden; background: var(--paper); }
.shot img { width: 100%; max-height: 540px; object-fit: cover; object-position: top; }
.shot figcaption { padding: .7rem 1rem; font-size: .85rem; border-top: 2px solid var(--line); }

/* fixes */
.fix { margin-top: 2.5rem; padding: clamp(1.1rem, 3vw, 2rem); border-radius: 24px; background: var(--paper); border: 2px solid var(--line); border-bottom-width: 6px; }
.fix__head { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; row-gap: .3rem; align-items: center; margin-bottom: 1.3rem; }
.fix__head p { grid-column: 2; max-width: 64ch; }
.tag { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 900; }

.dial { display: grid; gap: 1.4rem; }
.dial legend, .dial__lab { display: block; font-weight: 800; color: var(--ink); margin-bottom: .6rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: inherit; font-weight: 800; min-height: 44px; padding: .55rem 1.1rem; border-radius: 14px; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--paper); color: var(--eel); cursor: pointer; transition: transform .1s, border-color .15s, background .15s; }
.chip:hover { border-color: var(--green); }
.chip:active { transform: translateY(2px); }
.chip.is-on { background: var(--mint); border-color: var(--green); color: var(--ink); }
.dial__ctl input[type="range"] { width: 100%; height: 2.4rem; margin: 0; accent-color: var(--deep); cursor: pointer; }
.dial__stops { position: relative; height: 1.6rem; font-weight: 800; font-size: .92rem; }
.dial__stops li { position: absolute; top: 0; white-space: nowrap; }
.dial__stops li:nth-child(1) { left: 0; }
.dial__stops li:nth-child(2) { left: 33.33%; transform: translateX(-50%); }
.dial__stops li:nth-child(3) { left: 66.66%; transform: translateX(-50%); }
.dial__stops li:nth-child(4) { right: 0; }
.dial__help { font-size: .85rem; margin-top: .4rem; }
.dial__out { padding: 1.3rem; border-radius: 20px; background: var(--soft); border: 2px solid var(--line); display: grid; gap: 1rem; }
.dial__rec { font-weight: 800; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 900; }
.badge--ok { background: var(--mint); color: #1f5a00; border: 2px solid var(--green); }
.badge--bad { background: var(--warn-l); color: var(--warn); border: 2px solid var(--warn); }
.badge--meh { background: #fff6e5; color: #7a4300; border: 2px solid #f2c77a; }
.msg { background: var(--paper); border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 18px; padding: 1.1rem 1.3rem; }
.msg.is-bad { border-color: var(--warn); background: var(--warn-l); }
.msg__from { font-size: .8rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--deep); margin-bottom: .3rem; }
.msg__body { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.35; color: var(--ink); max-width: 46ch; }
.rules { display: flex; flex-wrap: wrap; gap: .5rem; }
.rules li { padding: .3rem .8rem; border-radius: 10px; border: 2px solid var(--line); background: var(--paper); font-size: .88rem; font-weight: 800; }
.ladder { margin-top: 1.5rem; padding: 1.3rem; border-radius: 20px; background: var(--navy); color: #fff; }
.ladder h4 { font-size: 1.1rem; margin-bottom: .8rem; font-weight: 900; }
.ladder ol { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
.ladder li { counter-increment: s; padding: .9rem; border-radius: 14px; background: rgba(255, 255, 255, .1); line-height: 1.4; font-size: .95rem; }
.ladder li::before { content: counter(s); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--green); color: var(--navy); font-weight: 900; margin-bottom: .4rem; }
.ladder li b { display: block; }
.ladder__q { margin-top: 1rem; padding-top: .9rem; border-top: 2px solid rgba(255, 255, 255, .25); }

.greens { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.g { padding: 1.4rem; border-radius: 20px; border: 2px solid var(--line); border-bottom-width: 5px; display: grid; gap: .7rem; align-content: start; }
.g--fill { background: var(--mint); border-color: var(--green); }
.g--deep { background: #eef6e6; border-color: var(--deep); }
.g__t { font-weight: 900; font-size: 1.1rem; color: var(--ink); }
.g__t em { font-style: normal; font-size: .82rem; font-weight: 800; color: var(--deep); }
.g__r { font-size: .9rem; }
.btnd { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.6rem; border-radius: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; font-size: .95rem; text-decoration: none; width: fit-content; transition: transform .1s, box-shadow .1s; }
.btnd--green { background: var(--green); color: var(--navy); box-shadow: 0 5px 0 var(--deep); }
.btnd--deep { background: var(--deep); color: #fff; box-shadow: 0 5px 0 #245400; }
.btnd--white { background: #fff; color: var(--navy); box-shadow: 0 5px 0 #b9c7da; }
.btnd--line { color: #fff; border: 2px solid #fff; }
a.btnd:hover { transform: translateY(-2px); }
a.btnd:active { transform: translateY(3px); }

.picker__tabs { display: inline-flex; gap: .4rem; padding: .35rem; background: var(--soft); border: 2px solid var(--line); border-radius: 18px; }
.picker__tabs button { font: inherit; font-weight: 900; min-height: 44px; padding: .5rem 1.3rem; border-radius: 14px; border: 2px solid transparent; background: transparent; color: var(--eel); cursor: pointer; }
.picker__tabs button[aria-selected="true"] { background: var(--paper); border-color: var(--green); border-bottom-width: 4px; color: var(--ink); }
.picker__panel { margin-top: 1rem; padding: 1.2rem; border-radius: 18px; background: var(--soft); border: 2px solid var(--line); }
.picker__list { display: flex; flex-wrap: wrap; gap: .45rem; }
.picker__list li { padding: .4rem .9rem; border-radius: 12px; border: 2px solid var(--line); border-bottom-width: 4px; background: var(--paper); font-weight: 800; animation: pop .3s var(--ease) both; }
.picker__n { margin-top: .9rem; font-size: .92rem; font-weight: 700; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: p; }
.plan li { counter-increment: p; border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 20px; padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; }
.plan li::before { content: counter(p); width: 2.2rem; height: 2.2rem; display: grid; place-items: center; background: var(--green); color: var(--navy); border-radius: 50%; font-weight: 900; box-shadow: 0 3px 0 var(--deep); }
.metric { margin-top: auto; padding-top: .8rem; border-top: 2px dashed var(--line); font-size: .95rem; margin-bottom: 0 !important; }
.metric span { display: block; font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--deep); }

.method { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.facts { display: grid; gap: .9rem; }
.facts li { padding-left: 1rem; border-left: 4px solid var(--green); line-height: 1.5; color: #e7eefa; }
.facts b { color: #fff; }
.srcs { display: grid; gap: .5rem; margin-top: .8rem; }
.srcs a { display: block; padding: .8rem 1rem; border: 2px solid #4a6a99; border-radius: 14px; color: #fff; text-decoration: none; font-weight: 700; min-height: 44px; transition: background .15s, color .15s; }
.srcs a:hover { background: #fff; color: var(--navy); }

.cta { background: var(--deep); color: #fff; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.cta__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.cta p { max-width: 36rem; font-size: 1.15rem; font-weight: 600; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-end; }
.foot { background: var(--navy); color: #fff; padding-block: 1.4rem; font-size: .92rem; }
.foot a { color: #fff; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .65s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .picker__list li { animation: none; }
  .stat:hover, a.btnd:hover { transform: none; }
}

@media (max-width: 960px) {
  .top__nav { display: none; }
  .hero__grid, .sys, .finding__grid, .finding__grid--rev, .method, .cta__grid { grid-template-columns: 1fr; }
  .hero__icon { order: -1; display: flex; align-items: center; gap: 1rem; text-align: left; max-width: none; }
  .hero__icon img { margin: 0; width: 5rem; }
  .trio, .plan, .greens { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; transform: none; margin-bottom: 1.5rem; }
  .hero + .sec--soft { padding-top: clamp(3rem, 8vw, 6rem); }
  .ladder ol { grid-template-columns: repeat(2, 1fr); }
  .cta__btns { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .ladder ol { grid-template-columns: 1fr; }
  .picker__tabs { display: flex; width: 100%; }
  .picker__tabs button { flex: 1; padding-inline: .4rem; }
  .dial__stops { font-size: .8rem; }
}

/* embedded in the portfolio popup */
.is-embedded .top { display: none; }
.is-embedded { scroll-padding-top: 1rem; }
