/* ==========================================================================
   abin.me — one stylesheet for every page
   1 Fonts · 2 Theme tokens · 3 Base & Bootstrap overrides · 4 Site chrome
   5 Home · 6 Beyond UX · 7 Let's Talk · 8 Work (portfolio) · 9 Case studies
   10 UGLI · 11 Advanced search · 12 Brand pages · 13 Motion · 14 Responsive
   Colours live in tokens only: edit section 2 to re-theme the whole site.
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: 'Proxima Nova';
  src: url('../fonts/proximanova-regular-webfont.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova';
  src: url('../fonts/proximanova-bold-webfont.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* 2. Theme tokens --------------------------------------------------------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --surface-warm: #faf7f5;
  --border-warm: #f1e9e5;
  --text: #0a0a14;
  --text-body: #3d3f47;
  --text-muted: #62636e;
  --border: #e9e9ee;
  --border-soft: #f3f3f6;
  --icon: #212121;
  --chip: #eeeeee;
  --shadow: 0 15px 10px -10px rgb(33 43 59 / 20%);
  --shadow-soft: 0 15px 10px -10px rgb(33 43 59 / 8%);
  --shadow-hover: 0 22px 24px -16px rgb(33 43 59 / 28%);
  --steam: rgb(0 0 0 / 70%);
  --loader-track: #f0f0f0;

  --accent: #ff5834;                 /* brand orange (decoration)          */
  --accent-text: #c73a1c;            /* brand orange that passes AA on bg  */
  --title: #e0114a;                  /* case-study h1 colour               */
  --nav-active: #e7073f;
  --accent-grad: linear-gradient(343deg, #d93a1c 0%, #d9154a 100%);
  --accent-grad-hover: linear-gradient(343deg, #bf2f14 0%, #b90e3c 100%);
  --accent-grad-text: linear-gradient(343deg, #d93a1c 0%, #d9154a 100%);
  --brand-grad: linear-gradient(343deg, #ff5834 0%, #ff2a62 100%);

  --hl-yellow: #ffee00;
  --hl-blue: #d2e2fd;
  --hl-pink: #ffd5fb;
  --hl-green: #c4ffcd;

  --good: #1e7e34;     --good-bg: #eef7f0;  --good-line: #d8ecdd;
  --bad: #b3261e;      --bad-bg: #fbeeee;   --bad-line: #f3dada;
  --issue-bg: #c9535917; --issue-line: #c95359;
  --tag-before-bg: #ffe9e3; --tag-before: #b3261e;
  --tag-after-bg: #c4ffcd;  --tag-after: #1d6b2e;
  --vis-bg: #ddefff; --vis: #1c5fa8;
  --ins-bg: #fff3cf; --ins: #7d5700;

  --cta-bg: #212121; --cta-text: #e9eae8; --cta-kicker: #7fd3cf;

  --teal: #1f6b6b; --teal-soft: #e7f1f0; --teal-line: #cfe4e2;
  --amber: #8c5a14; --steel: #2f6d94; --coral: #c42f4f;

  --plum: #9a326b; --slate: #42668a;
  --search-grad: linear-gradient(-40deg, #9a326b 0%, #42668a 100%);
  --logo-panel: #ffffff;
}

/* Dark theme: set by the toggle (data-theme) or, without JS, by the OS */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1014;
  --surface: #17181e;
  --surface-2: #20222a;
  --surface-warm: #1c1a1b;
  --border-warm: #302a28;
  --text: #ececf1;
  --text-body: #c6c7cf;
  --text-muted: #a3a4b0;
  --border: #2b2d36;
  --border-soft: #24262e;
  --icon: #ececf1;
  --chip: #ececf1;
  --shadow: 0 15px 12px -10px rgb(0 0 0 / 60%);
  --shadow-soft: 0 12px 12px -10px rgb(0 0 0 / 45%);
  --shadow-hover: 0 22px 24px -16px rgb(0 0 0 / 70%);
  --steam: rgb(255 255 255 / 70%);
  --loader-track: #1d1f26;

  --accent-text: #ff7a5c;
  --title: #ff6485;
  --nav-active: #ff6485;
  --accent-grad-text: linear-gradient(343deg, #ff7a5c 0%, #ff5f8a 100%);

  --hl-yellow: #6a5d00;
  --hl-blue: #26406b;
  --hl-pink: #612a5c;
  --hl-green: #1f5530;

  --good: #72dd8f;     --good-bg: #13241a;  --good-line: #21402c;
  --bad: #ff8f85;      --bad-bg: #2a1717;   --bad-line: #47231f;
  --issue-bg: rgba(201, 83, 89, .16); --issue-line: #d9656b;
  --tag-before-bg: #3d1e1a; --tag-before: #ffa497;
  --tag-after-bg: #173a22;  --tag-after: #86e6a0;
  --vis-bg: #16304d; --vis: #9ccaff;
  --ins-bg: #3a2f10; --ins: #f3cd6b;

  --cta-bg: #17181e; --cta-text: #d9dae0; --cta-kicker: #7fd3cf;

  --teal: #62c9c9; --teal-soft: #122626; --teal-line: #214040;
  --amber: #e4ae5f; --steel: #86bde2; --coral: #ff8198;

  --plum: #e592c0; --slate: #8fb3d6;
  --logo-panel: #f4f4f6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0f1014;
    --surface: #17181e;
    --surface-2: #20222a;
    --surface-warm: #1c1a1b;
    --border-warm: #302a28;
    --text: #ececf1;
    --text-body: #c6c7cf;
    --text-muted: #a3a4b0;
    --border: #2b2d36;
    --border-soft: #24262e;
    --icon: #ececf1;
    --chip: #ececf1;
    --shadow: 0 15px 12px -10px rgb(0 0 0 / 60%);
    --shadow-soft: 0 12px 12px -10px rgb(0 0 0 / 45%);
    --shadow-hover: 0 22px 24px -16px rgb(0 0 0 / 70%);
    --steam: rgb(255 255 255 / 70%);
    --loader-track: #1d1f26;

    --accent-text: #ff7a5c;
    --title: #ff6485;
    --nav-active: #ff6485;
    --accent-grad-text: linear-gradient(343deg, #ff7a5c 0%, #ff5f8a 100%);

    --hl-yellow: #6a5d00;
    --hl-blue: #26406b;
    --hl-pink: #612a5c;
    --hl-green: #1f5530;

    --good: #72dd8f;     --good-bg: #13241a;  --good-line: #21402c;
    --bad: #ff8f85;      --bad-bg: #2a1717;   --bad-line: #47231f;
    --issue-bg: rgba(201, 83, 89, .16); --issue-line: #d9656b;
    --tag-before-bg: #3d1e1a; --tag-before: #ffa497;
    --tag-after-bg: #173a22;  --tag-after: #86e6a0;
    --vis-bg: #16304d; --vis: #9ccaff;
    --ins-bg: #3a2f10; --ins: #f3cd6b;

    --cta-bg: #17181e; --cta-text: #d9dae0; --cta-kicker: #7fd3cf;

    --teal: #62c9c9; --teal-soft: #122626; --teal-line: #214040;
    --amber: #e4ae5f; --steel: #86bde2; --coral: #ff8198;

    --plum: #e592c0; --slate: #8fb3d6;
    --logo-panel: #f4f4f6;
  }
}

/* 3. Base & Bootstrap overrides ------------------------------------------ */
html { scroll-padding-top: 90px; }
body {
  font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1em;
  color: var(--text);
  background: var(--bg);
  transition: background-color .3s ease, color .3s ease;
}
h1, h2, h4, h5, h6, b, strong, .card-title, .font-weight-bold, .fw-bold { font-weight: 700; }
h1 { letter-spacing: -0.06em; font-size: 4rem; }
h2 { letter-spacing: -0.06em; font-size: 2rem; }
h4 { font-size: 1.2em; }
h5, .h5 { font-size: 1.1rem; font-weight: 700; }
hr { border-top-color: var(--border); }
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); }
a:hover { color: var(--nav-active); }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: none;
}

.text-dark { color: var(--text) !important; }
.text-muted, .text-secondary { color: var(--text-muted) !important; }
.text-success { color: var(--good) !important; }
.text-danger { color: var(--bad) !important; }
.border, .border-top, .border-bottom { border-color: var(--border) !important; }
.badge-light { background: var(--surface-2); color: var(--text-muted); }
.card { background: var(--surface); color: var(--text); }
.form-control, .form-control:focus {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(255, 88, 52, .25); }
.table { color: var(--text); }
.alert-success { background: var(--good-bg); color: var(--good); border-color: var(--good-line); }
.alert-danger { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }

/* Bootstrap 5 class names used in some pages (site runs Bootstrap 4) */
.fw-medium { font-weight: 500; }
.text-start { text-align: left !important; }
.ms-auto { margin-left: auto; }
.gap-2 { gap: .5rem; } .gap-3 { gap: 1rem; } .gap-4 { gap: 1.5rem; }
.row.g-3 > * { margin-bottom: 1rem; }
.row.g-4 > * { margin-bottom: 1.5rem; }
@media (min-width: 992px) { .ps-lg-5 { padding-left: 3rem !important; } }

/* Visually hidden but read by screen readers */
.sr-only-focusable:focus { position: static; width: auto; height: auto; }

/* 4. Site chrome ---------------------------------------------------------- */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 10000;
  background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: 6px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; color: var(--bg); }

