:root {
  --ink: #142a35;
  --navy: #17384c;
  --navy-deep: #0d2531;
  --teal: #2f7d91;
  --teal-soft: #c9e5e8;
  --paper: #f4f2eb;
  --paper-deep: #e9e7de;
  --white: #fffdf8;
  --line: rgba(20, 42, 53, 0.16);
  --muted: #64747b;
  --lime: #d9ed8f;
  --coral: #ef866d;
  --shadow: 0 18px 60px rgba(13, 37, 49, 0.12);
  --radius-lg: 26px;
  --radius-md: 16px;
  --mono: "IBM Plex Mono", "Cascadia Code", Consolas, monospace;
  --sans: Inter, "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-deep);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.site-shell {
  width: min(100%, 1600px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 78px;
  padding: 0 clamp(24px, 5vw, 84px);
  color: var(--white);
  background: rgba(23, 56, 76, 0.96);
  border-bottom: 1px solid rgba(255, 253, 248, 0.16);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--navy);
  font-weight: 900;
  background: var(--lime);
  border-radius: 50%;
}

.brand-name {
  display: grid;
  gap: 1px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

.brand-name small {
  color: rgba(255, 253, 248, 0.56);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: rgba(255, 253, 248, 0.72);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main-nav a,
.footer > a:last-child {
  transition: color 180ms ease, transform 180ms ease;
}

.main-nav a:hover,
.footer > a:last-child:hover {
  color: var(--lime);
  transform: translateY(-1px);
}

.language-toggle {
  min-width: 64px;
  padding: 9px 12px;
  color: var(--white);
  font: 700 11px var(--mono);
  letter-spacing: 0.04em;
  background: transparent;
  border: 1px solid rgba(255, 253, 248, 0.34);
  border-radius: 999px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.language-toggle:hover {
  color: var(--navy);
  background: var(--lime);
  border-color: var(--lime);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(48px, 8vw, 128px);
  min-height: 690px;
  padding: clamp(72px, 9vw, 142px) clamp(24px, 8vw, 130px) clamp(78px, 9vw, 136px);
  color: var(--white);
  background: var(--navy);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 76px 76px,
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 76px 76px,
    radial-gradient(circle at 12% 22%, rgba(217, 237, 143, 0.13), transparent 26%),
    radial-gradient(circle at 88% 56%, rgba(47, 125, 145, 0.35), transparent 30%);
  content: "";
}

.hero::after {
  position: absolute;
  right: -140px;
  bottom: -180px;
  z-index: -1;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(217, 237, 143, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(217, 237, 143, 0.025), 0 0 0 82px rgba(217, 237, 143, 0.02);
  content: "";
}

.hero-copy,
.signal-board {
  position: relative;
  z-index: 2;
}

.hero-copy {
  align-self: center;
  max-width: 760px;
}

.eyebrow,
.card-label,
.case-kicker,
.download-type,
.scope-key,
.contact-meta,
.board-topline,
.case-rail p {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--teal);
}

.hero .eyebrow,
.signal-board .eyebrow {
  color: var(--lime);
}

.hero h1 {
  max-width: 820px;
  margin: 25px 0 26px;
  font-size: clamp(52px, 7.1vw, 116px);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.93;
}

h1 em,
h2 em {
  color: var(--lime);
  font-style: normal;
}

.hero-lede {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 253, 248, 0.75);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

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

.button-primary {
  color: var(--navy);
  background: var(--lime);
}

.button-primary:hover {
  background: #e8f7b5;
}

.button-quiet {
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.34);
}

.button-quiet:hover {
  color: var(--navy);
  background: var(--white);
  border-color: var(--white);
}

.scope-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  max-width: 640px;
  margin: 46px 0 0;
  color: rgba(255, 253, 248, 0.56);
  font-size: 12px;
}

.scope-key {
  color: var(--lime);
}

.signal-board {
  align-self: center;
  max-width: 470px;
  margin-left: auto;
  padding: 22px;
  background: rgba(13, 37, 49, 0.67);
  border: 1px solid rgba(217, 237, 143, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.board-topline {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 253, 248, 0.62);
}

.board-number {
  color: var(--lime);
}

.board-core {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0 28px;
  color: var(--lime);
  border-bottom: 1px solid rgba(255, 253, 248, 0.16);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.board-core strong {
  font-size: 24px;
  font-weight: 400;
}

.board-list {
  display: grid;
}

.board-list a {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  color: rgba(255, 253, 248, 0.82);
  border-bottom: 1px solid rgba(255, 253, 248, 0.1);
  font-size: 14px;
  transition: color 160ms ease, padding 160ms ease;
}

.board-list a:last-child {
  border-bottom: 0;
}

.board-list a:hover {
  padding-left: 6px;
  color: var(--lime);
}

.board-list span,
.board-list i {
  color: rgba(255, 253, 248, 0.44);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
}

.ambient-ring,
.ambient-dot,
.ambient-line {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.ambient-ring {
  border: 1px solid rgba(217, 237, 143, 0.18);
  border-radius: 50%;
}

.ring-one {
  top: 8%;
  right: 38%;
  width: 110px;
  height: 110px;
}

.ring-two {
  top: calc(8% + 17px);
  right: calc(38% + 17px);
  width: 76px;
  height: 76px;
  border-color: rgba(47, 125, 145, 0.38);
}

.ambient-dot {
  width: 7px;
  height: 7px;
  background: var(--coral);
  border-radius: 50%;
}

.dot-one {
  top: 17%;
  right: 33%;
}

.dot-two {
  bottom: 18%;
  left: 8%;
  background: var(--lime);
}

.ambient-line {
  top: 20%;
  left: 6%;
  width: 13%;
  border-top: 1px solid rgba(217, 237, 143, 0.28);
  transform: rotate(-20deg);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 clamp(24px, 8vw, 130px);
  color: var(--white);
  background: var(--navy-deep);
}

.proof-strip > div {
  display: grid;
  gap: 4px;
  padding: 25px 24px 28px 0;
  border-right: 1px solid rgba(255, 253, 248, 0.14);
}

.proof-strip > div:not(:first-child) {
  padding-left: 24px;
}

.proof-strip > div:last-child {
  border-right: 0;
}

.proof-strip strong {
  color: var(--lime);
  font-family: var(--mono);
  font-size: 24px;
  line-height: 1;
}

.proof-strip span {
  color: rgba(255, 253, 248, 0.58);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section {
  padding: clamp(86px, 10vw, 150px) clamp(24px, 8vw, 130px);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 52px;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  gap: 60px;
  align-items: end;
  max-width: none;
}

.section h2,
.resume-panel h2,
.contact-section h2 {
  margin: 20px 0 0;
  color: var(--navy);
  font-size: clamp(40px, 5vw, 76px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.section-intro {
  max-width: 470px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.fit-section {
  background: var(--paper);
}

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

.fit-card {
  min-height: 340px;
  padding: 25px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(20, 42, 53, 0.04);
}

.fit-card-accent {
  background: var(--teal-soft);
  border-color: transparent;
}

.fit-card-dark {
  color: var(--white);
  background: var(--navy);
  border-color: transparent;
}

.fit-card-dark .card-label,
.fit-card-dark h3,
.fit-card-dark p {
  color: var(--white);
}

.card-index {
  display: block;
  margin-bottom: 46px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}

.fit-card-dark .card-index,
.fit-card-dark .card-label {
  color: var(--lime);
}

.card-label {
  color: var(--teal);
}

.fit-card h3 {
  margin: 11px 0 13px;
  font-size: 23px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.fit-card p:not(.card-label) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.fit-card-dark p:not(.card-label) {
  color: rgba(255, 253, 248, 0.66);
}

.text-link {
  display: inline-flex;
  gap: 7px;
  margin-top: 22px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fit-card-dark .text-link {
  color: var(--lime);
}

.work-section {
  color: var(--white);
  background: var(--navy-deep);
}

.work-section .section-heading h2 {
  color: var(--white);
}

.work-section .section-intro {
  color: rgba(255, 253, 248, 0.62);
}

.case-list {
  display: grid;
  gap: 12px;
}

.case {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.case-cobalt .case-rail {
  background: var(--teal);
}

.case-lime .case-rail {
  background: var(--lime);
}

.case-coral .case-rail {
  background: var(--coral);
}

.case-dark .case-rail {
  color: var(--white);
  background: #49616a;
}

.case-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  padding: 24px;
}

.case-rail > span {
  font-family: var(--mono);
  font-size: 27px;
  font-weight: 800;
}

.case-rail p {
  max-width: 100px;
  color: currentColor;
  font-size: 10px;
  line-height: 1.6;
}

.case-main {
  padding: 25px 30px 22px;
}

.case-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.case-kicker {
  color: var(--teal);
}

.case h3 {
  max-width: 700px;
  margin: 9px 0 0;
  font-size: clamp(23px, 3vw, 38px);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.status-pill {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: var(--teal);
  border: 1px solid rgba(47, 125, 145, 0.3);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
}

.case-summary {
  max-width: 790px;
  margin: 18px 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.case-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-proof span {
  padding: 7px 10px;
  color: var(--navy);
  background: var(--paper-deep);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
}

details {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0 2px;
  color: var(--teal);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  list-style: none;
  text-transform: uppercase;
}

summary::-webkit-details-marker {
  display: none;
}

summary i {
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  transition: transform 180ms ease;
}

details[open] summary i {
  transform: rotate(45deg);
}

.case-details {
  display: grid;
  grid-template-columns: minmax(180px, 0.65fr) minmax(220px, 1fr);
  gap: 24px;
  padding: 18px 0 6px;
}

.case-details p {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.case-details strong {
  color: var(--navy);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-details ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.capability-section {
  background: var(--paper);
}

.capability-table {
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.cap-row {
  display: grid;
  grid-template-columns: 0.54fr 1.6fr 0.85fr;
  border-bottom: 1px solid var(--line);
}

.cap-row > div {
  min-height: 74px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.cap-row > div:last-child {
  border-right: 0;
  color: var(--muted);
}

.cap-head {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cap-head > div {
  min-height: auto;
  padding-top: 0;
  padding-bottom: 13px;
}

.cap-layer {
  color: var(--navy);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cap-row-warning {
  background: rgba(239, 134, 109, 0.12);
}

.cap-row-warning .cap-layer {
  color: #b8503b;
}

.resume-section {
  padding: clamp(84px, 10vw, 140px) clamp(24px, 8vw, 130px);
  background: var(--paper-deep);
}

.resume-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 50px;
  align-items: end;
  padding: clamp(30px, 5vw, 70px);
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius-lg);
}

.resume-panel .eyebrow {
  color: var(--lime);
}

.resume-panel h2 {
  color: var(--white);
  font-size: clamp(38px, 4.6vw, 70px);
}

.resume-panel p:not(.eyebrow) {
  max-width: 480px;
  margin: 25px 0 0;
  color: rgba(255, 253, 248, 0.66);
  font-size: 15px;
  line-height: 1.7;
}

.download-grid {
  display: grid;
  gap: 12px;
}

.download-card {
  position: relative;
  display: grid;
  grid-template-columns: 100px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  color: var(--navy);
  background: var(--lime);
  border-radius: var(--radius-md);
  transition: transform 180ms ease, background 180ms ease;
}

.download-card:hover {
  background: #e8f7b5;
  transform: translateX(4px);
}

.download-card-light {
  color: var(--navy);
  background: var(--white);
}

.download-card-light:hover {
  background: #ffffff;
}

.download-card strong {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.download-card small {
  grid-column: 2 / 3;
  color: rgba(20, 42, 53, 0.62);
  font-family: var(--mono);
  font-size: 10px;
}

.download-type {
  align-self: start;
  color: var(--teal);
  font-size: 9px;
}

.download-arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 24px;
}

.contact-section {
  padding: clamp(92px, 13vw, 180px) clamp(24px, 8vw, 130px);
  color: var(--white);
  background: var(--teal);
}

.contact-section .eyebrow {
  color: var(--lime);
}

.contact-section h2 {
  color: var(--white);
  font-size: clamp(58px, 8.5vw, 132px);
}

.contact-email {
  display: inline-block;
  margin-top: 40px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.55);
  font-family: var(--mono);
  font-size: clamp(17px, 2.3vw, 27px);
  transition: color 180ms ease, border-color 180ms ease;
}

.contact-email:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  margin-top: 80px;
  color: rgba(255, 253, 248, 0.62);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 23px clamp(24px, 8vw, 130px);
  color: rgba(255, 253, 248, 0.72);
  background: var(--navy-deep);
  font-family: var(--mono);
  font-size: 10px;
}

.footer p {
  margin: 0;
}

.footer > a:last-child {
  color: var(--lime);
  text-transform: uppercase;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    gap: 45px;
  }

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

@media (max-width: 820px) {
  .topbar {
    gap: 16px;
    min-height: 70px;
    padding: 0 18px;
  }

  .main-nav {
    display: none;
  }

  .language-toggle {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 84px 24px 84px;
  }

  .hero h1 {
    font-size: clamp(48px, 13vw, 84px);
  }

  .signal-board {
    width: min(100%, 500px);
    margin: 18px 0 0;
    transform: none;
  }

  .proof-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-strip > div:nth-child(2) {
    border-right: 0;
  }

  .proof-strip > div:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 253, 248, 0.14);
  }

  .proof-strip > div:nth-child(3) {
    padding-left: 0;
  }

  .split-heading,
  .resume-panel {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .case-rail {
    min-height: auto;
    flex-direction: row;
    align-items: center;
  }

  .case-rail p {
    max-width: none;
  }

  .case-title-row {
    flex-direction: column;
    gap: 14px;
  }

  .status-pill {
    align-self: flex-start;
  }

  .capability-table {
    overflow-x: auto;
  }

  .cap-row {
    min-width: 720px;
  }
}

@media (max-width: 560px) {
  .brand-name {
    font-size: 10px;
  }

  .brand-name small {
    font-size: 7px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero h1 {
    font-size: clamp(45px, 15vw, 70px);
  }

  .hero-lede {
    font-size: 15px;
  }

  .scope-line {
    margin-top: 34px;
  }

  .proof-strip > div {
    padding-right: 14px;
  }

  .proof-strip > div:not(:first-child) {
    padding-left: 14px;
  }

  .section,
  .resume-section,
  .contact-section {
    padding-right: 20px;
    padding-left: 20px;
  }

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

  .fit-card {
    min-height: 270px;
  }

  .case-main {
    padding: 22px 20px 20px;
  }

  .case-details {
    grid-template-columns: 1fr;
  }

  .resume-panel {
    padding: 28px 20px;
  }

  .download-card {
    grid-template-columns: 1fr auto;
  }

  .download-type {
    grid-column: 1;
  }

  .download-card strong {
    grid-column: 1;
    grid-row: 2;
  }

  .download-card small {
    grid-column: 1;
    grid-row: 3;
  }

  .download-arrow {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
