:root {
  --ink: #18201d;
  --muted: #65706b;
  --paper: #f4f3ef;
  --white: #fdfdfb;
  --line: #d8d9d3;
  --accent: #5c64e8;
  --accent-dark: #4249bd;
  --mint: #b9e5d1;
  --dark: #19221f;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(24, 32, 29, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 124px 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px 0; transition: .3s ease; }
.site-header.is-scrolled { background: rgba(244, 243, 239, .9); border-bottom: 1px solid rgba(24, 32, 29, .08); backdrop-filter: blur(16px); }
.navbar { height: 58px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-family: "Manrope", sans-serif; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--ink); font-size: .78rem; letter-spacing: -.04em; }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; color: #4d5753; font-size: .92rem; font-weight: 600; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accent); }
.nav-cta { padding: 11px 18px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink) !important; }
.nav-cta:hover { background: var(--ink); color: #fff !important; }
.menu-toggle { display: none; border: 0; background: none; width: 44px; height: 44px; padding: 11px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: .25s ease; }

.hero { min-height: min(760px, 100svh); padding-top: 118px; padding-bottom: 58px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); align-items: center; gap: clamp(54px, 6vw, 86px); }
.eyebrow, .section-number { margin: 0 0 28px; color: var(--accent-dark); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #4ea477; box-shadow: 0 0 0 5px rgba(78,164,119,.13); }
h1, h2, h3 { font-family: "Manrope", sans-serif; letter-spacing: -.055em; }
h1 { margin: 0; max-width: 760px; font-size: clamp(3.45rem, 5vw, 4.8rem); line-height: 1.02; font-weight: 800; }
h1 em { color: var(--accent); font-style: normal; }
.hero-copy { min-width: 0; }
.hero-description { max-width: 620px; margin: 25px 0 0; color: var(--muted); font-size: 1.03rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.button { min-height: 50px; display: inline-flex; justify-content: center; align-items: center; gap: 18px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--ink); box-shadow: 0 12px 28px rgba(24, 32, 29, .16); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.45); }
.social-links { display: flex; gap: 26px; margin-top: 32px; font-size: .86rem; font-weight: 700; }
.social-links a { border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.hero-visual { position: relative; justify-self: end; width: min(100%, 360px); }
.portrait-frame { position: relative; padding: 10px; border: 1px solid #d6d6cf; border-radius: 32px; background: rgba(255,255,255,.68); box-shadow: 0 24px 70px rgba(24,32,29,.1); }
.portrait-frame::before { content: ""; position: absolute; width: 150px; height: 150px; right: -27px; top: -25px; background: var(--mint); border-radius: 38px; transform: rotate(9deg); z-index: -1; }
.portrait-frame img { width: 100%; height: 430px; object-fit: cover; object-position: center 24%; border-radius: 23px; filter: saturate(.85) contrast(.98); }
.portrait-label { position: absolute; left: -18px; bottom: 26px; padding: 10px 14px; border: 1px solid rgba(24,32,29,.06); border-radius: 9px; background: var(--white); box-shadow: var(--shadow); font-size: .75rem; font-weight: 700; }
.availability { position: absolute; right: -14px; bottom: -18px; display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-radius: 11px; background: var(--dark); color: #fff; box-shadow: var(--shadow); font-size: .74rem; font-weight: 700; }
.availability span { width: 8px; height: 8px; border-radius: 50%; background: #79d9a7; box-shadow: 0 0 0 5px rgba(121,217,167,.12); }

.about { background: var(--white); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.section-heading h2 { max-width: 720px; margin: 0; font-size: clamp(2.4rem, 4.5vw, 4.2rem); line-height: 1.08; }
.about-content { padding-top: 43px; }
.about-content p { color: var(--muted); line-height: 1.75; }
.about-content .lead { margin-top: 0; color: var(--ink); font-family: "Manrope", sans-serif; font-size: clamp(1.45rem, 2.4vw, 2.05rem); line-height: 1.42; font-weight: 600; letter-spacing: -.035em; }
.stack, .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.stack { margin-top: 34px; }
.stack span, .tags span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fafaf7; font-size: .76rem; font-weight: 700; }

.cv-section { padding: 96px 0; background: var(--paper); }
.cv-card { position: relative; overflow: hidden; min-height: 520px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 80px; padding: 68px 74px; border-radius: 30px; background: var(--dark); color: #fff; box-shadow: 0 28px 80px rgba(24,32,29,.14); }
.cv-card::before { content: ""; position: absolute; width: 330px; height: 330px; right: -110px; top: -150px; border-radius: 50%; background: var(--accent); opacity: .3; }
.cv-copy { position: relative; z-index: 1; }
.cv-kicker { margin: 0 0 22px; color: var(--mint); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }
.cv-copy h2 { max-width: 670px; margin: 0; font-size: clamp(2.7rem, 4.8vw, 4.6rem); line-height: 1.05; }
.cv-copy > p:not(.cv-kicker) { max-width: 570px; margin: 24px 0 30px; color: #bfc7c3; line-height: 1.7; }
.cv-download { max-width: 450px; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 11px 12px 11px 20px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: rgba(255,255,255,.08); transition: transform .25s ease, background .25s ease; }
.cv-download:hover { transform: translateY(-3px); background: rgba(255,255,255,.13); }
.cv-download-text { display: flex; flex-direction: column; gap: 3px; }
.cv-download-text strong { font-size: .96rem; }
.cv-download-text small { color: #aeb8b3; font-size: .73rem; }
.cv-download-arrow { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 12px; background: var(--mint); color: var(--ink); font-size: 1.35rem; font-weight: 800; transition: transform .25s ease; }
.cv-download:hover .cv-download-arrow { transform: translateY(3px); }
.cv-visual { position: relative; justify-self: center; width: 290px; height: 360px; }
.document-back { position: absolute; inset: 20px -22px -16px 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 20px; background: #313b37; transform: rotate(7deg); }
.document-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; border-radius: 20px; background: #f5f3ec; color: var(--ink); box-shadow: 0 25px 60px rgba(0,0,0,.22); transform: rotate(-3deg); }
.document-top, .document-footer { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .1em; }
.document-top span:first-child { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: #fff; letter-spacing: 0; }
.document-body p { margin: 0 0 5px; color: var(--accent-dark); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.document-body strong { display: block; margin-bottom: 25px; font-family: "Manrope", sans-serif; font-size: 1.8rem; line-height: 1.08; letter-spacing: -.05em; }
.document-body > span { display: block; width: 100%; height: 7px; margin-top: 9px; border-radius: 999px; background: #d9dcd7; }
.document-body > span:nth-last-child(2) { width: 78%; }
.document-body > span:last-child { width: 54%; }
.document-footer span:first-child { padding: 7px 10px; border-radius: 7px; background: #e1e2f6; color: var(--accent-dark); }

.journey { background: var(--paper); }
.section-heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 62px; }
.tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); }
.tab { padding: 10px 17px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: .85rem; font-weight: 700; cursor: pointer; }
.tab.is-active { background: var(--ink); color: #fff; }
.timeline-item { display: grid; grid-template-columns: 180px 1fr 72px; align-items: start; gap: 48px; padding: 37px 0; border-top: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-date { margin: 5px 0 0; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.timeline-item h3 { margin: 0 0 10px; font-size: 1.55rem; }
.timeline-item h3 span { color: var(--muted); font-weight: 600; }
.timeline-item p:not(.timeline-date) { max-width: 670px; margin: 0 0 17px; color: var(--muted); line-height: 1.65; }
.company-logo { width: 60px; height: 60px; object-fit: cover; border-radius: 17px; border: 1px solid var(--line); }
.timeline-index { justify-self: end; color: #c5c7c1; font-family: "Manrope", sans-serif; font-size: 2rem; font-weight: 800; }

.projects { background: var(--dark); color: #f3f5f3; }
.projects .section-number { color: #aab0f8; }
.projects .section-heading { margin-bottom: 56px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.project-card { min-height: 525px; padding: 34px; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; transition: transform .3s ease; }
.project-card:hover { transform: translateY(-6px); }
.project-dark { background: #29332f; border: 1px solid #3a4541; }
.project-light { background: #d9dcff; color: var(--ink); }
.project-top { display: flex; justify-content: space-between; color: inherit; opacity: .7; font-size: .77rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.project-top p { margin: 0; }
.project-icon { width: 118px; height: 118px; align-self: center; display: grid; place-items: center; border-radius: 35px; background: var(--accent); box-shadow: 20px 24px 0 rgba(0,0,0,.08); color: #fff; font-family: "Manrope", sans-serif; font-size: 2.3rem; font-weight: 800; letter-spacing: -.08em; transform: rotate(-5deg); }
.project-light .project-icon { background: var(--white); color: var(--accent); }
.project-card h3 { margin: 0 0 10px; font-size: 2.3rem; }
.project-card > div:last-child > p { max-width: 500px; margin: 0 0 20px; opacity: .7; line-height: 1.65; }
.project-dark .tags span { border-color: #46514d; background: transparent; }
.project-light .tags span { border-color: rgba(24,32,29,.18); background: rgba(255,255,255,.35); }
.project-coming { grid-column: 1 / -1; min-height: 300px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; column-gap: 40px; background: linear-gradient(135deg, #f4f1e9, #dce8e1); color: var(--ink); border: 1px solid rgba(255,255,255,.14); }
.project-coming .project-top { grid-column: 1 / -1; }
.project-coming .project-icon { grid-column: 2; grid-row: 2; align-self: center; width: 96px; height: 96px; border-radius: 28px; background: var(--dark); color: var(--mint); box-shadow: 16px 18px 0 rgba(24,32,29,.09); font-size: 1.7rem; letter-spacing: .12em; }
.project-coming > div:last-child { grid-column: 1; grid-row: 2; align-self: end; }
.project-coming > div:last-child > .coming-status { margin: 0 0 8px; color: var(--accent-dark); opacity: 1; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.project-coming h3 { margin: 0; font-size: clamp(2.8rem, 6vw, 5rem); }

.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(70px, 10vw, 150px); }
.contact-copy h2 { margin: 0; font-size: clamp(2.7rem, 5vw, 4.8rem); line-height: 1.03; }
.contact-copy > p:not(.section-number) { max-width: 440px; margin: 27px 0; color: var(--muted); line-height: 1.7; }
.contact-copy > a { display: inline-flex; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); font-weight: 700; }
.contact-form { padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.form-row { margin-bottom: 23px; }
.form-row label { display: block; margin-bottom: 8px; font-size: .8rem; font-weight: 700; }
.form-row input, .form-row textarea { width: 100%; border: 1px solid #d5d6cf; border-radius: 10px; outline: none; background: var(--white); color: var(--ink); padding: 14px 15px; resize: vertical; transition: border .2s, box-shadow .2s; }
.form-row input:focus, .form-row textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(92,100,232,.12); }
.form-row input::placeholder, .form-row textarea::placeholder { color: #9ba19e; }
.submit-button { width: 100%; border: 0; }
.submit-button:disabled { opacity: .6; cursor: wait; transform: none; }
.form-status { min-height: 20px; margin: 14px 0 0; text-align: center; color: var(--muted); font-size: .82rem; }
.form-status.success { color: #287a50; }
.form-status.error { color: #a53d43; }

.footer { padding: 28px 0; background: var(--dark); color: #c6cbc8; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: .8rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: #fff; font-weight: 700; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .section { padding: 92px 0; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 135px; gap: 70px; }
  .hero-copy { max-width: 750px; }
  .hero-visual { justify-self: center; width: min(80%, 410px); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .about-content { padding-top: 0; max-width: 720px; }
  .project-card { min-height: 475px; }
  .timeline-item { grid-template-columns: 140px 1fr 60px; gap: 28px; }
}

@media (max-width: 680px) {
  .container { width: min(1160px, calc(100% - 32px)); }
  .site-header { padding: 8px 0; background: rgba(244,243,239,.92); backdrop-filter: blur(14px); }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 30px; background: var(--paper); font-family: "Manrope", sans-serif; font-size: 1.45rem; transform: translateY(-105%); visibility: hidden; transition: transform .35s ease, visibility .35s; }
  .nav-links.is-open { transform: none; visibility: visible; }
  .nav-cta { font-size: 1rem; }
  .hero { padding-top: 120px; }
  h1 { font-size: clamp(2.65rem, 12vw, 4.6rem); overflow-wrap: anywhere; }
  .hero-description { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-visual { width: calc(100% - 34px); }
  .portrait-frame img { height: 390px; }
  .portrait-label { left: -10px; }
  .availability { right: -10px; }
  .section-heading-row { align-items: flex-start; flex-direction: column; margin-bottom: 42px; }
  .timeline-item { grid-template-columns: 1fr auto; gap: 18px; }
  .timeline-date { grid-column: 1 / -1; }
  .timeline-item > div { grid-column: 1; }
  .company-logo, .timeline-index { grid-column: 2; grid-row: 2; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 470px; padding: 26px; }
  .project-coming { min-height: 350px; display: flex; }
  .project-coming .project-icon { width: 86px; height: 86px; }
  .cv-section { padding: 70px 0; }
  .cv-card { min-height: auto; grid-template-columns: 1fr; gap: 58px; padding: 38px 26px 54px; }
  .cv-copy h2 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .cv-visual { width: min(260px, 84%); height: 325px; }
  .contact-form { padding: 25px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

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