/* ════════════════════════════════════════════════════
   ORIGIN AI — FOUNDER PORTFOLIO  |  founder.css
   Design tokens match the main website:
     --orange: #E07820   --bg: #111118   --bg2: #0d0d14
   ════════════════════════════════════════════════════ */

/* ── RESET & BASE ─────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

:root {
  --orange:    #E07820;
  --orange-d:  #c96a14;
  --white:     #ffffff;
  --bg:        #111118;
  --bg2:       #0d0d14;
  --border:    rgba(255,255,255,0.07);
  --text-dim:  rgba(255,255,255,0.55);
  --text-faint:rgba(255,255,255,0.30);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  font-family: 'Montserrat', sans-serif;
  color: var(--white);
  overflow-x: hidden;
}

/* ── SCROLL PROGRESS ──────────────────── */
.scroll-progress {
  position: fixed; top:0; left:0;
  height: 3px; width: 0%;
  background: var(--orange);
  z-index: 9999;
  pointer-events: none;
  transition: width .08s linear;
}

/* ── SIDE NAV DOTS ────────────────────── */
.side-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.side-nav__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: block;
  text-decoration: none;
  position: relative;
  transition: background .3s, transform .3s;
}
.side-nav__dot::after {
  content: attr(title);
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 10px; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.side-nav__dot:hover::after { opacity: 1; }
.side-nav__dot.active {
  background: var(--orange);
  transform: scale(1.5);
}
.side-nav__dot:hover { background: var(--orange); }

/* ── SHARED SECTION UTILITIES ─────────── */
.section-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; font-weight: 600;
  letter-spacing: .4em; color: var(--orange);
  text-transform: uppercase; margin-bottom: 20px;
}
.eyebrow-line {
  display: block; width: 32px; height: 2px;
  background: var(--orange); flex-shrink: 0;
}
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px,5vw,64px);
  font-weight: 900; line-height: .95;
  color: var(--white); letter-spacing: -.02em;
}
.section-heading em { font-style: italic; color: var(--orange); }

/* ── REVEAL ANIMATIONS ────────────────── */
.reveal {
  opacity: 0; transform: translateY(44px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,1,.36,1);
}
.reveal--right {
  transform: translateX(44px);
}
.reveal.visible {
  opacity: 1; transform: translate(0,0);
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%; min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--bg2);
}

/* Animated dot grid */
.hero__grid {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(224,120,32,.12) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 44px 44px; }
}

/* Orange radial glow */
.hero__glow {
  position: absolute; z-index: 0; pointer-events: none;
  top: -200px; right: -100px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,120,32,.12) 0%, transparent 65%);
}

/* ── TOP BAR ───
.hero__topbar {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  border-bottom: 1px solid var(--border);
  background: rgba(13,13,20,.6);
  backdrop-filter: blur(8px);
}
.hero__back {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.5); text-decoration: none;
  transition: color .2s;
}
.hero__back:hover { color: var(--orange); }
.hero__brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500; font-size: 14px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--white);
}
.hero__brand sup {
  font-size: 8px; letter-spacing: .08em;
  border-bottom: 1px solid rgba(255,255,255,.65);
  vertical-align: super;
}
.hero__social-top {
  display: flex; align-items: center; gap: 16px;
}
.hero__social-link {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4); text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.hero__social-link:hover {
  border-color: var(--orange); color: var(--orange);
  background: rgba(224,120,32,.08);
} */

/* ── HERO MAIN CONTENT ─── */
.hero__content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  padding: 140px 80px 80px;
  max-width: 1400px; margin: 0 auto; width: 100%;
  margin-top: -3%;
  margin-bottom: 4%;
}

/* Left */
.hero__eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; font-weight: 600;
  letter-spacing: .35em; color: var(--orange);
  text-transform: uppercase; margin-bottom: 28px;
}
.hero__eyebrow-line {
  display: block; width: 28px; height: 2px;
  background: var(--orange); flex-shrink: 0;
}

.hero__name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 7.5vw, 108px);
  font-weight: 900; line-height: 1.0;
  letter-spacing: -.04em; margin-bottom: 28px;
}
.hero__name-line {
  display: block; overflow: hidden;
  padding-bottom: .15em; margin-bottom: -.15em;
}
.hero__name-line span {
  display: block;
  transform: translateY(110%);
  animation: slideUp .9s cubic-bezier(.22,1,.36,1) forwards;
}
.hero__name-line:nth-child(1) span { animation-delay: .1s; }
.hero__name-line:nth-child(2) span { animation-delay: .25s; }
.hero__name-line:nth-child(3) span { animation-delay: .4s; }
.hero__name-line--orange span     { color: var(--orange); }
@keyframes slideUp { to { transform: translateY(0); } }

