:root {
  --ink: #0b0d0f;
  --paper: #f4f1e9;
  --soft: #e8edf4;
  --line: rgba(11, 13, 15, .16);
  --muted: #606873;
  --blue: #2047ff;
  --red: #ff3b16;
  --yellow: #ffc322;
  --green: #00a12a;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(11,13,15,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,13,15,.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
a { color: inherit; text-decoration: none; }
img, video, iframe { max-width: 100%; display: block; }
::selection { color: var(--paper); background: var(--blue); }

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -2;
  width: 280px;
  height: 280px;
  pointer-events: none;
  border-radius: 50%;
  opacity: .5;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, rgba(32,71,255,.22), transparent 62%);
}

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  width: min(calc(100% - 28px), var(--max));
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 18px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 999px;
  background: rgba(244,241,233,.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 70px rgba(11,13,15,.12);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brand::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, var(--red), var(--yellow), var(--blue), var(--red));
  box-shadow: 0 0 0 5px rgba(32,71,255,.08);
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(11,13,15,.78);
  font-size: 13px;
  font-weight: 850;
}
.nav-links a:hover,
.nav-links a.active,
.nav-links a.cta {
  color: #fff;
  background: var(--ink);
}

.wrap {
  width: min(calc(100% - 36px), var(--max));
  margin: 0 auto;
}
.hero {
  min-height: 100svh;
  display: grid;
  align-items: start;
  padding: 108px 0 42px;
}
.page-hero {
  min-height: 72svh;
  display: grid;
  align-items: end;
  padding: 128px 0 52px;
}
.topline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 850;
}
.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #39ff88;
  box-shadow: 0 0 0 6px rgba(57,255,136,.14);
}
.meta {
  justify-self: end;
  max-width: 340px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 900;
}
.meta.hero-signature {
  position: relative;
  max-width: 410px;
  padding: 18px 20px 18px 22px;
  border-left: 8px solid var(--blue);
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 18px 50px rgba(11,13,15,.08);
}
.meta.hero-signature::before {
  content: "PROFILE SIGNAL";
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
}
.hero-title,
.page-title {
  margin: 0;
  max-width: 1120px;
  font-size: clamp(70px, 13vw, 168px);
  line-height: .78;
  letter-spacing: 0;
  font-weight: 950;
  text-transform: uppercase;
}
.page-title { font-size: clamp(62px, 12vw, 156px); }
.blue {
  color: var(--blue);
  text-shadow: 8px 8px 0 var(--yellow);
}
.red { color: var(--red); }
.green { color: var(--green); }

