:root {
  --bg: #05070b;
  --bg-2: #08101a;
  --bg-3: #0b1622;
  --panel: #0e1723;
  --panel-2: #101d2b;
  --panel-3: #111f30;

  --line: rgba(177, 213, 255, 0.16);
  --line-strong: rgba(74, 163, 255, 0.46);

  --text: #f4f7fb;
  --text-soft: #c9d4df;
  --muted: #8796a8;

  --blue: #0078d4;
  --blue-2: #4aa3ff;
  --blue-3: #9fd0ff;

  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --max-width: 1180px;
  --radius: 8px;

  --font:
    "Aptos",
    "Segoe UI Variable Text",
    "Segoe UI",
    Inter,
    Roboto,
    Arial,
    sans-serif;

  --font-mono:
    "Cascadia Mono",
    "Consolas",
    "Courier New",
    monospace;

  --font-display:
    "Aptos Display",
    "Segoe UI Variable Display",
    "Segoe UI",
    Inter,
    Roboto,
    Arial,
    sans-serif;
}

/* RESET */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 120, 212, 0.2), transparent 34rem),
    radial-gradient(circle at 84% 18%, rgba(74, 163, 255, 0.1), transparent 30rem),
    linear-gradient(180deg, #05070b 0%, #07101a 48%, #05070b 100%);
  font-family: var(--font);
  line-height: 1.6;
  letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before { display: none; }

body::after { display: none; }

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

p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
}

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

button,
summary {
  font: inherit;
}

summary {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--blue-2);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  transform: translateY(-160%);
  padding: 0.65rem 0.85rem;
  background: var(--blue);
  color: #ffffff;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

/* STRUCTURE */

.shell {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

.site-section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.site-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin-bottom: 0.85rem;
}

.section-heading p:last-child {
  max-width: 760px;
  color: var(--text-soft);
  font-size: 1.02rem;
}

/* TYPE */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  color: var(--blue-3);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--blue-2);
  box-shadow: 0 0 16px rgba(74, 163, 255, 0.54);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.03;
  letter-spacing: -0.052em;
  font-weight: 900;
}

h1 {
  max-width: 940px;
  font-size: clamp(3rem, 7vw, 6.6rem);
}

h2 {
  max-width: 900px;
  font-size: clamp(2rem, 4.2vw, 4rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

strong {
  color: var(--text);
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(177, 213, 255, 0.12);
  background: rgba(5, 7, 11, 0.84);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.logo-mark {
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid var(--blue-3);
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow:
    0 0 16px rgba(74, 163, 255, 0.72),
    0 0 42px rgba(0, 120, 212, 0.35);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.05rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--blue-3);
}

/* BUTTONS */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.66rem 0.95rem;
  border: 1px solid rgba(177, 213, 255, 0.2);
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(15, 28, 42, 0.9);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: rgba(159, 208, 255, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.026)),
    rgba(20, 38, 56, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.button-primary {
  border-color: rgba(74, 163, 255, 0.74);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.035)),
    var(--blue);
  color: #ffffff;
  box-shadow:
    0 0 20px rgba(0, 120, 212, 0.25),
    0 14px 30px rgba(0, 0, 0, 0.18);
}

.button-primary:hover {
  border-color: rgba(159, 208, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.048)),
    #0b82df;
}

button.button {
  cursor: pointer;
  font: inherit;
}

.copy-email-button {
  word-break: break-word;
}

.copy-status {
  min-height: 1rem;
  color: var(--blue-3);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* HERO */

.hero-band {
  position: relative;
  background:
    linear-gradient(90deg, rgba(5, 7, 11, 0.52) 0%, rgba(5, 7, 11, 0.42) 44%, rgba(5, 7, 11, 0.32) 100%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.08), rgba(5, 7, 11, 0.58)),
    url("../images/bg-1.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-section {
  padding-top: clamp(4.2rem, 7vw, 7rem);
  padding-bottom: 3.5rem;
  background: transparent;
}

.hero-section::before {
  background:
    radial-gradient(circle at 8% 16%, rgba(0, 120, 212, 0.22), transparent 32rem),
    radial-gradient(circle at 78% 18%, rgba(74, 163, 255, 0.12), transparent 30rem),
    linear-gradient(180deg, rgba(8, 16, 26, 0.08), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.48fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-copy {
  position: relative;
}

.hero-copy::after {
  content: "";
  display: block;
  width: min(100%, 680px);
  height: 1px;
  margin-top: 2rem;
  background:
    linear-gradient(90deg, var(--blue-2), rgba(159, 208, 255, 0.22), transparent);
}

.hero-lede {
  max-width: 820px;
  margin-top: 1.4rem;
  color: var(--text);
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  line-height: 1.5;
  font-weight: 620;
}

.hero-note {
  max-width: 790px;
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
  margin-top: 1.6rem;
}

.hero-side {
  display: grid;
  gap: 1rem;
}

.profile-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(74, 163, 255, 0.22), transparent 34%),
    linear-gradient(0deg, rgba(5, 7, 11, 0.12), transparent);
}

.profile-frame::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-top: 1px solid var(--blue-2);
  border-right: 1px solid var(--blue-2);
}

.profile-frame img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  filter: grayscale(0.08) contrast(1.06) saturate(0.92);
}

/* SHARED PANELS */

.project-panel,
.experience-panel,
.education-card,
.cert-card,
.contact-panel,
.mini-project,
.proof-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(14, 23, 35, 0.88);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.project-panel::before,
.experience-panel::before,
.education-card::before,
.cert-card::before,
.contact-panel::before,
.mini-project::before,
.proof-card::before {
  content: "";
  position: absolute;
  inset: -1px auto auto -1px;
  width: 64px;
  height: 2px;
  background: var(--blue-2);
  box-shadow: 0 0 16px rgba(74, 163, 255, 0.58);
}


.panel-label,
.aside-title,
.terminal-card span,
.project-index,
.experience-badge {
  color: var(--blue-3);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}





/* PROOF */

.proof-section {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.proof-card {
  min-height: 140px;
  padding: 1rem;
  display: grid;
  align-content: space-between;
}

.proof-card span {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.45rem);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.proof-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 680;
}

/* TOOLKIT */

.toolkit-section {
  padding-top: clamp(3rem, 5vw, 4.4rem);
  padding-bottom: clamp(3.4rem, 5.6vw, 5rem);
  overflow: hidden;
}

.toolkit-section::before {
  background:
    radial-gradient(circle at 90% 10%, rgba(0, 120, 212, 0.14), transparent 26rem),
    linear-gradient(180deg, rgba(8, 17, 26, 0.72), rgba(10, 22, 34, 0.76));
}


.toolkit-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.15rem, 2.6vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(14, 23, 35, 0.88);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.toolkit-panel::before {
  content: "";
  position: absolute;
  inset: -1px auto auto -1px;
  width: 64px;
  height: 2px;
  background: var(--blue-2);
  box-shadow: 0 0 16px rgba(74, 163, 255, 0.58);
}

.toolkit-panel > * {
  position: relative;
  z-index: 1;
}

.toolkit-heading {
  margin-bottom: 1.35rem;
}

.toolkit-row {
  display: grid;
  gap: 0.85rem;
  margin-top: 0;
}

.toolkit-row + .toolkit-row {
  margin-top: 1.55rem;
}

.toolkit-row-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem;
}

.toolkit-row-head h3 {
  font-size: 1.2rem;
}