.hero__tagline {
  font-size: 15px; font-weight: 300; line-height: 1.8;
  color: var(--text-dim); max-width: 480px; margin-bottom: 28px;
}

/* Specialty pills */
.hero__pills {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px;
}
.hero__pill {
  padding: 6px 16px;
  border: 1px solid rgba(224,120,32,.3);
  background: rgba(224,120,32,.07);
  font-size: 10px; font-weight: 600;
  letter-spacing: .12em; color: var(--orange);
  text-transform: uppercase;
  transition: background .2s, border-color .2s;
}
.hero__pill:hover {
  background: rgba(224,120,32,.15);
  border-color: var(--orange);
}

/* CTA row */
.hero__cta-row {
  display: flex; align-items: center; gap: 24px; margin-bottom: 48px;
}
.hero__cta-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 36px;
  background: var(--orange); color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; text-decoration: none;
  transition: background .2s, gap .2s;
}
.hero__cta-btn:hover { background: var(--orange-d); gap: 18px; }
.hero__cta-ghost {
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.5); text-decoration: none;
  letter-spacing: .12em;
  transition: color .2s;
}
.hero__cta-ghost:hover { color: var(--white); }

/* Stats row */
.hero__stats-row {
  display: flex; gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}
.hero__stat {
  flex: 1; padding-right: 24px; margin-right: 24px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.hero__stat:last-child { border-right: none; }
.hero__stat-n {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 900; color: var(--white); line-height: 1;
}
.hero__stat-l {
  font-size: 9px; font-weight: 500; letter-spacing: .18em;
  color: var(--text-faint); text-transform: uppercase;
}

/* ── PHOTO FRAME ─── */
.hero__right {
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateX(40px);
  animation: fadeSlideLeft .9s cubic-bezier(.22,1,.36,1) .5s forwards;
}
@keyframes fadeSlideLeft { to { opacity:1; transform:translateX(0); } }

.hero__photo-frame {
  position: relative;
  width: 400px; height: 500px;
}
.hero__photo-ring {
  position: absolute; border-radius: 4px;
  border: 1px solid rgba(224,120,32,.3);
  pointer-events: none;
}
.hero__photo-ring--1 {
  inset: -12px -12px -12px -12px;
  animation: ringPulse 4s ease-in-out infinite;
}
.hero__photo-ring--2 {
  inset: -24px -24px -24px -24px;
  border-color: rgba(224,120,32,.12);
  animation: ringPulse 4s ease-in-out infinite .5s;
}
@keyframes ringPulse {
  0%,100% { opacity:.6; } 50% { opacity:1; }
}

.hero__photo-wrap {
  position: absolute; inset: 0;
  overflow: hidden; border-radius: 4px;
  background: #1a1a24;
}
.hero__photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.hero__photo-initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 72px; font-weight: 900;
  color: var(--orange);
}

/* Available badge */
.hero__badge {
  position: absolute; bottom: -18px; left: -18px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: var(--bg); border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  color: rgba(255,255,255,.7); z-index: 3;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #40c070;
  box-shadow: 0 0 0 3px rgba(64,192,112,.2);
  animation: availPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes availPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(64,192,112,.2); }
  50%      { box-shadow: 0 0 0 7px rgba(64,192,112,.06); }
}

/* Art overlay image (illustrated/AI version) */
.hero__photo-art {
  position: absolute; bottom: -40px; right: -50px;
  width: 180px; z-index: 4;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.6));
  pointer-events: none;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 9px; font-weight: 600; letter-spacing: .3em;
  color: var(--text-faint); text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: rgba(255,255,255,.15);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ''; position: absolute;
  top: -100%; width: 100%; height: 100%;
  background: var(--orange);
  animation: scrollDrop 1.6s ease-in-out infinite;
}
@keyframes scrollDrop { 0%{top:-100%} 100%{top:100%} }

