:root {
  --cream: #faf8f3;
  --ink: #0f0e0b;
  --ink2: #2a2926;
  --muted: #8a897f;
  --border: #e8e5dc;
  --border2: #cbc8bc;
  --surface: #f4f2eb;
  /* HSM BLUE — the one brand accent. Sampled from the official HSM Software
     logo (its ribbon runs #0050f8 → #0098f8) and the mascot suit (#0060f8 →
     #0070f8); #0A6EF5 sits at the centre of both. Every blue on the site is a
     tint, shade or alpha of this value — never another hue. Visitors can
     switch light/dark, but not the brand colour. */
  --hsm-blue: #0A6EF5;
  --hsm-blue-rgb: 10, 110, 245;
  --hsm-blue-hover: #0757C8;
  /* Text-safe shade: 5.5:1 on white, 4.9:1 on --surface. The raw brand blue
     is 4.6:1 on white — fine for fills with white text, tight for small text. */
  --hsm-blue-text: #0B63DD;
  /* Light-blue reading of the brand for the always-dark bands (about, contact,
     footer): 6.9:1 on #0d0d0f. Same in both themes. */
  --hsm-blue-bright: #4D9BFF;
  --hsm-blue-soft: #E7F0FE;
  --hsm-blue-border: rgba(10, 110, 245, .28);
  --hsm-blue-glow: rgba(10, 110, 245, .22);
  --shadow: 0 1px 3px rgba(15, 14, 11, .06), 0 6px 24px rgba(15, 14, 11, .07);
  --shadow-lg: 0 4px 6px rgba(15, 14, 11, .06), 0 20px 60px rgba(15, 14, 11, .13);
  --nav-bg: rgba(250, 248, 243, .8);
  --nav-stuck: rgba(250, 248, 243, .97);
  --card-bg: #ffffff;
  --about-band: #0f0e0b;
  --footer-bg: #080807;
  --contact-bg: #0f0e0b;
  --contact-text: rgba(250, 248, 243, .55);
  --contact-strong: #faf8f3;
  --contact-border: rgba(250, 248, 243, .1);
  --contact-label: rgba(250, 248, 243, .28);
  --about-text: rgba(250, 248, 243, .55);
  --about-strong: #faf8f3;
  --stat-dark-bg: #0f0e0b;
  --stat-dark-text: #faf8f3;
  --stat-dark-sub: rgba(250, 248, 243, .4);
  /* Consumed by the JS-rendered project cards (js/render-projects.js) and the
     case-study walkthrough tabs. --text tracks --ink so it flips with the theme
     automatically; --text-secondary needs a per-theme value. */
  --text: var(--ink);
  --text-secondary: #5a584f;
}

[data-theme="dark"] {
  --cream: #0d0d0f;
  --ink: #f0ede8;
  --ink2: #d4d0c8;
  --muted: #7a7870;
  --border: #2a2926;
  --border2: #3a3834;
  --surface: #161614;
  /* Same HSM Blue; only the text shade, tint surface and glow strength change */
  --hsm-blue-hover: #2F86FF;
  --hsm-blue-text: var(--hsm-blue-bright);
  --hsm-blue-soft: #0F2347;
  --hsm-blue-border: rgba(10, 110, 245, .38);
  --hsm-blue-glow: rgba(10, 110, 245, .34);
  --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 4px 6px rgba(0, 0, 0, .3), 0 20px 60px rgba(0, 0, 0, .5);
  --nav-bg: rgba(13, 13, 15, .8);
  --nav-stuck: rgba(13, 13, 15, .97);
  --card-bg: #161614;
  --about-band: #0a0a0c;
  --footer-bg: #060606;
  --contact-bg: #0a0a0c;
  --contact-text: rgba(240, 237, 232, .5);
  --contact-strong: #f0ede8;
  --contact-border: rgba(240, 237, 232, .1);
  --contact-label: rgba(240, 237, 232, .25);
  --about-text: rgba(240, 237, 232, .5);
  --about-strong: #f0ede8;
  --stat-dark-bg: #1e1e1e;
  --stat-dark-text: #f0ede8;
  --stat-dark-sub: rgba(240, 237, 232, .4);
  --text-secondary: #a8a49c;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: 'Cabinet Grotesk', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 64px;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s
}

nav.stuck {
  border-color: var(--border);
  background: var(--nav-stuck)
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .4rem
}

.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .65rem
}

/* Official HSM Software mark beside the name. Two supplied variants (light-
   and dark-background artwork) are swapped per theme; the image is never
   stretched (width auto), tinted or filtered. */
.brand-mark {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0
}

.brand-mark--dark,
[data-theme="dark"] .brand-mark--light {
  display: none
}

