:root {
  --bg: #07090d;
  --bg-soft: #0f1420;
  --surface: rgba(14, 18, 28, 0.84);
  --surface-strong: rgba(17, 22, 34, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.03);
  --text: #f5f7fb;
  --muted: #97a5bb;
  --muted-strong: #c3cfdf;
  --accent: #ff6900;
  --accent-2: #ffd1a8;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "Space Grotesk", "Noto Sans SC", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 105, 0, 0.22), transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(91, 124, 250, 0.14), transparent 24%),
    linear-gradient(180deg, #05070b 0%, #0a0e16 44%, #07090d 100%);
}

body.modal-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 90%);
}

body::after {
  background:
    radial-gradient(circle at center, rgba(255, 105, 0, 0.08), transparent 35%),
    radial-gradient(circle at 75% 70%, rgba(255, 255, 255, 0.03), transparent 25%);
  opacity: 0.8;
}

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

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

.page-shell {
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 13, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(9, 11, 16, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.nav,
.section,
.hero,
.site-footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9e63, var(--accent));
  box-shadow: 0 0 28px rgba(255, 105, 0, 0.55);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-menu a {
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5rem;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transition: transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  padding: 2.8rem 0 2rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.about-card,
.timeline-card,
.contact-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(20, 25, 37, 0.82), rgba(11, 14, 22, 0.95));
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: auto -10% 10% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 105, 0, 0.24), transparent 68%);
  filter: blur(18px);
}

.status-pill,
.hero-highlights span,
.about-tags span,
.project-tags span,
.visual-labels span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.status-pill {
  width: fit-content;
  padding: 0.7rem 1rem;
  color: var(--muted-strong);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow,
.metric-label,
.card-topline,
.insight-type {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
}

.metric-label,
.card-topline,
.insight-type {
  color: var(--muted-strong);
}

.hero h1,
.hero h2,
.section-heading h3,
.project-card h4,
.insight-card h4 {
  margin: 0;
}

.hero h1 {
  margin-top: 1rem;
  font-size: clamp(4rem, 11vw, 7.6rem);
  line-height: 0.92;
}

.hero h2 {
  margin-top: 0.95rem;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  color: #d4dceb;
  font-weight: 500;
}

.hero-description,
.section-lead,
.project-summary,
.detail-list,
.insight-card p,
.about-card p,
.fact-card p,
.timeline-card p,
.contact-note p,
.stat-card p {
  color: var(--muted);
  line-height: 1.82;
}

.hero-description {
  max-width: 36rem;
  margin: 1.4rem 0 0;
  font-size: 1.06rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.hero-highlights span,
.about-tags span,
.project-tags span,
.visual-labels span {
  padding: 0.7rem 1rem;
  color: #dce4f0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 54px;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #ff9653, var(--accent));
  color: #fff;
  box-shadow: 0 18px 34px rgba(255, 105, 0, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
}

.hero-panel {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--rotate-x, 0deg)) rotateY(var(--rotate-y, 0deg));
  transition: transform 0.22s ease;
}

.panel-glow {
  position: absolute;
  inset: 18% 12% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 105, 0, 0.18), transparent 70%);
  filter: blur(16px);
}

.dashboard-card,
.glass-card,
.route-card,
.fact-card,
.project-card,
.insight-card,
.stat-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(18px);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.dashboard-card:hover,
.glass-card:hover,
.route-card:hover,
.fact-card:hover,
.project-card:hover,
.insight-card:hover,
.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 105, 0, 0.32);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.dashboard-main {
  padding: 1.5rem;
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 105, 0, 0.14);
}

.dashboard-main strong,
.glass-card strong,
.fact-card strong,
.stat-card strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.6rem;
}

.signal-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 0.55rem;
  margin-top: 1.2rem;
  min-height: 56px;
}

.signal-bars span {
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #ffb37d, var(--accent));
  animation: pulse-bars 2.6s ease-in-out infinite;
}

.signal-bars span:nth-child(1) {
  height: 34%;
}

.signal-bars span:nth-child(2) {
  height: 82%;
  animation-delay: 0.15s;
}

.signal-bars span:nth-child(3) {
  height: 56%;
  animation-delay: 0.3s;
}

.signal-bars span:nth-child(4) {
  height: 100%;
  animation-delay: 0.45s;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.glass-card,
.route-card,
.fact-card,
.stat-card {
  padding: 1.2rem;
}

.route-card {
  margin-top: 1rem;
}

.panel-footer-card {
  margin-top: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 241, 0.06);
  backdrop-filter: blur(18px);
}

