@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --am-bg: #07080d;
  --am-bg-soft: #0b0d14;
  --am-surface: #10131b;
  --am-surface-2: #151925;
  --am-text: #f4f6fb;
  --am-muted: #9ba3b3;
  --am-muted-2: #747d8e;
  --am-accent: #6680ff;
  --am-accent-2: #9a6cff;
  --am-cyan: #74ddff;
  --am-border: rgba(255,255,255,.105);
  --am-border-strong: rgba(255,255,255,.18);
  --am-success: #4fd49a;
  --am-shadow: 0 30px 90px rgba(0,0,0,.42);
  --am-shadow-soft: 0 18px 55px rgba(0,0,0,.28);
  --am-radius-xl: 32px;
  --am-radius-lg: 24px;
  --am-radius-md: 16px;
  --am-container: 1384px;
  --spot-x: 50vw;
  --spot-y: 25vh;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--am-bg); }
body {
  margin: 0;
  overflow-x: clip;
  min-width: 320px;
  color: var(--am-text);
  background:
    radial-gradient(800px circle at var(--spot-x) var(--spot-y), rgba(102,128,255,.075), transparent 42%),
    radial-gradient(circle at 8% 0%, rgba(102,128,255,.12), transparent 31%),
    radial-gradient(circle at 96% 16%, rgba(154,108,255,.085), transparent 28%),
    var(--am-bg);
  font-family: 'DM Sans', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0, transparent 68%);
}
body.menu-open { overflow: hidden; }
::selection { color: #fff; background: rgba(102,128,255,.38); }
a { color: inherit; text-decoration: none; }
a:hover { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  top: -80px;
  left: max(1rem, env(safe-area-inset-left));
  z-index: 9999;
  padding: .8rem 1rem;
  color: #07080d;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--am-shadow-soft);
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

.am-container {
  width: min(100%, var(--am-container));
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}
.am-container > .row { margin-right: 0; margin-left: 0; }
.section { position: relative; padding: clamp(5.5rem, 9vw, 9rem) 0; }
.section-sm { position: relative; padding: clamp(3rem, 5vw, 5rem) 0; }
.section-divider { border-top: 1px solid var(--am-border); }

.display-title, h1, h2, h3, h4, h5, h6 {
  color: var(--am-text);
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.display-title {
  max-width: 980px;
  margin: 0;
  font-size: clamp(4.2rem, 7.2vw, 7.5rem);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.075em;
}
.section-title {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  font-weight: 750;
  line-height: 1.02;
}
.page-title {
  max-width: 1160px;
  margin: 0;
  font-size: clamp(3.2rem, 6.2vw, 5.9rem);
  font-weight: 800;
  line-height: .98;
}
.lead-copy {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--am-muted);
  font-size: clamp(1.03rem, 1.45vw, 1.28rem);
  line-height: 1.72;
}
.section-label, .mono {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.5rem;
  color: #cbd1df;
}
.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: linear-gradient(90deg, var(--am-accent), var(--am-accent-2));
}
.text-muted-am { color: var(--am-muted) !important; }
.text-gradient {
  color: transparent;
  background: linear-gradient(112deg, #f8f9ff 0%, #bfc9ff 36%, #a37cff 82%, #77dfff 120%);
  background-clip: text;
  -webkit-background-clip: text;
}
.glass {
  border: 1px solid var(--am-border);
  background: linear-gradient(150deg, rgba(255,255,255,.075), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), var(--am-shadow);
  backdrop-filter: blur(18px);
}
.icon { width: 1em; height: 1em; flex: 0 0 auto; }

/* Header and navigation */
.site-header {
  position: fixed;
  z-index: 1100;
  top: 14px;
  right: 0;
  left: 0;
  pointer-events: none;
}
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1.2rem;
  padding-block: .55rem;
  border: 1px solid transparent;
  border-radius: 22px;
  pointer-events: auto;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, min-height .3s ease;
}
.site-header.scrolled .nav-shell {
  min-height: 62px;
  border-color: var(--am-border);
  background: rgba(8,10,15,.84);
  box-shadow: 0 18px 50px rgba(0,0,0,.2);
  backdrop-filter: blur(20px) saturate(140%);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: .78rem;
  min-width: 196px;
}
.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--am-accent), #725dff 58%, var(--am-accent-2));
  box-shadow: 0 13px 35px rgba(102,128,255,.27);
  font: 700 .75rem/1 'Manrope', sans-serif;
  letter-spacing: .02em;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
}
.brand-copy { display: grid; line-height: 1.06; }
.brand-copy strong { color: #fff; font: 700 .94rem/1.1 'Manrope', sans-serif; letter-spacing: -.02em; }
.brand-copy small { margin-top: .32rem; color: #858ea0; font: 500 .58rem/1 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(.9rem, 1.45vw, 1.35rem); }
.desktop-nav a {
  position: relative;
  padding: .55rem 0;
  color: #aeb6c6;
  font-size: .88rem;
  white-space: nowrap;
  transition: color .2s ease;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  right: 100%;
  bottom: .25rem;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--am-accent), var(--am-accent-2));
  transition: right .24s ease;
}
.desktop-nav a:hover, .desktop-nav a.active { color: #fff; }
.desktop-nav a:hover::after, .desktop-nav a.active::after { right: 0; }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; flex: 0 0 auto; }
.nav-cv-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .65rem .4rem;
  color: #c7cdda;
  font: 600 .78rem/1 'IBM Plex Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-cv-link:hover { color: #fff; }
