:root {
  --bg: #07111e;
  --bg2: #0d1a2d;
  --surface: #111f32;
  --surface2: #162943;
  --surface3: #1a3455;
  --border: rgba(158, 189, 219, 0.15);
  --text: #f3f7fb;
  --muted: #a1b4c9;
  --faint: #7089a4;
  --accent: #86b6f2;
  --accent2: #b4d7ff;
  --page-glow: rgba(99, 135, 194, 0.15);
  --round: 22px;
  --shadow: 0 24px 80px rgba(0, 4, 11, 0.26);
  --accent-pink: #f2a3b2;
  --header-bg: rgba(7, 16, 29, 0.78);
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}
body {
  margin: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(153, 42, 73, 0.18),
      transparent 28%
    ),
    radial-gradient(
      circle at left 20%,
      rgba(80, 138, 211, 0.14),
      transparent 28%
    ),
    linear-gradient(180deg, #07111e 0%, #0a1628 36%, #07111e 100%);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
  line-height: 1.62;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  background: var(--accent);
  color: #101526;
}
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.16;
  letter-spacing: -0.035em;
  margin: 0;
}
h1 {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
}
h2 {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}
h3 {
  font-size: 1.2rem;
}
ul {
  margin: 0;
  padding-left: 1.2em;
}
li + li {
  margin-top: 0.5em;
}
.page {
  position: relative;
}
.page:before {
  content: "";
  position: absolute;
  inset: -130px 0 auto 0;
  height: 620px;
  background: radial-gradient(
    ellipse at 80% 25%,
    var(--page-glow),
    transparent 55%
  );
  z-index: -1;
  pointer-events: none;
}
.container {
  width: min(1320px, calc(100% - 72px));
  margin: auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--accent2);
}
.eyebrow:before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 6px;
  background: var(--accent);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.83rem;
}
.tiny {
  font-size: 0.74rem;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.divider {
  height: 1px;
  background: var(--border);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(190, 213, 240, 0.11);
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
}
.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-weight: 850;
  letter-spacing: -0.03em;
  font-size: 1.02rem;
  white-space: normal;
  line-height: 1.08;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(150deg, #aa3151, #582443);
  font-size: 0.9rem;
  box-shadow: 0 7px 22px rgba(153, 36, 71, 0.22);
}
.brand small {
  display: block;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
  margin-top: 4px;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.topnav a {
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 0.85rem;
  font-weight: 670;
  color: #b7c9db;
  transition:
    background 0.2s,
    color 0.2s;
}
.topnav a:hover,
.topnav a[aria-current] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav-contact {
  font-size: 0.85rem !important;
}
.btn {
  border: 1px solid var(--border);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 10px 17px;
  font-weight: 760;
  font-size: 0.83rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 224, 253, 0.4);
  background: rgba(255, 255, 255, 0.09);
}
.btn-primary {
  background: var(--accent);
  color: #061320;
  border-color: transparent;
}
.btn-primary:hover {
  background: var(--accent2);
  border-color: transparent;
}
.btn[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}
.btn-icon {
  font-size: 1.1em;
}
.mobile-menu {
  display: none;
  border: 1px solid var(--border);
  background: transparent;
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 1.1rem;
}
.hero {
  padding: 88px 0 56px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 65px;
  align-items: center;
}
.hero-title {
  max-width: 850px;
  margin: 17px 0 25px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent-pink);
}
.hero-desc {
  font-size: clamp(1rem, 1.6vw, 1.19rem);
  color: #b6c6d6;
  max-width: 690px;
  line-height: 1.78;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 25px;
}
.hero-pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.pill {
  border: 1px solid var(--border);
  background: rgba(188, 210, 238, 0.06);
  padding: 7px 12px;
  border-radius: 999px;
  color: #b3c8dc;
  font-size: 0.77rem;
  font-weight: 700;
}
.hero-photo-box {
  position: relative;
  max-width: 435px;
  min-height: 485px;
  justify-self: end;
  width: 100%;
  border-radius: 35px;
  overflow: hidden;
  background: linear-gradient(145deg, #571c35, #11243e 74%);
  box-shadow: 0 37px 100px rgba(0, 0, 0, 0.32);
}
.hero-photo-box:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(4, 13, 23, 0.97));
}
.hero-photo-box img {
  height: 100%;
  width: 100%;
  position: absolute;
  object-fit: cover;
  object-position: 50% 30%;
  opacity: 0.91;
}
.photo-overlay {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 25px;
}
.photo-overlay strong {
  font-size: 1.12rem;
}
.photo-overlay small {
  display: block;
  color: #c4cedb;
  margin-top: 3px;
}
.photo-corner {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}
.hero-edge {
  position: absolute;
  right: -14px;
  top: -15px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  transform: rotate(12deg);
}
.home-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0 0 65px;
}
.h-stat {
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 25px 25px;
  background: rgba(19, 36, 57, 0.65);
}
.h-stat b {
  display: block;
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -0.055em;
}
.h-stat span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 650;
}
.section {
  padding: 55px 0 65px;
  scroll-margin-top: 95px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}