.panel-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.85rem;
}

.panel-footer-grid article {
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.panel-footer-grid strong {
  display: block;
  color: #f5efe2;
  font-size: 1rem;
}

.panel-footer-grid p {
  margin: 0.45rem 0 0;
  color: rgba(245, 239, 226, 0.72);
  line-height: 1.65;
  font-size: 0.92rem;
}

.route-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
}

.route-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 105, 0, 0.5), rgba(255, 255, 255, 0.18));
}

.route-line span {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 2px solid var(--accent);
}

.route-points {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.9rem;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.section {
  padding: 5.5rem 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 1.5rem;
  align-items: start;
}

.section-heading {
  margin-bottom: 1.8rem;
}

.section-heading h3 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-lead {
  margin: 1rem 0 0;
  max-width: 30rem;
}

.about-stack {
  display: grid;
  gap: 1.15rem;
}

.about-intro-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
  gap: 1.5rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(20, 25, 37, 0.82), rgba(11, 14, 22, 0.95));
  box-shadow: var(--shadow);
}

.about-intro-heading {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0;
}

.about-intro-heading h4 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.08;
}

.about-intro-copy {
  display: grid;
  gap: 1rem;
}

.about-intro-copy p {
  margin: 0;
  font-size: 1.02rem;
}

.about-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.license-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(255, 105, 0, 0.14), transparent 30%),
    var(--surface);
  backdrop-filter: blur(18px);
}

.license-card strong {
  display: block;
  margin-top: 0.65rem;
  font-size: 1.45rem;
  line-height: 1.35;
}

.license-card p {
  margin: 0.9rem 0 0;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.fact-grid {
  display: grid;
  gap: 1rem;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.timeline-card {
  padding: 1.4rem;
}

.approach-timeline {
  list-style: none;
  padding: 0;
  margin: 1.15rem 0 0;
  display: grid;
  gap: 1rem;
}

.approach-timeline li {
  position: relative;
  padding-left: 1.15rem;
}

.approach-timeline li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 105, 0, 0.12);
}

.approach-timeline strong {
  display: block;
  margin-bottom: 0.35rem;
}