.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--bg);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--border); }
.navbar-light .navbar-toggler { border: none; }
.navbar-brand img { display: block; }
.nav-link { border: 2px solid transparent; border-radius: 100px; }
.navbar-light .navbar-nav .nav-link { color: var(--text-muted); }
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus { color: var(--text); }
.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link[aria-current="page"] { color: var(--nav-active); }
[data-theme="dark"] .navbar-light .navbar-toggler-icon { filter: invert(1); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 50%;
  background: transparent; color: var(--text); font-size: 1.05rem;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-text); }
.theme-toggle .bi-sun { display: none; }
[data-theme="dark"] .theme-toggle .bi-sun { display: inline; }
[data-theme="dark"] .theme-toggle .bi-moon-stars { display: none; }

/* Buttons */
.btn.btn-primary {
  border-radius: 100px;
  padding: 8px 20px;
  border: 2px solid transparent;
  color: #fff;
  background: var(--accent-grad);
  transition: all .5s ease;
}
.btn.btn-primary:hover, .btn.btn-primary:focus { color: #fff; background: var(--accent-grad-hover); }

/* Highlighter links / marks — coloured bar grows on hover */
.ap-head h1 a, .ap-smalltext a, a.cbtn, a.ap-link, .hl-mark {
  position: relative;
  z-index: 1;
  color: inherit;
  text-decoration: none;
}
.ap-head h1 a, .hl-mark, a.cbtn { white-space: nowrap; }
.ap-head h1 a::before, .ap-smalltext a::before, a.cbtn::before, a.ap-link::before, .hl-mark::before {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  z-index: -1;
  border-radius: 2px;
  transform: rotate(-1deg);
  transition: all .2s;
}
.ap-head h1 .hl-mark::before { height: 15px; bottom: 0; background: var(--hl-yellow); }
.ap-smalltext a::before, a.cbtn::before, .hl-mark::before { height: 7px; bottom: 3px; background: var(--hl-blue); }
a.ap-link::before, .about-s .hl-mark::before { height: 7px; bottom: 3px; background: var(--hl-yellow); }
.market a.cbtn::before { background: var(--hl-pink); }
.risk a.cbtn::before { background: var(--hl-green); }
a.cbtn:hover::before, a.ap-link:hover::before, .ap-smalltext a:hover::before,
a.cbtn:focus-visible::before, a.ap-link:focus-visible::before { height: 100%; bottom: 0; }
a.cbtn:hover, a.ap-link:hover { color: var(--text); }

/* Footer */
.ap-footer-link { margin: 0; padding: 0; display: flex; justify-content: center; gap: 2.5rem; list-style: none; }
.ap-footer-link a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  color: var(--icon); font-size: 1.5rem; transition: color .2s;
}
.ap-footer-link a:hover { color: var(--nav-active); }
.ap-footer-link.left { justify-content: flex-start; }

/* Case-study cards (home + related work) */
.card { border: none; transition: all .5s ease; }
.card-body { border: 1px solid transparent; }
.card-body .eyebrow {
  display: block;
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: .75rem;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: .5rem;
}
.card .card-title { font-size: 1.1rem; }
.card-text { margin-bottom: 0; line-height: 30px; font-size: 1.1rem; }
.card:hover .card-body, .card.risk .card-body { border-color: var(--border-soft); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.bd-placeholder-img { position: relative; display: block; overflow: hidden; border-radius: 6px 6px 0 0; }
.card .bd-placeholder-img img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: filter .5s ease;
}
.card:hover .bd-placeholder-img img, .card:focus-within .bd-placeholder-img img { filter: grayscale(0%); }
[data-theme="dark"] .card .bd-placeholder-img img { filter: grayscale(100%) brightness(.85); }
[data-theme="dark"] .card:hover .bd-placeholder-img img,
[data-theme="dark"] .card:focus-within .bd-placeholder-img img { filter: none; }
.related { padding-bottom: 3rem; }

