/* Tobi Bello portfolio, rebuilt from the Framer site as plain HTML/CSS. */

@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #0F1013;
  --nav: #17191C;
  --white: #FFFFFF;
  --grey: #9C9C9D;
  --grey-2: #AAAAAA;
  --line: #3F4042;
  --teal: #1BBDCC;
  --link: #0099FF;
  --display: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --inter: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --spring: cubic-bezier(0.2, 0.9, 0.25, 1);
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--white); font-family: var(--display); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
button { font: inherit; color: inherit; }

/* Text that fades from white at the top to grey at the bottom */
.grad { background-image: linear-gradient(0deg, #999999 0%, #FFFFFF 79.1%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.grad-75 { background-image: linear-gradient(0deg, #999999 0%, #FFFFFF 75%); }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; border-radius: 12px; font: 400 16px/24px var(--display); white-space: nowrap; transition: filter .2s, transform .2s, box-shadow .2s; }
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid; pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { padding: 12px 16px; color: var(--white); background: linear-gradient(180deg, #015B63 0%, #006D77 100%); box-shadow: 0 1px 2px 0 rgba(62, 34, 13, .5), 0 0 0 2px #004147; }
.btn-primary::after { border-color: rgba(255, 255, 255, .34); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { padding: 12px 20px; color: var(--grey); }
.btn-ghost::after { border-color: var(--line); }
.btn-ghost:hover { color: var(--white); }

/* ---------- Navbar ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 24px 100px; pointer-events: none; }
.site-header .nav { pointer-events: auto; transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.scrolled .nav { background: rgba(23, 25, 28, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 1px 1px rgba(255, 255, 255, .15), 0 12px 32px rgba(0, 0, 0, .45); }
section[id] { scroll-margin-top: 140px; }
.nav { position: relative; width: 100%; max-width: 1178px; min-height: 83px; display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; background: var(--nav); border-radius: 24px; box-shadow: inset 0 1px 1px 1px rgba(255, 255, 255, .15); }
.nav-logo img, .footer-logo img { width: 121px; height: 24px; object-fit: cover; }
.nav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; }
.nav-links a { padding: 12px 20px; font-size: 18px; line-height: 27px; color: var(--grey); transition: color .2s; }
.nav-links a:hover { color: var(--white); }
.nav-divider { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 261px; height: 3px; }
.nav-toggle { display: none; width: 40px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; width: 20px; height: 1.5px; background: var(--white); border-radius: 2px; transition: transform .3s var(--spring), top .3s var(--spring); }
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav.open .nav-toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }
.nav-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 764px; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.35) brightness(1.12); }
.hero-inner { position: relative; width: 100%; max-width: 1200px; margin-top: 141px; padding: 45px 100px 53px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.avatar { width: 96px; height: 96px; object-fit: contain; }
.hero-lines { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.greeting { font: 600 24px/1.4 var(--display); }
.headline-wrap { display: flex; flex-direction: column; gap: 16px; }
.headline { font: 400 56px/1.1 var(--inter); letter-spacing: -2.5px; }
.headline span { display: inline-block; }
.hero-sub { font-size: 18px; line-height: 27px; color: var(--grey-2); }
.stats { display: flex; justify-content: center; align-items: center; gap: 32px; flex-wrap: wrap; }
.stat { display: flex; align-items: center; gap: 6px; }
.stat b { font-weight: 400; font-size: 18px; line-height: 27px; }
.stat b i { font-style: normal; color: var(--teal); }
.stat span { font-size: 16px; line-height: 24px; }
.ctas { display: flex; align-items: center; gap: 16px; margin-top: 12px; }

/* ---------- Client logos ---------- */
.logos { position: relative; height: 93px; display: flex; align-items: center; overflow: hidden; padding: 10px; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 12.5%, #000 87.5%, transparent 100%); }
.logos-wrap { position: relative; }
.logos-wrap::after { content: ""; position: absolute; inset: 0; border-top: 1px solid rgba(255, 255, 255, .15); border-bottom: 1px solid rgba(255, 255, 255, .15); pointer-events: none; }
.logos-track { display: flex; align-items: center; gap: 120px; width: max-content; animation: ticker var(--ticker-duration, 40s) linear infinite; }
.logos-track img { height: 32px; flex: none; object-fit: contain; }
@keyframes ticker { to { transform: translateX(calc(-1 * var(--ticker-shift, 50%))); } }

/* ---------- Sections ---------- */
.section { padding: 100px; display: flex; flex-direction: column; align-items: center; }
.section-title { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.h2 { font: 400 40px/1.4 var(--display); }
.lead { font-size: 18px; line-height: 27px; color: var(--grey); }

/* Work */
.work { gap: 72px; }
.projects { width: 100%; max-width: 1240px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project { position: relative; display: flex; flex-direction: column; background: var(--bg); border-radius: 24px; box-shadow: 0 1px 1px 0 rgba(255, 255, 255, .05), 0 0 5px 0 rgba(0, 0, 0, .25); transition: box-shadow .3s ease; }
.project::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(217, 217, 217, .06); pointer-events: none; }
.project:hover { box-shadow: 0 1px 25px 0 rgba(255, 255, 255, .13), 0 0 15px 0 rgba(0, 0, 0, .25); }
.project-img { height: 340px; border-radius: 24px 24px 0 0; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.project:hover .project-img img { transform: scale(1.05); }
.project-body { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.tags { display: flex; gap: 10px; }
.tag { position: relative; padding: 8px 16px; border-radius: 100px; background: rgba(0, 0, 0, .03); font-size: 16px; line-height: 24px; }
.tag::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid var(--line); }
.project-text { display: flex; flex-direction: column; gap: 8px; }
.project-text h3 { font: 600 24px/1.4 var(--display); }
.project-text p { font-size: 16px; line-height: 24px; color: var(--grey); }

/* About */
.about { flex-direction: row; justify-content: center; gap: 40px; }
.about-left { width: 600px; max-width: 100%; display: flex; flex-direction: column; gap: 40px; }
.about-text { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 27px; color: var(--grey); }
.about-right { width: 600px; max-width: 100%; display: flex; flex-direction: column; gap: 24px; }
.job-wrap { position: sticky; top: 70px; }
.job { position: relative; display: flex; align-items: center; gap: 12px; padding: 20px; background: var(--bg); border-radius: 24px; box-shadow: inset 0 1px 1px 1px rgba(255, 255, 255, .15); }
.job::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 255, 255, .06); pointer-events: none; }
.job img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; flex: none; }
.job-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.job-title { font-size: 18px; line-height: 27px; }
.job-meta { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; color: var(--grey); }
.job-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--grey); }
.job-date { font-size: 16px; line-height: 24px; }

/* Testimonials */
.testimonials { padding: 100px; }
.slider { position: relative; width: 100%; max-width: 1240px; height: 588px; margin: 0 auto; }
.slider-view { height: 100%; padding: 0 72px; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%); }
.slider-track { display: flex; gap: 64px; height: 100%; will-change: transform; }
.slide { flex: 0 0 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 72px; text-align: center; }
.quote { font: 400 40px/1.4 var(--display); }
.person { position: relative; display: flex; gap: 16px; padding: 20px 24px; background: var(--bg); border-radius: 16px; box-shadow: inset 0 1px 1px 1px rgba(255, 255, 255, .1); text-align: left; }
.person::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(217, 217, 217, .06); pointer-events: none; }
.person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.person-text { display: flex; flex-direction: column; gap: 4px; }
.person-name { font-size: 18px; line-height: 27px; }
.person-role { font-size: 16px; line-height: 24px; color: var(--grey); }
.slider-arrow { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 0; border-radius: 40px; background: rgba(0, 0, 0, .2); cursor: pointer; z-index: 2; }
.slider-arrow img { width: 40px; height: 40px; }
.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }
.slider-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; padding: 0 5px; background: var(--bg); border-radius: 50px; z-index: 2; }
.slider-dots button { padding: 10px 5px; border: 0; background: none; cursor: pointer; }
.slider-dots button span { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--white); opacity: .7; transition: opacity .3s; }
.slider-dots button.active span { opacity: 1; }