/* ════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════ */
.about {
  padding: 120px 80px;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.about::before {
  content: ''; position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,120,32,.06) 0%, transparent 65%);
  pointer-events: none;
}
.about__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
  max-width: 1400px; margin: 0 auto;
}
.about__divider {
  width: 48px; height: 3px;
  background: var(--orange); margin: 28px 0;
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s .3s cubic-bezier(.22,1,.36,1);
}
.about__left.visible .about__divider { transform: scaleX(1); }
.about__body {
  font-size: 15px; font-weight: 300; line-height: 1.85;
  color: var(--text-dim); margin-bottom: 18px;
  text-align: justify;
}

/* Education */
.about__edu {
  margin-top: 36px;
  border-left: 2px solid rgba(224,120,32,.25);
  padding-left: 24px;
  display: flex; flex-direction: column; gap: 24px;
}
.about__edu-item {
  display: flex; align-items: flex-start; gap: 16px;
}
.about__edu-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0;
  margin-top: 5px;
  box-shadow: 0 0 0 3px rgba(224,120,32,.2);
}
.about__edu-degree {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--white); margin-bottom: 4px;
}
.about__edu-uni {
  display: block; font-size: 12px; font-weight: 400;
  color: var(--text-dim); margin-bottom: 3px;
}
.about__edu-year {
  display: block; font-size: 10px; font-weight: 600;
  letter-spacing: .15em; color: var(--orange);
  text-transform: uppercase;
}

/* Certifications */
.about__certs {
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.about__cert {
  font-size: 12px; font-weight: 400;
  color: var(--text-dim);
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.025);
  transition: border-color .2s, background .2s;
}
.about__cert:hover {
  border-color: rgba(224,120,32,.3);
  background: rgba(224,120,32,.04);
}

/* Right side cards */
.about__right { position: relative; }
.about__big-num {
  position: absolute; top: -20px; right: 0;
  font-family: 'Playfair Display', serif;
  font-size: 160px; font-weight: 900;
  color: rgba(224,120,32,.06); line-height: 1;
  pointer-events: none; user-select: none;
  letter-spacing: -.05em;
}
.about__cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3px; position: relative; z-index: 1;
}
.about__card {
  padding: 28px 24px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
  transition: background .25s, border-color .25s, transform .3s;
  position: relative; overflow: hidden;
}
.about__card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.about__card:hover { background: rgba(224,120,32,.05); border-color: rgba(224,120,32,.25); transform: translateY(-3px); }
.about__card:hover::before { transform: scaleX(1); }
.about__card-icon { font-size: 28px; }
.about__card-title { font-size: 14px; font-weight: 700; color: var(--white); }
.about__card-desc  { font-size: 11px; font-weight: 300; line-height: 1.6; color: var(--text-dim); }

/* ════════════════════════════════════════
   EXPERIENCE — TIMELINE
   ════════════════════════════════════════ */
.experience {
  padding: 120px 80px;
  background: var(--bg2);
  position: relative; overflow: hidden;
}
.experience::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -55deg, transparent, transparent 60px,
    rgba(224,120,32,.018) 60px, rgba(224,120,32,.018) 61px
  );
  pointer-events: none;
}
.experience__inner { max-width: 1000px; margin: 0 auto; }
.experience__header { margin-bottom: 72px; }

/* Timeline */
.timeline { display: flex; flex-direction: column; }
.timeline__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 32px;
  padding-bottom: 56px;
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__left {
  display: flex; flex-direction: column;
  align-items: center;
}
.timeline__dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(224,120,32,.4);
  background: var(--bg2);
  flex-shrink: 0;
  position: relative;
  margin-top: 6px; z-index: 1;
  transition: background .3s, border-color .3s;
}
.timeline__dot--current {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(224,120,32,.2);
}
.timeline__dot--current::after {
  content: ''; position: absolute;
  inset: -4px; border-radius: 50%;
  border: 1px solid rgba(224,120,32,.3);
  animation: dotRipple 2s ease-in-out infinite;
}
@keyframes dotRipple {
  0%  { transform: scale(1); opacity:.6; }
  100%{ transform: scale(2); opacity:0; }
}
.timeline__line {
  flex: 1; width: 1px; min-height: 40px;
  background: linear-gradient(to bottom, rgba(224,120,32,.4), rgba(224,120,32,.1));
  margin-top: 8px;
}