.approach-timeline p {
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.project-card,
.insight-card {
  padding: 1.5rem;
}

.project-visual {
  position: relative;
  min-height: 180px;
  margin-bottom: 1.3rem;
  border-radius: calc(var(--radius-lg) - 2px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-su7 {
  background:
    radial-gradient(circle at 50% 62%, rgba(255, 105, 0, 0.18), transparent 18%),
    radial-gradient(circle at 18% 24%, rgba(255, 105, 0, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #111824 0%, #0c1018 100%);
}

.visual-cockpit {
  background:
    radial-gradient(circle at 70% 25%, rgba(91, 124, 250, 0.2), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #121824 0%, #0c1119 100%);
}

.visual-ai-review {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 105, 0, 0.22), transparent 24%),
    radial-gradient(circle at 82% 26%, rgba(122, 155, 255, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #111a28 0%, #0b1018 100%);
}

.visual-labels {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.6rem;
  z-index: 1;
}

.project-visual .visual-labels span {
  min-height: 42px;
  padding: 0.7rem 1.05rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(17, 21, 31, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #edf2fb;
  font-weight: 600;
}

.visual-track {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  height: 110px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 105, 0, 0.18), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.visual-track::before,
.visual-track::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  border-top: 2px dashed rgba(255, 255, 255, 0.18);
}

.visual-track::before {
  top: 36%;
}

.visual-track::after {
  top: 64%;
}

.visual-wave {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  align-items: end;
  min-height: 118px;
}

.visual-wave span {
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(133, 160, 255, 0.95), rgba(255, 105, 0, 0.8));
  animation: voice-wave 2.4s ease-in-out infinite;
}

.visual-wave span:nth-child(1) {
  height: 38%;
}

.visual-wave span:nth-child(2) {
  height: 84%;
  animation-delay: 0.2s;
}

.visual-wave span:nth-child(3) {
  height: 52%;
  animation-delay: 0.35s;
}

.visual-wave span:nth-child(4) {
  height: 72%;
  animation-delay: 0.5s;
}

.visual-analysis {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: center;
  min-height: 118px;
}

.visual-analysis span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(9, 13, 20, 0.72);
  color: var(--muted-strong);
  font-family: "Azeret Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-analysis span::after {
  content: "";
  position: absolute;
  inset: auto 18% 14px 18%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 105, 0, 0.9), rgba(122, 155, 255, 0.9));
  opacity: 0.85;
}

.visual-ai-review {
  min-height: 210px;
}

.visual-su7 {
  min-height: 210px;
}

.visual-su7 .visual-labels {
  top: 1.15rem;
  left: 1.15rem;
}

.visual-su7 .visual-track {
  inset: auto 1rem 1.1rem 1rem;
  height: 96px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(15, 19, 29, 0.82);
}

.visual-su7 .visual-track::before,
.visual-su7 .visual-track::after {
  left: 10%;
  right: 10%;
  border-top-width: 3px;
}

.visual-su7 .visual-track::before {
  top: 38%;
  border-top-style: dashed;
  border-top-color: rgba(255, 255, 255, 0.16);
}

.visual-su7 .visual-track::after {
  top: 66%;
  border-top-style: solid;
  border-top-color: rgba(121, 151, 255, 0.22);
  opacity: 0.8;
}

.visual-su7::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 56px;
  width: 72px;
  height: 72px;
  transform: translateX(-50%);
  border-radius: 24px;
  background:
    radial-gradient(circle at center, rgba(255, 105, 0, 0.28), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  filter: blur(4px);
  pointer-events: none;
}

.visual-ai-review .visual-labels {
  top: 1.15rem;
  left: 1.15rem;
}

.visual-ai-review .visual-analysis {
  inset: auto 1rem 1.1rem 1rem;
  min-height: 96px;
}

.visual-ai-review .visual-analysis span {
  min-height: 72px;
  padding-top: 0.75rem;
  font-size: 0.7rem;
  border-radius: 20px;
}

.visual-ai-review .visual-analysis span::after {
  bottom: 12px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.project-card h4,
.insight-card h4 {
  margin-top: 1rem;
  font-size: 1.4rem;
  line-height: 1.35;
}

.project-summary {
  margin: 1rem 0 0;
}

.detail-list {
  margin: 1.15rem 0 0;
  padding-left: 1.15rem;
}

.detail-list li + li {
  margin-top: 0.85rem;
}

.detail-list strong {
  color: var(--text);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.project-toggle {
  margin-top: 1.25rem;
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.project-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 105, 0, 0.34);
  background: rgba(255, 105, 0, 0.08);
}

.project-toggle::after {
  content: "↗";
  margin-left: 0.6rem;
  transition: transform 0.22s ease;
}

.project-card:hover .project-toggle::after {
  transform: translate(2px, -2px);
}

.project-detail {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.detail-panel,
.prototype-frame {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.detail-panel {
  padding: 1.25rem;
}

.detail-panel h5,
.showcase-head h5,
.prototype-copy strong {
  margin: 0;
}

.detail-panel h5,
.showcase-head h5 {
  margin-top: 0.7rem;
  font-size: 1.05rem;
}

.detail-panel p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.project-flow {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.8;
}

.project-flow li + li {
  margin-top: 0.75rem;
}

.prototype-showcase {
  margin-top: 1rem;
}

.showcase-head {
  margin-bottom: 0.9rem;
}

.prototype-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.prototype-frame {
  overflow: hidden;
  cursor: pointer;
}

.prototype-media {
  position: relative;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 105, 0, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.prototype-image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
  background: #0c1018;
}

.prototype-screen {
  position: relative;
  min-height: 200px;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 105, 0, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.screen-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 12, 19, 0.65);
  color: var(--muted-strong);
  font-size: 0.82rem;
}

.screen-lines,
.screen-bars,
.screen-wave,
.screen-cards {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
}

.screen-lines {
  display: grid;
  gap: 0.7rem;
}

.screen-lines span,
.screen-cards span {
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.screen-lines span:nth-child(1) {
  width: 88%;
  height: 12px;
}

.screen-lines span:nth-child(2) {
  width: 70%;
  height: 12px;
}

.screen-lines span:nth-child(3) {
  width: 52%;
  height: 12px;
}

.screen-bars,
.screen-wave {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 0.7rem;
  min-height: 110px;
}

.screen-bars span,
.screen-wave span {
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #ffc397, var(--accent));
}

.screen-bars span:nth-child(1),
.screen-wave span:nth-child(1) {
  height: 34%;
}

.screen-bars span:nth-child(2),
.screen-wave span:nth-child(2) {
  height: 82%;
}

.screen-bars span:nth-child(3),
.screen-wave span:nth-child(3) {
  height: 54%;
}

.screen-bars span:nth-child(4),
.screen-wave span:nth-child(4) {
  height: 92%;
}

.screen-cards {
  display: grid;
  gap: 0.8rem;
}

.screen-cards span:nth-child(1) {
  width: 100%;
  height: 44px;
}

.screen-cards span:nth-child(2) {
  width: 82%;
  height: 44px;
}

.screen-cards span:nth-child(3) {
  width: 64%;
  height: 44px;
}

.prototype-screen-route::before,
.prototype-screen-dashboard::before,
.prototype-screen-voice::before,
.prototype-screen-feedback::before {
  content: "";
  position: absolute;
  inset: 3rem 1rem auto 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
}

.prototype-copy {
  padding: 1rem 1rem 1.1rem;
}

.prototype-copy strong {
  display: block;
  font-size: 1rem;
}

.prototype-copy p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.project-modal,
.insight-modal,
.prototype-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.project-modal__backdrop,
.insight-modal__backdrop,
.prototype-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(12px);
}

.project-modal__dialog,
.insight-modal__dialog,
.prototype-lightbox__dialog {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(16, 21, 31, 0.96), rgba(8, 11, 18, 0.98));
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

.project-modal__dialog {
  width: min(1100px, calc(100% - 1.5rem));
  max-height: 92vh;
  margin: 4vh auto;
  overflow: auto;
}

.insight-modal__dialog {
  width: min(860px, calc(100% - 1.5rem));
  max-height: 88vh;
  margin: 7vh auto;
  overflow: auto;
}

.prototype-lightbox__dialog {
  width: min(900px, calc(100% - 1.5rem));
  margin: 10vh auto 0;
  overflow: hidden;
}

.project-modal__content,
.insight-modal__content {
  padding: 1.25rem;
}

.project-modal__close,
.insight-modal__close,
.prototype-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  z-index: 2;
}

.project-modal__close span,
.insight-modal__close span,
.prototype-lightbox__close span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.project-modal__close span:first-child,
.insight-modal__close span:first-child,
.prototype-lightbox__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.project-modal__close span:last-child,
.insight-modal__close span:last-child,
.prototype-lightbox__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.project-modal__header {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
  padding-right: 4rem;
}

.project-modal__hero,
.project-modal__meta {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.project-modal__hero {
  overflow: hidden;
}

.project-modal__hero .project-visual {
  min-height: 260px;
  margin: 0;
  border: 0;
  border-radius: 0;
}

.project-modal__meta {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-modal__topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-strong);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-modal__meta h4 {
  margin: 1rem 0 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
}

.project-modal__meta p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.project-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.project-modal__tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #dce4f0;
}

.project-modal__body {
  margin-top: 1rem;
}

.project-modal__body .project-detail {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.project-modal__body .prototype-screen {
  min-height: 240px;
}

.project-modal__body .prototype-media {
  min-height: 240px;
}

.prototype-lightbox__visual {
  min-height: 420px;
  padding: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.prototype-lightbox__visual .prototype-screen {
  min-height: 420px;
  border-bottom: 0;
  border-radius: 22px;
}

.prototype-lightbox__visual .prototype-media {
  min-height: 420px;
  overflow: hidden;
  border-radius: 22px;
  border-bottom: 0;
}

.prototype-lightbox__visual .prototype-image {
  min-height: 0;
  max-height: 100%;
  object-fit: contain;
  background: #0c1018;
}

.prototype-lightbox__copy {
  padding: 1.1rem 1.2rem 1.3rem;
}

.prototype-lightbox__copy h5 {
  margin: 0;
  font-size: 1.1rem;
}

.prototype-lightbox__copy p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.insight-list {
  display: grid;
  gap: 1rem;
}

.insight-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-strong);
  font-size: 0.86rem;
}

.insight-trigger {
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.insight-trigger::after {
  content: "→";
  margin-left: 0.45rem;
}

.insight-attachments,
.attachment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.insight-attachments {
  margin-top: 1rem;
}

.attachment-links {
  margin-top: 1rem;
}

.insight-attachments a,
.attachment-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.88rem;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.insight-attachments a:hover,
.attachment-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 105, 0, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.insight-detail-section + .insight-detail-section {
  margin-top: 1.1rem;
}

.insight-detail-section h5 {
  margin: 0.7rem 0 0;
  font-size: 1.1rem;
}

.insight-detail-section p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.insight-points {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.8;
}

.insight-points li + li {
  margin-top: 0.75rem;
}

.insight-modal__header {
  padding-right: 4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.insight-modal__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted-strong);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.insight-modal__header h4 {
  margin: 1rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.25;
}

.insight-modal__header p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.insight-modal__body {
  margin-top: 1rem;
}

.insight-modal__body .insight-detail-section {
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.contact-card {
  padding: 1.6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: end;
}

.contact-note {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.contact-note p {
  margin: 0.7rem 0 0;
}

.contact-mail {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: clamp(1.45rem, 3.2vw, 2.5rem);
  font-weight: 700;
  word-break: break-word;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 105, 0, 0.34);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.site-footer {
  padding: 0 0 2.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--muted-strong);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font: inherit;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 105, 0, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.back-to-top.is-pressed {
  transform: translateY(-1px) scale(0.98);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

@keyframes pulse-bars {
  0%,
  100% {
    transform: scaleY(0.92);
    opacity: 0.78;
  }
  50% {
    transform: scaleY(1.02);
    opacity: 1;
  }
}

@keyframes voice-wave {
  0%,
  100% {
    transform: scaleY(0.9);
    opacity: 0.78;
  }
  50% {
    transform: scaleY(1.06);
    opacity: 1;
  }
}

@media (max-width: 1040px) {
  .hero-shell,
  .section-grid,
  .about-intro-card,
  .about-detail-grid,
  .contact-grid,
  .card-grid,
  .project-detail-grid,
  .prototype-gallery,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: auto;
  }

  .about-intro-heading h4 {
    max-width: none;
  }

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

@media (max-width: 760px) {
  .nav,
  .section,
  .hero,
  .site-footer {
    width: min(var(--max-width), calc(100% - 1.25rem));
  }

  .nav {
    min-height: 70px;
  }

  .nav-toggle {
    display: inline-block;
    position: relative;
    z-index: 3;
  }

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

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

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

  .nav-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    left: 0;
    width: min(calc(100% - 1.25rem), 520px);
    margin: 0 auto;
    padding: 1rem;
    display: grid;
    gap: 0.35rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(11, 14, 22, 0.97);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .nav-menu a {
    padding: 0.95rem 1rem;
    border-radius: 14px;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-copy,
  .hero-panel,
  .about-intro-card,
  .timeline-card,
  .contact-card,
  .project-card,
  .insight-card {
    padding: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 20vw, 5rem);
  }

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

  .site-footer {
    flex-direction: column;
    padding-bottom: 1.8rem;
  }

  .project-modal__dialog,
  .insight-modal__dialog,
  .prototype-lightbox__dialog {
    width: calc(100% - 1rem);
    margin-top: 2vh;
  }

  .project-modal__content,
  .insight-modal__content {
    padding: 1rem;
  }

  .project-modal__body .prototype-screen,
  .project-modal__body .prototype-media,
  .prototype-lightbox__visual,
  .prototype-lightbox__visual .prototype-screen,
  .prototype-lightbox__visual .prototype-media,
  .prototype-lightbox__visual .prototype-image {
    min-height: 280px;
  }
}

:root {
  --bg: #ebe4d8;
  --bg-soft: #f6f1e7;
  --surface: rgba(255, 250, 241, 0.94);
  --surface-strong: #fffaf1;
  --surface-soft: rgba(31, 34, 30, 0.035);
  --text: #191a17;
  --muted: #64675f;
  --muted-strong: #383c35;
  --accent: #eb6417;
  --accent-2: #45625d;
  --line: rgba(27, 28, 25, 0.12);
  --line-strong: rgba(27, 28, 25, 0.18);
  --shadow: 0 18px 40px rgba(58, 49, 34, 0.08);
  --max-width: 1240px;
}

body {
  color: var(--text);
  font-family: "Noto Sans SC", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 12%, rgba(235, 100, 23, 0.12), transparent 24%),
    radial-gradient(circle at 78% 16%, rgba(69, 98, 93, 0.1), transparent 22%),
    linear-gradient(180deg, #ece5d8 0%, #f5f0e6 52%, #e8e1d4 100%);
}

body::before {
  background-image:
    linear-gradient(rgba(25, 26, 23, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 26, 23, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2) 70%, transparent);
}

body::after {
  inset: 0 0 0 auto;
  width: min(34vw, 420px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45)),
    repeating-linear-gradient(
      180deg,
      rgba(25, 26, 23, 0.11) 0 14px,
      transparent 14px 32px
    );
  opacity: 0.18;
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8) 12%, rgba(0, 0, 0, 0.8) 88%, transparent);
}

.site-header {
  backdrop-filter: blur(16px);
  background: rgba(244, 238, 226, 0.76);
  border-bottom: 1px solid rgba(27, 28, 25, 0.08);
}

.site-header.is-scrolled {
  background: rgba(250, 246, 238, 0.9);
  border-color: rgba(27, 28, 25, 0.12);
  box-shadow: 0 8px 28px rgba(58, 49, 34, 0.06);
}

.brand {
  gap: 0.9rem;
  font-family: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffb17a, var(--accent));
  box-shadow: none;
}

.nav-menu a,
.eyebrow,
.metric-label,
.card-topline,
.insight-type,
.status-pill,
.project-modal__topline,
.insight-modal__meta {
  font-family: "Azeret Mono", monospace;
}

.nav-menu a {
  color: var(--muted-strong);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-menu a::after {
  bottom: -0.7rem;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), rgba(69, 98, 93, 0.75), transparent);
}

.hero {
  padding: 2.2rem 0 2rem;
}

.hero-shell {
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  gap: 1.1rem;
}

.hero-copy,
.about-intro-card,
.license-card,
.fact-card,
.timeline-card,
.project-card,
.insight-card,
.contact-card,
.stat-card,
.detail-panel,
.prototype-frame,
.project-modal__meta,
.insight-modal__body .insight-detail-section {
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(245, 239, 228, 0.98));
  border-color: rgba(27, 28, 25, 0.12);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.about-intro-card,
.timeline-card,
.contact-card {
  border-radius: 30px;
}

.hero-copy {
  min-height: 600px;
  padding: 2.2rem;
  justify-content: flex-start;
  border-top: 6px solid var(--accent);
}

.hero-copy::before {
  inset: auto 2rem 2rem auto;
  width: 260px;
  height: 140px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 24% 50%, rgba(235, 100, 23, 0.2), transparent 42%),
    repeating-linear-gradient(
      90deg,
      rgba(25, 26, 23, 0.08) 0 16px,
      transparent 16px 34px
    );
  filter: none;
  opacity: 0.58;
}

.hero-copy::after {
  content: "Field Note / 01";
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(27, 28, 25, 0.1);
  border-radius: 999px;
  background: rgba(235, 100, 23, 0.08);
  color: var(--muted-strong);
  font-family: "Azeret Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  border-radius: 12px;
  background: rgba(69, 98, 93, 0.08);
  color: var(--muted-strong);
  border-color: rgba(69, 98, 93, 0.12);
}

.hero h1,
.hero h2,
.section-heading h3,
.project-card h4,
.insight-card h4,
.about-intro-heading h4,
.project-modal__meta h4,
.insight-modal__header h4 {
  font-family: "Bricolage Grotesque", "Noto Sans SC", sans-serif;
}

.hero h1 {
  margin-top: 1.3rem;
  font-size: clamp(4.2rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin-top: 0.8rem;
  color: var(--muted-strong);
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
}

.hero-description {
  max-width: 33rem;
  color: var(--muted);
}

.hero-highlights span,
.about-tags span,
.project-tags span,
.visual-labels span,
.project-modal__tags span {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted-strong);
  border-color: rgba(27, 28, 25, 0.1);
}

.button {
  min-height: 50px;
  border-radius: 14px;
  font-family: "Azeret Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button-primary {
  background: #1d211e;
  color: #f8f4ec;
  box-shadow: 0 10px 24px rgba(35, 36, 32, 0.12);
}

.button-secondary {
  border-color: rgba(27, 28, 25, 0.14);
  background: rgba(255, 255, 255, 0.56);
  color: var(--text);
}

.hero-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.hero-note {
  padding: 0.95rem 1rem;
  border: 1px dashed rgba(27, 28, 25, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.44);
}

.hero-note p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.94rem;
}