.toolkit-row-head p {
  max-width: 620px;
  color: var(--blue-3);
  font-size: 0.92rem;
  font-weight: 760;
  text-align: right;
}

.toolkit-marquee {
  position: relative;
  width: 100%;
  padding: 0.2rem 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.toolkit-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.toolkit-track-ltr {
  animation: toolkit-scroll-ltr 34s linear infinite;
}

.toolkit-track-slower {
  animation-duration: 44s;
}

.toolkit-marquee,
.toolkit-track,
.toolkit-set,
.tool-logo {
  pointer-events: none;
}


.toolkit-set {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-right: 0.85rem;
}

.tool-logo {
  display: grid;
  grid-template-rows: 54px auto;
  place-items: center;
  width: 116px;
  height: 96px;
  padding: 0.62rem 0.55rem 0.5rem;
  border: 1px solid rgba(177, 213, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(14, 23, 35, 0.82);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tool-logo img {
  display: block;
  max-width: 76px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 4px 8px rgba(0, 0, 0, 0.24))
    saturate(1.04)
    contrast(1.04);
}

.tool-logo figcaption {
  max-width: 100%;
  color: var(--text-soft);
  font-size: 0.68rem;
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes toolkit-scroll-ltr {
  from {
    transform: translateX(calc(-50% - 0.425rem));
  }

  to {
    transform: translateX(0);
  }
}

.toolkit-track-rtl {
  animation: toolkit-scroll-rtl 44s linear infinite;
}

@keyframes toolkit-scroll-rtl {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 0.425rem));
  }
}

/* PROJECTS */

.projects-section::before {
  background: linear-gradient(180deg, rgba(8, 16, 26, 0.92), rgba(5, 7, 11, 0.42));
}

.project-stack {
  display: grid;
  gap: 1.15rem;
}

.project-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.58fr);
  gap: 1rem;
  padding: clamp(1.15rem, 2.6vw, 1.8rem);
  overflow: hidden;
}

.project-panel::after { display: none; }

.project-main {
  position: relative;
  z-index: 1;
}

.project-index {
  display: inline-flex;
  margin-bottom: 1.1rem;
}

.project-subtitle {
  margin-top: 0.3rem;
  margin-bottom: 1rem;
  color: var(--blue-3);
  font-weight: 850;
}

.project-main > p,
.mini-project p,
.experience-panel > p,
.education-card > p,
.contact-panel p {
  color: var(--text-soft);
}

.clean-list,
.metric-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  list-style: none;
}

.clean-list li,
.metric-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-soft);
}

.clean-list li::before,
.metric-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 12px rgba(74, 163, 255, 0.48);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.project-aside {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.aside-block,
.terminal-card {
  border: 1px solid rgba(177, 213, 255, 0.14);
  border-radius: 6px;
  background: rgba(5, 10, 16, 0.58);
}

.aside-block {
  padding: 1rem;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.tag-grid span {
  display: inline-flex;
  padding: 0.36rem 0.5rem;
  border: 1px solid rgba(177, 213, 255, 0.14);
  border-radius: 3px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.78rem;
  font-weight: 760;
}

.terminal-card {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  font-family:
    "Cascadia Mono",
    "Consolas",
    "SFMono-Regular",
    monospace;
}

.terminal-card code {
  display: block;
  color: #d7e7ff;
  font-size: 0.82rem;
}

.terminal-card code::before {
  content: "> ";
  color: var(--blue-2);
}

.supporting-work {
  margin-top: 1.15rem;
}

.supporting-work summary,
.module-details summary {
  list-style: none;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(177, 213, 255, 0.18);
  border-radius: 4px;
  color: var(--text);
  background: rgba(15, 28, 42, 0.78);
  font-weight: 850;
}

.supporting-work summary::-webkit-details-marker,
.module-details summary::-webkit-details-marker {
  display: none;
}

.supporting-work[open] summary,
.module-details[open] summary {
  margin-bottom: 0.9rem;
}

.supporting-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.mini-project {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.mini-project h3 {
  font-size: 1.18rem;
}

.stack-line {
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(177, 213, 255, 0.12);
  color: var(--blue-3) !important;
  font-size: 0.68rem !important;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--blue-3);
  font-weight: 850;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

/* EXPERIENCE */

.experience-section::before {
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.18), rgba(8, 16, 26, 0.44));
}

.experience-stack {
  display: grid;
  gap: 1rem;
}

.experience-panel {
  padding: clamp(1.15rem, 2.6vw, 1.75rem);
}

.experience-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.experience-title-group {
  min-width: 0;
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.45rem;
  margin-top: 0.45rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 560;
}

.experience-company {
  color: var(--text);
  font-weight: 850;
}

.experience-separator {
  color: var(--blue-2);
  font-weight: 700;
  opacity: 0.85;
}

.experience-location,
.experience-dates {
  color: var(--text-soft);
  font-weight: 560;
}

.experience-badge {
  flex: 0 0 auto;
  padding: 0.4rem 0.52rem;
  border: 1px solid rgba(74, 163, 255, 0.28);
  border-radius: 3px;
  background: rgba(0, 120, 212, 0.08);
}

.metric-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.1rem;
}

.experience-note {
  margin-top: 1.15rem;
  padding: 0.05rem 0 0.05rem 0.85rem;
  border-left: 3px solid var(--blue-2);
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
  font-weight: 500;
}

/* EDUCATION */

.education-section::before {
  background:
    radial-gradient(circle at 18% 14%, rgba(0, 120, 212, 0.12), transparent 30rem),
    linear-gradient(180deg, rgba(7, 15, 24, 0.78), rgba(5, 7, 11, 0.5));
}

.education-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
}

.education-card,
.cert-card {
  padding: 1.15rem;
}

.education-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.education-head h3 {
  font-size: 1.24rem;
}

.education-head span {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 850;
}

.grade-line {
  margin-bottom: 0.35rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--blue-2);
  color: var(--text);
  font-weight: 850;
}

.institution-line {
  margin-top: 0.35rem;
  color: var(--blue-3);
  font-weight: 780;
}

.module-details {
  margin-top: 1rem;
}

.module-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.module-list-coded {
  gap: 0.6rem;
}

.module-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(74, 163, 255, 0.72);
}

.module-item strong {
  color: var(--blue-3);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.module-item > span {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.35;
}

.module-code-cell {
  display: grid;
  gap: 0.22rem;
  align-content: start;
}

.module-grade {
  display: inline-flex;
  width: max-content;
  padding: 0.12rem 0.32rem;
  border: 1px solid rgba(74, 163, 255, 0.28);
  border-radius: 3px;
  color: var(--text);
  background: rgba(0, 120, 212, 0.12);
  font-size: 0.68rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-mark {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.15;
  font-weight: 850;
}

.cert-card {
  grid-column: 1 / -1;
}

.cert-card h3 {
  margin-bottom: 1rem;
  font-size: 1.24rem;
}

.cert-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(177, 213, 255, 0.12);
}

.cert-row:last-child {
  padding-bottom: 0;
}

.cert-row strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: -0.06em;
}

.cert-row p {
  color: var(--text);
  font-weight: 850;
}

