/* =============================================================
   pages/home.css — Hero section & About/Who Am I section
   ============================================================= */

/* ── Hero section ────────────────────────────────────────────
   Full-height intro with pixel grid background.
   ─────────────────────────────────────────────────────────── */
.hero {
  position:        relative;
  width:           100%;
  /* Fit hero (body + footer) inside the initial viewport on desktop.
     Topbar sits above .main, so subtract its height. */
  min-height:      calc(100vh - var(--topbar-h));
  display:         flex;
  flex-direction:  column;
  justify-content: flex-start;
  overflow:        hidden;
  /* Figma background gradient — sits behind the pixel grid */
  background:      linear-gradient(180deg, #0A014C 0%, #080C1D 23.56%, #080C1D 73.56%, #0A014C 100%);
}

/* Pixel-grid background lives in components/pixel-grid.css */

/* ── Pass pointer events through hero text layers → pixel grid receives hover ── */
.hero__body,
.hero__body *,
.hero__footer,
.hero__footer * { pointer-events: none; }
.hero__btn       { pointer-events: auto; }  /* keep button clickable */

/* Hero text block */
.hero__body {
  position:   relative;
  z-index:    2;
  display:    flex;
  align-items: center;
  flex:       1;
  padding:    0 96px 0 235px;
  min-height: 0;
}

.hero__left {
  display:        flex;
  flex-direction: column;
  gap:            24px;
  width:          408px;
  position:       relative;
  z-index:        3;
}

.hero__headings {
  display:        flex;
  flex-direction: column;
  gap:            8px;
}

.hero__hi,
.hero__name {
  font-family:    var(--font-headings);
  font-size:      var(--fs-40);
  font-weight:    var(--fw-display);
  letter-spacing: var(--ls-display);
  line-height:    48px;
  color:          var(--white);
}

.hero__tagline {
  font-family:    var(--font-text);
  font-size:      var(--fs-16);
  font-weight:    var(--fw-body);
  letter-spacing: var(--ls-body);
  line-height:    24px;
  color:          #FAFAFA;
}

.hero__btn {
  display:     inline-flex;
  align-items: center;
  justify-content: center;
  height:      48px;
  padding:     0 12px;
  width:       fit-content;
  border:      1px solid white;
  border-radius: 8px;
  background:  rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-family:    var(--font-text);
  font-size:      16px;
  font-weight:    var(--fw-body);
  letter-spacing: var(--ls-body);
  color:          var(--white);
  transition:     ease-in-out 0.4s;
}
.hero__btn:hover { background: rgba(255, 255, 255, 0.12); }


.hero__footer {
  position:       relative;
  z-index:        2;
  align-items:    center;
  gap:            10px;
  padding:        20px 96px 32px 235px;
  font-family:    var(--font-mono);
  font-size:      20px;
  /* mono tokens: 20px -> <=20px */
  font-weight:    var(--mono-fw-lte20);
  letter-spacing: var(--mono-ls-lte20);
  line-height:    32px;
  color:          var(--white);
}

.hero__footer-sep {
  font-family:    var(--font-text);
  font-size:      24px;
  font-weight:    var(--fw-display);
  letter-spacing: var(--ls-display);
}

/* ── About / Who Am I section ────────────────────────────────
   Two-column: bio + bullet list | AI widget
   ─────────────────────────────────────────────────────────── */
.about {
  display: flex;
  flex-direction: column;
  position:        relative;
  background:      var(--bg-hero);
  padding: 120px 0 120px 0;
  height: fit-content;
  overflow: hidden;
}

.logos {
  position:    relative;
  display:     flex;
  align-items: center;
  justify-content: center;
  gap:         98px;
  padding:     9px 192px 92px;
  overflow:    hidden;
}
.about__grid {
  position:       relative;
  display:        flex;
  flex-direction: column;
  gap:            160px;
  align-items:    flex-start;
  max-width:      1200px;
  width:          calc(100% - 235px - 96px);
  margin:         0 0 0 235px;
  padding:        0 0 96px;
}


.about__ellipse {
  position:       absolute;
  width:          100%;
  height:         100%;
  bottom:         0;
  left:           0;
  top: 0px;
  right:0px;
  background:     radial-gradient(ellipse 50% 50% at 50% 50%, rgba(143,0,216,0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index:        0;
}

/* ── Two-column Who Am I block ─────────────────────────────── */
.about__top-block {
  display:        flex;
  flex-direction: column;
  gap:            48px;
  width:          100%;
  position:       relative;
  z-index:        1;
}

.about__content-row {
  display:     flex;
  align-items: flex-start;
  width:       100%;
  gap: 120px;
}

.about__bio-col {
  flex:           1;
  min-width:      0;
  display:        flex;
  flex-direction: column;
  gap:            10px;
}

/* Projects title wrapper (scale-to-white animation target) */
.about__who {
  width:    100%;
  position: relative;
  z-index:  1;
  height:   fit-content;
}

.about__title {
  font-family:    var(--font-headings);
  font-size:      var(--fs-48);
  font-weight:    var(--fw-display);
  letter-spacing: var(--ls-display);
  line-height:    56px;
  color:          var(--white);
  width:          100%;
}

.about__bio {
  font-family:    var(--font-text);
  font-size:      var(--fs-16);
  font-weight:    var(--fw-body);
  letter-spacing: var(--ls-body);
  line-height:    24px;
  color:          var(--text-body);
  text-align:     justify;
}

.bullet-list {
  list-style:     none;
  display:        flex;
  flex-direction: column;
  gap:            8px;
}

.bullet-list__item {
  display:     flex;
  align-items: flex-start;
  gap:         10px;
  font-family: var(--font-mono);
  font-size:   var(--fs-16);
  font-weight: var(--mono-fw-lte20);
  line-height: 24px;
  color:       var(--purple-900);
}

.bullet-list__dot {
  display:    block;
  width:      12px;
  height:     12px;
  flex-shrink: 0;
  margin-top: 6px;
  background: var(--purple-900);
}

/* =============================================================
   AI Widget (inline, on home page — Figma redesign)
   ============================================================= */
.ai-widget {
  position:        relative;
  z-index:         1;
  display:         flex;
  flex-direction:  column;
  gap:             12px;
  width:           312px;
  flex-shrink:     0;
}

.ai-widget__bar {
  display:       flex;
  align-items:   center;
  background:    #878dea;
  border:        1px solid #36004d;
  border-radius: 8px;
  overflow:      hidden;
  gap:           0;
}

.ai-widget__input {
  flex:        1;
  min-height:  48px;
  max-height:  120px;
  padding:     12px 12px 12px 24px;
  background:  transparent;
  border:      none;
  font-family: var(--font-text);
  font-size:   var(--fs-16);
  color:       #3c4078;
  outline:     none;
  resize:      none;
  overflow-y:  auto;
  line-height: 24px;
}
.ai-widget__input::placeholder { color: rgba(60,64,120,0.75); }

.ai-widget__send {
  width:           48px;
  align-self:      stretch;
  background:      #4c006d;
  border:          2px solid #878dea;
  border-radius:   8px;
  display:         flex;
  align-items:     center;
  justify-content: center;
  cursor:          pointer;
  flex-shrink:     0;
  transition:      opacity 0.2s;
}
.ai-widget__send:hover { opacity: 0.85; }

.ai-widget__response {
  background:    rgba(255,255,255,0.04);
  border:        1px solid var(--purple-card-border);
  border-radius: 8px;
  padding:       12px 16px;
}

.ai-widget__response-text {
  font-family: var(--font-text);
  font-size:   var(--fs-16);
  line-height: 24px;
  color:       var(--white);
}

/* FAQ suggestion chips — full-width column layout */
.chips {
  display:        flex;
  flex-direction: column;
  gap:            12px;
}

.chip {
  width:       100%;
  min-height:  48px;
  /* 24px horizontal padding matches the .ai-widget__bar's left
     inset so the placeholder of "Ask to my AI" and every chip
     start at the same X position. */
  padding:     8px 24px;
  background:  #1B1834;
  border:      1px solid rgba(170,172,241,0.11);
  border-radius: 8px;
  font-family: var(--font-text);
  font-size:   14px;
  font-weight: 400;
  line-height: 20px;
  color:       #e8c6fd;
  text-align:  left;
  /* Override the global `.chip { justify-content: center }` from
     styles.css so single-line chips don't get visually centered
     inside the flex box. */
  justify-content: flex-start;
  cursor:      pointer;
  transition:  background 0.2s;
}
.chip:hover { background: rgba(170,172,241,0.14); }


/* =============================================================
   Housing Help — project card (#f3f3f3 background)
   Desktop (>940px): text left (460px) | mockup right, bottom-anchored
   Tablet  (≤940px): stacked — text then image
   Phone   (≤640px): same, tighter padding
   ============================================================= */

.project-section {
  position:   relative;
  background: #f3f3f3;
  overflow:   hidden;
  display:    flex;
  padding:    80px 70px 0 235px;
  min-height: 720px;
}

.project-section__overlay { display: none; }

/* ── Decorative glow ellipses ─────────────────────────────── */
.project-section__glow {
  position:       absolute;
  pointer-events: none;
  z-index:        1;
  border-radius:  50%;
}
.project-section--1 .project-section__glow--tl {
  width:      1054px;
  height:     749px;
  left:       -273px;
  top:        -247px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
                rgba(61, 114, 49, 0.12) 0%, transparent 70%);
}
.project-section--1 .project-section__glow--br {
  width:      882px;
  height:     602px;
  left:       662px;
  top:        483px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
                rgba(61, 114, 49, 0.10) 0%, transparent 70%);
}

/* ── Inner two-column layout ─────────────────────────────── */
.project-section__inner {
  position:    relative;
  z-index:     3;
  display:     flex;
  gap:         48px;
  align-items: stretch;
  width:       100%;
}

/* ── Left column: text + CTA ─────────────────────────────── */
.project-section__data {
  display:         flex;
  flex-direction:  column;
  gap:             24px;
  flex-shrink:     0;
  width:           460px;
  padding-bottom:  80px;
}

.project-section__text-block {
  display:        flex;
  flex-direction: column;
  gap:            24px;
}

.project-section__heading-row {
  display:     flex;
  gap:         24px;
  /* Icon aligns with the first line of the title (not centered across wrapped lines). */
  align-items: flex-start;
  /* Prevent the icon + title row from forcing horizontal overflow on phone. */
  min-width:   0;
  flex-wrap:   nowrap;
}

.project-section__icon {
  flex-shrink: 0;
  width:       66px;
  height:      80px;
}
.project-section__icon img {
  width:      100%;
  height:     100%;
  display:    block;
  object-fit: contain;
}

.project-section__headings {
  display:        flex;
  flex-direction: column;
  /* Use the title's natural width on desktop so multi-word titles stay on one line
     when they fit; the media query below reverts to flexible width on tablet/phone. */
  flex:           0 0 auto;
  min-width:      0;
}

.project-section__title {
  font-family:    var(--font-headings);
  font-size:      72px;
  font-weight:    600;
  letter-spacing: -2.16px;
  line-height:    72px;
  color:          #292929;
  /* Try to keep the title on one line; if the row doesn't fit, the media query
     below switches back to wrapping. */
  white-space:    nowrap;
  overflow-wrap:  anywhere;
  word-break:     break-word;
  hyphens:        auto;
  min-width:      0;
}

.project-section__meta {
  display:        flex;
  flex-direction: column;
  gap:            8px;
}

.project-section__desc {
  font-family: var(--font-text);
  font-size:   16px;
  font-weight: 500;
  line-height: 24px;
  color:       #666;
}

.project-section__categories {
  display:     flex;
  flex-wrap:   wrap;
  row-gap:     4px;
  column-gap:  10px;
  align-items: center;
  font-family: var(--font-text);
  font-size:   16px;
  font-weight: 500;
  line-height: 24px;
  color:       #468082;
}

.project-section__role {
  font-family: var(--font-text);
  font-size:   16px;
  font-weight: 700;
  line-height: 24px;
  color:       #666;
}

.project-section__btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  height:          44px;
  padding:         0 24px;
  width:           fit-content;
  background:      #292929;
  border:          1px solid #000;
  border-radius:   6px;
  font-family:     var(--font-text);
  font-size:       16px;
  font-weight:     600;
  line-height:     24px;
  color:           #ededed;
  text-decoration: none;
  cursor:          pointer;
  transition:      opacity 0.2s ease;
}
.project-section__btn:hover { opacity: 0.78; }

