:root {
  color-scheme: light;
  --paper: #fafafa;
  --paper-warm: #f5f5f3;
  --white: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --text-strong: #111827;
  --text-body: rgba(17, 24, 39, 0.86);
  --text-soft: rgba(17, 24, 39, 0.64);
  --line: rgba(17, 24, 39, 0.09);
  --line-strong: rgba(17, 24, 39, 0.16);
  --slate-blue: #4f7cac;
  --sage-green: #7a9e7e;
  --cool-gray: #667085;
  --soft-blue: #e8eff6;
  --soft-sage: #edf3ec;
  --sidebar-bg: rgba(250, 250, 250, 0.78);
  --nav-muted: rgba(17, 24, 39, 0.56);
  --nav-active-bg: rgba(17, 24, 39, 0.045);
  --footer-muted: rgba(17, 24, 39, 0.48);
  --card-bg: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --subtle-card-bg: rgba(255, 255, 255, 0.42);
  --grid-x: rgba(17, 24, 39, 0.025);
  --grid-y: rgba(17, 24, 39, 0.018);
  --hero-grid-x: rgba(79, 124, 172, 0.09);
  --hero-grid-y: rgba(122, 158, 126, 0.08);
  --field-line: rgba(17, 24, 39, 0.1);
  --bar-track: rgba(17, 24, 39, 0.055);
  --ai-bg: #111827;
  --ai-text: #f8fafc;
  --overlay-text: #ffffff;
  --ai-grid-x: rgba(255, 255, 255, 0.05);
  --ai-grid-y: rgba(255, 255, 255, 0.04);
  --shadow: 0 22px 70px rgba(17, 24, 39, 0.08);
  --hover-shadow: 0 26px 70px rgba(17, 24, 39, 0.14);
  --sidebar-width: 260px;
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.dark-theme {
  color-scheme: dark;
  --paper: #0b0f17;
  --paper-warm: #151a22;
  --white: #151b26;
  --ink: #f8fafc;
  --muted: #a5afbf;
  --text-strong: #f8fafc;
  --text-body: rgba(248, 250, 252, 0.86);
  --text-soft: rgba(226, 232, 240, 0.68);
  --line: rgba(226, 232, 240, 0.12);
  --line-strong: rgba(226, 232, 240, 0.22);
  --slate-blue: #8bb8e8;
  --sage-green: #9fc7a1;
  --cool-gray: #a5afbf;
  --soft-blue: #182231;
  --soft-sage: #16241c;
  --sidebar-bg: rgba(11, 15, 23, 0.82);
  --nav-muted: rgba(226, 232, 240, 0.58);
  --nav-active-bg: rgba(226, 232, 240, 0.085);
  --footer-muted: rgba(226, 232, 240, 0.56);
  --card-bg: #121824;
  --glass-bg: rgba(18, 24, 36, 0.78);
  --subtle-card-bg: rgba(30, 41, 59, 0.46);
  --grid-x: rgba(226, 232, 240, 0.035);
  --grid-y: rgba(226, 232, 240, 0.024);
  --hero-grid-x: rgba(139, 184, 232, 0.12);
  --hero-grid-y: rgba(159, 199, 161, 0.1);
  --field-line: rgba(226, 232, 240, 0.12);
  --bar-track: rgba(226, 232, 240, 0.09);
  --ai-bg: #05070b;
  --ai-text: #f8fafc;
  --overlay-text: #ffffff;
  --ai-grid-x: rgba(226, 232, 240, 0.055);
  --ai-grid-y: rgba(226, 232, 240, 0.045);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  --hover-shadow: 0 28px 78px rgba(0, 0, 0, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, var(--grid-x) 1px, transparent 1px),
    linear-gradient(180deg, var(--grid-y) 1px, transparent 1px),
    var(--paper);
  background-size: 72px 72px;
  color: var(--ink);
  font-family:
    Inter,
    Geist,
    "HarmonyOS Sans",
    "Source Han Sans SC",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  transition:
    background-color 220ms var(--ease),
    color 220ms var(--ease);
}

body.lang-cn {
  font-family:
    "Source Han Sans SC",
    "Noto Sans CJK SC",
    "HarmonyOS Sans",
    Inter,
    Geist,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body::selection {
  background: rgba(79, 124, 172, 0.22);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.site-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: 34px 28px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-name {
  font-size: 15px;
  font-weight: 720;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px 0 22px;
  border-radius: var(--radius);
  color: var(--nav-muted);
  font-size: 14px;
  transition:
    color 180ms var(--ease),
    background 180ms var(--ease),
    transform 180ms var(--ease);
}

.nav-link::before {
  position: absolute;
  left: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  opacity: 0.34;
}

.nav-link:hover,
.nav-link.active {
  background: var(--nav-active-bg);
  color: var(--ink);
}

.nav-link:hover {
  transform: translateX(2px);
}

.nav-link.active::before {
  background: var(--slate-blue);
  opacity: 1;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 20px;
  color: var(--footer-muted);
  font-size: 12px;
  line-height: 1.5;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 34px;
}

.theme-reserve {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-bg);
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.045);
  transition:
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease),
    transform 180ms var(--ease);
}

