:root {
  --bg: #0b100f;
  --bg-2: #121a18;
  --ink: #f3efe6;
  --muted: #9aa39a;
  --line: rgba(243, 239, 230, 0.12);
  --brass: #c6a46a;
  --brass-2: #e0c48a;
  --moss: #3d6b5a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 50% at 10% -10%, rgba(61, 107, 90, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 5%, rgba(198, 164, 106, 0.16), transparent 50%),
    linear-gradient(180deg, var(--bg), #070b0a 40%, var(--bg-2));
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 15, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled {
  border-color: var(--line);
  background: rgba(11, 16, 15, 0.85);
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .08em;
  color: var(--brass-2);
}
.nav {
  display: flex;
  gap: 1.4rem;
  font-size: .86rem;
  font-weight: 500;
  color: var(--muted);
}
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.85rem;
  padding: .75rem 1.35rem;
  border-radius: .55rem;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brass), #a88445);
  color: #10140f;
  font: inherit;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .2s, filter .2s, box-shadow .2s;
  box-shadow: 0 10px 28px rgba(198, 164, 106, 0.25);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-2); }
.btn-sm {
  min-height: 2.3rem;
  padding: .45rem 1rem;
  font-size: .8rem;
}

.hero {
  position: relative;
  min-height: min(100vh, 52rem);
  display: grid;
  align-content: center;
  padding: 6.2rem clamp(1rem, 4vw, 3.5rem) 3rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 55% at 8% -5%, rgba(61, 107, 90, 0.34), transparent 58%),
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(198, 164, 106, 0.2), transparent 52%),
    radial-gradient(circle at 50% 100%, rgba(61, 107, 90, 0.12), transparent 45%),
    linear-gradient(145deg, #15221e, #0b100f 55%, #1a140c);
  transform: scale(1.05);
  transition: transform .6s ease-out;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 239, 230, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 239, 230, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero-bg::after {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: -4rem;
  top: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 164, 106, 0.14), transparent 68%);
  animation: floatOrb 10s ease-in-out infinite;
}
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr .9fr;
  gap: 1.6rem 2.4rem;
  align-items: center;
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}
.hero-portrait {
  justify-self: end;
  width: min(100%, 26rem);
  margin-top: 0;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(198, 164, 106, 0.32);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(198, 164, 106, 0.08) inset;
  background: #0a1420;
  animation: portraitIn .9s ease both;
}
.hero-portrait img {
  width: 100%;
  height: clamp(22rem, 58vh, 30rem);
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .7s ease;
}
.hero-portrait:hover img { transform: scale(1.04); }
.eyebrow {
  display: inline-block;
  color: var(--brass);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}
.brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
  background: linear-gradient(120deg, #fff8ea 10%, var(--brass-2) 55%, #9fcbb8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--brass-2);
  margin-bottom: .7rem;
}
.hero-lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(.98rem, 1.7vw, 1.12rem);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.hero-lead strong { color: #efe8d8; }
.inline-link {
  color: var(--brass-2);
  border-bottom: 1px solid rgba(224, 196, 138, 0.45);
  font-weight: 600;
  transition: color .2s, border-color .2s;
}
.inline-link:hover {
  color: #fff3d6;
  border-color: rgba(224, 196, 138, 0.85);
}
.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: 1.25rem;
}
.hero-highlights span {
  padding: .4rem .8rem;
  border-radius: .4rem;
  border: 1px solid rgba(198, 164, 106, 0.35);
  background: rgba(198, 164, 106, 0.1);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-1.5rem, 1.2rem); }
}
@keyframes portraitIn {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.section {
  padding: 2.8rem clamp(1rem, 4vw, 3.5rem);
  position: relative;
  max-width: 78rem;
  margin: 0 auto;
}
.section-head {
  max-width: none;
  margin-bottom: 1.35rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  line-height: 1.1;
  font-weight: 700;
}

.about-wide {
  display: grid;
  grid-template-columns: 1.45fr .9fr;
  gap: 1.5rem;
  align-items: stretch;
  width: 100%;
}
.about-copy { max-width: none; }
.lead {
  font-size: 1.02rem;
  color: #d7d2c6;
  margin-bottom: 1rem;
}
.meta-list {
  display: grid;
  gap: .55rem;
  padding: 1.2rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(18, 26, 24, 0.72);
  height: fit-content;
}
.meta-list li {
  display: grid;
  gap: .15rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--line);
}
.meta-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.meta-list span {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.meta-list strong { font-weight: 600; }
.meta-list a {
  color: var(--brass-2);
  border-bottom: 1px solid transparent;
}
.meta-list a:hover { border-color: rgba(198, 164, 106, 0.5); }
.available { color: #8fd6b5; }

.skills-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.skill-block {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(18, 26, 24, 0.7);
}
.skill-block h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: .85rem;
}
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.skill-cloud span {
  padding: .45rem .75rem;
  border-radius: .45rem;
  border: 1px solid rgba(198, 164, 106, 0.28);
  background: rgba(198, 164, 106, 0.08);
  font-size: .82rem;
  font-weight: 500;
  transition: transform .2s, border-color .2s, background .2s;
}
.skill-cloud span:hover {
  transform: translateY(-2px);
  border-color: var(--brass);
  background: rgba(198, 164, 106, 0.16);
}
.skill-cloud.soft span {
  border-color: rgba(61, 107, 90, 0.35);
  background: rgba(61, 107, 90, 0.12);
}
.skill-cloud.soft span:hover {
  border-color: #6fad96;
  background: rgba(61, 107, 90, 0.22);
}

.exp-featured {
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 0;
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid rgba(198, 164, 106, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(198, 164, 106, 0.12), transparent 42%),
    linear-gradient(160deg, rgba(30, 42, 38, 0.92), rgba(12, 18, 16, 0.98));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}
.exp-media {
  position: relative;
  min-height: 22rem;
  background: #0a1420;
}
.exp-media > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.exp-face {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid rgba(198, 164, 106, 0.65);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.exp-copy {
  padding: 1.6rem 1.5rem;
  display: grid;
  align-content: start;
  gap: .35rem;
}
.exp-featured-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  margin-bottom: .35rem;
}
.exp-featured h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}
.exp-featured .org {
  color: var(--brass-2);
  font-weight: 600;
  margin: 0 0 .55rem;
}
.exp-summary {
  color: #d7d2c6;
  line-height: 1.65;
  margin: 0 0 .7rem;
}
.exp-copy ul {
  display: grid;
  gap: .5rem;
}
.exp-copy li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
}
.exp-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--brass);
}
.timeline-year {
  color: var(--brass);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
}
.cert-card {
  padding: 0;
  border-radius: 1.1rem;
  border: 1px solid rgba(198, 164, 106, 0.24);
  background:
    radial-gradient(circle at 0% 0%, rgba(198, 164, 106, 0.14), transparent 40%),
    linear-gradient(160deg, rgba(30, 42, 38, 0.9), rgba(12, 18, 16, 0.96));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0;
  overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 164, 106, 0.48);
}
.cert-visual {
  display: grid;
  place-items: center;
  padding: 1rem .7rem;
  background: rgba(8, 12, 11, 0.45);
  border-right: 1px solid var(--line);
}
.cert-visual img {
  width: 4.8rem;
  height: 4.8rem;
}
.cert-body {
  padding: 1.2rem 1.2rem 1.25rem;
  display: grid;
  gap: .55rem;
}
.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 164, 106, 0.48);
}
.cert-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
}
.cert-issuer {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
}
.cert-badge {
  padding: .3rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(143, 214, 181, 0.35);
  background: rgba(143, 214, 181, 0.1);
  color: #8fd6b5;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cert-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.15;
  margin: 0;
}
.cert-card > p {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}
.cert-points {
  display: grid;
  gap: .45rem;
  margin-top: .2rem;
}
.cert-points li {
  position: relative;
  padding-left: 1rem;
  color: #d7d2c6;
  font-size: .92rem;
}
.cert-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55rem;
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: var(--brass);
}

.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.edu-card {
  padding: 1.25rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(30,42,38,.8), rgba(12,18,16,.9));
  min-height: 0;
  display: grid;
  align-content: start;
  gap: .45rem;
  transition: transform .25s, border-color .25s;
}
.edu-icon {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: .15rem;
}
.edu-card:hover {
  transform: translateY(-3px);
  border-color: rgba(198, 164, 106, 0.4);
}
.edu-date {
  color: var(--brass);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.edu-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
}
.edu-card p { color: var(--muted); font-size: .92rem; }