.cert-row span {
  color: var(--blue-3);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* CONTACT */

.contact-section {
  padding-bottom: 4rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.contact-panel h2 {
  max-width: 820px;
  margin-bottom: 1rem;
}

.contact-panel p {
  max-width: 760px;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  min-width: 220px;
}

.contact-actions .button {
  width: 100%;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid rgba(177, 213, 255, 0.12);
  background: rgba(5, 7, 11, 0.72);
}

.footer-inner {
  padding: 1.35rem 0;
  color: var(--muted);
  text-align: center;
}

.footer-inner small {
  font-size: 0.86rem;
}

/* RESPONSIVE */

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-side {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: stretch;
  }

  .profile-frame img {
    height: 100%;
    aspect-ratio: auto;
  }

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

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

@media (max-width: 820px) {
  .site-section {
    padding: 4.2rem 0;
  }

  .nav {
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .nav-links {
    gap: 0.8rem;
    font-size: 0.88rem;
  }

  .hero-side,
  .project-panel,
  .education-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .profile-frame {
    max-width: 260px;
  }

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

  .metric-list {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .toolkit-row-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .toolkit-row-head p {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 1.6rem, var(--max-width));
  }

  h1 {
    font-size: clamp(2.45rem, 15vw, 4rem);
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 3rem);
  }

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

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .proof-grid,
  .module-list {
    grid-template-columns: 1fr;
  }

  .proof-card {
    min-height: 118px;
  }

  .tool-logo {
    width: 98px;
    height: 88px;
    grid-template-rows: 48px auto;
  }

  .tool-logo img {
    max-width: 66px;
    max-height: 42px;
  }

  .tool-logo figcaption {
    font-size: 0.64rem;
  }

  .toolkit-track-ltr {
    animation-duration: 28s;
  }

  .toolkit-track-rtl {
    animation-duration: 36s;
  }

  .toolkit-track-slower {
    animation-duration: 36s;
  }

  .experience-head,
  .education-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .cert-row,
  .module-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* MOTION */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .toolkit-track-ltr,
  .toolkit-track-rtl {
    animation: none !important;
    transform: none !important;
  }
}
/* =========================================================
   2026 broad technical portfolio additions
   ========================================================= */

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.25rem;
  color: var(--blue-3);
  font-weight: 900;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1rem;
  align-items: stretch;
}

.profile-copy-panel,
.method-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
    rgba(9, 17, 27, 0.86);
  box-shadow: var(--shadow);
}

.profile-copy-panel {
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.profile-copy-panel p + p {
  margin-top: 1rem;
}

.profile-copy-panel .profile-lead {
  color: var(--text);
  font-size: clamp(1.12rem, 1.5vw, 1.35rem);
  font-weight: 760;
  line-height: 1.5;
}

.profile-copy-panel .profile-body {
  color: var(--text-soft);
}

.method-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.method-item {
  min-height: 165px;
  padding: 1.35rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-item:nth-child(2n) {
  border-right: 0;
}

.method-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.method-item strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--blue-3);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.method-item p {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.capability-intro {
  max-width: 760px;
}

.capability-row {
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 0.68fr);
  gap: 1.4rem;
  align-items: center;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.capability-row:last-child {
  border-bottom: 1px solid var(--line);
}

.capability-row h3 {
  margin-bottom: 0.35rem;
}

.capability-row p {
  color: var(--muted);
  font-size: 0.92rem;
}

.capability-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.capability-tool {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 54px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,0.025);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 780;
}

.capability-tool img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.project-panel {
  min-height: 470px;
}

.project-main {
  display: flex;
  flex-direction: column;
}

.project-main .project-actions {
  margin-top: auto;
  padding-top: 1.1rem;
}

.tag-grid.tag-grid-fixed {
  grid-template-columns: 1fr 1fr;
}

.tag-grid.tag-grid-fixed span {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.supporting-work-open {
  margin-top: 1.2rem;
}

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

.mini-project {
  display: flex;
  flex-direction: column;
  min-height: 315px;
}

.mini-project .project-subtitle {
  min-height: 2.7em;
}

.mini-project > p:not(.project-subtitle):not(.stack-line) {
  min-height: 7.2em;
}

.mini-project .stack-line {
  margin-top: auto;
  min-height: 3.2em;
}

.project-status {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.experience-panel .metric-list {
  margin-top: 1rem;
}

.education-layout.education-two {
  grid-template-columns: 1fr 1fr;
}

.credentials-section::before {
  background:
    linear-gradient(180deg, rgba(0, 120, 212, 0.05), transparent 70%);
}

.credentials-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.credential-item {
  min-height: 180px;
  padding: 1.4rem;
  background: rgba(9, 17, 27, 0.88);
  border-right: 1px solid var(--line);
}

.credential-item:last-child {
  border-right: 0;
}

.credential-code {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--blue-3);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.credential-item strong {
  display: block;
  margin-bottom: 0.4rem;
}

.credential-item p {
  color: var(--muted);
  font-size: 0.9rem;
}



@media (max-width: 980px) {
  .profile-layout,
  .education-layout.education-two {
    grid-template-columns: 1fr;
  }

  .capability-row {
    grid-template-columns: 1fr;
  }

  .supporting-grid.supporting-grid-nine,
  .credentials-strip {
    grid-template-columns: 1fr 1fr;
  }

  .credential-item:nth-child(2) {
    border-right: 0;
  }

  .credential-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .method-panel,
  .capability-tools,
  .supporting-grid.supporting-grid-nine,
  .credentials-strip,

  .method-item,
  .method-item:nth-child(2n),
  .method-item:nth-last-child(-n + 2),
  .credential-item,
  .credential-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .method-item:last-child,
  .credential-item:last-child {
    border-bottom: 0;
  }
}

.proof-grid.proof-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1020px) {
  .proof-grid.proof-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .proof-grid.proof-grid-four {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   2026 refinement pass
   ========================================================= */

.section-heading h2 {
  text-transform: uppercase;
  letter-spacing: -0.045em;
}

.section-heading {
  margin-bottom: 1.2rem;
}

.section-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.2rem, 2.6vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.038), rgba(255,255,255,0.012)),
    rgba(9, 17, 27, 0.88);
  box-shadow: var(--shadow);
}

.section-panel::before {
  content: "";
  position: absolute;
  inset: -1px auto auto -1px;
  width: 64px;
  height: 2px;
  background: var(--blue-2);
  box-shadow: 0 0 16px rgba(74, 163, 255, 0.58);
}

.section-intro {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-bottom: 1.5rem;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.profile-section-panel .profile-layout {
  position: relative;
  z-index: 1;
}

.profile-section-panel .profile-copy-panel,
.profile-section-panel .method-panel {
  box-shadow: none;
}

.toolkit-panel.section-panel {
  padding: clamp(1.2rem, 2.6vw, 2rem);
}

.toolkit-panel.section-panel > .section-intro {
  margin-bottom: 0.3rem;
}

.projects-section-panel,
.experience-section-panel,
.education-section-panel,
.credentials-section-panel {
  display: grid;
  gap: 1.25rem;
}

.projects-section-panel .project-stack,
.projects-section-panel .supporting-work,
.experience-section-panel .experience-stack,
.education-section-panel .education-layout,
.credentials-section-panel .credentials-strip {
  position: relative;
  z-index: 1;
}

.projects-section-panel .project-panel,
.experience-section-panel .experience-panel,
.education-section-panel .education-card,
.credentials-section-panel .credentials-strip {
  box-shadow: none;
}

.button-disabled {
  cursor: default;
  pointer-events: none;
  border-color: rgba(177, 213, 255, 0.12);
  background: rgba(255,255,255,0.018);
  color: var(--muted);
  box-shadow: none;
}

.button-small {
  min-height: 38px;
  padding: 0.56rem 0.78rem;
  font-size: 0.78rem;
}

.mini-project-actions {
  display: flex;
  margin-top: 0.85rem;
}

.mini-project-actions .button {
  width: 100%;
}

.experience-tech {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(177, 213, 255, 0.12);
}

.experience-tech-label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--blue-3);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.experience-tech-tools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.experience-tech-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,0.022);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.experience-tech-item img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.contact-panel.section-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
}

