@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: #07080b;
  --am-surface: #101218;
  --am-surface-2: #151821;
  --am-text: #f5f7fa;
  --am-muted: #9ca3b2;
  --am-accent: #5b7cff;
  --am-accent-2: #8b5cf6;
  --am-border: rgba(255, 255, 255, 0.10);
  --am-success: #52d39a;
  --am-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --am-radius-xl: 32px;
  --am-radius-lg: 24px;
  --am-radius-md: 16px;
  --am-container: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(91,124,255,.12), transparent 35%),
    radial-gradient(circle at 95% 18%, rgba(139,92,246,.10), transparent 30%),
    var(--am-bg);
  color: var(--am-text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
::selection { background: rgba(91,124,255,.35); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 1rem;
  z-index: 9999;
  padding: .8rem 1rem;
  background: #fff;
  color: #000;
  border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

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

.display-title,
h1, h2, h3, h4, h5 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.display-title { font-size: clamp(3.2rem, 8.6vw, 8.1rem); font-weight: 800; }
.section-title { font-size: clamp(2.25rem, 5vw, 4.6rem); font-weight: 750; max-width: 980px; }
.page-title { font-size: clamp(3.3rem, 8vw, 7.5rem); font-weight: 800; max-width: 1100px; }
.lead-copy { font-size: clamp(1.05rem, 1.6vw, 1.35rem); color: var(--am-muted); max-width: 760px; }
.section-label,
.mono {
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .73rem;
}
.section-label { display: inline-flex; align-items: center; gap: .7rem; color: #c9cfdb; margin-bottom: 1.5rem; }
.section-label::before { content: ''; width: 28px; 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(110deg, #fff 0%, #bfcaff 38%, #9c7cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.glass {
  background: linear-gradient(150deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  border: 1px solid var(--am-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), var(--am-shadow);
  backdrop-filter: blur(18px);
}

/* Navigation */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 1rem 0;
  transition: background .3s ease, border-color .3s ease, padding .3s ease;
}
.site-header.scrolled {
  padding: .65rem 0;
  background: rgba(7,8,11,.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--am-border);
}
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .8rem; font-weight: 700; font-family: 'Manrope', sans-serif; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--am-accent), var(--am-accent-2));
  color: #fff;
  font-size: .84rem;
  box-shadow: 0 10px 30px rgba(91,124,255,.28);
}
.desktop-nav { display: flex; align-items: center; gap: 1.35rem; }
.desktop-nav a { position: relative; color: #c9ced9; font-size: .92rem; }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -.35rem; height: 1px; background: var(--am-accent); transition: right .25s ease; }
.desktop-nav a:hover::after,
.desktop-nav a.active::after { right: 0; }
.desktop-nav a:hover,
.desktop-nav a.active { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--am-border);
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  color: #fff;
}
.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 999;
  padding: 7rem 1.25rem 2rem;
  background: rgba(7,8,11,.97);
  transform: translateY(-105%);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.mobile-panel.open { transform: translateY(0); }
.mobile-panel nav { display: grid; gap: 1rem; }
.mobile-panel nav a { font: 700 clamp(1.8rem, 8vw, 3.4rem)/1.1 'Manrope', sans-serif; color: #dfe4ee; border-bottom: 1px solid var(--am-border); padding: .5rem 0 1rem; }
.availability { display: inline-flex; align-items: center; gap: .55rem; color: #cbd1dc; font-size: .78rem; }
.availability-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--am-success); box-shadow: 0 0 0 6px rgba(82,211,154,.09); }

/* Buttons */
.btn-am {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 50px;
  padding: .82rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--am-border);
  background: var(--btn-bg);
  color: #fff;
  font-weight: 600;
  font-size: .92rem;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.btn-am:hover { transform: translateY(-2px); color: #fff; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.06); }
.btn-am-primary { --btn-bg: linear-gradient(135deg, var(--am-accent), #6d5cff 52%, var(--am-accent-2)); border-color: transparent; box-shadow: 0 18px 45px rgba(91,124,255,.25); }
.btn-am-primary:hover { box-shadow: 0 22px 55px rgba(91,124,255,.36); }
.btn-am-ghost { background: rgba(255,255,255,.03); }
.btn-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); transition: transform .25s ease; }
.btn-am:hover .btn-icon { transform: translateX(3px); }

/* Hero */
.hero { min-height: 100vh; padding: 10rem 0 4rem; display: flex; align-items: center; position: relative; }
.hero::before { content: ''; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, #000, transparent 80%); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; }
.hero-kicker { margin-bottom: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-visual { position: relative; min-height: 560px; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); animation: spin 24s linear infinite; }
.orbit.one { width: 450px; height: 450px; right: 0; top: 50px; }
.orbit.two { width: 310px; height: 310px; right: 70px; top: 120px; animation-direction: reverse; animation-duration: 17s; }
.orbit::after { content: ''; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--am-accent); top: 20%; left: 2%; box-shadow: 0 0 22px var(--am-accent); }
.hero-card {
  position: absolute;
  right: 1rem;
  top: 50%;
  width: min(100%, 450px);
  transform: translateY(-50%);
  border-radius: var(--am-radius-xl);
  padding: 1rem;
  overflow: hidden;
}
.hero-profile {
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(145deg, #222838, #11141c);
  position: relative;
}
.hero-profile img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.hero-profile .portrait-photo { opacity: 1; object-position: 50% 32%; }
.portrait-photo { object-position: 50% 28%; }
.website-thumbnail { object-position: top center; background: #f4f5f7; }
.floating-card { position: absolute; padding: .85rem 1rem; border-radius: 14px; background: rgba(15,17,24,.88); border: 1px solid var(--am-border); box-shadow: var(--am-shadow); backdrop-filter: blur(14px); font-size: .8rem; }
.floating-card.top { top: 3rem; left: -2rem; }
.floating-card.bottom { bottom: 3rem; right: -2rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); font-size: .72rem; letter-spacing: .14em; color: #8e95a4; writing-mode: vertical-rl; display: flex; align-items: center; gap: .6rem; }
.scroll-cue::after { content: ''; width: 1px; height: 48px; background: linear-gradient(var(--am-accent), transparent); animation: pulseLine 1.8s ease-in-out infinite; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--am-border); border-radius: var(--am-radius-lg); overflow: hidden; background: rgba(255,255,255,.025); }
.stat-item { padding: 1.6rem; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--am-border); }
.stat-item:last-child { border-right: 0; }
.stat-number { font: 700 clamp(2.1rem, 4vw, 3.7rem)/1 'Manrope', sans-serif; letter-spacing: -.05em; }
.stat-label { color: var(--am-muted); font-size: .92rem; }

/* Marquee */
.marquee-wrap { overflow: hidden; border-block: 1px solid var(--am-border); background: rgba(255,255,255,.02); }
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee-item { padding: 1.25rem 2rem; color: #cbd1dc; display: flex; align-items: center; gap: 2rem; white-space: nowrap; font-family: 'IBM Plex Mono', monospace; font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; }
.marquee-item::after { content: '✦'; color: var(--am-accent); }

/* Cards */
.pillar-card,
.service-card,
.standard-card,
.timeline-card,
.testimonial-card {
  height: 100%;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-lg);
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: transform .35s ease, border-color .35s ease, background .35s ease;
}
.pillar-card:hover,
.service-card:hover,
.standard-card:hover,
.testimonial-card:hover { transform: translateY(-7px); border-color: rgba(91,124,255,.45); background: linear-gradient(145deg, rgba(91,124,255,.11), rgba(255,255,255,.02)); }
.card-number { font: 500 .75rem/1 'IBM Plex Mono', monospace; color: #aeb6c7; }
.card-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: rgba(91,124,255,.12); border: 1px solid rgba(91,124,255,.2); font-size: 1.15rem; margin: 2.2rem 0 1.3rem; }
.clean-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.clean-list li { padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.07); color: #b6bdc9; font-size: .92rem; }
.clean-list li:last-child { border-bottom: 0; }

/* Projects */
.project-card {
  position: relative;
  padding: clamp(1rem, 2vw, 1.45rem);
  border-radius: var(--am-radius-xl);
  border: 1px solid var(--am-border);
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  overflow: hidden;
  transition: border-color .35s ease, background .35s ease;
}
.project-card:hover { border-color: rgba(91,124,255,.45); background: linear-gradient(145deg, rgba(91,124,255,.08), rgba(255,255,255,.018)); }
.project-media { aspect-ratio: 16/10; overflow: hidden; border-radius: 22px; background: #0e1117; position: relative; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.project-card:hover .project-media img { transform: scale(1.045); }
.browser-bar { position: absolute; inset: 0 0 auto; height: 34px; background: rgba(8,9,12,.72); backdrop-filter: blur(10px); display: flex; align-items: center; padding: 0 1rem; gap: .4rem; border-bottom: 1px solid rgba(255,255,255,.08); z-index: 1; }
.browser-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.28); }
.project-content { padding: 1.7rem .4rem .4rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0; }
.tag { display: inline-flex; align-items: center; padding: .42rem .7rem; border-radius: 999px; border: 1px solid var(--am-border); background: rgba(255,255,255,.025); color: #b8bfcc; font-size: .74rem; }
.project-links { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: 1rem; }
.text-link { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-size: .88rem; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: .25rem; }
.text-link:hover { color: #b9c4ff; border-color: var(--am-accent); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2rem 0 3rem; }
.filter-btn { border: 1px solid var(--am-border); background: rgba(255,255,255,.02); color: #b9c0cd; border-radius: 999px; padding: .65rem 1rem; }
.filter-btn:hover, .filter-btn.active { color: #fff; border-color: rgba(91,124,255,.5); background: rgba(91,124,255,.13); }
.project-grid-item.hide { display: none; }

/* Process */
.process-nav { position: sticky; top: 130px; }
.process-step { padding: 1.3rem 0; border-bottom: 1px solid var(--am-border); cursor: pointer; color: #737b8a; transition: color .25s ease; }
.process-step.active { color: #fff; }
.process-step span { display: block; color: var(--am-accent); margin-bottom: .3rem; }
.process-panel { min-height: 360px; border-radius: var(--am-radius-xl); padding: clamp(2rem, 6vw, 5rem); display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(circle at 80% 20%, rgba(91,124,255,.24), transparent 35%), linear-gradient(145deg, #151925, #0d0f15); border: 1px solid var(--am-border); }

/* Technology */
.tech-group { border-top: 1px solid var(--am-border); padding: 1.5rem 0; }
.tech-group:last-child { border-bottom: 1px solid var(--am-border); }
.tech-pills { display: flex; flex-wrap: wrap; gap: .65rem; }
.tech-pill { padding: .68rem .9rem; border: 1px solid var(--am-border); background: rgba(255,255,255,.025); border-radius: 12px; color: #c2c8d3; transition: transform .2s ease, border-color .2s ease; }
.tech-pill:hover { transform: translateY(-3px); border-color: rgba(91,124,255,.5); }

/* Timeline */
.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; padding-left: 4.4rem; margin-bottom: 2rem; }
.timeline-dot { position: absolute; left: 11px; top: 1.7rem; width: 15px; height: 15px; border: 3px solid #0b0d12; border-radius: 50%; background: var(--am-accent); box-shadow: 0 0 0 4px rgba(91,124,255,.18); }

/* CTA */
.cta-panel { border-radius: var(--am-radius-xl); padding: clamp(2rem, 6vw, 5rem); position: relative; overflow: hidden; background: linear-gradient(120deg, rgba(91,124,255,.18), rgba(139,92,246,.12), rgba(255,255,255,.035)); border: 1px solid rgba(255,255,255,.13); }
.cta-panel::before { content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(91,124,255,.3), transparent 65%); right: -160px; top: -220px; animation: float 7s ease-in-out infinite; }

/* Page hero / Case study */
.page-hero { padding: 12rem 0 5rem; min-height: 72vh; display: flex; align-items: end; position: relative; }
.page-hero::before { content: ''; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 78px 78px; mask-image: linear-gradient(to bottom, #000, transparent); }
.page-hero > .am-container { position: relative; z-index: 2; }
.case-meta { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--am-border); }
.case-meta-item { padding: 1.3rem; border-right: 1px solid var(--am-border); }
.case-meta-item:last-child { border-right: 0; }
.case-meta-label { color: #7f8795; font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; }
.case-visual { padding-top: 3rem; }
.case-visual .project-media { aspect-ratio: 16/8.8; box-shadow: var(--am-shadow); }
.case-copy { max-width: 760px; }
.case-copy p { color: #b4bbc8; font-size: 1.05rem; }
.case-number { font: 700 clamp(5rem, 13vw, 12rem)/.8 'Manrope', sans-serif; letter-spacing: -.08em; color: rgba(255,255,255,.05); position: absolute; right: 4vw; top: 6rem; }

/* Contact */
.form-shell { border: 1px solid var(--am-border); border-radius: var(--am-radius-xl); padding: clamp(1.5rem, 4vw, 3rem); background: rgba(255,255,255,.025); }
.form-label { color: #d8dde6; font-size: .86rem; margin-bottom: .5rem; }
.form-control, .form-select {
  min-height: 54px;
  background: #0c0e13;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  padding: .85rem 1rem;
}
.form-control:focus, .form-select:focus { background: #0d1016; color: #fff; border-color: var(--am-accent); box-shadow: 0 0 0 .25rem rgba(91,124,255,.12); }
.form-control::placeholder { color: #5f6775; }
.form-select option { background: #0d1016; }
textarea.form-control { min-height: 150px; resize: vertical; }
.invalid-feedback { color: #ff9caa; }
.form-status { display: none; padding: 1rem; border-radius: 13px; margin-top: 1rem; }
.form-status.show { display: block; }
.form-status.success { color: #c8ffe5; background: rgba(82,211,154,.11); border: 1px solid rgba(82,211,154,.25); }
.form-status.error { color: #ffd4da; background: rgba(255,90,115,.1); border: 1px solid rgba(255,90,115,.24); }
.contact-card { border-bottom: 1px solid var(--am-border); padding: 1.2rem 0; }
.contact-card:last-child { border-bottom: 0; }

/* Accordion */
.accordion-item { background: transparent; border: 0; border-bottom: 1px solid var(--am-border); }
.accordion-button { background: transparent; color: #fff; padding: 1.4rem 0; font-weight: 600; box-shadow: none !important; }
.accordion-button:not(.collapsed) { color: #fff; background: transparent; }
.accordion-button::after { filter: invert(1) grayscale(1); }
.accordion-body { color: var(--am-muted); padding: 0 0 1.5rem; }

/* Footer */
.site-footer { padding: 5rem 0 2rem; border-top: 1px solid var(--am-border); background: rgba(4,5,7,.55); }
.footer-links { display: grid; gap: .65rem; }
.footer-links a { color: #9ea6b5; }
.footer-links a:hover { color: #fff; }
.back-to-top { position: fixed; right: 1.2rem; bottom: 1.2rem; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--am-border); background: rgba(10,12,16,.84); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s ease; z-index: 900; backdrop-filter: blur(12px); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.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(-20px,25px,0); } }
@keyframes pulseLine { 0%, 100% { opacity: .35; transform: scaleY(.8); } 50% { opacity: 1; transform: scaleY(1); } }

@media (max-width: 1199.98px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .hero-visual { min-height: 480px; }
  .case-meta { grid-template-columns: repeat(3, 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) {
  .hero { padding-top: 9rem; }
  .hero-visual { margin-top: 3rem; }
  .hero-card { left: 50%; right: auto; transform: translate(-50%, -50%); }
  .orbit.one { left: 50%; right: auto; transform: translateX(-50%); }
  .orbit.two { left: 50%; right: auto; transform: translateX(-50%); }
  .stats-strip { grid-template-columns: repeat(2, 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) {
  .nav-actions .btn-am { display: none; }
  .brand span:last-child { display: none; }
  .display-title { font-size: clamp(3.1rem, 16vw, 5rem); }
  .hero { min-height: auto; padding-bottom: 6rem; }
  .hero-visual { min-height: 420px; }
  .hero-card { width: min(90%, 390px); }
  .floating-card.top { left: -.6rem; }
  .floating-card.bottom { right: -.6rem; }
  .orbit.one { width: 360px; height: 360px; }
  .orbit.two { width: 250px; height: 250px; }
  .scroll-cue { display: none; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat-item { border-right: 0; border-bottom: 1px solid var(--am-border); min-height: 120px; }
  .stat-item:last-child { border-bottom: 0; }
  .page-hero { padding-top: 9rem; min-height: 62vh; }
  .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; }
  .case-number { display: none; }
  .project-links { gap: .8rem 1rem; }
}

@media (max-width: 575.98px) {
  .am-container { width: min(calc(100% - 1.25rem), var(--am-container)); }
  .section { padding: 4.5rem 0; }
  .hero-actions .btn-am { width: 100%; }
  .hero-visual { min-height: 380px; }
  .orbit.one { width: 310px; height: 310px; }
  .orbit.two { width: 210px; height: 210px; }
  .floating-card { font-size: .7rem; max-width: 180px; }
  .case-meta { grid-template-columns: 1fr; }
  .case-meta-item { border-right: 0; }
  .case-meta-item:last-child { grid-column: auto; }
  .project-card { border-radius: 24px; }
  .project-media { border-radius: 17px; }
}

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

/* CV preview and locally generated project imagery */
.cv-preview{display:block;max-width:430px;margin-inline:auto;padding:14px;border:1px solid var(--am-border);border-radius:24px;background:linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.025));box-shadow:0 30px 80px rgba(0,0,0,.28);transition:transform .35s ease,border-color .35s ease,box-shadow .35s ease}.cv-preview:hover{transform:translateY(-7px) rotate(-.5deg);border-color:rgba(91,124,255,.55);box-shadow:0 40px 95px rgba(0,0,0,.38)}.cv-preview img{display:block;width:100%;height:auto;border-radius:14px;background:#fff}.website-thumbnail{object-fit:cover;object-position:top center;background:#0d1017}.project-media[style*="4/5"] .website-thumbnail{object-fit:cover;object-position:top center}@media(max-width:767.98px){.cv-preview{max-width:330px;padding:10px;border-radius:18px}.cv-preview img{border-radius:11px}}

/* Lightweight Bootstrap Icons fallback: keeps the project fully local. */
.bi{display:inline-block;font-style:normal;line-height:1;vertical-align:-.08em}
.bi::before{display:inline-block}
.bi-list::before{content:"☰"}
.bi-arrow-down-right::before{content:"↘"}
.bi-arrow-up-right::before{content:"↗"}
.bi-arrow-up::before{content:"↑"}
.bi-box-arrow-up-right::before{content:"↗"}
.bi-download::before{content:"↓"}
.bi-bounding-box::before{content:"◇"}
.bi-code-slash::before{content:"</>";font-size:.72em;font-weight:700}
.bi-wrench-adjustable::before{content:"⚙"}
.bi-diagram-3::before{content:"⌘"}
.bi-layout-text-window::before{content:"▤"}
.bi-phone::before{content:"▯"}
.bi-bullseye::before{content:"◎"}
.bi-compass::before{content:"◈"}
.bi-display::before{content:"▣"}
.bi-graph-up-arrow::before{content:"↗"}