.hero-panel {
  padding: 1.3rem;
  background:
    linear-gradient(180deg, rgba(30, 34, 33, 0.96), rgba(43, 48, 46, 0.97));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 50px rgba(31, 28, 21, 0.16);
}

.panel-glow {
  inset: auto auto 10% 12%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(235, 100, 23, 0.2), transparent 68%);
}

.dashboard-card,
.glass-card,
.route-card {
  background: rgba(255, 250, 241, 0.06);
  border-color: rgba(255, 255, 255, 0.09);
}

.dashboard-main strong,
.glass-card strong {
  color: #f5efe2;
}

.dashboard-main p,
.glass-card p,
.route-points {
  color: rgba(245, 239, 226, 0.72);
}

.signal-dot {
  background: #f4b07d;
  box-shadow: 0 0 0 6px rgba(244, 176, 125, 0.16);
}

.route-line::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(235, 100, 23, 0.7), rgba(255, 255, 255, 0.08));
}

.hero-stats {
  margin-top: 0.9rem;
  gap: 0.9rem;
}

.stat-card {
  position: relative;
  padding: 1.15rem 1.2rem 1.05rem;
  border-radius: 18px;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), rgba(69, 98, 93, 0.75));
}

.stat-card strong {
  color: var(--text);
}

.section {
  padding: 4.8rem 0;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.section-heading h3 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  letter-spacing: -0.04em;
}