.contact-copy p + p {
  margin-top: 0.7rem;
}

.contact-copy p {
  color: var(--text-soft);
}

.contact-copy .section-intro {
  margin-bottom: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 720;
}

.gateway-copy h1,
.language-card strong,
.gateway-role {
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .experience-tech-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-panel.section-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .experience-tech-tools {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   2026 systems-first refinement
   ========================================================= */

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(2.35rem, 4.6vw, 4.8rem);
}

.hero-lede {
  max-width: 760px;
}

.hero-note {
  max-width: 720px;
}

/* Alternate solid / blue-tinted surfaces without decorative patterns */
.proof-card:nth-child(2),
.method-item:nth-child(2),
.project-panel:nth-child(2),
.mini-project:nth-child(2),
.experience-panel:nth-child(2),
.education-card:nth-child(2),
.credential-item:nth-child(2),
.personal-card:nth-child(2),
.visitor-card:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(0, 120, 212, 0.18), rgba(10, 26, 42, 0.86) 68%),
    rgba(11, 24, 38, 0.9);
}

.capability-row {
  margin-inline: -0.65rem;
  padding-inline: 0.65rem;
  border-radius: 6px;
}

.capability-row:nth-of-type(2) {
  background:
    linear-gradient(90deg, rgba(0, 120, 212, 0.12), rgba(10, 26, 42, 0.48));
}

.method-item {
  min-height: 178px;
}

.capability-tools {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.experience-tech-tools {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tech-monogram {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border: 1px solid rgba(159, 208, 255, 0.34);
  border-radius: 4px;
  color: var(--blue-3);
  background: rgba(0, 120, 212, 0.11);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.education-focus {
  margin-top: 0.7rem;
  color: var(--blue-3) !important;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.credentials-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.credential-item:nth-child(4) {
  border-right: 0;
}

.personal-section::before {
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.18), rgba(8, 16, 26, 0.44));
}

.personal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.personal-card,
.visitor-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)),
    rgba(9, 17, 27, 0.86);
}

.personal-card {
  min-height: 190px;
  padding: 1.2rem;
}

.personal-card strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--blue-3);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.personal-card p {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.you-section::before {
  background:
    radial-gradient(circle at 84% 14%, rgba(0, 120, 212, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(7, 15, 24, 0.72), rgba(5, 7, 11, 0.42));
}

.visitor-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.visitor-card {
  min-height: 118px;
  padding: 1rem;
}

.visitor-card span,
.visitor-agent span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--blue-3);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.visitor-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.3;
}

.visitor-agent {
  position: relative;
  z-index: 1;
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 10, 16, 0.58);
}

.visitor-agent code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text-soft);
  font-family: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
  font-size: 0.8rem;
  line-height: 1.5;
}

.contact-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: min(100%, 520px);
}

.contact-actions .copy-status {
  grid-column: 1 / -1;
}

@media (max-width: 1040px) {
  .experience-tech-tools,
  .credentials-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .credential-item:nth-child(3) {
    border-right: 0;
  }

  .credential-item:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .experience-tech-tools,
  .personal-grid,
  .visitor-grid,
  .contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .credential-item:nth-child(2) {
    border-right: 0;
  }

  .credential-item:nth-child(3) {
    border-right: 1px solid var(--line);
    border-top: 1px solid var(--line);
  }

  .credential-item:nth-child(4) {
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .experience-tech-tools,
  .personal-grid,
  .visitor-grid,
  .contact-actions,
  .credentials-strip {
    grid-template-columns: 1fr;
  }

  .credential-item,
  .credential-item:nth-child(2),
  .credential-item:nth-child(3),
  .credential-item:nth-child(4) {
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }

  .credential-item:last-child {
    border-bottom: 0;
  }
}


/* =========================================================
   2026 refinement v5
   ========================================================= */

.hero-eyebrow {
  margin-bottom: 1.15rem;
}

.hero-grid-aligned {
  align-items: start;
}

.hero-grid-aligned .hero-copy,
.hero-grid-aligned .hero-side {
  padding-top: 0;
}

.hero-copy h1 {
  max-width: 690px;
  font-size: clamp(2.65rem, 5vw, 5.35rem);
  line-height: 0.98;
}

.hero-lede {
  max-width: 760px;
  margin-top: 1.2rem;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}


.proof-card p {
  max-width: 24ch;
  font-size: 0.82rem;
  line-height: 1.38;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1rem;
}

.profile-summary-copy,
.profile-depth {
  padding: clamp(1rem, 2.2vw, 1.45rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 17, 28, 0.62);
}

.profile-summary-copy .profile-lead {
  margin-bottom: 0.75rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 850;
  line-height: 1.18;
}

.profile-summary-copy p:last-child,
.profile-depth p {
  color: var(--text-soft);
}

.profile-depth {
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.15), rgba(8, 17, 28, 0.78));
}

.profile-depth .panel-label {
  display: block;
  margin-bottom: 0.7rem;
}

.trait-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.trait-strip article {
  min-height: 150px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
}

.trait-strip article:nth-child(2) {
  background: linear-gradient(135deg, rgba(0,120,212,0.16), rgba(10,26,42,0.72));
}

.trait-strip strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--blue-3);
  font-family: var(--font-display);
  text-transform: uppercase;
}

.trait-strip p {
  color: var(--text-soft);
  font-size: 0.88rem;
}

/* Keep project content visually clumped; equal cards no longer create a large button void. */
.project-panel {
  min-height: 0;
  align-items: start;
}

.project-main {
  display: block;
}

.project-main .project-actions {
  margin-top: 1rem;
  padding-top: 0;
}

.mini-project {
  min-height: 0;
}

.mini-project .project-subtitle,
.mini-project > p:not(.project-subtitle):not(.stack-line),
.mini-project .stack-line {
  min-height: 0;
}

.mini-project .stack-line {
  margin-top: 1rem;
}

.experience-tech-tools {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.experience-tech-item {
  min-width: 0;
  font-size: 0.74rem;
}

.experience-gallery {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(177,213,255,0.12);
}

.experience-gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.experience-gallery-head .experience-tech-label {
  margin-bottom: 0;
}

.experience-gallery-head small {
  color: var(--muted);
  font-size: 0.72rem;
}

.release-grid,
.reno-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.release-placeholder,
.reno-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,120,212,0.13), rgba(7,14,23,0.88));
  color: var(--blue-3);
  text-align: center;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.release-placeholder { aspect-ratio: 1 / 1; }
.reno-placeholder { aspect-ratio: 4 / 3; }
.release-placeholder small,
.reno-placeholder small { color: var(--muted); font-size: 0.66rem; font-weight: 750; letter-spacing: 0; }

.personal-editorial {
  position: relative;
  z-index: 1;
  max-width: 950px;
  padding: clamp(1rem, 2.5vw, 1.5rem) 0;
}

