:root {
  --bg: #0b0c0f;
  --bg-soft: #111318;
  --bg-elevated: #171a21;
  --surface: #171a21;
  --surface-2: #1b1f28;
  --text: #f6f3ea;
  --muted: #b8bdc7;
  --soft-text: #8d94a3;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(214, 178, 94, 0.34);
  --accent: #d6b25e;
  --accent-hover: #f0cf7a;
  --accent-soft: rgba(214, 178, 94, 0.12);
  --green: #71c993;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(214,178,94,.11), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(117,125,146,.11), transparent 28rem),
    linear-gradient(180deg, #0b0c0f 0%, #111318 52%, #0b0c0f 100%);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image: radial-gradient(rgba(255,255,255,.38) .45px, transparent .45px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, .brand { font-family: "Playfair Display", Georgia, serif; }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; color: #111318; background: var(--accent); padding: 12px 18px; border-radius: 999px; font-weight: 800; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(11,12,15,.82); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: .02em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; color: #111318; background: var(--accent); border-radius: 11px; font-family: "Inter", sans-serif; font-size: .8rem; font-weight: 800; letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.site-nav > a { position: relative; }
.site-nav > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--accent); transition: right .2s ease; }
.site-nav > a:hover, .site-nav > a:focus { color: var(--text); }
.site-nav > a:hover::after { right: 0; }
.language-switch { display: flex; align-items: center; gap: 6px; margin-left: 4px; padding-left: 20px; border-left: 1px solid var(--line); color: var(--soft-text); }
.lang-btn { border: 0; padding: 4px 2px; color: var(--soft-text); background: transparent; cursor: pointer; font-weight: 700; }
.lang-btn.active { color: var(--accent); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--bg-elevated); border-radius: 12px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); }