.theme-reserve:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.theme-reserve span {
  display: block;
  width: 12px;
  height: 12px;
  margin: auto;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ink) 0 50%, var(--paper-warm) 50% 100%);
  transition:
    background 180ms var(--ease),
    transform 180ms var(--ease);
}

body.dark-theme .theme-reserve span {
  background: linear-gradient(135deg, var(--paper-warm) 0 50%, var(--ink) 50% 100%);
  transform: rotate(180deg);
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: 84px;
  height: 34px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass-bg);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.045);
}

.lang-option {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--footer-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    background 180ms var(--ease),
    color 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.lang-option.active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.16);
}

.main-content {
  margin-left: var(--sidebar-width);
  padding: 38px 42px 80px;
}

.section-block {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}

.reveal {
  transform: translateY(18px);
  opacity: 0;
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

.reveal.visible {
  transform: translateY(0);
  opacity: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--slate-blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #9ec7e8;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: end;
  gap: 44px;
  overflow: hidden;
  padding: 58px 0 70px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 840px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(74px, 9vw, 142px);
  font-weight: 760;
  line-height: 0.92;
}

.hero-roles {
  max-width: 720px;
  margin: 32px 0 0;
  color: var(--text-body);
  font-size: clamp(32px, 4.2vw, 64px);
  font-weight: 680;
  line-height: 1.02;
}

.hero-intro {
  max-width: 680px;
  margin: 34px 0 0;
  color: var(--text-soft);
  font-size: 18px;
}

.hero-index {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  align-self: center;
}

.hero-index div {
  min-height: 104px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  box-shadow: 0 14px 50px rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(16px);
}

.hero-index span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-index strong {
  display: block;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.35;
}

.hero-field {
  --mx: 0px;
  --my: 0px;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: translate3d(calc(var(--mx) * 0.25), calc(var(--my) * 0.25), 0);
  transition: transform 240ms var(--ease);
}

.hero-field::before {
  position: absolute;
  inset: 7% -2% 8% 22%;
  background:
    linear-gradient(90deg, var(--hero-grid-x) 1px, transparent 1px),
    linear-gradient(180deg, var(--hero-grid-y) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: linear-gradient(90deg, transparent, #000 17%, #000 78%, transparent);
}

.field-plane,
.field-line,
.field-chip {
  position: absolute;
  display: block;
}

.field-plane {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--subtle-card-bg);
  box-shadow: 0 20px 90px rgba(79, 124, 172, 0.11);
}

.plane-one {
  right: 8%;
  top: 16%;
  width: 360px;
  height: 170px;
  background: rgba(232, 239, 246, 0.62);
  transform: translate3d(calc(var(--mx) * -0.52), calc(var(--my) * -0.36), 0);
}

.plane-two {
  right: 25%;
  bottom: 22%;
  width: 280px;
  height: 150px;
  background: rgba(237, 243, 236, 0.68);
  transform: translate3d(calc(var(--mx) * 0.36), calc(var(--my) * 0.3), 0);
}

.plane-three {
  right: 3%;
  bottom: 10%;
  width: 188px;
  height: 92px;
  background: rgba(245, 245, 243, 0.72);
  transform: translate3d(calc(var(--mx) * -0.24), calc(var(--my) * 0.34), 0);
}

.field-line {
  height: 1px;
  background: var(--field-line);
  transform-origin: left center;
}

.line-one {
  top: 28%;
  right: 10%;
  width: 420px;
  transform: rotate(-8deg);
}

.line-two {
  right: 2%;
  bottom: 38%;
  width: 520px;
  transform: rotate(11deg);
}

.field-chip {
  display: grid;
  place-items: center;
  width: 78px;
  height: 38px;
  border-radius: 999px;
  background: var(--glass-bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.06);
}

.chip-one {
  right: 35%;
  top: 18%;
}

.chip-two {
  right: 5%;
  top: 41%;
}

.chip-three {
  right: 26%;
  bottom: 16%;
}

.now-panel {
  max-width: 1180px;
  margin: 0 auto 104px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  padding: 28px 0 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.now-panel h2,
.section-heading h2,
.ai-copy h2,
.about-teaser h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 720;
  line-height: 1.05;
}

.now-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.now-list li {
  min-height: 136px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: 0 12px 36px rgba(17, 24, 39, 0.045);
}

.now-list span {
  display: block;
  margin-bottom: 18px;
  color: var(--sage-green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
  padding-right: 112px;
}

.section-heading.compact {
  max-width: 620px;
}

.section-action {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.055);
  text-decoration: none;
  backdrop-filter: blur(18px);
  transition:
    transform 220ms var(--ease),
    background 220ms var(--ease),
    border-color 220ms var(--ease),
    color 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.section-action span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section-action::before,
.section-action::after {
  display: block;
  background: currentColor;
  content: "";
  transition: transform 220ms var(--ease);
}

.section-action::before {
  width: 25px;
  height: 2px;
  border-radius: 999px;
  transform: translateX(-1px);
}

.section-action::after {
  position: absolute;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  background: transparent;
  transform: translateX(7px) rotate(45deg);
}

.section-action:hover,
.section-action:focus-visible {
  transform: translate(4px, -4px);
  border-color: var(--slate-blue);
  background: var(--slate-blue);
  color: var(--paper);
  box-shadow: 0 24px 58px rgba(79, 124, 172, 0.24);
  outline: none;
}

.section-action:hover::before,
.section-action:focus-visible::before {
  transform: translateX(2px);
}

.section-action:hover::after,
.section-action:focus-visible::after {
  transform: translateX(10px) rotate(45deg);
}

.section-action:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--slate-blue) 42%, transparent);
  outline-offset: 5px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 180px;
  gap: 16px;
  margin-bottom: 104px;
}

