:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --ink: #111827;
  --ink-soft: #344054;
  --muted: #667085;
  --line: #d8dee8;
  --line-strong: #bac5d5;
  --blue: #175cd3;
  --blue-dark: #0b3b85;
  --green: #099250;
  --red: #d92d20;
  --gold: #b7791f;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.09);
  --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.08);
  --radius: 8px;
  --nav-h: 74px;
  --maxw: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", Inter, ui-sans-serif, system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b101b;
  --surface: #111827;
  --surface-2: #172033;
  --ink: #f3f6fb;
  --ink-soft: #c6d0df;
  --muted: #94a3b8;
  --line: #263245;
  --line-strong: #3a4a63;
  --blue: #70a7ff;
  --blue-dark: #a8c7ff;
  --green: #47cd89;
  --red: #ff8a80;
  --gold: #f1c45c;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    linear-gradient(180deg, rgba(23, 92, 211, 0.06), transparent 420px),
    var(--bg);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: calc(100% - 40px);
  max-width: var(--maxw);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #ffffff;
  font-family: var(--mono);
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: var(--shadow-sm);
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.theme-button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.nav-links a:hover,
.theme-button:hover {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.theme-button {
  min-width: 66px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 0;
  place-items: center;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle span + span {
  margin-top: 5px;
}

.hero {
  min-height: 92svh;
  padding: calc(var(--nav-h) + 84px) 0 48px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.28;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-title,
.contact-panel h2 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(8px);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-sm);
}

.hero-status-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.hero-status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: pulseRing 1.8s ease-out infinite;
}

.hero-status-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: none;
}

.hero h1 {
  max-width: 12em;
  font-size: clamp(44px, 6.4vw, 80px);
  font-weight: 700;
  overflow-wrap: break-word;
}

.hero-highlight {
  position: relative;
  background: linear-gradient(100deg, var(--blue), var(--green) 92%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.hero-tags li {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

/* Staggered hero entrance ------------------------------------------- */
.hero-copy .reveal:nth-child(1) { transition-delay: 60ms; }
.hero-copy .reveal:nth-child(2) { transition-delay: 140ms; }
.hero-copy .reveal:nth-child(3) { transition-delay: 220ms; }
.hero-copy .reveal:nth-child(4) { transition-delay: 300ms; }
.hero-copy .reveal:nth-child(5) { transition-delay: 380ms; }
.hero-visual.reveal { transition-delay: 240ms; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  padding: 12px 18px;
  font-weight: 750;
  font-size: 14px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.button.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
}

.button.quiet {
  border-color: transparent;
  color: var(--blue);
}

.hero-visual {
  min-width: 0;
}

/*
 * Hero showcase: a browser-framed "main" project anchors the left and
 * spans both rows; two compact side cards stack on the right. A floating
 * live badge and ambient glow/grid add depth without crowding content.
 */
.hero-showcase {
  position: relative;
  height: clamp(430px, 40vw, 520px);
  padding: 26px 22px 26px 14px;
  display: grid;
  grid-template-columns: 1.3fr 0.92fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

/* Ambient atmosphere ------------------------------------------------ */
.showcase-glow {
  position: absolute;
  inset: 4% -6% 4% -8%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 48% at 72% 22%, color-mix(in srgb, var(--blue) 26%, transparent), transparent 70%),
    radial-gradient(42% 44% at 12% 86%, color-mix(in srgb, var(--green) 20%, transparent), transparent 72%);
  filter: blur(14px);
  opacity: 0.9;
  animation: stackGlow 9s ease-in-out infinite alternate;
}

.showcase-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--line-strong) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line-strong) 55%, transparent) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(74% 74% at 58% 42%, #000, transparent 80%);
          mask-image: radial-gradient(74% 74% at 58% 42%, #000, transparent 80%);
  opacity: 0.4;
}

/* Main browser-framed card ----------------------------------------- */
.showcase-main {
  position: relative;
  z-index: 2;
  grid-row: 1 / -1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow:
    -16px 28px 60px rgba(11, 59, 133, 0.16),
    0 16px 40px rgba(16, 24, 40, 0.12);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease, border-color 320ms ease;
}

.showcase-main:hover {
  transform: translateY(-6px);
  border-color: var(--blue);
  box-shadow:
    -20px 38px 80px rgba(11, 59, 133, 0.24),
    0 22px 54px rgba(16, 24, 40, 0.18);
}

.showcase-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--surface-2) 72%, var(--surface));
  border-bottom: 1px solid var(--line);
}

.showcase-chrome .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.showcase-chrome .dot:nth-child(1) { background: var(--red); }
.showcase-chrome .dot:nth-child(2) { background: var(--gold); }
.showcase-chrome .dot:nth-child(3) { background: var(--green); }