/* Page-transition loader */
.horizontal-loader {
  position: fixed; top: 0; left: 0; width: 100%; height: 4px; z-index: 9999;
  overflow: hidden; display: none; background: var(--loader-track);
}
.horizontal-loader .bar {
  position: relative; height: 100%;
  background: var(--brand-grad);
  animation: loadBar 1.5s ease-in-out infinite;
}

/* 4b. Mascot -------------------------------------------------------------- */
/* One character, reused across the site. Every pose is a stack of same-size
   layers: body (with empty white eye sockets) → pupils (moved by main.js,
   clipped to the sockets by a mask) → closed lids (flashed for a blink).
   Pose data lives on the element: data-w (image width in px), data-eyes
   (eye centre as x,y %) and data-reach (how far the pupils may travel, px). */
.mascot { position: relative; }
.mascot .m-layer, .mascot > img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: contain; display: block; pointer-events: none;
}
/* Pupils are clipped to the eye sockets by SVG shapes that main.js adds
   (a CSS mask image is blocked when a page is opened straight from disk). */
.m-eyes { z-index: 4; }
.m-eyes--bench.m-clip { clip-path: url(#m-clip-bench); }
.m-eyes--head.m-clip { clip-path: url(#m-clip-head); }
.m-eyes--coffee.m-clip { clip-path: url(#m-clip-coffee); }
.m-pupil {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; display: block;
  will-change: transform; transition: transform .14s ease-out;
}
.mascot .m-lids { z-index: 5; opacity: 0; }
.mascot.is-blinking .m-lids { opacity: 1; }
.mascot .m-bubble { z-index: 6; }

/* Speech bubble */
.m-bubble {
  position: absolute; z-index: 6;
  left: var(--bub-x, auto); right: var(--bub-r, auto); bottom: var(--bub-y, 100%);
  max-width: 290px; width: max-content;
  padding: 8px 14px; border-radius: 16px 16px 4px 16px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  box-shadow: var(--shadow); font-size: 15px; line-height: 1.35;
  opacity: 0; transform: translateY(6px) scale(.85); transform-origin: 100% 100%;
  transition: opacity .2s ease, transform .3s var(--ease-out, ease);
  pointer-events: none;
}
.m-bubble.is-left { border-radius: 16px 16px 16px 4px; transform-origin: 0 100%; }
.m-bubble.is-on { opacity: 1; transform: none; }

/* Little reactions */
.mascot.is-hopping { animation: m-hop .5s var(--ease-out, ease); }
@keyframes m-hop { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(-14px) rotate(-1.5deg); } 65% { transform: translateY(0) scaleY(.97); } }
.mascot[data-mascot-lines] { cursor: pointer; }
.mascot[data-mascot-lines] > img, .mascot[data-mascot-lines] .m-layer { pointer-events: none; }

/* Peeking head: rises from behind whatever sits in front of it */
.m-peek { position: absolute; overflow: hidden; pointer-events: none; }
.m-peek .mascot { width: 100%; aspect-ratio: 236 / 278; pointer-events: auto; transform: translateY(101%); transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.m-peek.is-up .mascot { transform: translateY(var(--peek-y, 12%)); }
.m-peek.is-ducking .mascot { transform: translateY(101%); transition-duration: .25s; transition-timing-function: ease-in; }
.m-peek-wrap { position: relative; }
.m-peek-wrap .m-bubble { --bub-r: calc(100% - 8px); --bub-y: 62%; }

/* Work: head peeks over the top-right of the case-study grid */
.pf-hero { position: relative; }
.pf-grid { position: relative; z-index: 1; }
.pf-peek { position: absolute; right: 4%; bottom: -1.5rem; width: 150px; height: 170px; z-index: 0; }
.pf-peek .m-peek { inset: 0; }

/* Beyond UX: head peeks over the photo grid */
.photo-peek { position: absolute; right: 6%; bottom: -3rem; width: 130px; height: 150px; }
.photo-peek .m-peek { inset: 0; }
#photo-title-wrap { position: relative; }
.photo-grid { position: relative; z-index: 1; }

/* Case studies: a head peeks up from the bottom-right corner */
.peeker {
  position: fixed; right: clamp(12px, 3vw, 40px); bottom: 0; z-index: 1030;
  width: 132px; height: 140px; pointer-events: none;
}
.peeker .m-peek { inset: 0; }
.peeker .m-peek .mascot { transition-duration: .8s; }
.peeker.is-lurk .m-peek .mascot { transform: translateY(58%); }
.peeker.is-up .m-peek .mascot { transform: translateY(14%); }
.peeker.is-gone .m-peek .mascot { transform: translateY(101%); transition-duration: .35s; transition-timing-function: ease-in; }
.peeker-card {
  position: absolute; right: calc(100% - 14px); bottom: 70px; width: 250px;
  padding: 12px 34px 12px 16px; border-radius: 16px 16px 4px 16px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: 15px; line-height: 1.4; pointer-events: auto;
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.9); transform-origin: 100% 100%;
  transition: opacity .2s ease, transform .35s var(--ease-out, ease), visibility 0s linear .35s;
}
.peeker.has-card .peeker-card { opacity: 1; visibility: visible; transform: none; transition-delay: .35s, .35s, 0s; }
.peeker-card p { margin: 0 0 4px; color: var(--text-muted); font-size: 14px; }
.peeker-card a { font-weight: 700; color: var(--accent-text); text-decoration: none; }
.peeker-card a:hover { text-decoration: underline; }
.peeker-x {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--text-muted);
  font-size: 18px; line-height: 26px; cursor: pointer;
}
.peeker-x:hover { background: var(--surface-2); color: var(--text); }
.peeker .m-bubble { right: calc(100% - 14px); bottom: 64px; }
@media (max-width: 767.98px) { .peeker { display: none; } }

/* 5. Home ----------------------------------------------------------------- */
.hero-sec { min-height: 80vh; }
.ap-smalltext { font-size: 18px; }
.ap-head h1 { font-size: 2rem; line-height: 48px; font-weight: 400; letter-spacing: -0.04em; }

/* Layered hero art: the box takes its height from the artwork's own shape,
   so no layer can ever be clipped (the old fixed vh height cropped it). */
.cp-pp {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
  aspect-ratio: 3 / 2;
}
.cp-pp img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: none;
  object-fit: contain;
  display: block;
}
.cp-pp .face, .cp-pp .plant { z-index: 3; }
.plant { animation: sway 3s ease-in-out infinite; transform-origin: bottom center; }
.cp-pp .base { z-index: 2; }
@supports not (aspect-ratio: 1) { .cp-pp { height: 0; padding-top: 66.67%; } }

.cp-shadow { box-shadow: var(--shadow); background: var(--surface); }
.cp-ts { font-size: .75rem; }
.cp-bb { border-bottom: 1px solid var(--border); }
.cp-cl-img, .cp-cl-img img { width: 72px; height: 72px; border-radius: 50%; }
.cp-cl-img { flex: 0 0 72px; background: var(--chip); margin-right: 16px; margin-top: 6px; overflow: hidden; }
.cp-cl-img img { object-fit: contain; }
.cp-display-5 { font-size: 1.5rem; margin: 10px 0 0; letter-spacing: -0.02em; }

.nav.nav-pills { justify-content: center; }
.nav-pills .nav-link {
  padding: 8px 20px;
  color: var(--text-muted);
  transition: all .3s ease;
}
.nav-pills .nav-link:hover { color: var(--text); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  border-color: var(--accent-text);
  color: var(--accent-text);
  background: transparent;
}
.nav-pills .nav-link.active:hover { background: var(--accent-grad); color: #fff; border-color: transparent; }

.timeline {
  position: relative;
  margin: 50px auto;
  padding-left: 20px;
  border-left: 2px solid var(--border);
}
.timeline-item { position: relative; margin-bottom: 40px; padding-left: 20px; }
.timeline-dot {
  position: absolute; left: -30px; top: 10px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--border);
}
.timeline-content h4 { font-size: 1.1rem; }
.timeline-content h5 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.timeline-content p { margin: 0; font-size: 1rem; color: var(--text-body); line-height: 1.5; }
.ico-arrow { width: 14px; height: 14px; flex: 0 0 14px; }
.sec-bg {
  background: linear-gradient(-45deg, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

/* 5b. Career journey (home) --------------------------------------------------
   The character sits in a sticky "stage" and changes look as the role cards
   scroll past. main.js sets data-era on .jr; each era tints the backdrop. */
.jr { --era: #1f6b6b; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; margin-top: 3rem; }
.jr[data-era="1"] { --era: #c98a1a; }
.jr[data-era="2"] { --era: #2f6d94; }
.jr[data-era="3"] { --era: #3b6fd6; }
.jr[data-era="4"] { --era: #9a326b; }
.jr[data-era="5"] { --era: #ff5834; }

.jr-stage {
  position: sticky; top: 84px; align-self: start;
  height: calc(100vh - 104px); min-height: 520px; max-height: 820px;
  display: flex; flex-direction: column;
}
.jr-scene { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; }
.jr-year {
  position: absolute; top: 4%; left: 0; right: 0; margin: 0; text-align: center; z-index: 0;
  font-weight: 700; font-size: clamp(5rem, 10vw, 9rem); line-height: 1; letter-spacing: -0.06em;
  color: color-mix(in srgb, var(--era) 18%, transparent);
  transition: color .6s ease; font-variant-numeric: tabular-nums; pointer-events: none;
}
.jr-figure { position: relative; flex: 1; width: 100%; min-height: 0; margin-top: 12%; }
.jr-glow {
  position: absolute; left: 50%; bottom: 4%; width: 78%; aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--era) 30%, transparent), color-mix(in srgb, var(--era) 6%, transparent) 62%, transparent 70%);
  transition: background .6s ease;
}
.jr-figure::after {  /* ground shadow */
  content: ""; position: absolute; left: 50%; bottom: 1%; width: 46%; height: 14px; translate: -50% 0;
  border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / 22%), transparent);
}
.jr-look {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
  opacity: 0; transform: scale(.94) translateY(10px); filter: blur(4px);
  transition: opacity .45s ease, transform .6s cubic-bezier(.3, 1.4, .5, 1), filter .45s ease;
  z-index: 1;
}
.jr-look.is-on { opacity: 1; transform: none; filter: none; z-index: 2; }
.jr-look.is-out { opacity: 0; transform: scale(1.04) translateY(-6px); filter: blur(6px); }
.jr-poof {  /* a soft ring that pulses when the look changes */
  position: absolute; left: 50%; top: 42%; width: 60%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: 2px solid var(--era); opacity: 0; pointer-events: none; z-index: 3;
}
.jr-figure.is-changing .jr-poof { animation: jr-poof .7s ease-out; }
@keyframes jr-poof { from { opacity: .7; transform: scale(.6); } to { opacity: 0; transform: scale(1.25); } }
.jr-caption {
  margin: 14px 0 0; padding: 6px 16px; border-radius: 999px;
  background: color-mix(in srgb, var(--era) 12%, var(--surface)); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--era) 30%, transparent);
  font-weight: 700; font-size: .95rem; transition: background .6s ease, border-color .6s ease;
}

/* Year rail under the character */
.jr-rail { position: relative; display: flex; justify-content: space-between; margin: 22px 8px 0; padding-top: 10px; }
.jr-rail::before, .jr-rail-fill { content: ""; position: absolute; top: 15px; left: 6px; right: 6px; height: 2px; background: var(--border); }
.jr-rail-fill { right: auto; width: calc((100% - 12px) * var(--p, 0)); background: var(--era); transition: width .5s ease, background .6s ease; }
.jr-rail-dot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); font-size: .8rem; text-decoration: none; }
.jr-rail-dot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); transition: all .3s ease; }
.jr-rail-dot.is-done::before { background: var(--era); border-color: var(--era); }
.jr-rail-dot.is-on { color: var(--text); font-weight: 700; }
.jr-rail-dot.is-on::before { transform: scale(1.35); box-shadow: 0 0 0 4px color-mix(in srgb, var(--era) 22%, transparent); }
.jr-rail-dot:hover { color: var(--text); text-decoration: none; }

