
:root {
  --bg: #07070a;
  --bg-soft: #0c0b10;
  --panel: rgba(17, 14, 23, 0.72);
  --panel-strong: #100d16;
  --text: #f4f1f8;
  --muted: #a59dad;
  --line: rgba(255, 255, 255, 0.1);
  --purple: #9b5cff;
  --violet: #c02cff;
  --red: #ff3d63;
  --pink: #ff5a8f;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 7%, rgba(155, 92, 255, 0.10), transparent 30rem),
    radial-gradient(circle at 88% 24%, rgba(255, 61, 99, 0.07), transparent 32rem),
    var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(192, 44, 255, .45); color: white; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.section-shell { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }
.section-block { padding: 130px 0 20px; }

.nav-shell {
  position: fixed;
  z-index: 50;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px));
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 14px 0 20px;
  background: rgba(9, 8, 12, .72);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0,0,0,.25);
}
.brand { font-weight: 900; font-size: 18px; letter-spacing: -1px; width: fit-content; }
.brand span { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 13px; color: #c6bfcd; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: white; }
.nav-cta {
  justify-self: end;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(155, 92, 255, .42);
  background: rgba(155, 92, 255, .08);
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 70px;
  padding-top: 112px;
  padding-bottom: 58px;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c0b9c7;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 42px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #6effb1;
  box-shadow: 0 0 16px rgba(110,255,177,.8);
}
.hero-kicker { font-size: 12px; font-weight: 700; letter-spacing: .19em; color: #b3aabc; margin: 0 0 17px; }
.hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(55px, 6.4vw, 95px);
  line-height: .92;
  letter-spacing: -.065em;
  font-weight: 800;
}
.hero h1 span {
  background: linear-gradient(90deg, #fff 7%, #d8c7ff 35%, #ba69ff 62%, #ff5a78 97%);
  -webkit-background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 660px;
  margin: 34px 0 0;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
  color: #ada6b3;
}
.hero-lead strong { color: #eee9f3; font-weight: 500; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 34px; }
.button {
  min-height: 47px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 19px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: white;
  background: linear-gradient(110deg, #7132d9, #9e32d5 55%, #e13c63);
  box-shadow: 0 11px 35px rgba(155, 63, 255, .18);
}
.button-secondary { border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.025); }
.button-secondary:hover { border-color: rgba(192, 44, 255, .45); }
.hero-meta { display: flex; align-items: center; gap: 13px; color: #716b76; margin-top: 46px; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.meta-divider { width: 26px; height: 1px; background: rgba(255,255,255,.18); }

.hero-visual { position: relative; display: grid; place-items: center; min-width: 0; }
.visual-frame {
  width: min(100%, 510px);
  aspect-ratio: 1 / 1.08;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(#0c0910, #09080c) padding-box,
              linear-gradient(135deg, rgba(155,92,255,.72), rgba(255,255,255,.06) 42%, rgba(255,61,99,.65)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 50px 120px rgba(0,0,0,.5), inset 0 0 90px rgba(151, 63, 255, .035);
}
.visual-frame::before {
  content: "";
  position: absolute; inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(162, 69, 255, .16), transparent 60%);
  filter: blur(18px);
}
.visual-grid, .project-visual-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent 2%, black 25%, black 70%, transparent 97%);
}
.rabbit-mark { position: absolute; width: 87%; inset: 6% 6.5% auto; opacity: .74; animation: rabbitFloat 7s ease-in-out infinite; }
.visual-orbit { position: absolute; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.orbit-a { width: 88%; height: 88%; top: 7%; left: 6%; }
.orbit-b { width: 68%; height: 68%; top: 16%; left: 16%; border-style: dashed; transform: rotate(20deg); }
.visual-chip {
  position: absolute;
  z-index: 3;
  font-family: monospace;
  font-size: 9px;
  letter-spacing: .14em;
  color: #c2bac9;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  padding: 9px 11px;
  background: rgba(8,7,11,.72);
  backdrop-filter: blur(10px);
}
.chip-top { top: 26px; right: 25px; }
.chip-bottom { bottom: 27px; left: 25px; }
@keyframes rabbitFloat { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-9px) rotate(1deg); } }

.section-heading { border-top: 1px solid var(--line); padding-top: 27px; margin-bottom: 58px; }
.section-heading > span, .section-heading div > span, .contact-label {
  color: #8b828f; font-size: 10px; letter-spacing: .18em; font-weight: 800;
}
.section-heading h2 {
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.03;
  letter-spacing: -.045em;
  margin: 22px 0 0;
  font-weight: 750;
}
.section-heading h2 em { font-weight: 400; color: #8d8492; font-style: normal; }
.split-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 50px; }
.split-heading p { margin: 0; color: #8e8693; line-height: 1.7; font-size: 13px; max-width: 420px; justify-self: end; }

.about-grid { display: grid; grid-template-columns: .35fr 1.65fr; gap: 50px; }
.about-index { font-size: 11px; line-height: 1.6; letter-spacing: .18em; color: #514a56; font-weight: 900; }
.about-copy { max-width: 850px; }
.about-copy p { font-size: clamp(19px, 2.1vw, 29px); line-height: 1.5; letter-spacing: -.025em; color: #aca4b1; margin: 0 0 30px; }
.about-copy strong { color: #f5f1f7; font-weight: 600; }

.expertise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.neon-card {
  background: linear-gradient(var(--panel-strong), var(--panel-strong)) padding-box,
              linear-gradient(135deg, rgba(155,92,255,.5), rgba(255,255,255,.05) 44%, rgba(255,61,99,.36)) border-box;
  border: 1px solid transparent;
}
.expertise-card { min-height: 310px; padding: 28px; border-radius: 18px; position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.expertise-card::after {
  content: ""; position: absolute; width: 170px; height: 170px; right: -90px; bottom: -90px;
  border-radius: 50%; background: rgba(162,52,255,.11); filter: blur(30px); transition: .25s ease;
}
.expertise-card:hover { transform: translateY(-4px); box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.expertise-card:hover::after { background: rgba(255,61,99,.12); }
.card-number { font-family: monospace; font-size: 10px; color: #706777; }
.expertise-card h3 { font-size: 24px; letter-spacing: -.035em; margin: 64px 0 14px; }
.expertise-card p { color: #8f8795; max-width: 520px; font-size: 13px; line-height: 1.75; margin-bottom: 25px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.02); color: #918995; border-radius: 999px; padding: 7px 10px; font-size: 9px; letter-spacing: .05em; }


.projects-list {
  display: grid;
  gap: 22px;
}

.project-card {
  min-height: 460px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border-radius: 22px;
  overflow: hidden;
  background: #0b090e;
  border: 1px solid rgba(255, 255, 255, 0.095);
}

.project-visual {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px 40px;
  background:
    radial-gradient(circle at 58% 34%, rgba(150, 61, 255, 0.13), transparent 31%),
    radial-gradient(circle at 22% 76%, rgba(255, 61, 99, 0.08), transparent 31%),
    #0a080d;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.project-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent 0, black 22%, black 80%, transparent 100%);
}

.project-index {
  position: absolute;
  top: 22px;
  left: 28px;
  z-index: 5;
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.32);
}

/* Inner presentation card: intentionally tilted, but only in 2D so UI screenshots stay readable. */
.project-preview-card {
  position: relative;
  z-index: 2;
  width: min(84%, 500px);
  padding: 14px;
  border-radius: 17px;
  background:
    linear-gradient(#0d0b12, #09080d) padding-box,
    linear-gradient(135deg, rgba(168, 76, 255, 0.68), rgba(255,255,255,.05) 52%, rgba(255, 61, 99, 0.42)) border-box;
  border: 1px solid transparent;
  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.52),
    0 0 48px rgba(155, 92, 255, 0.08);
  transform: rotate(-2deg);
  transform-origin: center center;
  transition: transform 0.38s ease, box-shadow 0.38s ease;
}

.project-preview-card--reverse {
  transform: rotate(1.7deg);
}

.project-card:hover .project-preview-card {
  transform: translateY(-5px) rotate(-2deg) scale(1.012);
  box-shadow:
    0 38px 82px rgba(0, 0, 0, 0.58),
    0 0 58px rgba(155, 92, 255, 0.12);
}

.project-card:hover .project-preview-card--reverse {
  transform: translateY(-5px) rotate(1.7deg) scale(1.012);
}

.project-preview-topbar {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 3px;
}

.project-preview-topbar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.project-preview-screen {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background: #07070a;
  border: 1px solid rgba(255,255,255,.045);
}

.project-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.project-content {
  padding: 54px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-type {
  color: #8b8290;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-content h3 {
  margin: 15px 0 18px;
  font-size: clamp(38px, 4.5vw, 62px);
  letter-spacing: -0.055em;
}

.project-content > p {
  color: #938a98;
  font-size: 13px;
  line-height: 1.8;
  max-width: 500px;
  margin: 0 0 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 31px;
  font-size: 11px;
  font-weight: 800;
}

.text-link[href="#"] {
  opacity: 0.45;
  pointer-events: none;
}

.all-projects-box {
  margin-top: 22px;
  padding: 27px 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.017);
}

.all-projects-box span {
  font-size: 9px;
  color: #7f7584;
  letter-spacing: 0.16em;
  font-weight: 800;
}

.all-projects-box p {
  margin: 10px 0 0;
  color: #9c929f;
  max-width: 710px;
  font-size: 13px;
  line-height: 1.65;
}

.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 70px 230px 1fr; min-height: 190px; border-bottom: 1px solid var(--line); padding: 36px 0; gap: 25px; align-items: start; }
.timeline-marker { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #0d0a10; border: 1px solid rgba(155,92,255,.32); box-shadow: 0 0 30px rgba(155,92,255,.06); }
.timeline-marker span { font-family: monospace; font-size: 9px; color: #8b7d91; }
.timeline-period { color: #8c828f; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding-top: 10px; }
.timeline-copy h3 { margin: 2px 0 12px; font-size: 22px; letter-spacing: -.03em; }
.timeline-copy p { margin: 0; max-width: 650px; color: #8c8491; line-height: 1.75; font-size: 13px; }

.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stack-card { min-height: 210px; padding: 24px; border: 1px solid rgba(255,255,255,.085); border-radius: 15px; background: rgba(255,255,255,.018); }
.stack-card h3 { margin: 0 0 35px; font-size: 13px; color: #e3dce8; }
.stack-items { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-items span { color: #8f8795; background: #0d0a11; border: 1px solid rgba(255,255,255,.07); padding: 8px 10px; border-radius: 8px; font-size: 10px; }

.education-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 16px; }
.education-card { min-height: 250px; padding: 28px; border-radius: 17px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.015); display: flex; flex-direction: column; justify-content: flex-end; }
.education-card > span { color: #756b79; font-size: 9px; letter-spacing: .14em; font-weight: 800; margin-bottom: auto; }
.education-card h3 { margin: 60px 0 9px; font-size: 22px; letter-spacing: -.025em; }
.education-card p { margin: 0; color: #938a97; font-size: 12px; }
.education-card small { margin-top: 18px; color: #5f5762; font-size: 9px; }
.featured-education { background: linear-gradient(#0f0b14, #0f0b14) padding-box, linear-gradient(120deg, rgba(155,92,255,.42), rgba(255,255,255,.06), rgba(255,61,99,.35)) border-box; border: 1px solid transparent; }

.contact-section {
  position: relative;
  overflow: hidden;
  margin-top: 150px;
  margin-bottom: 70px;
  padding-top: 95px;
  padding-bottom: 60px;
  border-top: 1px solid rgba(192,44,255,.28);
}
.contact-glow { position: absolute; width: 500px; height: 380px; top: -250px; left: 20%; border-radius: 50%; background: rgba(155,92,255,.18); filter: blur(100px); pointer-events: none; }
.contact-section h2 { position: relative; margin: 25px 0; font-size: clamp(48px, 7vw, 94px); line-height: .95; letter-spacing: -.065em; max-width: 900px; }
.contact-section h2 em { font-weight: 400; font-style: normal; background: linear-gradient(90deg, #b77cff, #ff496a); -webkit-background-clip: text; color: transparent; }
.contact-section > p { color: #918794; max-width: 640px; line-height: 1.75; font-size: 13px; }
.contact-email { display: inline-flex; align-items: center; gap: 12px; margin: 37px 0 60px; font-size: clamp(18px, 2vw, 25px); border-bottom: 1px solid rgba(255,255,255,.19); padding-bottom: 8px; }
.social-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.social-grid > a { min-height: 72px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; background: rgba(255,255,255,.018); font-size: 11px; color: #c1bac5; transition: border-color .2s ease, transform .2s ease; }
.social-grid > a:hover { border-color: rgba(192,44,255,.35); transform: translateY(-2px); }
.social-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: #120d18; color: #b591e8; font-size: 8px; font-weight: 900; text-transform: uppercase; }

.footer { min-height: 105px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: #5f5863; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 980px) {
  .nav-shell { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 150px; gap: 80px; }
  .hero-copy { max-width: 800px; }
  .hero-visual { width: min(100%, 600px); margin-inline: auto; }
  .split-heading { grid-template-columns: 1fr; gap: 22px; }
  .split-heading p { justify-self: start; }
  .project-card { grid-template-columns: 1fr; }
  .project-card:nth-child(even) .project-visual, .project-card:nth-child(even) .project-content { order: initial; }
  .project-visual, .project-card:nth-child(even) .project-visual { border-right: 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .section-shell { width: min(100% - 28px, 1180px); }
  .section-block { padding-top: 96px; }
  .nav-shell { top: 10px; width: calc(100% - 20px); height: 58px; border-radius: 14px; }
  .nav-cta { padding: 10px 12px; }
  .hero { min-height: auto; padding-top: 128px; padding-bottom: 30px; gap: 62px; }
  .eyebrow { margin-bottom: 30px; }
  .hero h1 { font-size: clamp(48px, 16vw, 73px); }
  .hero-lead { font-size: 16px; }
  .hero-meta { flex-wrap: wrap; }
  .visual-frame { border-radius: 19px; }
  .chip-top { top: 16px; right: 15px; }
  .chip-bottom { bottom: 17px; left: 15px; }
  .about-grid { grid-template-columns: 1fr; gap: 25px; }
  .about-index { display: none; }
  .about-copy p { font-size: 19px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card { min-height: 280px; padding: 24px; }
  .project-visual { min-height: 320px; }
  .project-content { padding: 35px 25px; }
  .project-terminal { width: 84%; }
  .all-projects-box { align-items: stretch; flex-direction: column; }
  .all-projects-box .button { width: 100%; }
  .timeline-item { grid-template-columns: 48px 1fr; gap: 13px 15px; }
  .timeline-period { grid-column: 2; }
  .timeline-copy { grid-column: 2; }
  .stack-grid, .education-grid, .social-grid { grid-template-columns: 1fr; }
  .contact-section { margin-top: 100px; }
  .contact-section h2 { font-size: clamp(49px, 15vw, 70px); }
  .footer { align-items: flex-start; justify-content: center; flex-direction: column; gap: 7px; padding: 25px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
html { scroll-behavior: smooth; }
.disabled-link { opacity: .45; cursor: default; }

/* --- Icon pass: toolkit + contact --- */
.stack-items span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stack-items iconify-icon {
  width: 13px;
  height: 13px;
  font-size: 13px;
  color: #fff;
  flex: 0 0 auto;
  opacity: .96;
}

.contact-email iconify-icon {
  width: 20px;
  height: 20px;
  font-size: 20px;
  color: #fff;
  flex: 0 0 auto;
}

.social-icon {
  background: transparent;
  color: #fff;
  font-size: 18px;
}

.social-icon iconify-icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
  color: #fff;
}


/* --- Icon pass: toolkit + contact --- */
.stack-items span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.stack-items iconify-icon {
  width: 13px;
  height: 13px;
  font-size: 13px;
  color: #fff;
  flex: 0 0 auto;
  opacity: 0.96;
}
.contact-email iconify-icon {
  width: 20px;
  height: 20px;
  font-size: 20px;
  color: #fff;
  flex: 0 0 auto;
}
.social-icon {
  background: transparent;
  color: #fff;
  font-size: 18px;
}
.social-icon iconify-icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
  color: #fff;
}

/* --- Hero image --- */
.hero-image-frame {
  position: relative;
  width: min(100%, 510px);
  min-height: 560px;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(#0b090f, #0b090f) padding-box,
    linear-gradient(135deg, rgba(155, 92, 255, 0.78), rgba(192, 44, 255, 0.25), rgba(255, 61, 99, 0.76)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 40px 95px rgba(0,0,0,.46), 0 0 65px rgba(155,92,255,.07);
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .55s ease;
}
.hero-image-frame:hover .hero-image { transform: scale(1.025); }
.hero-image-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(7,7,10,.72), transparent 38%),
    linear-gradient(135deg, rgba(155,92,255,.05), transparent 45%, rgba(255,61,99,.07));
}

@media (max-width: 980px) {
  .project-card { grid-template-columns: 1fr; }
  .project-visual {
    min-height: 390px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .project-preview-card { width: min(82%, 560px); }
  .hero-image-frame { width: min(100%, 600px); min-height: 620px; }
}

@media (max-width: 680px) {
  .hero-image-frame { min-height: 470px; border-radius: 19px; }
  .project-visual { min-height: 300px; padding: 42px 22px 34px; }
  .project-preview-card { width: 92%; padding: 10px; border-radius: 14px; transform: rotate(-1.2deg); }
  .project-preview-card--reverse { transform: rotate(1.1deg); }
  .project-card:hover .project-preview-card { transform: translateY(-3px) rotate(-1.2deg) scale(1.006); }
  .project-card:hover .project-preview-card--reverse { transform: translateY(-3px) rotate(1.1deg) scale(1.006); }
  .project-preview-topbar { height: 20px; }
  .project-preview-screen { border-radius: 8px; }
  .project-index { top: 16px; left: 18px; }
}

/* --- Resources library --- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.resource-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(rgba(14, 11, 19, 0.96), rgba(10, 9, 13, 0.98)) padding-box,
    linear-gradient(
      135deg,
      rgba(155, 92, 255, 0.34),
      rgba(255, 255, 255, 0.04) 48%,
      rgba(255, 61, 99, 0.28)
    ) border-box;
  border: 1px solid transparent;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.32),
    0 0 42px rgba(155, 92, 255, 0.07);
}

.resource-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #09080d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.resource-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(7, 7, 10, 0.34), transparent 42%),
    linear-gradient(135deg, rgba(155, 92, 255, 0.05), transparent 55%, rgba(255, 61, 99, 0.05));
}

.resource-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.resource-card:hover .resource-visual img {
  transform: scale(1.025);
}

.resource-type {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 15px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(8, 7, 11, 0.78);
  backdrop-filter: blur(10px);
  color: #c5bccb;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.resource-body {
  min-height: 235px;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 21px;
}

.resource-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 14px;
}

.resource-title-row h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.resource-title-row iconify-icon {
  width: 17px;
  height: 17px;
  font-size: 17px;
  color: #fff;
  opacity: 0.88;
}

.resource-body p {
  margin: 14px 0 24px;
  color: #8f8795;
  font-size: 12px;
  line-height: 1.7;
}

.resource-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d9d2df;
  font-size: 10px;
  font-weight: 800;
}

.resource-card:hover .resource-action {
  color: #fff;
}

.resources-footer {
  margin-top: 18px;
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.015);
}

.resources-footer > div > span {
  color: #7f7584;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.resources-footer p {
  max-width: 700px;
  margin: 9px 0 0;
  color: #958c9a;
  font-size: 12px;
  line-height: 1.65;
}

.resource-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #8f8795;
  background: rgba(255, 255, 255, 0.015);
  font-size: 12px;
}

/* Standalone Resources page */
.resources-page {
  min-height: 100svh;
  padding-top: 145px;
  padding-bottom: 100px;
}

.resources-page-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 50px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.resources-page-hero span {
  color: #8b828f;
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 800;
}

.resources-page-hero h1 {
  margin: 18px 0 0;
  max-width: 760px;
  font-size: clamp(50px, 7vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.resources-page-hero h1 em {
  font-style: normal;
  font-weight: 400;
  background: linear-gradient(90deg, #b77cff, #ff496a);
  -webkit-background-clip: text;
  color: transparent;
}

.resources-page-hero p {
  justify-self: end;
  max-width: 430px;
  margin: 0;
  color: #918794;
  font-size: 13px;
  line-height: 1.75;
}

.resources-page .resources-grid {
  margin-top: 28px;
}

.resources-page-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
  color: #bdb5c1;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .resources-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .resources-page-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .resources-page-hero p {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }
  .resource-body {
    min-height: 0;
  }
  .resources-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .resources-footer .button {
    width: 100%;
  }
  .resources-page {
    padding-top: 110px;
  }
}