/* ── Right column: mockup image, bottom-anchored ──────────── */
.project-section__mockup {
  flex:            1;
  min-width:       0;
  display:         flex;
  align-items:     flex-end;
  justify-content: center;
}

.project-section__mockup-img {
  display:        block;
  max-height:     640px;
  width:          auto;
  max-width:      100%;
  pointer-events: none;
}

/* ── Tablet ≤940px: stack vertically ────────────────────── */
@media (max-width: 940px) {
  .hero__body   { padding-left: 40px; padding-right: 40px; }
  .hero__footer { padding-left: 40px; font-size: 16px; }
  .hero__left   { width: 100%; max-width: 400px; }
  .hero__photo-wrap { width: 500px; opacity: 0.4; }
  .about__grid  { margin-left: 40px; width: calc(100% - 40px - 40px); }
  .about__content-row { flex-direction: column; gap: 48px; }
  .ai-widget    { width: 100%; }

  .project-section {
    padding:    48px 40px 0;
    min-height: 0;
  }
  .project-section__inner {
    flex-direction: column;
    gap:            32px;
  }
  .project-section__data {
    width:          100%;
    padding-bottom: 0;
    gap:            32px;
  }
  .project-section__title {
    font-size:      40px;
    line-height:    48px;
    letter-spacing: 0;
    /* Re-enable wrapping when the layout stacks and the data column is full width. */
    white-space:    normal;
  }
  .project-section__headings {
    flex: 1 1 auto;
  }
  .project-section__icon        { width: 41px; height: 49px; }
  .project-section__heading-row { gap: 16px; }
  .project-section__mockup {
    width:           100%;
    justify-content: center;
  }
  .project-section__mockup-img {
    max-height: 480px;
    width:      auto;
    max-width:  100%;
  }
}

