@font-face {
  font-family: "Neue Montreal";
  src: url("assets/fonts/NeueMontreal-Regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("assets/fonts/NeueMontreal-Medium.woff2") format("woff2");
  font-display: swap;
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Neue Montreal";
  src: url("assets/fonts/NeueMontreal-Bold.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg: #101418;
  --surface: #171d23;
  --surface-strong: #222b35;
  --text: #f5f5f6;
  --text-soft: #adb8c2;
  --brand: #95b2c4;
  --brand-soft: #bfd2df;
  --line: #2d3743;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  --radius: 1.1rem;
  --radius-sm: 0.75rem;
  --container: min(1120px, 92vw);
  --header-h: 4.6rem;
  --transition: 260ms ease;
  --font-title: "Neue Montreal", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Neue Montreal", "Avenir Next", "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  --bg: #f5f5f6;
  --surface: #ffffff;
  --surface-strong: #edf1f4;
  --text: #1f1f1f;
  --text-soft: #666a72;
  --brand: #95b2c4;
  --brand-soft: #6f889a;
  --line: #d3d8de;
  --shadow: 0 18px 36px rgba(31, 31, 31, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  background: radial-gradient(circle at 8% -10%, #1c2a35, transparent 43%),
    radial-gradient(circle at 95% 0%, #18222c, transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  min-height: 100vh;
}

body.menu-open {
  overflow: hidden;
}

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

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: clamp(4.8rem, 8vw, 7rem) 0;
}

.section-head {
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
  max-width: 52rem;
}

.eyebrow {
  color: var(--brand-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  line-height: 1.03;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.1rem, 2.1vw, 1.45rem);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 92%, #000 8%);
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--surface) 86%, transparent);
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-right: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  height: 2.2rem;
  min-width: 4.9rem;
  padding: 0 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.theme-toggle svg {
  width: 0.92rem;
  height: 0.92rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle-label {
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--surface-strong);
  border-color: color-mix(in oklab, var(--line) 70%, var(--brand) 30%);
  transform: translateY(-1px);
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  position: relative;
  color: var(--text-soft);
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 1px;
  background: var(--brand-soft);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform-origin: left;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 2.85rem;
  height: 2.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
}

.menu-toggle span {
  width: 1.1rem;
  height: 1px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.22rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.22rem) rotate(-45deg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy h1 span {
  display: block;
  color: var(--brand-soft);
  margin-top: 0.2rem;
}

.hero-tagline {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  max-width: 34rem;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.hero-intro {
  max-width: 36rem;
}

.home-page .hero-copy p:not(.eyebrow) {
  text-align: justify;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  font-weight: 600;
  font-size: 0.87rem;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #0f1318;
  box-shadow: 0 12px 28px rgba(111, 136, 154, 0.34);
}

.btn-primary:hover {
  background: #aac0cf;
}

.btn-secondary {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--surface-strong);
  border-color: #4a5866;
}

.about-cta .btn-secondary {
  background: var(--brand);
  color: #0f1318;
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(149, 178, 196, 0.3);
}

.about-cta .btn-secondary:hover {
  background: #7f99b0;
  border-color: #7f99b0;
  box-shadow: 0 12px 28px rgba(127, 153, 176, 0.4);
}

.social-list {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.95rem;
  list-style: none;
  flex-wrap: wrap;
}

.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  transition: color var(--transition);
}

.social-list a:hover {
  color: var(--brand-soft);
}

.social-list svg {
  width: 1.02rem;
  height: 1.02rem;
  fill: currentColor;
}

.hero-media img {
  width: min(100%, 31rem);
  margin-left: auto;
  border-radius: calc(var(--radius) * 1.3);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.home-main {
  padding-bottom: 0;
}

.home-page {
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  grid-template-rows: var(--header-h) 1fr auto;
}

.home-page .home-main {
  min-height: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.home-page .home-hero {
  width: 100%;
  padding: 0;
}

.home-page .hero-grid {
  min-height: 0;
  height: 100%;
  align-items: center;
  grid-template-columns: 1.2fr 0.8fr;
  position: relative;
}

.home-page .hero-copy {
  justify-self: start;
  align-self: center;
  text-align: left;
  max-width: 40rem;
  padding-right: 3rem;
  position: relative;
  z-index: 2;
}

.home-page .hero-copy h1 {
  margin-bottom: 0.7rem;
}

.home-page .hero-copy .hero-tagline,
.home-page .hero-copy .hero-intro {
  margin-inline: 0;
}

.home-page .hero-cta,
.home-page .social-list {
  justify-content: flex-start;
}

.home-page .hero-media {
  align-self: end;
  justify-self: end;
  margin-top: 0;
  margin-right: -8rem;
  transform: none;
  z-index: 1;
}

.home-page .hero-media img {
  width: 34rem;
  height: auto;
  max-width: 34rem;
  max-height: calc(100vh - var(--header-h) - 3.9rem);
  object-fit: contain;
  object-position: right bottom;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 0;
  filter: grayscale(1);
  mix-blend-mode: screen;
  pointer-events: none;
}

.home-page .site-footer {
  position: relative;
  z-index: 6;
}

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

.quick-link-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  background: color-mix(in oklab, var(--surface) 86%, transparent);
  display: grid;
  gap: 0.45rem;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.quick-link-card:hover {
  transform: translateY(-2px);
  border-color: #43515f;
  background: var(--surface);
}

.quick-link-card h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.subpage-body .section {
  padding-top: clamp(5rem, 8vw, 7rem);
}

.sub-hero {
  padding-bottom: 2rem;
}

.about-hero-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: stretch;
}

.about-copy {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.about-copy .hero-intro {
  max-width: 34rem;
}

.about-copy p:not(.eyebrow):not(.hero-intro) {
  max-width: 34rem;
}

.about-photo {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.about-visual {
  position: relative;
  --about-image-left: 1%;
  --about-image-top: -22.2%;
  --about-image-width: 150%;
  --about-image-height: 180%;
  width: min(100%, 22rem);
  aspect-ratio: 1 / 1;
  margin-left: auto;
  overflow: visible;
  background: transparent;
}

.about-visual-image {
  position: absolute;
  left: var(--about-image-left);
  top: var(--about-image-top);
  width: var(--about-image-width);
  height: var(--about-image-height);
  object-fit: cover;
  object-position: center top;
  z-index: 2;
  filter: saturate(0.95) contrast(1.02);
}

.about-hero .sub-hero-grid {
  align-items: start;
}

.about-hero {
  background: color-mix(in oklab, var(--brand) 24%, #0f1318 76%);
  padding-bottom: 4rem;
}

.about-hero .eyebrow,
.about-hero h1,
.about-hero .hero-intro,
.about-hero .about-copy p {
  color: #f5f5f6;
}

.about-hero .about-copy p:not(.eyebrow):not(.hero-intro) {
  color: #ccd7df;
}

.about-hero .about-copy p:not(.eyebrow) {
  text-align: justify;
}

.about-hero .about-copy {
  padding: 0.2rem 0 0;
  margin-top: -1.1rem;
  transform: none;
}

.about-hero .about-copy .eyebrow {
  color: #d2e0e9;
}

.about-hero .hero-intro {
  max-width: 34rem;
}

.about-hero .about-photo {
  align-items: center;
}

.about-experience-list {
  display: grid;
  gap: 0.9rem;
}

.about-journey-surface {
  background: color-mix(in oklab, var(--brand) 20%, #0e1318 80%);
  margin-top: 0;
  padding-top: clamp(2.4rem, 4.5vw, 3.8rem);
}

.about-journey-surface .eyebrow,
.about-journey-surface h2,
.about-journey-surface .timeline-item h3,
.about-journey-surface .timeline-item p,
.about-journey-surface .timeline-item span {
  color: #f5f5f6;
}

.about-journey-surface .timeline-item {
  border-bottom-color: rgba(245, 245, 246, 0.22);
}

.about-journey-surface .timeline-item::before {
  background: #c7d9e5;
  border-color: color-mix(in oklab, var(--brand) 20%, #0e1318 80%);
}

.about-journey-surface .timeline-experience::before {
  background: linear-gradient(180deg, #c7d9e5, rgba(245, 245, 246, 0.3));
}

.about-skills-surface {
  background: #16202b;
}

.about-skills-surface .eyebrow,
.about-skills-surface h2,
.about-skills-surface .skill-block h3,
.about-skills-surface .skill-block span {
  color: var(--text);
}

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

.skill-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  background: rgba(191, 210, 223, 0.08);
  display: grid;
  gap: 0.55rem;
}

.skill-block span {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-soft);
}

.skill-block h3 {
  line-height: 1.15;
}

.about-journey {
  padding-top: clamp(2.4rem, 4.5vw, 3.8rem);
}

.about-journey .section-head {
  margin-bottom: clamp(1.2rem, 2.6vw, 2rem);
}

.timeline-experience {
  position: relative;
  padding-left: 2rem;
}

.timeline-experience::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0.55rem;
  width: 2px;
  background: linear-gradient(180deg, color-mix(in oklab, var(--brand-soft) 82%, #fff 18%), color-mix(in oklab, var(--line) 90%, #000 10%));
}

.timeline-item {
  position: relative;
  padding: 0.9rem 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
}

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

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 1.1rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--brand);
  border: 2px solid #26313d;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent);
}

.timeline-item span {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-soft);
  font-weight: 700;
}

.timeline-item p {
  max-width: 28rem;
}

.about-education-surface {
  background: #121a22;
  color: var(--text);
}

.about-education-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.about-education-surface .eyebrow,
.about-education-surface h2,
.about-education-surface .timeline-item h3,
.about-education-surface .timeline-item p,
.about-education-surface .timeline-item span {
  color: var(--text);
}

.about-education-surface .section-head {
  max-width: 48rem;
}

.about-education-timeline {
  padding-left: 0;
}

.about-education-timeline::before {
  left: 0.45rem;
  top: 0.35rem;
  bottom: 0.35rem;
  background: linear-gradient(180deg, #95b2c4, #62788a);
}

.about-education-timeline .timeline-item {
  border-bottom-color: rgba(245, 245, 246, 0.14);
  padding-left: 1.4rem;
}

.about-education-timeline .timeline-item::before {
  left: -0.02rem;
  top: 1.05rem;
  background: var(--brand);
  border-color: #121a22;
}

.languages-panel {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding-top: 2.75rem;
}

.panel-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-soft);
}

.language-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  background: #1b232d;
  border-radius: 999px;
  padding: 0.95rem 1.15rem;
}

.language-pill-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.language-pill-level {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-soft);
}

.about-software-surface {
  background: #141c25;
  color: var(--text);
}

.about-software-surface .eyebrow,
.about-software-surface h2 {
  color: var(--text);
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 2.5rem;
}

.software-card {
  display: grid;
  gap: 1rem;
}

.software-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.software-badge {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 0.85rem;
  background: #0f141a;
  color: #f5f5f6;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.software-meta strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
}

.software-bar {
  height: 0.34rem;
  background: #33404d;
  border-radius: 999px;
  overflow: hidden;
}

.software-bar span {
  display: block;
  width: var(--level);
  height: 100%;
  border-radius: inherit;
  background: var(--brand-soft);
}

.about-software-surface .section-head {
  margin-bottom: clamp(1.2rem, 2.6vw, 2rem);
}

.about-skills-languages-surface {
  background: #16212c;
  color: var(--text);
  padding-top: clamp(2.4rem, 4vw, 3.4rem);
}

.about-skills-languages-surface .eyebrow,
.about-skills-languages-surface h2 {
  color: var(--text);
}

.about-skills-languages-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
}

.about-skills-languages-grid .languages-panel {
  padding-top: 0;
}

.about-info-surface,
.about-extra-surface {
  background: #111923;
  color: var(--text);
}

.about-info-surface {
  padding-bottom: clamp(2.4rem, 4vw, 3.4rem);
}

.about-extra-surface {
  padding-top: clamp(2.2rem, 4vw, 3rem);
}

.about-info-block {
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

.about-info-block:last-child {
  margin-bottom: 0;
}

.about-block-head {
  margin-bottom: 0.8rem;
}

.about-block-head h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.5rem);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-block-head h2::after {
  content: "";
  height: 2px;
  flex: 1;
  background: var(--brand);
  opacity: 0.9;
}

.timeline-horizontal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.timeline-horizontal-single {
  grid-template-columns: 1fr;
}

.timeline-horizontal-item {
  position: relative;
  border-top: 2px solid var(--brand);
  padding: 1.05rem 0 0 1.55rem;
  display: grid;
  gap: 0.5rem;
}

.timeline-horizontal-item::before {
  content: "";
  position: absolute;
  top: -0.45rem;
  left: 0;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 999px;
  background: var(--brand);
}

.timeline-horizontal-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.timeline-horizontal-top h3 {
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
}

.timeline-horizontal-top span {
  color: var(--brand-soft);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.timeline-horizontal-item p {
  color: var(--text-soft);
  max-width: 64ch;
}

.timeline-horizontal-item p strong {
  color: var(--text);
}

.about-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.8rem, 4vw, 3rem);
}

.about-list {
  list-style: disc;
  padding-left: 1.6rem;
  display: grid;
  gap: 0.75rem;
}

.about-list li {
  color: var(--text-soft);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.about-contact-list {
  list-style: none;
  padding-left: 0;
}

.about-contact-list li {
  position: relative;
  padding-left: 1.65rem;
  font-size: 1.05rem;
}

.about-contact-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.52rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--brand);
}

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

