/* ============ Tokens & base ============ */
:root {
  --bg: #faf7f3;
  --ink: #0e0d0b;
  --ink-soft: #55514b;
  --gray: #8a857e;
  --card-dark: #171412;
  --card-darker: #0f0d0c;
  --cream: #f5f1ea;
  --line: rgba(14, 13, 11, 0.1);
  --radius: 18px;
  --container: 1160px;
  --pad: clamp(20px, 4vw, 48px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

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

.section-title {
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 22px;
  left: 50%;
  translate: -50% 0;
  z-index: 100;
  width: min(320px, calc(100vw - 40px));
  background: #121110;
  color: #fff;
  border-radius: 16px;
  padding: 9px 9px 9px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: navIn 0.8s var(--ease-out) 0.15s backwards;
}
@keyframes navIn { from { opacity: 0; transform: translateY(-16px); } }

.nav__name { font-weight: 600; font-size: 16px; }

.nav__toggle {
  width: 42px; height: 30px;
  background: #fff;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: transform 0.3s var(--ease-out);
}
.nav__toggle:hover { transform: scale(1.06); }
.nav__toggle span {
  width: 4px; height: 4px;
  background: #121110;
  border-radius: 50%;
}

.nav__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #121110;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0.35s;
}
.nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a {
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: #d8d4cd;
  transition: background 0.25s, color 0.25s;
}
.nav__menu a:hover { background: #24211e; color: #fff; }

/* ============ Intro (hero + bio slide) ============ */
.intro { height: 260vh; }
.intro__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.intro__track {
  display: flex;
  width: 200vw;
  height: 100%;
  will-change: transform;
}
.panel { width: 100vw; height: 100%; flex-shrink: 0; }

/* Hero */
.hero { position: relative; display: grid; place-items: center; }
.hero__inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }

.hero__title {
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(40px, 9.6vw, 142px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-top: -10vh;
}
.hero__line { display: block; overflow: hidden; white-space: nowrap; }
.hero__line-inner {
  display: inline-block;
  animation: lineUp 1s var(--ease-out) backwards;
}
.hero__line:nth-child(2) .hero__line-inner { animation-delay: 0.12s; }
@keyframes lineUp { from { transform: translateY(108%); } }

.hero__meta {
  position: absolute;
  bottom: 4.5vh;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.02em;
  animation: fadeIn 0.9s var(--ease-out) 0.7s backwards;
}
.hero__meta--left { left: var(--pad); }
.hero__meta--right { right: var(--pad); font-size: clamp(13px, 1.2vw, 16px); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
@keyframes fadeIn { from { opacity: 0; } }

.holo {
  position: absolute;
  animation: fadeIn 0.9s var(--ease-out) 0.55s backwards, float 5s ease-in-out 1.5s infinite alternate;
}
.holo--star {
  width: clamp(56px, 7.5vw, 110px);
  left: max(calc(50% - 44vw), 3vw);
  top: 17vh;
  rotate: -12deg;
}
.holo--bolt {
  width: clamp(44px, 5.5vw, 80px);
  right: max(calc(50% - 45vw), 3vw);
  top: 40vh;
  rotate: 14deg;
  animation-delay: 0.65s, 2s;
}
@keyframes float { to { translate: 0 -14px; } }

/* Avatar flip card */
.avatar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  perspective: 1400px;
  z-index: 5;
}
.avatar__flip {
  position: relative;
  width: clamp(170px, 17vw, 250px);
  aspect-ratio: 5 / 6;
  transform-style: preserve-3d;
  will-change: transform;
  animation: avatarIn 1s var(--ease-out) 0.35s backwards;
}
@keyframes avatarIn { from { opacity: 0; scale: 0.82; } }
.avatar__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  backface-visibility: hidden;
}
.avatar__face--back { transform: rotateY(180deg); }

/* Bio */
.bio { display: grid; align-items: center; }
.bio__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(220px, 27vw, 400px);
  width: 100%;
  align-items: start;
}
.bio__hey {
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: clamp(24px, 4vh, 48px);
}
.bio__lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  max-width: 34ch;
}
.bio__right { padding-top: clamp(20px, 10vh, 110px); max-width: 40ch; }
.bio__right p {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1.2em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 12px;
  transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: #2a2621; }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn__arrow { font-size: 17px; line-height: 1; }

/* ============ Quote ============ */
.quote { height: 220vh; }
.quote__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  padding-inline: var(--pad);
}
.quote__text {
  max-width: 620px;
  text-align: center;
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.42;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.quote__text .w { opacity: 0.12; transition: opacity 0.25s linear; }
.quote__text .w.on { opacity: 1; }

/* ============ Services ============ */
.services { padding-block: clamp(60px, 12vh, 140px) clamp(40px, 8vh, 100px); }
.services .section-title { margin-bottom: clamp(40px, 8vh, 90px); }
.services__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: clamp(26px, 4vh, 42px);
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease-out);
}
.services__row:first-child { border-top: 1px solid var(--line); }
.services__row:hover { padding-left: 14px; }
.services__row h3 {
  font-size: clamp(24px, 2.6vw, 33px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.services__tags {
  color: var(--gray);
  font-size: clamp(14px, 1.25vw, 17px);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.services__tags i { font-style: normal; font-size: 11px; }

/* ============ Featured Projects ============ */
.work { padding-block: clamp(60px, 12vh, 140px); }
.work__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 6vh, 64px);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 17px;
}
.link-arrow__circle {
  width: 34px; height: 34px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.link-arrow:hover .link-arrow__circle { background: var(--ink); color: var(--cream); transform: rotate(45deg); }

.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
}
.card-project__cover {
  aspect-ratio: 10 / 7;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}
.card-project__cover > * { transition: transform 0.7s var(--ease-out); }
.card-project:hover .card-project__cover > * { transform: scale(1.05); }
.card-project h3 {
  margin-top: 18px;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card-project p { margin-top: 5px; color: var(--gray); font-size: 15px; }

/* "Soon" badge on covers */
.cover-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  background: var(--cream);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
}
.card-project { cursor: default; }

/* cover: RAG (purple, chat panel + orb) */
.cover--rag { background: linear-gradient(140deg, #7c66f7, #6d5df6 55%, #9d7bfa); }
.cover-rag__panel {
  width: 62%;
  padding: 26px 28px;
  background: #16131c;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}
.cover-rag__dot { width: 10px; height: 10px; border-radius: 50%; background: #8b5cf6; margin-bottom: 4px; }
.cover-rag__line { height: 9px; border-radius: 5px; background: #35304a; }
.cover-rag__line--user { background: #8b5cf6; align-self: flex-end; }
.cover-rag__orb {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  right: -10%;
  bottom: -18%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e9d5ff, #a855f7 45%, #581c87);
  filter: blur(2px);
  opacity: 0.85;
}

/* cover: Landing Zones (green, org tree) */
.cover--lz { background: linear-gradient(150deg, #0e3b2c, #14532d 60%, #1a6b38); }
.cover--lz svg { width: 78%; }

/* cover: FinOps (warm, falling bars) */
.cover--finops {
  background: linear-gradient(140deg, #fb7185, #f97316 65%, #fbbf24);
  flex-direction: column;
  gap: 10px;
}
.cover-finops__stat {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff7ed;
  z-index: 2;
}
.cover-finops__bars {
  position: absolute;
  inset: auto 12% 0 12%;
  height: 55%;
  display: flex;
  align-items: flex-end;
  gap: 8%;
  opacity: 0.45;
}
.cover-finops__bars span { flex: 1; background: #fff7ed; border-radius: 6px 6px 0 0; }

/* cover: K8s (blue, hexagon) */
.cover--k8s { background: linear-gradient(140deg, #1d4ed8, #2563eb 60%, #3b82f6); }
.cover--k8s svg { width: 70%; }

/* ============ Certifications ============ */
.certs { padding-block: clamp(60px, 12vh, 140px); }
.certs .section-title { margin-bottom: clamp(36px, 6vh, 64px); }
.certs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2vw, 28px);
}
.card-cert {
  background: var(--card-dark);
  color: #f4f1ec;
  border-radius: var(--radius);
  padding: 28px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  transition: transform 0.4s var(--ease-out);
}
.card-cert:hover { transform: translateY(-6px); }
.card-cert__name {
  font-size: clamp(19px, 1.75vw, 23px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.32;
}
.card-cert__issuer { display: flex; align-items: center; gap: 13px; }
.card-cert__badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.badge--aws { background: #ff9900; color: #16130d; }
.badge--gcp { background: #4285f4; color: #fff; }
.badge--k8s { background: #326ce5; color: #fff; }
.card-cert__issuer b { display: block; font-size: 15px; font-weight: 600; }
.card-cert__issuer em { display: block; font-style: normal; font-size: 13.5px; color: #9d968d; margin-top: 2px; }

/* ============ Experience ============ */
.exp { padding-block: clamp(60px, 12vh, 140px); }
.exp .section-title { margin-bottom: clamp(36px, 6vh, 64px); }
.exp__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.5vw, 32px);
}
.card-exp {
  background: var(--card-dark);
  color: #f4f1ec;
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out);
}
.card-exp:hover { transform: translateY(-6px); }
.card-exp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, transparent 0 26px, rgba(255, 255, 255, 0.035) 26px 27px);
  pointer-events: none;
}
.card-exp__date { color: #9d968d; font-size: 14.5px; margin-bottom: 12px; }
.card-exp h3 {
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
}
.card-exp__desc { color: #b3ada4; font-size: 15px; line-height: 1.55; max-width: 40ch; }
.card-exp--stat { justify-content: center; align-items: flex-start; gap: 14px; }
.card-exp__stat {
  font-size: clamp(64px, 7vw, 104px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--cream);
  line-height: 1;
}
.card-exp--cta { background: var(--card-darker); justify-content: space-between; gap: 40px; }
.card-exp__cta-text {
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.card-exp--cta .btn { align-self: flex-start; }

/* ============ Contact ============ */
.contact {
  padding-block: clamp(60px, 12vh, 150px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: stretch;
}
.contact__sub {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 36ch;
}
.contact__socials { display: flex; gap: 12px; margin-top: clamp(40px, 22vh, 240px); }
.contact__socials a {
  width: 46px; height: 46px;
  background: #eae5dd;
  border-radius: 11px;
  display: grid;
  place-items: center;
  transition: background 0.3s, color 0.3s, transform 0.3s var(--ease-out);
}
.contact__socials a:hover { background: var(--ink); color: var(--cream); transform: translateY(-3px); }
.contact__socials svg { width: 20px; height: 20px; }

.contact__form {
  background: #131110;
  border-radius: 20px;
  padding: clamp(22px, 2.5vw, 30px);
  display: flex;
  flex-direction: column;
  color: #f4f1ec;
}
.contact__form label { font-size: 15px; font-weight: 500; margin-bottom: 9px; }
.contact__form input,
.contact__form textarea {
  background: transparent;
  border: 1px solid #3c3833;
  border-radius: 10px;
  padding: 13px 15px;
  color: #f4f1ec;
  font: inherit;
  font-size: 15px;
  margin-bottom: 22px;
  transition: border-color 0.3s;
}
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: #7c766e; }
.contact__form input:focus,
.contact__form textarea:focus { outline: none; border-color: #cfc9c0; }
.contact__form textarea { min-height: 150px; resize: vertical; }
.contact__submit {
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
  border-radius: 10px;
  padding: 15px;
  margin-top: 6px;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}
.contact__submit:hover { transform: translateY(-2px); background: #fff; }

/* ============ Footer ============ */
.footer {
  background: #0c0b0a;
  color: var(--cream);
  padding-top: clamp(70px, 12vh, 130px);
  overflow: hidden;
}
.footer__title {
  font-size: clamp(40px, 4.6vw, 62px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: clamp(48px, 8vh, 90px);
}
.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
}
.footer__label { font-size: 19px; font-weight: 600; margin-bottom: 22px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px; max-width: 340px; }
.footer__links a {
  background: var(--cream);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 17px;
  border-radius: 9px;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}
.footer__links a:hover { transform: translateY(-2px); background: #fff; }
.footer__mail { font-size: 16px; color: #cfc9c0; transition: color 0.3s; }
.footer__mail:hover { color: #fff; }

.footer__giant {
  font-size: clamp(120px, 27vw, 420px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.72;
  text-align: center;
  color: #1d1a17;
  margin-top: clamp(50px, 9vh, 110px);
  transform: translateY(14%);
  user-select: none;
}

/* ============ Letter-roll hover ============ */
.rl {
  display: inline-block;
  position: relative;
  overflow: hidden;
  vertical-align: top;
}
.rl i {
  display: inline-block;
  font-style: normal;
  transition: transform 0.45s var(--ease-out);
  transition-delay: calc(var(--ri) * 0.018s);
}
.rl i.b {
  position: absolute;
  left: 0;
  top: 100%;
}
.roll-host:hover .rl i { transform: translateY(-100%); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .intro { height: auto; }
  .intro__sticky { position: static; height: auto; overflow: visible; }
  .intro__track { display: block; width: 100%; transform: none !important; }
  .panel { width: 100%; height: auto; }

  .hero { height: 100svh; min-height: 560px; }
  .hero__inner { height: 100%; }
  .hero__title { margin-top: -14vh; }

  .avatar { position: absolute; inset: auto 0 11vh 0; }
  .avatar__flip { width: clamp(170px, 44vw, 230px); }
  .avatar__flip { transform: none !important; }
  .avatar__face--back { display: none; }

  .bio { padding-block: 90px 70px; }
  .bio__inner { grid-template-columns: 1fr; gap: 28px; }
  .bio__right { padding-top: 0; }

  .quote { height: 190vh; }

  .work__grid { grid-template-columns: 1fr; }
  .certs__grid { grid-template-columns: 1fr 1fr; }
  .exp__grid { grid-template-columns: 1fr; }
  .card-exp { min-height: 240px; }

  .contact { grid-template-columns: 1fr; }
  .contact__socials { margin-top: 36px; margin-bottom: 10px; }

  .footer__cols { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 560px) {
  .certs__grid { grid-template-columns: 1fr; }
  .card-cert { min-height: 200px; }
  .hero__meta--left { font-size: 18px; }
  .hero__meta--right { font-size: 11px; }
}

/* Fix avatar within hero on mobile: keep inside hero panel */
@media (max-width: 900px) {
  .intro__sticky { position: relative; }
  .avatar { inset: 0; height: 100svh; pointer-events: none; }
  .avatar__flip { position: absolute; left: 50%; bottom: 9vh; translate: -50% 0; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .quote__text .w { opacity: 1; }
}
