/* duvanced.dev home, v3 concept: "Educator first. Technology second."
   Paper and ink for the teaching, one dark "screen" band for the technology.
   Sections follow the method in order: 01 Learners, 02 Structure, 03 Evidence, 04 Then build. */

:root {
  --paper: #f5f0e6;
  --paper-2: #ece5d6;
  --ink: #1f1c17;
  --muted: #625b4f;
  --line: #d8cfbd;
  --chalk: #1f3b33;        /* blackboard green */
  --chalk-ink: #eef1ea;
  --chalk-muted: #b6c3bb;
  --sage: #b6c3bb;         /* light chalk green: work card outlines and hover */
  --mark: #f2c14e;         /* highlighter */
  --mark-soft: rgba(242, 193, 78, .55);
  --display: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1rem; line-height: 1.6; letter-spacing: -0.005em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -0.03em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* Highlighter: a marker stroke under key words, drawn in on load */
.mark { background-image: linear-gradient(var(--mark-soft), var(--mark-soft)); background-repeat: no-repeat; background-position: 0 88%; background-size: 100% 0.34em; padding: 0 .06em; }
@media (prefers-reduced-motion: no-preference) {
  .js .mark { background-size: 0% 0.34em; transition: background-size .9s cubic-bezier(.2,.7,.2,1) .35s; }
  .js .is-in .mark, .js .mark.is-in { background-size: 100% 0.34em; }
}

/* Underline links that grow on hover */
.ulink { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1px; transition: background-size .3s ease; }
.ulink:hover { background-size: 100% 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { position: relative; font-family: "Shrikhand", var(--display); font-size: 1.75rem; font-weight: 400; line-height: 1; color: var(--chalk); text-decoration: none; letter-spacing: 0; }
.brand-d { font-size: 1.22em; line-height: 0; }   /* the initial D stands a little taller, on the same baseline */
.top nav ul { list-style: none; display: flex; gap: clamp(14px, 2.2vw, 28px); margin: 0; padding: 0; align-items: center; }
.top nav a { text-decoration: none; font-size: .95rem; }
.top nav a:not(.pill) { position: relative; }
/* The line draws in from the left, then leaves to the right */
.brand::after, .top nav a:not(.pill)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right center; transition: transform .6s cubic-bezier(.65,0,.35,1); }
.brand:hover::after, .brand:focus-visible::after, .top nav a:not(.pill):hover::after, .top nav a:not(.pill):focus-visible::after { transform: scaleX(1); transform-origin: left center; }
@media (prefers-reduced-motion: reduce) { .brand::after, .top nav a:not(.pill)::after { transition: none; } }
.brand:focus-visible, .top nav a:not(.pill):focus-visible { outline: none; }
.brand:focus:not(:focus-visible), .top nav a:focus:not(:focus-visible) { outline: none; }
.pill { display: inline-block; padding: 9px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: .95rem; transition: transform .15s; }
.pill:hover { transform: translateY(-1px); }
.burger-li { display: none; }
.burger { width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-content: center; gap: 4px; padding: 0; }
.burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .3s ease, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.burger:focus { outline: none; }
.burger:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.mobile-menu { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.mobile-menu ul { list-style: none; margin: 0; padding-top: 8px; padding-bottom: 16px; display: grid; }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu a { display: block; padding: 16px 0; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.03em; }
.mobile-menu a:hover { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .mobile-menu:not([hidden]) { animation: menu-in .3s ease; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.top.menu-open { border-bottom-color: transparent; }
@media (max-width: 860px) {
  .top nav li.hide-sm { display: none; }
  .burger-li { display: block; }
  .top nav ul { gap: 10px; }
}
@media (min-width: 861px) { .mobile-menu { display: none !important; } }

/* Hero */
.hero { padding: clamp(56px, 10vw, 128px) 0 clamp(40px, 6vw, 72px); }
.eyebrow { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.hero h1 { font-size: clamp(3rem, 8.6vw, 7.6rem); line-height: 1; font-weight: 500; letter-spacing: -0.045em; }
.hero h1 .second { display: block; color: var(--muted); font-weight: 300; }
.hero-foot { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: clamp(36px, 5vw, 64px); align-items: end; }
.hero-foot .lead { grid-column: 1 / span 7; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.5; max-width: 40ch; }
.hero-foot .actions { grid-column: 9 / span 4; display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.btn { display: inline-block; padding: 13px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 1.5px solid var(--ink); transition: background .15s, color .15s; }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--chalk); border-color: var(--chalk); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 860px) { .hero-foot .lead, .hero-foot .actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* Stats: honest, a little playful */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 28px 24px 28px 0; }
.stats li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.stats b { display: block; font-family: var(--display); font-weight: 500; letter-spacing: -0.04em; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; margin-bottom: 8px; }
.stats span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .stats ul { grid-template-columns: 1fr 1fr; } .stats li:nth-child(3) { padding-left: 0; border-left: 0; } .stats li { border-top: 1px solid var(--line); } .stats li:nth-child(-n+2) { border-top: 0; } }

/* Numbered sections */
.sec { padding: clamp(72px, 11vw, 140px) 0; }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }
.num { grid-column: 1 / span 2; font-family: var(--display); font-size: 1rem; color: var(--muted); padding-top: .9em; }
.num::before { content: ""; display: inline-block; width: 28px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; }
.sec-head h2 { grid-column: 3 / span 10; font-size: clamp(2.4rem, 5.6vw, 4.8rem); line-height: 1.02; font-weight: 500; letter-spacing: -0.04em; }
.sec-head .sub { grid-column: 3 / span 8; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); margin-top: 18px; max-width: 46ch; }
@media (max-width: 760px) { .num, .sec-head h2, .sec-head .sub { grid-column: 1 / -1; } .num { padding-top: 0; } }
.body-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }

/* 01 Learners */
.learners .story { grid-column: 3 / span 7; display: grid; gap: 18px; align-content: start; font-size: 1.15rem; }
.learners figure { grid-column: 10 / span 3; margin: 0; }
.learners figure img { border-radius: 4px; filter: saturate(.9); }
.learners figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.facts { grid-column: 3 / span 10; list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facts li { border-top: 2px solid var(--ink); padding-top: 14px; }
.facts b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.15rem; margin-bottom: 4px; }
.facts span { color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .learners .story, .learners figure, .facts { grid-column: 1 / -1; grid-template-columns: 1fr; } .learners figure { max-width: 280px; } }

/* 02 Structure */
.services { grid-column: 3 / span 10; list-style: none; margin: 0; padding: 0; }
.services li { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.services li:last-child { border-bottom: 1px solid var(--line); }
.services h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; }
.services p { font-size: 1.08rem; }
.services .kw { display: block; margin-top: 12px; font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .services { grid-column: 1 / -1; } .services li { grid-template-columns: 1fr; gap: 10px; } }

/* Selected work: floating cards that tilt toward the cursor and open one at a time.
   The tilt angles (--rx, --ry, in degrees) are set by the script at the bottom of index.html. */
.work { list-style: none; margin: 0; padding: 0 clamp(0px, 1.2vw, 14px); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.work > li { display: flex; }
.work h3 { margin: 0; font: inherit; letter-spacing: normal; display: flex; flex: 1; min-width: 0; }
.work .row { all: unset; box-sizing: border-box; flex: 1; min-width: 0; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-rows: 1fr auto; grid-template-areas: "main main" "proof plus";
  gap: 28px 16px; align-items: end; padding: clamp(22px, 2.4vw, 30px);
  border: 1.5px solid var(--sage); border-radius: 18px; background: var(--paper);
  --rx: 0; --ry: 0;
  transform: perspective(900px) rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg));
  box-shadow: calc(var(--ry) * -1.4px) calc(12px + var(--rx) * 1.4px) 30px -16px rgba(31, 59, 51, .32);
  transition: background .3s, border-color .3s; }