.personal-kicker {
  margin-bottom: 0.6rem;
  color: var(--blue-3);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.personal-editorial .personal-lead {
  max-width: 780px;
  margin-bottom: 0.85rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 850;
  line-height: 1.12;
}

.personal-editorial > p:not(.personal-kicker):not(.personal-lead) {
  max-width: 820px;
  color: var(--text-soft);
}

.personal-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.personal-interests span {
  padding: 0.55rem 0.75rem;
  border-bottom: 2px solid var(--blue-2);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.visitor-status-copy {
  max-width: 900px;
}

.contact-panel.section-panel {
  display: block;
}

.contact-rail {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  align-items: end;
  gap: 2rem;
}

.contact-primary strong {
  display: block;
  margin: 0.45rem 0 0.55rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  overflow-wrap: anywhere;
}

.contact-primary p {
  max-width: 620px;
  color: var(--text-soft);
}

.contact-actions-clean {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
}

.copy-status {
  display: block;
  min-height: 1.2em;
  margin-top: 0.55rem;
  color: var(--blue-3);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .profile-summary-grid,
  .contact-rail { grid-template-columns: 1fr; }
  .trait-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience-tech-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .release-grid,
  .reno-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .trait-strip,
  .experience-tech-tools,
  .contact-actions-clean { grid-template-columns: 1fr; }
  .release-grid,
  .reno-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   2026 refinement v6
   ========================================================= */

/* Hero: retain the original composition, align portrait with the heading,
   reduce the portrait height so the proof row follows the hero more tightly. */
.hero-section {
  padding-top: clamp(3.8rem, 6vw, 5.8rem);
  padding-bottom: 1.35rem;
}

.hero-eyebrow {
  margin-bottom: 1.1rem;
}

.hero-grid-aligned {
  align-items: start;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(2.45rem, 4.25vw, 4.55rem);
  line-height: 1.01;
}

.hero-lede {
  max-width: 790px;
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.28vw, 1.15rem);
  line-height: 1.52;
}

.hero-side {
  align-self: start;
}

.profile-frame {
  height: clamp(285px, 27vw, 335px);
}

.profile-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 18%;
}





.proof-section {
  padding-top: 0.35rem;
  padding-bottom: 2.4rem;
}

.proof-card {
  min-height: 120px;
}

.proof-card p {
  max-width: 21ch;
  font-size: 0.78rem;
  line-height: 1.34;
}

/* Long-form text gets clean paragraph justification; short labels remain left aligned. */
.hero-lede,
.profile-narrative > p:not(.profile-lead),
.section-intro,
.capability-copy p,
.project-main > p,
.mini-project > p:not(.project-subtitle):not(.stack-line),
.experience-panel > p,
.education-card > p:not(.grade-line):not(.institution-line):not(.education-focus),
.personal-interest-row p,
.contact-copy > p {
  text-align: justify;
  text-align-last: left;
  hyphens: none;
}

/* Profile */
.profile-narrative {
  position: relative;
  z-index: 1;
  padding: clamp(1rem, 2.3vw, 1.55rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 17, 28, 0.62);
}

.profile-narrative .profile-lead {
  max-width: 920px;
  margin-bottom: 0.75rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 850;
  line-height: 1.18;
}

.profile-narrative > p:not(.profile-lead) {
  max-width: 1040px;
  color: var(--text-soft);
}

.profile-narrative > p + p {
  margin-top: 0.7rem;
}

.profile-depth-line {
  padding-top: 0.7rem;
  border-top: 1px solid rgba(177, 213, 255, 0.12);
  color: var(--blue-3) !important;
  font-weight: 680;
}

.trait-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.trait-strip article {
  min-height: 145px;
}

/* Capabilities: tools are ordered by current familiarity and use a quiet visual meter. */
.capability-row {
  grid-template-columns: minmax(220px, 0.30fr) minmax(0, 0.70fr);
  gap: 1.2rem;
}

.capability-copy p {
  max-width: 34ch;
}

.capability-tool {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  row-gap: 0.34rem;
  min-height: 62px;
  align-items: center;
}

.capability-tool img,
.capability-monogram {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
}

.capability-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}




/* Project density and symmetry */
.project-panel {
  gap: 0.85rem;
}

.project-main .project-actions {
  margin-top: 0.85rem;
}

.supporting-grid.supporting-grid-nine {
  align-items: stretch;
}

.mini-project {
  min-height: 338px;
}

.mini-project .project-subtitle {
  min-height: 2.7em;
}

.mini-project > p:not(.project-subtitle):not(.stack-line) {
  min-height: 8.2em;
  line-height: 1.48;
}

.mini-project .stack-line {
  margin-top: auto;
  min-height: 3.1em;
}

.mini-project-actions {
  margin-top: 0.75rem;
}

/* Experience */
.experience-tech-tools {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.experience-tech-item {
  min-height: 54px;
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
}

.experience-gallery-head {
  justify-content: flex-start;
}

.release-placeholder,
.reno-placeholder {
  gap: 0;
}

.release-placeholder span,
.reno-placeholder span {
  color: var(--blue-3);
}

/* Personal: editorial rows instead of square cards. */
.personal-interest-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.personal-interest-row {
  display: grid;
  grid-template-columns: 60px 150px minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 112px;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 17, 28, 0.58);
}

.personal-interest-row:nth-child(2) {
  background: linear-gradient(90deg, rgba(0, 120, 212, 0.14), rgba(10, 26, 42, 0.58));
}

.personal-interest-row:last-child {
  border-bottom: 0;
}

.personal-interest-index {
  color: var(--blue-3);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.personal-interest-row h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
}