[data-theme="dark"] .brand-mark--dark {
  display: block
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .4;
    transform: scale(.65)
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .2rem;
  list-style: none
}

.nav-links a {
  font-size: .81rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: .4rem .85rem;
  border-radius: 100px;
  transition: color .25s, background .25s, box-shadow .25s, transform .2s
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--surface);
  transform: translateY(-1px)
}

.nav-links a.active {
  color: var(--hsm-blue-text);
  background: var(--hsm-blue-soft);
  font-weight: 600;
  box-shadow: 0 0 0 1.5px rgba(var(--hsm-blue-rgb), .25)
}

.nav-hire {
  background: var(--ink) !important;
  color: var(--cream) !important;
  font-weight: 600 !important
}

.nav-hire:hover {
  background: var(--ink2) !important
}

.nav-hire.active {
  background: var(--hsm-blue) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(var(--hsm-blue-rgb), .4) !important
}

/* THEME TOGGLE */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 100px;
  border: 1.5px solid var(--border2);
  background: transparent;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
  color: var(--ink);
  flex-shrink: 0
}

.theme-toggle:hover {
  border-color: var(--hsm-blue);
  background: var(--hsm-blue-soft);
  transform: rotate(20deg)
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: opacity .2s
}

.icon-moon {
  display: block
}

.icon-sun {
  display: none
}

[data-theme="dark"] .icon-moon {
  display: none
}

[data-theme="dark"] .icon-sun {
  display: block
}

/* HAMBURGER MENU */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border2);
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  gap: 4.5px;
  transition: border-color .2s, background .2s
}

.nav-hamburger:hover {
  border-color: var(--hsm-blue);
  background: var(--hsm-blue-soft)
}

.nav-hamburger span {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s, opacity .3s, width .3s
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg)
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  width: 0
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg)
}

.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--nav-stuck);
  border-bottom: 1px solid var(--border);
  z-index: 199;
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .3s;
  pointer-events: none
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all
}

.mobile-menu a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: .65rem .85rem;
  border-radius: 10px;
  transition: color .2s, background .2s
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--hsm-blue-text);
  background: var(--hsm-blue-soft)
}

.mobile-menu .m-hire {
  background: var(--ink);
  color: var(--cream) !important;
  font-weight: 600;
  text-align: center;
  margin-top: .5rem;
  border-radius: 100px;
  padding: .75rem
}

.mobile-menu .m-hire:hover {
  background: var(--ink2)
}

/* HSM SOFTWARE MASCOT — the character that travels with the visitor: the
   visual cursor on desktop, a scroll-driven flyer on touch, and the thing
   that lands above the Send Message button. js/hsm-mascot.js builds the
   layers and owns every transform; this file only sizes, stacks and colours:
     #hsm-mascot          fixed 0×size box whose origin is the character's
                          chest — the one point the controller moves (one
                          transform per frame: position, lean, scale, float)
     .hsm-mascot__glow    HSM-blue aura that lags the body a little (JS translate)
     .hsm-mascot__trail   HSM-blue streak behind the body while flying
     .hsm-mascot__pose    one <img> per pose, crossfaded by .is-active
     .hsm-hotspot         the real pointer position while the mascot is the
                          cursor (sibling, so it never inherits the lag)
   Nothing here animates left/top. Every coloured effect (aura, trail, ring,
   landing glow, shadow tint, hotspot) is an alpha of the fixed --hsm-blue-rgb
   brand token; light/dark only changes intensity via --hsm-glow-a,
   --hsm-trail-a and --hsm-shadow. The artwork is never hue-shifted or
   recoloured: the suit, visor and HSM branding stay as drawn. */
:root {
  --hsm-size: clamp(110px, 9.5vw, 150px)
}

/* Touch / coarse pointer: a little smaller, the page is narrower */
@media (hover: none), (pointer: coarse) {
  :root {
    --hsm-size: clamp(90px, 24vw, 124px)
  }
}

.hsm-mascot {
  --hsm-glow-a: .24;
  --hsm-trail-a: .5;
  --hsm-shadow: drop-shadow(0 6px 10px rgba(var(--hsm-blue-rgb), .28)) drop-shadow(0 2px 3px rgba(15, 14, 11, .2));
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: var(--hsm-size);
  z-index: 150;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  transform-origin: 0 0;
  will-change: transform;
  opacity: 0;
  transition: opacity .4s ease
}

/* js adds html.hsm-active once the mascot runs: leave room above the Send
   Message button so the docked character never covers the textarea */
html.hsm-active .ct-form-submit {
  margin-top: calc(var(--hsm-size) * .92)
}

