@font-face { font-family: "Utendo"; src: url(../../assets/fonts/Utendo-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Utendo"; src: url(../../assets/fonts/Utendo-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --navy: #222B4A;
  --green: #52A758;
  --white: #FFFFFF;
  --ink: #4E556E;
  --bg: var(--white);
  --fg: var(--navy);
  --fg2: var(--ink);
  --line: rgba(34, 43, 74, .14);
  --surface: #F4F4F6;
  --accent: var(--green);
  --invert-bg: var(--navy);
  --invert-fg: #FFFFFF;
  --display: "Utendo", system-ui, sans-serif;
  --display-weight: 700;
  --display-track: -.025em;
  --text: "Utendo", system-ui, sans-serif;
  --top-solid: rgba(255, 255, 255, .95);
}

/* the chapter motif is the pen line, with a dot of light riding its tip */
.ch-open .motif { height: 2px; position: relative; }
.ch-open .motif::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #EAF7EB; box-shadow: 0 0 10px 4px rgba(82, 167, 88, .7); opacity: 0; transition: opacity .3s 1.2s; }
.ch-open.in .motif::after { opacity: 1; }
.ch.tight { padding-top: 10vh; }

/* ---------- cover ---------- */
.hero-pin { height: 100vh; height: 100svh; position: relative; display: grid; place-items: center; overflow: hidden; }
.hero .logo { width: min(80vw, 1120px); height: auto; overflow: visible; }
.sky { fill: none; stroke: var(--green); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.statement { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-50%); text-align: center; font-weight: 700; font-size: clamp(44px, 8.4vw, 136px); line-height: .98; letter-spacing: -.025em; pointer-events: none; }
.statement .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.statement .w > span { display: inline-block; }
.cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); font-size: 14px; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cue::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--green), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 01 ---------- */
.essence { margin-top: 18px; font-weight: 700; font-size: clamp(44px, 6vw, 96px); line-height: .95; letter-spacing: -.03em; }
.evo-pin { height: 100vh; height: 100svh; position: relative; overflow: hidden; display: grid; place-items: center; }
.evo-stage { width: min(80vw, 1060px); position: relative; }
.evo-zoom { position: relative; will-change: transform; }
.evo-zoom svg { width: 100%; height: auto; }
.caps { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 12vh; height: 1.2em; font-size: clamp(28px, 4vw, 60px); }
.cap { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-weight: 700; letter-spacing: -.02em; opacity: 0; }