.board {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(280px, .8fr);
  gap: 18px;
  margin-top: 24px;
}
.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.proof {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 16px 48px rgba(11,13,15,.08);
}
.proof strong {
  display: block;
  font-size: clamp(24px, 3vw, 42px);
  line-height: .95;
  font-weight: 950;
}
.proof span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 30px 90px rgba(11,13,15,.12);
}
.signal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}
.copy {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.copy h2,
.feature h3 {
  margin: 24px 0 14px;
  font-size: clamp(30px, 4vw, 58px);
  line-height: .98;
  letter-spacing: 0;
  font-weight: 950;
}
.signal .copy h2 {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.03;
}
.copy p,
.feature p,
.intro {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(11,13,15,.18); }
.btn.alt { color: var(--ink); background: transparent; }

.dashboard {
  position: relative;
  min-height: 100%;
  padding: 24px;
  color: #fff;
  background: #101113;
}
.metric {
  position: absolute;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
  backdrop-filter: blur(10px);
}
.metric.one { left: 24px; top: 28px; width: 54%; padding: 18px; }
.metric.two { right: 20px; top: 96px; width: 46%; padding: 18px; background: var(--red); }
.metric.three { left: 48px; bottom: 24px; width: 66%; padding: 18px; color: var(--ink); background: #fff; }
.metric small {
  display: block;
  opacity: .68;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.metric strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: .9;
  font-weight: 950;
}
.bars {
  display: flex;
  align-items: end;
  gap: 7px;
  height: 80px;
  margin-top: 18px;
}
.bars i {
  display: block;
  width: 18px;
  border-radius: 8px 8px 0 0;
  background: var(--yellow);
  transform-origin: bottom;
  animation: barPulse 2.6s ease-in-out infinite;
}
.bars i:nth-child(1) { height: 38%; }
.bars i:nth-child(2) { height: 58%; animation-delay: .15s; background: var(--blue); }
.bars i:nth-child(3) { height: 78%; animation-delay: .3s; }
.bars i:nth-child(4) { height: 44%; animation-delay: .45s; background: var(--red); }
.bars i:nth-child(5) { height: 92%; animation-delay: .6s; background: #101113; }

.profile {
  min-height: 320px;
  padding: 28px;
  background:
    radial-gradient(circle at 75% 20%, rgba(255,195,34,.75), transparent 24%),
    linear-gradient(135deg, #d9e7ff, #fff 48%, #fbd9cc);
}
.stamp {
  position: absolute;
  right: 22px;
  top: 20px;
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  animation: spin 16s linear infinite;
}
.profile h2 {
  width: min(100%, 390px);
  margin: 70px 0 18px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: .92;
  font-weight: 950;
}
.profile p { max-width: 420px; color: #333840; line-height: 1.85; }

.marquee {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--ink);
  background: var(--yellow);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 24s linear infinite;
}
.marquee span {
  padding: 18px 20px;
  font-size: clamp(28px, 5vw, 78px);
  line-height: 1;
  font-weight: 950;
  white-space: nowrap;
  text-transform: uppercase;
}

.section { padding: 92px 0; }
.head {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 36px;
}
.kicker {
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-title {
  margin: 10px 0 0;
  font-size: clamp(42px, 8vw, 118px);
  line-height: .88;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
.intro { margin: 0; font-size: 18px; }

.list { display: grid; gap: 14px; }
.project-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.project-column {
  min-width: 0;
}
.project-column-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 0 2px;
}
.project-column-head h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}
.list.compact {
  gap: 12px;
}
.case-card {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr 250px;
  gap: 20px;
  min-height: 210px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.58);
}
.case-card:hover { background: #fff; }
.case-card.compact {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  padding: 18px 20px;
}
.no { color: var(--blue); font-size: 14px; font-weight: 950; }
.case-card h3 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1;
  font-weight: 950;
}
.case-card.compact h3 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.05;
}
.case-card p { max-width: 700px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; }
.case-card.compact p {
  max-width: none;
  font-size: 14px;
  line-height: 1.7;
}
.tags { display: flex; flex-wrap: wrap; align-content: start; justify-content: flex-end; gap: 8px; }
.case-card.compact .tags {
  justify-content: flex-start;
  margin-top: 12px;
}
.tags span,
.chip {
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.dark {
  color: #fff;
  background: var(--ink);
}
.dark .intro { color: rgba(255,255,255,.68); }
.dark .kicker { color: var(--yellow); }

body.project-light-theme {
  background: var(--paper);
}
body.project-light-theme::before {
  background:
    linear-gradient(rgba(11,13,15,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,13,15,.07) 1px, transparent 1px);
  background-size: 52px 52px;
}
.project-light-theme .dark {
  color: var(--ink);
  background: transparent;
}
.project-light-theme .dark .intro,
.project-light-theme .dark .project-summary p,
.project-light-theme .dark .deep-copy p,
.project-light-theme .dark .point-card span {
  color: var(--muted);
}
.project-light-theme .dark .kicker,
.project-light-theme .dark .point-card b {
  color: var(--blue);
}
.project-light-theme .project-summary,
.project-light-theme .point-card,
.project-light-theme .dark .project-summary,
.project-light-theme .dark .point-card {
  color: var(--ink);
  border-color: rgba(11,13,15,.18);
  background: rgba(255,255,255,.82);
}
.project-light-theme .dark .deep-copy {
  border-color: rgba(11,13,15,.22);
}
.project-light-theme .dark .project-link {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}
.project-light-theme .dark .project-link.alt {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}
.project-light-theme .project-block {
  border-color: rgba(11,13,15,.22);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background: rgba(255,255,255,.16);
}
.feature {
  min-height: 270px;
  padding: 24px;
  background: #101215;
}
.feature b {
  display: block;
  color: var(--yellow);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.feature h3 { margin-top: 44px; font-size: 28px; }
.feature p { color: rgba(255,255,255,.66); font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 12px 14px; font-size: 14px; background: #fff; box-shadow: 0 14px 40px rgba(11,13,15,.08); }
.chip:nth-child(3n) { color: #fff; background: var(--blue); }
.chip:nth-child(4n) { color: #fff; background: var(--red); }
.chip:nth-child(5n) { background: var(--yellow); }
.project-skill-wall {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.58);
}
.project-skill-wall .kicker { margin-bottom: 12px; }

.resume-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
  align-items: stretch;
}
.resume-panel {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 24px 70px rgba(11,13,15,.1);
}
.resume-panel.dark-panel {
  color: #fff;
  background: var(--ink);
}
.resume-panel h3 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 54px);
  line-height: .96;
  font-weight: 950;
}
.resume-panel h3.fit-title {
  font-size: clamp(32px, 3.1vw, 50px);
  line-height: 1.02;
  white-space: nowrap;
}
.resume-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}
.resume-panel.dark-panel p,
.resume-panel.dark-panel .timeline li span {
  color: rgba(255,255,255,.68);
}
.timeline {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(11,13,15,.24);
}
.dark-panel .timeline li { border-color: rgba(255,255,255,.18); }
.timeline b {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.timeline strong {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
  line-height: 1.25;
}
.timeline span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.metric-row.two { grid-template-columns: repeat(2, 1fr); }
.mini-metric {
  padding: 14px;
  border-radius: 16px;
  background: var(--yellow);
}
.mini-metric:nth-child(2) { color: #fff; background: var(--blue); }
.mini-metric:nth-child(3) { color: #fff; background: var(--red); }
.mini-metric strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  font-weight: 950;
}
.mini-metric span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}
.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}
.signal-tile {
  min-height: 104px;
  padding: 16px;
  border-radius: 18px;
  background: var(--yellow);
}
.signal-tile:nth-child(2) { color: #fff; background: var(--blue); }
.signal-tile:nth-child(3) { color: #fff; background: var(--red); }
.signal-tile:nth-child(4) { background: #fff; border: 1px solid var(--line); }
.signal-tile strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}
.signal-tile span {
  display: block;
  margin-top: 9px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}
.subsection {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(11,13,15,.24);
}
.dark-panel .subsection { border-color: rgba(255,255,255,.18); }
.subsection h4 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
}
.bullet-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bullet-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.dark-panel .bullet-list li { color: rgba(255,255,255,.68); }
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.dark-panel .bullet-list li::before { background: var(--yellow); }
.info-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.info-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}
.info-item b {
  display: block;
  color: var(--blue);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.info-item span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 900;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.media-card {
  grid-column: span 4;
  min-width: 0;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.58);
}
.media-card.wide { grid-column: span 8; aspect-ratio: 16 / 9; }
.media-card.demo-frame { grid-column: span 12; aspect-ratio: 16 / 10; min-height: 620px; }
.rag-demo-grid .demo-frame {
  grid-column: 1 / -1 !important;
  width: 100%;
  min-height: 680px;
}
.media-card.tall { grid-row: span 2; aspect-ratio: 3 / 4; }
.media-card.phone { aspect-ratio: 9 / 16; min-height: 420px; }
.media-card.square { aspect-ratio: 1 / 1; }
.media-card img,
.media-card video {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}
.media-card.contain img,
.media-card.contain video {
  object-fit: contain;
  padding: 14px;
  background: #0f1114;
}
.ai-canvas-grid .media-card.contain img {
  padding: 10px;
  background: #fff;
}
.lovely-plants-showcase {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}
.lovely-plants-top,
.lovely-plants-bottom {
  display: grid;
  gap: 18px;
}
.lovely-plants-top {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lovely-plants-bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lovely-plants-panel {
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(11,13,15,.08);
}
.lovely-plants-panel img,
.lovely-plants-panel video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #fff;
}
.media-card iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  background: #fff;
}
.placeholder-frame {
  aspect-ratio: 16 / 9;
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(45, 78, 255, .08), rgba(255, 188, 18, .12)),
    rgba(255,255,255,.72);
}
.placeholder-inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(11,13,15,.18);
  border-radius: 22px;
}
.placeholder-inner span {
  color: rgba(11,13,15,.46);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.media-caption {
  padding: 18px;
}
.media-caption h3 { margin: 0 0 8px; font-size: 24px; line-height: 1.1; }
.media-caption p { margin: 0; color: var(--muted); line-height: 1.7; }

.memo-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  overflow: hidden;
}
.memo-showcase > * {
  min-width: 0;
}
.phone-frame {
  width: 100%;
  min-height: 0;
  aspect-ratio: 9 / 16;
  padding: 12px;
  border-radius: 30px;
  background: #0f1114;
  border: 1px solid rgba(11,13,15,.18);
  box-shadow: 0 26px 70px rgba(11,13,15,.18);
  overflow: hidden;
}
.phone-frame video,
.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 20px;
  object-fit: cover;
}
.memo-screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.memo-shot {
  aspect-ratio: 9 / 16;
  min-height: 0;
  padding: 12px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(11,13,15,.08);
  overflow: hidden;
}
.memo-shot.memo-wide {
  grid-column: span 3;
  aspect-ratio: 2.55 / 1;
}
.memo-shot img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.qr-card {
  display: flex;
  min-height: 0;
  aspect-ratio: auto;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--yellow);
  box-shadow: 0 26px 70px rgba(11,13,15,.14);
}
.qr-card h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}
.qr-card p {
  color: #2d2d2d;
  line-height: 1.65;
}
.qr-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(4,5,7,.86);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: min(94vw, 1500px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(0,0,0,.46);
}
.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.12);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
main img {
  cursor: zoom-in;
}