.section-head p {
  color: var(--muted);
  max-width: 660px;
  margin-top: 12px;
}
.section-nr {
  color: var(--accent);
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 750;
}
.section-head .meta {
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.83rem;
}
.cv-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 14px;
}
.cv-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 27px;
}
.cv-block h3 {
  margin-bottom: 18px;
}
.cv-block p,
.cv-block li {
  color: var(--muted);
  font-size: 0.88rem;
}
.cv-block strong {
  color: var(--text);
}
.cv-block .cv-date {
  display: block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.cv-line + .cv-line {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-list span {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  font-size: 0.73rem;
  font-weight: 760;
  color: #d3e0ec;
}
.cv-note {
  font-size: 0.74rem;
  margin-top: 11px;
  color: var(--faint);
}
.catalog-toolbar {
  border: 1px solid var(--border);
  border-radius: 21px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(18, 35, 57, 0.7);
  margin-bottom: 32px;
}
.catalog-toolbar input,
.catalog-toolbar select {
  color: var(--text);
  background: #0b1a2c;
  border: 1px solid var(--border);
  padding: 13px 16px;
  border-radius: 12px;
  min-width: 0;
  outline: none;
}
.catalog-toolbar input {
  flex: 1;
  min-width: 220px;
}
.catalog-toolbar input::placeholder {
  color: #788fa7;
}
.catalog-toolbar select {
  min-width: 155px;
}
.catalog-count {
  font-weight: 750;
  color: #adc5d9;
  font-size: 0.77rem;
  padding: 0 7px;
}
.project-group {
  padding-bottom: 31px;
  scroll-margin-top: 105px;
}
.group-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 30px 0 18px;
}
.group-head h3 {
  font-size: 1.43rem;
  letter-spacing: -0.035em;
}
.group-head p {
  font-size: 0.82rem;
  color: var(--muted);
}
.group-count {
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: #adc3da;
}
.personal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 17px;
}
.pcard {
  display: grid;
  grid-template-columns: 185px 278px minmax(0, 1fr);
  grid-template-rows: 78px minmax(176px, auto) 60px;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: #0b182b;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.pcard:hover {
  border-color: rgba(186, 213, 245, 0.38);
  transform: translateY(-2px);
}
.pc-cover,
.pc-head,
.pc-metrics,
.pc-story,
.pc-actions {
  min-width: 0;
}
.pc-cover {
  grid-column: 1;
  grid-row: 1/4;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
  padding: 22px;
  background: linear-gradient(155deg, var(--cmain), var(--cdark));
}
.pc-cover:after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: translate(70px, 80px);
}
.pc-cover .cover-letters {
  font-size: 2.9rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: #fff;
  text-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
.pc-cover .cover-word {
  font-size: 0.91rem;
  font-weight: 850;
  line-height: 1.25;
  margin-top: 13px;
  max-width: 140px;
  color: #fff;
  word-break: break-word;
  z-index: 1;
}
.pc-cover img {
  position: relative;
  z-index: 1;
  width: 125px;
  height: 125px;
  object-fit: contain;
  border-radius: 25px;
  filter: drop-shadow(0 9px 22px rgba(0, 0, 0, 0.14));
}
.pc-head {
  grid-column: 2;
  grid-row: 1;
  border-radius: 16px;
  background: linear-gradient(115deg, var(--cmid), var(--cmain));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  gap: 9px;
}
.pc-head h4 {
  font-size: 1.17rem;
  color: #fff;
  overflow-wrap: anywhere;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 6px 9px;
  white-space: nowrap;
  background: rgba(8, 22, 34, 0.46);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.status-dot {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 100%;
}
.status.not_started {
  color: #d8e4f1;
}
.status.in_progress {
  color: #ffcc80;
}
.status.completed {
  color: #8ceac2;
}
.status.ended {
  color: #e4c2f4;
}
.status.omni_completed {
  color: #adebdc;
}
.status.canceled {
  color: #e9a9b4;
}
.pc-metrics {
  grid-column: 2;
  grid-row: 2;
  background: linear-gradient(135deg, var(--csoft), #152d43);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 17px;
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mini-metric {
  background: rgba(2, 13, 27, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 10px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mini-metric img {
  height: 29px;
  width: 29px;
  flex: none;
}
.mini-metric strong {
  font-size: 0.87rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-metric small {
  font-size: 0.61rem;
  color: #b7cedd;
  font-weight: 600;
  display: block;
  line-height: 1.1;
}
.pc-story {
  grid-column: 3;
  grid-row: 1/3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 13px;
  border: 1px solid rgba(108, 159, 218, 0.17);
  border-radius: 17px;
  background: linear-gradient(
    125deg,
    rgba(23, 57, 105, 0.74),
    rgba(9, 26, 54, 0.94)
  );
  padding: 24px 25px;
}
.pc-story .story-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.64rem;
  font-weight: 900;
  color: var(--cbright);
  margin-bottom: 8px;
}
.pc-story p {
  color: #d2e2f0;
  font-size: 0.87rem;
  line-height: 1.72;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-story .story-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}
.story-chips span {
  border: 1px solid rgba(145, 179, 212, 0.24);
  border-radius: 7px;
  padding: 5px 9px;
  color: #a9c2d8;
  font-size: 0.69rem;
  font-weight: 700;
}
.pc-actions {
  grid-column: 2/4;
  grid-row: 3;
  border-radius: 14px;
  background: #202d3c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  align-items: center;
  padding: 8px 12px;
}
.pc-actions .btn {
  min-height: 38px;
  font-size: 0.75rem;
}
.pc-actions .spacer {
  flex: 1;
}
.pc-actions .action-caption {
  font-size: 0.68rem;
  color: #aab9c9;
  padding-left: 8px;
}
.school-subtitle {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 0.87rem;
}
.school-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.scard {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #0c1b2d;
  overflow: hidden;
  min-height: 237px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.scard:hover {
  transform: translateY(-2px);
  border-color: rgba(186, 213, 245, 0.42);
}
.sc-visual {
  background: linear-gradient(135deg, var(--cmain), var(--cdark));
  padding: 19px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.sc-visual strong {
  font-size: 2rem;
  font-weight: 950;
  color: #fff;
  letter-spacing: -0.08em;
}
.sc-visual span {
  font-size: 0.7rem;
  line-height: 1.35;
  color: #fff;
  word-break: break-word;
  font-weight: 750;
}
.sc-main {
  padding: 20px 21px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sc-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}
.sc-title h4 {
  font-size: 1.13rem;
}
.sc-main p {
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sc-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.sc-stats span {
  background: rgba(132, 170, 202, 0.09);
  border: 1px solid var(--border);
  font-size: 0.67rem;
  border-radius: 7px;
  padding: 3px 7px;
  color: #b6cbdf;
  font-weight: 750;
}
.sc-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}
.sc-footer .btn {
  min-height: 36px;
  padding: 7px 10px;
  font-size: 0.72rem;
}
.school-group + .school-group {
  margin-top: 16px;
}
.status-key {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  padding: 19px 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0d1b2d;
  margin: 12px 0 40px;
}
.status-key .k-title {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  margin-right: 5px;
}
.status-key .status {
  background: rgba(255, 255, 255, 0.045);
  padding: 6px 10px;
}
footer {
  border-top: 1px solid var(--border);
  background: #081423;
  padding: 40px 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
}
.footer-grid p {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 7px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.82rem;
  color: #b9d0e6;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-bottom {
  padding-top: 22px;
  margin-top: 25px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--faint);
}
.toast {
  position: fixed;
  z-index: 400;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 22px);
  opacity: 0;
  pointer-events: none;
  background: #f6faff;
  color: #11223b;
  padding: 12px 20px;
  border-radius: 13px;
  font-size: 0.79rem;
  font-weight: 850;
  box-shadow: 0 14px 60px rgba(0, 0, 0, 0.28);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* Standalone themed project pages */
.project-page {
  --bg: var(--theme-bg, #091727);
  --bg2: var(--theme-bg2, #101f32);
  --surface: var(--theme-surface, #16243b);
  --surface2: var(--theme-surface2, #1a3051);
  --text: var(--theme-text, #fff);
  --muted: var(--theme-muted, #aec2d7);
  --accent: var(--theme-accent, #78b7ff);
  --accent2: var(--theme-accent2, #bedcff);
  --page-glow: var(--theme-glow, rgba(83, 152, 234, 0.14));
  background: var(--bg);
  color: var(--text);
}
.project-page .site-header {
  background: color-mix(in srgb, var(--bg), black 12%);
  border-color: var(--border);
}
.project-page .btn-primary {
  color: var(--theme-button-ink, #091627);
}
.project-page .topnav a {
  color: var(--muted);
}
.project-page .topnav a:hover {
  color: var(--text);
}
.project-page .btn {
  color: var(--text);
}
.project-page .btn-primary {
  color: var(--theme-button-ink, #091627);
}
.detail-hero {
  padding: 72px 0 45px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 680;
  flex-wrap: wrap;
  margin-bottom: 33px;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 50px;
  align-items: center;
}
.detail-hero h1 {
  font-size: clamp(2.6rem, 5.7vw, 5.25rem);
  margin: 15px 0 19px;
}
.detail-hero .lede {
  font-size: 1.11rem;
  color: var(--muted);
  line-height: 1.77;
  max-width: 750px;
}
.detail-hero .detail-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}
.detail-hero .kicker-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.badge-outline {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 760;
}
.hero-app-cover {
  width: 300px;
  aspect-ratio: 1;
  justify-self: end;
  border-radius: 35px;
  background:
    radial-gradient(
      circle at 70% 20%,
      color-mix(in srgb, var(--accent) 48%, transparent),
      transparent 65%
    ),
    linear-gradient(145deg, var(--surface2), var(--bg2));
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.23);
}
.hero-app-cover .bigletters {
  font-size: 4rem;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.09em;
  color: var(--accent2);
}
.hero-app-cover .smallname {
  font-size: 0.95rem;
  font-weight: 850;
  color: var(--text);
  max-width: 230px;
  text-align: center;
}
.hero-app-cover img {
  width: 175px;
  height: 175px;
  object-fit: contain;
  border-radius: 32px;
}
.hero-app-cover:before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 19%, transparent);
  border-radius: 27px;
  pointer-events: none;
}
.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin: 30px 0 0;
}
.detail-stat {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  min-height: 102px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.detail-stat img {
  height: 43px;
  width: 43px;
}
.detail-stat strong {
  font-size: 1.36rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  display: block;
}
.detail-stat span {
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 720;
  display: block;
}
.detail-layout {
  display: grid;
  grid-template-columns: 234px minmax(0, 1fr);
  gap: 52px;
  padding: 30px 0 95px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 113px;
  align-self: start;
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 22px 14px;
  background: color-mix(in srgb, var(--surface) 65%, transparent);
}
.toc small {
  display: block;
  padding: 0 10px 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.62rem;
  color: var(--muted);
  font-weight: 900;
}
.toc a {
  display: block;
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 0.79rem;
  color: var(--muted);
  font-weight: 700;
}
.toc a:hover,
.toc a.active {
  color: var(--accent2);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.detail-main {
  min-width: 0;
}
.detail-section {
  scroll-margin-top: 107px;
  margin-bottom: 69px;
}
.detail-section h2 {
  font-size: 2rem;
  margin: 8px 0 19px;
}
.detail-section .section-intro {
  font-size: 0.96rem;
  color: var(--muted);
  margin-bottom: 25px;
  max-width: 800px;
}
.detail-section p {
  color: var(--muted);
  line-height: 1.75;
}
.detail-section p + p {
  margin-top: 13px;
}
.detail-section .warning {
  border-left: 3px solid #e8b46d;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  margin: 23px 0;
  color: var(--muted);
  font-size: 0.87rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.feature {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}
.feature .f-num {
  color: var(--accent);
  font:
    700 0.68rem ui-monospace,
    monospace;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 13px;
}
.feature h3 {
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  margin-bottom: 11px;
}
.feature p {
  font-size: 0.82rem;
  line-height: 1.72;
}
.feature .milestone {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 800;
  margin-top: 13px;
}
.impl-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.impl-step {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 21px 22px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.impl-n {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 17%, transparent);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}
.impl-step p {
  font-size: 0.86rem;
}
.code-card {
  border: 1px solid var(--border);
  border-radius: 17px;
  overflow: hidden;
  background: #071324;
}
.code-head {
  background: color-mix(in srgb, var(--surface) 68%, transparent);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
}
.code-head strong {
  font-size: 0.79rem;
}
.code-head small {
  color: var(--muted);
  font-size: 0.73rem;
  display: block;
  margin-top: 4px;
  word-break: break-word;
}
.code-copy {
  font-size: 0.76rem;
  background: transparent;
  color: var(--accent2);
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
}
.code-copy:hover {
  background: rgba(255, 255, 255, 0.07);
}
pre {
  margin: 0;
  padding: 21px 23px;
  white-space: pre;
  overflow-x: auto;
  line-height: 1.63;
  color: #cce4f5;
  font-size: 0.77rem;
  tab-size: 4;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.shot {
  position: relative;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  background: var(--surface);
  min-width: 0;
}
.shot button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  padding: 0;
}
.shot img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.3s;
}
.shot button:hover img {
  transform: scale(1.035);
}
.shot figcaption {
  padding: 11px 14px;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 760;
}
.shot-fallback {
  height: 220px;
  display: none;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 0.8rem;
}
.shot.broken img {
  display: none;
}
.shot.broken .shot-fallback {
  display: grid;
}
.gallery-blank {
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 30px 25px;
  border-radius: 16px;
  display: grid;
  gap: 10px;
  text-align: center;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.gallery-blank .pic-icon {
  font-size: 2rem;
  color: var(--accent);
}
.gallery-blank code {
  font-size: 0.83rem;
  color: var(--accent2);
  overflow-wrap: anywhere;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tech-card {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 79%, transparent);
  border-radius: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 17px;
  font-size: 0.85rem;
  font-weight: 780;
}
.tech-card img {
  width: 37px;
  height: 37px;
  flex: none;
}
.limits-list {
  display: grid;
  gap: 11px;
}
.limits-list li {
  color: var(--muted);
  font-size: 0.87rem;
}
.contact-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 25px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-radius: 19px;
  margin-top: 20px;
}
.contact-panel .email {
  font-size: 1.15rem;
  font-weight: 800;
  word-break: break-all;
  margin-top: 4px;
}
.contact-panel small {
  color: var(--muted);
}
.source-panel {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 20px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid var(--border);
  border-radius: 15px;
}
.source-panel a {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.source-panel p + p {
  margin-top: 11px;
}
.detail-footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.alt-status-note {
  color: var(--muted);
  font-size: 0.74rem;
  margin-top: 16px;
}
/* Project-specific mini visualizations */
.mini-demo {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 77%, transparent);
  margin-top: 24px;
}
.mini-head {
  padding: 17px 21px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.mini-head strong {
  font-size: 0.87rem;
}
.mini-head span {
  font-size: 0.68rem;
  color: var(--muted);
}
.mini-inner {
  padding: 23px;
}
.mini-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.mini-split label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-bottom: 7px;
}
.mini-split input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
.math-canvas {
  width: 100%;
  background: rgba(0, 5, 15, 0.21);
  border-radius: 13px;
  display: block;
}
.math-canvas .axis {
  stroke: rgba(157, 188, 219, 0.4);
  stroke-width: 1;
}
.math-canvas .gridline {
  stroke: rgba(157, 188, 219, 0.12);
  stroke-width: 0.8;
}
.math-canvas .curve {
  stroke: var(--accent);
  stroke-width: 2.9;
  fill: none;
}
.orbital {
  height: 245px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 17px;
  background: radial-gradient(circle, #172c48 1%, #09182b 70%);
}
.orbit-ring {
  height: 190px;
  width: 290px;
  border: 1px dashed rgba(171, 209, 245, 0.43);
  border-radius: 50%;
  position: relative;
  transform: rotate(-18deg);
}
.sun-demo {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffb95f;
  box-shadow: 0 0 50px #ff93374d;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.planet-demo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #54bbf0;
  position: absolute;
  top: 0;
  left: 50%;
  box-shadow: 0 0 18px #54bbf04d;
  animation: travel-orbit 12s linear infinite;
  transform-origin: 0 96px;
}
@keyframes travel-orbit {
  to {
    transform: rotate(360deg);
  }
}
.chat-demo {
  display: grid;
  gap: 13px;
  max-width: 500px;
  margin: auto;
}
.bubble {
  max-width: 84%;
  background: #244362;
  border-radius: 14px 14px 14px 4px;
  padding: 11px 16px;
  font-size: 0.85rem;
  color: #e4f3ff;
}
.bubble.mine {
  margin-left: auto;
  background: #527aa4;
  border-radius: 14px 14px 4px 14px;
}
.demo-grid-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.demo-grid-cards div {
  padding: 18px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  font-size: 0.79rem;
  font-weight: 780;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.quantum-circuit {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 38px 0;
}
.quantum-circuit:before {
  content: "";
  height: 3px;
  position: absolute;
  left: 10%;
  right: 10%;
  background: var(--accent);
  top: 50%;
}
.gate {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  border: 2px solid var(--accent);
  border-radius: 12px;
  background: var(--surface);
  font-size: 1.1rem;
  font-weight: 900;
  margin: 0 16px;
}
.quantum-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
  height: 140px;
}
.quantum-bars div {
  width: 32%;
  background: linear-gradient(var(--accent), var(--surface));
  border-radius: 8px 8px 0 0;
  position: relative;
  transition: height 0.4s;
}
.quantum-bars div:after {
  content: attr(data-label);
  position: absolute;
  bottom: -25px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.71rem;
}
.chem-beakers {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: end;
  padding: 25px;
}
.beaker {
  height: 123px;
  width: 90px;
  border: 3px solid #b9d8e8;
  border-top: 0;
  border-radius: 0 0 18px 18px;
  position: relative;
  overflow: hidden;
  opacity: 0.9;
}
.beaker:before {
  content: "";
  position: absolute;
  height: 6px;
  background: #b9d8e8;
  left: -6px;
  right: -6px;
  top: 0;
  border-radius: 10px;
}
.beaker span {
  position: absolute;
  inset: auto 3px 3px;
  background: var(--accent);
  height: 45%;
  border-radius: 0 0 14px 14px;
  opacity: 0.62;
}
.beaker:nth-child(2) span {
  height: 68%;
  background: #e2ad73;
}
.beaker:nth-child(3) span {
  height: 75%;
  background: #9ddcb3;
}
.concept-warning {
  font-size: 0.75rem;
  color: var(--muted);
  padding-top: 10px;
}
.wearable-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: center;
}
.wearable-visual {
  width: 175px;
  height: 215px;
  position: relative;
  margin: auto;
  display: grid;
  place-items: center;
}
.strap {
  position: absolute;
  width: 64px;
  height: 215px;
  border-radius: 22px;
  background: #162a27;
  border: 2px solid #759587;
}
.device {
  z-index: 1;
  width: 140px;
  height: 99px;
  border-radius: 30px;
  background: #102d23;
  border: 8px solid #598d72;
  display: grid;
  place-items: center;
  color: #9ff8b8;
  font-weight: 800;
  box-shadow: 0 11px 25px rgba(0, 0, 0, 0.35);
}
.wearable-info .mini-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  gap: 10px;
  font-size: 0.8rem;
}
.wearable-info strong {
  color: var(--accent2);
}
.lightbox {
  border: 0;
  max-width: min(1100px, 94vw);
  max-height: 92vh;
  background: #081426;
  color: #fff;
  padding: 12px;
  border-radius: 18px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.lightbox::backdrop {
  background: rgba(2, 6, 12, 0.84);
  backdrop-filter: blur(6px);
}
.lightbox img {
  max-height: 75vh;
  max-width: 100%;
  display: block;
  margin: auto;
  border-radius: 8px;
}
.lightbox .lb-close {
  display: flex;
  justify-content: flex-end;
  padding: 5px;
}
.lightbox .lb-close button {
  background: #27394d;
  color: #fff;
  border: 1px solid #456179;
  padding: 7px 14px;
  border-radius: 10px;
}
.lightbox p {
  text-align: center;
  margin: 12px 5px 5px;
  color: #adbed0;
  font-size: 0.82rem;
}
.about-hero {
  padding: 85px 0 50px;
}
.about-hero p {
  max-width: 850px;
  margin-top: 20px;
  font-size: 1.12rem;
  color: var(--muted);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
  padding-bottom: 80px;
}
.about-panel {
  border-radius: 19px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 29px;
}
.about-panel h2 {
  font-size: 1.45rem;
  margin-bottom: 20px;
}
.about-panel p,
.about-panel li {
  color: var(--muted);
  font-size: 0.9rem;
}
.about-panel strong {
  color: var(--text);
}
.about-panel .entry {
  padding: 16px 0;
}
.about-panel .entry + .entry {
  border-top: 1px solid var(--border);
}
.about-panel .entry small {
  display: block;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 6px;
}
@media (max-width: 1180px) {
  .pcard {
    grid-template-columns: 155px 238px minmax(0, 1fr);
  }
  .pc-head h4 {
    font-size: 1rem;
  }
  .pc-story {
    padding: 20px;
  }
  .container {
    width: min(1240px, calc(100% - 52px));
  }
  .detail-layout {
    gap: 35px;
  }
  .school-grid {
    gap: 12px;
  }
  .scard {
    grid-template-columns: 100px 1fr;
  }
  .sc-visual {
    padding: 12px;
  }
}
@media (max-width: 950px) {
  .topnav {
    display: none;
    position: absolute;
    top: 68px;
    left: 25px;
    right: 25px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #111f32;
    padding: 15px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  .topnav.open {
    display: flex;
  }
  .mobile-menu {
    display: block;
    margin-left: auto;
  }
  .nav-contact {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr 280px;
    gap: 25px;
  }
  .hero-photo-box {
    min-height: 370px;
  }
  .hero-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
  }
  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cv-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cv-block:first-child {
    grid-column: 1/3;
  }
  .pcard {
    grid-template-columns: 150px minmax(190px, 1fr);
    grid-template-rows: 75px auto auto;
  }
  .pc-cover {
    grid-column: 1;
    grid-row: 1/4;
  }
  .pc-head {
    grid-column: 2;
    grid-row: 1;
  }
  .pc-metrics {
    grid-column: 2;
    grid-row: 2;
    min-height: 152px;
  }
  .pc-story {
    grid-column: 2;
    grid-row: 3;
    min-height: 178px;
  }
  .pc-actions {
    grid-column: 1/3;
    grid-row: 4;
  }
  .detail-hero-grid {
    grid-template-columns: 1fr 220px;
    gap: 20px;
  }
  .hero-app-cover {
    width: 220px;
    border-radius: 23px;
  }
  .hero-app-cover img {
    width: 135px;
    height: 135px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px;
  }
  .toc small {
    width: 100%;
    padding: 5px 10px;
  }
  .detail-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .school-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 680px) {
  .container {
    width: calc(100% - 32px);
  }
  .header-inner {
    height: 67px;
  }
  .brand {
    font-size: 0.88rem;
  }
  .brand-mark {
    height: 34px;
    width: 34px;
  }
  .hero {
    padding: 44px 0 24px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-photo-box {
    max-width: 100%;
    height: 280px;
    min-height: 280px;
    justify-self: stretch;
  }
  .hero-photo-box img {
    object-position: 50% 24%;
  }
  .hero-desc {
    font-size: 0.98rem;
  }
  .hero-buttons {
    gap: 8px;
  }
  .hero-buttons .btn {
    flex: 1;
    font-size: 0.77rem;
  }
  .home-stats {
    gap: 8px;
    margin: 0 0 35px;
  }
  .h-stat {
    padding: 16px;
  }
  .h-stat b {
    font-size: 1.5rem;
  }
  .section {
    padding: 40px 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-head .meta {
    white-space: normal;
  }
  .cv-grid {
    grid-template-columns: 1fr;
  }
  .cv-block:first-child {
    grid-column: auto;
  }
  .catalog-toolbar {
    padding: 11px;
  }
  .catalog-toolbar input {
    min-width: 100%;
    width: 100%;
  }
  .catalog-toolbar select {
    flex: 1;
    min-width: 125px;
  }
  .pcard {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 8px;
    padding: 8px;
  }
  .pc-cover {
    grid-column: 1;
    grid-row: 1;
    height: 145px;
    align-items: flex-start;
    text-align: left;
    padding-left: 24px;
  }
  .pc-cover .cover-letters {
    font-size: 2.4rem;
  }
  .pc-cover .cover-word {
    max-width: 210px;
    font-size: 0.9rem;
  }
  .pc-cover img {
    width: 100px;
    height: 100px;
  }
  .pc-head {
    grid-column: 1;
    grid-row: 2;
    min-height: 69px;
  }
  .pc-metrics {
    grid-column: 1;
    grid-row: 3;
    min-height: 157px;
  }
  .pc-story {
    grid-column: 1;
    grid-row: 4;
    min-height: 145px;
  }
  .pc-actions {
    grid-column: 1;
    grid-row: 5;
    min-height: 58px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .pc-actions .action-caption {
    display: none;
  }
  .pc-actions .spacer {
    display: none;
  }
  .pc-actions .btn {
    flex: 1;
  }
  .pc-story p {
    -webkit-line-clamp: 5;
  }
  .school-grid {
    grid-template-columns: 1fr;
  }
  .scard {
    grid-template-columns: 92px minmax(0, 1fr);
  }
  .sc-visual strong {
    font-size: 1.5rem;
  }
  .sc-main {
    padding: 15px;
    gap: 9px;
  }
  .sc-main p {
    -webkit-line-clamp: 4;
  }
  .sc-title {
    flex-wrap: wrap;
  }
  .sc-footer .btn {
    font-size: 0.69rem;
  }
  .group-head {
    flex-wrap: wrap;
  }
  .group-count {
    margin-left: 0;
  }
  .footer-grid {
    display: block;
  }
  .footer-links {
    margin-top: 21px;
  }
  .detail-hero {
    padding: 35px 0 25px;
  }
  .detail-hero-grid {
    grid-template-columns: 1fr;
  }
  .detail-hero h1 {
    font-size: 2.8rem;
  }
  .detail-hero .lede {
    font-size: 0.96rem;
  }
  .hero-app-cover {
    justify-self: start;
    height: 165px;
    width: 100%;
    aspect-ratio: auto;
  }
  .hero-app-cover img {
    width: 100px;
    height: 100px;
  }
  .hero-app-cover .bigletters {
    font-size: 3rem;
  }
  .hero-app-cover .smallname {
    font-size: 0.8rem;
  }
  .detail-stat-grid {
    gap: 8px;
  }
  .detail-stat {
    padding: 13px;
    min-height: 90px;
    gap: 8px;
  }
  .detail-stat strong {
    font-size: 1rem;
  }
  .detail-stat img {
    height: 27px;
    width: 27px;
  }
  .detail-layout {
    padding: 0 0 60px;
  }
  .detail-section {
    margin-bottom: 47px;
  }
  .detail-section h2 {
    font-size: 1.65rem;
  }
  .feature-grid,
  .gallery-grid,
  .tech-grid,
  .mini-split,
  .wearable-demo,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .feature {
    padding: 18px;
  }
  .shot img {
    height: 200px;
  }
  .contact-panel {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact-panel .email {
    font-size: 0.93rem;
  }
  .detail-footer-nav {
    flex-direction: column;
  }
  .detail-footer-nav a {
    width: 100%;
  }
  .about-hero {
    padding: 45px 0 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* HTML hidden attribute must override explicit grid/flex display declarations. */
[hidden] {
  display: none !important;
}
.sc-appicon {
  width: 85px;
  height: 85px;
  object-fit: contain;
}
.sc-visual img[data-optional-icon] {
  width: 83px;
  height: 83px;
  object-fit: contain;
  border-radius: 15px;
}
.gallery-blank [data-shot-fallback] {
  display: grid;
  gap: 10px;
  justify-items: center;
}
.gallery-blank img[data-optional-shot] {
  display: block;
  margin: auto;
}

.hero-title {
  max-width: 820px;
}
.hero-desc {
  max-width: 760px;
}
.btn-soft {
  background: rgba(255, 255, 255, 0.05);
}
@media (max-width: 680px) {
  .brand {
    font-size: 0.83rem;
  }
  .brand small {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }
}