/* Experience: one compact panel, rows stagger in, hover highlight */
.xp-list { list-style: none; margin: 0; padding: 8px; position: relative; background: var(--bg); border-radius: 24px; box-shadow: inset 0 1px 1px 1px rgba(255, 255, 255, .12); }
.xp-list::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 255, 255, .06); pointer-events: none; }
.xp-row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; transition: background-color .35s ease; }
.xp-row + .xp-row::after { content: ""; position: absolute; top: 0; left: 72px; right: 16px; border-top: 1px solid rgba(255, 255, 255, .06); }
.xp-row::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--teal); transform: scaleY(0); transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.xp-row img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.xp-role { font-size: 17px; line-height: 1.4; }
.xp-role em { font-style: normal; color: var(--grey); }
.xp-role span { color: rgba(27, 189, 204, .5); transition: color .5s ease; }
.xp-row.lit .xp-role span, .xp-row:hover .xp-role span, .xp-row:focus-within .xp-role span, .xp-row:active .xp-role span { color: var(--teal); }
.xp-type { font-size: 14px; line-height: 1.5; color: var(--grey); }
.xp-date { font-size: 14px; color: var(--grey); white-space: nowrap; font-variant-numeric: tabular-nums; transition: color .3s ease; }
.xp-row:hover { background: rgba(255, 255, 255, .03); }
.xp-row:hover::before { transform: scaleY(1); }
.xp-row:hover img { transform: scale(1.08); }
.xp-row:hover .xp-date { color: var(--white); }
/* rows rise in one after another once the panel scrolls into view */
.xp-list.reveal { transform: none; }
.xp-list .xp-row { opacity: 0; transform: translateY(14px); transition: opacity .6s ease calc(var(--i) * 90ms + 150ms), transform .7s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 90ms + 150ms), background-color .35s ease; }
.xp-list.in .xp-row { opacity: 1; transform: none; }
.no-js .xp-list .xp-row { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .xp-list .xp-row { opacity: 1; transform: none; transition: none; } }