.hero { min-height: calc(100vh - 78px); display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 84px; padding-block: 78px 92px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; color: var(--muted); font-size: .86rem; font-weight: 600; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(113,201,147,.13); }
.hero h1 { margin: 0; max-width: 860px; font-size: clamp(3.5rem, 6.5vw, 6.6rem); line-height: .98; letter-spacing: -.045em; font-weight: 700; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 760px; margin: 32px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.23rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #111318; background: var(--accent); box-shadow: 0 12px 30px rgba(214,178,94,.16); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { color: var(--text); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--line-strong); background: rgba(255,255,255,.06); }
.hero-meta { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 56px; }
.hero-meta div { padding: 18px 0; border-top: 1px solid var(--line); }
.hero-meta strong { display: block; font-size: 1.2rem; font-weight: 800; }
.hero-meta span { display: block; margin-top: 5px; color: var(--soft-text); font-size: .78rem; line-height: 1.35; }
.hero-card { position: relative; }
.photo-frame { padding: 12px; background: linear-gradient(145deg, #20242d, #12151b); border: 1px solid var(--line); border-radius: 38px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.photo-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center; border-radius: 30px; }
.focus-card { width: min(92%, 430px); margin: -48px 0 0 -44px; position: relative; z-index: 2; padding: 20px; background: rgba(23,26,33,.96); border: 1px solid var(--line-strong); border-radius: 22px; box-shadow: 0 14px 30px rgba(0,0,0,.26); transform: rotate(-2deg); }
.focus-card p { margin: 0 0 12px; color: var(--accent); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.focus-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.focus-tags span { padding: 6px 9px; color: var(--text); border: 1px solid var(--line); border-radius: 999px; font-size: .73rem; font-weight: 700; }

.section { padding-block: 112px; }
.section-soft { background: linear-gradient(180deg, rgba(17,19,24,.94), rgba(15,17,22,.96)); border-block: 1px solid var(--line); }
.section-ink { background: #0a0b0e; color: var(--text); border-block: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 24px; margin-bottom: 58px; }
.section-number { margin: 8px 0 0; color: var(--soft-text); font-size: .8rem; font-weight: 700; }
.eyebrow { margin: 0 0 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 800; }
.section-heading h2, .contact-panel h2 { max-width: 940px; margin: 0; font-size: clamp(2.35rem, 4.7vw, 4.5rem); line-height: 1.06; letter-spacing: -.03em; }
.section-heading-light .section-number { color: var(--soft-text); }
.section-heading-light .eyebrow { color: var(--accent); }

.about-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 86px; padding-left: 114px; }
.about-large { margin: 0; max-width: 680px; color: var(--text); font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.65rem, 3vw, 2.65rem); line-height: 1.28; letter-spacing: -.02em; font-weight: 600; }
.about-copy { color: var(--muted); font-size: 1rem; }
.about-copy p { margin: 0 0 18px; }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.skill-group { min-height: 270px; padding: 30px; background: rgba(23,26,33,.78); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 14px 34px rgba(0,0,0,.13); }
.skill-group:hover { border-color: var(--line-strong); }
.skill-group > p { margin: 0 0 38px; color: var(--accent); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.skill-group h3 { margin: 0 0 16px; color: var(--text); font-family: "Playfair Display", Georgia, serif; font-size: 1.48rem; line-height: 1.32; letter-spacing: -.015em; }
.skill-group > span { color: var(--muted); font-size: .9rem; }
.skill-group-learning { background: linear-gradient(145deg, rgba(214,178,94,.08), rgba(23,26,33,.78)); border-color: rgba(214,178,94,.28); }

.featured-project { display: grid; grid-template-columns: 1.16fr .84fr; gap: 0; overflow: hidden; margin-bottom: 28px; background: #101218; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.project-visual { min-height: 490px; display: grid; place-items: center; overflow: hidden; }
.project-visual-light { background: #ece8df; }
.project-visual img { width: 92%; height: 92%; object-fit: contain; }
.project-content { padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; }
.project-topline { display: flex; justify-content: space-between; gap: 16px; color: var(--soft-text); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 800; }
.project-content h3, .project-card h3 { margin: 20px 0 16px; color: var(--text); font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1.08; letter-spacing: -.025em; }
.project-content p { color: var(--muted); }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0 26px; }
.project-tags span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: inherit; font-size: .7rem; font-weight: 700; }
.text-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; color: var(--accent); font-weight: 800; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project-card { overflow: hidden; background: rgba(23,26,33,.78); border: 1px solid var(--line); border-radius: var(--radius); }
.project-thumb { min-height: 330px; display: grid; place-items: center; background: #ece8df; overflow: hidden; }
.project-thumb img { width: 92%; height: 92%; object-fit: contain; }
.project-card-body { padding: 32px; }
.project-card-body h3 { font-size: 2rem; }
.project-card-body p { color: var(--muted); }
.project-card-body .project-tags { color: var(--muted); }
.code-visual { min-height: 330px; display: flex; flex-direction: column; justify-content: center; padding: 36px; color: #e8ecf3; background: linear-gradient(145deg, #151923, #080a0f); border-bottom: 1px solid var(--line); }
.code-window { display: flex; gap: 7px; margin-bottom: 32px; }
.code-window span { width: 10px; height: 10px; border-radius: 50%; background: #667085; }
.code-visual pre { margin: 0; white-space: pre-wrap; font-size: clamp(1.15rem, 2.5vw, 1.7rem); line-height: 1.65; color: var(--accent-hover); }
.wp-visual { min-height: 330px; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 32px; background: #ddd7cc; color: #1b1d21; }
.wp-visual > span { width: 86px; height: 86px; display: grid; place-items: center; border-radius: 50%; background: #23282d; color: #fff; font-family: Georgia, serif; font-size: 2.4rem; }
.wp-visual b, .wp-visual small { display: block; }
.wp-visual b { font-family: "Playfair Display", Georgia, serif; font-size: 1.55rem; }
.wp-visual small { margin-top: 4px; color: #675f55; }

.timeline { border-top: 1px solid var(--line); }
.timeline article { display: grid; grid-template-columns: 230px 1fr; gap: 38px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.timeline-date { color: var(--accent); font-weight: 800; }
.timeline-type { margin: 0 0 8px; color: var(--soft-text); text-transform: uppercase; letter-spacing: .12em; font-size: .69rem; font-weight: 800; }
.timeline h3 { margin: 0 0 14px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.35rem, 2.4vw, 2.1rem); letter-spacing: -.015em; }
.timeline article p:last-child { max-width: 900px; margin-bottom: 0; color: var(--muted); }
.education-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 46px; }
.education-footer div { padding: 24px; background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 18px; }
.education-footer span { display: block; color: var(--soft-text); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 800; }
.education-footer strong { display: block; margin-top: 10px; color: var(--text); font-size: .95rem; line-height: 1.55; }

.contact-section { padding-block: 96px 120px; }
.contact-panel { display: grid; grid-template-columns: 1fr .5fr; gap: 70px; align-items: end; padding: 64px; background: linear-gradient(145deg, #1b1e24, #111318); border: 1px solid var(--line-strong); border-radius: 34px; box-shadow: var(--shadow); }
.contact-panel .eyebrow { color: var(--accent); }
.contact-panel h2 { max-width: 790px; }
.contact-panel p { max-width: 720px; margin: 24px 0 0; color: var(--muted); }
.contact-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 18px; }
.contact-actions .btn-primary { background: var(--accent); color: #111318; }
.contact-actions > span { color: var(--soft-text); font-size: .9rem; }
.footer { min-height: 90px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--soft-text); font-size: .84rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .site-nav { position: fixed; top: 78px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; gap: 18px; padding: 26px; background: rgba(17,19,24,.98); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .language-switch { margin: 4px 0 0; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 58px; padding-block: 64px 90px; }
  .hero-card { width: min(560px, 100%); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; padding-left: 114px; }
  .featured-project { grid-template-columns: 1fr; }
  .project-visual { min-height: 380px; }
  .contact-panel { grid-template-columns: 1fr; gap: 42px; padding: 46px; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1180px); }
  .hero { padding-top: 46px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .hero-meta { grid-template-columns: 1fr; gap: 0; }
  .hero-meta div { display: grid; grid-template-columns: 90px 1fr; align-items: baseline; gap: 10px; }
  .focus-card { margin-left: 0; width: 96%; }
  .section { padding-block: 82px; }
  .section-heading { grid-template-columns: 1fr; gap: 8px; margin-bottom: 42px; }
  .section-number { margin: 0; }
  .about-grid { padding-left: 0; }
  .skills-grid, .project-grid, .education-footer { grid-template-columns: 1fr; }
  .skill-group { min-height: 230px; }
  .project-visual, .project-thumb, .code-visual, .wp-visual { min-height: 260px; }
  .project-content { padding: 34px 26px; }
  .project-card-body { padding: 26px; }
  .timeline article { grid-template-columns: 1fr; gap: 12px; }
  .contact-panel { padding: 34px 24px; border-radius: 26px; }
  .contact-actions .btn { width: 100%; overflow-wrap: anywhere; }
  .footer { flex-direction: column; justify-content: center; gap: 8px; }
}

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