.project-card,
.note-card,
.photo-card,
.lab-panel {
  border-radius: var(--radius);
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.project-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(17, 24, 39, 0.72));
  content: "";
}

.project-card:hover,
.note-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms var(--ease);
}

.project-card:hover img {
  transform: scale(1.035);
}

.project-a {
  grid-column: span 2;
  grid-row: span 2;
}

.project-b {
  grid-column: span 4;
  grid-row: span 2;
}

.project-c {
  grid-column: span 3;
  grid-row: span 2;
}

.project-d {
  grid-column: span 1;
  grid-row: span 2;
}

.project-e {
  grid-column: span 2;
  grid-row: span 2;
}

.project-info {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 22px;
  color: var(--overlay-text);
}

.project-info span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.project-info h3 {
  margin: 8px 0 8px;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.06;
}

.project-d .project-info h3 {
  font-size: 22px;
}

.project-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.writing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  grid-auto-rows: 250px;
  gap: 16px;
  margin-bottom: 112px;
}

.writing-card {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.writing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hover-shadow);
}

.writing-feature {
  grid-row: span 2;
  grid-template-columns: 1fr;
}

.writing-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.writing-feature img {
  height: 330px;
}

.writing-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.writing-copy time {
  color: var(--slate-blue);
  font-size: 12px;
  font-weight: 800;
}

.writing-copy h3 {
  margin: 16px 0 12px;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.06;
}

.writing-card:not(.writing-feature) .writing-copy h3 {
  font-size: 23px;
}

.writing-copy p {
  margin: 0;
  color: var(--muted);
}

.ai-lab {
  position: relative;
  max-width: none;
  margin: 0 -42px 112px;
  padding: 86px max(42px, calc((100vw - var(--sidebar-width) - 1180px) / 2 + 42px));
  display: grid;
  grid-template-columns: 0.95fr 1.1fr;
  gap: 34px;
  background:
    linear-gradient(90deg, var(--ai-grid-x) 1px, transparent 1px),
    linear-gradient(180deg, var(--ai-grid-y) 1px, transparent 1px),
    var(--ai-bg);
  background-size: 66px 66px;
  color: var(--ai-text);
}

.ai-lab .section-action {
  top: 86px;
  right: max(42px, calc((100vw - var(--sidebar-width) - 1180px) / 2 + 42px));
  border-color: rgba(248, 250, 252, 0.22);
  background: rgba(255, 255, 255, 0.075);
  color: var(--ai-text);
  box-shadow: none;
}

.ai-lab .section-action:hover,
.ai-lab .section-action:focus-visible {
  border-color: var(--ai-text);
  background: var(--ai-text);
  color: var(--ai-bg);
}

.ai-copy {
  max-width: 520px;
}

.ai-copy p:not(.eyebrow) {
  max-width: 470px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 17px;
}

.lab-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-self: start;
}

.lab-tab {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  padding: 0 16px;
  cursor: pointer;
  transition:
    color 180ms var(--ease),
    border-color 180ms var(--ease),
    background 180ms var(--ease);
}

.lab-tab:hover,
.lab-tab.active {
  border-color: rgba(158, 199, 232, 0.46);
  background: rgba(79, 124, 172, 0.2);
  color: var(--ai-text);
}