.timeline__body {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  padding: 28px 32px;
  transition: border-color .3s, background .3s;
}
.timeline__body:hover {
  border-color: rgba(224,120,32,.25);
  background: rgba(224,120,32,.03);
}
.timeline__item:hover .timeline__dot:not(.timeline__dot--current) {
  background: rgba(224,120,32,.2);
  border-color: var(--orange);
}

.timeline__header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
  margin-bottom: 18px;
}
.timeline__role {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 900; color: var(--white);
  margin-bottom: 4px;
}
.timeline__company {
  font-size: 12px; font-weight: 600; letter-spacing: .15em;
  color: var(--orange); text-transform: uppercase;
}
.timeline__period {
  font-size: 10px; font-weight: 600; letter-spacing: .15em;
  color: var(--text-faint); text-transform: uppercase;
  white-space: nowrap;
  padding: 5px 12px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.timeline__bullets {
  list-style: none;
  display: flex; flex-direction: column; gap: 9px;
  margin-bottom: 20px;
}
.timeline__bullets li {
  font-size: 13px; font-weight: 300; line-height: 1.7;
  color: var(--text-dim);
  padding-left: 18px; position: relative;
}
.timeline__bullets li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--orange); font-size: 11px;
}
.timeline__bullets li strong { color: var(--white); font-weight: 600; }

.timeline__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.timeline__tags span {
  font-size: 9px; font-weight: 600; letter-spacing: .1em;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  padding: 3px 9px; text-transform: uppercase;
  transition: color .2s, border-color .2s;
}
.timeline__body:hover .timeline__tags span {
  color: var(--orange); border-color: rgba(224,120,32,.2);
}

/* ════════════════════════════════════════
   PROJECTS
   ════════════════════════════════════════ */
.projects {
  padding: 120px 80px;
  background: var(--bg);
}
.projects__inner { max-width: 1400px; margin: 0 auto; }
.projects__header { margin-bottom: 64px; }
.projects__sub {
  font-size: 14px; font-weight: 300; line-height: 1.8;
  color: var(--text-dim); margin-top: 16px; max-width: 480px;
}

/* Grid */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

/* Base card */
.proj-card {
  position: relative;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .3s, transform .35s cubic-bezier(.22,1,.36,1);
  cursor: default;
}
.proj-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.22,1,.36,1); z-index: 5;
}
.proj-card:hover { border-color: rgba(224,120,32,.3); transform: translateY(-4px); z-index: 2; }
.proj-card:hover::after { transform: scaleX(1); }
.proj-card--wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }

/* Project number */
.proj-card__num {
  position: absolute; top: 20px; left: 20px; z-index: 3;
  font-family: 'Playfair Display', serif;
  font-size: 48px; font-weight: 900;
  color: rgba(255,255,255,.07); line-height: 1;
  pointer-events: none;
}

/* Image */
.proj-card__img {
  position: relative; height: 340px; overflow: hidden;
  background: #0a0a14;
  background-size: cover; background-position: center;
  transition: background-size .7s ease;
}
.proj-card__img--short { height: 200px; }
.proj-card:hover .proj-card__img { background-size: 110%; }
.proj-card__img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(11,11,20,.1) 0%, rgba(11,11,20,.7) 100%);
}

/* Body */
.proj-card__body { padding: 28px 32px; display: flex; flex-direction: column; flex: 1; }
.proj-card__domain {
  font-size: 9px; font-weight: 700; letter-spacing: .22em;
  color: var(--orange); text-transform: uppercase; margin-bottom: 10px;
}
.proj-card__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2vw, 26px); font-weight: 900;
  color: var(--white); line-height: 1.15; margin-bottom: 12px;
}
.proj-card__desc {
  font-size: 13px; font-weight: 300; line-height: 1.75;
  color: var(--text-dim); margin-bottom: 20px; flex: 1;
}
.proj-card__desc strong { color: var(--white); font-weight: 600; }
.proj-card__metrics {
  display: flex; gap: 24px; margin-bottom: 18px;
}
.proj-card__metric-val {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 900; color: var(--white);
  line-height: 1; display: block; margin-bottom: 3px;
}
.proj-card__metric-lbl {
  font-size: 9px; font-weight: 500; letter-spacing: .12em;
  color: var(--text-faint); text-transform: uppercase;
}
.proj-card__tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px;
}
.proj-card__tags span {
  font-size: 9px; font-weight: 600; letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 3px 9px; text-transform: uppercase;
  transition: color .2s, border-color .2s;
}
.proj-card:hover .proj-card__tags span {
  color: var(--orange); border-color: rgba(224,120,32,.2);
}
.proj-card__link {
  font-size: 10px; font-weight: 600; letter-spacing: .18em;
  color: var(--orange); text-decoration: none;
  text-transform: uppercase; margin-top: auto;
  padding-top: 16px; border-top: 1px solid var(--border);
  transition: letter-spacing .2s;
}
.proj-card__link:hover { letter-spacing: .28em; }