.commerce-models {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.commerce-models .media-card {
  grid-column: auto;
}
.commerce-pair-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.commerce-pair {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.16);
  background: #101215;
}
.commerce-pair h3 {
  margin: 4px 4px 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
}
.commerce-pair .media-card {
  grid-column: auto;
  width: 100%;
}

.design-carousel-shell {
  position: relative;
  margin-top: 28px;
  padding: 14px 0 8px;
  overflow: hidden;
}
.design-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 2px 24px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.42) transparent;
}
.design-carousel::-webkit-scrollbar {
  height: 8px;
}
.design-carousel::-webkit-scrollbar-track {
  background: rgba(255,255,255,.08);
  border-radius: 999px;
}
.design-carousel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.42);
  border-radius: 999px;
}
.design-slide {
  flex: 0 0 clamp(260px, 28vw, 360px);
  margin: 0;
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background: #f7f4ed;
  box-shadow: 0 28px 80px rgba(0,0,0,.26);
  overflow: hidden;
}
.design-slide img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #fff;
}
.carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}
.carousel-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  color: var(--ink);
  background: var(--yellow);
  font: inherit;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
}
.carousel-btn:hover {
  color: #fff;
  background: var(--blue);
}

.detail {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 20px;
  align-items: start;
}
.side-note {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.side-note h2 { margin: 0 0 12px; font-size: 32px; line-height: 1; }
.side-note p { color: var(--muted); line-height: 1.8; }

.project-block {
  border-top: 1px solid var(--line);
}
.project-brief {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.project-summary {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 24px 70px rgba(11,13,15,.08);
}
.dark .project-summary {
  color: #fff;
  background: #101215;
  border-color: rgba(255,255,255,.16);
}
.project-summary h3 {
  margin: 10px 0 14px;
  font-size: clamp(30px, 4.8vw, 72px);
  line-height: .92;
  font-weight: 950;
}
.project-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}
.dark .project-summary p { color: rgba(255,255,255,.68); }
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.project-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 900;
}
.project-link.alt {
  color: var(--ink);
  background: transparent;
}
.dark .project-link {
  color: var(--ink);
  border-color: #fff;
  background: #fff;
}
.dark .project-link.alt {
  color: #fff;
  background: transparent;
}
.deep-copy {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(11,13,15,.22);
}
.dark .deep-copy { border-color: rgba(255,255,255,.18); }
.deep-copy h4 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 950;
}
.deep-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.dark .deep-copy p { color: rgba(255,255,255,.68); }
.project-points {
  display: grid;
  gap: 10px;
}
.point-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.62);
}
.dark .point-card {
  border-color: rgba(255,255,255,.16);
  background: #101215;
}
.point-card b {
  display: block;
  color: var(--blue);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dark .point-card b { color: var(--yellow); }
.point-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}
.dark .point-card span { color: rgba(255,255,255,.68); }

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.contact-card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
}
.contact-card.hot { color: #fff; background: var(--blue); }
.contact-card h2 { margin: 0 0 18px; font-size: clamp(36px, 6vw, 86px); line-height: .88; }
.contact-card p,
.contact-card li { line-height: 1.85; }
.contact-card ul { margin: 0; padding-left: 18px; }

.cta-band {
  padding: 92px 0 68px;
  text-align: center;
  background:
    linear-gradient(90deg, var(--green) 0 9px, transparent 9px 30px),
    var(--soft);
  background-size: 30px 100%;
}
.cta-band h2 {
  width: min(100%, 980px);
  margin: 0 auto 20px;
  color: var(--blue);
  font-size: clamp(52px, 11vw, 150px);
  line-height: .86;
  font-weight: 950;
  text-transform: uppercase;
}
.cta-band p {
  width: min(100%, 680px);
  margin: 0 auto 26px;
  color: #343940;
  font-size: 18px;
  line-height: 1.85;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0;
  color: rgba(11,13,15,.62);
  font-size: 13px;
  font-weight: 800;
}

[data-reveal],
.case-card {
  transform: translateY(26px);
  opacity: 0;
  transition: transform .75s cubic-bezier(.2,.9,.2,1), opacity .75s ease, background .2s ease;
}
.resume-panel[data-reveal],
.project-skill-wall[data-reveal] {
  opacity: 1;
  transition: transform .75s cubic-bezier(.2,.9,.2,1), background .2s ease;
}
[data-reveal].is-visible,
.case-card.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes barPulse {
  0%, 100% { transform: scaleY(.75); }
  50% { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .cursor-glow { display: none; }
}

@media (max-width: 1180px) {
  .qr-card {
    grid-column: 1 / -1;
    min-height: 320px;
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    align-items: end;
    gap: 24px;
  }
  .qr-card img {
    justify-self: end;
    max-width: 320px;
  }
}

@media (min-width: 921px) and (max-width: 1180px) {
  .memo-showcase {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .memo-shot.memo-wide {
    grid-column: span 3;
  }
  .qr-card {
    grid-column: auto;
    min-height: 0;
    display: flex;
  }
  .qr-card img {
    justify-self: auto;
    max-width: 100%;
  }
}

@media (max-width: 920px) {
  .nav-links a:not(.cta) { display: none; }
  .topline,
  .board,
  .proof-strip,
  .signal,
  .head,
  .project-columns,
  .grid-4,
  .detail,
  .project-brief,
  .memo-showcase,
  .commerce-models,
  .commerce-pair-grid,
  .contact-panel,
  .resume-grid,
  .metric-row,
  .metric-row.two,
  .signal-grid,
  .info-bar {
    grid-template-columns: 1fr;
  }
  .meta { justify-self: start; }
  .hero-title { font-size: clamp(68px, 22vw, 142px); }
  .dashboard { min-height: 340px; }
  .case-card { grid-template-columns: 1fr; min-height: auto; }
  .case-card.compact { grid-template-columns: 1fr; }
  .tags { justify-content: flex-start; }
  .media-card,
  .media-card.wide,
  .media-card.demo-frame { grid-column: span 12; }
  .media-card { min-height: 0; }
  .media-card.demo-frame { min-height: 420px; }
  .media-card.phone { min-height: 360px; }
  .memo-screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .memo-shot.memo-wide { grid-column: 1 / -1; }
  .phone-frame,
  .qr-card {
    min-height: auto;
    max-width: none;
  }
  .qr-card {
    display: flex;
    aspect-ratio: auto;
  }
  .qr-card img {
    justify-self: auto;
    max-width: 100%;
  }
  .side-note { position: static; }
  .footer { flex-direction: column; }
}

@media (max-width: 560px) {
  .nav { top: 10px; width: calc(100% - 18px); padding-left: 14px; }
  .brand span { display: none; }
  .wrap { width: min(calc(100% - 24px), var(--max)); }
  .hero { padding-top: 98px; }
  .hero-title { font-size: clamp(58px, 20vw, 96px); }
  .page-title { font-size: clamp(52px, 18vw, 94px); }
  .project-light-theme .page-title { font-size: clamp(48px, 14vw, 72px); }
  .blue { text-shadow: 4px 4px 0 var(--yellow); }
  .copy, .profile, .case-card, .feature, .contact-card { padding: 20px; }
  .profile h2 { margin-top: 88px; }
  .section { padding: 70px 0; }
  .lovely-plants-top,
  .lovely-plants-bottom { grid-template-columns: 1fr; }
  .metric.one { width: 64%; }
  .metric.two { width: 54%; top: 115px; }
  .metric.three { left: 20px; width: calc(100% - 40px); }
}