.personal-interest-row p {
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* Contact form */
.contact-panel.section-panel {
  display: grid;
  grid-template-columns: minmax(270px, 0.38fr) minmax(0, 0.62fr);
  align-items: start;
  gap: 1.3rem;
}

.contact-copy h3 {
  margin: 0.5rem 0 0.7rem;
}

.contact-copy > p {
  color: var(--text-soft);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1rem;
}

.contact-form {
  position: relative;
  z-index: 1;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 10, 16, 0.48);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field > span {
  color: var(--blue-3);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(177, 213, 255, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font: inherit;
  padding: 0.72rem 0.78rem;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #6f8092;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue-2);
  outline: 0;
  box-shadow: 0 0 0 2px rgba(74, 163, 255, 0.12);
}

.form-field-message {
  grid-column: 1 / -1;
}

.form-field textarea {
  resize: vertical;
  min-height: 132px;
}

.contact-form-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.contact-form-status {
  color: var(--blue-3);
  font-size: 0.8rem;
  font-weight: 760;
}

.form-honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .profile-frame {
    height: 330px;
  }

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

  .capability-row,
  .contact-panel.section-panel {
    grid-template-columns: 1fr;
  }

  .capability-copy p {
    max-width: none;
  }

  .personal-interest-row {
    grid-template-columns: 48px 120px minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .profile-frame {
    height: 300px;
  }

  .trait-strip,
  .capability-tools,
  .experience-tech-tools,
  .contact-links,
  .contact-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .personal-interest-row {
    grid-template-columns: 42px 1fr;
    align-items: start;
  }

  .personal-interest-row p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .trait-strip,
  .capability-tools,
  .experience-tech-tools,
  .contact-links,
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   2026 refinement v7
   ========================================================= */

/* Typography: one body face, one display face, mono only for technical notation. */
body,
button,
input,
textarea,
summary {
  font-family: var(--font);
}

h1,
h2,
h3,
.nav-logo,
.proof-card > span,
.trait-strip strong,
.education-head h3 {
  font-family: var(--font-display);
}

.project-subtitle,
.stack-line,
.tag-grid span,
.terminal-card,
.terminal-card code,
.project-index,
.aside-title,
.experience-tech-label,
.education-focus,
.module-code-cell strong,
.credential-code,
.capability-name {
  font-family: var(--font-mono);
}

.visitor-card strong,
.experience-panel p,
.education-card p,
.personal-interest-row p,
.contact-copy p {
  font-family: var(--font);
}

/* Hero now uses portrait only on the right. */
.hero-side {
  display: block;
}

.profile-frame {
  margin: 0;
}

/* Capabilities: ordered tools without artificial skill meters. */
.capability-tool {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0.6rem 0.7rem;
}

.capability-tool img,
.capability-monogram {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.capability-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Brand marks follow the same bordered container convention as the site. */
.brand-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0.38rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.94);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.experience-title-wrap,
.education-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.experience-title-wrap .experience-title-group,
.education-title-wrap h3 {
  min-width: 0;
}

.education-head {
  align-items: center;
}

/* Real experience imagery, square and symmetrical in both roles. */
.release-grid,
.reno-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.experience-image-tile {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5,10,16,0.72);
}

.experience-image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.experience-image-tile:hover img {
  transform: scale(1.025);
  filter: saturate(1.05) contrast(1.02);
}

/* Subject intentionally spans the full contact-form width. */
.form-field-subject {
  grid-column: 1 / -1;
}

/* Only the second item in a repeated group receives the blue alternate surface. */
.personal-interest-row:nth-child(2) {
  background: linear-gradient(90deg, rgba(0, 120, 212, 0.14), rgba(10, 26, 42, 0.58));
}

@media (max-width: 680px) {
  .brand-mark {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

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


/* =========================================================
   2026 refinement v8
   ========================================================= */

/* Keep justified body copy without automatic word hyphenation. */
p,
.hero-lede,
.profile-narrative > p,
.section-intro,
.capability-copy p,
.project-main > p,
.mini-project > p,
.experience-panel > p,
.education-card > p,
.personal-interest-row p,
.contact-copy > p {
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

/* Match portrait bottom to the hero action row while retaining the shared top edge. */
.hero-grid-aligned {
  align-items: stretch;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hero-copy::after {
  position: absolute;
  left: 0;
  bottom: -1.35rem;
  margin-top: 0;
}

.hero-side {
  display: flex;
  align-self: stretch;
}

.profile-frame {
  width: 100%;
  height: auto;
  min-height: 0;
  align-self: stretch;
  flex: 1 1 auto;
}

.profile-frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 18%;
}

/* New transparent brand artwork: preserve the site's framed container, not a white image matte. */
.brand-mark img {
  object-fit: contain;
}


/* =========================================================
   2026 refinement v9
   ========================================================= */

/* Brand artwork is already prepared for the dark UI; no frame or matte. */
.brand-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 680px) {
  .brand-mark {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
}


/* =========================================================
   2026 refinement v10
   ========================================================= */

/* Fade the hero artwork into the page background instead of ending on a hard edge. */
.hero-band {
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0) 58%, rgba(5, 7, 11, 0.34) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(5, 7, 11, 0.52) 0%, rgba(5, 7, 11, 0.42) 44%, rgba(5, 7, 11, 0.32) 100%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.08), rgba(5, 7, 11, 0.58)),
    url("../images/bg-1.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Keep the separator above the proof tiles equally spaced from the content above and below. */
.hero-section {
  padding-bottom: 1.5rem;
}

.hero-grid-aligned {
  align-items: start;
}

.hero-copy::after {
  position: static;
  display: block;
  width: min(100%, 680px);
  height: 1px;
  margin-top: 1.5rem;
  background: linear-gradient(90deg, var(--blue-2), rgba(159, 208, 255, 0.22), transparent);
}

.proof-section {
  padding-top: 0;
}

/* Portrait stays present but no longer dominates the hero. */
.hero-grid {
  grid-template-columns: minmax(0, 1.46fr) minmax(220px, 0.34fr);
}

.hero-side {
  width: min(100%, 260px);
  justify-self: end;
  align-self: start;
}

.profile-frame {
  width: 100%;
  height: clamp(235px, 22vw, 285px);
  min-height: 0;
  align-self: start;
  flex: none;
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

/* Flagship project artwork sits behind the content with a strong readability overlay. */
.project-stack > .project-panel {
  background-color: rgba(8, 16, 26, 0.94);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.project-stack > .project-panel:nth-child(1) {
  background-image:
    linear-gradient(90deg, rgba(5, 10, 18, 0.94) 0%, rgba(5, 10, 18, 0.88) 48%, rgba(5, 10, 18, 0.72) 100%),
    url("../images/projects/kolektria-bg.webp");
}

.project-stack > .project-panel:nth-child(2) {
  background-image:
    linear-gradient(90deg, rgba(5, 10, 18, 0.95) 0%, rgba(5, 10, 18, 0.89) 48%, rgba(5, 10, 18, 0.75) 100%),
    url("../images/projects/shadowlock-bg.webp");
}

.project-stack > .project-panel:nth-child(3) {
  background-image:
    linear-gradient(90deg, rgba(5, 10, 18, 0.93) 0%, rgba(5, 10, 18, 0.86) 48%, rgba(5, 10, 18, 0.69) 100%),
    url("../images/projects/adbox-bg.webp");
}

.project-stack > .project-panel:nth-child(4) {
  background-image:
    linear-gradient(90deg, rgba(5, 10, 18, 0.94) 0%, rgba(5, 10, 18, 0.87) 48%, rgba(5, 10, 18, 0.71) 100%),
    url("../images/projects/n3-bg.webp");
}

.project-stack > .project-panel .aside-block,
.project-stack > .project-panel .terminal-card {
  background: rgba(5, 10, 16, 0.72);
  backdrop-filter: blur(3px);
}

/* Contact labels follow the site's Title Case interaction convention. */
.contact-copy h3 {
  text-transform: none;
}

.form-field > span {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.76rem;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.32fr);
  }

  .hero-side {
    width: min(100%, 225px);
  }

  .profile-frame {
    height: 245px;
  }
}

@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    width: min(100%, 220px);
    justify-self: start;
  }

  .profile-frame {
    height: 245px;
  }
}

/* =========================================================
   2026 refinement v11
   ========================================================= */

/* Hero: text-led opening. The portrait now lives in Profile. */
.hero-grid {
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy {
  max-width: 980px;
}

/* Keep the background present, but let it blend softly into the page. */
.hero-band {
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0) 66%, rgba(5, 7, 11, 0.16) 84%, var(--bg) 100%),
    linear-gradient(90deg, rgba(5, 7, 11, 0.34) 0%, rgba(5, 7, 11, 0.22) 48%, rgba(5, 7, 11, 0.14) 100%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.02), rgba(5, 7, 11, 0.28)),
    url("../images/bg-1.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Profile: narrative + portrait share one row and one visual height. */
.profile-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.profile-content-grid .profile-narrative {
  min-width: 0;
}

.profile-frame-inline {
  width: 100%;
  height: auto;
  min-height: 100%;
  align-self: stretch;
  flex: none;
}

.profile-frame-inline img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

/* Flagship artwork: 01 and 02 stay untouched; 03 and 04 get only a light readability tint. */
.project-stack > .project-panel:nth-child(1) {
  background-image: url("../images/projects/kolektria-bg.webp");
}

.project-stack > .project-panel:nth-child(2) {
  background-image: url("../images/projects/shadowlock-bg.webp");
}

.project-stack > .project-panel:nth-child(3) {
  background-image:
    linear-gradient(rgba(5, 10, 18, 0.14), rgba(5, 10, 18, 0.14)),
    url("../images/projects/adbox-bg.webp");
}

.project-stack > .project-panel:nth-child(4) {
  background-image:
    linear-gradient(rgba(5, 10, 18, 0.14), rgba(5, 10, 18, 0.14)),
    url("../images/projects/n3-bg.webp");
}

.project-stack > .project-panel .project-main {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.68);
}

/* Contact keeps the section hierarchy but makes the direct route explicit. */
.contact-email-visible {
  display: inline-block;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  color: var(--blue-2);
  font-family: var(--font-mono);
  font-size: clamp(0.86rem, 1vw, 0.98rem);
  text-decoration: none;
  word-break: break-word;
}

.contact-email-visible:hover,
.contact-email-visible:focus-visible {
  color: var(--text);
}

@media (max-width: 760px) {
  .profile-content-grid {
    grid-template-columns: 1fr;
  }

  .profile-frame-inline {
    width: min(100%, 250px);
    height: 260px;
    min-height: 260px;
  }
}


/* =========================================================
   Credentials integrated into Education
   ========================================================= */
.education-credentials {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  margin-top: 0.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.education-credentials-heading {
  display: grid;
  gap: 0.45rem;
}

.education-credentials-heading p {
  max-width: 820px;
  margin: 0;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.education-section-panel .education-credentials .credentials-strip {
  position: relative;
  z-index: 1;
  box-shadow: none;
}


/* =========================================================
   v14 profile portrait placement
   Keep the portrait inside the Profile narrative row only.
   ========================================================= */
.profile-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 23vw, 285px);
  gap: clamp(1rem, 2vw, 1.65rem);
  align-items: stretch;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.profile-content-grid .profile-narrative {
  min-width: 0;
}

.profile-portrait {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.profile-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(74, 163, 255, 0.18), transparent 34%),
    linear-gradient(0deg, rgba(5, 7, 11, 0.10), transparent);
}

.profile-portrait::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-top: 1px solid var(--blue-2);
  border-right: 1px solid var(--blue-2);
  pointer-events: none;
}