/* ── Phone ≤640px: tighter padding ──────────────────────── */
@media (max-width: 640px) {
  /* Pull hero up to cancel .main's padding-top so the gradient fills to the very top.
     Topbar is hidden on phone, so the hero spans the full viewport height. */
  .hero         { margin-top: -88px; min-height: 100vh; }
  .hero__body   { padding: 0 20px; padding-top: 104px; /* 88px nav area + 16px gap */ }
  .hero__footer { padding: 20px; font-size: 14px; }
  .hero__photo-wrap { display: none; }
  .logos { padding: 20px; gap: 24px; flex-wrap: wrap; }
  .about__grid  { width: 95%; margin: 0 auto; gap: 60px; }
  .about__title { font-size: 32px; line-height: 40px; }
  .about__top-block { gap: 32px; }
  .about__content-row { gap: 32px; }
  .ai-widget    { width: 100%; }

  /* No more pin/scale on phones — give the title room above the
     first project section and align it with the rest of the about
     content (95% wide, centered). */
  .about            { padding-bottom: 0; }
  .about__who {
    width:   95%;
    margin:  56px auto 32px;
    padding: 0;
  }

  .project-section {
    padding: 32px 24px 0;
  }
  .project-section__categories,
  .project-section__desc,
  .project-section__role {
    font-size: 14px;
  }
  .project-section__mockup-img {
    max-height: none;
    width:      100%;
    height:     auto;
  }
}


