﻿:root {
  --paper: #f5f5f7;
  --paper-strong: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.1);
  --line-soft: rgba(29, 29, 31, 0.06);
  --accent: #0071e3;
  --accent-soft: #e8f2ff;
  --max: 1320px;
  --card-shadow: 0 12px 36px rgba(0, 0, 0, 0.06);
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Space Grotesk", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

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

main,
.topbar {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 24px 0 18px;
}

.nameplate {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
}

.nameplate-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.8);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.topnav a,
.intro-tag,
.section-index,
.section-caption,
.info-label,
.mobile-type,
.tap-row {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intro-tag {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transform: translateY(-18px);
}

.topnav a,
.section-caption,
.intro-tag,
.section-index,
.info-label,
.mobile-type,
.tap-row {
  color: var(--muted);
}

.intro {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 26px;
  padding: 76px 0 62px;
  border-top: 1px solid var(--line);
  align-items: center;
  text-align: center;
}

.intro h1,
.section-head h2,
.contact-strip h2,
.project-title {
  margin: 0;
  font-weight: 700;
}

.intro h1,
.project-title {
  font-family: var(--font-display);
}

.section-head h2,
.contact-strip h2 {
  font-family: var(--font-display);
  font-weight: 500;
}

.intro h1 {
  max-width: 9ch;
  font-size: clamp(4.4rem, 8.7vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.intro-copy {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(100%, 760px);
}

.intro-lead,
.project-subline,
.info-copy,
.compact-list,
.mobile-copy p,
.contact-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.intro-lead {
  max-width: 34ch;
  font-size: 1.18rem;
  line-height: 1.65;
}

.intro-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-top: 14px;
}

.intro-facts span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.72);
}

.selected-work,
.info-section,
.contact-strip {
  padding: 34px 0 18px;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 34px;
  text-align: center;
}

.section-head h2,
.contact-strip h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
}

.section-head .section-caption {
  max-width: 62ch;
  margin: 10px auto 0;
  line-height: 1.55;
}

.project-desktop {
  display: block;
}

.project-directory {
  width: 100%;
  margin: 0;
  display: grid;
  gap: 18px;
}

.project-item {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  animation: project-card-enter 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--item-index, 0) * 110ms);
  transition:
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 320ms ease,
    background 320ms ease,
    box-shadow 320ms ease;
  will-change: transform, opacity;
}

.project-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.82), transparent 34%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.56), transparent 42%);
  opacity: 0;
  transition: opacity 320ms ease;
}

.project-item::after {
  content: "Open case study";
  position: absolute;
  right: clamp(26px, 3vw, 38px);
  bottom: clamp(24px, 3vw, 34px);
  z-index: 2;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  backdrop-filter: blur(14px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.project-item.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.project-item.is-hovered {
  border-color: rgba(0, 113, 227, 0.32);
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 28px 70px rgba(29, 29, 31, 0.11),
    0 10px 34px rgba(0, 113, 227, 0.08);
  transform: translateY(-8px) scale(1.012) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.project-item.is-hovered::before,
.project-item.is-hovered::after {
  opacity: 1;
}

.project-item.is-hovered::after {
  transform: translateY(0);
}

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

.project-number {
  width: 52px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 260ms ease, transform 320ms ease;
}

.project-link {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-title {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  transition: letter-spacing 320ms ease, color 260ms ease;
}

.project-subline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 62ch;
  font-size: 0.95rem;
}

.slash {
  width: 18px;
  height: 1px;
  margin-top: 0.75em;
  background: var(--ink);
  flex: 0 0 auto;
}

.project-preview {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  aspect-ratio: 1.18;
  opacity: 1;
  transform: none;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 320ms ease,
    box-shadow 320ms ease,
    filter 320ms ease;
}

.project-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 36%),
    radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.34), transparent 30%);
  opacity: 0;
  transition: opacity 320ms ease;
}

.project-item.is-hovered .project-number {
  color: var(--accent);
  transform: translateX(4px);
}

.project-item.is-hovered .project-link {
  transform: translateX(8px);
}