.hsm-mascot.is-ready {
  opacity: 1
}

/* A text field is focused or hovered: step back so it never hides typing */
.hsm-mascot.is-quiet {
  opacity: .3
}

[data-theme="dark"] .hsm-mascot {
  --hsm-glow-a: .38;
  --hsm-trail-a: .66;
  --hsm-shadow: drop-shadow(0 0 1.5px rgba(255, 255, 255, .3)) drop-shadow(0 8px 16px rgba(var(--hsm-blue-rgb), .48))
}

.hsm-mascot__glow {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--hsm-size) * 1.6);
  height: calc(var(--hsm-size) * 1.6);
  margin: calc(var(--hsm-size) * -.8) 0 0 calc(var(--hsm-size) * -.8);
  will-change: transform, opacity
}

.hsm-mascot__glow-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--hsm-blue-rgb), var(--hsm-glow-a)) 0%, rgba(var(--hsm-blue-rgb), calc(var(--hsm-glow-a) * .45)) 32%, rgba(var(--hsm-blue-rgb), 0) 68%)
}

.hsm-mascot[data-phase="docked"] .hsm-mascot__glow-core {
  animation: hsm-breathe 3.2s ease-in-out infinite
}

/* One ring pulse the moment the feet touch the button */
.hsm-mascot__ring {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 2px solid rgba(var(--hsm-blue-rgb), .6);
  opacity: 0
}

.hsm-mascot__ring.is-pulsing {
  animation: hsm-ring .9s cubic-bezier(.22, 1, .36, 1) forwards
}

.hsm-mascot__trail {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--hsm-size) * 1.35);
  height: calc(var(--hsm-size) * .46);
  margin: calc(var(--hsm-size) * -.23) 0 0 calc(var(--hsm-size) * -1.35);
  transform-origin: 100% 50%;
  border-radius: 999px;
  background: linear-gradient(to left, rgba(var(--hsm-blue-rgb), var(--hsm-trail-a)), rgba(var(--hsm-blue-rgb), calc(var(--hsm-trail-a) * .35)) 45%, rgba(var(--hsm-blue-rgb), 0));
  filter: blur(7px);
  opacity: 0;
  will-change: transform, opacity
}

.hsm-mascot__pose {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%
}

/* height / translate per pose are inline, from POSES in js/hsm-mascot.js */
.hsm-pose {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  opacity: 0;
  transition: opacity .12s ease;
  filter: var(--hsm-shadow);
  will-change: opacity
}

.hsm-pose img {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  -webkit-user-drag: none
}

.hsm-pose.is-active {
  opacity: 1
}

/* Cursor mode (desktop, free phase only — js toggles html.hsm-cursor): the
   mascot is the cursor, the hotspot marks the exact click point. The native
   cursor stays on anything that needs it: text fields, embeds, resize grips,
   and the case-study lightbox. Touch devices never get this class. */
.hsm-hotspot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: rgba(var(--hsm-blue-rgb), .9);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 0 3px rgba(var(--hsm-blue-rgb), .35);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
  transition: opacity .15s ease, width .15s ease, height .15s ease, margin .15s ease;
  will-change: transform
}

html.hsm-cursor .hsm-hotspot {
  opacity: 1
}

html.hsm-cursor .hsm-hotspot.is-off {
  opacity: 0
}

html.hsm-cursor .hsm-hotspot.is-link {
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  background: rgba(var(--hsm-blue-rgb), .35)
}

html.hsm-cursor,
html.hsm-cursor :where(*) {
  cursor: none
}

html.hsm-cursor :where(input, textarea, select, [contenteditable], iframe, embed, object, video, .cs-lightbox, .cs-lightbox *) {
  cursor: auto
}

html.hsm-cursor :where(textarea) {
  cursor: text
}

@keyframes hsm-breathe {

  0%,
  100% {
    transform: scale(1);
    opacity: .7
  }

  50% {
    transform: scale(1.14);
    opacity: 1
  }
}

@keyframes hsm-ring {
  0% {
    transform: scale(.45);
    opacity: .85
  }

  100% {
    transform: scale(1.5);
    opacity: 0
  }
}

@media (prefers-reduced-motion:reduce) {

  .hsm-mascot__glow-core,
  .hsm-mascot__ring {
    animation: none !important
  }

  .hsm-mascot__trail,
  .hsm-hotspot {
    display: none
  }
}

/* HERO */
#hero {
  min-height: 100vh;
  max-width: 1280px;
  margin: 0 auto;
  padding: 7rem 3rem 4rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 5rem
}

h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 5.5vw, 5.75rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .97;
  color: var(--ink);
  margin-bottom: 1.75rem
}

