/* Business-first AI executive portfolio */
:root {
  --paper: #f7f8f3;
  --paper-deep: #eef0e8;
  --ink: #171914;
  --muted: #777a70;
  --line: #dfe2d7;
  --lime: #d4ff52;
  --orange: #ff8a3d;
  --purple: #7c3aed;
  --lilac: #e7ddff;
  --peach: #ffcfb9;
  --display: "Manrope", "Helvetica Neue", sans-serif;
  --mono: "DM Mono", monospace;
  --page-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

.site-shell {
  overflow: clip;
}

.heading-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.heading-link:hover {
  color: #62665b;
}

.section-wrap {
  width: min(var(--page-width), calc(100% - 80px));
  margin-inline: auto;
}

.site-header {
  height: 82px;
  width: min(var(--page-width), calc(100% - 80px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wordmark-mark {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
}

.wordmark-mark span {
  color: var(--purple);
}

.wordmark-name {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 12px;
  font-weight: 700;
}

.main-nav > a:not(.nav-cta) {
  color: #56594f;
}

.main-nav > a:hover {
  color: var(--purple);
}

.nav-cta {
  padding: 12px 16px;
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 3px;
}

.nav-cta span {
  margin-left: 10px;
}

.menu-toggle {
  display: none;
}

.eyebrow,
.section-number,
.mono,
.work-category,
.timeline-date,
.timeline-role,
.timeline-tags,
.card-foot,
.disclaimer,
.meta-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.065em;
}

.section-number {
  display: block;
  color: #7e8276;
  margin-bottom: 20px;
}

.hero {
  padding-top: 26px;
}

.hero-topline,
.hero-bottomline {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #8db11e;
  display: inline-block;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #e8f4c7;
}

.hero-index {
  color: #888b81;
  font-size: 9px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 30px;
  align-items: center;
  padding: 44px 0 42px;
}

.hero-kicker {
  color: #696d61;
  margin: 0 0 22px;
}

.hero h1 {
  font-size: clamp(54px, 6.25vw, 88px);
  letter-spacing: -0.06em;
  line-height: 0.99;
  font-weight: 700;
  margin: 0;
}

.highlight-word {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.highlight-swoosh {
  position: absolute;
  z-index: -1;
  height: 27%;
  left: -1%;
  right: -3%;
  bottom: 5%;
  background: var(--lime);
  transform: rotate(-1.8deg);
}

.period {
  color: var(--purple);
}

.hero-intro {
  max-width: 490px;
  color: #5d6056;
  line-height: 1.8;
  font-size: 15px;
  margin: 26px 0 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 27px;
  padding: 15px 18px;
  border: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
  border-radius: 3px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 var(--orange);
}

.button-dark {
  background: var(--ink);
  color: white;
}

.button-light {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.text-link {
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid #a8ab9f;
  padding: 0 0 5px;
}

.text-link span {
  padding-left: 10px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 19px;
  max-width: 445px;
}

.proof-number {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.proof-number span {
  color: var(--orange);
  font-size: 22px;
}

.hero-proof strong {
  display: block;
  font-size: 11px;
  margin-bottom: 5px;
}

.hero-proof p {
  margin: 0;
  color: #7a7d73;
  font-size: 10px;
  line-height: 1.55;
  max-width: 280px;
}

.portrait-stage {
  min-height: 490px;
  position: relative;
  overflow: hidden;
  background: #eee8ff;
  border: 1px solid #d9cdf9;
  border-radius: 3px;
  isolation: isolate;
}

.portrait-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#d7ccf3 1px, transparent 1px),
    linear-gradient(90deg, #d7ccf3 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.65;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.portrait-ring {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%) rotate(-20deg);
  width: 340px;
  height: 420px;
  border: 1px solid #b6a4ed;
  border-radius: 50%;
}

.portrait-ring.ring-two {
  width: 400px;
  height: 270px;
  transform: translate(-50%, -50%) rotate(35deg);
  border-color: var(--purple);
}

.portrait-frame {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  width: 235px;
  height: 300px;
  border-radius: 48% 48% 4px 4px;
  overflow: hidden;
  background: #d4ff52;
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 rgba(124, 58, 237, 0.16);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(0.9);
}

.portrait-frame:after {
  content: "";
  position: absolute;
  inset: 0;
  border: 8px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.portrait-sticker {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(23, 25, 20, 0.12);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.portrait-sticker b {
  font-family: var(--display);
  font-size: 16px;
}

.sticker-top {
  top: 54px;
  left: 20px;
  transform: rotate(-5deg);
}

.sticker-side {
  right: 17px;
  top: 190px;
  transform: rotate(4deg);
  background: var(--lime);
}

.sticker-bottom {
  left: 38px;
  bottom: 52px;
  transform: rotate(3deg);
  background: var(--orange);
}

.portrait-spark {
  position: absolute;
  color: var(--purple);
  font-size: 28px;
}

.spark-one {
  right: 58px;
  top: 70px;
}

.spark-two {
  left: 32px;
  top: 235px;
  color: var(--orange);
  font-size: 22px;
}

.portrait-caption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: #65568e;
  font-size: 8px;
}

.hero-bottomline {
  border-top: 1px solid var(--line);
  padding: 16px 0 20px;
  color: #7b7e74;
  font-size: 9px;
}

.scroll-cue span {
  padding-left: 8px;
  color: var(--ink);
}

.ticker {
  overflow: hidden;
  background: var(--ink);
  border-block: 1px solid var(--ink);
  padding: 13px 0;
}

.ticker span{
  color: var(--paper);
}

.ticker-track {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
  white-space: nowrap;
  width: max-content;
  min-width: 100%;
  animation: ticker 36s linear infinite;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.ticker-track b {
  font-size: 16px;
  font-weight: 500;
  color: var(--lime);
}

@keyframes ticker {
  to {
    transform: translateX(-25%);
  }
}

.section-pad {
  padding-top: 105px;
  padding-bottom: 110px;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr 0.58fr;
  align-items: end;
  gap: 70px;
  margin-bottom: 45px;
}

.section-heading h2,
.impact-inner h2 {
  font-size: clamp(40px, 5vw, 63px);
  line-height: 1.06;
  letter-spacing: -0.075em;
  margin: 0;
  font-weight: 700;
}

.muted {
  color: #9b9e93;
}

.section-lede {
  color: #64675d;
  line-height: 1.8;
  font-size: 14px;
  max-width: 400px;
  margin: 0 0 4px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.approach-card {
  padding: 25px 26px 23px;
  min-height: 295px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-right: 1px solid var(--line);
  transition: background 0.25s, transform 0.25s;
}

.approach-card:last-child {
  border-right: 0;
}

.approach-card:hover {
  background: white;
  transform: translateY(-4px);
}

.approach-featured {
  background: var(--lime);
  border-color: var(--ink);
}

.approach-num {
  font-family: var(--mono);
  font-size: 10px;
  color: #74776d;
}

.approach-icon {
  font-size: 27px;
  margin: 28px 0 18px;
  color: var(--purple);
}

.approach-card h3 {
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -0.055em;
  margin-bottom: 14px;
}

.approach-card p {
  font-size: 14px;
  color: #64675d;
  line-height: 1.8;
  margin-bottom: 25px;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(23, 25, 20, 0.18);
  padding-top: 14px;
  font-size: 9px;
}

.card-foot span {
  font-size: 15px;
}

.impact-band {
  background: var(--ink);
  color: var(--paper);
}

.impact-inner {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  align-items: center;
  gap: 100px;
  padding-top: 74px;
  padding-bottom: 77px;
}

.impact-inner .section-number {
  color: #a9ad9f;
}

.impact-inner h2 {
  font-size: clamp(40px, 4.5vw, 58px);
}

.impact-inner h2 span {
  color: var(--lime);
}

.impact-statement {
  border-left: 1px solid #44473e;
  padding-left: 32px;
}

.impact-asterisk {
  font-size: 30px;
  color: var(--orange);
}

.impact-statement p {
  font-size: 15px;
  line-height: 1.8;
  color: #d1d3ca;
  margin: 13px 0 24px;
}

.impact-statement .text-link {
  display: inline-block;
  border-color: #777a70;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px 26px;
}

.work-card {
  min-width: 0;
  display: block;
  border: 1px solid transparent;
  padding: 0 0 15px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
  cursor: pointer;
}

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--ink);
  background: #fff;
  padding: 0 0 15px;
  outline: none;
  box-shadow: 6px 6px 0 var(--lime);
}

.work-visual {
  height: 280px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.work-visual-lime {
  background: #e9f3c9;
}

.work-visual-dark {
  background: #242820;
  color: var(--paper);
}

.work-visual-lilac {
  background: var(--lilac);
}

.work-visual-peach {
  background: var(--peach);
}

.visual-label {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 8px;
  z-index: 2;
}

.chart-bars {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 42px;
  height: 125px;
  display: flex;
  align-items: end;
  gap: 12px;
}

.chart-bars i {
  flex: 1;
  height: var(--h);
  background: #b6d83c;
  border: 1px solid #293016;
  border-bottom: 0;
}

.chart-bars i:nth-child(2n) {
  background: var(--lime);
}

.chart-callout {
  position: absolute;
  top: 64px;
  right: 18px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 12px;
  min-width: 142px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

.chart-callout .mono {
  font-size: 7px;
}

.chart-callout strong {
  font-size: 35px;
  letter-spacing: -0.08em;
  margin: 6px 0;
}

.chart-callout small {
  font-family: var(--mono);
  font-size: 7px;
}

.chart-axis {
  position: absolute;
  bottom: 17px;
  left: 12%;
  right: 12%;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 8px;
}

.agent-nodes {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-30%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.agent-node {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid var(--lime);
  display: grid;
  place-items: center;
  color: var(--lime);
  font-weight: 800;
  font-size: 19px;
  background: #2d3325;
  box-shadow: 0 0 0 7px #343a2b;
}

.agent-node.node-small {
  width: 46px;
  height: 46px;
  font-size: 10px;
}

.agent-nodes i {
  width: 20px;
  height: 1px;
  background: var(--lime);
  position: relative;
}

.agent-nodes i:after {
  content: "›";
  position: absolute;
  right: -2px;
  top: -10px;
  color: var(--lime);
  font-size: 18px;
}

.visual-bottom-note {
  position: absolute;
  left: 18px;
  bottom: 18px;
  font-size: 8px;
  color: #c4c9b9;
}

.analytics-ui {
  position: absolute;
  width: 72%;
  left: 14%;
  top: 58px;
  background: #f9f8ff;
  border: 1px solid #28252f;
  box-shadow: 7px 7px 0 rgba(40, 37, 47, 0.12);
  padding: 13px;
}

.ui-top {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #e1deee;
  padding-bottom: 10px;
}

.ui-top > span {
  width: 5px;
  height: 5px;
  background: #c3badf;
  border-radius: 50%;
}

.ui-top b {
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 400;
  margin-left: 8px;
}

.ui-question {
  font-size: 12px;
  font-weight: 700;
  padding: 17px 0 13px;
  letter-spacing: -0.03em;
}

.ui-answer {
  display: flex;
  gap: 9px;
  align-items: center;
  background: #e7e0ff;
  padding: 10px;
}

.ui-answer > span {
  font-size: 20px;
  color: var(--purple);
}

.ui-answer b,
.ui-answer small {
  display: block;
  font-size: 8px;
}

.ui-answer small {
  margin-top: 4px;
  color: #6f6887;
}

.ui-lines {
  padding-top: 12px;
  display: flex;
  gap: 7px;
}

.ui-lines i {
  height: 4px;
  background: #d7d1e8;
  flex: 1;
}

.prompt-ui {
  position: absolute;
  top: 60px;
  left: 13%;
  width: 74%;
  padding: 15px;
  background: #fff9f5;
  border: 1px solid #312820;
  box-shadow: 7px 7px 0 rgba(49, 40, 32, 0.12);
}

.prompt-ui .mono {
  font-size: 7px;
}

.prompt-ui p {
  font-size: 12px;
  line-height: 1.6;
  margin: 17px 0 20px;
  min-height: 56px;
}

.prompt-cursor {
  height: 1px;
  background: #e2d2c8;
  position: relative;
}

.prompt-cursor:after {
  content: "";
  position: absolute;
  right: 0;
  top: -5px;
  width: 2px;
  height: 11px;
  background: #3e3229;
}

.prompt-output {
  margin-top: 13px;
  background: #e9f3c9;
  padding: 10px;
  font-size: 9px;
  font-weight: 700;
}

.prompt-output span {
  margin-right: 7px;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 19px 15px 12px;
}

.work-category {
  color: #74776d;
  font-size: 8px;
}

.work-meta .mono {
  font-size: 8px;
  color: #9b9e93;
}

.work-card h3 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.055em;
  margin: 0 15px 12px;
  max-width: 460px;
}

.work-card > p {
  font-size: 12px;
  line-height: 1.8;
  color: #66695f;
  max-width: 500px;
  margin: 0 15px 20px;
}

.work-result {
  border-top: 1px solid var(--line);
  padding: 13px 15px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.work-result span {
  font-family: var(--mono);
  font-size: 8px;
  color: #85887d;
  letter-spacing: 0.08em;
}

.work-result strong {
  font-size: 11px;
  line-height: 1.5;
}

.work-arrow {
  float: right;
  color: var(--purple);
  font-size: 20px;
  margin-right: 16px;
}

.disclaimer {
  color: #8a8d82;
  margin: 35px 0 0;
  font-size: 8px;
  line-height: 1.7;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px 18px 1fr;
  gap: 22px;
  padding: 27px 20px 30px;
  margin-inline: -20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
}

.timeline-item:hover,
.timeline-item:focus-visible {
  background: #fff;
  transform: scale(1.015);
  box-shadow: 0 8px 24px rgba(25, 28, 20, 0.07);
  z-index: 2;
  outline: none;
}

.timeline-date {
  color: #878a7f;
  padding-top: 5px;
  font-size: 8px;
}

.timeline-marker {
  width: 9px;
  height: 9px;
  border: 1px solid #a8ac9f;
  border-radius: 50%;
  margin-top: 5px;
  position: relative;
}

.timeline-marker:after {
  content: "";
  position: absolute;
  width: 1px;
  top: 13px;
  bottom: -42px;
  left: 3px;
  background: var(--line);
}

.timeline-item:last-child .timeline-marker:after {
  display: none;
}

.timeline-current .timeline-marker {
  background: var(--lime);
  border-color: var(--ink);
  box-shadow: 0 0 0 4px #eaf5ca;
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 25px;
}

.timeline-top h3 {
  font-size: 19px;
  letter-spacing: -0.045em;
  margin: 0;
}

.timeline-role {
  color: #777b70;
  text-align: right;
  font-size: 12px;
}

.timeline-content p {
  color: #686b61;
  font-size: 12px;
  line-height: 1.8;
  max-width: 700px;
  margin: 10px 0 12px;
}

.timeline-tags {
  font-size: 8px;
  color: #85897e;
}

.timeline-tags i {
  color: var(--orange);
  font-style: normal;
  padding: 0 4px;
}

.timeline-hint {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--purple);
  margin-top: 12px;
  display: block;
}

/* Company label on selected-work cards */

.work-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 12px;
}

.work-company {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.07);
  color: #6d28d9;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.4;
}

.work-category {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.07em;
  line-height: 1.6;
  margin-left: 15px;
}

.education-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--paper-deep);
  padding: 33px;
  margin-top: 48px;
}

.education-strip .section-number {
  margin-bottom: 15px;
}

.education-strip h3 {
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.06em;
  margin: 0;
}

.education-details p {
  margin-bottom: 15px;
}

.education-details strong,
.education-details span {
  display: block;
}

.education-details strong {
  font-size: 14px;
}

.education-details span {
  color: #777b70;
  font-size: 10px;
  margin-top: 4px;
}

.education-details .education-note {
  border-top: 1px solid #d5d9cc;
  padding-top: 12px;
  color: #777b70;
  font-size: 10px;
  line-height: 1.6;
}

.contact-section {
  background: var(--ink);
  color: var(--paper);
  padding-top: 72px;
}

.contact-section .section-number {
  color: #a9ad9f;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  gap: 90px;
  padding: 12px 0 90px;
}

.contact-grid h2 {
  font-size: clamp(54px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 0;
}

.contact-grid h2 span {
  color: var(--orange);
}

.contact-copy {
  padding-top: 9px;
}

.contact-copy > p:first-child {
  font-size: 14px;
  color: #c6c9be;
  line-height: 1.8;
  margin-bottom: 25px;
}

.contact-small {
  font-size: 9px;
  color: #878b80;
  margin: 13px 0 0;
}

.contact-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #41443b;
  padding: 23px 0;
  color: #b6baae;
}

.wordmark-footer .wordmark-name {
  color: var(--paper);
}

.contact-bottom .mono,
.back-top {
  font-size: 8px;
  letter-spacing: 0.08em;
}

.back-top {
  border-bottom: 1px solid #65685e;
  padding-bottom: 5px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  border-top: 1px solid var(--line);
  color: #777b70;
  font-size: 9px;
  background-color: var(--line);
}

.site-footer .wordmark-name {
  color: var(--ink);
}

/* SEO detail pages */
.breadcrumbs {
  font-family: var(--mono);
  font-size: 14px;
  color: #7d8175;
  margin: 28px 0 40px;
  letter-spacing: 0.04em;
}

.breadcrumbs a:hover {
  color: var(--purple);
}

.detail-hero {
  padding: 25px 0 65px;
  border-bottom: 1px solid var(--line);
}

.detail-hero h1 {
  font-size: clamp(48px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.08em;
  max-width: 950px;
  margin: 15px 0 25px;
}

.detail-hero h2 {
  font-size: 40px;
  color: var(--muted);
  line-height: 1.02;
  max-width: 950px;
  margin: 15px 0 25px;
}

.detail-hero .detail-lede {
  font-size: 18px;
  line-height: 1.8;
  color: #62665b;
  max-width: 760px;
}

.detail-tag {
  display: inline-block;
  background: var(--lilac);
  padding: 8px 11px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.detail-tag.orange {
  background: var(--peach);
}

.detail-tag.lime {
  background: var(--lime);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 70px;
  padding: 60px 0 100px;
}

.detail-body {
  max-width: 800px;
}

.detail-body h2 {
  font-size: 30px;
  letter-spacing: -0.06em;
  margin: 40px 0 14px;
}

.detail-body h2:first-child {
  margin-top: 0;
}

.detail-body p,
.detail-body li {
  font-size: 14px;
  line-height: 1.9;
  color: #5e6258;
}

.detail-body ul {
  padding-left: 20px;
}

.detail-body li {
  padding-left: 4px;
  margin-bottom: 7px;
}

.detail-aside {
  align-self: start;
  position: sticky;
  top: 25px;
  border: 1px solid var(--line);
  padding: 20px;
  background: #fff;
}

.detail-aside h3 {
  font-size: 12px;
  margin: 0 0 18px;
}

.aside-item {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.aside-item span {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  color: #898c82;
  margin-bottom: 5px;
}

.aside-item strong {
  font-size: 11px;
  line-height: 1.5;
}

.detail-note {
  font-size: 10px !important;
  color: #888b80 !important;
  border-left: 3px solid var(--orange);
  padding-left: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 25px 0;
}

.metric-card {
  background: var(--paper-deep);
  padding: 20px;
}

.metric-card strong {
  font-size: 30px;
  letter-spacing: -0.06em;
  display: block;
}

.metric-card span {
  font-family: var(--mono);
  font-size: 8px;
  color: #777b70;
}

.metric-card p {
  font-size: 11px;
  margin: 8px 0 0;
  line-height: 1.6;
}

.detail-footer-cta {
  background: var(--lime);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 45px;
}

.detail-footer-cta h3 {
  font-size: 22px;
  letter-spacing: -0.05em;
  margin: 0;
}

.role-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 25px 0;
}

.role-meta {
  padding: 17px;
  border: 1px solid var(--line);
}

.role-meta span {
  display: block;
  font-family: var(--mono);
  font-size: 8px;
  color: #898c82;
  margin-bottom: 8px;
}

.role-meta strong {
  font-size: 11px;
  line-height: 1.5;
}

.page-hero-band {
  background: var(--lilac);
  padding: 65px 0;
}

.page-hero-band h1 {
  font-size: clamp(48px, 7vw, 78px);
  letter-spacing: -0.08em;
  line-height: 1;
  margin: 15px 0;
}

.page-hero-band p {
  font-size: 16px;
  line-height: 1.8;
  max-width: 700px;
  color: #565063;
}

.page-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 55px 0 90px;
}

.page-list a {
  border: 1px solid var(--line);
  padding: 23px;
  background: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.page-list a:hover {
  transform: translateY(-4px);
  box-shadow: 5px 5px 0 var(--orange);
}

.page-list .mono {
  font-size: 8px;
  color: #898c82;
}

.page-list h2 {
  font-size: 22px;
  letter-spacing: -0.05em;
  margin: 12px 0;
}

.page-list p {
  font-size: 12px;
  line-height: 1.8;
  color: #66695f;
}

.page-list .link-arrow {
  color: var(--purple);
  font-size: 18px;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 900px) {
  .section-wrap,
  .site-header {
    width: min(100% - 48px, var(--page-width));
  }
  .hero-layout {
    grid-template-columns: 1fr 0.9fr;
    gap: 15px;
  }
  .hero h1 {
    font-size: clamp(52px, 7.5vw, 72px);
  }
  .portrait-stage {
    min-height: 430px;
  }
  .portrait-frame {
    width: 205px;
    height: 270px;
  }
  .section-heading {
    gap: 35px;
  }
  .impact-inner {
    gap: 50px;
  }
  .timeline-item {
    grid-template-columns: 90px 18px 1fr;
    gap: 15px;
  }
  .contact-grid {
    gap: 45px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 35px;
  }
}

@media (max-width: 680px) {
  .section-wrap,
  .site-header {
    width: calc(100% - 36px);
  }
  .site-header {
    height: 70px;
  }
  .menu-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: transparent;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    height: 1px;
    width: 17px;
    background: var(--ink);
    transition: transform 0.2s;
  }
  .menu-toggle[aria-expanded=true] span:first-child {
    transform: translateY(3px) rotate(45deg);
  }
  .menu-toggle[aria-expanded=true] span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 69px;
    left: -18px;
    right: -18px;
    padding: 20px 18px 25px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 12px 20px rgba(20, 24, 16, 0.05);
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    padding: 15px 4px;
  }
  .main-nav .nav-cta {
    margin-top: 8px;
    padding: 13px 15px;
  }
  .hero {
    padding-top: 19px;
  }
  .hero-topline {
    align-items: flex-start;
    gap: 15px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .hero-index {
    font-size: 7px;
    text-align: right;
  }
  .hero-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 40px 0 30px;
    gap: 35px;
  }
  .hero h1 {
    font-size: clamp(54px, 14vw, 78px);
  }
  .hero-intro {
    font-size: 14px;
    margin-top: 22px;
  }
  .hero-proof {
    margin-top: 28px;
  }
  .portrait-stage {
    min-height: 400px;
  }
  .portrait-frame {
    width: 205px;
    height: 270px;
  }
  .portrait-ring {
    width: 300px;
    height: 350px;
  }
  .portrait-ring.ring-two {
    width: 330px;
    height: 230px;
  }
  .sticker-top {
    left: 10px;
    top: 38px;
  }
  .sticker-side {
    right: 8px;
    top: 170px;
  }
  .sticker-bottom {
    left: 18px;
    bottom: 34px;
  }
  .hero-bottomline {
    font-size: 7px;
    gap: 12px;
  }
  .hero-bottomline > span:first-child {
    max-width: 55%;
    line-height: 1.6;
  }
  .scroll-cue {
    text-align: right;
  }
  .ticker-track {
    animation-duration: 27s;
    font-size: 9px;
  }
  .section-pad {
    padding-top: 72px;
    padding-bottom: 75px;
  }
  .section-heading {
    display: block;
    margin-bottom: 32px;
  }
  .section-heading h2,
  .impact-inner h2 {
    font-size: clamp(42px, 11vw, 58px);
  }
  .section-lede {
    margin-top: 22px;
    font-size: 13px;
  }
  .approach-grid {
    grid-template-columns: 1fr;
  }
  .approach-card {
    min-height: 0;
    padding: 22px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .approach-card:last-child {
    border-bottom: 0;
  }
  .approach-icon {
    margin: 20px 0 12px;
  }
  .approach-card h3 br {
    display: none;
  }
  .approach-card p {
    margin-bottom: 22px;
  }
  .impact-inner {
    display: block;
    padding-top: 58px;
    padding-bottom: 60px;
  }
  .impact-statement {
    margin-top: 32px;
    padding-left: 20px;
  }
  .impact-statement p {
    font-size: 13px;
  }
  .work-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .work-visual {
    height: 260px;
  }
  .work-card h3 {
    font-size: 24px;
  }
  .work-category {
    font-size: 7px;
  }
  .disclaimer {
    line-height: 1.8;
  }
  .background-section {
    padding-top: 65px;
  }
  .timeline-item {
    grid-template-columns: 1fr 14px;
    gap: 12px;
    padding: 22px 12px;
    margin-inline: -12px;
  }
  .timeline-date {
    grid-column: 1;
    grid-row: 1;
  }
  .timeline-marker {
    grid-column: 2;
    grid-row: 1/span 2;
  }
  .timeline-content {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .timeline-top {
    display: block;
  }
  .timeline-top h3 {
    margin-bottom: 7px;
  }
  .timeline-role {
    text-align: left;
    line-height: 1.7;
  }
  .timeline-tags {
    line-height: 1.8;
  }
  .timeline-marker:after {
    bottom: -190px;
  }
  .education-strip {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 23px;
    margin-top: 32px;
  }
  .contact-section {
    padding-top: 55px;
  }
  .contact-grid {
    display: block;
    padding: 12px 0 60px;
  }
  .contact-grid h2 {
    font-size: clamp(56px, 14vw, 78px);
  }
  .contact-copy {
    margin-top: 25px;
  }
  .contact-copy > p:first-child {
    font-size: 13px;
  }
  .contact-bottom {
    flex-wrap: wrap;
    gap: 18px;
  }
  .contact-bottom .mono {
    order: 3;
    flex-basis: 100%;
  }
  .contact-bottom .wordmark {
    order: 1;
  }
  .contact-bottom .back-top {
    order: 2;
  }
  .site-footer {
    padding: 22px 18px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .site-footer .mono {
    order: 3;
    flex-basis: 100%;
  }
  .detail-hero {
    padding-bottom: 45px;
  }
  .detail-hero h1 {
    font-size: clamp(43px, 12vw, 65px);
  }
  .detail-hero .detail-lede {
    font-size: 15px;
  }
  .detail-layout {
    display: flex;
    flex-direction: column;
    padding: 40px 0 70px;
    gap: 30px;
  }
  .detail-aside {
    position: static;
    width: 100%;
    order: -1;
  }
  .detail-body h2 {
    font-size: 25px;
  }
  .detail-body p,
  .detail-body li {
    font-size: 13px;
  }
  .metric-grid,
  .role-meta-grid,
  .page-list {
    grid-template-columns: 1fr;
  }
  .detail-footer-cta {
    display: block;
  }
  .detail-footer-cta .button {
    margin-top: 20px;
  }
  .page-hero-band {
    padding: 48px 0;
  }
  .page-list {
    padding: 35px 0 60px;
  }
  .site-footer {
    padding-inline: 18px;
  }
}

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

/* =========================================
   RESEARCH & PUBLICATIONS
========================================= */

.research-section {
  position: relative;
  overflow: hidden;
}

.research-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  margin-top: 12px;
  border-top: 1px solid var(--border, #dedfd8);
  border-bottom: 1px solid var(--border, #dedfd8);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.research-count {
  color: #77786f;
  white-space: nowrap;
}

.research-count span {
  color: #f08a24;
  margin-left: 8px;
  font-size: 15px;
}

.publication-list {
  display: flex;
  flex-direction: column;
}

.publication-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 24px;
  padding: 27px 12px;
  border-bottom: 1px solid var(--border, #dedfd8);
  transition:
    background 180ms ease,
    padding 180ms ease;
}

.publication-item:hover {
  padding-left: 20px;
  padding-right: 20px;
  background: rgba(124, 58, 237, 0.045);
}

.publication-year {
  align-self: start;
  padding-top: 5px;
  color: #77786f;
  font-family: "DM Mono", monospace;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.publication-content {
  min-width: 0;
}

.publication-venue {
  display: inline-block;
  margin-bottom: 9px;
  padding: 5px 8px;
  border-radius: 4px;
  background: #fff0d8;
  color: #8a4b0a;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.publication-item:nth-child(3n + 2) .publication-venue {
  background: #eee5ff;
  color: #6d28d9;
}

.publication-item h3 {
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.publication-index {
  justify-self: end;
  color: #a1a197;
  font-size: 11px;
}

.research-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: 8px;
  background: #f0f0e9;
}

.research-mark {
  flex-shrink: 0;
  color: #7c3aed;
  font-size: 28px;
}

.research-footer p {
  margin: 0;
  color: #55564e;
  font-size: 13px;
  line-height: 1.7;
}

/* Mobile layout */
@media (max-width: 600px) {
  .publication-item {
    grid-template-columns: 52px minmax(0, 1fr) 22px;
    gap: 12px;
    padding: 22px 4px;
  }

  .publication-item:hover {
    padding-left: 8px;
    padding-right: 8px;
  }

  .publication-year {
    font-size: 11px;
  }

  .publication-item h3 {
    font-size: 16px;
  }

  .publication-venue {
    font-size: 9px;
  }

  .publication-index {
    font-size: 10px;
  }

  .research-header {
    font-size: 10px;
  }

  .research-footer {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .publication-item {
    transition: none;
  }
}

/* =========================================================
   CONSTANT CONTACT — SELECTED PROJECTS & CONTRIBUTIONS
   Self-contained project theme grid
   ========================================================= */

.project-section {
  --project-violet: #7c3aed;
  --project-violet-dark: #6d28d9;
  --project-orange: #f59e0b;
  --project-ink: #25232d;
  --project-muted: #72717c;
  --project-border: #e8e6e1;
  --project-surface: #ffffff;

  width: 100%;
  margin: 64px 0 76px;
}

/* ---------- Section heading ---------- */

.project-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.project-section-heading > div {
  min-width: 0;
}

.project-section .section-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--project-violet);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.project-section-heading h2 {
  max-width: 650px;
  margin: 0;
  color: var(--project-ink);
  font-size: clamp(26px, 3.3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.16;
}

.project-section .heading-period {
  color: var(--project-orange);
}

.project-section-intro {
  max-width: 310px;
  margin: 0 0 3px;
  color: var(--project-muted);
  font-size: 13px;
  line-height: 1.8;
}

/* ---------- Grid layout ---------- */

.project-section .project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

/* ---------- Individual theme tile ---------- */

.project-section .project-tile {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  min-height: 340px;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;

  padding: 24px;
  border: 1px solid var(--project-border);
  border-radius: 16px;
  background: var(--project-surface);
  color: inherit;
  text-decoration: none;

  box-shadow: 0 1px 2px rgba(25, 20, 40, 0.02);

  transition:
    transform 300ms cubic-bezier(0.2, 0.75, 0.25, 1),
    border-color 250ms ease,
    box-shadow 300ms ease,
    background-color 250ms ease;
}

/* Subtle cursor-independent glow */
.project-section .project-tile::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 100% 0%,
      rgba(124, 58, 237, 0.085),
      transparent 56%
    );
  content: "";
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

/* Animated accent line along the bottom */
.project-section .project-tile::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--project-violet),
    var(--project-orange)
  );
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 350ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.project-section .project-tile:hover,
.project-section .project-tile:focus-visible {
  border-color: rgba(124, 58, 237, 0.38);
  box-shadow: 0 14px 34px rgba(39, 28, 65, 0.085);
  transform: translateY(-4px);
  outline: none;
}

.project-section .project-tile:hover::before,
.project-section .project-tile:focus-visible::before {
  opacity: 1;
}

.project-section .project-tile:hover::after,
.project-section .project-tile:focus-visible::after {
  transform: scaleX(1);
}

/* ---------- Tile top row ---------- */

.project-section .project-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-section .project-number {
  color: #777580;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.075em;
  line-height: 1.7;
}

/* Circular arrow */

.project-section .project-arrow {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;

  border: 1px solid var(--project-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: #686672;

  font-size: 15px;
  line-height: 1;

  transition:
    color 250ms ease,
    background-color 250ms ease,
    border-color 250ms ease,
    transform 300ms ease;
}

.project-section .project-tile:hover .project-arrow,
.project-section .project-tile:focus-visible .project-arrow {
  border-color: var(--project-violet);
  background: var(--project-violet);
  color: #ffffff;
  transform: rotate(45deg);
}

/* ---------- Main tile content ---------- */

.project-section .project-tile-content {
  padding: 25px 0 19px;
}

.project-section .project-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;

  border: 1px solid rgba(124, 58, 237, 0.17);
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.07);
  color: var(--project-violet);

  font-size: 21px;
  line-height: 1;

  transition:
    transform 300ms ease,
    border-color 250ms ease,
    background-color 250ms ease;
}

.project-section .project-tile:hover .project-icon,
.project-section .project-tile:focus-visible .project-icon {
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.12);
  transform: rotate(-5deg) scale(1.05);
}

.project-section .project-tile h3 {
  margin: 0 0 10px;
  color: var(--project-ink);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.35;
}

.project-section .project-tile-content p {
  max-width: 430px;
  margin: 0;
  color: var(--project-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.85;
}

/* ---------- Nested project labels ---------- */

.project-section .project-subprojects {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 22px;
}

.project-section .project-subprojects span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 9px;

  border: 1px solid #e9e6ef;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: #696672;

  font-size: 10px;
  line-height: 1.45;

  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}

.project-section .project-tile:hover .project-subprojects span,
.project-section .project-tile:focus-visible .project-subprojects span {
  border-color: rgba(124, 58, 237, 0.2);
  background: #faf8ff;
  color: var(--project-violet-dark);
}

.project-section .project-tile:hover .project-subprojects span:nth-child(2) {
  transform: translateY(-1px);
}

.project-section .project-tile:hover .project-subprojects span:nth-child(3) {
  transform: translateY(-2px);
}

/* ---------- Bottom row ---------- */

.project-section .project-tile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #efeee9;
}

.project-section .project-chip,
.project-section .project-outcome {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 25px;
  padding: 5px 8px;

  border-radius: 5px;
  background: #f5f4f1;
  color: #686672;

  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.5;
}

.project-section .project-outcome {
  border: 1px solid #e2efcf;
  background: #f3f9eb;
  color: #416b21;
}

.project-section .project-tile-link {
  display: inline-block;
  color: var(--project-violet-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;

  transition: transform 220ms ease;
}

.project-section .project-tile:hover .project-tile-link,
.project-section .project-tile:focus-visible .project-tile-link {
  transform: translateX(3px);
}

/* ---------- Featured theme: Marketing analytics ---------- */

.project-section .project-theme-featured {
  border-color: rgba(124, 58, 237, 0.25);
  background:
    radial-gradient(
      ellipse at 100% 0%,
      rgba(245, 158, 11, 0.12),
      transparent 48%
    ),
    linear-gradient(145deg, #faf8ff 0%, #ffffff 75%);
}

.project-section .project-theme-featured::before {
  background:
    radial-gradient(
      ellipse at 95% 5%,
      rgba(245, 158, 11, 0.12),
      transparent 52%
    ),
    radial-gradient(
      ellipse at 0% 100%,
      rgba(124, 58, 237, 0.055),
      transparent 48%
    );
}

.project-section .project-theme-featured .project-icon {
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.12);
  color: #a16207;
}

.project-section .project-theme-featured .project-tile-bottom {
  border-top-color: rgba(124, 58, 237, 0.15);
}

/* ---------- Responsive layouts ---------- */

@media (min-width: 1050px) {
  .project-section .project-theme-featured {
    grid-column: span 2;
    min-height: 300px;
  }

  .project-section .project-theme-featured .project-tile-content {
    max-width: 720px;
  }

  .project-section .project-theme-featured .project-subprojects {
    max-width: 800px;
  }
}

@media (max-width: 900px) {
  .project-section {
    margin: 52px 0 60px;
  }

  .project-section-heading {
    gap: 22px;
  }

  .project-section-intro {
    max-width: 270px;
  }

  .project-section .project-tile {
    padding: 21px;
  }

  .project-section .project-tile-bottom {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .project-section {
    margin: 44px 0 54px;
  }

  .project-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 22px;
  }

  .project-section-heading h2 {
    font-size: clamp(26px, 7vw, 34px);
  }

  .project-section-intro {
    max-width: 480px;
    font-size: 12px;
  }

  .project-section .project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .project-section .project-theme-featured {
    grid-column: auto;
  }

  .project-section .project-tile {
    min-height: 0;
    padding: 21px;
    border-radius: 14px;
  }

  .project-section .project-tile-content {
    padding: 23px 0 18px;
  }

  .project-section .project-tile h3 {
    font-size: 20px;
  }

  .project-section .project-tile-content p {
    font-size: 12px;
  }

  .project-section .project-subprojects {
    margin-bottom: 19px;
  }
}

@media (max-width: 380px) {
  .project-section .project-tile {
    padding: 17px;
  }

  .project-section .project-number {
    font-size: 8px;
  }

  .project-section .project-tile-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ---------- Keyboard accessibility ---------- */

.project-section .project-tile:focus-visible {
  outline: 3px solid rgba(124, 58, 237, 0.35);
  outline-offset: 3px;
}

/* ---------- Reduced motion accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  .project-section .project-tile,
  .project-section .project-tile::before,
  .project-section .project-tile::after,
  .project-section .project-icon,
  .project-section .project-arrow,
  .project-section .project-subprojects span,
  .project-section .project-tile-link {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ==========================================
   Detail Project Grid & Tiles
   ========================================== */

.detail-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.detail-project-tile {
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-project-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

.detail-project-tile--featured {
  background: var(--featured-bg, #f8fafc);
  border-color: var(--featured-border, #cbd5e1);
}

.detail-project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--text-muted, #64748b);
}

.detail-project-arrow {
  font-size: 1rem;
  color: var(--text-muted, #64748b);
}

.detail-project-content .detail-project-icon {
  display: inline-block;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.detail-project-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  color: var(--heading-color, #0f172a);
}

.detail-project-content p {
  font-size: 0.925rem;
  line-height: 1.5;
  color: var(--text-color, #334155);
  margin-bottom: 1.25rem;
}

.detail-project-subprojects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.detail-project-subprojects span {
  background: var(--tag-bg, #f1f5f9);
  color: var(--tag-color, #475569);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-family: 'DM Mono', monospace;
}

.detail-project-bottom {
  display: flex;
  justify-content: right;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light, #f1f5f9);
  font-size: 0.8rem;
}

.detail-project-chip {
  font-weight: 600;
  color: var(--primary-color, #2563eb);
}

.detail-project-link-text {
  color: var(--text-muted, #64748b);
  font-family: 'DM Mono', monospace;
}