/* Testimonial cards (3 in a row; 2x2 once there are 4) */
.testimonials-grid { gap: 72px; }
.t-grid { width: 100%; max-width: 1240px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.t-grid:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.t-card { position: relative; margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 32px; background: var(--bg); border-radius: 24px; box-shadow: inset 0 1px 1px 1px rgba(255, 255, 255, .1); transition: box-shadow .3s ease; }
.t-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(217, 217, 217, .06); pointer-events: none; }
.t-card:hover { box-shadow: inset 0 1px 1px 1px rgba(255, 255, 255, .1), 0 1px 25px 0 rgba(255, 255, 255, .08); }
.t-quote { margin: 0; font: 400 20px/1.5 var(--display); }
.t-card .person { padding: 0; background: none; box-shadow: none; }
.t-card .person::after { display: none; }

/* Banner */
.banner { padding: 100px; }
.banner-card { position: relative; width: 100%; max-width: 1054px; margin: 0 auto; padding: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 24px; overflow: hidden; box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25), 0 1px 1px 1px rgba(255, 255, 255, .15); text-align: center; }
.banner-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(255, 255, 255, .06); pointer-events: none; }
.banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.banner-content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.banner-title { display: flex; flex-direction: column; gap: 16px; }

/* Footer */
.footer { position: relative; display: flex; justify-content: center; padding: 48px 100px; background: var(--bg); }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.footer-inner { width: 100%; max-width: 1240px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.copyright { font-size: 18px; line-height: 27px; }
.socials { display: flex; gap: 24px; color: var(--grey); }
.socials a { display: block; width: 24px; height: 24px; transition: color .2s; }
.socials a:hover { color: var(--white); }
.socials svg { width: 24px; height: 24px; }

/* ---------- Case study pages ---------- */
.case { padding: 171px 200px 40px; display: flex; flex-direction: column; gap: 48px; }
.case > * { width: 100%; max-width: 1040px; margin: 0 auto; }
.case-top { display: flex; flex-direction: column; gap: 32px; }
.back { display: flex; width: 64px; height: 64px; border-radius: 12px; color: var(--grey); transition: color .2s; }
.back:hover { color: var(--white); }
.back svg { width: 60px; height: 60px; }
.case-cover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-header { display: flex; flex-direction: column; gap: 16px; }
.case-header h1 { font: 400 40px/1.4 var(--display); }
.case-desc { font-size: 18px; line-height: 27px; }
.case-desc p + p { margin-top: 16px; }
.info { position: relative; margin: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 16px; }
.info::after { content: ""; position: absolute; inset: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); pointer-events: none; }
.info div { display: flex; flex-direction: column; gap: 8px; font-size: 18px; line-height: 27px; }
.info dd { margin: 0; color: var(--grey); }
.info dt { color: var(--white); }