.contact {
  padding-bottom: 2.5rem;
}
.contact-panel {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 1.15rem;
  border: 1px solid rgba(198, 164, 106, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(198,164,106,.18), transparent 40%),
    linear-gradient(145deg, rgba(28, 38, 34, .95), rgba(12, 16, 14, .98));
  box-shadow: var(--shadow);
  max-width: none;
  width: 100%;
}
.contact-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  margin-bottom: .55rem;
}
.contact-panel > p {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 1.2rem;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  width: 100%;
}
.project-card {
  border-radius: 1.15rem;
  border: 1px solid rgba(198, 164, 106, 0.24);
  background:
    radial-gradient(circle at 0% 0%, rgba(198, 164, 106, 0.1), transparent 42%),
    linear-gradient(160deg, rgba(30, 42, 38, 0.92), rgba(12, 18, 16, 0.98));
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(198, 164, 106, 0.5);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
}
.project-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  border-color: rgba(143, 214, 181, 0.28);
  background:
    radial-gradient(circle at 100% 0%, rgba(143, 214, 181, 0.1), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(198, 164, 106, 0.12), transparent 42%),
    linear-gradient(160deg, rgba(30, 42, 38, 0.95), rgba(12, 18, 16, 0.98));
}
.project-featured .project-media {
  height: 100%;
  min-height: 16rem;
}
.project-media {
  position: relative;
  height: 11.5rem;
  background: #0a1420;
  overflow: hidden;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .55s ease;
}
.project-card:hover .project-media img { transform: scale(1.05); }
.project-tag {
  position: absolute;
  left: .85rem;
  top: .85rem;
  padding: .35rem .75rem;
  border-radius: .4rem;
  background: rgba(11, 16, 15, 0.88);
  border: 1px solid rgba(198, 164, 106, 0.35);
  color: var(--brass-2);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.project-tag.live {
  color: #8fd6b5;
  border-color: rgba(143, 214, 181, 0.45);
  background: rgba(11, 16, 15, 0.9);
}
.project-body {
  padding: 1.35rem 1.35rem 1.45rem;
  display: grid;
  gap: .55rem;
  align-content: start;
}
.project-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 0;
}
.project-meta {
  color: var(--brass-2);
  font-weight: 600;
  font-size: .88rem;
  margin: 0;
}
.project-body > p:not(.project-meta) {
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: .55rem;
}
.cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .35rem;
}
.social-logos {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin: 0 0 1.3rem;
}
.social-logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .55rem .9rem .55rem .55rem;
  border-radius: .85rem;
  border: 1px solid var(--line);
  background: rgba(18, 26, 24, 0.7);
  font-weight: 600;
  transition: transform .2s, border-color .2s;
}
.social-logo img {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .65rem;
}
.social-logo:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 164, 106, 0.45);
}
.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem 1rem;
  margin-bottom: 1rem;
}
.contact-links a {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  width: fit-content;
  transition: color .2s, border-color .2s;
}
.contact-links a:hover {
  color: var(--brass-2);
  border-color: rgba(198, 164, 106, 0.5);
}
.contact-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
  padding: 1.2rem clamp(1rem, 4vw, 3.5rem) 1.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  max-width: 78rem;
  margin: 0 auto;
}
.site-footer strong {
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: .04em;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .nav { display: none; }
  .hero { min-height: auto; }
  .hero-layout,
  .skills-split,
  .edu-grid,
  .cert-grid,
  .project-grid,
  .project-featured,
  .about-wide,
  .exp-featured,
  .cert-card,
  .contact-links { grid-template-columns: 1fr; }
  .project-featured { grid-column: auto; }
  .project-featured .project-media { min-height: 12rem; }
  .exp-media { min-height: 14rem; }
  .cert-visual {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 1rem;
  }
  .hero-portrait {
    justify-self: start;
    width: min(100%, 20rem);
    margin-top: 0;
    order: -1;
  }
}

@media (max-width: 620px) {
  .hero { padding-top: 5.2rem; }
  .brand { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .section { padding: 2.2rem 1rem; }
  .hero-actions, .contact-actions { width: 100%; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
  .contact-links { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg::after,
  .hero-portrait,
  .hero-portrait img { animation: none; transition: none; }
}