h1 em {
  font-style: italic;
  color: var(--hsm-blue-text)
}

.hero-lead {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.78;
  max-width: 500px;
  margin-bottom: 2.5rem
}

.hero-lead strong {
  color: var(--ink2);
  font-weight: 600
}

.hero-btns {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap
}

/* BUTTONS */
.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .8rem 1.75rem;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: .87rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s
}

.btn-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 14, 11, .2)
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .8rem 1.75rem;
  background: transparent;
  color: var(--ink);
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: .87rem;
  font-weight: 600;
  border-radius: 100px;
  text-decoration: none;
  border: 1.5px solid var(--border2);
  transition: border-color .2s, background .2s
}

.btn-line:hover {
  border-color: var(--ink);
  background: var(--surface)
}

/* HERO RIGHT - PHOTO */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem
}

.photo-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center
}

.photo-box {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--hsm-blue);
  position: relative;
  z-index: 2;
  animation: photo-float 4s ease-in-out infinite
}

.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  display: block
}

@keyframes photo-float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-10px)
  }
}

.photo-glow {
  position: absolute;
  width: 268px;
  height: 268px;
  border-radius: 50%;
  border: 3px solid var(--hsm-blue);
  opacity: .45;
  animation: glow-pulse 2.5s ease-in-out infinite;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)
}

.photo-glow2 {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2px solid var(--hsm-blue);
  opacity: .18;
  animation: glow-pulse 2.5s ease-in-out infinite .6s;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%)
}

@keyframes glow-pulse {

  0%,
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1)
  }

  50% {
    opacity: .2;
    transform: translate(-50%, -50%) scale(1.1)
  }
}

.photo-badge {
  position: absolute;
  bottom: -8px;
  right: -20px;
  background: var(--card-bg);
  border: 1px solid var(--hsm-blue);
  opacity: .9;
  border-color: var(--hsm-blue);
  border-radius: 14px;
  padding: .7rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: .5rem;
  z-index: 3
}

.badge-n {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--hsm-blue-text);
  line-height: 1
}

.badge-l {
  font-size: .68rem;
  color: var(--muted);
  line-height: 1.3
}

/* ABOUT BAND */
.about-band {
  background: var(--about-band);
  color: var(--about-strong);
  padding: 4rem 3rem
}

.about-in {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 3.5rem;
  align-items: start
}

.about-title {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em
}

.about-title em {
  font-style: italic;
  opacity: .4
}

.about-body {
  font-size: .9rem;
  line-height: 1.82;
  color: var(--about-text)
}

.about-body strong {
  color: var(--about-strong);
  font-weight: 600
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem
}

.about-list li {
  font-size: .84rem;
  color: var(--about-text);
  display: flex;
  align-items: baseline;
  gap: .6rem;
  line-height: 1.6
}

.about-list li::before {
  content: '→';
  color: var(--hsm-blue-bright);
  flex-shrink: 0
}

/* SECTIONS */
.sec-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 3rem
}

.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: 'Geist Mono', monospace;
  font-size: .67rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .9rem
}

.sec-tag::before {
  content: '//';
  color: var(--border2)
}

.sec-h {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 3.5rem
}

.sec-h em {
  font-style: italic;
  color: var(--hsm-blue-text)
}

.hr {
  border: none;
  border-top: 1px solid var(--border)
}

/* SKILLS */
#skills {
  background: var(--surface)
}

.skills-g {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.65rem;
  transition: box-shadow .25s, transform .25s, border-color .25s
}

.skill-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--border2)
}

.skill-ico {
  width: 38px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: .9rem
}

.skill-nm {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: .85rem
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem
}

.tag {
  font-size: .71rem;
  font-weight: 500;
  padding: .22rem .65rem;
  border-radius: 100px;
  background: var(--surface);
  color: var(--ink2);
  border: 1px solid var(--border);
  transition: all .15s;
  cursor: default
}

.tag:hover {
  background: var(--hsm-blue-soft);
  border-color: rgba(var(--hsm-blue-rgb), .2);
  color: var(--hsm-blue-text)
}

.tag.hi {
  background: var(--hsm-blue-soft);
  border-color: rgba(var(--hsm-blue-rgb), .2);
  color: var(--hsm-blue-text);
  font-weight: 600
}

/* EXPERIENCE */
#experience {
  background: var(--card-bg)
}

.exp-list {
  display: flex;
  flex-direction: column
}

.exp-row {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 3rem;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--border)
}

.exp-row:last-child {
  border-bottom: none
}

.exp-period {
  font-family: 'Geist Mono', monospace;
  font-size: .69rem;
  color: var(--muted);
  margin-bottom: .45rem
}

