:root {
  color-scheme: dark;
  --bg: #0a0a0f;
  --panel: #12121a;
  --panel-soft: rgba(18, 18, 26, .72);
  --border: rgba(255, 255, 255, .12);
  --border-soft: rgba(255, 255, 255, .08);
  --text: #fafafa;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --accent: #10b981;
  --accent-hover: #34d399;
  --cyan: #22d3ee;
  --radius: 28px;
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  scroll-behavior: smooth;
  background:
    linear-gradient(rgba(10,10,15,.76), rgba(10,10,15,.86)),
    url("assets/eloklambg.png") center / cover fixed no-repeat,
    var(--bg);
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
  background:
    radial-gradient(circle at 20% 12%, rgba(16,185,129,.16), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(34,211,238,.12), transparent 24rem),
    linear-gradient(rgba(10,10,15,.78), rgba(10,10,15,.86)),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    url("assets/eloklambg.png") center / cover fixed no-repeat,
    var(--bg);
  background-size: auto, auto, auto, 48px 48px, 48px 48px, cover, auto;
  overflow-x: clip;
}
a { color: inherit; }
img, svg { max-width: 100%; }

.container { width: min(100% - 48px, 1240px); margin-inline: auto; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 99; transform: translateY(-160%); padding: .75rem 1rem; border-radius: 999px; color: var(--bg); background: var(--accent-hover); font-weight: 800; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent-hover); outline-offset: 4px; }

.site-header { position: sticky; top: 0; z-index: 20; padding-block: 24px 0; background: linear-gradient(to bottom, rgba(10,10,15,.94), rgba(10,10,15,.62), transparent); }
.navbar {
  min-height: 64px;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 14, 22, .72);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .22);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.nav-left, .nav-right { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.45rem); }
