:root {
  /* Industrial Skeuomorphism — 底盘 / 面板 / 凹槽（左上光源） */
  --bg: #e0e5ec;
  --panel: #f0f2f5;
  --muted: #d1d9e6;
  --text: #2d3436;
  --text-muted: #4a5568;
  --accent: #ff4757;
  --accent-fg: #ffffff;
  --shadow-dark: #babecc;
  --shadow-light: #ffffff;
  --shadow-deep: #a3b1c6;
  --ring: rgba(255, 71, 87, 0.45);
  /* Level +1 模块：暗下右 + 亮上左 */
  --shadow-card: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
  /* Level +2 浮起控件 / hover 面板 */
  --shadow-floating: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light),
    inset 1px 1px 0 rgba(255, 255, 255, 0.5);
  --shadow-pressed: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
  --shadow-recessed: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
  /* 螺栓式项目卡 / 区块：新拟态底座 + 顶沿注塑高光 */
  --shadow-project: var(--shadow-card), inset 1px 1px 0 rgba(255, 255, 255, 0.55);
  --shadow-project-hover: var(--shadow-floating);
  /* 机械弹性曲线 */
  --ease-mechanical: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: radial-gradient(ellipse 120% 80% at 0% 0%, rgba(255, 255, 255, 0.55), transparent 50%), var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  position: relative;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.26;
  background-image: url("https://transparenttextures.com/patterns/asfalt-light.png");
  mix-blend-mode: multiply;
  z-index: 0;
}

.container,
.topbar,
.footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1152px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 64px;
  display: grid;
  gap: 72px;
}

.panel {
  background: var(--panel);
  border-radius: 24px;
  box-shadow: var(--shadow-card), inset 1px 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.45);
  position: relative;
}

.panel::before,
.panel::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  position: absolute;
  background: radial-gradient(circle at 35% 35%, rgba(0, 0, 0, 0.18) 0 2px, transparent 3px);
}

.panel::before {
  top: 12px;
  left: 12px;
}

.panel::after {
  top: 12px;
  right: 12px;
}

.topbar {
  width: min(1152px, calc(100% - 48px));
  margin: 24px auto 0;
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.nav-list {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 10px;
}

.ghost-btn {
  display: inline-block;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.76rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: color 180ms ease, box-shadow 200ms ease, transform 150ms var(--ease-mechanical);
}

.ghost-btn:hover,
.ghost-btn:focus-visible {
  color: var(--accent);
  box-shadow: var(--shadow-recessed);
  outline: none;
}

.ghost-btn:active {
  transform: translateY(1px);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  /* 左侧文案区略增内边距，与右侧设备框+留白视觉对齐 */
  padding: 36px 40px 36px clamp(40px, 5vw, 56px);
  min-height: min(900px, 100vh);
  align-items: center;
}

.hero-copy {
  padding-right: clamp(0px, 2vw, 16px);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95), 0 -1px 0 rgba(163, 177, 198, 0.25);
}

.tagline {
  max-width: min(62ch, 100%);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
  margin: 16px 0 18px;
}

.sys-label {
  margin: 0 0 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.badge-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 24px;
}

.badge {
  position: relative;
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--bg);
  box-shadow: var(--shadow-card);
  font-size: 0.84rem;
  font-family: "JetBrains Mono", monospace;
  overflow: hidden;
  isolation: isolate;
}