.exp-co {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .35rem
}

.exp-pill {
  display: inline-block;
  font-size: .63rem;
  font-weight: 600;
  padding: .18rem .6rem;
  border-radius: 100px;
  margin-top: .3rem
}

.p-cur {
  background: var(--hsm-blue-soft);
  color: var(--hsm-blue-text);
  border: 1px solid rgba(var(--hsm-blue-rgb), .2)
}

.p-rem {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border)
}

.p-loc {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border)
}

.exp-role {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: .95rem
}

.exp-pts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .52rem
}

.exp-pts li {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.72;
  padding-left: 1.2rem;
  position: relative
}

.exp-pts li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border2)
}

.exp-pts li strong {
  color: var(--ink2);
  font-weight: 600
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: 1.15rem
}

/* PROJECTS */
#projects {
  background: var(--surface)
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem
}

.proj-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, transform .3s
}

.proj-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px)
}

.proj-feat {
  grid-column: span 2;
  flex-direction: row
}

.feat-visual {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.5rem;
  background: linear-gradient(150deg, var(--hsm-blue-soft), #CFE0FC)
}

.proj-header {
  padding: 1.65rem 1.65rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start
}

.live-pill {
  display: flex;
  align-items: center;
  gap: .38rem;
  font-size: .63rem;
  font-weight: 600;
  color: var(--hsm-blue-text);
  background: var(--hsm-blue-soft);
  padding: .22rem .65rem;
  border-radius: 100px;
  border: 1px solid rgba(var(--hsm-blue-rgb), .15)
}

.live-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--hsm-blue);
  border-radius: 50%;
  animation: blink 2s infinite
}

.proj-body {
  padding: 1.2rem 1.65rem 1.65rem;
  flex: 1;
  display: flex;
  flex-direction: column
}

.proj-nm {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: .2rem
}

.proj-cat {
  font-size: .71rem;
  color: var(--muted);
  margin-bottom: .8rem;
  font-weight: 500
}

.proj-desc {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.72;
  flex: 1;
  margin-bottom: 1.1rem
}

.proj-tech {
  display: flex;
  flex-wrap: wrap;
  gap: .32rem;
  margin-bottom: 1.1rem
}

.proj-tech span {
  font-family: 'Geist Mono', monospace;
  font-size: .63rem;
  padding: .18rem .55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted)
}

.proj-links {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap
}

.pl {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  font-size: .71rem;
  font-weight: 600;
  padding: .38rem .85rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all .2s
}

.pl-store {
  background: var(--ink);
  color: var(--cream)
}

.pl-store:hover {
  background: var(--ink2)
}

.pl-case {
  background: var(--hsm-blue);
  color: #fff
}

.pl-case:hover {
  background: var(--hsm-blue-hover)
}

/* CERTIFICATIONS */
#certifications {
  background: var(--card-bg)
}

.certs-g {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem
}

.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  transition: box-shadow .22s, border-color .22s
}

.cert-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border2)
}

.cert-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 800;
  font-family: 'Cabinet Grotesk', sans-serif;
  color: #fff
}

.cert-nm {
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: .2rem
}

.cert-is {
  font-size: .7rem;
  color: var(--muted)
}

/* CONTACT */
#contact {
  background: var(--contact-bg);
  color: var(--contact-strong);
  padding: 6.5rem 3rem;
  text-align: center
}

.ct-wrap {
  max-width: 660px;
  margin: 0 auto
}

.ct-tag {
  font-family: 'Geist Mono', monospace;
  font-size: .67rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--contact-label);
  margin-bottom: 1.5rem;
  display: block
}

.ct-tag::before {
  content: '// '
}

.ct-h {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin-bottom: 1.4rem
}

.ct-h em {
  font-style: italic;
  color: var(--hsm-blue-bright)
}

.ct-sub {
  font-size: 1rem;
  color: var(--contact-text);
  line-height: 1.82;
  margin-bottom: 3rem
}

.ct-btns {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 4rem
}

.ct-info {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 3rem;
  border-top: 1px solid var(--contact-border)
}

/* FOOTER */
footer {
  background: var(--footer-bg);
  /* left inset clears the fixed WhatsApp FAB (1.5rem + 46px) so it never
     sits on the brand lockup when the page is scrolled to the end */
  padding: 1.4rem 3rem 1.4rem 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center
}

footer span {
  font-size: .73rem;
  color: var(--contact-label)
}

footer a {
  font-family: 'Geist Mono', monospace;
  font-size: .73rem;
  color: var(--contact-label);
  text-decoration: none
}

footer a:hover {
  color: var(--hsm-blue-bright)
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .9rem
}