/* Role cards */
.jr-steps { list-style: none; margin: 0; padding: 0; }
.jr-step { min-height: 72vh; display: flex; align-items: center; padding: 3vh 0; }
.jr-step:first-child { min-height: 60vh; align-items: flex-start; }
.jr-step:last-child { min-height: 70vh; }
.jr-card {
  width: 100%; padding: 28px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-soft);
  transition: opacity .4s ease, transform .4s var(--ease-out, ease), box-shadow .4s ease, border-color .4s ease;
}
.js-journey .jr-step:not(.is-on) .jr-card { opacity: .38; transform: scale(.97); }
.js-journey .jr-step.is-on .jr-card { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--era) 35%, var(--border)); }
.jr-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.jr-logo { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 50%; overflow: hidden; background: var(--chip); }
.jr-logo img { width: 100%; height: 100%; object-fit: contain; }
.jr-co { margin: 0; font-weight: 700; color: var(--text-muted); font-size: .9rem; }
.jr-loc { font-weight: 400; margin-left: 6px; white-space: nowrap; }
.jr-role { font-size: 1.45rem; letter-spacing: -0.02em; margin: 2px 0 2px; }
.jr-when { margin: 0; font-size: .85rem; color: var(--text-muted); }
.jr-card > p { color: var(--text-body); line-height: 1.6; margin-bottom: 12px; }
.jr-sub { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin: 18px 0 8px; }
.jr-wins { list-style: none; padding: 0; margin: 0 0 16px; }
.jr-wins li { position: relative; padding-left: 22px; margin-bottom: 4px; color: var(--text); }
.jr-wins li::before { content: "→"; position: absolute; left: 0; color: var(--good); }
.jr-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.jr-tags li { font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-body); }