.project-item.is-hovered .project-title {
  color: #101014;
  letter-spacing: -0.058em;
}

.project-item.is-hovered .project-preview {
  border-color: rgba(0, 113, 227, 0.22);
  box-shadow:
    0 18px 50px rgba(29, 29, 31, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  filter: saturate(1.08) contrast(1.03);
  transform: translateX(-3px) scale(1.035);
}

.project-item.is-hovered .project-preview::after {
  opacity: 1;
}

@keyframes project-card-enter {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.985) rotateX(0deg) rotateY(0deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg) rotateY(0deg);
  }
}

.preview-clinical {
  background:
    linear-gradient(rgba(19, 25, 33, 0.04), rgba(19, 25, 33, 0.04)),
    url("assets/preview-transitscope-generated.png") center/cover no-repeat;
}

.preview-render {
  background:
    linear-gradient(rgba(25, 18, 38, 0.04), rgba(25, 18, 38, 0.04)),
    url("assets/preview-ai-animation-generated.png") center/cover no-repeat;
}

.preview-system {
  background:
    linear-gradient(rgba(25, 25, 28, 0.03), rgba(25, 25, 28, 0.03)),
    url("assets/preview-eldercare-generated.png") center/cover no-repeat;
}

.preview-object {
  background:
    radial-gradient(circle at 28% 28%, rgba(250, 236, 201, 0.72), transparent 18%),
    linear-gradient(145deg, #56645f 0%, #212a29 100%);
}

.project-mobile {
  display: none;
}

.mobile-card {
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--card-shadow);
}

.mobile-card-link {
  display: block;
}

.mobile-cover {
  position: relative;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.mobile-cover span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--font-sans);
  font-size: 2.4rem;
  color: rgba(248, 246, 241, 0.96);
}

.mobile-copy {
  padding-top: 14px;
}

.mobile-copy h3 {
  margin: 8px 0 10px;
  font-family: var(--font-sans);
  font-size: 2rem;
  line-height: 1;
}

.tap-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.tap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.info-card {
  min-height: 220px;
  padding: 18px 18px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--card-shadow);
}

.info-copy,
.compact-list {
  margin-top: 20px;
}

.compact-list {
  padding-left: 18px;
}

.compact-list li {
  margin-bottom: 10px;
}

.contact-strip {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 22px;
  padding-bottom: 80px;
  text-align: center;
}

.contact-content {
  display: grid;
  justify-items: center;
  gap: 20px;
  max-width: 760px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.detail-page .topbar,
.detail-main {
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
}

.detail-main {
  padding-bottom: 80px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 24px;
  padding: 44px 0 40px;
  border-top: 1px solid var(--line);
}

.detail-hero h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(4rem, 8vw, 6.6rem);
  line-height: 0.9;
}

.detail-summary {
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 20px;
}

.detail-summary p,
.detail-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
  padding: 22px 0 0;
}

.detail-card,
.video-card,
.open-project-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--card-shadow);
}

.detail-card {
  padding: 20px;
  min-height: 220px;
}

.detail-overview {
  grid-column: span 1;
}

.detail-copy + .detail-copy {
  margin-top: 14px;
}