.footer-brand img {
  height: 44px;
  width: auto;
  display: block
}

.footer-brand-tx {
  display: flex;
  flex-direction: column;
  gap: .15rem
}

.footer-brand-tx small {
  font-family: 'Geist Mono', monospace;
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--contact-label)
}

/* Keyboard focus in the brand blue, on every theme */
:focus-visible {
  outline: 2px solid var(--hsm-blue);
  outline-offset: 3px
}

/* MOBILE STATS STRIP */
.mobile-stats {
  display: none
}

@media(max-width:960px) {
  .mobile-stats {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: .75rem 1.5rem
  }

  .mobile-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem
  }

  .ms-n {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1
  }

  .ms-l {
    font-size: .6rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.3
  }
}

/* FEATURED SKILLS */
.skills-g .skill-card.featured {
  border-color: rgba(var(--hsm-blue-rgb), .3);
  background: linear-gradient(135deg, var(--hsm-blue-soft) 0%, var(--card-bg) 100%)
}

.skills-g .skill-card.featured .skill-nm {
  color: var(--hsm-blue-text)
}

.skills-g .skill-card.featured .skill-ico {
  background: var(--hsm-blue-soft);
  border-color: rgba(var(--hsm-blue-rgb), .2)
}

.skills-g .skill-card.featured .tag.hi {
  background: var(--hsm-blue-soft);
  border-color: rgba(var(--hsm-blue-rgb), .2);
  color: var(--hsm-blue-text)
}

[data-theme="dark"] .skills-g .skill-card.featured {
  background: var(--surface);
  border-color: var(--border)
}

[data-theme="dark"] .skills-g .skill-card.featured .skill-ico {
  background: var(--card-bg);
  border-color: var(--border)
}

[data-theme="dark"] .skills-g .skill-card.featured .tag.hi {
  background: rgba(var(--hsm-blue-rgb), .15);
  border-color: rgba(var(--hsm-blue-rgb), .25);
  color: var(--hsm-blue-text)
}

/* RESPONSIVE */
@media(max-width:960px) {
  nav {
    padding: 0 1.5rem
  }

  .nav-links {
    display: none
  }

  .nav-right {
    gap: .4rem
  }

  .nav-hamburger {
    display: flex
  }

  #hero {
    grid-template-columns: 1fr;
    padding: 6.5rem 1.5rem 3rem;
    gap: 0
  }

  /* Photo shows above the hero text on mobile, centered and scaled down */
  .hero-right {
    display: flex;
    justify-content: center;
    order: -1;
    margin-bottom: 1.75rem
  }

  .hero-right .photo-wrap {
    width: 200px;
    height: 200px
  }

  .hero-right .photo-box {
    width: 160px;
    height: 160px
  }

  .hero-right .photo-glow {
    width: 178px;
    height: 178px
  }

  .hero-right .photo-glow2 {
    width: 200px;
    height: 200px
  }

  .hero-right .photo-badge {
    bottom: -4px;
    right: -10px;
    padding: .5rem .75rem
  }

  .about-in {
    grid-template-columns: 1fr;
    gap: 1.75rem
  }

  .about-band {
    padding: 3rem 1.5rem
  }

  .skills-g {
    grid-template-columns: 1fr 1fr
  }

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

  .proj-feat {
    flex-direction: column;
    grid-column: span 1
  }

  .feat-visual {
    width: 100%;
    height: auto;
    min-height: 160px;
    padding: 1.5rem 1rem
  }

  .certs-g {
    grid-template-columns: 1fr 1fr
  }

  .exp-row {
    grid-template-columns: 1fr;
    gap: .7rem
  }

  .sec-wrap {
    padding: 4rem 1.5rem
  }

  #contact {
    padding: 4.5rem 1.5rem
  }

  footer {
    flex-direction: column;
    gap: .6rem;
    text-align: center;
    /* bottom inset clears the FAB row on narrow screens */
    padding: 1.2rem 1.5rem 5.5rem
  }

  .footer-brand {
    flex-direction: column;
    gap: .6rem
  }

  .footer-brand-tx {
    align-items: center
  }
}

@media(max-width:600px) {
  .skills-g {
    grid-template-columns: 1fr
  }

  .certs-g {
    grid-template-columns: 1fr
  }

  .ct-info {
    gap: 1.4rem
  }
}

/* BACK TO TOP */
.btt {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, background .2s;
  pointer-events: none
}

.btt.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all
}

.btt:hover {
  background: var(--hsm-blue)
}

.btt svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

[data-theme="dark"] .btn-dark {
  background: var(--ink);
  color: var(--cream)
}