@media (max-width: 991.98px) {
  .jr { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 28px; }
  .jr-card { padding: 22px; }
}
/* Phones: the stage becomes a compact sticky bar above the cards */
@media (max-width: 767.98px) {
  .jr { display: block; }
  .jr-stage {
    top: 64px; z-index: 5; height: auto; min-height: 0; max-height: none;
    margin: 0 -15px 12px; padding: 10px 15px 12px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }
  .jr-scene { flex-direction: row; align-items: center; gap: 14px; }
  .jr-figure { flex: 0 0 88px; height: 124px; margin: 0; }
  .jr-year { position: static; order: 2; text-align: left; font-size: 2.6rem; color: var(--era); }
  .jr-caption { order: 3; margin: 0; font-size: .8rem; position: absolute; left: 102px; bottom: 6px; }
  .jr-rail { margin: 10px 0 0; }
  .jr-rail-dot { font-size: .7rem; }
  .jr-step, .jr-step:first-child, .jr-step:last-child { min-height: 0; padding: 10px 0; }
  .js-journey .jr-step:not(.is-on) .jr-card { opacity: .55; transform: none; }
  .jr-glow { width: 110%; }
}

/* 6. Beyond UX ------------------------------------------------------------ */
.about-intro { font-size: 18px; font-weight: 700; letter-spacing: 0; }
.parallax {
  position: relative;
  min-height: 66vh;
  border-radius: 6px;
  background: url('../img/abin-home.webp') center / contain no-repeat fixed;
}
.portfolio-item { overflow: hidden; border-radius: 6px; }
.portfolio-item img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .3s ease; }
.portfolio-item:hover img { transform: scale(1.05); }

/* 7. Let's Talk ----------------------------------------------------------- */
.contact-form {
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
}
.contact-form { position: relative; z-index: 3; }
.contact-form textarea { min-height: 210px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.person-container { position: relative; display: flex; align-items: flex-end; min-height: 460px; }
.contact-person { position: relative; z-index: 2; height: 440px; width: auto; aspect-ratio: 600 / 900; flex-shrink: 0; }
.contact-plant { position: absolute; left: -150px; bottom: 0; z-index: 1; max-width: 240px; }
.coffee-cup { position: absolute; z-index: 3; width: 30px; height: 80px; left: 78px; bottom: 262px; }
.steam {
  position: absolute; bottom: 0;
  width: 1px; height: 33px;
  background: var(--steam);
  border-radius: 50%;
  filter: blur(2px);
  animation: rise 2s linear infinite;
}
.steam1 { left: 5px; }
.steam2 { left: 15px; animation-delay: 1s; }
.steam3 { left: 20px; animation-delay: 2s; }

/* 8. Work (portfolio) ----------------------------------------------------- */
.pf-wrap { max-width: 1140px; }
.pf-hero { padding: 3rem 1rem 1rem; }
.pf-hero h1 { font-size: 3.2rem; line-height: 1.05; max-width: 14ch; margin-bottom: 1.1rem; }
.pf-hero p { font-size: 1.3rem; line-height: 1.55; color: var(--text-muted); max-width: 60ch; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; list-style: none; padding: 0; margin: 0; }
.pf-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: all .35s ease;
}
.pf-card:hover, .pf-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  text-decoration: none; color: inherit;
}
.pf-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .5s ease; filter: grayscale(1); }
.pf-card:hover .pf-thumb img, .pf-card:focus-visible .pf-thumb img { transform: scale(1.05); filter: grayscale(0); }
.pf-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.pf-eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: .75rem; font-weight: 700; color: var(--text-muted); margin-bottom: .5rem; }
.pf-card h2 { font-size: 1.3rem; line-height: 1.2; margin-bottom: .6rem; letter-spacing: -0.02em; }
.pf-card p { font-size: .98rem; line-height: 1.55; color: var(--text-muted); margin-bottom: 1.1rem; }
.pf-link {
  margin-top: auto; font-weight: 700; font-size: .95rem;
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--accent-text);
}
.pf-link .arr { transition: transform .25s ease; }
.pf-card:hover .pf-link .arr { transform: translateX(4px); }
.pf-archive { border-top: 1px solid var(--border); margin-top: 3.5rem; padding-top: 2.5rem; }
.pf-archive p { color: var(--text-muted); }
.pf-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.pf-logo {
  display: flex; align-items: center; justify-content: center; height: 120px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--logo-panel);
  transition: all .35s ease;
}
.pf-logo:hover, .pf-logo:focus-visible { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.pf-logo img { max-height: 80px; max-width: 60%; filter: grayscale(100%); opacity: .75; transition: all .35s ease; }
.pf-logo:hover img, .pf-logo:focus-visible img { filter: grayscale(0%); opacity: 1; }

/* 9. Case studies --------------------------------------------------------- */
.cs-wrap { max-width: 820px; }
.cs-page-title { color: var(--title); }
.cs-eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: .75rem; color: var(--text-muted); font-weight: 700; margin-bottom: 1rem; }
.cs-hero h1 { font-size: 3rem; line-height: 1.05; margin-bottom: 1.25rem; }
.cs-lede { font-size: 1.35rem; line-height: 1.5; color: var(--text); }
.cs-meta {
  display: flex; flex-wrap: wrap; gap: 4px 8px;
  font-size: .95rem; color: var(--text-muted);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 14px 0; margin: 1.75rem 0 0; list-style: none;
}
.cs-meta li + li::before { content: '·'; color: var(--accent); margin-right: 8px; }
.cs-section { padding: 2.25rem 1rem; }
.cs-section h2 { margin-bottom: 1.1rem; }
.cs-section p, .cs-section li { font-size: 1.12rem; line-height: 1.75; }
.cs-short { background: var(--surface-warm); border: 1px solid var(--border-warm); border-radius: 14px; padding: 1.75rem 2rem; }
.cs-short .label { text-transform: uppercase; letter-spacing: 2px; font-size: .75rem; color: var(--accent-text); font-weight: 700; }
.cs-short p { font-size: 1.15rem; line-height: 1.65; }

