:root {
  --bg: #f6f8fb;
  --ink: #16202a;
  --muted: #617081;
  --line: #dde5ef;
  --panel: #ffffff;
  --blue: #2254d6;
  --cyan: #008da6;
  --green: #0b8f5a;
  --red: #c93636;
  --amber: #b26700;
  --shadow: 0 14px 32px rgba(20, 34, 55, 0.08);
}

/* Apple-inspired portfolio direction */
.portfolio-home {
  --apple-bg: #f5f5f7;
  --apple-ink: #1d1d1f;
  --apple-muted: #6e6e73;
  --apple-blue: #0066cc;
  --apple-line: rgba(0, 0, 0, 0.08);
  color: var(--apple-ink);
  background: var(--apple-bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Arial, sans-serif;
}

.portfolio-hero {
  min-height: min(760px, 100vh);
  color: #f5f5f7;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), #050506 78%),
    url("https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&w=1900&q=86") center 38%/cover;
  border: 0;
  overflow: hidden;
}

.portfolio-hero::after {
  display: none;
}

.portfolio-nav {
  width: 100%;
  max-width: none;
  min-height: 48px;
  padding: 0 clamp(18px, 4vw, 48px);
  justify-content: center;
  gap: clamp(18px, 5vw, 54px);
  background: rgba(22, 22, 23, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
}

.portfolio-nav .brand {
  min-height: 48px;
  color: rgba(245, 245, 247, 0.92);
  font-size: 13px;
  font-weight: 600;
}

.portfolio-nav div {
  padding: 0;
  gap: clamp(14px, 3vw, 34px);
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.portfolio-nav a {
  min-height: 48px;
  padding: 0;
  border-radius: 0;
  color: rgba(245, 245, 247, 0.76);
  font-size: 12px;
  font-weight: 400;
}

.portfolio-nav a:hover {
  color: #fff;
  background: transparent;
}

.hero-content {
  width: min(980px, calc(100% - 36px));
  min-height: calc(min(760px, 100vh) - 48px);
  padding: 74px 0 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 34px;
  text-align: center;
}

.hero-text {
  max-width: 930px;
}

.portfolio-home .eyebrow {
  margin-bottom: 14px;
  color: rgba(245, 245, 247, 0.72);
  font-size: 21px;
  font-weight: 600;
  text-transform: none;
}

.hero-content h1 {
  max-width: 980px;
  font-size: clamp(64px, 10vw, 132px);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-shadow: none;
}

.hero-copy {
  max-width: 820px;
  margin: 26px auto 0;
  color: rgba(245, 245, 247, 0.78);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.14;
}

.hero-actions {
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  min-height: 0;
  padding: 0;
  color: var(--apple-blue);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 19px;
  font-weight: 500;
}

.primary-action::after,
.secondary-action::after {
  content: " >";
  font-size: 17px;
}

.primary-action:hover,
.secondary-action:hover,
.case-card:hover {
  transform: none;
  text-decoration: underline;
}

.hero-panel {
  width: min(680px, 100%);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  color: #f5f5f7;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.hero-panel span {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 14px 10px;
  background: rgba(0, 0, 0, 0.24);
  color: rgba(245, 245, 247, 0.72);
  font-size: 13px;
}

.hero-panel b {
  display: block;
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.portfolio-main {
  width: 100%;
  max-width: none;
  padding: 12px 12px 12px;
}

.proof-strip {
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.proof-strip div,
.service-card,
.case-card,
.workflow-band li,
.platform-grid article {
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.proof-strip div {
  min-height: 260px;
  padding: clamp(28px, 4vw, 54px);
  align-content: center;
  text-align: center;
  background: #fff;
}

.proof-strip strong {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.proof-strip span {
  max-width: 280px;
  margin: 12px auto 0;
  color: var(--apple-muted);
  font-size: 19px;
  line-height: 1.25;
}

.section-block,
.workflow-band,
.contact-panel {
  margin-top: 12px;
  padding: clamp(54px, 7vw, 94px) clamp(18px, 5vw, 72px);
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.section-head {
  max-width: 980px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-head h2,
.workflow-band h2,
.contact-panel h2 {
  max-width: 960px;
  margin: 0 auto;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.section-head p:not(.eyebrow),
.contact-panel p {
  max-width: 780px;
  margin: 18px auto 0;
  color: var(--apple-muted);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.22;
  font-weight: 600;
}

.section-block .eyebrow,
.workflow-band .eyebrow,
.contact-panel .eyebrow {
  color: #bf4800;
  font-size: 17px;
  font-weight: 600;
  text-transform: none;
}

.service-grid {
  max-width: 1160px;
  margin: 0 auto;
  gap: 12px;
}

.service-card {
  min-height: 310px;
  padding: 32px;
  text-align: center;
  background: var(--apple-bg);
}

.service-card span {
  color: var(--apple-muted);
  font-size: 13px;
}

.service-card h3,
.platform-grid h3 {
  margin-top: 18px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.service-card p,
.platform-grid p,
.case-card span,
.workflow-band span {
  color: var(--apple-muted);
  font-size: 17px;
  line-height: 1.32;
}

.platform-section {
  margin-top: 12px;
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px);
  color: #f5f5f7;
  background: #000;
  border-radius: 8px;
}

.platform-section .section-head p:not(.eyebrow),
.platform-section .eyebrow {
  color: rgba(245, 245, 247, 0.68);
}

.platform-grid {
  max-width: 1160px;
  margin: 0 auto;
  gap: 12px;
}

.platform-grid article {
  min-height: 300px;
  padding: 34px;
  text-align: center;
  background: #161617;
}

.platform-grid p {
  color: rgba(245, 245, 247, 0.64);
}

.case-grid {
  max-width: 1160px;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.case-card {
  min-height: 360px;
  padding: 38px;
  align-content: start;
  text-align: center;
  background: var(--apple-bg);
}

.case-card strong {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.case-card span {
  max-width: 380px;
  margin: 16px auto 0;
  font-size: 19px;
}

.workflow-band {
  grid-template-columns: 1fr;
  gap: 36px;
  text-align: center;
}

.workflow-band ol {
  max-width: 1160px;
  margin: 0 auto;
  gap: 12px;
}

.workflow-band li {
  min-height: 230px;
  padding: 28px;
  background: var(--apple-bg);
}

.workflow-band li::before {
  color: var(--apple-blue);
  font-size: 15px;
}

.workflow-band strong {
  font-size: 26px;
  letter-spacing: -0.02em;
}

.contact-panel {
  margin-top: 12px;
  min-height: 460px;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #f5f5f7;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), #000 86%),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=86") center/cover;
  border-radius: 8px;
}

.contact-panel p {
  color: rgba(245, 245, 247, 0.66);
}

.contact-panel .primary-action {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .proof-strip,
  .service-grid,
  .platform-grid,
  .case-grid,
  .workflow-band ol {
    grid-template-columns: 1fr;
  }

  .portfolio-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .portfolio-nav div {
    flex-wrap: nowrap;
  }
}

@media (max-width: 720px) {
  .portfolio-hero {
    min-height: 720px;
  }

  .portfolio-nav {
    width: 100%;
    padding: 0 14px;
    flex-direction: row;
    align-items: center;
  }

  .portfolio-nav .brand,
  .portfolio-nav a {
    flex: 0 0 auto;
  }

  .hero-content {
    width: min(100% - 28px, 980px);
    min-height: calc(720px - 48px);
    padding: 42px 0 48px;
    gap: 26px;
  }

  .portfolio-home .eyebrow {
    font-size: 16px;
  }

  .hero-content h1 {
    font-size: clamp(54px, 17vw, 72px);
    line-height: 0.9;
    width: auto;
  }

  .hero-copy {
    font-size: 21px;
    line-height: 1.18;
  }

  .hero-actions {
    gap: 18px;
  }

  .primary-action,
  .secondary-action {
    font-size: 17px;
  }

  .hero-panel {
    display: grid;
    width: 100%;
  }

  .hero-panel span {
    min-height: 70px;
    font-size: 11px;
  }

  .hero-panel b {
    font-size: 25px;
  }

  .portfolio-main {
    width: 100%;
    padding: 12px;
  }

  .section-block,
  .workflow-band,
  .contact-panel {
    padding: 46px 18px;
  }

  .section-head h2,
  .workflow-band h2,
  .contact-panel h2 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .section-head p:not(.eyebrow),
  .contact-panel p {
    font-size: 20px;
  }

  .proof-strip div,
  .service-card,
  .platform-grid article,
  .case-card,
  .workflow-band li {
    min-height: 230px;
    padding: 26px;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.portfolio-home {
  background: #f3f6f9;
}

button,
input,
textarea {
  font: inherit;
}

.topbar {
  min-height: 190px;
  padding: 32px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 14, 28, 0.88), rgba(11, 38, 67, 0.62) 48%, rgba(8, 23, 42, 0.34)),
    linear-gradient(180deg, rgba(23, 75, 130, 0.22), rgba(0, 141, 166, 0.08)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1800&q=80") center/cover;
  border-bottom: 1px solid rgba(125, 211, 252, 0.32);
  box-shadow: inset 0 -48px 72px rgba(8, 23, 42, 0.24);
}

.news-hero {
  background:
    linear-gradient(90deg, rgba(7, 16, 33, 0.9), rgba(49, 24, 90, 0.58) 48%, rgba(0, 85, 110, 0.34)),
    linear-gradient(180deg, rgba(80, 124, 255, 0.16), rgba(0, 210, 190, 0.08)),
    url("https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.dalio-hero {
  background:
    linear-gradient(90deg, rgba(6, 14, 26, 0.92), rgba(68, 43, 12, 0.62) 48%, rgba(0, 78, 96, 0.34)),
    linear-gradient(180deg, rgba(244, 183, 67, 0.18), rgba(0, 187, 201, 0.08)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hormuz-hero {
  background:
    linear-gradient(90deg, rgba(7, 16, 33, 0.92), rgba(90, 42, 18, 0.62) 48%, rgba(0, 72, 92, 0.34)),
    linear-gradient(180deg, rgba(255, 142, 80, 0.16), rgba(0, 128, 160, 0.08)),
    url("https://images.unsplash.com/photo-1578575437130-527eed3abbec?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.ai-health-hero {
  background:
    linear-gradient(90deg, rgba(8, 18, 34, 0.92), rgba(92, 24, 64, 0.6) 48%, rgba(0, 104, 116, 0.35)),
    linear-gradient(180deg, rgba(255, 90, 150, 0.16), rgba(0, 210, 190, 0.08)),
    url("https://images.unsplash.com/photo-1579154204601-01588f351e67?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.nvidia-hero {
  background:
    linear-gradient(90deg, rgba(5, 12, 22, 0.92), rgba(18, 86, 45, 0.62) 48%, rgba(0, 87, 118, 0.34)),
    linear-gradient(180deg, rgba(118, 255, 122, 0.14), rgba(0, 210, 190, 0.08)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.fund-hero {
  background:
    linear-gradient(90deg, rgba(8, 18, 34, 0.92), rgba(60, 54, 105, 0.62) 48%, rgba(0, 90, 110, 0.34)),
    linear-gradient(180deg, rgba(120, 170, 255, 0.16), rgba(20, 210, 180, 0.08)),
    url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.a-stock-hero {
  background:
    linear-gradient(90deg, rgba(8, 18, 34, 0.92), rgba(18, 84, 74, 0.62) 48%, rgba(76, 52, 12, 0.34)),
    linear-gradient(180deg, rgba(60, 190, 150, 0.16), rgba(255, 191, 80, 0.08)),
    url("https://images.unsplash.com/photo-1642543492481-44e81e3914a7?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0;
  opacity: 0.92;
  color: #bdefff;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

main {
  padding: 0 clamp(14px, 3vw, 42px) 42px;
}

.portfolio-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 28px) 46px;
}

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
  justify-content: flex-end;
}

.status span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  border-color: #9fb1c7;
}

#refreshBtn,
#refreshNews,
#refreshDalio,
#refreshHormuz,
#refreshHealth,
#refreshNvidia {
  width: 42px;
  padding: 0;
  font-size: 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.38);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -36px 0 16px;
  position: relative;
  z-index: 2;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(20, 34, 55, 0.05);
}

.site-nav a.active {
  color: #fff;
  background: #17324f;
  border-color: #17324f;
}

.portfolio-hero {
  min-height: 680px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(6, 14, 28, 0.92), rgba(15, 44, 57, 0.7) 52%, rgba(31, 58, 47, 0.5)),
    linear-gradient(180deg, rgba(34, 84, 214, 0.16), rgba(11, 143, 90, 0.12)),
    url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1800&q=82") center/cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.portfolio-nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 28px);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.portfolio-nav div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.portfolio-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  border-radius: 8px;
}

.portfolio-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.portfolio-nav .brand {
  padding-left: 0;
  color: #fff;
  font-weight: 780;
}

.hero-content {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(78px, 11vw, 130px) clamp(16px, 3vw, 28px) 94px;
}

.hero-content h1 {
  max-width: 930px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
}

.hero-copy {
  max-width: 680px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

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

.primary-action,
.secondary-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 760;
}

.primary-action {
  color: #07121f;
  background: #dff9ef;
  border: 1px solid rgba(223, 249, 239, 0.9);
}

.secondary-action {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.proof-strip {
  margin-top: -52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 2;
}

.proof-strip div,
.section-block,
.workflow-band,
.contact-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.proof-strip div {
  min-height: 112px;
  padding: 18px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.proof-strip strong {
  font-size: 18px;
}

.proof-strip span {
  color: var(--muted);
  line-height: 1.45;
}

.section-block {
  margin-top: 18px;
  padding: clamp(20px, 3vw, 30px);
}

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

.section-head h2,
.workflow-band h2,
.contact-panel h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
}

.section-head p:not(.eyebrow),
.contact-panel p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.58;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-card,
.platform-grid article,
.case-card {
  min-height: 190px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfcfe;
}

.service-card span {
  color: var(--cyan);
  font-weight: 780;
}

.service-card h3,
.platform-grid h3 {
  margin-top: 12px;
  font-size: 20px;
}

.service-card p,
.platform-grid p,
.case-card span,
.workflow-band span {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.platform-section {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 37, 59, 0.98), rgba(30, 73, 68, 0.94)),
    radial-gradient(circle at right top, rgba(0, 141, 166, 0.24), transparent 36%);
  border-color: rgba(125, 211, 252, 0.25);
}

.platform-section .section-head p:not(.eyebrow),
.platform-section .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.platform-grid article {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.platform-grid p {
  color: rgba(255, 255, 255, 0.74);
}

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

.case-card {
  display: grid;
  align-content: start;
  min-height: 164px;
  color: var(--ink);
  text-decoration: none;
}

.case-card:hover {
  border-color: #9fb1c7;
  transform: translateY(-1px);
}

.case-card strong {
  font-size: 18px;
}

.workflow-band {
  margin-top: 18px;
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 18px;
}

.workflow-band ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  counter-reset: workflow;
}

.workflow-band li {
  min-height: 148px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  counter-increment: workflow;
}

.workflow-band li::before {
  content: counter(workflow, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-weight: 780;
}

.workflow-band strong,
.workflow-band span {
  display: block;
}

.contact-panel {
  margin-top: 18px;
  padding: clamp(20px, 3vw, 30px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.contact-panel > div {
  max-width: 760px;
}

.portfolio-home {
  --portfolio-ink: #111827;
  --portfolio-muted: #5b6677;
  --portfolio-line: rgba(17, 24, 39, 0.12);
  --portfolio-paper: #ffffff;
  --portfolio-soft: #eef3f7;
  --portfolio-green: #0f8b6d;
  --portfolio-gold: #c4912e;
  --portfolio-coral: #df6b54;
  color: var(--portfolio-ink);
  background:
    linear-gradient(180deg, #f7f9fb 0%, #edf2f6 48%, #f8fafc 100%);
}

.portfolio-hero {
  min-height: 650px;
  display: grid;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(10, 18, 32, 0.9) 0%, rgba(12, 35, 48, 0.76) 48%, rgba(18, 38, 34, 0.52) 100%),
    linear-gradient(180deg, rgba(196, 145, 46, 0.18), rgba(15, 139, 109, 0.16)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1900&q=84") center/cover;
  border-bottom: 0;
  position: relative;
  overflow: hidden;
}

.portfolio-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(247, 249, 251, 0), #f7f9fb 84%);
  pointer-events: none;
}

.portfolio-nav {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
  padding: 22px 0;
  position: relative;
  z-index: 2;
}

.portfolio-nav div {
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.portfolio-nav a {
  min-height: 36px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.86);
}

.portfolio-nav .brand {
  font-size: 15px;
  letter-spacing: 0;
}

.hero-content {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  padding: 54px 0 118px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 760px;
}

.portfolio-home .eyebrow {
  color: #f0c879;
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 820px;
  font-size: clamp(44px, 5.5vw, 68px);
  line-height: 0.98;
  text-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.hero-copy {
  max-width: 660px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.68;
}

.hero-actions {
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.primary-action {
  color: #0f1a25;
  background: #f3cc72;
  border-color: rgba(243, 204, 114, 0.9);
  box-shadow: 0 18px 38px rgba(196, 145, 46, 0.22);
}

.secondary-action {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
}

.primary-action:hover,
.secondary-action:hover,
.case-card:hover {
  transform: translateY(-2px);
}

.hero-panel {
  padding: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(24px);
}

.panel-kicker {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #f5d58a;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-top: 18px;
  font-size: 24px;
  line-height: 1.12;
}

.panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.panel-metrics span {
  min-height: 74px;
  padding: 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.25;
}

.panel-metrics b {
  display: block;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.skill-tags span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
}

.portfolio-main {
  max-width: none;
  width: min(1180px, calc(100% - 40px));
  padding: 0 0 76px;
  position: relative;
}

.proof-strip {
  margin-top: -92px;
  gap: 14px;
}

.proof-strip div {
  min-height: 136px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 58px rgba(22, 32, 42, 0.1);
  backdrop-filter: blur(18px);
}

.proof-strip strong {
  font-size: 20px;
}

.proof-strip span {
  color: var(--portfolio-muted);
}

.section-block,
.workflow-band,
.contact-panel {
  margin-top: 0;
  padding: 78px 0 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.section-head {
  max-width: 860px;
  margin-bottom: 26px;
}

.section-head h2,
.workflow-band h2,
.contact-panel h2 {
  max-width: 840px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
}

.section-head p:not(.eyebrow),
.contact-panel p {
  max-width: 720px;
  color: var(--portfolio-muted);
  font-size: 16px;
  line-height: 1.7;
}

.service-grid {
  gap: 16px;
}

.service-card,
.case-card {
  min-height: 238px;
  padding: 24px;
  background: var(--portfolio-paper);
  border-color: var(--portfolio-line);
  box-shadow: 0 18px 42px rgba(22, 32, 42, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.service-card:hover,
.case-card:hover {
  border-color: rgba(15, 139, 109, 0.36);
  box-shadow: 0 24px 52px rgba(22, 32, 42, 0.12);
}

.service-card span {
  color: var(--portfolio-coral);
  font-size: 13px;
}

.service-card h3,
.platform-grid h3 {
  margin-top: 22px;
  font-size: 23px;
  line-height: 1.08;
}

.service-card p,
.platform-grid p,
.case-card span,
.workflow-band span {
  color: var(--portfolio-muted);
  line-height: 1.62;
}

.platform-section {
  margin-top: 84px;
  padding: 44px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(18, 76, 66, 0.92)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=82") center/cover;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.18);
}

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

.platform-section .section-head p:not(.eyebrow),
.platform-section .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.platform-grid {
  gap: 14px;
}

.platform-grid article {
  min-height: 218px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.platform-grid p {
  color: rgba(255, 255, 255, 0.78);
}

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

.case-card {
  min-height: 190px;
}

.case-card strong {
  font-size: 24px;
  line-height: 1.1;
}

.workflow-band {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 28px;
}

.workflow-band ol {
  gap: 14px;
}

.workflow-band li {
  min-height: 166px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--portfolio-line);
  box-shadow: 0 16px 38px rgba(22, 32, 42, 0.06);
}

.workflow-band li::before {
  color: var(--portfolio-green);
}

.contact-panel {
  margin-top: 86px;
  padding: 38px;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 24, 38, 0.95), rgba(79, 66, 33, 0.82)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1500&q=82") center/cover;
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.18);
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.76);
}

.control-band {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr)) minmax(320px, 1.6fr);
  gap: 12px;
  align-items: stretch;
}

.summary,
.filters,
.category-band,
.panel,
.board {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.summary {
  min-height: 78px;
  padding: 16px 18px;
  border-radius: 8px;
}

.summary span {
  display: block;
  font-size: 28px;
  font-weight: 760;
}

.summary small {
  color: var(--muted);
}

.filters {
  min-height: 78px;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.chip {
  color: var(--tab-color, var(--ink));
  background: var(--tab-bg, #f4f7fb);
  border-color: var(--tab-border, var(--line));
  min-width: 0;
}

.chip.active {
  color: #fff;
  background: var(--tab-active, var(--blue));
  border-color: var(--tab-active, var(--blue));
}

.category-band {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.macro-risk-band {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(23, 50, 79, 0.96), rgba(54, 65, 83, 0.88)),
    radial-gradient(circle at right top, rgba(0, 141, 166, 0.28), transparent 32%);
  color: #fff;
  border: 1px solid rgba(125, 211, 252, 0.22);
  box-shadow: var(--shadow);
}

.nvidia-intro {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 16px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(10, 33, 28, 0.96), rgba(23, 50, 79, 0.9)),
    radial-gradient(circle at right top, rgba(118, 255, 122, 0.2), transparent 34%);
  color: #fff;
  border: 1px solid rgba(134, 239, 172, 0.24);
  box-shadow: var(--shadow);
}

.nvidia-intro h2 {
  font-size: 22px;
}

.nvidia-intro p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  font-size: 13px;
}

.nvidia-intro strong {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1.45;
}

.nvidia-radar {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.radar-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.radar-head h2 {
  font-size: 20px;
}

.radar-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.radar-pulse {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #fff;
  background: #17324f;
  font-weight: 760;
  white-space: nowrap;
}

.radar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.radar-card {
  min-height: 186px;
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 13px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fbfcfe;
}

.radar-card-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.radar-card-top strong {
  font-size: 14px;
}

.radar-card-top span {
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 760;
}

.radar-card p,
.radar-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.radar-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf4;
}

.radar-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0b8f5a, #36c48e);
}

.macro-risk-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.macro-risk-head h2 {
  font-size: 20px;
}

.macro-risk-head p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.45;
}

.macro-verdict {
  min-width: 132px;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  text-align: center;
  font-weight: 760;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.macro-risk-band.risk-on .macro-verdict {
  background: rgba(11, 143, 90, 0.9);
  border-color: rgba(199, 255, 224, 0.38);
}

.macro-risk-band.risk-off .macro-verdict {
  background: rgba(201, 54, 54, 0.92);
  border-color: rgba(255, 207, 207, 0.42);
}

.macro-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) minmax(260px, 1.4fr);
  gap: 10px;
}

.macro-metric,
.macro-proxies {
  min-height: 92px;
  padding: 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.macro-metric span,
.macro-proxies span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.macro-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.macro-metric small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.35;
}

.macro-proxies {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-content: flex-start;
}

.proxy-pill {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.13);
}

.proxy-pill.up {
  color: #bbf7d0;
}

.proxy-pill.down {
  color: #fecaca;
}

.layer-band {
  margin-top: 12px;
}

.category-band h2 {
  font-size: 20px;
}

.category-band p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.category-tab {
  min-height: 34px;
  padding: 0 11px;
  color: var(--tab-color, #34485c);
  background: var(--tab-bg, #f4f7fb);
  border-color: var(--tab-border, var(--line));
  white-space: nowrap;
}

.category-tab.active {
  color: #fff;
  background: var(--tab-active, #17324f);
  border-color: var(--tab-active, #17324f);
}

.layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.panel,
.board {
  border-radius: 8px;
}

.panel {
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.panel-head,
.article-actions,
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel h2,
.toolbar h2 {
  font-size: 20px;
}

textarea {
  width: 100%;
  height: 210px;
  margin: 16px 0 10px;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  line-height: 1.55;
}

input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 40px;
  padding: 0 12px;
  background: #fff;
}

.article-actions input {
  flex: 1;
}

.article-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.article-item {
  padding: 12px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-item strong {
  display: block;
  font-size: 14px;
}

.article-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.board {
  padding: 18px;
  min-width: 0;
}

.toolbar {
  margin-bottom: 16px;
}

.toolbar p {
  color: var(--muted);
  margin-top: 6px;
  font-size: 13px;
}

.toolbar input {
  width: min(360px, 46vw);
}

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

.sector-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.sector-card header {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

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

.sector-title h3 {
  font-size: 17px;
  line-height: 1.25;
}

.policy-score {
  color: #fff;
  background: var(--cyan);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  white-space: nowrap;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  color: #35475a;
  background: #eef4f8;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
}

.tag.category {
  color: var(--tag-color, #17324f);
  background: var(--tag-bg, #e8eef7);
  font-weight: 700;
}

.tag.layer {
  color: var(--tag-color, #1f4b35);
  background: var(--tag-bg, #e8f5ed);
  font-weight: 700;
}

.stock-table {
  width: 100%;
  border-collapse: collapse;
}

.stock-table th,
.stock-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.stock-table th {
  color: var(--muted);
  font-weight: 650;
  background: #fbfcfe;
}

.ticker {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.market {
  display: inline-flex;
  min-width: 42px;
  justify-content: center;
  color: #fff;
  background: #4d647a;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
}

.market.us {
  background: var(--blue);
}

.market.hk {
  background: var(--amber);
}

.market.cn {
  background: var(--green);
}

.up {
  color: var(--red);
  font-weight: 720;
}

.down {
  color: var(--green);
  font-weight: 720;
}

.flat {
  color: var(--muted);
}

.rationale {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  max-width: 220px;
}

.empty {
  padding: 22px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.empty-inline {
  color: var(--muted);
  font-size: 13px;
}

.policy-news-band {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f7fbff);
  box-shadow: var(--shadow);
  padding: 16px;
}

.policy-news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.policy-news-head h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.policy-news-head p,
.policy-news-actions {
  color: var(--muted);
  font-size: 13px;
}

.policy-news-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.policy-news-actions button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
}

.policy-news-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-height: 560px;
  overflow: auto;
  padding-right: 2px;
}

.policy-news-item {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
}

.policy-news-item h3 {
  font-size: 15px;
  line-height: 1.35;
}

.policy-news-item h3 a {
  color: var(--ink);
  text-decoration: none;
}

.policy-news-item h3 a:hover {
  color: var(--blue);
}

.policy-news-item p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.fund-profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow);
}

.fund-profile-card h3 {
  font-size: 17px;
}

.fund-profile-card strong {
  display: inline-block;
  margin-top: 5px;
  color: var(--blue);
  font-size: 13px;
}

.fund-profile-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.news-board {
  margin-top: 18px;
}

.nvidia-investments {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stock-contract-universe {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.a-stock-search {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 16px;
  align-items: center;
}

.a-stock-search h2 {
  font-size: 22px;
}

.a-stock-search p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.a-stock-search form {
  display: flex;
  gap: 10px;
}

.a-stock-search input {
  flex: 1;
}

.a-stock-overview {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.a-stock-main-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.a-stock-main-card h2 {
  margin-top: 8px;
  font-size: 28px;
}

.a-stock-main-card h2 small {
  color: var(--muted);
  font-size: 15px;
}

.a-stock-main-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.a-stock-price {
  text-align: right;
}

.a-stock-price strong {
  display: block;
  font-size: 36px;
}

.a-stock-price span {
  display: block;
  margin-top: 6px;
  font-weight: 760;
}

.a-stock-stat-grid,
.a-stock-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.a-stock-stat {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 6px;
  align-content: start;
}

.a-stock-stat span,
.a-stock-stat small {
  color: var(--muted);
  font-size: 12px;
}

.a-stock-stat strong {
  font-size: 22px;
}

.a-stock-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.a-stock-side {
  position: sticky;
  top: 14px;
}

.a-stock-board-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
}

.a-stock-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.a-stock-board strong {
  min-width: 0;
  font-size: 13px;
}

.a-stock-board span,
.a-stock-board small {
  color: var(--muted);
  font-size: 12px;
}

.a-stock-board small {
  grid-column: 1 / -1;
}

.global-stock-hero {
  background-image: linear-gradient(90deg, rgba(11, 30, 52, 0.9), rgba(28, 92, 98, 0.68)), url("https://images.unsplash.com/photo-1642790106117-e829e14a795f?auto=format&fit=crop&w=1800&q=80");
}

.global-stock-link {
  color: inherit;
  text-decoration: none;
}

.global-stock-section-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.contract-table-wrap {
  max-height: 520px;
  overflow: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contract-universe-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
}

.contract-universe-table th,
.contract-universe-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.contract-universe-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
}

.contract-universe-table td:first-child {
  display: grid;
  gap: 5px;
}

.contract-universe-table td:first-child strong {
  font-size: 15px;
}

.contract-universe-table small {
  color: var(--muted);
}

.exchange-mini {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  color: #17324f;
  background: #e8eef7;
  font-size: 11px;
  font-weight: 800;
}

.exchange-mini.Binance {
  color: #7a5b00;
  background: #fff2bd;
}

.exchange-mini.OKX {
  color: #30343f;
  background: #eef0f5;
}

.exchange-mini.Bitget {
  color: #006b5a;
  background: #def7ef;
}

.exchange-mini.Gate {
  color: #7c2d12;
  background: #ffedd5;
}

.table-empty {
  color: var(--muted);
  text-align: center;
}

.investment-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.investment-actions button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

.investment-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.investment-card {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.investment-date {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.investment-date strong {
  font-size: 16px;
}

.investment-date span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8eef7;
  color: #17324f;
  font-size: 12px;
  font-weight: 700;
}

.investment-main {
  display: grid;
  gap: 10px;
}

.investment-main h3 {
  font-size: 17px;
  line-height: 1.35;
}

.investment-main h3 a {
  color: var(--ink);
  text-decoration: none;
}

.investment-main h3 a:hover {
  color: var(--blue);
}

.investment-main p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.investment-facts {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 8px;
}

.investment-facts span {
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 12px;
}

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

.news-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
  display: grid;
  gap: 11px;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.news-meta strong {
  margin-left: auto;
  color: #fff;
  background: var(--cyan);
  border-radius: 999px;
  padding: 3px 8px;
}

.news-card h3 {
  font-size: 17px;
  line-height: 1.35;
}

.news-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--blue);
}

.news-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.news-card .translation {
  color: #17324f;
  background: #f4f8ff;
  border-left: 3px solid #2f63d8;
  border-radius: 6px;
  padding: 8px 10px;
}

.news-card .translation.muted {
  color: var(--muted);
  background: #f8fafc;
  border-left-color: #9db2ce;
}

.signal-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 12px;
  color: var(--muted);
}

.asset {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 0 5px 5px 0;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #17324f;
  background: #e8eef7;
}

.asset.crypto {
  color: #5b3700;
  background: #fff1d8;
}

.asset.muted {
  color: var(--muted);
  background: #f2f5f8;
}

.health-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.compare-board {
  margin-top: 18px;
}

.compare-scroll {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 1160px;
  border-collapse: collapse;
  font-size: 13px;
}

.compare-table th,
.compare-table td {
  padding: 13px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.compare-table th {
  background: #f7f9fc;
  color: #263445;
  white-space: nowrap;
}

.compare-table td:first-child {
  min-width: 150px;
}

.health-board {
  margin-top: 0;
}

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

.health-company-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 15px;
  display: grid;
  gap: 10px;
}

.health-company-card h3 {
  font-size: 18px;
}

.health-company-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.health-quote {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}

.health-side {
  position: sticky;
  top: 14px;
}

.health-news-list {
  display: grid;
  gap: 10px;
}

.health-news-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fbfcfe;
}

.health-news-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.42;
}

.health-news-item a {
  color: var(--ink);
  text-decoration: none;
}

.health-news-item a:hover {
  color: var(--blue);
}

.health-news-item span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1120px) {
  .service-grid,
  .platform-grid,
  .case-grid,
  .workflow-band ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-band {
    grid-template-columns: 1fr;
  }

  .control-band {
    grid-template-columns: repeat(3, 1fr);
  }

  .filters {
    grid-column: 1 / -1;
  }

  .layout,
  .a-stock-layout,
  .a-stock-search,
  .category-band,
  .news-grid,
  .policy-news-list,
  .fund-profile-grid,
  .health-layout,
  .health-company-grid,
  .radar-grid,
  .investment-card,
  .sector-grid {
    grid-template-columns: 1fr;
  }

  .investment-date {
    padding-right: 0;
    padding-bottom: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .investment-facts {
    grid-template-columns: 1fr;
  }

  .a-stock-stat-grid,
  .a-stock-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-tabs {
    justify-content: flex-start;
  }

  .panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 720px) {
  .portfolio-hero {
    min-height: auto;
  }

  .portfolio-nav {
    width: min(100% - 28px, 1180px);
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-nav div {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .hero-content {
    width: min(100% - 28px, 1180px);
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0 86px;
  }

  .hero-content h1 {
    font-size: clamp(36px, 9.6vw, 44px);
    line-height: 1;
  }

  .hero-copy {
    font-size: 16px;
    line-height: 1.58;
  }

  .hero-panel {
    display: none;
  }

  .proof-strip,
  .service-grid,
  .platform-grid,
  .case-grid,
  .workflow-band ol {
    grid-template-columns: 1fr;
  }

  .proof-strip {
    margin-top: -62px;
  }

  .portfolio-main {
    width: min(100% - 28px, 1180px);
  }

  .section-block,
  .workflow-band,
  .contact-panel {
    padding-top: 58px;
  }

  .platform-section,
  .contact-panel {
    margin-top: 58px;
    padding: 24px;
  }

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

  .contact-panel .primary-action {
    width: 100%;
  }

  .topbar {
    flex-direction: column;
    min-height: 220px;
  }

  .status {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 14px;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .category-band {
    gap: 12px;
  }

  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .category-tab {
    flex: 0 0 auto;
  }

  .control-band {
    grid-template-columns: 1fr;
  }

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

  .macro-risk-head,
  .policy-news-head,
  .radar-head {
    flex-direction: column;
  }

  .macro-risk-grid {
    grid-template-columns: 1fr;
  }

  .a-stock-main-card,
  .a-stock-search form {
    align-items: stretch;
    flex-direction: column;
  }

  .a-stock-price {
    text-align: left;
  }

  .a-stock-stat-grid,
  .a-stock-signal-grid {
    grid-template-columns: 1fr;
  }

  .macro-verdict,
  .policy-news-actions {
    width: 100%;
  }

  .macro-proxies {
    min-height: 0;
  }

  .layout {
    display: flex;
    flex-direction: column;
  }

  .board {
    order: -1;
  }

  .toolbar,
  .article-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar input {
    width: 100%;
  }

  .stock-table th:nth-child(5),
  .stock-table td:nth-child(5) {
    display: none;
  }
}

/* Final Apple-inspired homepage override. Keep this block last. */
.portfolio-home {
  --apple-bg: #f5f5f7;
  --apple-ink: #1d1d1f;
  --apple-muted: #6e6e73;
  --apple-blue: #0066cc;
  color: var(--apple-ink);
  background: var(--apple-bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Arial, sans-serif;
}

.portfolio-home .portfolio-hero {
  min-height: min(760px, 100vh);
  color: #101828;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(245, 252, 255, 0.42) 42%, rgba(255, 255, 255, 0.08) 100%),
    url("hero-c4d-bg.png") center 62%/cover;
  border: 0;
  overflow: hidden;
}

.portfolio-home .portfolio-hero::after {
  display: none;
}

.portfolio-home .portfolio-hero::before {
  display: none;
}

.portfolio-home .portfolio-nav {
  width: 100%;
  max-width: none;
  min-height: 48px;
  margin: 0;
  padding: 0 clamp(18px, 4vw, 48px);
  justify-content: center;
  gap: clamp(18px, 5vw, 54px);
  background: rgba(255, 255, 255, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
}

.portfolio-home .portfolio-nav .brand {
  min-height: 48px;
  color: rgba(16, 24, 40, 0.9);
  font-size: 13px;
  font-weight: 600;
}

.portfolio-home .portfolio-nav div {
  padding: 0;
  gap: clamp(14px, 3vw, 34px);
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.portfolio-home .portfolio-nav a {
  min-height: 48px;
  padding: 0;
  border-radius: 0;
  color: rgba(16, 24, 40, 0.68);
  font-size: 12px;
  font-weight: 400;
}

.portfolio-home .portfolio-nav a:hover {
  color: #0f172a;
  background: transparent;
}

.portfolio-home .hero-content {
  width: min(980px, calc(100% - 36px));
  max-width: none;
  min-height: calc(min(760px, 100vh) - 48px);
  margin: 0 auto;
  padding: 58px 0 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 34px;
  text-align: center;
}

.portfolio-home .hero-text {
  max-width: 900px;
  padding: 18px 0 0;
}

.portfolio-home .eyebrow {
  margin-bottom: 14px;
  color: rgba(0, 102, 204, 0.74);
  font-size: 21px;
  font-weight: 600;
  text-transform: none;
}

.portfolio-home .hero-content h1 {
  max-width: 980px;
  font-size: clamp(60px, 9vw, 118px);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: none;
}

.portfolio-home .hero-copy {
  max-width: 820px;
  margin: 26px auto 0;
  color: rgba(16, 57, 96, 0.7);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.14;
}

.portfolio-home .hero-actions {
  justify-content: center;
  gap: 22px;
  margin-top: 30px;
}

.portfolio-home .primary-action,
.portfolio-home .secondary-action {
  min-height: 0;
  padding: 0;
  color: var(--apple-blue);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 19px;
  font-weight: 500;
}

.portfolio-home .primary-action::after,
.portfolio-home .secondary-action::after {
  content: " >";
  font-size: 17px;
}

.portfolio-home .primary-action:hover,
.portfolio-home .secondary-action:hover,
.portfolio-home .case-card:hover {
  transform: none;
  text-decoration: underline;
}

.portfolio-home .hero-panel {
  width: min(680px, 100%);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  color: #101828;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.portfolio-home .hero-panel span {
  min-height: 86px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.36);
  color: rgba(16, 24, 40, 0.58);
  font-size: 13px;
}

.portfolio-home .hero-panel b {
  display: block;
  color: #0f172a;
  font-size: 34px;
  line-height: 1;
}

.portfolio-home .portfolio-main {
  width: 100%;
  max-width: none;
  padding: 12px;
  background: var(--apple-bg);
}

.portfolio-home .proof-strip {
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portfolio-home .proof-strip div,
.portfolio-home .service-card,
.portfolio-home .case-card,
.portfolio-home .workflow-band li,
.portfolio-home .platform-grid article {
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.portfolio-home .proof-strip div {
  min-height: 260px;
  padding: clamp(28px, 4vw, 54px);
  align-content: center;
  text-align: center;
  background: #fff;
}

.portfolio-home .proof-strip strong {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: 0;
}

.portfolio-home .proof-strip span {
  max-width: 280px;
  margin: 12px auto 0;
  color: var(--apple-muted);
  font-size: 19px;
  line-height: 1.25;
}

.portfolio-home .section-block,
.portfolio-home .workflow-band,
.portfolio-home .contact-panel {
  margin-top: 12px;
  padding: clamp(54px, 7vw, 94px) clamp(18px, 5vw, 72px);
  background: #fff;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.portfolio-home .section-head {
  max-width: 980px;
  margin: 0 auto 34px;
  text-align: center;
}

.portfolio-home .section-head h2,
.portfolio-home .workflow-band h2,
.portfolio-home .contact-panel h2 {
  max-width: 960px;
  margin: 0 auto;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: 0;
}

.portfolio-home .section-head p:not(.eyebrow),
.portfolio-home .contact-panel p {
  max-width: 780px;
  margin: 18px auto 0;
  color: var(--apple-muted);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.22;
  font-weight: 600;
}

.portfolio-home .section-block .eyebrow,
.portfolio-home .workflow-band .eyebrow,
.portfolio-home .contact-panel .eyebrow {
  color: #bf4800;
  font-size: 17px;
  font-weight: 600;
  text-transform: none;
}

.portfolio-home .service-grid,
.portfolio-home .platform-grid,
.portfolio-home .case-grid,
.portfolio-home .workflow-band ol {
  max-width: 1160px;
  margin: 0 auto;
  gap: 12px;
}

.portfolio-home .service-card {
  min-height: 310px;
  padding: 32px;
  text-align: center;
  background: var(--apple-bg);
}

.portfolio-home .service-card span {
  color: var(--apple-muted);
  font-size: 13px;
}

.portfolio-home .service-card h3,
.portfolio-home .platform-grid h3 {
  margin-top: 18px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0;
}

.portfolio-home .service-card p,
.portfolio-home .platform-grid p,
.portfolio-home .case-card span,
.portfolio-home .workflow-band span {
  color: var(--apple-muted);
  font-size: 17px;
  line-height: 1.32;
}

.portfolio-home .platform-section {
  margin-top: 12px;
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px);
  color: #101828;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.96), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(104, 197, 255, 0.28), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(0, 132, 255, 0.18), transparent 42%),
    linear-gradient(135deg, #ffffff 0%, #edf9ff 42%, #c7ecff 100%);
  border-radius: 8px;
}

.portfolio-home .platform-section .section-head p:not(.eyebrow),
.portfolio-home .platform-section .eyebrow {
  color: rgba(16, 57, 96, 0.68);
}

.portfolio-home .platform-grid article {
  min-height: 300px;
  padding: 34px;
  text-align: center;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.portfolio-home .platform-grid p {
  color: rgba(16, 57, 96, 0.66);
}

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

.portfolio-home .image-portfolio-section {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.96), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(104, 197, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eef9ff 48%, #d5f1ff 100%);
}

.portfolio-home .image-gallery {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
}

.portfolio-home .image-card {
  min-height: 420px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: var(--apple-ink);
  text-decoration: none;
}

.portfolio-home .image-card-featured {
  grid-row: span 2;
  min-height: 852px;
}

.portfolio-home .image-placeholder {
  min-height: 280px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.12) 46%, rgba(0, 132, 255, 0.1) 100%),
    url("hero-c4d-bg.png") center bottom/cover;
}

.portfolio-home .image-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  object-fit: cover;
}

.portfolio-home .image-placeholder-silver {
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.9), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #dfeeff 52%, #ffffff 100%);
}

.portfolio-home .image-placeholder-cyan {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.92), transparent 30%),
    radial-gradient(circle at 78% 78%, rgba(0, 198, 255, 0.32), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #e4fbff 42%, #9ee7ff 100%);
}

.portfolio-home .image-card div:last-child {
  padding: 26px;
  text-align: center;
}

.portfolio-home .image-card strong {
  display: block;
  font-size: clamp(24px, 2.8vw, 40px);
  line-height: 1.04;
}

.portfolio-home .image-card span {
  display: block;
  max-width: 520px;
  margin: 12px auto 0;
  color: rgba(16, 57, 96, 0.66);
  font-size: 17px;
  line-height: 1.35;
}

.works-page {
  background: #f5f5f7;
}

.works-hero {
  color: #101828;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(245, 252, 255, 0.72)),
    url("hero-c4d-bg.png") center bottom/cover;
}

.works-hero .portfolio-nav {
  background: rgba(255, 255, 255, 0.68);
}

.works-hero-content {
  min-height: 560px;
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0 76px;
  display: grid;
  align-content: center;
  text-align: center;
}

.works-hero-content h1 {
  font-size: clamp(60px, 9vw, 120px);
  line-height: 0.92;
}

.works-hero-content p:not(.eyebrow) {
  max-width: 760px;
  margin: 24px auto 0;
  color: rgba(16, 57, 96, 0.7);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.16;
  font-weight: 600;
}

.works-main {
  padding-top: 12px;
}

.works-feature {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 12px;
  margin-bottom: 12px;
}

.works-feature img,
.work-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.works-feature img {
  border-radius: 8px;
}

.works-feature > div {
  padding: clamp(32px, 5vw, 72px);
  display: grid;
  align-content: center;
  text-align: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 255, 255, 0.95), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #edf9ff 46%, #d7f2ff 100%);
}

.works-feature h2 {
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.98;
}

.works-feature p:not(.eyebrow) {
  max-width: 520px;
  margin: 18px auto 0;
  color: rgba(16, 57, 96, 0.68);
  font-size: 21px;
  line-height: 1.25;
}

.works-section {
  padding: clamp(54px, 7vw, 94px) clamp(18px, 5vw, 72px);
  border-radius: 8px;
  background: #fff;
}

.works-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.work-card {
  min-height: 520px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f7;
}

.work-card.wide {
  grid-column: span 2;
  min-height: 430px;
}

.work-card.tall {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 760px;
}

.work-card div {
  padding: 20px;
  text-align: center;
}

.work-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.work-card span {
  display: block;
  margin-top: 8px;
  color: var(--apple-muted);
  font-size: 14px;
  line-height: 1.35;
}

.portfolio-home .case-card {
  min-height: 360px;
  padding: 38px;
  align-content: start;
  text-align: center;
  background: var(--apple-bg);
}

.portfolio-home .case-card strong {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.portfolio-home .case-card span {
  max-width: 380px;
  margin: 16px auto 0;
  font-size: 19px;
}

.portfolio-home .workflow-band {
  grid-template-columns: 1fr;
  gap: 36px;
  text-align: center;
}

.portfolio-home .workflow-band li {
  min-height: 230px;
  padding: 28px;
  background: var(--apple-bg);
}

.portfolio-home .workflow-band li::before {
  color: var(--apple-blue);
  font-size: 15px;
}

.portfolio-home .workflow-band strong {
  font-size: 26px;
  letter-spacing: 0;
}

.portfolio-home .contact-panel {
  margin-top: 12px;
  min-height: 460px;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #f5f5f7;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), #000 86%),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=86") center/cover;
  border-radius: 8px;
}

.portfolio-home .contact-panel p {
  color: rgba(245, 245, 247, 0.66);
}

.portfolio-home .contact-panel .primary-action {
  margin-top: 12px;
}

@media (max-width: 980px) {
  .portfolio-home .proof-strip,
  .portfolio-home .service-grid,
  .portfolio-home .platform-grid,
  .portfolio-home .image-gallery,
  .portfolio-home .case-grid,
  .portfolio-home .workflow-band ol {
    grid-template-columns: 1fr;
  }

  .portfolio-home .image-card-featured {
    grid-row: auto;
    min-height: 420px;
  }

  .portfolio-home .portfolio-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .portfolio-home .portfolio-nav div {
    flex-wrap: nowrap;
  }
}

@media (max-width: 720px) {
  .portfolio-home .portfolio-hero {
    min-height: 720px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(245, 252, 255, 0.4) 42%, rgba(255, 255, 255, 0.04) 100%),
      url("hero-c4d-bg.png") center bottom/cover;
  }

  .portfolio-home .portfolio-nav {
    width: 100%;
    padding: 0 14px;
    flex-direction: row;
    align-items: center;
  }

  .portfolio-home .portfolio-nav .brand,
  .portfolio-home .portfolio-nav a {
    flex: 0 0 auto;
  }

  .portfolio-home .hero-content {
    width: min(100% - 28px, 980px);
    min-height: calc(720px - 48px);
    padding: 36px 0 44px;
    gap: 26px;
  }

  .portfolio-home .eyebrow {
    font-size: 16px;
  }

  .portfolio-home .hero-content h1 {
    width: auto;
    font-size: clamp(54px, 17vw, 72px);
    line-height: 0.9;
  }

  .portfolio-home .hero-copy {
    font-size: 21px;
    line-height: 1.18;
  }

  .portfolio-home .hero-actions {
    gap: 18px;
  }

  .portfolio-home .primary-action,
  .portfolio-home .secondary-action {
    font-size: 17px;
  }

  .portfolio-home .hero-panel {
    display: grid;
    width: 100%;
  }

  .portfolio-home .hero-panel span {
    min-height: 70px;
    font-size: 11px;
  }

  .portfolio-home .hero-panel b {
    font-size: 25px;
  }

  .portfolio-home .portfolio-main {
    width: 100%;
    padding: 12px;
  }

  .portfolio-home .section-block,
  .portfolio-home .workflow-band,
  .portfolio-home .contact-panel {
    padding: 46px 18px;
  }

  .portfolio-home .section-head h2,
  .portfolio-home .workflow-band h2,
  .portfolio-home .contact-panel h2 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .portfolio-home .section-head p:not(.eyebrow),
  .portfolio-home .contact-panel p {
    font-size: 20px;
  }

  .portfolio-home .proof-strip div,
  .portfolio-home .service-card,
  .portfolio-home .platform-grid article,
  .portfolio-home .image-card,
  .portfolio-home .case-card,
  .portfolio-home .workflow-band li {
    min-height: 230px;
    padding: 26px;
  }

  .portfolio-home .image-card {
    padding: 0;
  }

  .portfolio-home .image-placeholder {
    min-height: 260px;
  }

  .works-hero-content {
    min-height: 480px;
    padding: 64px 0 52px;
  }

  .works-feature {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .works-feature img {
    min-height: 360px;
  }

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

  .work-card,
  .work-card.wide,
  .work-card.tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  .work-card img {
    min-height: 420px;
  }

  .work-card.tall img {
    min-height: 640px;
  }
}

.portfolio-home .hero-content h1 {
  max-width: 1120px;
  font-size: clamp(50px, 7.4vw, 104px);
  line-height: 0.98;
}

.portfolio-home .hero-copy {
  max-width: 900px;
}

.portfolio-home .hero-actions,
.portfolio-home .contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.portfolio-home .hero-panel {
  width: min(900px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio-home .hero-panel span {
  line-height: 1.2;
}

.portfolio-home .practical-section {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.98), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(104, 197, 255, 0.2), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f3fbff 52%, #e3f6ff 100%);
}

.portfolio-home .section-note {
  max-width: 720px;
  margin-top: 14px;
  font-size: clamp(17px, 1.7vw, 21px) !important;
  font-weight: 500 !important;
}

.portfolio-home .image-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-home .image-card,
.portfolio-home .image-card-featured {
  grid-row: auto;
  min-height: 420px;
}

.portfolio-home .image-card img {
  min-height: 260px;
  max-height: 360px;
}

.portfolio-home .about-section {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.96), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #edf9ff 48%, #d8f2ff 100%);
}

.portfolio-home .about-copy {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.portfolio-home .about-copy p {
  margin: 0;
  color: rgba(16, 57, 96, 0.72);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.34;
  font-weight: 600;
  text-align: center;
}

.portfolio-home .contact-actions {
  gap: 22px;
  margin-top: 26px;
}

@media (max-width: 980px) {
  .portfolio-home .hero-panel,
  .portfolio-home .image-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .portfolio-home .hero-content h1 {
    font-size: clamp(42px, 13vw, 60px);
    line-height: 1;
  }

  .portfolio-home .hero-panel,
  .portfolio-home .image-gallery {
    grid-template-columns: 1fr;
  }

  .portfolio-home .hero-actions,
  .portfolio-home .contact-actions {
    gap: 14px;
  }

  .portfolio-home .about-copy p {
    font-size: 19px;
  }
}
