/* =========================================================
   Design tokens  (source: Figma file role44atQXSZe9pzSN0KEm, frame 7:399)
   ========================================================= */
:root {
   --ink: #0e2f2c;
   /* headings */
   --muted: #55665f;
   /* secondary text */
   --violet: #291EA2;
   /* brand */
   --lavender: #EBEAF5;
   /* alt section bg */
   --cream: #fcf9f2;
   --sand: #FBF8F3;
   --sand-2: #e4dcc8;
   --line: #b9ad9f;
   /* card / nav borders */
   --line-soft: #e2d9c3;
   /* story card borders */
   --gold: #f0b94a;
   --gold-deep: #46359E;
   --green: #1f7a62;
   --dark: #18181b;
   --grey: #6b6b76;
   --pad-x: clamp(20px, 6.25vw, 120px);
   /* 120px at 1920 */
   --pad-y: clamp(64px, 6.25vw, 120px);
   --nav-h: 80px;
   --ease-out: cubic-bezier(0, 0, .58, 1);
   /* Figma "ease out" */
   --ease-io: cubic-bezier(.5, 0, .5, 1);
   --font: 'Darker Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;

   /* Dotted grid pattern */
   --dot-color: rgba(14, 47, 44, 0.12);
   --dot-size: 26px;
   --dot-pattern: radial-gradient(var(--dot-color) 1.25px, transparent 1.25px);
   --dot-pattern-light: radial-gradient(rgba(255, 255, 255, 0.16) 1.25px, transparent 1.25px);
}

* {
   box-sizing: border-box;
   margin: 0
}

html {
   scroll-behavior: smooth;
   overflow-x: clip;
   -webkit-text-size-adjust: 100%
}

body {
   font-family: var(--font);
   font-weight: 500;
   color: var(--dark);
   background-color: #fffef1;
   background-image: var(--dot-pattern);
   background-size: var(--dot-size) var(--dot-size);
   background-attachment: fixed;
   overflow-x: clip;
   line-height: 1.15
}

img,
svg {
   display: block;
   max-width: 100%
}

a {
   color: inherit;
   text-decoration: none
}

button {
   font: inherit;
   color: inherit;
   background: none;
   border: 0;
   cursor: pointer
}

section[id] {
   scroll-margin-top: calc(var(--nav-h) - 1px)
}

:focus-visible {
   outline: 3px solid var(--violet);
   outline-offset: 3px;
   border-radius: 6px
}

/* ---------- Shared pieces ---------- */
.sec {
   padding: var(--pad-y) var(--pad-x)
}

.sec-head {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 16px;
   text-align: center;
   max-width: 900px;
   margin: 0 auto;
}

.sec-tag {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-weight: 700;
   font-size: clamp(13px, 1vw, 15px);
   letter-spacing: .12em;
   text-transform: uppercase;
   color: var(--violet);
   background: rgba(41, 30, 162, 0.08);
   border: 1px solid rgba(41, 30, 162, 0.2);
   padding: 6px 20px;
   border-radius: 999px;
}

.sec-head h2 {
   font-weight: 800;
   color: var(--ink);
   font-size: clamp(34px, 3.6vw, 62px);
   line-height: 1.15;
   max-width: 860px;
}

.sec-head h2.xl {
   font-size: clamp(40px, 4.4vw, 76px);
   line-height: 1.15;
}

.sec-head .sec-desc,
.sec-desc {
   font-weight: 500;
   color: var(--muted);
   font-size: clamp(18px, 1.35vw, 24px);
   line-height: 1.45;
   letter-spacing: normal;
   text-transform: none;
   max-width: 780px;
}

.cta .sec-tag {
   margin-bottom: 6px;
}

.cta .sec-desc {
   margin-top: 10px;
   margin-bottom: 8px;
   text-align: center;
}

.story-right-head .sec-desc {
   max-width: 720px;
   color: var(--muted);
   font-size: clamp(18px, 1.35vw, 24px);
   line-height: 1.45;
   font-weight: 500;
}

.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   border-radius: 999px;
   font-weight: 600;
   font-size: 20px;
   line-height: 26px;
   padding: 10px 28px;
   transition: transform .25s var(--ease-out), background-color .25s, color .25s, box-shadow .25s;
   white-space: nowrap
}

.btn-primary {
   background: var(--violet);
   color: #fff
}

.btn-primary:hover {
   transform: translateY(-2px);
   box-shadow: 0 10px 24px -10px rgba(131, 121, 184, .9)
}

.btn-ghost {
   border: 2px solid var(--violet);
   color: var(--dark)
}

.btn-ghost:hover {
   background: var(--violet);
   color: #fff;
   transform: translateY(-2px)
}

/* =========================================================
   Floating Download Resume Button
   ========================================================= */