.work .row:hover { background: var(--sage); }
.work .row:focus-visible { outline: 2px solid var(--chalk); outline-offset: 4px; }
.work .main { grid-area: main; align-self: start; display: grid; gap: 8px; min-width: 0; }
.work .kind { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.work .name { font-family: var(--display); font-weight: 500; letter-spacing: -0.035em; font-size: clamp(1.5rem, 2.2vw, 1.95rem); line-height: 1.1; }
.work .what { color: var(--muted); font-size: 1rem; line-height: 1.5; max-width: 62ch; text-wrap: pretty; }
.work .kind, .work .what, .work .proof span { transition: color .3s; }
.work .row:hover :is(.kind, .what, .proof span) { color: var(--chalk); }
.work .proof { grid-area: proof; display: grid; gap: 2px; text-wrap: pretty; }
.work .proof b { font-family: var(--display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em; }
.work .proof span { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.work .go { grid-area: plus; position: relative; width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; justify-self: end; transition: background .25s; }
.work .go::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -6px 0 0 -6px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: rotate(45deg); transition: border-color .25s, transform .3s; }
.work .row:hover .go { background: var(--ink); }
.work .row:hover .go::before { border-color: var(--paper); transform: translateX(2px) rotate(45deg); }

.case-grid { display: grid; gap: 28px; }
.lb-content .beats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 28px clamp(24px, 3vw, 44px); align-items: start; }
.lb-content .beat h4 { font-family: var(--body); font-weight: 600; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.lb-content .beat p, .lb-content .beat li { font-size: .98rem; line-height: 1.6; }
.lb-content .beat ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lb-content .beat li { position: relative; padding-left: 16px; }
.lb-content .beat li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; border-top: 1px solid var(--ink); }
.case-fig { margin: 0; max-width: 720px; }
.case-fig img { width: 100%; border-radius: 6px; box-shadow: 0 14px 34px rgba(31, 28, 23, .14); }
.case-fig figcaption { color: var(--muted); font-size: .85rem; margin-top: 10px; }
.lb-content .tools { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.lb-content .tools li { font-size: .82rem; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.lb-content .beats .tools { margin-top: 4px; }

@media (max-width: 640px) {
  .work .row { grid-template-columns: minmax(0, 1fr) 40px; gap: 22px 14px; }
  .work .go { width: 40px; height: 40px; }
}

.quotes blockquote { margin: 0 0 14px; font-family: var(--display); font-weight: 300; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; letter-spacing: -0.02em; }
.quotes figcaption { color: var(--muted); font-size: .95rem; }

/* 04 Then build: the screen */
.screen { background: var(--chalk); color: var(--chalk-ink); }
.screen .num, .screen .sec-head .sub, .screen .muted { color: var(--chalk-muted); }
.screen .mark { background-image: linear-gradient(rgba(242,193,78,.4), rgba(242,193,78,.4)); }
.build { grid-column: 3 / span 10; display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
.build div { border-top: 1px solid rgba(238, 241, 234, .28); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.build h3 { font-size: 1.5rem; }
.build p { color: var(--chalk-muted); }
.rule { grid-column: 3 / span 10; margin-top: 56px; font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.3; letter-spacing: -0.025em; max-width: 32ch; }
.screen .btn { border-color: var(--chalk-ink); color: var(--chalk-ink); margin-top: 32px; }
.screen .btn:hover { background: var(--chalk-ink); color: var(--chalk); }
.screen .after { grid-column: 3 / span 10; }
@media (max-width: 860px) { .build, .rule, .screen .after { grid-column: 1 / -1; } .build { grid-template-columns: 1fr; } }

/* Contact */
.contact { padding: clamp(80px, 12vw, 150px) 0 60px; }
.contact h2 { font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1.02; font-weight: 500; letter-spacing: -0.045em; }
.contact .lead { margin-top: 24px; max-width: 48ch; font-size: 1.15rem; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .9rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer .tag { font-family: var(--display); font-weight: 500; color: var(--ink); font-size: 1rem; }

/* Gentle reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* Small screens: one column, so the 12-column gaps can't push the page wider than the screen */
@media (max-width: 860px) {
  .hero-foot, .sec-head, .body-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero-foot > *, .sec-head > *, .body-grid > * { grid-column: 1 / -1 !important; min-width: 0; }
  .work a.row > * { min-width: 0; }
}

/* About */
.about-text { grid-column: 3 / span 10; display: block; font-size: 1.08rem; }
.about-text p + p { margin-top: 18px; }
.about-text::after { content: ""; display: table; clear: both; }
/* The photo keeps its 4:5 shape and the text wraps around it */
.about-photo { float: left; width: 34%; min-width: 140px; max-width: 340px; margin: 6px clamp(18px, 3vw, 40px) 14px 0; shape-outside: inset(0 round 6px); }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 6px; filter: saturate(.9); }
@media (max-width: 480px) { .about-photo { width: 44%; margin-right: 16px; } }

.about { padding-bottom: clamp(24px, 4vw, 48px); }


/* Project lightbox */
html.lb-open { overflow: hidden; }
.lightbox { width: min(1040px, calc(100vw - 48px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(20, 18, 14, .35); overflow: hidden; display: none; flex-direction: column; }
.lightbox[open] { display: flex; }
/* One fixed size for every project, so the arrows stay put while clicking through. Longer projects scroll inside. */
.lightbox { height: min(860px, calc(100vh - 48px)); height: min(860px, calc(100dvh - 48px)); }
.lightbox .lb-body { flex: 1 1 auto; min-height: 0; align-content: start; }
.lightbox::backdrop { background: rgba(24, 22, 18, .55); backdrop-filter: blur(4px); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb-in .35s cubic-bezier(.2,.7,.2,1); }
  .lightbox[open]::backdrop { animation: lb-fade .35s ease; }
}
@keyframes lb-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px clamp(18px, 3vw, 32px); border-bottom: 1px solid var(--line); background: var(--paper); }
.lb-where { margin: 0; display: grid; justify-items: center; gap: 2px; text-align: center; }
.lb-label { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lb-count { font-family: var(--display); font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.lb-close { justify-self: end; }
.lb-nav { display: flex; gap: 8px; }
.lb-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 400 1.15rem/1 var(--body); cursor: pointer; transition: background .2s, color .2s; }
.lb-btn:hover { background: var(--ink); color: var(--paper); }
.lb-close { font-size: 1.5rem; }
.lb-body { overflow-y: auto; overflow-anchor: none; overscroll-behavior: contain;padding: clamp(24px, 4vw, 48px) clamp(18px, 4vw, 56px) clamp(32px, 5vw, 56px); display: grid; gap: 32px; }
.lb-head { display: grid; gap: 8px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.lb-head:focus { outline: none; }
.lb-kind { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lb-btn:focus { outline: none; }
.lb-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.lb-title { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.04em; }
.lb-what { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.lb-proof { margin-top: 6px; }
.lb-proof b { font-family: var(--display); font-weight: 500; font-size: 1.1rem; letter-spacing: -0.02em; }
.lb-proof span { color: var(--muted); font-size: .9rem; }
.lb-content .case-fig { max-width: 100%; }
@media (max-width: 640px) {
  .lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
}

/* Mobile menu stacks its links; header items never wrap */
.top .mobile-menu .wrap { display: grid; height: auto; gap: 0; align-items: stretch; justify-content: stretch; }
.brand, .pill { white-space: nowrap; }
@media (max-width: 480px) {
  .brand { font-size: 1.3rem; }
  .pill { padding: 8px 14px; font-size: .9rem; }
  .top nav ul { gap: 8px; }
}
@media (max-width: 380px) {
  .top .wrap { gap: 10px; }
  .brand { font-size: 1.2rem; }
  .pill { padding: 7px 12px; font-size: .85rem; }
  .burger { width: 38px; height: 38px; }
  .top nav ul { gap: 6px; }
}
@media (max-width: 340px) {
  .top .wrap { padding-left: 14px; padding-right: 14px; gap: 8px; }
  .brand { font-size: 1.1rem; }
  .pill { padding: 7px 10px; font-size: .8rem; }
  .burger { width: 34px; height: 34px; }
}

/* Testimonial carousel */
.quotes { overflow: hidden; max-width: 880px; margin: 0 auto; }
.q-track { display: flex; transition: transform .7s cubic-bezier(.65,0,.35,1); }
@media (prefers-reduced-motion: reduce) { .q-track { transition: none; } }
.q-slide { flex: 0 0 100%; margin: 0; padding-right: 4px; }
.q-controls { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.q-dots { display: flex; gap: 4px; }
.q-dot { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.q-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; border: 1.5px solid var(--ink); box-sizing: border-box; transition: background .3s, transform .3s; }
.q-dot[aria-current="true"]::before { background: var(--ink); transform: scale(1.15); }
.q-dot:hover::before { background: var(--muted); border-color: var(--muted); }
.q-dot[aria-current="true"]:hover::before { background: var(--ink); border-color: var(--ink); }
.q-pause { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.q-pause:hover { border-color: var(--ink); color: var(--ink); }
.q-ico { width: 8px; height: 9px; border-left: 2px solid currentColor; border-right: 2px solid currentColor; box-sizing: border-box; }
.quotes.is-paused .q-ico { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent currentColor; margin-left: 2px; }
.q-dot:focus, .q-pause:focus { outline: none; }
.q-dot:focus-visible, .q-pause:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 50%; }
.quotes blockquote { font-size: clamp(1.35rem, 2.4vw, 1.95rem); line-height: 1.38; }

/* Testimonials band */
.testimonials { background: var(--chalk); color: var(--chalk-ink); padding: clamp(80px, 11vw, 140px) 0; }
.testimonials .q-slide { text-align: center; padding: 0 clamp(4px, 3vw, 40px); }
.testimonials .q-slide::before { content: "\201C"; display: block; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(5rem, 9vw, 7rem); line-height: 1; height: .45em; color: var(--mark); margin-bottom: 24px; }
.testimonials blockquote { color: var(--chalk-ink); margin: 0 auto 20px; max-width: 30ch; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; }
.testimonials figcaption { color: var(--chalk-muted); font-size: .95rem; letter-spacing: .01em; }
.testimonials .q-controls { justify-content: center; margin-top: 40px; }
.testimonials .q-dot::before { border-color: var(--chalk-ink); }
.testimonials .q-dot[aria-current="true"]::before { background: var(--chalk-ink); }
.testimonials .q-dot:hover::before { background: var(--chalk-muted); border-color: var(--chalk-muted); }
.testimonials .q-dot[aria-current="true"]:hover::before { background: var(--chalk-ink); border-color: var(--chalk-ink); }
.testimonials .q-pause { border-color: rgba(238, 241, 234, .35); color: var(--chalk-muted); }
.testimonials .q-pause:hover { border-color: var(--chalk-ink); color: var(--chalk-ink); }
.testimonials .q-dot:focus-visible, .testimonials .q-pause:focus-visible { outline-color: var(--chalk-ink); }

/* Contact row: email and LinkedIn icons, then the booking button */
.contact-row { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; color: var(--ink); text-decoration: none; transition: background .2s, color .2s, transform .15s; }
.icon-btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.cta-li { margin-left: 8px; }
.cta { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--mark); color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 18px rgba(242, 193, 78, .35); transition: transform .15s, box-shadow .2s, background .2s; }
.cta:hover { transform: translateY(-1px); background: #f5cb63; box-shadow: 0 10px 24px rgba(242, 193, 78, .45); }
.icon-btn:focus, .cta:focus { outline: none; }
.icon-btn:focus-visible, .cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 380px) { .cta-li { margin-left: 0; } .cta { padding: 0 18px; } }
.about-text p.after-photo { clear: left; }
/* The underline under the name uses the yellow of the booking button */
.brand::after { background: var(--mark); height: 2px; bottom: -6px; }

/* Listen on the green band */
.screen .facts li { border-top-color: rgba(238, 241, 234, .5); }
.screen .facts span { color: var(--chalk-muted); }
.screen .story { color: var(--chalk-ink); }
.stats { border-bottom: 0; }