.detail-notes {
  display: grid;
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-note-row {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  padding: 24px 0;
}

.detail-note-row + .detail-note-row {
  border-top: 1px solid var(--line);
}

.detail-note-row .info-label {
  margin: 4px 0 0;
}

.detail-note-row .detail-copy {
  max-width: 760px;
}

.media-section,
.open-project-section {
  padding: 38px 0 0;
}

.feature-stack {
  display: grid;
  gap: 22px;
}

.feature-video-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

.feature-video-copy h3 {
  margin: 8px 0 12px;
  font-family: var(--font-sans);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 0.98;
}

.video-card {
  overflow: hidden;
}

.video-card video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.open-project-card {
  display: grid;
  gap: 20px;
  padding: 22px;
}

.open-project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-open-project-button {
  min-height: 68px;
  min-width: 320px;
  padding: 0 32px;
  border: 0;
  font-size: 0.98rem;
  letter-spacing: 0.05em;
  box-shadow:
    0 18px 40px rgba(0, 113, 227, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.hero-open-project-button::after {
  content: "->";
  font-size: 1rem;
  transform: translateY(-1px);
}

.hero-open-project-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 52px rgba(0, 113, 227, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.open-project-button.is-disabled {
  pointer-events: none;
  border-color: var(--line);
  background: #d2d2d7;
  color: var(--muted);
}

.client-showcase {
  width: min(calc(100% - 28px), 1540px);
  margin: 0 auto;
  padding-bottom: 110px;
}

.showcase-hero {
  min-height: 30vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
  align-content: center;
  align-items: end;
  gap: 28px 56px;
  border-top: 1px solid var(--line);
  padding: 68px 0 50px;
}

.showcase-hero h1 {
  grid-column: 1;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.8rem, 7vw, 6.4rem);
  line-height: 0.96;
  font-weight: 700;
}

.showcase-hero .intro-tag {
  grid-column: 1 / -1;
}

.showcase-hero-copy {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.showcase-hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.showcase-reset {
  width: fit-content;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--card-shadow);
}

.showcase-reset:hover {
  color: var(--ink);
  border-color: rgba(0, 113, 227, 0.28);
}

.showcase-try {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.showcase-try:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}

.lab-scene.is-guiding {
  border-color: rgba(0, 113, 227, 0.55);
  box-shadow:
    0 0 0 4px rgba(0, 113, 227, 0.12),
    var(--card-shadow);
}

.device-stack {
  display: grid;
  gap: 32px;
}

.client-scene {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  min-height: 800px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--card-shadow);
}

.scene-copy {
  display: grid;
  gap: 12px;
}

.scene-copy span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.scene-copy h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  line-height: 1;
  font-weight: 700;
}

.scene-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.lab-controls {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.lab-controls button,
.lab-modal-close {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lab-controls button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  background: rgba(245, 245, 247, 0.8);
}

.lab-controls .lab-primary {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.lab-status {
  min-height: 42px;
  font-size: 0.9rem;
}

.lab-scene {
  grid-template-columns: 340px minmax(0, 1fr);
  align-items: center;
}

.lab-scene .scene-copy {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: auto;
}

.lab-stage {
  display: grid;
  grid-template-rows: minmax(250px, auto) auto;
  gap: 22px;
  align-items: stretch;
}

.lab-order-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.46fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 251, 255, 0.9));
  box-shadow: 0 24px 60px rgba(52, 67, 77, 0.12);
}

.lab-order-info {
  display: grid;
  gap: 8px;
  min-height: 250px;
}

.lab-eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.lab-order-card h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.lab-preview-button {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 10px;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 18px;
  background: #f7f7f2;
  color: var(--muted);
  cursor: pointer;
  overflow: hidden;
}

.lab-preview-button:disabled {
  cursor: default;
}

.lab-preview-button img {
  display: none;
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(29, 29, 31, 0.1);
}

.lab-preview-button.has-image img {
  display: block;
}

.lab-preview-button.has-image span {
  display: none;
}

.lab-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 36px;
  background: rgba(29, 29, 31, 0.62);
  backdrop-filter: blur(14px);
}

.lab-modal[hidden] {
  display: none;
}

.lab-modal img {
  max-width: min(92vw, 920px);
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.lab-modal-close {
  position: fixed;
  top: 24px;
  right: 24px;
  background: #fff;
}

.desktop-device {
  position: relative;
  display: grid;
  justify-items: center;
}

.caregiver-import-status {
  position: absolute;
  inset: 18px auto auto 50%;
  z-index: 4;
  width: min(520px, calc(100% - 72px));
  transform: translateX(-50%);
  display: grid;
  gap: 6px;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 113, 227, 0.22);
  box-shadow: 0 20px 60px rgba(31, 59, 76, 0.18);
  text-align: center;
}

.caregiver-import-status[hidden] {
  display: none;
}

.caregiver-import-status strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.caregiver-import-status span {
  color: var(--muted);
  font-size: 0.95rem;
}