/* Rich text body */
.rt { font-size: 18px; line-height: 27px; color: var(--grey-2); }
.rt > * + * { margin-top: 20px; }
.rt h3 { font: 600 26px/1.3 var(--display); letter-spacing: -0.01em; color: var(--white); }
.rt > h3:not(:first-child) { margin-top: 56px; }
.rt h4 { font: 600 19px/1.4 var(--display); color: var(--white); }
.rt > h4:not(:first-child) { margin-top: 36px; }
.rt > h4 + * { margin-top: 12px; }
.rt h5 { font: 700 18px/1.4 var(--inter); letter-spacing: -0.04em; color: var(--white); }
.rt h6 { font: 600 16px/1.4 var(--inter); letter-spacing: -0.02em; color: var(--white); }
.rt a { color: var(--link); }
.rt strong { font-weight: 700; }
.rt > ul, .rt > ol { margin-top: 10px; }
.rt li + li { margin-top: 6px; }
.rt ul, .rt ol { margin-bottom: 0; padding: 0; list-style: none; }
.rt li { position: relative; padding-left: 22px; }
.rt ul > li::before { content: "•"; position: absolute; left: 0; top: 0; width: 9px; }
.rt ol { counter-reset: item; }
.rt ol > li { counter-increment: item; }
.rt ol > li::before { content: counter(item) "."; position: absolute; left: 0; top: 0; }
.rt li p { margin: 0; }
.rt blockquote { position: relative; margin-left: 0; margin-right: 0; padding-left: 22px; }
.rt blockquote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 1px; background: #DDDDDD; }
.rt blockquote p { font: italic 400 16px/1.8 var(--inter); color: #999999; }
.rt img { width: 100%; height: auto; }
.rt > img, .rt > .video { margin-top: 32px; border-radius: 12px; overflow: hidden; }
.rt > img + img, .rt > img + .video, .rt > .video + img, .rt > .video + .video { margin-top: 24px; }
.rt > img + :not(img):not(.video), .rt > .video + :not(img):not(.video) { margin-top: 32px; }
.rt .video { position: relative; aspect-ratio: 16 / 9; }
.rt .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Cursor dot: a small teal dot that follows the pointer (desktop only) */
.cursor-dot { position: fixed; left: 0; top: 0; z-index: 100; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 259px; background: #006D77; pointer-events: none; opacity: 0; transition: opacity .3s ease, width .3s cubic-bezier(.16, 1, .3, 1), height .3s cubic-bezier(.16, 1, .3, 1), margin .3s cubic-bezier(.16, 1, .3, 1), background-color .3s ease; will-change: transform; }
.cursor-dot.on { opacity: 1; }
.cursor-dot.hover { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(27, 189, 204, .25); }
.cursor-dot.press { animation: dot-press .35s ease; }
@keyframes dot-press { 50% { scale: .6; } }

/* ---------- Motion ---------- */
/* Load-in: each element rises into place with a spring, staggered by delay. */
@keyframes rise { from { opacity: var(--from-o, 0); transform: translateY(var(--from-y, 24px)); filter: blur(var(--from-blur, 6px)); } to { opacity: 1; transform: none; filter: none; } }
.appear { animation: rise var(--dur, .9s) cubic-bezier(.16, 1, .3, 1) var(--delay, 0s) both; }
/* load-in waits until the element is actually on screen */
.js-motion .appear { animation-play-state: paused; }
.js-motion .appear.seen { animation-play-state: running; }
/* Scroll-in: hidden until the element enters the viewport. */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--spring), transform .8s var(--spring); }
.reveal.scale { transform: scale(.95); }
.reveal.y40 { transform: translateY(40px); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .appear { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .logos-track { animation: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Extra motion ---------- */
/* Testimonials: words fade up and come into focus one after another */
.t-quote.split { background: none; -webkit-text-fill-color: currentColor; color: var(--white); }
.t-quote .w { display: inline-block; background-image: linear-gradient(0deg, #999999 0%, #FFFFFF 79.1%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; opacity: 0; filter: blur(6px); transform: translateY(8px); transition: opacity .5s ease, filter .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--w) * 28ms + 200ms); }
.t-card.in .t-quote .w { opacity: 1; filter: none; transform: none; }
.t-card .person { opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--after, 1s); }
.t-card.in .person { opacity: 1; transform: none; }
.t-grid .t-card:nth-child(2n) { transition-delay: .12s; }
/* Project cards: the second card in each row arrives a beat later */
.projects .project:nth-child(2n) { transition-delay: .12s; }
/* Buttons: the arrow nudges up and right on hover */
.btn svg { transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.btn:hover svg { transform: translate(2px, -2px); }
/* Nav links: a thin underline grows from the centre */
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 8px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.nav-links a:hover::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .t-quote .w, .t-card .person { opacity: 1; filter: none; transform: none; transition: none; } }

/* ---------- Tablet (810–1199) ---------- */
@media (max-width: 1199px) {
  .site-header { position: fixed; top: 0; left: 0; right: 0; padding: 16px 24px; }
  .nav { padding: 12px 20px; flex-wrap: wrap; }
  .nav-links, .nav-cta, .nav-divider { display: none; }
  .nav-toggle { display: block; }
  .nav-menu { display: flex; flex-direction: column; width: 100%; max-height: 0; overflow: hidden; transition: max-height .4s var(--spring); }
  .nav.open .nav-menu { max-height: 360px; }
  .nav-menu a { padding: 12px 0; font-size: 18px; line-height: 27px; color: var(--grey); }
  .nav-menu a:first-child { margin-top: 12px; }
  .nav-menu .btn { margin: 12px 0 8px; align-self: flex-start; color: var(--white); padding: 12px 16px; }
  .hero { margin-top: 0; }
  .section, .testimonials, .banner { padding: 80px 40px; }
  .about { flex-direction: column; align-items: flex-start; }
  .about-left, .about-right { width: 100%; }
  .footer { padding: 40px; }
  .case { padding: 120px 40px 40px; }
}

/* ---------- Mobile (<810) ---------- */
@media (max-width: 809px) {
  .xp-row { grid-template-columns: 40px minmax(0, 1fr); row-gap: 2px; }
  .xp-date { grid-column: 2; }
  .xp-role { font-size: 16px; }
  .t-grid, .t-grid:has(> :nth-child(4)) { grid-template-columns: minmax(0, 1fr); }
  .t-card { padding: 24px; gap: 24px; }
  .t-quote { font-size: 18px; }
  .site-header { padding: 16px; }
  .hero { height: auto; }
  .hero-inner { margin-top: 0; padding: 140px 16px 100px; }
  .greeting { font-size: 20px; }
  .hero-sub { font-size: 16px; line-height: 24px; }
  .stat b { font-size: 16px; line-height: 24px; }
  .stat span { font-size: 14px; line-height: 21px; }
  .stats { column-gap: 24px; row-gap: 20px; }
  .btn { font-size: 14px; line-height: 21px; }
  .section, .testimonials, .banner { padding: 40px 16px; }
  .work, .about { gap: 24px; }
  .h2 { font-size: 28px; }
  .lead { font-size: 16px; line-height: 24px; }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .project-img { height: 240px; }
  .tag { font-size: 14px; line-height: 21px; }
  .project-text h3 { font-size: 20px; }
  .project-text p { font-size: 14px; line-height: 21px; }
  .about-left { gap: 24px; }
  .about-text { font-size: 16px; line-height: 24px; }
  .job-title { font-size: 16px; line-height: 24px; }
  .job-meta, .job-date { font-size: 14px; line-height: 21px; }
  .slider { height: 680px; }
  .slider-view { padding: 0 24px; }
  .quote { font-size: 28px; }
  .banner-card { padding: 40px 20px; }
  .banner-content { gap: 24px; }
  .footer { padding: 32px 16px; }
  .footer-inner { flex-direction: column; gap: 20px; }
  .copyright { font-size: 16px; text-align: center; }
  .case { padding: 110px 16px 40px; gap: 32px; }
  .case-header h1 { font-size: 28px; }
  .case-desc, .rt { font-size: 16px; line-height: 24px; }
  .info { flex-wrap: wrap; row-gap: 20px; }
  .info div { width: calc(50% - 8px); font-size: 16px; line-height: 24px; }
  .rt h3 { font-size: 20px; }
}