[data-theme="dark"] .btn-dark:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4)
}

[data-theme="dark"] .btn-line {
  border-color: var(--border2);
  color: var(--ink)
}

[data-theme="dark"] .btn-line:hover {
  border-color: var(--ink);
  background: var(--surface)
}

[data-theme="dark"] .nav-hire {
  background: var(--ink) !important;
  color: var(--cream) !important
}

[data-theme="dark"] .photo-badge {
  background: var(--card-bg);
  border-color: var(--border)
}

[data-theme="dark"] .skill-ico {
  background: var(--surface);
  border-color: var(--border)
}

[data-theme="dark"] .tag {
  background: var(--surface);
  color: var(--ink2);
  border-color: var(--border)
}

[data-theme="dark"] .tag.hi {
  background: var(--hsm-blue-soft);
  color: var(--hsm-blue-text)
}

[data-theme="dark"] .cert-card {
  background: var(--card-bg)
}

[data-theme="dark"] .exp-pts li::before {
  color: var(--border2)
}

[data-theme="dark"] .feat-visual {
  background: var(--hsm-blue) !important;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .12) 1px, transparent 1px) !important;
  background-size: 20px 20px !important
}

[data-theme="dark"] .live-pill {
  background: var(--hsm-blue-soft);
  color: var(--hsm-blue-bright)
}

[data-theme="dark"] .pl-store {
  background: var(--surface);
  color: var(--ink)
}

[data-theme="dark"] .pl-store:hover {
  background: var(--border2)
}

[data-theme="dark"] .exp-pill.p-cur {
  background: var(--hsm-blue-soft);
  color: var(--hsm-blue-text)
}

[data-theme="dark"] .exp-pill.p-rem {
  background: var(--surface);
  color: var(--muted)
}

[data-theme="dark"] .exp-pill.p-loc {
  background: var(--surface);
  color: var(--muted)
}

[data-theme="dark"] .about-title em {
  color: var(--muted)
}

[data-theme="dark"] .theme-toggle {
  border-color: var(--border2);
  color: var(--ink)
}

[data-theme="dark"] .theme-toggle:hover {
  background: var(--hsm-blue-soft);
  border-color: var(--hsm-blue)
}

[data-theme="dark"] .nav-hamburger {
  border-color: var(--border2)
}

[data-theme="dark"] .nav-hamburger span {
  background: var(--ink)
}

[data-theme="dark"] .mobile-menu {
  background: var(--nav-stuck)
}

[data-theme="dark"] .proj-tech span {
  background: var(--surface);
  color: var(--muted);
  border-color: var(--border)
}

[data-theme="dark"] .sec-h em {
  color: var(--hsm-blue-bright)
}

[data-theme="dark"] h1 em {
  color: var(--hsm-blue-bright)
}

[data-theme="dark"] .btt {
  background: var(--surface);
  color: var(--ink)
}

[data-theme="dark"] .btt:hover {
  background: var(--hsm-blue);
  color: #ffffff
}


@media(max-width:960px) {
  .feat-visual>div {
    padding: 1rem !important
  }
}

/* SCROLL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1)
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1)
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0)
}

.reveal-scale {
  opacity: 0;
  transform: scale(.95);
  transition: opacity .55s cubic-bezier(.22, 1, .36, 1), transform .55s cubic-bezier(.22, 1, .36, 1)
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1)
}

/* WHATSAPP FAB */
.wa-fab {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 190;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, .4);
  transition: transform .25s, box-shadow .25s, opacity .3s;
  opacity: 0;
  pointer-events: none
}

.wa-fab.show {
  opacity: 1;
  pointer-events: all
}

.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, .55)
}

/* AVAILABLE STATUS BADGE */
.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--hsm-blue-soft);
  border: 1px solid rgba(var(--hsm-blue-rgb), .2);
  color: var(--hsm-blue-text);
  font-size: .7rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem
}

.avail-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0
}

[data-theme="dark"] .avail-badge {
  background: rgba(var(--hsm-blue-rgb), .15);
  border-color: rgba(var(--hsm-blue-rgb), .3);
  color: var(--hsm-blue-bright)
}

/* ===================== CASE STUDY PAGE ===================== */
.cs-back {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6.5rem 3rem 0
}

.cs-back a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s
}

.cs-back a:hover {
  color: var(--hsm-blue-text)
}

.cs-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 3rem 3rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.75rem;
  align-items: center
}

.cs-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg)
}

.cs-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.cs-tag {
  font-family: 'Geist Mono', monospace;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem
}

.cs-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.02;
  color: var(--ink)
}

.cs-links {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap
}

.cs-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border)
}