.monitor-frame {
  width: min(100%, 1100px);
  aspect-ratio: 16 / 10;
  padding: 18px;
  border-radius: 30px;
  background: linear-gradient(180deg, #1d1d1f, #3b3b3d);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.monitor-frame iframe,
.fridge-screen iframe,
.pill-screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

.monitor-frame iframe {
  border-radius: 18px;
}

.desktop-viewport iframe {
  width: 125%;
  height: 125%;
  transform: scale(0.8);
  transform-origin: top left;
}

.monitor-neck {
  width: 108px;
  height: 58px;
  background: linear-gradient(90deg, #c9c9cf, #f0f0f3, #b9b9bf);
}

.monitor-base {
  width: 340px;
  height: 26px;
  border-radius: 999px 999px 14px 14px;
  background: linear-gradient(180deg, #e9e9ec, #bdbdc4);
}

.smart-clock-device {
  width: min(100%, 920px);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  padding-top: 12px;
}

.clock-top-buttons {
  width: min(68%, 600px);
  height: 32px;
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 18px;
  align-items: end;
  transform: translateY(8px);
  z-index: 0;
}

.clock-top-buttons span {
  height: 26px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, #d6dde0, #aab5bc);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

.clock-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7.4;
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: clamp(34px, 5vw, 56px);
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 255, 255, 0.7), transparent 32%),
    linear-gradient(145deg, #e9eef0 0%, #b8c4ca 48%, #8fa0aa 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.58),
    inset 0 -18px 38px rgba(52, 67, 77, 0.18),
    0 34px 80px rgba(52, 67, 77, 0.22);
  z-index: 1;
}

.clock-shell::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: calc(clamp(34px, 5vw, 56px) - 10px);
  border: 1px solid rgba(63, 78, 86, 0.2);
  pointer-events: none;
}

.clock-speaker {
  position: absolute;
  top: 50%;
  right: clamp(18px, 2vw, 26px);
  width: 28px;
  height: 58%;
  transform: translateY(-50%);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(64, 78, 86, 0.55) 0 2px, transparent 2.5px) 0 0 / 10px 12px;
  opacity: 0.55;
}

.clock-screen {
  position: relative;
  width: calc(100% - 48px);
  height: 100%;
  overflow: hidden;
  border-radius: clamp(24px, 3vw, 36px);
  background: #dceefb;
  border: 10px solid #20394d;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.25),
    inset 0 0 32px rgba(31, 59, 76, 0.2);
}

.clock-screen iframe {
  width: 128%;
  height: 128%;
  border: 0;
  background: #dceefb;
  transform: scale(0.78125);
  transform-origin: top left;
}

.clock-feet {
  width: min(72%, 680px);
  display: flex;
  justify-content: space-between;
  padding: 0 8%;
  transform: translateY(-2px);
}

.clock-feet span {
  width: 120px;
  height: 22px;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(180deg, #899aa4, #667783);
  box-shadow: 0 16px 28px rgba(52, 67, 77, 0.16);
}

.kitchen-device {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.cabinet-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 0 44px;
}

.cabinet-row span {
  height: 98px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(180deg, #d9ddd0, #aeb6a5);
  border: 1px solid rgba(80, 88, 72, 0.18);
}

.fridge-body {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  min-height: 440px;
  padding: 38px;
  border: 1px solid rgba(80, 88, 72, 0.16);
  border-radius: 38px;
  background: linear-gradient(180deg, #f8f4ec, #e7e2d8);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.32), 0 28px 70px rgba(75, 68, 56, 0.16);
}

.fridge-screen {
  height: 330px;
  overflow: hidden;
  padding: 12px;
  border-radius: 28px;
  background: #f7f7f8;
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 50px rgba(0, 0, 0, 0.08);
}

.fridge-screen iframe {
  border-radius: 16px;
}

.fridge-detail {
  display: grid;
  gap: 28px;
  color: #4d5146;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  text-align: center;
  font-size: 1.6rem;
}

.week-strip strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 50%;
  background: #71835d;
  color: white;
}

.rail-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 34px;
}

.rail-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 999px;
  background: #858b70;
}

.rail-line i {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 34px;
  border-radius: 999px;
  background: #646b54;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  color: var(--muted);
}

.legend-row b {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7b8466;
}

.legend-row b:nth-of-type(2) {
  background: #e3b651;
}

.legend-row b:nth-of-type(3) {
  background: #7eb2c3;
}

.tablet-device {
  width: min(92%, 900px);
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.tablet-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 24px;
  border-radius: 36px;
  background: linear-gradient(145deg, #1d1d1f, #3a3a3c);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.tablet-frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 29px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 2;
}

.tablet-camera {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0b0b0c;
  transform: translateX(-50%);
  z-index: 2;
}

.tablet-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 20px;
  background: white;
}

.tablet-frame .tablet-dashboard-frame {
  width: 180%;
  height: 180%;
  transform: scale(0.556);
  transform-origin: top left;
}

.pill-device {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 14px 22px 24px;
  border-radius: 40px;
  background: linear-gradient(180deg, #f9f6ef, #ddd7ca);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.35), 0 28px 70px rgba(75, 68, 56, 0.18);
}

.pill-lid-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.pill-lid-row span {
  height: 104px;
  border-radius: 20px 20px 8px 8px;
  background: linear-gradient(180deg, #d8ded1, #a7b09b);
  border: 1px solid rgba(80, 88, 72, 0.18);
}

.pill-body {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 28px 38px;
  align-items: center;
  min-height: 390px;
  padding: 34px;
  border-radius: 0 0 34px 34px;
  background: rgba(255, 252, 245, 0.82);
  border: 1px solid rgba(80, 88, 72, 0.14);
}

.pill-screen {
  grid-row: span 2;
  height: 320px;
  overflow: hidden;
  padding: 12px;
  border-radius: 28px;
  background: #f8f8f8;
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 50px rgba(0, 0, 0, 0.08);
}

.pill-screen iframe {
  border-radius: 16px;
}

.pill-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 1.45rem;
}

.pill-week strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 50%;
  background: #71835d;
  color: white;
}

.pill-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
  align-items: center;
}