/* =============================================================
   North Polar — modifier on top of project-section
   ============================================================= */

.project-section--northpolar {
  background: #00030a;
}

.project-section--northpolar .project-section__icon      { width: 71px; height: 71px; }
.project-section--northpolar .project-section__title     { color: #ededed; }
.project-section--northpolar .project-section__categories{ color: #02e6ff; }
.project-section--northpolar .project-section__desc      { color: #eaeaea; }
.project-section--northpolar .project-section__role      { color: #fafafa; }

.project-section--northpolar .project-section__btn {
  background: linear-gradient(90deg, #cccbf6 0%, #ededed 23.5%, #ededed 58.6%, #cccbf6 100%);
  border:     1px solid #2e2e2e;
  color:      #0e006e;
}
.project-section--northpolar .project-section__btn:hover { opacity: 0.85; }

.project-section--northpolar .project-section__glow--tl {
  width:      969px;
  height:     678px;
  left:       -273px;
  top:        -247px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
                rgba(0, 80, 230, 0.40) 0%, transparent 70%);
}
.project-section--northpolar .project-section__glow--br {
  width:      882px;
  height:     602px;
  left:       662px;
  top:        483px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
                rgba(0, 60, 200, 0.22) 0%, transparent 70%);
}


/* =============================================================
   Beloo — modifier on top of project-section
   ============================================================= */

.project-section--beloo {
  background: radial-gradient(ellipse at 65% 55%,
                #fe913c 0%,
                #fe6b36 35%,
                #ff4630 65%,
                #ff282b 90%);
}

.project-section--beloo .project-section__title      { color: #010417; }
.project-section--beloo .project-section__categories { color: #2d0f00; font-weight: 700; }
.project-section--beloo .project-section__desc       { color: #010417; }
.project-section--beloo .project-section__role       { color: #010417; }

.project-section--beloo .project-section__btn {
  background: #010417;
  border:     none;
  color:      #fe6b36;
}
.project-section--beloo .project-section__btn:hover { opacity: 0.85; }


/* =============================================================
   Veloque — modifier on top of project-section
   Column layout: hero image on top, centered text block below.
   Background is pure black, categories in amber (#FEF3DC).
   ============================================================= */

.project-section--veloque {
  background: #000;
  /* Match the base section's 235px left padding so the Veloque
     text block starts at the same X position as the other
     projects' text blocks. The image (flex: 1 mockup column)
     absorbs the change by becoming proportionally narrower. */
  padding:    0 112px 0 235px;
  min-height: 0;
  display:    flex;
  align-items: center;
}

.project-section__sr-title {
  position: absolute;
  width:    1px;
  height:   1px;
  padding:  0;
  margin:   -1px;
  overflow: hidden;
  clip:     rect(0, 0, 0, 0);
  white-space: nowrap;
  border:   0;
}

.project-section--veloque .project-section__inner {
  /* Was `row-reverse` (image on the left). Now matches the other
     project sections on the home — text block on the LEFT, image
     mockup on the RIGHT. */
  flex-direction: row;
  align-items:    center;
  gap:            64px;
  width:          100%;
}

.project-section--veloque .project-section__data {
  width:          380px;
  flex-shrink:    0;
  padding-bottom: 0;
  align-items:    flex-start;
  gap:            24px;
  text-align:     left;
}

.project-section--veloque .project-section__meta {
  align-items: flex-start;
  gap:         8px;
  width:       100%;
}

.project-section--veloque .project-section__title {
  color: #fff;
}

.project-section--veloque .project-section__icon img {
  filter: invert(1);
}

.project-section--veloque .project-section__categories {
  color:           #FEF3DC;
  justify-content: flex-start;
  flex-wrap:       wrap;
  overflow:        visible;
  text-align:      left;
}

.project-section--veloque .project-section__desc {
  color:      #eaeaea;
  text-align: left;
}

.project-section--veloque .project-section__role {
  color:      #fafafa;
  text-align: left;
}

.project-section--veloque .project-section__btn {
  background: #fff;
  border:     1px solid #2e2e2e;
  color:      #1a1a1a;
  min-width:  284px;
  max-width:  100%;
}
.project-section--veloque .project-section__btn:hover { opacity: 0.85; }

.project-section--veloque .project-section__mockup {
  flex:            1;
  min-width:       0;
  display:         flex;
  align-items:     center;
  justify-content: center;
  align-self:      stretch;
}

.project-section--veloque .project-section__mockup-img {
  width:      100%;
  height:     auto;
  max-width:  100%;
  max-height: none;
  display:    block;
  object-fit: contain;
}

@media (max-width: 940px) {
  .project-section--veloque {
    padding:    0 40px 48px;
    display:    block;
    min-height: 0;
  }
  .project-section--veloque .project-section__inner {
    flex-direction: column;
    align-items:    stretch;
    gap:            32px;
    min-height:     0;
  }
  .project-section--veloque .project-section__data {
    width:       100%;
    padding:     48px 0 0;
    align-items: flex-start;
  }
  .project-section--veloque .project-section__btn {
    min-width: 0;
    width:     100%;
    max-width: 320px;
  }
  .project-section--veloque .project-section__mockup {
    position:    static;
    inset:       auto;
    width:       100%;
    margin-left: 0;
    justify-content: center;
  }
  .project-section--veloque .project-section__mockup-img {
    width:      100%;
    height:     auto;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 640px) {
  .project-section--veloque {
    padding: 0 20px 32px;
  }
  .project-section--veloque .project-section__inner {
    gap: 24px;
  }
}


/* =============================================================
   Other projects — infinite carousel after project sections.
   Track scrolls right-to-left continuously. Duplicated content
   enables seamless loop. Side fades via mask-image. Link sits
   on the right side, outside the masked area.
   ============================================================= */

.projects-carousel {
  display:         flex;
  align-items:     center;
  justify-content: flex-end;
  padding:         48px 70px 48px 0;
  background:      #fff;
  overflow:        hidden;
}

.projects-carousel__marquee {
  flex:     1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right,
                        transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right,
                        transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.projects-carousel__track {
  display:     flex;
  gap:         24px;
  width:       max-content;
  margin:      0;
  padding:     0;
  list-style:  none;
  animation:   projects-carousel-scroll 40s linear infinite;
  will-change: transform;
}

.projects-carousel__marquee:hover .projects-carousel__track {
  animation-play-state: paused;
}

@keyframes projects-carousel-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.projects-carousel__item {
  flex-shrink:   0;
  width:         420px;
  height:        260px;
  border-radius: 14px;
  overflow:      hidden;
  position:      relative;
}

.projects-carousel__item > a {
  display:         block;
  width:           100%;
  height:          100%;
  position:        relative;
  text-decoration: none;
  color:           inherit;
  transition:      transform 0.4s ease;
}

.projects-carousel__item > a:hover {
  transform: scale(1.03);
}

.projects-carousel__item > a::after {
  content:       "";
  position:      absolute;
  inset:         0;
  background:    linear-gradient(to top,
                   rgba(0, 0, 0, 0.65) 0%,
                   rgba(0, 0, 0, 0.15) 50%,
                   transparent 75%);
  pointer-events: none;
  z-index:       1;
}

.projects-carousel__item img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
}

.projects-carousel__item-title {
  position:      absolute;
  left:          22px;
  bottom:        18px;
  z-index:       2;
  color:         var(--white);
  font-family:   var(--font-text);
  font-size:     18px;
  font-weight:   600;
  letter-spacing: 0.3px;
  text-shadow:   0 2px 8px rgba(0, 0, 0, 0.6);
}

.projects-carousel__link {
  flex-shrink:     0;
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  color:           #1a1a1a;
  font-family:     var(--font-text);
  font-size:       18px;
  font-weight:     600;
  line-height:     28px;
  text-decoration: none;
  white-space:     nowrap;
  transition:      opacity 0.2s ease;
}

.projects-carousel__link:hover { opacity: 0.75; }

.projects-carousel__link i {
  font-size:  20px;
  transition: transform 0.2s ease;
}

.projects-carousel__link:hover i { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .projects-carousel__track { animation: none; }
}

@media (max-width: 940px) {
  .projects-carousel {
    padding: 40px;
  }
}

@media (max-width: 640px) {
  .projects-carousel {
    padding: 32px 20px;
  }
  .projects-carousel__link {
    font-size: 16px;
  }
}

/* =============================================================
   Discover section — photo + quick access to About / Skills /
   Experience / Academics / Resume. Sits between #sectionVision
   and the tech-stack strip. Pixel-grid background via .pixeled-bg.
   ============================================================= */
.discover {
  position:   relative;
  width:      100%;
  padding:    120px 96px 120px 235px;
  overflow:   hidden;
  background: linear-gradient(180deg, #0A014C 0%, #080C1D 23.56%, #080C1D 73.56%, #0A014C 100%);
}

.discover__inner {
  position: relative;
  z-index:  2;
  display:  grid;
  grid-template-columns: minmax(280px, 440px) 1fr;
  gap:      72px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.discover__photo {
  width:         100%;
  background:    transparent;
  border:        none;
  border-radius: 0;
  overflow:      visible;
}
.discover__photo img {
  display:    block;
  width:      100%;
  height:     auto;
  object-fit: contain;
}

.discover__content {
  display:        flex;
  flex-direction: column;
  gap:            24px;
}

.discover__title {
  margin:         0;
  font-family:    var(--font-headings);
  font-size:      var(--fs-40);
  font-weight:    var(--fw-display);
  letter-spacing: var(--ls-display);
  line-height:    48px;
  color:          var(--white);
}

.discover__lead {
  margin:      0;
  font-family: var(--font-text);
  font-size:   var(--fs-16);
  font-weight: 400;
  line-height: 24px;
  color:       #eaeaea;
}

.discover__primary {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   16px;
  margin-top:            8px;
}

.discover-card {
  display:         flex;
  align-items:     flex-start;
  gap:             16px;
  padding:         20px;
  background:      #000;
  border:          1px solid rgba(171, 14, 250, 0.19);
  border-radius:   12px;
  color:           var(--white);
  text-decoration: none;
  transition:      background 0.2s, border-color 0.2s, transform 0.2s;
}
.discover-card:hover {
  background:   #0a0a0a;
  border-color: rgba(171, 14, 250, 0.45);
  transform:    translateY(-2px);
}

.discover-card__icon {
  flex-shrink:     0;
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           40px;
  height:          40px;
  border-radius:   10px;
  background:      rgba(255, 255, 255, 0.08);
  color:           var(--purple-900);
  font-size:       22px;
}

.discover-card__body {
  flex:           1;
  min-width:      0;
  display:        flex;
  flex-direction: column;
  gap:            4px;
}

.discover-card__title {
  font-family: var(--font-text);
  font-size:   var(--fs-16);
  font-weight: 600;
  line-height: 24px;
  color:       var(--white);
}

.discover-card__desc {
  font-family: var(--font-text);
  font-size:   var(--fs-14);
  font-weight: 400;
  line-height: 20px;
  color:       #c7c7d1;
}

.discover-card__arrow {
  flex-shrink: 0;
  font-size:   20px;
  color:       rgba(255, 255, 255, 0.6);
  transition:  transform 0.2s, color 0.2s;
}
.discover-card:hover .discover-card__arrow {
  color:     var(--white);
  transform: translate(2px, -2px);
}

.discover__secondary {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   16px;
}

.discover-resume {
  display:         inline-flex;
  align-items:     center;
  justify-content: space-between;
  gap:             16px;
  width:           100%;
  padding:         14px 20px;
  margin-top:      8px;
  background:      #000;
  border:          1px solid rgba(171, 14, 250, 0.19);
  border-radius:   8px;
  color:           var(--white);
  text-decoration: none;
  font-family:     var(--font-text);
  font-size:       var(--fs-16);
  font-weight:     600;
  line-height:     24px;
  transition:      background 0.2s, border-color 0.2s;
}
.discover-resume:hover {
  background:   #0a0a0a;
  border-color: rgba(171, 14, 250, 0.45);
}
.discover-resume__label {
  display:     inline-flex;
  align-items: center;
  gap:         12px;
}
.discover-resume__label i { font-size: 20px; }
.discover-resume > i { font-size: 18px; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .discover { padding: 96px 64px; }
  .discover__inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .discover__primary,
  .discover__secondary { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .discover { padding: 64px 32px; }
  .discover__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .discover__photo {
    max-width: 360px;
    margin:    0 auto;
  }
  .discover__title {
    font-size:   32px;
    line-height: 40px;
  }
}

@media (max-width: 480px) {
  .discover { padding: 48px 20px; }
}