/* ---------- 02 ---------- */
.anatomy .stage { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- 03 ---------- */
.measure { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); color: var(--navy); }
.minsize .stage { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- 04 ---------- */
.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.switch .stage { box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- 05: each color floods the screen ---------- */
.colour-pin { height: 100vh; height: 100svh; position: relative; overflow: hidden; }
.swatch { position: absolute; inset: 0; padding: 120px var(--gutter) 9vh; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 6vw; }
.swatch.navy { background: var(--navy); color: #FFFFFF; }
.swatch.green { background: var(--green); color: var(--navy); clip-path: inset(100% 0% 0% 0%); }
.swatch.white { background: var(--white); color: var(--navy); clip-path: inset(100% 0% 0% 0%); box-shadow: inset 0 1px 0 var(--line); }
.swatch .tag2 { position: absolute; top: 96px; left: var(--gutter); font-size: 15px; opacity: .8; }
.swatch h3 { font-weight: 700; font-size: clamp(56px, 10vw, 168px); line-height: .9; letter-spacing: -.04em; }
.swatch .use { margin-top: 22px; font-size: clamp(18px, 1.6vw, 23px); line-height: 1.45; max-width: 30ch; }
.vals div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid color-mix(in srgb, currentColor 30%, transparent); font-size: clamp(18px, 1.5vw, 22px); }
.vals dt { opacity: .75; }
.vals dd { font-weight: 700; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 18px; }
.vals button { font-size: 15px; font-weight: 400; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 06 ---------- */
.type-head { align-items: end; }
.aa { font-weight: 700; font-size: clamp(160px, 24vw, 400px); line-height: .78; letter-spacing: -.05em; }
.alphabet { margin-top: 28px; font-size: clamp(20px, 2vw, 30px); line-height: 1.35; word-break: break-all; }
.tester-out { font-weight: 700; letter-spacing: -.02em; }
.tester-out[data-weight="regular"] { font-weight: 400; }

/* ---------- 08 ---------- */
.line-demo { position: relative; height: clamp(220px, 26vw, 360px); background: #FFFFFF; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.line-demo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.line-copy { position: absolute; left: 6%; top: 16%; font-weight: 700; font-size: clamp(26px, 3.4vw, 54px); letter-spacing: -.02em; }
.pattern { min-height: 300px; border-radius: var(--radius); background-color: var(--navy);
  background-image: url(../../assets/logos/ahc-symbol.svg), url(../../assets/logos/ahc-symbol.svg);
  background-size: 260px auto, 260px auto; background-position: 0 0, 130px 46px; background-repeat: repeat;
  position: relative; }
.pattern::after { content: ""; position: absolute; inset: 0; background: rgba(34, 43, 74, .72); border-radius: inherit; }
.ic { display: block; width: 56px; height: 56px; background: var(--green); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic.navy { background: var(--navy); }

/* ---------- 09: the photo strip slides past ---------- */
.strip { overflow: hidden; }
.track { display: flex; gap: 18px; padding-left: var(--gutter); width: max-content; }
.track figure { width: clamp(220px, 26vw, 420px); flex: none; }
.track img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.track figcaption { margin-top: 12px; font-size: 15px; color: var(--ink); }

/* ---------- 10: mockups ---------- */
.cards { display: grid; gap: 22px; justify-items: center; width: 100%; }
.bcard { width: min(100%, 380px); aspect-ratio: 3.5 / 2; border-radius: 6px; padding: 7% 8%; }
.bcard.front { background: var(--white); display: grid; place-items: center; }
.bcard.front img { width: 78%; }
.bcard.back { background: var(--navy); color: #fff; display: grid; grid-template-columns: 1fr 1fr; align-content: space-between; position: relative; font-size: 11px; line-height: 1.5; }
.bcard.back b { display: block; font-size: 15px; }
.bcard.back span { opacity: .75; }
.bcard.back .ct { text-align: right; opacity: .9; }
.bcard .mini-line { position: absolute; left: 8%; bottom: 10%; width: 84%; height: 16px; }
.letter { width: min(100%, 300px); aspect-ratio: 8.5 / 11; background: #fff; padding: 9% 10%; display: flex; flex-direction: column; font-size: 6px; color: var(--ink); }
.letter img { width: 48%; }
.letter .lines { margin-top: 18%; display: grid; gap: 7px; }
.letter .lines i { display: block; height: 4px; border-radius: 2px; background: #E3E5EB; width: 100%; }
.letter footer { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--green); }
.post { width: min(100%, 300px); aspect-ratio: 1; background: var(--white); position: relative; padding: 9%; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.post img { width: 52%; }
.post p { font-weight: 700; font-size: clamp(22px, 2.2vw, 32px); line-height: 1; letter-spacing: -.02em; margin-bottom: 28%; }
.post svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 22%; }
.browser { width: 100%; max-width: 640px; background: #fff; border-radius: 8px; overflow: hidden; }
.browser .chrome { height: 26px; background: #E9EBEF; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.browser .chrome i { width: 9px; height: 9px; border-radius: 50%; background: #C9CDD6; }
.browser .site { background: var(--white); padding: 22px 28px 34px; }
.browser nav { display: flex; align-items: center; gap: 22px; font-size: 11px; }
.browser nav img { width: 130px; margin-right: auto; }
.browser h5 { margin-top: 34px; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.02em; max-width: 16ch; }
.browser p { margin-top: 10px; font-size: 13px; color: var(--ink); }
.browser .btn { display: inline-block; margin-top: 18px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; padding: 9px 14px; border-radius: 3px; }
.sig { width: min(100%, 360px); background: #fff; padding: 22px 24px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--ink); }
.sig b { color: var(--navy); font-size: 15px; }
.sig hr { border: 0; height: 2px; background: var(--green); width: 40px; margin: 12px 0; }
.sig img { width: 170px; }
.board { width: 100%; aspect-ratio: 48 / 14; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 6%; padding: 0 6%; border-radius: 3px; }
.board p { font-weight: 700; font-size: clamp(22px, 2.8vw, 42px); letter-spacing: -.02em; line-height: 1; }
.board img { width: 34%; }

/* ---------- close ---------- */
.close { min-height: 100vh; min-height: 100svh; padding: 18vh var(--gutter) 10vh; display: flex; flex-direction: column; align-items: center; text-align: center; }
.close .logo-img { width: min(76vw, 680px); height: auto; overflow: visible; }
.close h2 { margin-top: 9vh; font-weight: 700; font-size: clamp(40px, 6vw, 96px); letter-spacing: -.03em; line-height: 1; }
.close .button { margin-top: 44px; background: var(--navy); color: #fff; }
.kit-meta { margin-top: 14px; font-size: 16px; color: var(--ink); }
.contact { margin-top: 30px; font-size: 16px; color: var(--ink); }
.contact a { color: var(--navy); font-weight: 700; }

@media (max-width: 1100px) { .five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .five { grid-template-columns: 1fr; }
  .hero .logo { width: 90vw; }
  .swatch { grid-template-columns: 1fr; padding-top: 130px; gap: 28px; }
  .cover-tag { bottom: 96px; }
}

/* ---------- reduced motion ---------- */
.static .statement { position: static; transform: none; margin: 4vh 0; }
.static .hero-pin { height: auto; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 120px var(--gutter) 120px; }
.static .statement.s2 { display: none; }
.static .evo-pin { height: auto; padding: 16vh 0; }
.static .caps { position: static; height: auto; margin-top: 4vh; }
.static .cap { position: static; opacity: 1; font-size: 28px; }
.static .colour-pin { height: auto; }
.static .swatch { position: relative; min-height: 80vh; clip-path: none; }
.static .cue::after { animation: none; }

/* ---------- 05: shades ---------- */
.shades { display: grid; gap: 0; border-top: 1px solid var(--line); }
.shades > div { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.shades i { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); }
.shades b { font-size: 17px; }
.shades span { font-size: 14px; color: var(--ink); }
.shades button { grid-row: span 2; grid-column: 3; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ---------- 07 ---------- */
.boxed { display: grid; place-items: center; width: 74%; aspect-ratio: 2.2; border: 3px solid var(--navy); border-radius: 18px; background: #fff; }
.boxed img { width: 86% !important; max-width: none !important; }

/* ---------- 10: content applied onto the photos ---------- */
.card-front { width: 100%; height: 100%; display: grid; place-items: center; }
.card-front img { width: 72%; }
.card-back .cb { width: 100%; height: 100%; padding: 44px 0 40px 46px; display: flex; flex-direction: column; gap: 4px; color: var(--navy); font-size: 19px; line-height: 1.5; }
.card-back .cb b { font-size: 30px; line-height: 1.1; }
.card-back .cb .ct { margin-top: 22px; color: var(--ink); max-width: 300px; }
.card-back .cb-line { display: block; margin-top: auto; width: 150px; height: 4px; background: var(--green); border-radius: 2px; }
.site { width: 100%; height: 100%; background: #fff; padding: 34px 54px; display: flex; flex-direction: column; color: var(--navy); }
.site nav { display: flex; align-items: center; gap: 34px; font-size: 18px; }
.site nav img { width: 230px; margin-right: auto; }
.site nav b { font-size: 17px; padding: 12px 18px; background: var(--navy); color: #fff; border-radius: 4px; }
.site-hero { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; margin-top: 30px; }
.site-hero h5 { font-size: 52px; line-height: 1.04; letter-spacing: -.02em; }
.site-hero p { margin-top: 18px; font-size: 20px; line-height: 1.5; color: var(--ink); }
.site-hero .btn { display: inline-block; margin-top: 26px; padding: 14px 22px; background: var(--navy); color: #fff; font-weight: 700; font-size: 18px; border-radius: 4px; box-shadow: inset 0 -3px 0 var(--green); }
.site-hero > img { width: 100%; height: 470px; object-fit: cover; border-radius: 6px; }

.close .button { margin-top: 44px; background: var(--navy); color: #fff; }