/* ════════════════════════════════════════
   TECH STACK
   ════════════════════════════════════════ */
.stack {
  padding: 120px 80px;
  background: var(--bg2); position: relative; overflow: hidden;
}
.stack__inner { max-width: 1400px; margin: 0 auto; }
.stack__header { margin-bottom: 72px; }

.stack__groups {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.stack__group {
  padding: 28px 28px 24px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  transition: background .25s, border-color .25s;
}
.stack__group:hover {
  background: rgba(224,120,32,.04);
  border-color: rgba(224,120,32,.2);
}
.stack__group-label {
  font-size: 11px; font-weight: 700; letter-spacing: .15em;
  color: var(--white); text-transform: uppercase;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.stack__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.stack__pills span {
  font-size: 10px; font-weight: 500; letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  padding: 5px 11px; text-transform: uppercase;
  transition: color .2s, border-color .2s, background .2s;
  cursor: default;
}
.stack__group:hover .stack__pills span {
  color: var(--orange); border-color: rgba(224,120,32,.25);
  background: rgba(224,120,32,.06);
}

/* ════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════ */
.contact {
  padding: 120px 80px 0;
  background: var(--bg); position: relative; overflow: hidden;
}
.contact::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(224,120,32,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224,120,32,.04) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}
.contact__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
  max-width: 1400px; margin: 0 auto;
  position: relative; z-index: 1;
}

/* Left info */
.contact__sub {
  font-size: 14px; font-weight: 300; line-height: 1.8;
  color: var(--text-dim); margin: 20px 0 36px; max-width: 420px;
}
.contact__cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.contact__card {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: background .25s, border-color .25s, transform .25s;
  position: relative; overflow: hidden;
}
.contact__card::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--orange);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .3s cubic-bezier(.22,1,.36,1);
}
.contact__card:hover { background: rgba(224,120,32,.06); border-color: rgba(224,120,32,.25); transform: translateX(4px); }
.contact__card:hover::before { transform: scaleY(1); }
.contact__card-icon {
  width: 42px; height: 42px;
  background: rgba(224,120,32,.1);
  border: 1px solid rgba(224,120,32,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--orange);
}
.contact__card-label {
  display: block; font-size: 9px; font-weight: 700;
  letter-spacing: .25em; color: var(--orange);
  text-transform: uppercase; margin-bottom: 4px;
}
.contact__card-val {
  display: block; font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,.75); line-height: 1.4;
}

/* Social */
.contact__social {
  display: flex; align-items: center; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.contact__social-label {
  font-size: 9px; font-weight: 700; letter-spacing: .25em;
  color: var(--text-faint); text-transform: uppercase; white-space: nowrap;
}
.contact__social-links { display: flex; gap: 10px; }
.contact__social-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.1);
  background: transparent; color: rgba(255,255,255,.45);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-decoration: none;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.contact__social-btn:hover {
  border-color: var(--orange); color: var(--orange);
  background: rgba(224,120,32,.08); transform: translateY(-2px);
}

/* ── CONTACT FORM ─── */
.contact__form {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--border);
  padding: 48px 44px; position: relative;
}
.contact__form::before,
.contact__form::after {
  content: ''; position: absolute; width: 20px; height: 20px;
}
.contact__form::before { top:-1px; left:-1px; border-top:2px solid var(--orange); border-left:2px solid var(--orange); }
.contact__form::after  { bottom:-1px; right:-1px; border-bottom:2px solid var(--orange); border-right:2px solid var(--orange); }