.section-lead {
  max-width: 44rem;
  color: var(--muted);
}

.section-ledger {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.section-ledger span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(27, 28, 25, 0.12);
  background: rgba(255, 255, 255, 0.42);
  color: var(--muted-strong);
  font-family: "Azeret Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.about-intro-card {
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 1.2rem;
  border-top: 6px solid rgba(69, 98, 93, 0.82);
}

.about-intro-heading {
  padding-right: 1rem;
  border-right: 1px dashed rgba(27, 28, 25, 0.18);
}

.about-intro-heading h4 {
  max-width: 13ch;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.inquiry-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.inquiry-item {
  padding: 0.9rem 0.95rem;
  border-radius: 16px;
  border: 1px dashed rgba(27, 28, 25, 0.16);
  background: rgba(255, 255, 255, 0.4);
}

.inquiry-item p {
  margin: 0.65rem 0 0;
  color: var(--muted-strong);
  line-height: 1.65;
}

.license-card {
  background:
    linear-gradient(180deg, rgba(255, 243, 231, 0.98), rgba(250, 236, 217, 0.98));
  border-top: 6px solid rgba(235, 100, 23, 0.82);
}

.fact-card:nth-child(1) {
  background: linear-gradient(180deg, rgba(243, 246, 241, 0.98), rgba(233, 239, 232, 0.98));
}

.fact-card:nth-child(2) {
  background: linear-gradient(180deg, rgba(239, 244, 246, 0.98), rgba(228, 236, 240, 0.98));
}

.timeline-card {
  background:
    linear-gradient(180deg, rgba(31, 35, 34, 0.98), rgba(43, 48, 46, 0.98));
  border-color: rgba(255, 255, 255, 0.08);
}

.timeline-card .metric-label,
.timeline-card strong,
.timeline-card p {
  color: #f4eee2;
}

.approach-timeline li::before {
  background: #f4b07d;
  box-shadow: 0 0 0 6px rgba(244, 176, 125, 0.12);
}

.project-card,
.insight-card {
  border-radius: 26px;
  overflow: hidden;
}

.project-card::before,
.insight-card::before {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(235, 100, 23, 0.12), transparent 58%),
    radial-gradient(circle at center, rgba(69, 98, 93, 0.08), transparent 72%);
  opacity: 0.65;
  pointer-events: none;
}