.showcase-chrome em {
  margin-left: 10px;
  padding: 3px 12px;
  font: 600 11px/1 var(--mono);
  font-style: normal;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.showcase-shot {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #050505;
}

.showcase-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-main:hover .showcase-shot img {
  transform: scale(1.04);
}

.showcase-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.showcase-caption-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.showcase-caption strong {
  font-size: 15px;
  line-height: 1.15;
  color: var(--ink);
}

.showcase-caption small {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

.showcase-caption-cta {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--blue);
  font-weight: 900;
  transition: transform 260ms ease, background 260ms ease, color 260ms ease;
}

.showcase-main:hover .showcase-caption-cta {
  background: var(--blue);
  color: #fff;
  transform: translateX(3px);
}

/* Side cards -------------------------------------------------------- */
.showcase-side {
  position: relative;
  z-index: 2;
  display: block;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.showcase-side:hover {
  transform: translateY(-5px);
  border-color: var(--blue);
  box-shadow: 0 22px 46px rgba(11, 59, 133, 0.22);
}

.showcase-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-side:hover img {
  transform: scale(1.05);
}

.showcase-side span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 2px;
  padding: 34px 14px 12px;
  color: #ffffff;
  background: linear-gradient(to top, rgba(8, 12, 22, 0.9), rgba(8, 12, 22, 0.55) 55%, transparent);
}

.showcase-side strong {
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.showcase-side small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 700;
}

/* Live badge — overlay chip on the realtime board ------------------ */
.showcase-badge {
  position: absolute;
  z-index: 4;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 11px;
  background: rgba(10, 15, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  animation: floatBadge 6s ease-in-out infinite;
}

.showcase-badge .pulse {
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.showcase-badge .pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: pulseRing 1.8s ease-out infinite;
}

.showcase-badge-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.showcase-badge-copy small {
  display: block;
  margin-top: 1px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

/* Hero visual motion ------------------------------------------------ */
@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes pulseRing {
  0%   { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(3.4); opacity: 0; }
}

@keyframes stackGlow {
  0%   { opacity: 0.7; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-glow,
  .showcase-badge,
  .showcase-badge .pulse::after,
  .hero-status-dot::after {
    animation: none !important;
  }
}

.hero-metrics {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin-top: 64px;
  box-shadow: var(--shadow-sm);
}

.hero-metrics div {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics strong {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.section {
  padding: clamp(76px, 10vw, 132px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -8px;
}

.section-title {
  font-size: clamp(34px, 5.4vw, 66px);
  font-weight: 830;
  max-width: 820px;
}

.awards {
  position: relative;
  padding-top: clamp(64px, 8vw, 108px);
  background:
    linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--surface) 78%, transparent) 100%);
}

.award-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.award-media {
  position: relative;
  height: clamp(320px, 38vw, 500px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.award-media img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.award-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  max-width: calc(100% - 36px);
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(10, 15, 26, 0.74);
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.award-badge strong {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
}

.award-badge span {
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.award-copy {
  min-width: 0;
}

.award-copy h2 {
  max-width: 780px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 4.8vw, 62px);
  font-weight: 830;
  line-height: 1;
  letter-spacing: -0.02em;
}

.award-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.68;
}

.award-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.award-facts li {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.award-facts span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.award-facts strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.award-copy .stack-list {
  margin-top: 0;
  padding-top: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
}

.rich-copy {
  display: grid;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
}

.rich-copy p {
  margin: 0;
}

.work {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.filter:hover,
.filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-rows: 240px 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card.featured {
  grid-template-rows: 310px 1fr;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.project-card.is-hidden {
  display: none;
}

.project-media {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.project-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.project-kicker {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.project-body h3 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 31px);
  line-height: 1.08;
  letter-spacing: 0;
}

.project-body p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  line-height: 1.62;
}

.project-points {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  line-height: 1.45;
}

.project-points li {
  position: relative;
  padding-left: 18px;
}

.project-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.project-links {
  margin-top: 18px;
}

.project-links a {
  display: inline-flex;
  color: var(--blue);
  font-weight: 800;
  border-bottom: 1px solid transparent;
}

.project-links a:hover {
  border-color: currentColor;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 22px;
}

.stack-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 6px 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 750;
}

.mock-dashboard {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(23, 92, 211, 0.18), transparent 48%),
    var(--surface-2);
}

.mock-topbar {
  height: 34px;
  border-radius: 6px;
  background: var(--ink);
  opacity: 0.92;
  margin-bottom: 14px;
}

.mock-layout {
  height: calc(100% - 48px);
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1.2fr;
  gap: 10px;
}

.mock-layout span,
.mock-layout i,
.chart-card,
.line-chart {
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.mock-layout span:first-child {
  grid-row: span 2;
  background: linear-gradient(160deg, var(--blue), var(--green));
}

.mock-layout i {
  min-height: 56px;
}

.split-media {
  background: #eaf1ff;
}

.split-media .media-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.split-media .media-phone {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 108px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.project-shot-media {
  background: #0a0f1a;
}

.project-shot-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.priceboard-media {
  background: #050505;
}

.priceboard-media > img {
  object-position: top left;
}

.phien-media {
  background: #0f1d11;
}

.phien-media > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosneuro-media {
  background: #eef4ff;
}

.eparking-media {
  background: #101828;
}

.eparking-media > img {
  object-position: top center;
}

.phien-media .product-float {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: 72px;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.18));
}

.data-media,
.board-media,
.system-media {
  padding: 18px;
}

.data-media {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.chart-card.large {
  grid-row: span 2;
  background:
    linear-gradient(180deg, transparent 68%, rgba(9, 146, 80, 0.22) 68%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(23, 92, 211, 0.2) 18px 24px),
    var(--surface);
}

.line-chart {
  background:
    linear-gradient(135deg, transparent 45%, rgba(23, 92, 211, 0.32) 46%, rgba(23, 92, 211, 0.32) 50%, transparent 51%),
    var(--surface);
}

.board-media {
  display: grid;
  align-content: center;
  gap: 10px;
  background: #101828;
}

.ticker-row {
  display: flex;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 13px 14px;
  color: #ffffff;
  font-family: var(--mono);
}

.ticker-row.up strong {
  color: #47cd89;
}

.ticker-row.down strong {
  color: #ff8a80;
}

.ticker-row.ref strong {
  color: #f1c45c;
}

.system-media {
  display: grid;
  place-content: center;
  justify-items: center;
  background:
    linear-gradient(90deg, rgba(23, 92, 211, 0.1), rgba(9, 146, 80, 0.1)),
    var(--surface-2);
}

.workflow-node {
  width: 160px;
  height: 44px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.workflow-node.alt {
  width: 210px;
  border-color: var(--blue);
}

.workflow-node.done {
  width: 132px;
  border-color: var(--green);
}

.workflow-line {
  width: 2px;
  height: 24px;
  background: var(--line-strong);
}

.workflow-line.short {
  height: 18px;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(24px, 6vw, 72px);
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.timeline-item:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline-meta {
  display: grid;
  gap: 8px;
  align-content: start;
}

.timeline-meta span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
}

.timeline-meta strong {
  font-size: 18px;
}

.timeline-body h3 {
  margin: 0;
  font-size: clamp(23px, 3vw, 34px);
  letter-spacing: 0;
}

.timeline-body p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 820px;
}

.stack {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.stack-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stack-groups div {
  min-height: 176px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.stack-groups h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.stack-groups p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 92, 211, 0.12), rgba(9, 146, 80, 0.08)),
    var(--surface);
  padding: clamp(28px, 6vw, 64px);
  box-shadow: var(--shadow-sm);
}

.contact-panel h2 {
  max-width: 840px;
  font-size: clamp(36px, 6vw, 78px);
}

.contact-panel p {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.65;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer a:hover {
  color: var(--blue);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button,
  .project-card {
    transition: none;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 56px);
  }

  .hero-grid,
  .award-panel,
  .two-col {
    grid-template-columns: 1fr;
  }

  .award-panel {
    align-items: stretch;
  }

  .award-media {
    height: 360px;
  }

  .award-facts {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    height: auto;
    padding: 8px 0 30px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .showcase-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .showcase-shot {
    min-height: 240px;
  }

  .showcase-side img {
    min-height: 150px;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-metrics div {
    border-bottom: 1px solid var(--line);
  }

  .hero-metrics div:nth-child(2n) {
    border-right: 0;
  }

  .hero-metrics div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .filters {
    justify-content: flex-start;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .brand-copy small {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 14px;
    right: 14px;
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
  }

  body.nav-open .nav-links {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a,
  .theme-button {
    width: 100%;
    text-align: left;
    padding: 12px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 48px);
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-showcase {
    padding: 4px 0 30px;
    gap: 12px;
  }

  .showcase-side img {
    min-height: 132px;
  }

  .showcase-badge {
    padding: 8px 12px 8px 10px;
  }

  .showcase-badge-copy small {
    display: none;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-metrics div,
  .hero-metrics div:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-metrics div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 68px 0;
  }

  .award-panel {
    padding: 14px;
  }

  .award-media {
    height: 260px;
  }

  .award-badge {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 10px 13px;
  }

  .award-badge strong {
    font-size: 20px;
  }

  .award-copy {
    padding: 2px 2px 6px;
  }

  .award-copy h2 {
    font-size: clamp(32px, 9vw, 42px);
  }

  .project-card,
  .project-card.featured {
    grid-template-rows: 220px 1fr;
  }

  .project-body {
    padding: 20px;
  }

  .split-media .media-phone {
    width: 82px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stack-groups {
    grid-template-columns: 1fr;
  }
}
