:root {
  --ink: #162027;
  --muted: #60707a;
  --navy: #102f3d;
  --navy-2: #174b58;
  --green: #3aa696;
  --green-soft: #bde5de;
  --paper: #fffdf8;
  --surface: #ffffff;
  --canvas: #edf2f1;
  --line: #d9e2df;
  --warm: #f2ecdf;
  --shadow: 0 24px 70px rgba(15, 48, 59, 0.12);
  --radius: 22px;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0, rgba(58, 166, 150, 0.12), transparent 32rem),
    var(--canvas);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.module-page {
  min-height: 100vh;
}

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

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(58, 166, 150, 0.38);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 13px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(15, 48, 59, 0.09);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--content), calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--navy);
  font-family: Georgia, serif;
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-nav a {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  background: rgba(58, 166, 150, 0.12);
}

.page-wrap {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 70px;
  min-height: 510px;
  margin-top: 28px;
  padding: 76px 78px;
  overflow: hidden;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 30%, rgba(85, 190, 175, 0.2), transparent 24rem),
    linear-gradient(135deg, #0d2937 0%, #113d49 100%);
  box-shadow: var(--shadow);
}

.home-hero::after {
  position: absolute;
  right: -90px;
  bottom: -190px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 45px rgba(255, 255, 255, 0.025),
    0 0 0 100px rgba(255, 255, 255, 0.018);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.kicker {
  margin: 0 0 16px;
  color: #80d7ca;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.02;
}

.hero-role {
  margin: 20px 0 15px;
  color: rgba(255, 255, 255, 0.93);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-intro {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.meta-pill {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.77rem;
  font-weight: 700;
}

.hero-visual {
  align-self: center;
}

.portrait-card {
  position: relative;
  width: 232px;
  margin-left: auto;
  transform: rotate(2deg);
}

.portrait-card::before,
.portrait-card::after {
  position: absolute;
  inset: 12px -14px -14px 16px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  content: "";
}

.portrait-card::after {
  inset: 26px -26px -26px 30px;
  opacity: 0.55;
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 9px solid rgba(255, 255, 255, 0.92);
  border-radius: 22px;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.portrait-label {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.section-block {
  padding: 82px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}

.section-eyebrow {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head h2,
.module-hero h1 {
  margin: 0;
  color: var(--navy);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.section-note {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.folder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 28px;
}

.folder-link {
  position: relative;
  display: block;
  padding-top: 24px;
  transition: transform 180ms ease;
}

.folder-link:hover {
  transform: translateY(-6px);
}

.folder-tab {
  position: absolute;
  top: 0;
  left: 0;
  width: 44%;
  height: 39px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 15px 15px 0 0;
  background: var(--paper);
}

.folder-body {
  position: relative;
  z-index: 1;
  min-height: 260px;
  padding: 33px 34px 30px;
  border: 1px solid var(--line);
  border-radius: 0 20px 20px 20px;
  background: var(--paper);
  box-shadow: 0 15px 45px rgba(15, 48, 59, 0.075);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.folder-link:hover .folder-body {
  border-color: rgba(58, 166, 150, 0.6);
  box-shadow: 0 21px 55px rgba(15, 48, 59, 0.13);
}

.folder-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.folder-code {
  color: var(--green);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.status {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--green-soft);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status.waiting {
  color: #6c5a31;
  background: #eee1bd;
}

.status.planning {
  color: #59636a;
  background: #e1e6e8;
}

.folder-body h3 {
  margin: 28px 0 9px;
  color: var(--navy);
  font-size: 1.32rem;
}

.folder-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.folder-open {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 850;
}

.folder-open::after {
  content: "→";
  transition: transform 180ms ease;
}

.folder-link:hover .folder-open::after {
  transform: translateX(4px);
}

.privacy-band {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 78px;
  padding: 25px 28px;
  border: 1px solid rgba(58, 166, 150, 0.25);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.privacy-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--green);
  font-size: 1.2rem;
}

.privacy-band strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
}

.privacy-band p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.module-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  padding: 72px 0 42px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 15px;
  color: var(--muted);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.76rem;
}

.breadcrumb a:hover {
  color: var(--green);
}

.module-lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.module-stamp {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.module-panel {
  margin-bottom: 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: #f7faf9;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c4cfcc;
}

.window-dots i:first-child {
  background: #e7ab96;
}

.window-dots i:nth-child(2) {
  background: #e5ce82;
}

.window-dots i:last-child {
  background: #8bc9ae;
}

.panel-path {
  color: var(--muted);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.72rem;
}

.panel-body {
  padding: 38px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.info-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbfcfb;
}

.info-card h2,
.info-card h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.05rem;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.clean-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: #40515a;
  font-size: 0.86rem;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
}

.clean-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.placeholder {
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 1px dashed #bdcbc7;
  border-radius: 18px;
  color: var(--muted);
  background:
    linear-gradient(rgba(16, 47, 61, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 47, 61, 0.025) 1px, transparent 1px),
    #f8faf9;
  background-size: 22px 22px;
  text-align: center;
}

.placeholder-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 15px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--green);
  background: #fff;
  font-family: Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
}

.placeholder strong {
  display: block;
  color: var(--navy);
  font-size: 1.15rem;
}

.placeholder p {
  max-width: 430px;
  margin: 7px auto 0;
  font-size: 0.86rem;
}

.mock-dashboard {
  display: grid;
  gap: 18px;
}

.mock-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mock-metric,
.mock-chart {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.mock-metric {
  padding: 16px;
}

.mock-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.mock-metric strong {
  display: block;
  margin-top: 7px;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 1.3rem;
}

.mock-chart {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 22px;
  min-height: 230px;
  padding: 22px;
}

.line-chart {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, transparent 0 41px, rgba(16, 47, 61, 0.06) 42px);
}

.line-chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bar-list {
  display: grid;
  align-content: center;
  gap: 14px;
}

.bar-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.66rem;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ece9;
}

.bar-track i {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.recommendation {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px solid rgba(58, 166, 150, 0.28);
  border-radius: 18px;
  background: rgba(189, 229, 222, 0.24);
}

.recommendation strong {
  display: block;
  color: var(--navy);
  font-size: 1.04rem;
}

.recommendation p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.case-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

a.case-row {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

a.case-row:hover {
  border-color: rgba(58, 166, 150, 0.55);
  box-shadow: 0 12px 28px rgba(15, 48, 59, 0.08);
  transform: translateY(-2px);
}

.case-number {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.case-row h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.case-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.case-row .status {
  justify-self: end;
}

/* Public automation sandbox */
.sandbox-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.82fr);
  gap: 30px;
  align-items: start;
}

.sandbox-intro h2,
.code-demo h2 {
  margin: 4px 0 10px;
  color: var(--navy);
  font-size: 1.36rem;
}

.sandbox-intro > div > p:not(.section-eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.sandbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.sandbox-launch,
.sandbox-code-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.sandbox-launch {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 8px 18px rgba(16, 47, 61, 0.16);
}

.sandbox-code-link {
  color: var(--navy);
  border: 1px solid #a7d8d0;
  background: #f6fcfa;
}

.sandbox-launch:hover,
.sandbox-code-link:hover {
  transform: translateY(-2px);
}

.sandbox-checklist {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sandbox-checklist li {
  display: grid;
  gap: 3px;
  padding: 14px 16px 14px 19px;
  border: 1px solid #dce9e6;
  border-radius: 13px;
  background: #fbfefd;
}

.sandbox-checklist li::before {
  width: 7px;
  height: 7px;
  margin-bottom: -10px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.sandbox-checklist strong {
  padding-left: 15px;
  color: var(--navy);
  font-size: 0.85rem;
}

.sandbox-checklist span {
  padding-left: 15px;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.55;
}

.code-demo {
  padding: 28px;
}

.code-demo-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.code-demo-head .section-eyebrow {
  margin: 0;
}

.code-block {
  margin: 22px 0 0;
  padding: 22px;
  overflow: auto;
  border: 1px solid rgba(15, 48, 59, 0.28);
  border-radius: 16px;
  color: #d8f6f0;
  background: #102f3d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  font: 0.78rem/1.75 Consolas, "SFMono-Regular", "Cascadia Code", monospace;
  white-space: pre-wrap;
}

.code-demo-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.81rem;
}

.code-demo-note code {
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--navy);
  background: #e7f3f0;
  font-family: Consolas, "SFMono-Regular", monospace;
}

.sandbox-hero {
  padding-bottom: 30px;
}

.sandbox-warning {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin: 0 0 24px;
  padding: 14px 18px;
  border: 1px solid #bfe4dc;
  border-radius: 14px;
  color: #285a54;
  background: #f2fcf9;
  font-size: 0.84rem;
}

.sandbox-warning strong {
  flex: 0 0 auto;
  color: var(--navy);
}

.sandbox-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 38px;
}

.sandbox-store,
.sandbox-queue {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.sandbox-store-head,
.sandbox-queue-head {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfa;
}

.sandbox-store-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.sandbox-store-head p,
.sandbox-queue-head p {
  margin: 0;
  color: var(--green);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.sandbox-store-head h2,
.sandbox-queue-head h2 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 1rem;
}

.cart-badge,
.queue-status {
  margin-left: auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #266057;
  background: #d9f3ed;
  font-size: 0.7rem;
  font-weight: 850;
}

.sandbox-product {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 27px;
  padding: 28px;
}

.sandbox-product-art {
  position: relative;
  display: grid;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #1b5260, #0d2937);
}

.sandbox-product-art::before,
.sandbox-product-art::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
}

.sandbox-product-art::before {
  width: 190px;
  height: 190px;
}

.sandbox-product-art::after {
  width: 270px;
  height: 270px;
}

.sandbox-product-art span {
  z-index: 1;
  font-family: Georgia, serif;
  font-size: 2.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.sandbox-product-art i,
.sandbox-product-art b {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #6bd2c3;
}

.sandbox-product-art i { top: 31px; left: 30px; }
.sandbox-product-art b { right: 31px; bottom: 36px; background: #ffc96b; }

.sandbox-product-copy h3 {
  margin: 3px 0 9px;
  color: var(--navy);
  font-size: 1.35rem;
}

.sandbox-product-copy > p:not(.section-eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.sandbox-product-copy > div {
  display: flex;
  gap: 9px;
  align-items: baseline;
  margin: 21px 0 15px;
}

.sandbox-product-copy > div strong {
  color: var(--navy);
  font-size: 1.4rem;
}

.sandbox-product-copy > div span {
  color: var(--muted);
  font-size: 0.75rem;
}

.sandbox-primary,
.sandbox-secondary,
.queue-controls button {
  min-height: 39px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease;
}

.sandbox-primary {
  color: #fff;
  background: var(--navy);
}

.sandbox-primary:hover,
.sandbox-secondary:hover,
.queue-controls button:hover {
  transform: translateY(-1px);
}

.sandbox-secondary {
  color: var(--navy);
  border: 1px solid #b7d9d2;
  background: #f7fcfb;
}

.sandbox-checkout,
.sandbox-feedback {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin: 0 28px 22px;
  padding: 18px;
  border: 1px dashed #afdad2;
  border-radius: 14px;
  background: #fbfefd;
}

.sandbox-checkout[hidden],
.sandbox-feedback[hidden] {
  display: none !important;
}

.sandbox-checkout h3,
.sandbox-feedback h3 {
  margin: 2px 0 4px;
  color: var(--navy);
  font-size: 0.98rem;
}

.sandbox-checkout p:not(.section-eyebrow),
.sandbox-feedback p:not(.section-eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.sandbox-feedback {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.sandbox-feedback label {
  display: grid;
  gap: 5px;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
}

.sandbox-feedback textarea {
  min-height: 72px;
  padding: 9px 10px;
  resize: vertical;
  border: 1px solid #c9ddd8;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
}

.sandbox-feedback button {
  grid-column: 2;
  justify-self: start;
}

.sandbox-queue {
  padding-bottom: 18px;
}

.queue-status.is-paused {
  color: #795d1c;
  background: #fff0c8;
}

.queue-status.is-complete {
  color: #fff;
  background: #268373;
}

.queue-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 17px 18px 8px;
}

.queue-controls button {
  flex: 1 1 90px;
  color: var(--navy);
  border: 1px solid #cbded9;
  background: #fff;
}

.queue-controls button:first-child {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.task-list {
  display: grid;
  gap: 8px;
  margin: 5px 18px 17px;
  padding: 0;
  list-style: none;
}

.task-list li {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dce7e4;
  border-radius: 12px;
  background: #fbfcfb;
}

.task-list li > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 8px;
  color: #6d7e85;
  background: #eaf0ef;
  font-size: 0.68rem;
  font-weight: 900;
}

.task-list strong,
.task-list small {
  display: block;
}

.task-list strong {
  color: var(--navy);
  font-size: 0.78rem;
}

.task-list small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.task-list em {
  color: #6d7e85;
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 800;
}

.task-list .is-complete {
  border-color: #a9ddd3;
  background: #f2fcf9;
}

.task-list .is-complete > span {
  color: #fff;
  background: var(--green);
}

.task-list .is-complete em {
  color: #287a6d;
}

.sandbox-log {
  margin: 0 18px;
  padding: 13px;
  border-radius: 12px;
  color: #cdeee8;
  background: #112f3b;
}

.sandbox-log .section-eyebrow {
  margin: 0 0 6px;
  color: #79d9cc;
}

.sandbox-log ul {
  display: grid;
  gap: 5px;
  max-height: 116px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
  font: 0.69rem/1.45 Consolas, "SFMono-Regular", monospace;
}

.sandbox-test-note {
  margin-bottom: 70px;
}

@media (max-width: 900px) {
  .sandbox-intro,
  .sandbox-grid {
    grid-template-columns: 1fr;
  }

  .sandbox-product {
    grid-template-columns: 160px minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .sandbox-intro,
  .code-demo {
    padding: 18px;
  }

  .sandbox-warning,
  .sandbox-checkout,
  .sandbox-feedback {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sandbox-warning {
    align-items: start;
  }

  .sandbox-product {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .sandbox-product-art {
    min-height: 155px;
  }

  .sandbox-checkout,
  .sandbox-feedback {
    margin: 0 20px 18px;
  }

  .sandbox-feedback button {
    grid-column: auto;
  }

  .code-demo-head {
    align-items: start;
    flex-direction: column;
  }

  .code-block {
    padding: 15px;
    font-size: 0.7rem;
  }
}

/* Resume */
.resume-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 48px;
  align-items: center;
  margin-bottom: 28px;
  padding: 52px 58px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow);
}

.resume-hero h1,
.resume-hero h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(2.8rem, 6vw, 4.7rem);
  letter-spacing: 0.06em;
  line-height: 1;
}

.resume-hero .hero-role {
  margin-bottom: 0;
}

.resume-photo {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 7px solid rgba(255, 255, 255, 0.88);
  border-radius: 17px;
}

.resume-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.resume-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.resume-metric {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.resume-metric:last-child {
  border-right: 0;
}

.resume-metric strong {
  display: block;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

.resume-metric span {
  color: var(--muted);
  font-size: 0.72rem;
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 42px;
  padding-bottom: 76px;
}

.resume-section + .resume-section {
  margin-top: 42px;
}

.resume-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 20px;
  color: var(--navy);
  font-size: 1.16rem;
  letter-spacing: 0.07em;
}

.resume-heading::before {
  width: 27px;
  height: 3px;
  border-radius: 3px;
  background: var(--green);
  content: "";
}

.resume-stack {
  display: grid;
  gap: 18px;
}

.resume-card {
  padding: 23px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.resume-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 13px;
}

.resume-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.resume-role {
  display: block;
  margin-top: 3px;
  color: #287585;
  font-size: 0.84rem;
}

.resume-date {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 0.76rem;
  font-style: italic;
  white-space: nowrap;
}

.resume-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #40505a;
  font-size: 0.84rem;
}

.resume-list li {
  position: relative;
  padding-left: 17px;
}

.resume-list li::before {
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.resume-list strong {
  color: var(--ink);
}

.side-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7faf9;
}

.edu-item + .edu-item {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.edu-item h3,
.skill-block h3 {
  margin: 0;
  color: var(--navy);
  font-size: 0.92rem;
}

.edu-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
}

.edu-item .degree {
  color: #287585;
  font-weight: 800;
}

.edu-item ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #40505a;
  font-size: 0.78rem;
}

.skill-block + .skill-block {
  margin-top: 18px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 5px 9px;
  border: 1px solid #cfdbd7;
  border-radius: 999px;
  color: #42535c;
  background: #fff;
  font-size: 0.7rem;
}

.resume-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.print-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--navy);
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.print-button:hover {
  border-color: var(--green);
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 35px;
    padding: 58px 48px;
  }

  .portrait-card {
    width: 185px;
  }

  .folder-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .recommendation {
    grid-column: auto;
  }

  .resume-layout {
    grid-template-columns: 1fr;
  }

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

  .resume-sidebar .resume-section + .resume-section {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .header-inner,
  .page-wrap,
  .footer-inner {
    width: min(100% - 28px, var(--content));
  }

  .header-inner {
    min-height: 61px;
  }

  .brand span:last-child {
    display: none;
  }

  .site-nav {
    gap: 1px;
  }

  .site-nav a {
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .site-nav a:nth-child(n + 4) {
    display: none;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    margin-top: 14px;
    padding: 42px 25px 48px;
    border-radius: 22px;
  }

  .home-hero h1 {
    font-size: 3.7rem;
  }

  .hero-visual {
    order: -1;
  }

  .portrait-card {
    width: 112px;
    margin: 0;
    transform: rotate(0);
  }

  .portrait-card::before,
  .portrait-card::after,
  .portrait-label {
    display: none;
  }

  .portrait-card img {
    border-width: 5px;
    border-radius: 15px;
  }

  .section-block {
    padding: 60px 0;
  }

  .section-head,
  .module-hero {
    display: block;
  }

  .section-note {
    margin-top: 13px;
    text-align: left;
  }

  .folder-grid {
    gap: 28px;
  }

  .folder-body {
    min-height: 230px;
    padding: 28px 24px;
  }

  .privacy-band {
    grid-template-columns: 1fr;
    margin-bottom: 55px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 7px;
  }

  .module-hero {
    padding: 50px 0 30px;
  }

  .module-stamp {
    display: inline-block;
    margin-top: 20px;
  }

  .panel-head {
    padding: 15px 17px;
  }

  .panel-body {
    padding: 20px;
  }

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

  .mock-chart {
    grid-template-columns: 1fr;
  }

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

  .case-row .status {
    grid-column: 2;
    justify-self: start;
  }

  .resume-actions {
    display: none;
  }

  .resume-hero {
    grid-template-columns: 1fr 95px;
    gap: 22px;
    padding: 36px 25px;
  }

  .resume-hero h1,
  .resume-hero h2 {
    font-size: 2.8rem;
  }

  .resume-hero .hero-role {
    font-size: 0.92rem;
  }

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

  .resume-metric:nth-child(2) {
    border-right: 0;
  }

  .resume-metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .resume-layout,
  .resume-sidebar {
    display: block;
  }

  .resume-sidebar {
    margin-top: 42px;
  }

  .resume-sidebar .resume-section + .resume-section {
    margin-top: 42px;
  }

  .resume-card-head {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    size: A4;
    margin: 11mm;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 9.5pt;
  }

  .skip-link,
  .site-header,
  .site-footer,
  .resume-actions {
    display: none !important;
  }

  .page-wrap {
    width: 100%;
  }

  .module-hero {
    padding: 0 0 7mm;
  }

  .resume-hero {
    margin-bottom: 6mm;
    padding: 9mm 10mm;
    color-adjust: exact;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    box-shadow: none;
  }

  .resume-hero h1,
  .resume-hero h2 {
    font-size: 31pt;
  }

  .resume-photo {
    width: 28mm;
    justify-self: end;
  }

  .resume-metrics {
    margin-bottom: 7mm;
  }

  .resume-metric {
    padding: 4mm;
  }

  .resume-metric strong {
    font-size: 14pt;
  }

  .resume-layout {
    display: block;
    padding-bottom: 0;
  }

  .resume-card,
  .side-block {
    break-inside: avoid;
  }

  .resume-card {
    padding: 4.5mm;
  }

  .resume-list {
    gap: 1.7mm;
    font-size: 8.6pt;
  }

  .resume-sidebar {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 7mm;
    margin-top: 8mm;
    break-before: page;
  }

  .resume-sidebar .resume-section + .resume-section {
    margin-top: 0;
  }

  .resume-heading {
    break-after: avoid;
  }
}

/* 2026-08-31: shared module chrome follows the portfolio light palette. */
.skip-link,
.brand-mark {
  border: 1px solid #b9d5ea;
  color: #174b72;
  background: linear-gradient(145deg, #f4fbff, #d9ecfa);
  box-shadow: 0 7px 16px rgba(59, 111, 151, 0.11);
}