.pill-track i {
  height: 12px;
  border-radius: 999px;
  background: #8c927b;
}

.device-photo-stage {
  position: relative;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.device-photo-stage img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.04) saturate(1.04);
}

.device-photo-screen {
  position: absolute;
  left: 6.25%;
  top: 33.8%;
  width: 28.15%;
  height: 49.2%;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  z-index: 2;
}

.device-photo-screen iframe {
  width: 200%;
  height: 200%;
  border: 0;
  transform: scale(0.5);
  transform-origin: top left;
  background: white;
}

.case-visual {
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--card-shadow);
  padding: clamp(10px, 1.4vw, 18px);
}

.case-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
}

.material-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.material-grid figure {
  margin: 0;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--card-shadow);
  padding: clamp(10px, 1.4vw, 18px);
}

.material-grid img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
}

.material-grid figcaption {
  padding: 16px 6px 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .project-directory {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .intro,
  .info-grid,
  .contact-strip,
  .detail-hero,
  .detail-grid,
  .feature-video-card,
  .material-grid,
  .client-scene,
  .fridge-body,
  .pill-body {
    grid-template-columns: 1fr;
  }

  .client-showcase {
    width: min(calc(100% - 16px), 1540px);
  }

  .client-scene {
    min-height: auto;
    padding: 24px;
  }

  .fridge-screen,
  .pill-screen {
    height: 280px;
  }

  .pill-screen {
    grid-row: auto;
  }

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

  .project-desktop {
    display: none;
  }

  .project-mobile {
    display: block;
  }

  .detail-page .topbar,
  .detail-main {
    width: min(calc(100% - 24px), 1180px);
  }

  .detail-note-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  main,
  .topbar {
    width: min(calc(100% - 24px), var(--max));
  }

  .topbar {
    padding-top: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .intro {
    padding: 42px 0 48px;
  }

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

  .section-head {
    gap: 8px;
  }

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

  .mobile-cover {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
  }

  .detail-hero {
    gap: 24px;
    padding: 34px 0 30px;
  }

  .detail-hero h1 {
    font-size: clamp(3.2rem, 18vw, 4.9rem);
    overflow-wrap: anywhere;
  }

  .detail-summary {
    gap: 16px;
  }

  .hero-open-project-button {
    width: 100%;
    min-width: 0;
    min-height: 62px;
    padding: 0 22px;
    text-align: center;
  }

  .detail-grid {
    gap: 14px;
  }

  .detail-card {
    min-height: auto;
    padding: 18px;
    border-radius: 18px;
  }

  .case-visual,
  .video-card,
  .open-project-card {
    border-radius: 18px;
  }

  .section-head {
    margin-bottom: 20px;
  }

  .section-head h2,
  .contact-strip h2 {
    font-size: clamp(2.15rem, 12vw, 3.2rem);
  }

  .feature-video-card {
    gap: 14px;
  }

  .feature-video-copy h3 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .client-showcase {
    width: min(calc(100% - 16px), 1540px);
    padding-bottom: 64px;
  }

  .showcase-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 18px;
    padding: 36px 0 32px;
  }

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

  .showcase-hero-copy {
    gap: 14px;
  }

  .showcase-actions {
    width: 100%;
  }

  .showcase-reset {
    flex: 1 1 150px;
    justify-content: center;
    min-height: 48px;
  }

  .device-stack {
    gap: 18px;
  }

  .client-scene {
    gap: 22px;
    padding: 20px;
    border-radius: 24px;
  }

  .scene-copy h2 {
    font-size: clamp(2.35rem, 13vw, 3.7rem);
  }

  .monitor-frame {
    padding: 10px;
    border-radius: 22px;
  }

  .monitor-frame iframe {
    border-radius: 12px;
  }

  .monitor-neck {
    width: 72px;
    height: 38px;
  }

  .monitor-base {
    width: min(70%, 230px);
    height: 20px;
  }

  .tablet-device {
    width: 100%;
  }

  .tablet-frame {
    padding: 14px;
    border-radius: 28px;
  }

  .tablet-frame::before {
    inset: 6px;
    border-radius: 22px;
  }

  .tablet-frame iframe {
    border-radius: 14px;
  }

  .lab-scene {
    grid-template-columns: 1fr;
  }

  .lab-order-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .lab-order-info {
    min-height: auto;
  }

  .lab-preview-button {
    min-height: 220px;
  }

  .smart-clock-device {
    width: 100%;
    padding-top: 4px;
  }

  .clock-shell {
    aspect-ratio: 16 / 8.8;
    padding: 14px;
    border-radius: 32px;
  }

  .clock-screen {
    width: calc(100% - 34px);
    border-width: 7px;
    border-radius: 22px;
  }

  .clock-speaker {
    right: 12px;
    width: 18px;
  }

  .clock-feet span {
    width: 82px;
  }

  .device-photo-stage {
    width: min(100%, 760px);
  }
}

@media (max-width: 480px) {
  .topbar {
    gap: 14px;
  }

  .topnav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .intro h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .mobile-card {
    padding: 12px;
    border-radius: 22px;
  }

  .mobile-cover {
    min-height: 190px;
    border-radius: 18px;
  }

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

  .hero-open-project-button {
    min-height: 58px;
    font-size: 0.86rem;
    letter-spacing: 0.035em;
  }

  .detail-card,
  .info-card {
    padding: 16px;
  }

  .client-scene {
    padding: 16px;
  }

  .showcase-hero h1,
  .scene-copy h2 {
    font-size: clamp(2.7rem, 16vw, 4.2rem);
  }

  .lab-controls button,
  .lab-modal-close {
    min-height: 48px;
  }

  .clock-shell {
    aspect-ratio: 16 / 9.7;
    padding: 11px;
    border-radius: 26px;
  }

  .clock-screen {
    width: calc(100% - 28px);
    border-width: 6px;
    border-radius: 18px;
  }

  .clock-feet span {
    width: 64px;
  }
}