.nav-cta { min-height: 46px !important; padding: .72rem 1rem !important; font-size: .84rem !important; }
.menu-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--am-border);
  border-radius: 15px;
  background: rgba(255,255,255,.035);
  transition: border-color .2s ease, background .2s ease;
}
.menu-toggle:hover { border-color: var(--am-border-strong); background: rgba(255,255,255,.065); }
.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  background: #fff;
  transform-origin: center;
  transition: transform .28s ease, top .28s ease;
}
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 26px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
.mobile-panel {
  position: fixed;
  z-index: 1050;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(7,8,13,.985);
  transform: translateY(-24px);
  transition: opacity .34s ease, transform .34s ease, visibility .34s;
}
.mobile-panel.open { visibility: visible; opacity: 1; transform: translateY(0); }
.mobile-panel-inner {
  display: flex;
  flex-direction: column;
  width: min(100%, 900px);
  min-height: 100%;
  margin-inline: auto;
  padding: 7.8rem clamp(1rem, 5vw, 3rem) 2rem;
}
.mobile-menu-label { color: #60697a; font: 500 .7rem/1 'IBM Plex Mono', monospace; letter-spacing: .16em; text-transform: uppercase; }
.mobile-panel nav { display: grid; margin-top: 1.6rem; }
.mobile-panel nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .72rem 0;
  color: #dce1eb;
  border-bottom: 1px solid var(--am-border);
  font: 700 clamp(2rem, 7vw, 4.2rem)/1.04 'Manrope', sans-serif;
  letter-spacing: -.055em;
  transition: color .2s ease, padding-left .2s ease;
}
.mobile-panel nav a span { color: #626b7b; font: 500 .66rem/1 'IBM Plex Mono', monospace; letter-spacing: .08em; }
.mobile-panel nav a:hover, .mobile-panel nav a.active { color: #9caeff; padding-left: .5rem; }
.mobile-panel-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: auto; padding-top: 2rem; }

/* Buttons */
.btn-am {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  gap: .65rem;
  padding: .85rem 1.25rem;
  color: #fff;
  border: 1px solid var(--am-border);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.btn-am:hover { color: #fff; border-color: var(--am-border-strong); background: rgba(255,255,255,.06); transform: translateY(-2px); }
.btn-am-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #607dff, #735cff 56%, #9866ff);
  box-shadow: 0 18px 45px rgba(102,128,255,.24), inset 0 1px 0 rgba(255,255,255,.23);
}
.btn-am-primary:hover { background: linear-gradient(135deg, #718aff, #7d68ff 56%, #a172ff); box-shadow: 0 24px 55px rgba(102,128,255,.32); }
.btn-am-ghost { background: rgba(255,255,255,.025); }
.btn-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: rgba(255,255,255,.12); transition: transform .22s ease; }
.btn-am:hover .btn-icon { transform: translate(2px,2px); }

/* Homepage hero */
.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: clamp(8.8rem, 11vw, 10.8rem) 0 2.2rem;
}
.hero-ambient {
  position: absolute;
  top: 13%;
  right: -10%;
  width: min(62vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102,128,255,.15), transparent 64%);
  filter: blur(15px);
  pointer-events: none;
}
.hero-container { position: relative; z-index: 1; }
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(340px, .68fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6.5rem);
}
.hero-copy { min-width: 0; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: clamp(1.7rem, 3vw, 2.6rem);
  color: #c4cad7;
  font: 500 .72rem/1.5 'IBM Plex Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.availability { display: inline-flex; align-items: center; gap: .55rem; color: #cbd1dc; font-size: .78rem; }
.availability-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--am-success); box-shadow: 0 0 0 6px rgba(79,212,154,.09); }
.hero-copy-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 2rem;
  margin-top: clamp(1.8rem, 3vw, 2.7rem);
}
.hero-location {
  display: grid;
  min-width: 160px;
  padding-left: 1.2rem;
  border-left: 1px solid var(--am-border);
}
.hero-location span { color: #747d8e; font-size: .76rem; }
.hero-location strong { color: #e8ebf3; font-size: .9rem; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
.hero-cv-link { display: inline-flex; align-items: center; gap: .55rem; padding: .8rem .5rem; color: #aeb6c6; font-size: .86rem; border-bottom: 1px solid transparent; }
.hero-cv-link:hover { color: #fff; border-bottom-color: var(--am-accent); }
.hero-visual { min-width: 0; }
.portrait-stage { position: relative; width: min(100%, 470px); margin-inline: auto 0; padding: 24px; }
.portrait-frame {
  position: relative;
  z-index: 2;
  overflow: hidden;
  aspect-ratio: 4/5;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 30px 8px 30px 8px;
  background: #0e1220;
  box-shadow: var(--am-shadow);
}
.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 -100px 100px rgba(5,8,18,.16);
  pointer-events: none;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 31%; transform: scale(1.06); transform-origin: 100% 31%; }
.portrait-index {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  width: 150px;
  padding: .65rem .75rem;
  color: #d8ddec;
  border: 1px solid var(--am-border);
  border-radius: 10px;
  background: rgba(9,11,17,.87);
  font: 500 .65rem/1 'IBM Plex Mono', monospace;
  letter-spacing: .1em;
}
.portrait-ring { position: absolute; z-index: 0; border: 1px solid rgba(102,128,255,.21); border-radius: 50%; pointer-events: none; }
.portrait-ring.one { inset: 7% -6% 4% 5%; animation: spin 32s linear infinite; }
.portrait-ring.two { inset: 18% 4% 15% -6%; border-color: rgba(154,108,255,.17); animation: spin 24s linear infinite reverse; }
.portrait-ring::after { content: ''; position: absolute; top: 13%; left: 4%; width: 8px; height: 8px; border-radius: 50%; background: var(--am-accent); box-shadow: 0 0 24px var(--am-accent); }
.floating-card {
  position: absolute;
  z-index: 5;
  display: grid;
  gap: .25rem;
  max-width: 215px;
  padding: .95rem 1rem;
  color: #dfe4ef;
  border: 1px solid var(--am-border);
  border-radius: 14px;
  background: rgba(9,11,17,.88);
  box-shadow: var(--am-shadow-soft);
  backdrop-filter: blur(16px);
  font-size: .76rem;
}
.floating-card strong { color: #fff; font-size: .78rem; font-weight: 500; }
.floating-card.top { top: 17%; left: -8%; }
.floating-card.bottom { right: -7%; bottom: 9%; }
.hero-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr)) auto;
  align-items: end;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: 1.35rem;
  border-top: 1px solid var(--am-border);
}
.hero-footer > div { display: grid; gap: .3rem; }
.hero-footer .mono { color: #697284; }
.hero-footer strong { color: #dfe3ec; font-size: .91rem; font-weight: 600; }
.hero-footer > a { display: inline-flex; align-items: center; justify-content: flex-end; gap: .5rem; color: #9da6b7; font-size: .78rem; }
.hero-footer > a:hover { color: #fff; }

/* Stats and marquee */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  overflow: hidden;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-lg);
  background: linear-gradient(140deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
}
.stat-item { display: flex; min-height: 142px; flex-direction: column; justify-content: space-between; padding: 1.6rem; border-right: 1px solid var(--am-border); }
.stat-item:last-child { border-right: 0; }
.stat-number { color: #f4f6fb; font: 700 clamp(2rem, 3.6vw, 3.5rem)/1 'Manrope', sans-serif; letter-spacing: -.06em; }
.stat-label { max-width: 210px; color: var(--am-muted); font-size: .86rem; line-height: 1.45; }
.marquee-wrap { overflow: hidden; border-block: 1px solid var(--am-border); background: rgba(255,255,255,.012); }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 2rem; padding: 1.2rem 2rem; color: #aeb6c6; font: 500 .7rem/1 'IBM Plex Mono', monospace; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.marquee-item::after { content: '✦'; color: var(--am-accent); font-size: .65rem; }

/* General cards */
.pillar-card, .service-card, .standard-card, .timeline-card, .testimonial-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: clamp(1.45rem, 3vw, 2.2rem);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.014));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: transform .34s cubic-bezier(.2,.8,.2,1), border-color .34s ease, background .34s ease, box-shadow .34s ease;
}
.pillar-card::before, .service-card::before, .standard-card::before {
  content: '';
  position: absolute;
  top: -90px;
  right: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(102,128,255,.13), transparent 67%);
  opacity: 0;
  transition: opacity .34s ease;
}
.pillar-card:hover, .service-card:hover, .standard-card:hover, .testimonial-card:hover {
  border-color: rgba(102,128,255,.38);
  background: linear-gradient(145deg, rgba(102,128,255,.075), rgba(255,255,255,.018));
  box-shadow: 0 24px 65px rgba(0,0,0,.24);
  transform: translateY(-7px);
}
.pillar-card:hover::before, .service-card:hover::before, .standard-card:hover::before { opacity: 1; }
.card-number { color: #788194; font: 500 .7rem/1 'IBM Plex Mono', monospace; letter-spacing: .08em; }
.card-icon { display: grid; width: 52px; height: 52px; place-items: center; margin: 2rem 0 1.2rem; color: #bec8ff; border: 1px solid rgba(102,128,255,.22); border-radius: 15px; background: rgba(102,128,255,.1); font-size: 1.2rem; }
.clean-list { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.clean-list li { padding: .55rem 0; color: #adb5c4; border-bottom: 1px solid rgba(255,255,255,.065); font-size: .9rem; }
.clean-list li:last-child { border-bottom: 0; }

/* Projects */
.project-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: .8rem;
  border: 1px solid var(--am-border);
  border-radius: 27px;
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease;
}
.project-card:hover { border-color: rgba(102,128,255,.42); box-shadow: 0 28px 78px rgba(0,0,0,.3); transform: translateY(-7px); }
.project-media { position: relative; overflow: hidden; aspect-ratio: 16/10; border-radius: 20px; background: #0d1017; }
.project-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 -80px 80px rgba(4,6,11,.16); }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.project-media img.portrait-photo { object-position: 100% 31%; transform: scale(1.06); transform-origin: 100% 31%; }
.project-card:hover .project-media img { transform: scale(1.035); filter: saturate(1.04); }
.browser-bar { position: absolute; z-index: 2; top: 0; right: 0; left: 0; display: flex; height: 32px; align-items: center; gap: .38rem; padding: 0 .9rem; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(7,9,13,.72); backdrop-filter: blur(12px); }
.browser-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); }
.project-content { padding: 1.5rem .65rem .7rem; }
.project-content h3 { line-height: 1.05; }
.project-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1rem 0; }
.tag { display: inline-flex; align-items: center; padding: .4rem .68rem; color: #aeb6c5; border: 1px solid var(--am-border); border-radius: 999px; background: rgba(255,255,255,.018); font-size: .7rem; line-height: 1.2; }
.project-links { display: flex; flex-wrap: wrap; gap: .8rem 1rem; padding-top: .9rem; }
.text-link { display: inline-flex; align-items: center; gap: .42rem; padding-bottom: .22rem; color: #e8ebf2; border-bottom: 1px solid rgba(255,255,255,.22); font-size: .84rem; }
.text-link:hover { color: #aebaff; border-color: var(--am-accent); }
.text-link .icon { width: .95rem; height: .95rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .55rem; margin: 2rem 0 3rem; }
.filter-btn { padding: .62rem .92rem; color: #aeb6c5; border: 1px solid var(--am-border); border-radius: 12px; background: rgba(255,255,255,.018); font-size: .82rem; transition: .2s ease; }
.filter-btn:hover, .filter-btn.active { color: #fff; border-color: rgba(102,128,255,.45); background: rgba(102,128,255,.11); }
.project-grid-item.hide { display: none; }

/* Process / technology / timeline */
.process-nav { position: sticky; top: 120px; }
.process-step { padding: 1.15rem 0; color: #687184; border-bottom: 1px solid var(--am-border); cursor: pointer; transition: color .2s ease, padding-left .2s ease; }
.process-step span { display: block; margin-bottom: .25rem; color: #7289ff; font: 500 .68rem/1 'IBM Plex Mono', monospace; }
.process-step:hover, .process-step.active { color: #fff; padding-left: .4rem; }
.process-panel { display: flex; min-height: 390px; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: clamp(2rem, 6vw, 5rem); border: 1px solid var(--am-border); border-radius: var(--am-radius-xl); background: radial-gradient(circle at 84% 18%, rgba(102,128,255,.23), transparent 35%), linear-gradient(145deg, #151a27, #0b0d13); box-shadow: var(--am-shadow-soft); }
.tech-group { padding: 1.45rem 0; border-top: 1px solid var(--am-border); }
.tech-group:last-child { border-bottom: 1px solid var(--am-border); }
.tech-pills { display: flex; flex-wrap: wrap; gap: .55rem; }
.tech-pill { padding: .63rem .82rem; color: #b9c0cc; border: 1px solid var(--am-border); border-radius: 11px; background: rgba(255,255,255,.018); font-size: .82rem; transition: transform .2s ease, border-color .2s ease; }
.tech-pill:hover { border-color: rgba(102,128,255,.45); transform: translateY(-2px); }
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 18px; width: 1px; background: linear-gradient(var(--am-accent), var(--am-border), transparent); }
.timeline-item { position: relative; margin-bottom: 2rem; padding-left: 4.3rem; }
.timeline-dot { position: absolute; top: 1.65rem; left: 11px; width: 15px; height: 15px; border: 3px solid var(--am-bg); border-radius: 50%; background: var(--am-accent); box-shadow: 0 0 0 4px rgba(102,128,255,.16); }

/* CTA / page heroes / case studies */
.cta-panel { position: relative; overflow: hidden; padding: clamp(2rem, 6vw, 5.2rem); border: 1px solid rgba(255,255,255,.13); border-radius: var(--am-radius-xl); background: linear-gradient(120deg, rgba(102,128,255,.15), rgba(154,108,255,.1), rgba(255,255,255,.025)); }
.cta-panel::before { content: ''; position: absolute; top: -240px; right: -170px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(102,128,255,.28), transparent 66%); animation: float 8s ease-in-out infinite; }
.cta-panel > * { position: relative; z-index: 1; }
.page-hero { position: relative; display: flex; min-height: 70vh; align-items: flex-end; overflow: hidden; padding: 12rem 0 5.5rem; }
.page-hero::before { content: ''; position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 78px 78px; mask-image: linear-gradient(to bottom, #000, transparent); }
.page-hero::after { content: ''; position: absolute; top: 5%; right: -10%; width: 650px; height: 650px; border-radius: 50%; background: radial-gradient(circle, rgba(102,128,255,.13), transparent 66%); }
.page-hero > .am-container { position: relative; z-index: 2; }
.case-number { position: absolute; z-index: 1; top: 7rem; right: 4vw; color: rgba(255,255,255,.045); font: 800 clamp(5rem, 13vw, 12rem)/.8 'Manrope', sans-serif; letter-spacing: -.09em; }
.case-meta { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); overflow: hidden; border: 1px solid var(--am-border); border-radius: 18px; background: rgba(255,255,255,.014); }
.case-meta-item { padding: 1.25rem; border-right: 1px solid var(--am-border); }
.case-meta-item:last-child { border-right: 0; }
.case-meta-label { color: #747d8e; font: 500 .66rem/1 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
.case-visual { padding-top: 3rem; }
.case-visual .project-media { aspect-ratio: 16/8.8; box-shadow: var(--am-shadow); }
.case-copy { max-width: 780px; }
.case-copy p { color: #b3bbc9; font-size: 1.04rem; }

/* Forms / accordion */
.form-shell { padding: clamp(1.4rem, 4vw, 3rem); border: 1px solid var(--am-border); border-radius: var(--am-radius-xl); background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); }
.form-label { margin-bottom: .45rem; color: #d9dee8; font-size: .83rem; }
.form-control, .form-select { min-height: 55px; padding: .85rem 1rem; color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: #0b0e15; }
.form-control:focus, .form-select:focus { color: #fff; border-color: var(--am-accent); background: #0d1018; box-shadow: 0 0 0 .22rem rgba(102,128,255,.12); }
.form-control::placeholder { color: #596274; }
.form-select option { background: #0d1018; }
textarea.form-control { min-height: 155px; resize: vertical; }
.invalid-feedback { color: #ff9dab; }
.form-status { display: none; margin-top: 1rem; padding: 1rem; border-radius: 12px; }
.form-status.show { display: block; }
.form-status.success { color: #c8ffe5; border: 1px solid rgba(79,212,154,.25); background: rgba(79,212,154,.1); }
.form-status.error { color: #ffd4da; border: 1px solid rgba(255,90,115,.24); background: rgba(255,90,115,.09); }
.contact-card { padding: 1.2rem 0; border-bottom: 1px solid var(--am-border); }
.contact-card:last-child { border-bottom: 0; }
.accordion-item { border: 0; border-bottom: 1px solid var(--am-border); background: transparent; }
.accordion-button { padding: 1.35rem 0; color: #fff; background: transparent; box-shadow: none !important; font-weight: 600; }
.accordion-button:not(.collapsed) { color: #fff; background: transparent; }
.accordion-button::after { filter: invert(1) grayscale(1); opacity: .7; }
.accordion-body { padding: 0 0 1.5rem; color: var(--am-muted); }

/* Footer / misc */
.site-footer { padding: 5rem 0 2rem; border-top: 1px solid var(--am-border); background: rgba(3,4,7,.48); }
.site-footer .brand { min-width: auto; }
.footer-links { display: grid; gap: .6rem; }
.footer-links a { color: #98a1b1; }
.footer-links a:hover { color: #fff; }
.back-to-top { position: fixed; z-index: 900; right: 1.15rem; bottom: 1.15rem; display: grid; visibility: hidden; width: 48px; height: 48px; place-items: center; opacity: 0; color: #fff; border: 1px solid var(--am-border); border-radius: 15px; background: rgba(9,11,16,.84); transform: translateY(12px); backdrop-filter: blur(12px); transition: .24s ease; }
.back-to-top.visible { visibility: visible; opacity: 1; transform: translateY(0); }
.cv-preview { display: block; max-width: 430px; margin-inline: auto; padding: 12px; border: 1px solid var(--am-border); border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.018)); box-shadow: var(--am-shadow); transition: transform .35s ease, border-color .35s ease; }
.cv-preview:hover { border-color: rgba(102,128,255,.5); transform: translateY(-7px) rotate(-.35deg); }
.cv-preview img { width: 100%; border-radius: 13px; background: #fff; }
.website-thumbnail { background: #0d1017; }

/* Reveal safely defaults to visible when JavaScript fails. */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.js .reveal.visible { opacity: 1; transform: translateY(0); }
.js .reveal-delay-1 { transition-delay: .08s; }
.js .reveal-delay-2 { transition-delay: .16s; }
.js .reveal-delay-3 { transition-delay: .24s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes float { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-18px,22px,0); } }

@media (max-width: 1279.98px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-block; }
  .hero-layout { grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); gap: 2rem; }
  .display-title { font-size: clamp(4rem, 7.7vw, 6.6rem); }
  .case-meta { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .case-meta-item:nth-child(3) { border-right: 0; }
  .case-meta-item:nth-child(-n+3) { border-bottom: 1px solid var(--am-border); }
}

@media (max-width: 991.98px) {
  .nav-cv-link { display: none; }
  .hero { min-height: auto; padding-top: 9rem; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 850px; }
  .display-title { font-size: clamp(4.2rem, 10vw, 6.6rem); }
  .hero-copy-grid { grid-template-columns: minmax(0,1fr) auto; }
  .hero-visual { margin-top: 1rem; }
  .portrait-stage { width: min(78%, 500px); margin-inline: auto; }
  .hero-footer { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .hero-footer > a { display: none; }
  .stats-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--am-border); }
  .process-nav { position: static; margin-bottom: 2rem; }
  .process-step { display: inline-block; margin-right: 1rem; }
}

@media (max-width: 767.98px) {
  .site-header { top: 8px; }
  .nav-shell { min-height: 60px; gap: .65rem; }
  .site-header.scrolled .nav-shell { min-height: 58px; }
  .brand { min-width: 0; gap: .65rem; }
  .brand-mark { width: 40px; height: 40px; border-radius: 13px; }
  .brand-copy strong { font-size: .84rem; }
  .brand-copy small { font-size: .5rem; }
  .nav-cta { display: none; }
  .hero { padding-top: 8.4rem; }
  .hero-kicker { align-items: flex-start; font-size: .64rem; line-height: 1.55; }
  .display-title { font-size: clamp(3.25rem, 13.2vw, 5.1rem); line-height: .96; letter-spacing: -.065em; }
  .hero-copy-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hero-location { display: none; }
  .hero-actions .btn-am { flex: 1 1 180px; }
  .portrait-stage { width: min(92%, 430px); margin-top: 1rem; padding: 18px; }
  .floating-card.top { left: -1%; }
  .floating-card.bottom { right: -1%; }
  .hero-footer { grid-template-columns: 1fr 1fr; }
  .hero-footer > div:nth-child(3) { grid-column: 1/-1; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat-item { min-height: 118px; border-right: 0; border-bottom: 1px solid var(--am-border); }
  .stat-item:last-child { border-bottom: 0; }
  .page-hero { min-height: 62vh; padding-top: 9rem; }
  .case-number { display: none; }
  .case-meta { grid-template-columns: 1fr 1fr; }
  .case-meta-item { border-bottom: 1px solid var(--am-border) !important; }
  .case-meta-item:nth-child(even) { border-right: 0; }
  .case-meta-item:last-child { grid-column: 1/-1; border-bottom: 0 !important; }
  .project-links { gap: .75rem 1rem; }
}

@media (max-width: 575.98px) {
  .am-container { padding-inline: .75rem; }
  .section { padding: 4.7rem 0; }
  .section-sm { padding: 3.2rem 0; }
  .brand-copy { display: grid; }
  .mobile-panel-inner { padding-inline: .9rem; }
  .hero { padding-top: 7.8rem; padding-bottom: 1rem; }
  .hero-kicker { max-width: 330px; }
  .display-title { font-size: clamp(3rem, 13.6vw, 4.25rem); }
  .lead-copy { font-size: 1rem; line-height: 1.65; }
  .hero-actions { align-items: stretch; }
  .hero-actions .btn-am { width: 100%; flex-basis: 100%; }
  .hero-cv-link { justify-content: center; width: 100%; }
  .portrait-stage { width: 100%; padding: 14px; }
  .portrait-frame { border-radius: 24px 7px 24px 7px; }
  .floating-card { max-width: 180px; padding: .75rem .8rem; font-size: .66rem; }
  .floating-card.top { top: 16%; left: 0; }
  .floating-card.bottom { right: 0; bottom: 7%; }
  .portrait-index { right: 2px; width: 128px; font-size: .56rem; }
  .hero-footer { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .hero-footer strong { font-size: .8rem; }
  .section-title { font-size: clamp(2.2rem, 11vw, 3.25rem); }
  .page-title { font-size: clamp(2.75rem, 11.5vw, 3.75rem); }
  .case-meta { grid-template-columns: 1fr; }
  .case-meta-item { border-right: 0; }
  .case-meta-item:last-child { grid-column: auto; }
  .project-card { border-radius: 22px; }
  .project-media { border-radius: 16px; }
  .mobile-panel-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