.cs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.cs-stat { border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem 1.1rem; box-shadow: var(--shadow-soft); background: var(--surface); }
.cs-stat .num {
  display: block;
  font-weight: 700; font-size: 2.4rem; line-height: 1;
  background: var(--accent-grad-text);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.cs-stat .num .unit { font-size: 1.2rem; }
.cs-stat .cap { display: block; margin-top: .6rem; font-size: .95rem; color: var(--text-muted); line-height: 1.4; }

.cs-step { display: flex; gap: 1.1rem; margin-bottom: 2rem; }
.cs-step .n {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1.1rem;
  background: var(--accent-grad);
}
.cs-step .body { min-width: 0; flex: 1; }
.cs-step h3 { font-size: 1.25rem; font-weight: 700; margin: .35rem 0 .5rem; }
.cs-step .body p { margin-bottom: .6rem; }
.cs-step blockquote {
  border-left: 4px solid var(--accent);
  padding: .4rem 0 .4rem 1.2rem;
  color: var(--text-muted);
  font-style: italic;
  margin: 1.4rem 0;
}

.cs-kii { padding-left: 0; }
.cs-kii li {
  list-style: none;
  background: var(--good-bg);
  border-left: 3px solid var(--good-line);
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 1.05rem;
  line-height: 1.55;
}
.cs-kii.issue li { background: var(--issue-bg); border-left-color: var(--issue-line); }

.cs-lenses, .cs-themes, .cs-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cs-lens { border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem; text-align: center; box-shadow: var(--shadow-soft); }
.cs-lens h3 { font-size: 1.05rem; font-weight: 700; margin: .2rem 0 .4rem; }
.cs-lens p { font-size: .92rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.cs-theme { border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem; }
.cs-theme .h { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; display: inline-block; padding: 4px 10px; border-radius: 20px; margin-bottom: .7rem; }
.cs-theme.visibility .h { background: var(--vis-bg); color: var(--vis); }
.cs-theme.insight .h { background: var(--ins-bg); color: var(--ins); }
.cs-theme.action .h { background: var(--tag-after-bg); color: var(--tag-after); }
.cs-theme blockquote { font-size: .95rem; line-height: 1.45; color: var(--text); margin: 0 0 .6rem; padding-left: .7rem; border-left: 2px solid var(--border); }

.cs-personas { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.cs-persona-c { border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; box-shadow: var(--shadow-soft); }
.cs-persona-c.method { background: var(--surface-warm); border-color: var(--border-warm); }
.cs-persona-c .name { font-weight: 700; font-size: 1.2rem; }
.cs-persona-c .tag { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-text); font-weight: 700; }
.cs-persona-c blockquote { font-size: .98rem; line-height: 1.5; margin: .7rem 0 .6rem; }
.cs-persona-c .goal { font-size: .92rem; color: var(--text-muted); margin: 0; }

.cs-tt { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.cs-tt .col { border-radius: 14px; padding: 1.4rem; }
.cs-tt .today { background: var(--bad-bg); border: 1px solid var(--bad-line); }
.cs-tt .tomorrow { background: var(--good-bg); border: 1px solid var(--good-line); }
.cs-tt .lbl { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .75rem; margin-bottom: .5rem; }
.cs-tt .today .lbl { color: var(--bad); }
.cs-tt .tomorrow .lbl { color: var(--good); }
.cs-tt p { font-size: 1rem; line-height: 1.55; margin: 0; }

.cs-quote { border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; box-shadow: var(--shadow-soft); }
.cs-quote img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.cs-quote blockquote { font-size: 1rem; line-height: 1.55; margin: .9rem 0 .6rem; }
.cs-quote .who { font-size: .85rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

.cs-persona { display: flex; gap: 1.5rem; align-items: flex-start; border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; box-shadow: var(--shadow-soft); }
.cs-persona img { width: 120px; border-radius: 12px; }
.cs-persona h4 { font-weight: 700; margin-bottom: .2rem; }
.cs-persona .role { color: var(--text-muted); font-size: .9rem; margin-bottom: .8rem; }
.cs-persona .grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.5rem; font-size: .95rem; }

.cs-tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cs-tier { border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem; box-shadow: var(--shadow-soft); }
.cs-tier .lvl { font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .75rem; color: var(--accent-text); }
.cs-tier h4 { font-weight: 700; font-size: 1.2rem; margin: .3rem 0 .5rem; }
.cs-tier p { font-size: 1rem; line-height: 1.55; margin: 0; color: var(--text-muted); }

.cs-figure { margin: 1.5rem 0; }
.cs-figure img, .cs-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.cs-figure.half img { width: 50%; }
figcaption, .cs-figure figcaption { font-size: .9rem; color: var(--text-muted); margin-top: .6rem; }
.cs-imggrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cs-imggrid figure { margin: 0; }
.cs-figure .row { margin-left: 0; margin-right: 0; flex-wrap: nowrap; gap: 12px; }
.cs-figure .row > [class*='col'] { padding-left: 0; padding-right: 0; flex: 1 1 0; max-width: none; }
.cs-imggrid img { width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.cs-imggrid img.mh-140 { max-height: 140px; width: auto; }
.cs-imggrid img.mh-200 { max-height: 200px; width: auto; }
.cs-tag { display: inline-block; font-size: .75rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 700; padding: 4px 10px; border-radius: 20px; margin-bottom: .6rem; }
.cs-tag.before { background: var(--tag-before-bg); color: var(--tag-before); }
.cs-tag.after { background: var(--tag-after-bg); color: var(--tag-after); }

.cs-cta { background: var(--cta-bg); color: var(--cta-text); padding: 56px 0 44px; }
.cs-cta h2 { color: #fff; }
.cs-cta p { color: var(--cta-text); }
.cs-cta .kicker { display: inline-block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cta-kicker); font-weight: 700; margin-bottom: 10px; }

/* 10. UGLI case study (scoped) ------------------------------------------- */
.ugli { line-height: 1.65; }
.ugli .wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.ugli .hero { padding: 48px 0 44px; }
.ugli .hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.ugli .hero h1 { font-size: clamp(33px, 4.8vw, 52px); max-width: 15ch; margin: 0 0 22px; line-height: 1.12; }
.ugli .hero-phone { display: flex; justify-content: center; }
.ugli .hero-phone img { width: 100%; max-width: 280px; border-radius: 22px; }
.ugli .shortver { background: var(--teal-soft); border: 1px solid var(--teal-line); border-radius: 16px; padding: 24px 28px; margin-top: 34px; }
.ugli .shortver .lbl { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 8px; }
.ugli .shortver p { margin: 0; font-size: 18px; color: var(--text); }
.ugli section { padding: 46px 0; border-top: 1px solid var(--border); }
.ugli .kicker { display: inline-block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); font-weight: 700; margin-bottom: 10px; }
.ugli h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 18px; max-width: 26ch; line-height: 1.12; }
.ugli h3 { font-size: 20px; margin: 0 0 8px; }
.ugli p { margin: 0 0 18px; color: var(--text-body); }
.ugli .lead { font-size: 20px; color: var(--text); }
.ugli .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ugli .u-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.ugli .u-card.problem { border-left: 4px solid var(--coral); }
.ugli .u-card.goal { border-left: 4px solid var(--teal); }
.ugli .u-card .tag { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; margin-bottom: 8px; display: block; }
.ugli .u-card p { margin: 0; font-size: 16px; }
.ugli .chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.ugli .chips li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 15px; font-size: 15px; color: var(--text-body); }
.ugli .reslist { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 11px; }
.ugli .reslist li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; font-size: 16px; color: var(--text-body); display: flex; gap: 12px; align-items: flex-start; }
.ugli .reslist li::before { content: ""; flex: 0 0 9px; height: 9px; border-radius: 50%; background: var(--amber); margin-top: 8px; }
.ugli .empathy { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.ugli .quad { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; border-top: 4px solid var(--teal); }
.ugli .quad.says { border-top-color: var(--teal); color: var(--teal); }
.ugli .quad.think { border-top-color: var(--steel); color: var(--steel); }
.ugli .quad.feel { border-top-color: var(--coral); color: var(--coral); }
.ugli .quad.does { border-top-color: var(--amber); color: var(--amber); }
.ugli .quad h3 { font-size: 16px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.ugli .quad ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ugli .quad li { font-size: 15.5px; color: var(--text-body); padding-left: 16px; position: relative; }
.ugli .quad li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .45; }
.ugli .persona-list { display: grid; gap: 18px; margin-top: 8px; }
.ugli .persona { display: grid; grid-template-columns: 150px 1fr; gap: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; align-items: start; }
.ugli .persona .pic { background: linear-gradient(160deg, #fff, #fbf3ef); border-radius: 12px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; height: 200px; }
.ugli .persona .pic img { height: 100%; width: auto; object-fit: contain; }
.ugli .persona .pname { font-size: 22px; font-weight: 700; margin: 0 0 4px; color: var(--text); letter-spacing: -0.02em; }
.ugli .persona .pmeta { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.ugli .persona .prow { font-size: 15.5px; margin: 0 0 10px; }
.ugli .persona .prow b { color: var(--text); }
.ugli .soln { display: grid; grid-template-columns: .85fr 1.15fr; gap: 36px; align-items: center; }
.ugli .soln .phone { display: flex; justify-content: center; }
.ugli .soln .phone img { width: 100%; max-width: 260px; border-radius: 20px; }
.ugli .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 0; padding: 0; list-style: none; }
.ugli .feat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.ugli .feat h3 { font-size: 15px; font-weight: 700; color: var(--teal); margin-bottom: 6px; letter-spacing: 0; }
.ugli .feat p { margin: 0; font-size: 15px; }

/* 11. Advanced search (scoped) ------------------------------------------- */
.search-cs .hero-section { background: var(--search-grad); color: #fff; padding: 100px 0 80px; }
.search-cs .hero-section h1 { font-size: 3.5rem; }
.search-cs .hero-section .lead { opacity: .92; }
.search-cs .hero-meta { display: flex; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255, 255, 255, .3); margin: 1.5rem 0 0; padding: 1.5rem 0 0; list-style: none; font-size: .9rem; }
.search-cs .tag { display: inline-block; background: rgba(255, 255, 255, .2); color: #fff; border: 1px solid rgba(255, 255, 255, .45); padding: 6px 16px; font-size: .8rem; font-weight: 700; text-transform: uppercase; border-radius: 4px; }
.search-cs .section-title { font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--plum); margin-bottom: 1.5rem; font-size: 1.25rem; }
.search-cs .bg-light-accent { background: var(--surface-warm); border-left: 5px solid var(--plum); }
.search-cs .responsibility-card { background: transparent; border-bottom: 1px solid var(--border); padding: 20px 0; }
.search-cs .table-custom { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-soft); }
.search-cs .table-custom th { border: none; padding: 15px; font-size: .85rem; text-transform: uppercase; }
.search-cs .table-custom th, .search-cs .table-custom td { background: transparent; color: inherit; }
.search-cs .table-custom td { padding: 15px; vertical-align: middle; border-top: 1px solid var(--border); }
.search-cs .panel-card { border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-soft); padding: 1.5rem; height: 100%; }
.search-cs .takeaway-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 25px; height: 100%; transition: transform .2s; }
.search-cs .takeaway-card:hover { transform: translateY(-5px); border-color: var(--plum); }
.search-cs .impact-section { background: var(--surface-2); padding: 80px 0; border-top: 1px solid var(--border); }
.search-cs .metric-box { border-top: 5px solid var(--slate); background: var(--surface); padding: 40px 20px; box-shadow: var(--shadow-soft); height: 100%; }
.search-cs .metric-number { font-size: 3.5rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 10px; }
.search-cs h3.h6 { font-size: 1rem; }
.search-cs .cs-img { max-height: 500px; width: auto; border: none; box-shadow: none; }