.badge--tilt {
  --rx: 0deg;
  --ry: 0deg;
  transform-style: preserve-3d;
  transform: perspective(640px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(6px);
  transition: transform 120ms ease-out, box-shadow 200ms ease;
  cursor: default;
  will-change: transform;
}

.badge--tilt.is-tilting {
  box-shadow: 14px 14px 28px var(--shadow-dark), -10px -10px 22px var(--shadow-light);
}

.badge__shine {
  position: absolute;
  inset: -40%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.1) 52%,
    transparent 60%
  );
  opacity: 0;
  transform: translateX(-18%) translateY(6%) rotate(12deg);
  transition: opacity 160ms ease;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.badge--tilt.is-tilting .badge__shine {
  opacity: 0.85;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 14px 20px;
  cursor: pointer;
  transition: transform 150ms var(--ease-mechanical), box-shadow 150ms ease, filter 200ms ease, color 200ms ease;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-pressed);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 4px 4px 8px rgba(166, 50, 60, 0.4), -4px -4px 8px rgba(255, 100, 110, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-primary:active {
  box-shadow: var(--shadow-pressed);
}

.btn-secondary {
  color: var(--text);
  background: var(--bg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  color: var(--accent);
  box-shadow: var(--shadow-floating);
}

.btn-secondary:active {
  box-shadow: var(--shadow-pressed);
  color: var(--accent);
}

.btn-sm {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.72rem;
  /* 小按钮阴影收敛，避免抢主体 */
  box-shadow: 4px 4px 8px rgba(186, 190, 204, 0.55), -4px -4px 8px rgba(255, 255, 255, 0.7);
}

.hero-device {
  display: flex;
  justify-content: center;
}

.device-bezel {
  width: min(420px, 100%);
  border-radius: 24px;
  background: #2d3436;
  border: 4px solid #1f2527;
  box-shadow: var(--shadow-floating), 0 24px 48px rgba(0, 0, 0, 0.12);
  padding: 18px;
  background-image: url("https://transparenttextures.com/patterns/carbon-fibre.png");
  transition: transform 320ms var(--ease-mechanical), box-shadow 320ms ease;
}

.hero-device:hover .device-bezel {
  transform: scale(1.015);
  box-shadow: 14px 14px 28px var(--shadow-dark), -10px -10px 24px var(--shadow-light),
    inset 1px 1px 0 rgba(255, 255, 255, 0.45), 0 28px 56px rgba(0, 0, 0, 0.14);
}

.device-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: radial-gradient(circle at 35% 30%, #202628, #0f1416);
  box-shadow: inset 8px 8px 18px #0a0d0e, inset -3px -3px 8px rgba(120, 130, 140, 0.2);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  opacity: 0.35;
}

.device-screen.device-screen--ip {
  aspect-ratio: 3 / 4;
  cursor: grab;
}

.device-screen.device-screen--ip:active {
  cursor: grabbing;
}

.ip-display {
  position: relative;
  width: min(86%, 300px);
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  z-index: 1;
}

.ip-display__glow {
  position: absolute;
  inset: 8%;
  border-radius: 14px;
  background: radial-gradient(circle at 40% 35%, rgba(255, 71, 87, 0.35), transparent 62%);
  filter: blur(18px);
  animation: ipGlow 3.2s ease-in-out infinite;
  z-index: 0;
}

.ip-display__views {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 0 2px rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.ip-display__motion {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  animation: ipFloat 4.2s ease-in-out infinite;
  transform-origin: 50% 80%;
}

.ip-display__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 36%;
  display: block;
  transform-origin: 50% 78%;
  animation: ipViewPan 9s ease-in-out infinite;
  transition: transform 220ms ease-out;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.ip-display__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.07) 48%,
    rgba(255, 255, 255, 0) 50%
  );
  background-size: 100% 220%;
  animation: ipScan 3.8s linear infinite;
  mix-blend-mode: screen;
  z-index: 2;
}

.screen-text {
  position: absolute;
  bottom: 12px;
  left: 12px;
  margin: 0;
  color: #e7eaed;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-family: "JetBrains Mono", monospace;
}

.device-led-group {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.led {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  animation: ledPulse 1.8s ease-in-out infinite;
}

.led-online {
  background: #32cd64;
  box-shadow: 0 0 10px rgba(50, 205, 100, 0.8);
}

.led-warn {
  background: #ffc857;
  box-shadow: 0 0 10px rgba(255, 200, 87, 0.7);
}

.led-alert {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 71, 87, 0.75);
}

.device-buttons {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.device-buttons span {
  display: block;
  width: 36px;
  height: 10px;
  border-radius: 999px;
  background: #9aa7b8;
  box-shadow: var(--shadow-recessed);
}

.section-head {
  padding: 22px 24px;
  margin-bottom: 22px;
}

/* 精选项目标题区：与底盘咬合的注塑面板（非扁平白卡） */
.section-head.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  box-shadow: var(--shadow-project);
  overflow: visible;
}

/* 顶栏 / 首屏 / 联系外层：同级模块，统一左上光新拟态 */
.topbar.panel,
.hero.panel,
.contact.panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: var(--shadow-project);
  overflow: visible;
}

.section-head h2,
.contact h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--text);
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.section-head p {
  margin: 8px 0 0;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 500;
  letter-spacing: -0.01em;
}

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

.project-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  isolation: isolate;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-project);
  padding: 12px 12px 14px;
  transition: transform 300ms var(--ease-mechanical), box-shadow 320ms ease, border-color 260ms ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
  /* 必须为 visible，否则多层 box-shadow 会被裁掉，看起来只剩「一条细黑边」 */
  overflow: visible;
}

/* Inner spotlight：磨砂面板上的顶光扫过 */
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    520px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.08) 38%,
    transparent 62%
  );
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 2;
}

/* Edge / 1px 边框高亮：mask 只保留环形，随鼠标局部发亮 */
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    420px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.55),
    rgba(255, 255, 255, 0.12) 26%,
    transparent 56%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: 3;
}