.nav-right { justify-content: flex-end; }
.navbar a { text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.nav-link { font-size: .94rem; color: var(--muted); transition: color .2s ease, transform .2s ease, background .2s ease; }
.nav-link:hover { color: var(--text); transform: translateY(-1px); }
.logo { text-align: center; font-size: clamp(1.05rem, 2vw, 1.36rem); font-weight: 950; letter-spacing: -.055em; white-space: nowrap; color: var(--text); }
.contact-btn { padding: .58rem .92rem; border-radius: 999px; color: #04110d; background: var(--accent); border: 1px solid transparent; box-shadow: 0 12px 28px rgba(16,185,129,.14); }
.contact-btn:hover { color: #04110d; background: var(--accent-hover); }
.language-toggle { appearance: none; border: 1px solid var(--border); border-radius: 999px; padding: .54rem .8rem; background: rgba(255, 255, 255, .06); font: inherit; font-weight: 900; letter-spacing: -.01em; cursor: pointer; }
.language-toggle:hover { background: rgba(255, 255, 255, .1); }

.section { padding-block: clamp(58px, 8vw, 112px); }
.hero {
  min-height: calc(100dvh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  padding-block: 56px;
}
.hero-text { max-width: 760px; }
.eyebrow { margin: 0 0 .95rem; font-size: clamp(1.02rem, 1.45vw, 1.22rem); letter-spacing: .15em; text-transform: uppercase; font-weight: 900; color: var(--accent-hover); }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { margin: 0; line-height: .98; letter-spacing: -.065em; font-weight: 900; }
.hero-title, .contact-page-card .contact-page-intent { font-size: clamp(2.55rem, 4.15vw, 4.45rem); }
.hero-title { min-height: 2em; }
h2 { font-size: clamp(2.15rem, 5vw, 5rem); }
.hero-subtitle, .hero-lede { max-width: 720px; margin: 28px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.34rem); line-height: 1.55; }
.hero-identity-list { list-style: none; padding: 0; display: grid; gap: .5rem; }
.hero-identity-list li { position: relative; padding-left: 1.1rem; }
.hero-identity-list a { color: var(--text); text-decoration-color: rgba(52, 211, 153, .55); text-underline-offset: 4px; }
.hero-identity-list a:hover { color: var(--accent-hover); }
.hero-identity-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: .42rem; height: .42rem; border-radius: 999px; background: var(--accent-hover); box-shadow: 0 0 18px rgba(52, 211, 153, .32); }
.typed-title { display: grid; grid-template-rows: 1em 1em; align-content: start; inline-size: 100%; max-inline-size: 100%; overflow: visible; }
.typed-prefix, .typed-role-line { display: block; min-width: 0; max-width: 100%; }
.typed-prefix { white-space: nowrap; }
.typed-role-line { white-space: nowrap; font: inherit; line-height: inherit; letter-spacing: inherit; font-weight: inherit; overflow: visible; }
.typed-role { display: inline-block; min-width: .08em; max-width: calc(100% - .16em); color: var(--accent-hover); }
.caret { display: inline-block; width: .08em; height: .86em; margin-left: .05em; translate: 0 .08em; background: var(--cyan); animation: blink 1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.contact-actions { display: flex; flex-wrap: wrap; gap: .72rem; margin-top: 1.55rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.05rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; text-decoration: none; font-weight: 900; white-space: nowrap; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button.primary { color: #04110d; background: var(--accent); border-color: transparent; box-shadow: 0 18px 50px rgba(16,185,129,.18); }
.button.primary:hover { background: var(--accent-hover); }
.button.secondary { background: rgba(26,26,36,.86); color: var(--text); }
.button.secondary:hover { background: #252536; border-color: rgba(255,255,255,.2); }
.button:hover { transform: translateY(-2px); }

.portrait-wrap { justify-self: end; width: min(100%, 420px); margin: 0; border: 1px solid var(--border-soft); border-radius: 34px; padding: 18px; background: rgba(18,18,26,.52); box-shadow: 0 18px 54px rgba(0,0,0,.24); overflow: hidden; }
.portrait { display: block; width: 100%; aspect-ratio: 1 / 1.18; object-fit: cover; border-radius: 24px; filter: saturate(.96) contrast(1.02); }

.two-column { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 70px); align-items: start; }
.quiet-card, .contact-band, .contact-page-card { border: 1px solid var(--border); border-radius: var(--radius); background: rgba(30,30,46,.72); padding: clamp(1.1rem, 2.4vw, 2rem); box-shadow: 0 20px 70px rgba(0,0,0,.22); }
.quiet-card p, .contact-band p, .contact-page-card p { margin: 0; color: var(--muted); font-size: clamp(1.02rem, 1.45vw, 1.22rem); }
.text-link { display: inline-block; margin-top: 1rem; color: var(--accent-hover); font-weight: 850; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.resume-section { padding-block: clamp(40px, 7vw, 86px); }
.resume-card { display: grid; gap: 1rem; }
.pdf-viewer { display: block; width: 100%; min-height: clamp(520px, 82vh, 940px); border: 1px solid var(--border); border-radius: 18px; background: #0f0f17; }
.pdf-viewer p { padding: 1rem; }
.projects-section { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
.projects-heading { max-width: 780px; }
.projects-heading > p:last-child { margin: 1rem 0 0; color: var(--accent-hover); }
.project-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.5rem); }
.project-card { border: 1px solid var(--border); border-radius: var(--radius); background: rgba(30,30,46,.72); color: var(--text); text-decoration: none; overflow: hidden; display: grid; grid-template-rows: 1fr auto; box-shadow: 0 20px 70px rgba(0,0,0,.22); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.project-card-link:hover { transform: translateY(-3px); border-color: rgba(52, 211, 153, .52); background: rgba(31, 44, 50, .82); }
.project-card-media { aspect-ratio: 1 / 1; display: grid; place-items: center; padding: clamp(.9rem, 2vw, 1.35rem); background: rgba(10, 10, 15, .42); }
.project-card-media img { width: 100%; height: 100%; object-fit: contain; border-radius: 18px; }
.project-card-title { display: block; padding: 1rem 1.1rem; font-weight: 950; font-size: clamp(1.02rem, 1.4vw, 1.18rem); letter-spacing: -.02em; }
.contact-band { text-align: center; max-width: 930px; }
.contact-band .button { margin-top: 1.4rem; }
.contact-band p { max-width: 980px; margin: 1rem auto 0; font-size: clamp(2.55rem, 4.15vw, 4.45rem); line-height: .98; letter-spacing: -.065em; }
.contact-band strong { color: var(--text); font-weight: 950; }
.contact-page-hero { min-height: calc(100dvh - 88px); display: grid; align-items: center; }
.contact-page-card { max-width: 860px; margin: 0 auto; }
.contact-page-card .contact-page-intent { max-width: 760px; color: var(--text); line-height: .98; letter-spacing: -.065em; font-weight: 900; }
.contact-methods { margin: 1.6rem 0 0; display: grid; gap: .72rem; }
.contact-method { display: grid; grid-template-columns: 2rem minmax(86px, .32fr) minmax(0, 1fr); align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 18px; background: rgba(10, 10, 15, .32); text-decoration: none; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.contact-method:hover { transform: translateY(-2px); border-color: rgba(52, 211, 153, .44); background: rgba(31, 44, 50, .56); }
.contact-method-icon { width: 1.5rem; height: 1.5rem; color: var(--accent-hover); fill: currentColor; }
.contact-method span { color: var(--muted-2); font-size: .86rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.contact-method strong { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-size: clamp(1.02rem, 1.4vw, 1.2rem); letter-spacing: -.015em; }
.contact-page-note { margin-top: 1.1rem; font-size: 1rem; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero .hero-text { transition-delay: .05s; }
.hero .portrait-wrap { transition-delay: .18s; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 72px; gap: 48px; }
  .portrait-wrap { justify-self: start; width: min(100%, 340px); }
  .hero-title, .contact-page-card .contact-page-intent { font-size: clamp(2.2rem, 9.4vw, 4.2rem); }
  .contact-band p { font-size: clamp(2.2rem, 9.4vw, 4.2rem); }
  .two-column { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-page-hero { min-height: auto; padding-block: 72px; }
  .contact-method { grid-template-columns: 1.5rem 1fr; gap: .25rem .8rem; }
  .contact-method strong { grid-column: 2; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 32px, 1240px); }
  .site-header { padding-block-start: 16px; }
  .navbar { grid-template-columns: 1fr 1fr; min-height: 64px; row-gap: 10px; padding: 12px 18px; border-radius: 28px; }
  .logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .nav-left { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .nav-right { grid-column: 2; grid-row: 2; justify-content: flex-end; }
  .nav-left, .nav-right { gap: .72rem; flex-wrap: wrap; }
  .nav-link { font-size: .86rem; }
  .contact-btn { padding: .48rem .72rem; }
  .hero-title, .contact-page-card .contact-page-intent { font-size: clamp(1.25rem, 5.65vw, 3.2rem); }
  .contact-band p { font-size: clamp(1.25rem, 5.65vw, 3.2rem); }
  .hero-subtitle, .hero-lede { font-size: 1.04rem; }
  .project-gallery { grid-template-columns: 1fr; }
  .button { width: 100%; max-width: 100%; min-width: 0; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .caret { display: none; }
}