@keyframes floatIn {
   from {
      opacity: 0;
      transform: translateY(20px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.floating-resume {
   position: fixed;
   bottom: 28px;
   right: 28px;
   z-index: 990;
   background-color: #ffffff;
   box-shadow: 0 8px 24px rgba(14, 47, 44, 0.14), 0 2px 8px rgba(14, 47, 44, 0.08);
   gap: 10px;
   text-decoration: none;
   animation: floatIn .6s var(--ease-out) 1s backwards;
   transition: transform .25s var(--ease-out), background-color .25s, color .25s, box-shadow .25s;
}

.floating-resume:hover {
   background-color: var(--violet);
   color: #ffffff;
   transform: translateY(-3px);
   box-shadow: 0 14px 28px rgba(41, 30, 162, 0.35), 0 4px 12px rgba(41, 30, 162, 0.2);
}

.floating-resume:hover svg {
   stroke: #ffffff;
}

.floating-resume:active {
   transform: translateY(-1px);
}

.floating-resume svg {
   flex-shrink: 0;
   stroke: currentColor;
   transition: stroke .25s;
}

@media (max-width: 600px) {
   .floating-resume {
      bottom: 18px;
      right: 18px;
      padding: 8px 20px;
      font-size: 17px;
      line-height: 22px;
      gap: 8px;
   }
}

@media (prefers-reduced-motion: reduce) {
   .floating-resume {
      animation: none !important;
   }
}

/* =========================================================
   Motion (values lifted from Figma motion context)
   ========================================================= */
/* Scroll / load reveal:  data-r  + --x --y --s --d --t */
.js [data-r] {
   opacity: 0;
   transform: translate(var(--x, 0), var(--y, 0)) scale(var(--s, 1));
   transition: opacity var(--t, .7s) var(--ease-out) var(--d, 0s), transform var(--t, .7s) var(--ease-out) var(--d, 0s);
   will-change: opacity, transform
}

.js [data-r].in {
   opacity: 1;
   transform: none
}

/* Word & Character text stagger (Figma TextStagger, grouping WORD / CHAR, left→right) */
.w {
   display: inline-block;
   white-space: pre;
}

.char-word {
   display: inline-block;
   white-space: nowrap;
}

.w-space {
   display: inline-block;
   width: 0.26em;
}

.char-mask {
   display: inline-block;
   overflow: hidden;
   vertical-align: bottom;
   line-height: 1.12;
   padding-bottom: 0.08em;
}

.js [data-split]:not(.split-ready) {
   visibility: hidden;
}

.js [data-split] .w {
   opacity: 0;
   transform: translateY(var(--dist, 30px));
   filter: blur(var(--blur, 8px));
   transition: opacity var(--gdur) var(--ease-out) calc(var(--off, 0s) + var(--i)*var(--step)),
      transform var(--gdur) var(--ease-out) calc(var(--off, 0s) + var(--i)*var(--step)),
      filter var(--gdur) var(--ease-out) calc(var(--off, 0s) + var(--i)*var(--step));
}

.js [data-split].in .w {
   opacity: 1;
   transform: none;
   filter: none;
}

.js [data-split] .c {
   display: inline-block;
   opacity: 0;
   transform: translateY(var(--dist, 100%));
   filter: blur(var(--blur, 8px));
   transition: opacity var(--gdur, .75s) var(--ease-out) calc(var(--off, 0s) + var(--i) * var(--step, .04s)),
      transform var(--gdur, .75s) var(--ease-out) calc(var(--off, 0s) + var(--i) * var(--step, .04s)),
      filter var(--gdur, .75s) var(--ease-out) calc(var(--off, 0s) + var(--i) * var(--step, .04s));
   will-change: transform, opacity, filter;
}

.js [data-split].in .c {
   opacity: 1;
   transform: none;
   filter: none;
}

/* Glows drift slowly (Figma: y 0 → -70 over the whole timeline) */
@keyframes drift {
   from {
      transform: translateY(0)
   }

   to {
      transform: translateY(-70px)
   }
}

.glow {
   position: absolute;
   border-radius: 50%;
   pointer-events: none;
   animation: drift 29s linear infinite alternate
}

/* Marquee */
@keyframes marquee {
   to {
      transform: translateX(-50%)
   }
}

@media (prefers-reduced-motion:reduce) {
   html {
      scroll-behavior: auto
   }

   .js [data-r],
   .js [data-split] .w,
   .js [data-split] .c {
      opacity: 1 !important;
      transform: none !important;
      filter: none !important;
      transition: none !important
   }

   .js [data-split]:not(.split-ready) {
      visibility: visible
   }

   .glow,
   .marquee-track {
      animation: none !important
   }

   .nav {
      transition: none !important
   }
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   width: 100%;
   z-index: 50;
   height: var(--nav-h);
   background: transparent;
   border-bottom: 1px solid transparent;
   display: grid;
   grid-template-columns: 1fr auto 1fr;
   align-items: center;
   padding: 0 var(--pad-x);
   gap: 24px;
   transition: background-color .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out), backdrop-filter .3s var(--ease-out)
}

.nav.scrolled {
   background: rgba(255, 254, 241, .82);
   backdrop-filter: blur(16px);
   -webkit-backdrop-filter: blur(16px);
   border-bottom: 1px solid var(--line-soft);
   box-shadow: 0 4px 24px -12px rgba(14, 47, 44, .12)
}

.brand {
   font-weight: 700;
   font-size: 29px;
   color: var(--ink);
   justify-self: start;
   letter-spacing: -.2px
}

.nav-links {
   display: flex;
   gap: 44px;
   list-style: none;
   padding: 0
}

.nav-links a {
   font-weight: 600;
   font-size: 24px;
   color: var(--muted);
   transition: color .2s;
   position: relative;
   padding: 4px 0
}

.nav-links a::after {
   content: "";
   position: absolute;
   left: 0;
   right: 0;
   bottom: -2px;
   height: 2px;
   background: var(--violet);
   transform: scaleX(0);
   transform-origin: left;
   transition: transform .3s var(--ease-out)
}

.nav-links a:hover,
.nav-links a.active {
   color: var(--ink)
}

.nav-links a.active {
   font-weight: 700
}

.nav-links a:hover::after,
.nav-links a.active::after {
   transform: scaleX(1)
}

.nav-actions {
   display: flex;
   align-items: center;
   justify-self: end;
   gap: 12px;
}

.nav-github {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   border-radius: 999px;
   font-weight: 600;
   font-size: 19px;
   line-height: 24px;
   padding: 8px 18px;
   border: 1.5px solid var(--ink);
   color: var(--ink);
   background: transparent;
   transition: transform .25s var(--ease-out), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
   white-space: nowrap;
   text-decoration: none;
}

.nav-github svg {
   width: 19px;
   height: 19px;
   fill: currentColor;
   transition: transform .25s var(--ease-out);
}

.nav-github:hover {
   background: var(--ink);
   color: #fff;
   border-color: var(--ink);
   transform: translateY(-2px);
   box-shadow: 0 8px 20px -8px rgba(14, 47, 44, .35);
}

.nav-github:hover svg {
   transform: scale(1.1);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
   position: relative;
   overflow: hidden;
   background-color: var(--cream);
   background-image: var(--dot-pattern);
   background-size: var(--dot-size) var(--dot-size);
   background-attachment: fixed;
   padding: calc(110px + var(--nav-h)) var(--pad-x) 110px;
   display: flex;
   align-items: center;
   gap: clamp(32px, 4.7vw, 90px)
}

.portrait {
   position: relative;
   flex: 0 0 clamp(260px, 23.9vw, 460px);
   aspect-ratio: 460/613;
   overflow: hidden;
   background: linear-gradient(160deg, #d9d2f0, #8379b8);
   box-shadow: 0 20px 48px -20px rgba(14, 47, 44, .18);
}

.portrait img {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center 12%;
   transition: transform .5s var(--ease-out);
}

.portrait:hover img {
   transform: scale(1.03);
}

.portrait .ph {
   position: absolute;
   inset: 0;
   display: grid;
   place-items: center;
   font-weight: 800;
   font-size: clamp(80px, 9vw, 170px);
   color: rgba(255, 255, 255, .85);
   letter-spacing: -2px
}

.hero-text {
   position: relative;
   flex: 1 1 0;
   min-width: 0;
   max-width: 1130px;
   display: flex;
   flex-direction: column;
   gap: 26px
}

.greeting {
   font-weight: 700;
   font-size: clamp(28px, 2.3vw, 44px);
   color: var(--violet)
}

.hero h1 {
   font-weight: 800;
   font-size: clamp(46px, 5.83vw, 112px);
   line-height: .93;
   color: var(--ink);
   letter-spacing: -.5px
}

.hero h1 em {
   font-style: normal;
   color: var(--violet)
}

.intro {
   font-weight: 500;
   font-size: clamp(20px, 1.46vw, 28px);
   line-height: 1.21;
   color: var(--muted);
   max-width: 1130px
}

.location {
   font-weight: 600;
   font-size: clamp(17px, 1.15vw, 22px);
   color: var(--ink)
}

.hero-buttons {
   display: flex;
   flex-wrap: wrap;
   gap: 16px;
   margin-top: 4px
}

/* ---------- Marquee ---------- */
.marquee {
   background: var(--violet);
   overflow: hidden;
   padding: 26px 0
}

.marquee-track {
   display: flex;
   width: max-content;
   animation: marquee 32s linear infinite
}

.marquee-group {
   display: flex;
   align-items: center;
   gap: 44px;
   padding-right: 44px;
   flex-shrink: 0
}

.marquee-group span {
   font-weight: 700;
   font-size: 30px;
   letter-spacing: .06em;
   color: #fff;
   white-space: nowrap;
   line-height: 41px
}

.marquee-group i {
   font-style: normal;
   font-weight: 700;
   font-size: 30px;
   color: var(--gold);
   line-height: 41px
}

/* =========================================================
   Selected Work — sticky stacking cards
   ========================================================= */
.work {
   background-color: #fff;
   background-image: var(--dot-pattern);
   background-size: var(--dot-size) var(--dot-size);
   background-attachment: fixed;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 64px
}

.stack {
   width: 100%;
   max-width: 1200px;
   display: flex;
   flex-direction: column;
   gap: 64px;
   padding-bottom: 12px
}

.stack-item {
   position: sticky;
   top: calc(var(--nav-h) + 24px + var(--i)*28px)
}

.card {
   transform-origin: 50% 0;
   will-change: transform;
   background: var(--sand);
   border: 1px solid var(--line);
   border-radius: 24px;
   padding: 48px;
   display: flex;
   align-items: center;
   gap: 64px;
   box-shadow: 0 24px 50px -34px rgba(14, 47, 44, .35)
}

.card .col {
   flex: 1 1 0;
   min-width: 0;
   display: flex;
   flex-direction: column;
   gap: 20px;
   align-items: flex-start
}

.eyebrow {
   font-weight: 600;
   font-size: 18px;
   letter-spacing: .08em;
   color: var(--grey);
   text-transform: uppercase;
   line-height: 1.33
}

.card h3 {
   font-weight: 700;
   font-size: clamp(36px, 2.7vw, 52px);
   line-height: 1.37;
   color: var(--dark)
}

.card .desc {
   font-weight: 500;
   font-size: 24px;
   line-height: 30px;
   color: var(--grey)
}

.bullets {
   display: flex;
   flex-direction: column;
   gap: 12px;
   list-style: none;
   padding: 0
}

.bullets li {
   display: flex;
   align-items: center;
   gap: 14px;
   font-weight: 500;
   font-size: 22px;
   color: var(--dark);
   line-height: 1.36
}

.bullets li::before {
   content: "";
   flex: 0 0 22px;
   height: 22px;
   border-radius: 6px;
   background: #e4e4e7;
   border: 1px solid var(--grey)
}

.tags {
   display: flex;
   flex-wrap: wrap;
   gap: 12px;
   list-style: none;
   padding: 0
}

.tags li {
   background: #fff;
   border: 1px solid #d4d4d8;
   border-radius: 999px;
   padding: 6px 18px;
   font-weight: 600;
   font-size: 18px;
   line-height: 24px;
   color: var(--dark)
}

.case-link {
   font-weight: 700;
   font-size: 22px;
   color: var(--dark);
   display: inline-flex;
   gap: 8px;
   align-items: center;
   position: relative
}

.case-link::after {
   content: "→";
   transition: transform .25s var(--ease-out)
}

.case-link:hover::after {
   transform: translateX(6px)
}

.shot {
   flex: 0 0 min(560px, 46%);
   aspect-ratio: 560/400;
   background: var(--sand-2);
   border: 1px solid #d3c8ae;
   border-radius: 16px;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 6px;
   text-align: center;
   padding: 16px
}

.shot b {
   font-weight: 700;
   font-size: 16px;
   letter-spacing: .12em;
   color: var(--grey)
}

.shot span {
   font-weight: 500;
   font-size: 20px;
   color: var(--grey)
}

/* =========================================================
   Services / Stats
   ========================================================= */
.services {
   background-color: var(--lavender);
   background-image: var(--dot-pattern);
   background-size: var(--dot-size) var(--dot-size);
   background-attachment: fixed;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 64px
}

.grid-2 {
   width: 100%;
   max-width: 1200px;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 24px
}

.s-card {
   background: #fff;
   border: 1px solid var(--line);
   border-radius: 20px;
   padding: 40px;
   display: flex;
   flex-direction: column;
   gap: 16px;
   transition: transform .35s var(--ease-out), box-shadow .35s
}

.s-card:hover {
   box-shadow: 0 22px 40px -28px rgba(14, 47, 44, .45)
}

.s-icon {
   width: 56px;
   height: 56px;
   border-radius: 14px;
   background: var(--lavender);
   border: 1px solid var(--grey);
   display: grid;
   place-items: center
}

.s-icon svg {
   width: 35px;
   height: 35px
}

.s-icon path {
   stroke: var(--ink)
}

.s-card h3 {
   font-weight: 700;
   font-size: 34px;
   line-height: 1.35;
   color: var(--dark)
}

.s-card p {
   font-weight: 500;
   font-size: 22px;
   line-height: 26px;
   color: var(--grey)
}

.stats {
   background-color: #fff;
   background-image: var(--dot-pattern);
   background-size: var(--dot-size) var(--dot-size);
   background-attachment: fixed;
   padding: var(--pad-y) var(--pad-x);
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 64px;
}

.stats-row {
   display: flex;
   justify-content: center;
   flex-wrap: wrap;
   gap: 40px clamp(40px, 6.25vw, 120px)
}

.stat {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 6px;
   text-align: center;
}

.stat b {
   font-weight: 800;
   font-size: clamp(56px, 5vw, 96px);
   line-height: 1.35;
   color: var(--dark);
   font-variant-numeric: tabular-nums;
   display: inline-block;
}

.stat span {
   font-weight: 500;
   font-size: 22px;
   color: var(--grey)
}

/* =========================================================
   My Story
   ========================================================= */
.story {
   position: relative;
   background-color: var(--cream);
   background-image: var(--dot-pattern);
   background-size: var(--dot-size) var(--dot-size);
   background-attachment: fixed;
   border: 1px solid var(--line-soft);
   border-radius: 28px;
   padding: 80px 40px 16px
}

.story-head,
.story-row {
   display: grid;
   grid-template-columns: 1fr 1fr
}

.story-head {
   align-items: start
}

.story-left-head {
   padding: 0 40px 0 80px
}

.pill {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   background: var(--gold);
   border-radius: 999px;
   padding: 10px 22px;
   font-weight: 700;
   font-size: 20px;
   letter-spacing: .08em;
   color: var(--ink)
}

.pill i {
   width: 20px;
   height: 20px;
   border: 2px solid var(--ink);
   border-radius: 50%
}

.story-right-head {
   padding: 0 80px;
   display: flex;
   flex-direction: column;
   gap: 44px;
   align-items: flex-start
}

.story h2 {
   font-weight: 600;
   font-size: clamp(40px, 3.06vw, 78px);
   line-height: .91;
   color: var(--ink)
}

.story h2 .dim {
   color: #7f8c87
}

.tabs {
   display: inline-flex;
   gap: 8px;
   padding: 6px;
   background: #fff;
   border: 1px solid var(--line-soft);
   border-radius: 16px
}

.tab {
   padding: 10px 28px;
   border-radius: 10px;
   font-weight: 600;
   font-size: 20px;
   line-height: 26px;
   color: var(--ink);
   background: var(--sand-2);
   transition: background-color .25s, color .25s
}

.tab[aria-selected="true"] {
   background: #291EA2;
   color: #fff
}

.tab:not([aria-selected="true"]):hover {
   background: #d9cfb5
}

.story-spacer {
   height: 110px
}

.story-body {
   position: relative
}

.story-divider {
   position: absolute;
   left: 50%;
   top: 80px;
   bottom: 0;
   width: 1px;
   background: var(--line-soft);
   transform-origin: top
}

.plus {
   position: absolute;
   left: calc(50% - 6px);
   font-weight: 300;
   font-size: 32px;
   line-height: 43px;
   color: var(--ink)
}

.plus.top {
   top: 64px
}

.plus.bottom {
   bottom: 0
}

.panel[hidden] {
   display: none
}

.story-cell {
   padding: 0 40px 0 80px;
   display: flex;
   gap: 22px;
   align-items: flex-start
}

.logo {
   flex: 0 0 68px;
   height: 68px;
   border-radius: 16px;
   background: var(--sand-2);
   border: 1px solid var(--line-soft);
   display: grid;
   place-items: center;
   font-weight: 800;
   font-size: 34px;
   color: var(--green)
}

.story-cell h3 {
   font-weight: 500;
   font-size: 40px;
   line-height: 1.35;
   color: var(--ink)
}

.story-cell small {
   display: block;
   margin-top: 6px;
   font-weight: 500;
   font-size: 22px;
   color: var(--muted)
}

.story-item {
   padding: 0 80px;
   display: flex;
   gap: 28px;
   align-items: stretch
}

.rail {
   flex: 0 0 32px;
   display: flex;
   flex-direction: column;
   align-items: center
}

.dot {
   flex: 0 0 32px;
   width: 32px;
   height: 32px;
   border-radius: 50%;
   background: #cfe9df;
   display: grid;
   place-items: center
}

.dot::after {
   content: "";
   width: 12px;
   height: 12px;
   border-radius: 50%;
   background: var(--ink)
}

.rail-line {
   flex: 1;
   width: 2px;
   background: var(--line-soft)
}

.story-item .txt {
   padding-bottom: 64px;
   display: flex;
   flex-direction: column;
   gap: 14px;
   align-items: flex-start;
   min-width: 0
}

.story-item h4 {
   font-weight: 500;
   font-size: 40px;
   line-height: 1.35;
   color: var(--ink)
}

.story-item p {
   font-weight: 500;
   font-size: 24px;
   line-height: 32px;
   color: var(--muted)
}

.story-bullets {
   list-style: none;
   padding: 0;
   margin: 4px 0 0;
   display: flex;
   flex-direction: column;
   gap: 10px;
   width: 100%;
}

.story-bullets li {
   position: relative;
   padding-left: 24px;
   font-weight: 500;
   font-size: 22px;
   line-height: 30px;
   color: var(--muted);
}

.story-bullets li::before {
   content: "";
   position: absolute;
   left: 6px;
   top: 12px;
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background: var(--ink);
}

.chip {
   background: var(--sand);
   border: 1px solid var(--line-soft);
   border-radius: 8px;
   padding: 10px 16px;
   font-weight: 500;
   font-size: 21px;
   color: var(--muted);
   width: 100%
}

/* =========================================================
   Skills / Recognition (LogoLoop)
   ========================================================= */
.skills {
   background-color: #fff;
   background-image: var(--dot-pattern);
   background-size: var(--dot-size) var(--dot-size);
   background-attachment: fixed;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 56px;
   overflow: hidden;
   width: 100%
}

.logoloop {
   --logoloop-gap: 32px;
   --logoloop-pad: 14px;
   position: relative;
   overflow: hidden;
   overflow: clip;
   width: 100%;
   max-width: 100vw;
   padding: var(--logoloop-pad) 0;
   -webkit-tap-highlight-color: transparent
}

.logoloop[data-draggable] {
   cursor: grab;
   touch-action: pan-y pinch-zoom
}

.logoloop[data-dragging],
.logoloop[data-dragging] * {
   cursor: grabbing
}

.logoloop__track {
   position: relative;
   z-index: 0;
   display: flex;
   width: max-content;
   will-change: transform;
   user-select: none;
   -webkit-user-select: none
}

.logoloop__list {
   display: flex;
   align-items: center;
   margin: 0;
   padding: 0;
   list-style: none
}

.logoloop__item {
   position: relative;
   flex: 0 0 auto;
   margin-right: var(--logoloop-gap);
   line-height: 1
}

.logoloop .tile {
   flex: 0 0 220px;
   width: 220px;
   max-width: 220px;
   background: #fff;
   border: 1.75px solid var(--line);
   border-radius: 28px;
   padding: 34px 24px;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 20px;
   box-shadow: 0 8px 24px -16px rgba(14, 47, 44, .15);
   transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
   user-select: none;
   cursor: inherit
}

.logoloop .tile:hover {
   transform: translateY(-8px) scale(1.02);
   box-shadow: 0 24px 44px -20px rgba(14, 47, 44, .35);
   border-color: var(--violet)
}

.logoloop .tile i {
   display: grid;
   place-items: center;
   width: 92px;
   height: 92px;
   border-radius: 22px;
   background: var(--sand);
   border: 1.5px solid var(--line-soft);
   transition: transform .3s var(--ease-out), background-color .3s, border-color .3s
}

.logoloop .tile:hover i {
   transform: scale(1.06);
   background: var(--lavender);
   border-color: var(--violet)
}

.logoloop .tile i svg {
   width: 52px;
   height: 52px;
   display: block
}

.logoloop .tile span {
   font-weight: 700;
   font-size: 26px;
   line-height: 1.2;
   color: var(--dark);
   text-align: center;
   white-space: nowrap
}

.tiles {
   width: 100%;
   max-width: 1692px;
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 35px
}

.tile {
   flex: 1 1 170px;
   max-width: 236px;
   background: #fff;
   border: 1.75px solid var(--line);
   border-radius: 28px;
   padding: 42px;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 24px;
   transition: transform .35s var(--ease-out), box-shadow .35s
}

.tile:hover {
   box-shadow: 0 22px 40px -28px rgba(14, 47, 44, .45)
}

.tile i {
   display: block;
   width: 112px;
   max-width: 100%;
   aspect-ratio: 1;
   border-radius: 24px;
   background: #e4e4e7;
   border: 1.75px solid var(--grey)
}

.tile span {
   font-weight: 600;
   font-size: clamp(26px, 2.2vw, 42px);
   line-height: 1.35;
   color: var(--dark);
   text-align: center;
   white-space: nowrap
}

.certs {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   align-items: center;
   gap: 10px
}

.certs b {
   font-weight: 600;
   font-size: 15px;
   letter-spacing: .08em;
   color: var(--muted);
   margin-right: 10px
}

.certs span {
   background: #fff;
   border: 1px solid var(--line);
   border-radius: 999px;
   padding: 5px 15px;
   font-weight: 600;
   font-size: 15px;
   line-height: 20px;
   color: var(--ink)
}

.achieve {
   background-color: var(--lavender);
   background-image: var(--dot-pattern);
   background-size: var(--dot-size) var(--dot-size);
   background-attachment: fixed;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 64px
}

.a-card {
   background: #fff;
   border: 1px solid var(--line);
   border-radius: 20px;
   padding: 36px;
   display: flex;
   flex-direction: column;
   gap: 12px;
   min-height: 210px;
   transition: box-shadow .35s
}

.a-card:hover {
   box-shadow: 0 22px 40px -28px rgba(14, 47, 44, .45)
}

.a-card small {
   font-weight: 600;
   font-size: 18px;
   letter-spacing: .08em;
   color: var(--grey);
   text-transform: uppercase
}

.a-card h3 {
   font-weight: 700;
   font-size: 34px;
   line-height: 36px;
   color: var(--dark)
}

.a-card p {
   font-weight: 500;
   font-size: 22px;
   line-height: 26px;
   color: var(--grey)
}

/* =========================================================
   Research & Publications
   ========================================================= */
.research {
   background-color: var(--cream, #fcf9f2);
   background-image: var(--dot-pattern);
   background-size: var(--dot-size) var(--dot-size);
   background-attachment: fixed;
   padding: var(--pad-y, 120px) var(--pad-x, 120px);
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 64px;
   scroll-margin-top: calc(var(--nav-h, 126px) - 1px);
}

.research__head {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 10px;
   text-align: center;
}

.research__head h2 {
   font-weight: 800;
   color: var(--ink, #0e2f2c);
   font-size: clamp(40px, 3.75vw, 72px);
   line-height: 1.36;
}

.research__head p {
   font-weight: 500;
   color: var(--muted, #55665f);
   font-size: clamp(18px, 1.25vw, 24px);
   letter-spacing: .02em;
   text-transform: uppercase;
}

.research__intro {
   max-width: 900px;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 20px;
   text-align: center;
}

.research__intro h3 {
   font-weight: 700;
   font-size: clamp(30px, 2.3vw, 44px);
   line-height: 1.36;
   color: var(--ink, #0e2f2c);
}

.research__intro h3 em {
   font-style: normal;
   color: var(--violet, #8379b8);
}

.research__intro p {
   font-weight: 500;
   font-size: clamp(20px, 1.46vw, 28px);
   line-height: 1.29;
   color: var(--muted, #55665f);
}

.research__grid {
   width: 100%;
   max-width: 1200px;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 24px;
   align-items: stretch;
}

.pub {
   background: #fff;
   border: 1px solid var(--line, #b9ad9f);
   border-radius: 20px;
   padding: clamp(28px, 2.3vw, 44px);
   display: flex;
   flex-direction: column;
   gap: 22px;
   transition: transform .3s var(--ease-out, cubic-bezier(0, 0, .58, 1)), box-shadow .3s;
}

.pub:hover {
   transform: translateY(-6px);
   box-shadow: 0 22px 40px -28px rgba(14, 47, 44, .45);
}

.pub__meta {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 12px;
}

.pub__year,
.pub__journal {
   border-radius: 999px;
   padding: 6px 18px;
   font-weight: 700;
   font-size: 18px;
   line-height: 24px;
   letter-spacing: .04em;
   text-transform: uppercase;
}

.pub__year {
   background: var(--violet, #8379b8);
   color: #fff;
}

.pub__journal {
   background: var(--gold, #f0b94a);
   color: var(--ink, #0e2f2c);
}

.pub h4 {
   font-weight: 700;
   font-size: clamp(28px, 2.1vw, 42px);
   line-height: 1.1;
   color: var(--dark, #18181b);
}

.pub h4 a {
   color: inherit;
   text-decoration: none;
   transition: color .2s var(--ease-out, cubic-bezier(0, 0, .58, 1));
}

.pub h4 a:hover {
   color: var(--violet, #8379b8);
}

.pub__label {
   display: block;
   font-weight: 600;
   font-size: 18px;
   letter-spacing: .08em;
   text-transform: uppercase;
   color: var(--grey, #6b6b76);
}

.pub__focus {
   display: flex;
   flex-direction: column;
   gap: 6px;
}

.pub__focus p {
   font-weight: 600;
   font-size: clamp(21px, 1.35vw, 26px);
   line-height: 1.23;
   color: var(--ink, #0e2f2c);
}

.pub__body {
   font-weight: 500;
   font-size: clamp(19px, 1.25vw, 24px);
   line-height: 1.25;
   color: var(--grey, #6b6b76);
}

.pub__themes {
   display: flex;
   flex-direction: column;
   gap: 12px;
   margin-top: auto;
}

.pub__themes ul {
   display: flex;
   flex-wrap: wrap;
   gap: 12px;
   list-style: none;
   padding: 0;
}

.pub__themes li {
   background: var(--sand, #f7f1e5);
   border: 1px solid #d4d4d8;
   border-radius: 999px;
   padding: 6px 18px;
   font-weight: 600;
   font-size: 18px;
   line-height: 24px;
   color: var(--dark, #18181b);
}

@media (max-width: 1100px) {
   .research {
      gap: 48px;
   }
   .research__grid {
      grid-template-columns: 1fr;
   }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
   background-color: #fff;
   background-image: var(--dot-pattern);
   background-size: var(--dot-size) var(--dot-size);
   background-attachment: fixed;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 48px
}

.faq-list {
   width: 100%;
   max-width: 1000px;
   display: flex;
   flex-direction: column;
   gap: 16px
}

.faq-item {
   background: #fff;
   border: 1px solid var(--line);
   border-radius: 16px;
   color: var(--dark);
   transition: background-color .35s, color .35s
}

.faq-item[data-open="true"] {
   background: var(--violet);
   color: #fff
}

.faq-q {
   width: 100%;
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 24px;
   padding: 18px 28px;
   text-align: left;
   font-weight: 600;
   font-size: 26px;
   line-height: 1.36
}

.faq-q .tg {
   font-weight: 500;
   font-size: 36px;
   line-height: 1;
   transition: transform .35s var(--ease-out)
}

.faq-item[data-open="true"] .tg {
   transform: rotate(45deg)
}

.faq-a {
   display: grid;
   grid-template-rows: 0fr;
   transition: grid-template-rows .4s var(--ease-out)
}

.faq-item[data-open="true"] .faq-a {
   grid-template-rows: 1fr
}

.faq-a>div {
   overflow: hidden
}

.faq-a p {
   padding: 0 32px 28px;
   font-weight: 500;
   font-size: 22px;
   line-height: 28px;
   opacity: .92
}

/* =========================================================
   Contact / Footer
   ========================================================= */
.cta {
   position: relative;
   overflow: hidden;
   background-color: var(--sand);
   background-image: var(--dot-pattern);
   background-size: var(--dot-size) var(--dot-size);
   background-attachment: fixed;
   padding: 140px var(--pad-x);
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 24px;
   text-align: center
}

.cta .glow.r {
   width: 560px;
   height: 560px;
   right: -160px;
   top: -120px;
   background: var(--gold);
   opacity: .35;
   filter: blur(110px);
   animation: none
}

.cta .glow.l {
   width: 560px;
   height: 560px;
   left: -200px;
   bottom: -160px;
   background: var(--green);
   opacity: .2;
   filter: blur(110px);
   animation: none
}

.cta>*:not(.glow) {
   position: relative
}

.cta .kicker {
   font-weight: 600;
   font-size: 28px;
   letter-spacing: .04em;
   color: var(--muted)
}

.cta h2 {
   font-weight: 800;
   font-size: clamp(64px, 10.4vw, 200px);
   line-height: .95;
   color: var(--ink)
}

.cta h2 em {
   font-style: normal;
   color: var(--gold-deep)
}

.cta .email {
   font-weight: 700;
   font-size: clamp(26px, 2.1vw, 40px);
   color: var(--ink);
   border-bottom: 2px solid transparent;
   transition: border-color .25s
}

.cta .email:hover {
   border-color: var(--ink)
}

.cta .btns {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 16px;
   margin-top: 6px
}

.footer {
   background-color: var(--violet);
   background-image: var(--dot-pattern-light);
   background-size: var(--dot-size) var(--dot-size);
   background-attachment: fixed;
   padding: 72px var(--pad-x);
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 32px;
   text-align: center
}

.footer .big {
   font-weight: 700;
   font-size: clamp(64px, 13.44vw, 258px);
   line-height: 1.36;
   color: #fff;
   letter-spacing: -.01em;
   user-select: none;
   cursor: pointer;
}

.footer .big:hover .c {
   transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), text-shadow .35s;
   transition-delay: calc(var(--i) * .018s);
   transform: translateY(-8px);
   text-shadow: 0 12px 24px rgba(0, 0, 0, .25);
}

.footer nav {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 16px 48px
}

.footer nav a {
   font-weight: 600;
   font-size: 24px;
   color: #fff;
   position: relative
}

.footer nav a::after {
   content: "";
   position: absolute;
   left: 0;
   right: 0;
   bottom: -3px;
   height: 2px;
   background: #fff;
   transform: scaleX(0);
   transform-origin: left;
   transition: transform .3s var(--ease-out)
}

.footer nav a:hover::after {
   transform: scaleX(1)
}

.footer small {
   font-weight: 500;
   font-size: 20px;
   color: #d7d2ef
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:1100px) {
   :root {
      --nav-h: 64px
   }

   .nav {
      grid-template-columns: 1fr auto
   }

   .nav-links {
      display: none
   }

   .brand {
      font-size: 26px
   }

   .btn {
      font-size: 18px;
      line-height: 24px;
      padding: 8px 22px
   }

   .nav-actions {
      gap: 10px
   }

   .nav-github {
      font-size: 17px;
      line-height: 22px;
      padding: 7px 14px
   }

   .nav-github svg {
      width: 17px;
      height: 17px
   }

   .hero {
      flex-direction: column;
      align-items: flex-start;
      padding-top: calc(56px + var(--nav-h));
      padding-bottom: 64px
   }

   .portrait {
      flex-basis: auto;
      width: min(380px, 100%)
   }

   .stack-item {
      position: static
   }

   .card {
      flex-direction: column-reverse;
      align-items: stretch;
      gap: 28px;
      padding: 28px
   }

   .shot {
      flex: none;
      width: 100%
   }

   .grid-2 {
      grid-template-columns: 1fr
   }

   .story {
      padding: 56px 0 8px;
      border-radius: 20px
   }

   .story-head,
   .story-row {
      grid-template-columns: 1fr
   }

   .story-left-head,
   .story-right-head,
   .story-cell,
   .story-item {
      padding-left: 24px;
      padding-right: 24px
   }

   .story-left-head {
      margin-bottom: 24px
   }

   .story-right-head {
      gap: 28px
   }

   .story-spacer {
      height: 40px
   }

   .story-divider,
   .plus {
      display: none
   }

   .story-cell {
      margin-top: 28px;
      margin-bottom: 20px
   }

   .story-cell h3,
   .story-item h4 {
      font-size: 30px
   }

   .story-item p {
      font-size: 21px;
      line-height: 28px
   }

   .story-item .txt {
      padding-bottom: 36px
   }

   .story-bullets li {
      font-size: 19px;
      line-height: 26px;
      padding-left: 20px;
   }

   .story-bullets li::before {
      top: 10px;
      width: 5px;
      height: 5px;
      left: 4px;
   }

   .faq-q {
      font-size: 21px;
      padding: 14px 18px
   }

   .faq-a p {
      padding: 0 20px 22px;
      font-size: 20px
   }

   .cta {
      padding-top: 96px;
      padding-bottom: 96px
   }
}

@media (max-width:640px) {
   .nav-actions {
      gap: 8px
   }

   .nav-github {
      padding: 7px;
      width: 38px;
      height: 38px;
      border-radius: 50%
   }

   .nav-github span {
      display: none
   }

   .tab {
      padding: 8px 18px;
      font-size: 18px;
      line-height: 24px
   }

   .marquee-group span,
   .marquee-group i {
      font-size: 22px
   }

   .eyebrow {
      font-size: 15px
   }

   .card .desc {
      font-size: 20px;
      line-height: 26px
   }

   .bullets li {
      font-size: 19px
   }

   .s-card,
   .a-card {
      padding: 26px
   }

   .s-card h3,
   .a-card h3 {
      font-size: 28px
   }
}

@media (max-width: 768px) {

   body,
   .hero,
   .work,
   .services,
   .stats,
   .story,
   .skills,
   .achieve,
   .research,
   .faq,
   .cta,
   .footer {
      background-attachment: scroll;
   }
}

/* =========================================================
   Lazy Rendering & Performance (Whole Website)
   ========================================================= */
.services,
.stats,
.story,
.achieve,
.research,
.faq,
.cta,
.footer {
   content-visibility: auto;
   contain-intrinsic-size: auto 600px;
}

img {
   content-visibility: auto;
}