
:root {
  color-scheme: light;
  --ink: #20242f;
  --muted: #5f6673;
  --paper: #ffffff;
  --surface: #f6f8fb;
  --line: #d9dee7;
  --blue: #2563eb;
  --green: #0f9f6e;
  --orange: #dc6b2f;
  --yellow: #f2c94c;
  --shadow: 0 14px 40px rgba(28, 33, 44, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.site-header nav a:hover { color: var(--ink); }

.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: clamp(64px, 12vw, 120px) clamp(20px, 6vw, 72px);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.hero-portfolio {
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.64), rgba(15, 23, 42, 0.25)), url("../projects/aidigitaltwin/demo/assets/business_dashboard.svg");
}

.project-hero { min-height: 66vh; }

.aidt-hero {
  background-image: linear-gradient(90deg, rgba(22, 31, 48, 0.90), rgba(22, 31, 48, 0.60), rgba(22, 31, 48, 0.28)), url("../projects/aidigitaltwin/demo/assets/cutter_patterns_EU44.svg");
}

.smiling-hero {
  background-image: linear-gradient(90deg, rgba(33, 33, 28, 0.86), rgba(33, 33, 28, 0.58), rgba(33, 33, 28, 0.18)), url("../assets/smiling-angel/event_fb.jpg");
}

.hero-copy {
  max-width: 760px;
  color: #fff;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero .eyebrow { color: var(--yellow); }

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 750;
  font-size: 14px;
}

.button.primary {
  background: var(--blue);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.button.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 6vw, 72px);
}

section[id] { scroll-margin-top: 96px; }

.section-tight { padding-top: clamp(46px, 7vw, 72px); }

.section-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading h2,
.two-column h2,
.deploy-panel h2,
.simple-page h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p,
.two-column p,
.deploy-panel p,
.plain-panel p,
.report-link p,
.work-item p {
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card,
.asset-tile,
.image-tile,
.evidence-box,
.report-link,
.plain-panel,
.work-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.project-card { box-shadow: var(--shadow); }

.project-card img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  object-position: center center;
  background: var(--surface);
  padding: 12px;
}

.project-card-body { padding: 22px; }

.project-type,
.work-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3,
.asset-tile h3,
.image-tile h3,
.work-item h3,
.plain-panel h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.metric-row span,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.accent-blue { border-top: 6px solid var(--blue); }
.accent-green { border-top: 6px solid var(--green); }

.band { background: var(--surface); }

.work-list {
  display: grid;
  gap: 12px;
}

.work-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.work-item h3 { font-size: 18px; }

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.clean-list {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--ink);
}

.clean-list li { margin: 8px 0; }

.evidence-box {
  padding: 22px;
  border-top: 6px solid var(--blue);
}

.evidence-box.warm { border-top-color: var(--orange); }

.evidence-box h3 { margin: 0 0 14px; }

.evidence-box dl { margin: 0; }

.evidence-box dl div {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.evidence-box dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.evidence-box dd { margin: 4px 0 0; font-weight: 750; }

.gallery-section { background: #fff; }

.asset-grid {
  display: grid;
  gap: 18px;
}

.asset-grid.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.asset-tile,
.image-tile { padding: 14px; }

.asset-tile img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.asset-tile h3,
.image-tile h3 { margin-top: 12px; font-size: 17px; }

.asset-tile p { margin: 0; color: var(--muted); font-size: 14px; }

.image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.image-frame {
  width: 100%;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.image-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  padding: 10px;
}

.simple-table {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.simple-table div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.65fr);
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.simple-table div:first-child { border-top: 0; }

.simple-table strong { text-align: right; }

.workflow-grid,
.prep-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.report-links { background: var(--surface); }

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.report-link,
.plain-panel {
  display: block;
  padding: 18px;
}

.report-link span,
.plain-panel h3 {
  display: block;
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 17px;
}

.report-link:hover { border-color: var(--blue); }

.deploy-panel {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  background: #192132;
  color: #fff;
}

.deploy-panel p { color: rgba(255, 255, 255, 0.78); max-width: 800px; }

.site-footer {
  padding: 28px clamp(20px, 6vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a { color: var(--blue); font-weight: 750; }

.simple-page {
  min-height: 70vh;
  padding: clamp(72px, 12vw, 140px) clamp(20px, 6vw, 72px);
}

.deployment-grid { margin-top: 24px; }

.command-block {
  margin-top: 24px;
  padding: 18px;
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #101827;
  color: #e6edf7;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .project-grid,
  .two-column,
  .asset-grid.four-up,
  .image-grid,
  .link-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 68vh;
    padding-top: 72px;
  }

  .project-grid,
  .two-column,
  .asset-grid.four-up,
  .image-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .project-card img { height: 220px; }

  .image-frame { height: min(78vw, 340px); }

  .simple-table div {
    grid-template-columns: 1fr;
  }

  .simple-table strong { text-align: left; }

  .work-item,
  .deploy-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}