.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: #4d5f6f;
  box-shadow: var(--shadow);
}

.project-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.project-thumb-image {
  background: #1e2731;
}

.project-thumb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb-video {
  position: relative;
  background: #0f141a;
}

.project-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-thumb-video span {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 1;
  color: #f5f5f6;
  background: rgba(15, 19, 24, 0.55);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-thumb-empty {
  display: grid;
  place-items: center;
  background: linear-gradient(130deg, #223242, #1a2430);
  color: #a9b7c4;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.72rem;
}

.project-meta {
  padding: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.project-meta span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-soft);
  font-weight: 700;
}

.contact-wrap {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

.contact-wrap > p {
  margin-inline: auto;
  max-width: 40rem;
}

.contact-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.contact-item {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  display: grid;
  gap: 0.35rem;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.contact-item:hover {
  border-color: #4d5f6f;
  background: var(--surface);
  transform: translateY(-1px);
}

.contact-item strong {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

.contact-item span {
  color: var(--text);
  font-size: 0.95rem;
}

.contact-inline-link {
  color: var(--text);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.contact-inline-link:hover {
  color: var(--brand-soft);
}

.contact-actions {
  margin-top: 1.3rem;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
}

.footer-wrap {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-wrap p {
  font-size: 0.86rem;
  width: 100%;
  text-align: center;
}

.footer-wrap nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-wrap nav a {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-wrap nav a:hover {
  color: var(--brand-soft);
}

.project-modal {
  margin: auto;
  border: 0;
  width: min(85rem, 95vw);
  padding: 0;
  background: transparent;
}

.project-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(3px);
}

.project-modal-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  box-shadow: var(--shadow);
  animation: modalIn 280ms ease;
}

.modal-media-wrap {
  display: grid;
  gap: 0.9rem;
  background: #1f2731;
}

.modal-media-stage {
  min-height: 32rem;
  background: #1f2731;
  display: grid;
  position: relative;
}

.modal-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-media-video {
  background: #000;
}

.modal-media-nav {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 0.95rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), opacity var(--transition), transform var(--transition);
}

.modal-media-nav:hover {
  background: var(--surface-strong);
  transform: translateY(-1px);
}

.modal-media-nav:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.modal-media-fab {
  position: absolute;
  bottom: 1rem;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 1.15rem;
  line-height: 1;
  background: rgba(15, 19, 24, 0.7);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f5f5f6;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.modal-media-fab-left {
  left: 1rem;
  right: auto;
}

.modal-media-fab-right {
  right: 1rem;
  left: auto;
}

.modal-content {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 32rem;
  overflow-y: auto;
  min-width: 0;
}

.modal-title {
  color: var(--text);
}

.modal-category {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-soft);
  font-weight: 700;
}

.modal-description,
.modal-stack {
  font-size: 0.95rem;
}

.modal-description {
  line-height: 1.55;
  max-width: none;
  text-align: justify;
}

.modal-description p + p {
  margin-top: 0.75rem;
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.55rem;
}

.modal-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.modal-links a svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: text-bottom;
}

.modal-links a:hover {
  background: var(--surface-strong);
  border-color: color-mix(in oklab, var(--line) 65%, var(--brand) 35%);
  transform: translateY(-1px);
}

.modal-stack {
  color: var(--text);
}

.modal-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.tool-logo {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in oklab, var(--line) 72%, #000 28%);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f5f5f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tool-logo--photoshop {
  background: linear-gradient(145deg, #001e36, #00345f);
  color: #31a8ff;
}

.tool-logo--illustrator {
  background: linear-gradient(145deg, #321300, #5a2200);
  color: #ff9a00;
}

.tool-logo--indesign {
  background: linear-gradient(145deg, #390016, #680029);
  color: #ff5aa5;
}

.tool-logo--premiere {
  background: linear-gradient(145deg, #160b2f, #2a1453);
  color: #d3b7ff;
}

.tool-logo--aftereffects {
  background: linear-gradient(145deg, #1a1035, #32205f);
  color: #cfb7ff;
}

.tool-logo--blender {
  background: linear-gradient(145deg, #1a2f47, #2f5f8e);
  color: #ffb15e;
}

.tool-logo--lightroom {
  background: linear-gradient(145deg, #041b2b, #0c3552);
  color: #7cd3ff;
}

.tool-logo--figma {
  background: linear-gradient(145deg, #232931, #2f3843);
  color: #f5f5f6;
}

.tool-logo--canva {
  background: linear-gradient(145deg, #11334d, #00a2c7);
  color: #dffbff;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  z-index: 45;
}

.back-to-top:hover {
  background: var(--surface-strong);
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms ease, transform 620ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal[data-reveal="left"] {
  transform: translateX(28px);
}

.reveal[data-reveal="right"] {
  transform: translateX(-28px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

:root[data-theme="light"] body {
  background: radial-gradient(circle at 8% -10%, #dde7ef, transparent 43%),
    radial-gradient(circle at 95% 0%, #ebedf0, transparent 35%),
    var(--bg);
}

:root[data-theme="light"] .home-page .hero-media img {
  mix-blend-mode: multiply;
}

:root[data-theme="light"] .btn-primary {
  color: #1f1f1f;
}

:root[data-theme="light"] .btn-primary:hover {
  background: #7f9db1;
}

:root[data-theme="light"] .btn-secondary:hover {
  border-color: #b5bec8;
}

:root[data-theme="light"] .about-cta .btn-secondary {
  color: #ffffff;
}

:root[data-theme="light"] .quick-link-card:hover {
  border-color: #b7c0ca;
}

:root[data-theme="light"] .about-hero {
  background: color-mix(in oklab, var(--brand) 48%, #1f1f1f 52%);
}

:root[data-theme="light"] .about-hero .about-copy p:not(.eyebrow):not(.hero-intro) {
  color: #dde5eb;
}

:root[data-theme="light"] .about-hero .about-copy .eyebrow {
  color: #c5d7e3;
}

:root[data-theme="light"] .about-journey-surface {
  background: color-mix(in oklab, var(--brand) 34%, #1f1f1f 66%);
}

:root[data-theme="light"] .about-journey-surface .timeline-item::before {
  border-color: color-mix(in oklab, var(--brand) 34%, #1f1f1f 66%);
}

:root[data-theme="light"] .about-skills-surface {
  background: #dfe9f2;
}

:root[data-theme="light"] .about-skills-surface .eyebrow,
:root[data-theme="light"] .about-skills-surface h2,
:root[data-theme="light"] .about-skills-surface .skill-block h3,
:root[data-theme="light"] .about-skills-surface .skill-block span {
  color: #1f1f1f;
}

:root[data-theme="light"] .skill-block {
  background: rgba(255, 255, 255, 0.78);
}

:root[data-theme="light"] .timeline-item::before {
  border-color: #f1f4f7;
}

:root[data-theme="light"] .about-education-surface {
  background: #f5f5f6;
}

:root[data-theme="light"] .about-education-timeline::before {
  background: linear-gradient(180deg, #95b2c4, #d4e1ea);
}

:root[data-theme="light"] .about-education-timeline .timeline-item {
  border-bottom-color: rgba(31, 31, 31, 0.12);
}

:root[data-theme="light"] .about-education-timeline .timeline-item::before {
  border-color: #f5f5f6;
}

:root[data-theme="light"] .language-pill-row {
  background: #ffffff;
}

:root[data-theme="light"] .about-software-surface {
  background: #edf2f6;
}

:root[data-theme="light"] .software-badge {
  background: #1f1f1f;
}

:root[data-theme="light"] .software-bar {
  background: #d4d9df;
}

:root[data-theme="light"] .about-skills-languages-surface {
  background: #e4edf4;
}

:root[data-theme="light"] .about-info-surface,
:root[data-theme="light"] .about-extra-surface {
  background: #f5f5f6;
}

:root[data-theme="light"] .project-card:hover {
  border-color: #b6c0ca;
}

:root[data-theme="light"] .project-thumb-empty {
  background: linear-gradient(130deg, #dee7ef, #c9d4de);
  color: #55606c;
}

:root[data-theme="light"] .contact-item:hover {
  border-color: #b6c0ca;
}

:root[data-theme="light"] .project-modal::backdrop {
  background: rgba(31, 31, 31, 0.46);
}

:root[data-theme="light"] .modal-media-wrap {
  background: #d4dce4;
}

:root[data-theme="light"] .modal-media-stage {
  background: #d4dce4;
}

:root[data-theme="light"] .modal-media-fab {
  background: rgba(255, 255, 255, 0.8);
  color: #1f1f1f;
}

:root[data-theme="light"] .tool-logo {
  border-color: #c2ccd6;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .project-modal-card {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    margin-inline: auto;
    width: min(100%, 26rem);
  }

  .about-hero-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    justify-content: center;
  }

  .about-visual {
    width: min(100%, 24rem);
  }

  .about-hero .about-copy {
    transform: none;
  }

  .about-hero {
    margin-top: 0.75rem;
  }

  .about-education-grid,
  .software-grid {
    grid-template-columns: 1fr;
  }

  .about-skills-languages-grid {
    grid-template-columns: 1fr;
  }

  .timeline-horizontal,
  .about-extra-grid {
    grid-template-columns: 1fr;
  }

  .timeline-horizontal-item {
    padding-left: 1.2rem;
  }

  .timeline-horizontal-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .languages-panel {
    padding-top: 0;
  }

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

  .quick-links-grid,
  .project-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-media-stage {
    min-height: 12rem;
    max-height: 17rem;
  }

  .home-page .home-main {
    min-height: auto;
    display: block;
  }

  .home-page {
    overflow: auto;
    min-height: 100vh;
    display: block;
  }

  .home-page .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .home-page .hero-media {
    align-self: auto;
    margin-top: 0;
  }

  .home-page .hero-media img {
    width: 512px;
    max-height: none;
    margin-bottom: 0;
  }
}

@media (max-width: 760px) {
  .theme-toggle {
    min-width: 4.4rem;
    height: 2.85rem;
    padding: 0 0.7rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + 0.55rem);
    right: 4vw;
    left: 4vw;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 1rem;
    display: grid;
    gap: 0.8rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .quick-links-grid,
  .project-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-wrap {
    flex-direction: column;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .section {
    padding: clamp(4rem, 12vw, 5.3rem) 0;
  }
}

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