/* 12. Brand pages --------------------------------------------------------- */
.brand-page { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: 70vh; }
.brand-side { border-right: 1px solid var(--border); padding: 40px 30px; }
.brand-label { font-size: .75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin: 25px 0 10px; }
.brand-side dd { margin: 0 0 12px; color: var(--text-body); }
.brand-tag { display: inline-block; background: var(--surface-2); color: var(--text-body); padding: 4px 10px; border-radius: 4px; margin: 0 5px 5px 0; }
.brand-swatch { display: inline-block; width: 24px; height: 24px; border-radius: 4px; margin-right: 6px; border: 1px solid var(--border); vertical-align: middle; }
.brand-main { padding: 40px 60px; }
.brand-main h1 { font-size: 2.2rem; letter-spacing: -0.03em; }
.brand-card { border: 1px solid var(--border); border-radius: 12px; padding: 40px; margin: 30px 0 40px; background: var(--surface); }
.logo-box { border: 1px dashed var(--border); border-radius: 8px; min-height: 200px; display: flex; align-items: center; justify-content: center; background: var(--logo-panel); padding: 30px; }
.logo-box img { max-width: 80%; max-height: 120px; }
.brand-lede { font-size: 1.15rem; }
.brand-copy h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 15px; }
.brand-copy p, .brand-grid p { color: var(--text-body); line-height: 1.6; }
.brand-grid h3 { font-size: 1rem; font-weight: 700; }
.brand-grid p { font-size: .95rem; }
.breadcrumb { background: transparent; padding: 0; margin-bottom: 20px; }
.breadcrumb-item.active { color: var(--text-muted); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* 13. Motion -------------------------------------------------------------- */
/* Everything below only runs when JS added .motion to <html> (it doesn't when
   the visitor prefers reduced motion), so content is never hidden without JS. */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); }