.project-card:hover::before,
.project-card:focus-visible::before,
.project-card:hover::after,
.project-card:focus-visible::after {
  opacity: 1;
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-project-hover);
  border-color: rgba(255, 255, 255, 0.65);
  outline: none;
}

.screw {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(0, 0, 0, 0.22) 0 2px, transparent 3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  pointer-events: none;
  opacity: 0.9;
  z-index: 5;
}

.screw--tl {
  top: 8px;
  left: 8px;
}

.screw--tr {
  top: 8px;
  right: 8px;
}

.screw--bl {
  bottom: 8px;
  left: 8px;
}

.screw--br {
  bottom: 8px;
  right: 8px;
}

.cover-frame {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  background: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.25);
  /* 项目封面外槽位：减弱内凹深度 */
  box-shadow: inset 2px 2px 4px rgba(186, 190, 204, 0.6), inset -2px -2px 4px rgba(255, 255, 255, 0.7);
}

.project-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.project-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: color 220ms ease, transform 280ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f9d55;
  white-space: nowrap;
}

.project-card__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.45);
}

.cover-wrap {
  position: relative;
  aspect-ratio: 800 / 600;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid rgba(163, 177, 198, 0.35);
  /* 项目封面内槽位：进一步减弱内阴影范围与对比 */
  box-shadow: inset 2px 2px 5px rgba(186, 190, 204, 0.55), inset -2px -2px 5px rgba(255, 255, 255, 0.72);
}

.cover-wrap--round {
  border-radius: 18px;
}

.cover-wrap--sharp {
  border-radius: 0;
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1);
  filter: grayscale(0.12);
  transition: transform 420ms cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 420ms ease;
}

.project-card:hover .cover-img,
.project-card:focus-visible .cover-img {
  transform: scale(1.04);
  filter: grayscale(0);
}

.project-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
  transition: transform 280ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-card__desc,
.project-card:focus-visible .project-card__desc {
  transform: translateY(-2px);
}

.project-card:hover .project-card__title,
.project-card:focus-visible .project-card__title {
  color: var(--accent);
  transform: translateY(-1px);
}

.project-card__footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(163, 177, 198, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.view-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: "JetBrains Mono", monospace;
  transition: color 200ms ease, transform 200ms ease;
}

.view-link__icon {
  width: 18px;
  height: 18px;
  padding: 4px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 1px 1px 2px rgba(186, 190, 204, 0.55), inset -1px -1px 2px rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
  color: var(--text-muted);
}

.project-card:hover .view-link,
.project-card:focus-visible .view-link {
  color: var(--accent);
  transform: translateX(2px);
}

.contact {
  padding: 30px;
}

.contact-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  border-radius: 14px;
  padding: 16px;
}

.contact-card__row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-card__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 5px 5px 10px rgba(186, 190, 204, 0.55), -5px -5px 10px rgba(255, 255, 255, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: var(--text-muted);
  transition: box-shadow 200ms ease, transform 200ms var(--ease-mechanical);
}

.contact-card__row:hover .contact-card__icon {
  box-shadow: 7px 7px 14px rgba(186, 190, 204, 0.58), -7px -7px 14px rgba(255, 255, 255, 0.74);
  transform: scale(1.03);
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card__icon--zcool {
  color: #ea580c;
  border-color: rgba(251, 146, 60, 0.4);
  background: var(--panel);
  box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(251, 146, 60, 0.15);
}

.contact-card__body {
  flex: 1;
  min-width: 0;
}

.contact-card__body .label {
  margin-bottom: 6px;
}

.contact-card__body .row {
  margin-top: 2px;
}

.recessed {
  background: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-recessed);
}

.label {
  margin: 0 0 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
}

.contact a {
  color: var(--text);
}

.contact a:hover {
  color: var(--accent);
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toast {
  min-height: 1.5rem;
  margin: 12px 0 0;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
}

.footer {
  width: min(1152px, calc(100% - 48px));
  margin: 0 auto 30px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@keyframes ipFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
  }
}

@keyframes ipViewPan {
  0%,
  100% {
    object-position: 52% 34%;
  }
  33% {
    object-position: 58% 38%;
  }
  66% {
    object-position: 50% 40%;
  }
}

@keyframes ipGlow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}

@keyframes ipScan {
  0% {
    background-position: 0 -120%;
  }
  100% {
    background-position: 0 220%;
  }
}

@keyframes ledPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.58;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 36px 40px 40px;
  }

  .hero-copy {
    padding-right: 0;
  }

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

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

@media (max-width: 680px) {
  .container,
  .topbar,
  .footer {
    width: calc(100% - 24px);
  }

  .container {
    gap: 56px;
    padding-top: 20px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero,
  .contact {
    padding: 20px;
  }

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

  .hero-cta .btn {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