.lab-panel {
  grid-column: 2;
  min-height: 220px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.panel-kicker {
  color: #9ec7e8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lab-panel h3 {
  margin: 18px 0 14px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
}

.lab-panel p {
  max-width: 580px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
}

.photo-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 16px;
  margin-bottom: 110px;
}

.photo-card {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  min-height: 320px;
  margin: 0;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  backface-visibility: hidden;
  isolation: isolate;
  transform: translateZ(0);
  transition:
    box-shadow 220ms var(--ease);
  will-change: box-shadow;
}

.photo-card:nth-child(1) {
  grid-row: span 2;
  min-height: 460px;
}

.photo-card:nth-child(2) {
  min-height: 360px;
}

.photo-card:nth-child(3) {
  grid-row: span 2;
  min-height: 520px;
}

.photo-card:nth-child(4) {
  min-height: 380px;
}

.photo-card:nth-child(5) {
  min-height: 430px;
}

.photo-card:nth-child(6) {
  min-height: 360px;
}

.photo-card:hover {
  box-shadow: var(--hover-shadow);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.photo-card figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 42px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.72));
  color: var(--overlay-text);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 180ms var(--ease),
    visibility 0s linear 180ms;
}

.photo-card:hover figcaption,
.photo-card:focus-within figcaption,
.photo-card.is-hovered figcaption {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.photo-card figcaption span {
  font-size: 13px;
  font-weight: 720;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 112px;
}

.investment-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
  margin-bottom: 16px;
}

.holdings-card,
.trades-card {
  min-height: 420px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow);
}

.investment-card-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.investment-card-heading span,
.trade-type,
.holding-meta small {
  color: var(--sage-green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.investment-card-heading h3 {
  margin: 0;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.06;
}

.investment-card-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.holding-bars {
  display: grid;
  gap: 18px;
}

.holding-row {
  display: grid;
  gap: 9px;
}

.holding-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
}

.holding-meta span {
  color: var(--text-body);
  font-size: 15px;
  font-weight: 720;
}

.holding-meta strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.bar-track {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bar-track);
}

.bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color, var(--slate-blue));
  transition: width 900ms var(--ease);
}

.holding-bars.ready .bar-fill {
  width: var(--target);
}

.trade-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trade-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.trade-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.trade-type {
  display: grid;
  width: 42px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(122, 158, 126, 0.12);
  color: var(--sage-green);
}

.trade-type.sell {
  background: rgba(79, 124, 172, 0.12);
  color: var(--slate-blue);
}

.trade-main {
  display: grid;
  gap: 6px;
}

.trade-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.trade-meta strong {
  color: var(--ink);
  font-size: 15px;
}

.trade-meta time {
  color: var(--footer-muted);
  font-size: 12px;
  font-weight: 700;
}

.trade-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.note-card {
  min-height: 214px;
  padding: 24px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition:
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.note-card span {
  color: var(--sage-green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.note-card h3 {
  margin: 42px 0 12px;
  font-size: 25px;
  line-height: 1.08;
}

.note-card p {
  margin: 0;
  color: var(--muted);
}

.timeline-section {
  padding-bottom: 106px;
}

.timeline-list {
  max-width: 760px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 26px;
  min-height: 92px;
}

.timeline-list li::before {
  position: absolute;
  left: 89px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--slate-blue);
  content: "";
}

.timeline-list li::after {
  position: absolute;
  left: 93px;
  top: 22px;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.timeline-list li:last-child::after {
  display: none;
}

.timeline-list time {
  color: var(--ink);
  font-size: 26px;
  font-weight: 720;
  line-height: 1;
}

.timeline-list p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.about-teaser {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 0 20px;
  border-top: 1px solid var(--line);
}

.about-teaser p:not(.eyebrow) {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 1120px) {
  :root {
    --sidebar-width: 226px;
  }

  .main-content {
    padding-inline: 28px;
  }

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

  .hero-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .now-panel,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .now-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .writing-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .writing-card,
  .writing-feature {
    grid-template-columns: 1fr;
    grid-row: auto;
  }

  .writing-card img,
  .writing-feature img {
    height: 260px;
  }

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

  .ai-lab {
    margin-inline: -28px;
    padding-inline: 28px;
    grid-template-columns: 1fr;
  }

  .ai-lab .section-action {
    right: 28px;
  }

  .lab-panel {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    position: static;
    width: auto;
    gap: 24px;
    padding: 22px;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-index,
  .now-list,
  .lab-tabs,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    padding-right: 0;
  }

  .section-action,
  .ai-lab .section-action {
    position: static;
    width: 58px;
    height: 58px;
    margin: 0 0 22px auto;
  }

  .project-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 320px;
  }

  .project-card {
    grid-column: auto;
    grid-row: auto;
  }
}