.profile-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

@media (max-width: 760px) {
  .profile-content-grid {
    grid-template-columns: 1fr;
  }

  .profile-portrait {
    width: min(100%, 270px);
    height: 280px;
    min-height: 280px;
    justify-self: start;
  }
}

/* =========================================================
   v16 unified flagship artwork
   ========================================================= */
.project-stack > .project-panel {
  background-image:
    linear-gradient(90deg, rgba(3, 8, 16, 0.34) 0%, rgba(3, 8, 16, 0.20) 52%, rgba(3, 8, 16, 0.18) 100%),
    url("../images/projects/flagship-bg.webp");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.project-stack > .project-panel .aside-block,
.project-stack > .project-panel .terminal-card {
  background: rgba(5, 10, 16, 0.68);
}


/* =========================================================
   v17 final flagship unification + embedded YOU
   ========================================================= */
.project-stack > .project-panel:nth-child(1),
.project-stack > .project-panel:nth-child(2),
.project-stack > .project-panel:nth-child(3),
.project-stack > .project-panel:nth-child(4) {
  background-image: url("../images/projects/flagship-bg-v17.webp") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.projects-you-embed {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  padding-top: clamp(1.1rem, 2vw, 1.6rem);
  border-top: 1px solid var(--line);
}

.projects-you-heading {
  margin-bottom: 1rem;
}

.projects-you-embed .visitor-status-copy {
  margin-top: 0;
}

/* =========================================================
   v18 polish: flagship identity, MONITomy, credentials, personal
   ========================================================= */
.project-stack > .project-panel:nth-child(1),
.project-stack > .project-panel:nth-child(2),
.project-stack > .project-panel:nth-child(3),
.project-stack > .project-panel:nth-child(4) {
  background-image:
    linear-gradient(90deg, rgba(3, 8, 16, 0.36) 0%, rgba(3, 8, 16, 0.30) 55%, rgba(3, 8, 16, 0.34) 100%),
    url("../images/projects/flagship-bg-v17.webp") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.project-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.2rem;
}

.project-heading-copy {
  min-width: 0;
}

.project-heading-copy .project-index {
  margin-bottom: 0.9rem;
}

.project-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  justify-self: end;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.32));
}

.education-section-panel .education-credentials .credentials-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.education-section-panel .credential-item {
  min-height: 132px;
  padding: 1rem 1.05rem;
}

.education-section-panel .credential-code {
  margin-bottom: 0.55rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.education-section-panel .credential-item strong {
  font-size: 0.94rem;
  line-height: 1.25;
}

.education-section-panel .credential-item p {
  margin-top: 0.25rem;
  font-size: 0.82rem;
}

.projects-you-embed {
  margin-top: clamp(1.35rem, 2.8vw, 2.15rem);
  padding-top: clamp(1.2rem, 2.3vw, 1.8rem);
  border-top: 1px solid var(--line);
}

.projects-you-brand {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.15rem, 2.5vw, 2rem);
  min-height: 150px;
  margin-bottom: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(8, 17, 28, 0.92), rgba(8, 20, 34, 0.62));
  overflow: hidden;
}

.projects-you-logo {
  display: block;
  width: min(100%, 240px);
  height: auto;
  object-fit: contain;
}

.projects-you-copy h3 {
  margin: 0.45rem 0 0.5rem;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.projects-you-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--text-soft);
}

.personal-intro {
  margin-bottom: 1rem;
}

.personal-interest-row {
  min-height: 104px;
}

@media (max-width: 760px) {
  .project-heading-row {
    grid-template-columns: minmax(0, 1fr) 60px;
  }

  .project-logo {
    width: 60px;
    height: 60px;
  }

  .projects-you-brand {
    grid-template-columns: 1fr;
  }

  .projects-you-logo {
    width: min(100%, 220px);
  }

  .education-section-panel .education-credentials .credentials-strip {
    grid-template-columns: 1fr;
  }

  .education-section-panel .credential-item {
    min-height: auto;
  }
}


/* =========================================================
   v20 mobile + coverage refinement
   ========================================================= */

/* Whole words only. Do not insert automatic hyphenation anywhere. */
html,
body,
body * {
  -webkit-hyphens: none !important;
  hyphens: none !important;
}

/* Long machine-readable strings may wrap only when they would overflow. */
.contact-email-visible,
.terminal-card code {
  overflow-wrap: anywhere;
}

/* Coverage is intentionally a moving context rail, not a fixed stack list. */
.coverage-block {
  min-width: 0;
  overflow: hidden;
}

.coverage-viewport {
  position: relative;
  width: 100%;
  margin-top: 0.7rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.coverage-track {
  display: flex;
  width: max-content;
  animation: coverage-drift 34s linear infinite;
  will-change: transform;
}

.coverage-set {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
  padding-right: 0.5rem;
}

.coverage-set span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 2rem;
  padding: 0.36rem 0.58rem;
  border: 1px solid rgba(177, 213, 255, 0.16);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
  font-family: "Cascadia Mono", "Consolas", "SFMono-Regular", monospace;
  font-size: 0.76rem;
  font-weight: 760;
  white-space: nowrap;
}