/* Page enter / leave */
.motion main { animation: page-in .6s var(--ease-out) backwards; }
.motion.is-leaving main, .motion.is-leaving .site-footer-anim { opacity: 0; translate: 0 -8px; transition: opacity .22s ease, translate .22s ease; }

/* Scroll-reveal: fades and lifts content in as it enters the screen.
   Uses the separate `translate` property so hover `transform`s still work. */
.motion .reveal { opacity: 0; translate: 0 18px; }
.motion .reveal.in {
  opacity: 1; translate: 0 0;
  transition: opacity .7s var(--ease-out), translate .7s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 80ms);
}

/* Headline: words rise in one after another, then the highlighter draws on */
.motion .split .w { display: inline-block; opacity: 0; translate: 0 .5em; animation: word-in .7s var(--ease-out) forwards; animation-delay: calc(120ms + var(--i) * 45ms); }
.motion .hl-mark::before { transform-origin: left center; animation: hl-draw .6s var(--ease-out) both; animation-delay: .9s; }

/* Hero illustration floats gently */
.motion .cp-pp { animation: float 6s ease-in-out infinite; }

/* Buttons lift slightly on hover */
.btn.btn-primary { transition: background .4s ease, transform .25s var(--ease-out), box-shadow .25s ease; }
.btn.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -10px rgba(217, 21, 74, .6); }
.btn.btn-primary:active { transform: translateY(0); }

/* Reading progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1040;
  background: var(--brand-grad);
  transform-origin: left center; transform: scaleX(0);
  pointer-events: none;
}

/* Header turns frosted once you scroll */
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); }

/* Custom cursor ring (mouse/trackpad only) */
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 10001;
  width: 32px; height: 32px; margin: -16px 0 0 -16px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  pointer-events: none; opacity: 0;
  transition: width .25s var(--ease-out), height .25s var(--ease-out), margin .25s var(--ease-out),
              opacity .25s ease, background-color .25s ease, border-color .25s ease;
}
.cursor-ring.is-visible { opacity: .75; }
.cursor-ring.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: transparent; }
.cursor-ring.is-down { width: 24px; height: 24px; margin: -12px 0 0 -12px; }

/* Stat numbers get a soft pop when they finish counting */
.motion .count-done { animation: pop .4s var(--ease-out); }

@keyframes page-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes word-in { to { opacity: 1; translate: 0 0; } }
@keyframes hl-draw { from { transform: rotate(-1deg) scaleX(0); } to { transform: rotate(-1deg) scaleX(1); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes pop { 50% { transform: scale(1.06); } }
@keyframes gradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(2deg); } }
@keyframes loadBar { 0% { left: -100%; width: 0%; } 50% { left: 0; width: 100%; } 100% { left: 100%; width: 100%; } }
@keyframes rise {
  0% { transform: translateY(0) scaleX(1); opacity: 0; }
  25% { opacity: .5; }
  50% { transform: translateY(-20px) scaleX(1.2); opacity: .3; }
  100% { transform: translateY(-60px) scaleX(1.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .split .w { opacity: 1 !important; translate: none !important; }
  .cursor-ring { display: none; }
  .m-peek .mascot { transform: translateY(var(--peek-y, 12%)) !important; }
  .jr-look { transition: none !important; filter: none !important; }
  .peeker { display: none; }
}

/* 14. Responsive ---------------------------------------------------------- */
@media (min-width: 1920px) { .hero-sec { min-height: 60vh; } }

@media (max-width: 991.98px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .person-container { display: none !important; }
  .navbar-collapse .navbar-nav { padding: .5rem 0 1rem; }
  .ugli .hero-grid, .ugli .soln { grid-template-columns: 1fr; }
  .ugli .hero-phone { order: -1; }
  .ugli .hero-phone img, .ugli .soln .phone img { max-width: 240px; }
  .ugli .features { grid-template-columns: 1fr 1fr; }
  .brand-main { padding: 32px; }
}

@media (max-width: 767.98px) {
  h1 { font-size: 2.4rem; }
  .ap-head h1 { font-size: 1.6rem; line-height: 40px; }
  .hero-sec { min-height: auto; padding: 1rem 0 2rem; }
  .cp-pp { display: none !important; }
  .card .bd-placeholder-img img, [data-theme="dark"] .card .bd-placeholder-img img { filter: none; }
  .parallax { min-height: 260px; background-attachment: scroll; background-position: center bottom; }
  .pf-hero h1 { font-size: 2.2rem; }
  .pf-grid, .pf-logos { grid-template-columns: 1fr; }
  .cs-hero h1 { font-size: 2.1rem; }
  .cs-short { padding: 1.25rem; }
  .cs-stats { grid-template-columns: repeat(2, 1fr); }
  .cs-lenses, .cs-themes, .cs-quotes, .cs-personas, .cs-tt, .cs-tiers, .cs-imggrid { grid-template-columns: 1fr; }
  .cs-figure.half img { width: 100%; }
  .cs-step { gap: .8rem; }
  .cs-step .n { width: 34px; height: 34px; font-size: .95rem; }
  .ugli .grid-2, .ugli .empathy, .ugli .features { grid-template-columns: 1fr; }
  .ugli .persona { grid-template-columns: 1fr; }
  .ugli .persona .pic { height: 180px; max-width: 160px; }
  .search-cs .hero-section { padding: 60px 0 50px; }
  .search-cs .hero-section h1 { font-size: 2.3rem; }
  .brand-page { grid-template-columns: 1fr; }
  .brand-side { border-right: none; border-bottom: 1px solid var(--border); padding: 24px 16px; }
  .brand-side dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .brand-main { padding: 24px 16px; }
  .brand-card { padding: 20px; }
  .ap-footer-link { gap: 1.5rem; }
}

@media (max-width: 575.98px) {
  .cs-persona { flex-direction: column; }
  .cs-persona img { width: 90px; }
  .cs-persona .grid { grid-template-columns: 1fr; }
  .cs-section { padding: 1.75rem .25rem; }
  .cs-stat .num { font-size: 2rem; }
}