.card-topline,
.insight-meta {
  position: relative;
  z-index: 1;
}

.project-card:hover,
.insight-card:hover,
.prototype-frame:hover,
.detail-panel:hover,
.fact-card:hover,
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(58, 49, 34, 0.12);
  border-color: rgba(27, 28, 25, 0.16);
}

.project-visual {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 21, 29, 0.98), rgba(17, 22, 31, 0.98));
}

.visual-labels span {
  background: rgba(248, 244, 236, 0.12);
  color: #f8f4ec;
  border-color: rgba(255, 255, 255, 0.12);
}

.status-pill {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(17, 21, 31, 0.72);
  color: #edf2fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-highlights span {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(18, 23, 34, 0.72);
  color: #edf2fb;
}

.button-primary {
  background: linear-gradient(135deg, #ff9451, #ff6900 58%, #ff7c2a 100%);
  box-shadow: 0 18px 34px rgba(255, 105, 0, 0.18);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(18, 23, 34, 0.68);
  color: #edf2fb;
}

.button-secondary:hover {
  border-color: rgba(255, 148, 81, 0.35);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.hero-note,
.inquiry-item {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hero-note p,
.inquiry-item p,
.section-ledger span {
  color: #5a667c;
}

.section-ledger span {
  border-color: rgba(27, 28, 25, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.contact-card {
  border-top: 6px solid rgba(235, 100, 23, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(248, 241, 231, 0.98));
  box-shadow: 0 18px 42px rgba(58, 49, 34, 0.1);
}

.contact-grid {
  align-items: start;
}

.contact-note p,
.contact-mail {
  color: #243041;
}

.contact-mail {
  font-weight: 700;
}

.contact-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.detail-list,
.project-summary,
.insight-card p,
.about-intro-copy p,
.license-card p,
.fact-card p,
.project-modal__meta p,
.insight-modal__header p,
.detail-panel p,
.prototype-copy p {
  color: var(--muted);
}

.project-toggle {
  border-radius: 14px;
  background: #1d211e;
  border-color: #1d211e;
  color: #f8f4ec;
  font-family: "Azeret Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-toggle:hover {
  background: #2b3130;
  border-color: #2b3130;
}

.project-toggle::after {
  content: "↗";
}

.prototype-media {
  background:
    linear-gradient(180deg, rgba(18, 21, 29, 0.98), rgba(17, 22, 31, 0.98));
}

.prototype-copy {
  background: rgba(255, 255, 255, 0.28);
}

.insight-list {
  grid-template-columns: 1fr;
}

.insight-card {
  position: relative;
  min-height: 100%;
  border-left: 5px solid rgba(69, 98, 93, 0.72);
}

.insight-card:nth-child(2) {
  border-left-color: rgba(235, 100, 23, 0.72);
}

.insight-trigger {
  font-family: "Azeret Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-card {
  border-top: 6px solid rgba(69, 98, 93, 0.82);
}

.contact-note {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(27, 28, 25, 0.1);
}

.social-links a {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
  border-color: rgba(27, 28, 25, 0.1);
}

.site-footer {
  color: var(--muted-strong);
}

.project-modal__dialog,
.insight-modal__dialog {
  background: linear-gradient(180deg, rgba(250, 245, 236, 0.98), rgba(242, 235, 223, 0.98));
  border-color: rgba(27, 28, 25, 0.12);
  box-shadow: 0 28px 80px rgba(58, 49, 34, 0.16);
}

.project-modal__close,
.insight-modal__close {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(27, 28, 25, 0.1);
}

.project-modal__hero {
  background: linear-gradient(180deg, rgba(18, 21, 29, 0.98), rgba(17, 22, 31, 0.98));
  border-color: rgba(27, 28, 25, 0.08);
}

.project-modal__meta,
.insight-modal__body .insight-detail-section {
  background: rgba(255, 255, 255, 0.42);
}

.insight-modal__header {
  border-bottom-color: rgba(27, 28, 25, 0.12);
}

.prototype-lightbox__dialog {
  background: linear-gradient(180deg, rgba(20, 23, 28, 0.98), rgba(10, 12, 17, 0.98));
  border-color: rgba(255, 255, 255, 0.08);
}

.prototype-lightbox__copy h5 {
  color: #f8f4ec;
}

.prototype-lightbox__copy p {
  color: rgba(248, 244, 236, 0.76);
}

@media (max-width: 1040px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .panel-footer-grid {
    grid-template-columns: 1fr;
  }

  .about-intro-card {
    grid-template-columns: 1fr;
  }

  .about-intro-heading {
    padding-right: 0;
    padding-bottom: 1rem;
    border-right: 0;
    border-bottom: 1px dashed rgba(27, 28, 25, 0.18);
  }

  .insight-list {
    grid-template-columns: 1fr;
  }

  .hero-notes,
  .inquiry-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body::after {
    display: none;
  }

  .nav-menu {
    border-color: rgba(27, 28, 25, 0.12);
    background: rgba(250, 245, 236, 0.98);
    box-shadow: 0 16px 36px rgba(58, 49, 34, 0.12);
  }

  .nav-menu a:hover,
  .nav-menu a.active {
    background: rgba(235, 100, 23, 0.08);
  }

  .hero-copy {
    min-height: auto;
    padding-top: 4.2rem;
  }

  .hero-copy::after {
    left: 1.25rem;
    right: auto;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 18vw, 5.4rem);
  }

  .hero-copy,
  .hero-panel,
  .about-intro-card,
  .license-card,
  .timeline-card,
  .contact-card,
  .project-card,
  .insight-card {
    border-radius: 22px;
  }

  .button,
  .project-toggle {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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

  .hero-panel {
    transform: none !important;
  }
}