.cs-overview {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 3rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem
}

.cs-h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 1.1rem
}

.cs-overview p {
  font-size: .92rem;
  line-height: 1.85;
  color: var(--muted)
}

.cs-overview p strong {
  color: var(--ink2);
  font-weight: 600
}

.cs-stats {
  display: flex;
  flex-direction: column;
  gap: .9rem
}

.cs-stat {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.cs-stat-n {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--hsm-blue-text)
}

.cs-stat-l {
  font-size: .76rem;
  color: var(--muted);
  text-align: right;
  max-width: 140px;
  line-height: 1.4
}

.cs-caps {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 3rem
}

.cs-cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem
}

.cs-cap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color .2s, box-shadow .2s
}

.cs-cap:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow)
}

.cs-cap-ico {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--hsm-blue-soft);
  color: var(--hsm-blue-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0
}

.cs-cap-tx b {
  display: block;
  font-size: .9rem;
  color: var(--ink);
  margin-bottom: .3rem;
  font-weight: 700
}

.cs-cap-tx p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.62
}

.cs-arch {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border)
}

.cs-arch-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 3rem
}

.cs-arch-in p {
  font-size: .92rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 820px
}

.cs-arch-in p strong {
  color: var(--ink2);
  font-weight: 600
}

.cs-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: 1.75rem
}

.cs-flow-step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: .55rem 1.1rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink2);
  font-family: 'Geist Mono', monospace
}

.cs-flow-arrow {
  color: var(--border2);
  font-size: 1rem
}

.cs-challenges {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 3rem
}

.cs-challenge {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 2.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border)
}

.cs-challenge:last-child {
  border-bottom: none
}

.cs-ch-label {
  font-family: 'Geist Mono', monospace;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hsm-blue-text)
}

.cs-ch-body b {
  display: block;
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: .4rem;
  font-weight: 700
}

.cs-ch-body p {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.75
}

.cs-tech-band {
  background: var(--card-bg);
  padding: 4rem 3rem;
  text-align: center
}

.cs-tech-in {
  max-width: 900px;
  margin: 0 auto
}

.cs-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: 1.5rem
}

.cs-walk {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border)
}

.cs-walk-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start
}

.cs-walk-head {
  display: flex;
  flex-direction: column;
  gap: 1.75rem
}

.cs-walk-tabs {
  display: flex;
  flex-direction: column;
  gap: .55rem
}

.cs-walk-tab {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-align: left;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: .85rem 1.1rem;
  cursor: pointer;
  font-family: 'Cabinet Grotesk', sans-serif;
  transition: border-color .2s, background .2s, transform .15s
}

.cs-walk-tab:hover {
  border-color: var(--border2);
  transform: translateX(2px)
}

.cs-walk-tab.active {
  border-color: var(--hsm-blue);
  background: var(--hsm-blue-soft)
}

.cs-walk-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border2);
  flex-shrink: 0;
  transition: background .2s
}

.cs-walk-tab.active .cs-walk-tab-dot {
  background: var(--hsm-blue)
}

.cs-walk-tab-nm {
  font-size: .87rem;
  font-weight: 700;
  color: var(--ink)
}

.cs-walk-tab.active .cs-walk-tab-nm {
  color: var(--hsm-blue-text)
}

.cs-walk-note {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 380px
}

.cs-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem
}

.cs-phone {
  width: 270px;
  aspect-ratio: 9/19.5;
  background: #000;
  border-radius: 38px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  position: relative;
  flex-shrink: 0
}

.cs-phone::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #000;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .06);
}

.cs-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--card-bg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center
}

.cs-phone-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0a0a0a
}

.cs-phone-lbl {
  font-family: 'Geist Mono', monospace;
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .4rem
}

.cs-phone-lbl::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hsm-blue)
}

@media(max-width:900px) {
  .cs-walk-in {
    grid-template-columns: 1fr;
    padding-left: 1.5rem;
    padding-right: 1.5rem
  }

  .cs-phone-wrap {
    margin: 0 auto
  }
}

@media(max-width:900px) {
  .cs-overview {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .cs-cap-grid {
    grid-template-columns: 1fr
  }

  .cs-hero {
    grid-template-columns: 1fr;
    text-align: left
  }

  .cs-challenge {
    grid-template-columns: 1fr;
    gap: .5rem
  }

  .cs-back {
    padding: 6rem 1.5rem 0
  }

  .cs-hero,
  .cs-overview,
  .cs-caps,
  .cs-arch-in,
  .cs-challenges {
    padding-left: 1.5rem;
    padding-right: 1.5rem
  }

  .cs-tech-band {
    padding: 3rem 1.5rem
  }
}