.cf__field {
  position: relative; margin-bottom: 34px;
}
.cf__field--textarea { margin-bottom: 34px; }
.cf__field input,
.cf__field textarea {
  width: 100%; background: transparent;
  border: none; border-bottom: 1px solid rgba(255,255,255,.14);
  padding: 14px 0 10px; color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px; font-weight: 300;
  outline: none; resize: none;
  transition: border-color .3s;
}
.cf__field input::placeholder,
.cf__field textarea::placeholder { color: transparent; }
.cf__field label {
  position: absolute; top: 14px; left: 0;
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,.35); letter-spacing: .06em;
  pointer-events: none;
  transition: all .3s cubic-bezier(.22,1,.36,1);
}
.cf__field input:focus ~ label,
.cf__field textarea:focus ~ label,
.cf__field input:not(:placeholder-shown) ~ label,
.cf__field textarea:not(:placeholder-shown) ~ label {
  top: -8px; font-size: 9px; color: var(--orange);
  letter-spacing: .28em; text-transform: uppercase;
}
.cf__bar {
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--orange);
  transition: width .35s cubic-bezier(.22,1,.36,1);
}
.cf__field input:focus ~ .cf__bar,
.cf__field textarea:focus ~ .cf__bar { width: 100%; }
.cf__error {
  position: absolute; bottom: -18px; left: 0;
  font-size: 10px; letter-spacing: .08em; color: #e05050;
  opacity: 0; transition: opacity .3s;
}
.cf__field.error .cf__error { opacity: 1; }
.cf__field.error input,
.cf__field.error textarea { border-bottom-color: #e05050; }
.cf__field.error .cf__bar { width: 100%; background: #e05050; }
.cf__field.valid .cf__bar { background: #40c070; }

.cf__submit {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 18px 32px;
  background: var(--orange); border: none; color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .25em;
  text-transform: uppercase; cursor: pointer;
  transition: background .2s, gap .2s;
  position: relative; overflow: hidden;
}
.cf__submit:hover { background: var(--orange-d); gap: 18px; }
.cf__loader {
  display: none; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: var(--white); border-radius: 50%;
  animation: spin .7s linear infinite;
}
.cf__submit.loading .cf__submit-text,
.cf__submit.loading svg { display: none; }
.cf__submit.loading .cf__loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.cf__success {
  display: none; align-items: center; gap: 14px;
  margin-top: 20px; padding: 16px 20px;
  background: rgba(64,192,112,.08);
  border: 1px solid rgba(64,192,112,.25);
  font-size: 13px; font-weight: 400; color: rgba(255,255,255,.75);
}
.cf__success.show { display: flex; animation: fadeInUp .4s ease; }
@keyframes fadeInUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

/* FOOTER */
.contact__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px 80px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  position: relative; z-index: 1;
  font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,.3);
}
.contact__footer-link {
  color: rgba(255,255,255,.4); text-decoration: none;
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  transition: color .2s;
}
.contact__footer-link:hover { color: var(--orange); }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1100px) {
  .stack__groups { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  .hero__content { grid-template-columns: 1fr; padding: 120px 40px 80px; gap: 48px; }
  .hero__right { justify-content: flex-start; }
  .hero__photo-frame { width: 300px; height: 380px; }
  .hero__topbar { padding: 20px 40px; }

  .about { padding: 80px 40px; }
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .about__big-num { font-size: 100px; }

  .experience { padding: 80px 40px; }

  .projects { padding: 80px 40px; }
  .projects__grid { grid-template-columns: 1fr; }
  .proj-card--wide { grid-column: span 1; display: flex; flex-direction: column; }

  .stack { padding: 80px 40px; }
  .stack__groups { grid-template-columns: 1fr; }

  .contact { padding: 80px 40px 0; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .contact__footer { padding: 24px 40px; }
}

@media (max-width: 600px) {
  .hero__name { font-size: clamp(44px, 14vw, 72px); }
  .hero__topbar { padding: 16px 24px; }
  .hero__content { padding: 100px 24px 60px; }
  .about { padding: 60px 24px; }
  .experience { padding: 60px 24px; }
  .projects { padding: 60px 24px; }
  .stack { padding: 60px 24px; }
  .contact { padding: 60px 24px 0; }
  .contact__footer { padding: 20px 24px; flex-direction: column; gap: 12px; text-align: center; }
  .hero__photo-frame { width: 260px; height: 320px; }
  .side-nav { display: none; }
  .contact__social { flex-direction: column; align-items: flex-start; gap: 12px; }
  .contact__social-links { flex-wrap: wrap; }
  .hero__stats-row { flex-wrap: wrap; gap: 20px; }
  .hero__stat { border-right: none; }
  .contact__form { padding: 32px 24px; }
  .about__cards { grid-template-columns: 1fr; }
}