@keyframes coverage-drift {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.copy-email-button:disabled {
  cursor: default;
  transform: none;
  border-color: rgba(177, 213, 255, 0.16);
  background: rgba(105, 116, 128, 0.42);
  color: rgba(232, 239, 247, 0.62);
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .coverage-track {
    animation: none;
    transform: translateX(0);
  }
}

@media (max-width: 760px) {
  /* Profile portrait follows the same full-width column as the narrative tile. */
  .profile-portrait {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
    justify-self: stretch;
  }

  /* Achievement cards become compact number + description rows. */
  .proof-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .proof-card {
    min-height: 82px;
    padding: 0.85rem 1rem;
    grid-template-columns: minmax(72px, 0.32fr) minmax(0, 1fr);
    align-items: center;
    align-content: center;
    column-gap: 0.9rem;
  }

  .proof-card span {
    align-self: center;
    font-size: clamp(1.8rem, 10vw, 2.45rem);
    line-height: 1;
  }

  .proof-card p {
    max-width: none;
    margin: 0;
    align-self: center;
    font-size: 0.82rem;
    line-height: 1.32;
    text-align: left;
  }
}

/* =========================================================
   v21 final spacing + compact MONITomy
   ========================================================= */

/* Give the degree coverage shortcut room to breathe between prose blocks. */
.education-focus {
  margin-top: 1rem;
  margin-bottom: 0.95rem;
}

/* MONITomy is supporting evidence, so keep the record useful without letting it dominate Projects. */
.projects-you-embed {
  margin-top: 1.2rem;
  padding-top: 1rem;
}

.projects-you-brand {
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 1rem;
  min-height: 0;
  margin-bottom: 0.7rem;
  padding: 0.75rem 0.9rem;
}

.projects-you-logo {
  width: 72px;
  max-height: 72px;
  justify-self: center;
}

.projects-you-copy p {
  max-width: none;
  font-size: 0.88rem;
  line-height: 1.45;
}

.projects-you-embed .visitor-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
}

.projects-you-embed .visitor-card {
  min-height: 78px;
  padding: 0.7rem 0.75rem;
}

.projects-you-embed .visitor-card span {
  margin-bottom: 0.35rem;
  font-size: 0.58rem;
  letter-spacing: 0.09em;
}

.projects-you-embed .visitor-card strong {
  font-size: 0.86rem;
  line-height: 1.25;
}

@media (max-width: 980px) {
  .projects-you-embed .visitor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .projects-you-brand {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.65rem 0.7rem;
  }

  .projects-you-logo {
    width: 52px;
    max-height: 52px;
  }

  .projects-you-copy .panel-label {
    font-size: 0.62rem;
  }

  .projects-you-copy p {
    font-size: 0.78rem;
    line-height: 1.38;
  }

  .projects-you-embed .visitor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .projects-you-embed .visitor-card {
    min-height: 68px;
    padding: 0.6rem 0.65rem;
  }

  .projects-you-embed .visitor-card strong {
    font-size: 0.78rem;
  }
}


/* =========================================================
   v22 MONITomy logo emphasis
   ========================================================= */
.projects-you-brand {
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: center;
}

.projects-you-logo {
  width: 108px;
  max-height: 108px;
}

@media (max-width: 600px) {
  .projects-you-brand {
    grid-template-columns: 1fr;
    grid-template-areas:
      "visit-label"
      "visit-logo"
      "visit-copy";
    justify-items: center;
    gap: 0.55rem;
    text-align: center;
    padding: 0.75rem;
  }

  .projects-you-copy {
    display: contents;
  }

  .projects-you-copy .panel-label {
    grid-area: visit-label;
  }

  .projects-you-logo {
    grid-area: visit-logo;
    width: 86px;
    max-height: 86px;
  }

  .projects-you-copy p {
    grid-area: visit-copy;
    margin: 0;
    max-width: 32rem;
  }
}

/* =========================================================
   v23 final visual alignment
   ========================================================= */
/* Keep the shared flagship artwork visible, but subordinate to project content. */
.project-stack > .project-panel:nth-child(1),
.project-stack > .project-panel:nth-child(2),
.project-stack > .project-panel:nth-child(3),
.project-stack > .project-panel:nth-child(4) {
  background-image:
    linear-gradient(90deg, rgba(3, 8, 16, 0.58) 0%, rgba(3, 8, 16, 0.49) 55%, rgba(3, 8, 16, 0.53) 100%),
    url("../images/projects/flagship-bg-v17.webp") !important;
}

/* Mobile MONITomy follows the same left-aligned convention as the rest of the site. */
@media (max-width: 600px) {
  .projects-you-brand {
    justify-items: start;
    text-align: left;
  }

  .projects-you-logo {
    justify-self: start;
  }

  .projects-you-copy p {
    justify-self: start;
    text-align: left;
  }
}

/* =========================================================
   v26 final portfolio refinement
   ========================================================= */

/* Supporting work is intentionally full-width and stacked for readability. */
.supporting-grid,
.supporting-grid-nine {
  grid-template-columns: 1fr !important;
  gap: 0.8rem;
}

.supporting-work > summary {
  border-color: rgba(74, 163, 255, 0.72);
  background: linear-gradient(180deg, rgba(0, 120, 212, 0.98), rgba(0, 94, 168, 0.98));
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 120, 212, 0.16);
}

.supporting-work > summary:hover {
  border-color: rgba(159, 208, 255, 0.88);
  background: linear-gradient(180deg, rgba(13, 133, 226, 1), rgba(0, 105, 188, 1));
}

.mini-project {
  min-height: 0;
  width: 100%;
}

.supporting-coverage {
  min-width: 0;
  margin-top: 0.85rem;
  padding-top: 0.72rem;
  border-top: 1px solid rgba(177, 213, 255, 0.12);
}

.supporting-coverage .aside-title {
  display: block;
  margin-bottom: 0;
}

/* Coverage is deliberately a little faster while remaining background context. */
.coverage-track {
  animation-duration: 28s;
}

/* Credentials reuse the flagship visual language. */
.education-section-panel .credential-item {
  background-image:
    linear-gradient(90deg, rgba(3, 8, 16, 0.72) 0%, rgba(3, 8, 16, 0.62) 55%, rgba(3, 8, 16, 0.68) 100%),
    url("../images/projects/flagship-bg-v17.webp") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

/* MONITomy heading/logo sit outside the visit-record tiles, matching Credentials. */
.projects-you-brand,
.projects-you-brand.projects-you-heading-outside {
  min-height: 0;
  margin-bottom: 0.8rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.projects-you-heading-outside .projects-you-logo {
  width: 112px;
  max-height: 112px;
}

.projects-you-heading-outside .projects-you-copy p {
  max-width: 760px;
}

@media (max-width: 600px) {
  .projects-you-brand,
  .projects-you-brand.projects-you-heading-outside {
    grid-template-columns: 1fr;
    grid-template-areas:
      "visit-label"
      "visit-logo"
      "visit-copy";
    justify-items: start;
    gap: 0.5rem;
    padding: 0;
    text-align: left;
  }

  .projects-you-heading-outside .projects-you-logo {
    width: 92px;
    max-height: 92px;
    justify-self: start;
  }

  .projects-you-heading-outside .projects-you-copy p {
    justify-self: start;
    text-align: left;
  }
}


/* =========================================================
   v28 supporting work spacing
   ========================================================= */
.supporting-grid .mini-project .project-subtitle {
  min-height: 0 !important;
  margin-top: 0.25rem;
  margin-bottom: 0.45rem;
}

.supporting-grid .mini-project > p:not(.project-subtitle):not(.stack-line) {
  min-height: 0 !important;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.48;
}

.supporting-grid .mini-project .supporting-coverage {
  margin-top: 0.65rem;
}
