:root {
  --ink: #10243f;
  --ink-2: #213750;
  --muted: #64748b;
  --navy: #1f4e79;
  --blue: #2563eb;
  --teal: #0e7490;
  --cyan: #dff3f6;
  --soft: #f5f8fb;
  --soft-2: #eef5f8;
  --line: #e6edf3;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(17, 39, 67, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
}
.nav-wrap { height: 72px; display: flex; align-items: center; gap: 32px; }
.brand {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: white; font-size: 13px; font-weight: 800; letter-spacing: .06em;
}
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px; background: var(--teal); transition: .25s ease; }
.nav a:hover::after { width: 100%; }
.nav-cta { font-size: 13px; font-weight: 700; padding: 10px 16px; border-radius: 999px; background: var(--soft-2); color: var(--navy); }

.hero { min-height: 710px; display: grid; grid-template-columns: 310px 1fr; gap: 84px; align-items: center; padding: 86px 0 96px; }
.profile-column { align-self: start; padding-top: 24px; }
.photo-frame { position: relative; width: 214px; height: 214px; border-radius: 50%; box-shadow: var(--shadow); background: linear-gradient(135deg, var(--navy), var(--teal)); overflow: hidden; }
.photo-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: white; font-size: 54px; font-weight: 800; letter-spacing: .04em; }
.profile-photo { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-meta { margin-top: 28px; }
.profile-meta h1 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -.04em; }
.profile-role { margin: 9px 0 0; font-size: 15px; font-weight: 650; color: var(--navy); }
.location { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.profile-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.profile-links a { font-size: 13px; font-weight: 700; color: var(--teal); }

.eyebrow { margin: 0 0 16px; font-size: 12px; letter-spacing: .15em; font-weight: 800; color: var(--teal); }
.hero-copy h2 { max-width: 830px; margin: 0; font-size: clamp(44px, 5.4vw, 76px); line-height: 1.03; letter-spacing: -.055em; font-weight: 760; }
.hero-lede { max-width: 780px; margin: 28px 0 0; font-size: 20px; line-height: 1.7; color: #40566d; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--ink); color: white; box-shadow: 0 10px 26px rgba(16,36,63,.14); }
.button.primary:hover { background: var(--navy); }
.button.secondary { background: var(--soft); color: var(--ink); }

.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; margin-top: 62px; max-width: 900px; }
.principles div { min-width: 0; }
.principles strong { display: block; margin-bottom: 5px; font-size: 14px; color: var(--navy); }
.principles span { display: block; font-size: 13px; line-height: 1.5; color: var(--muted); }

.section { padding: 100px 0; }
.section-heading { max-width: 800px; }
.section-heading h2, .case-copy h2, .travel-copy h2, .contact-section h2 { margin: 0; font-size: clamp(36px, 4vw, 56px); letter-spacing: -.045em; line-height: 1.08; }
.section-heading > p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 86px; margin-top: 54px; }
.expertise-grid h3 { margin: 0 0 20px; font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips span, .case-tools span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 8px; background: #eff4f8; color: var(--navy); font-size: 12.5px; font-weight: 720; }
.tool-chips span:nth-child(3n+1), .case-tools span:nth-child(3n+1) { background: var(--navy); color: white; }
.tool-chips span:nth-child(3n+2), .case-tools span:nth-child(3n+2) { background: var(--blue); color: white; }
.tool-chips span:nth-child(3n), .case-tools span:nth-child(3n) { background: var(--teal); color: white; }

.projects-section { padding: 108px 0 116px; background: linear-gradient(180deg, #f8fafc 0%, #f4f8fb 100%); }
.projects-heading { margin-bottom: 52px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px; }
.project-card { min-width: 0; }
.project-image-wrap { display: block; height: 235px; overflow: hidden; border-radius: 18px; background: white; box-shadow: var(--shadow); margin-bottom: 26px; }
.project-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s ease; }
.project-image-wrap:hover img { transform: scale(1.018); }
.project-number { margin: 0 0 10px; font-size: 11px; letter-spacing: .14em; font-weight: 850; color: var(--teal); }
.project-card h3 { margin: 0; font-size: 25px; line-height: 1.18; letter-spacing: -.03em; }
.project-subtitle { margin: 10px 0 0; font-size: 13px; font-weight: 750; color: var(--navy); }
.project-summary { margin: 16px 0 0; color: #52677c; font-size: 14.5px; }
.mini-metrics { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; font-size: 12.5px; color: var(--muted); }
.mini-metrics b { color: var(--ink); font-size: 16px; margin-right: 4px; }
.text-link { display: inline-block; margin-top: 20px; font-size: 13px; font-weight: 800; color: var(--teal); }

.workflow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0 32px; }
.workflow span { display: inline-flex; align-items: center; padding: 8px 11px; border-radius: 7px; color: white; background: var(--navy); font-size: 11px; line-height: 1.1; font-weight: 800; letter-spacing: .015em; }
.workflow span:nth-of-type(3n+2) { background: var(--blue); }
.workflow span:nth-of-type(3n) { background: var(--teal); }
.workflow i { font-style: normal; color: #91a5b9; font-weight: 800; }
.workflow.compact { margin: 18px 0 0; gap: 6px; }
.workflow.compact span { padding: 6px 8px; font-size: 10px; }

.case-study { display: grid; grid-template-columns: .95fr 1.15fr; gap: 72px; align-items: center; padding: 124px 0; }
.case-study.alt { display: block; background: #f7fafc; padding: 0; }
.case-inner { display: grid; grid-template-columns: 1.1fr .95fr; gap: 72px; align-items: center; padding: 124px 0; }
.case-inner.reverse .case-copy { order: 2; }
.case-inner.reverse .case-visual { order: 1; }
.case-copy > p:not(.project-number) { margin: 22px 0 0; max-width: 650px; color: #52677c; font-size: 17px; }
.case-points { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin: 30px 0; }
.case-points div { padding: 14px 0; }
.case-points b { display: block; font-size: 24px; letter-spacing: -.03em; }
.case-points span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.case-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.case-visual { position: relative; }
.case-visual > img { border-radius: 18px; box-shadow: var(--shadow); background: white; }
.case-visual.stacked { padding: 34px 28px 74px 0; }
.floating-image { position: absolute; width: 54%; right: 0; bottom: 0; border: 7px solid white; }

.travel-story { background: var(--ink); color: white; padding: 118px 0; }
.travel-inner { display: grid; grid-template-columns: 1fr .78fr; gap: 88px; align-items: center; }
.travel-copy .eyebrow { color: #7dd3e6; }
.travel-copy > p:not(.eyebrow):not(.small-note) { margin: 24px 0 0; max-width: 680px; color: #ccd7e1; font-size: 17px; }
.travel-flow span { background: #2b5c8d; }
.travel-flow span:nth-of-type(3n+2) { background: #316fee; }
.travel-flow span:nth-of-type(3n) { background: #0c8299; }
.small-note { margin: 18px 0 0; color: #91a5b9; font-size: 12.5px; }
.travel-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.travel-gallery img { border-radius: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.travel-gallery img:nth-child(2) { margin-top: 58px; }

.contact-section { padding: 130px 0 140px; text-align: center; }
.contact-section .eyebrow { text-align: center; }
.contact-section h2 { max-width: 850px; margin: 0 auto; }
.contact-section > p:not(.eyebrow) { max-width: 760px; margin: 24px auto 0; color: var(--muted); font-size: 17px; }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
footer { padding: 0 0 36px; color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

/* Hero extras */
.availability { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 6px 12px; border-radius: 999px; background: #e7f6ee; color: #146c43; font-size: 12.5px; font-weight: 750; }
.availability .dot { width: 8px; height: 8px; border-radius: 50%; background: #22a861; box-shadow: 0 0 0 4px rgba(34,168,97,.18); }
.quick-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.quick-stats li { padding: 10px 8px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); text-align: center; }
.quick-stats b { display: block; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
.quick-stats span { display: block; font-size: 10.5px; line-height: 1.3; color: var(--muted); }
.hero-preview { display: none; }

/* Skills marquee */
.toolbelt { background: var(--ink); color: white; padding: 72px 0 80px; overflow: hidden; }
.toolbelt-head { text-align: center; margin-bottom: 36px; }
.toolbelt-head .eyebrow { color: #7dd3e6; }
.toolbelt-head h2 { margin: 0; font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -.04em; line-height: 1.1; }
.marquee { display: flex; width: max-content; gap: 18px; padding: 14px 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; animation: marquee 55s linear infinite; }
.tool { flex: none; width: 128px; height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px; border-radius: 14px; background: #16304f; border: 1px solid rgba(125, 211, 230, .14); box-shadow: 0 0 22px rgba(125, 211, 230, .10); transition: transform .25s ease, box-shadow .25s ease; }
.tool:hover { transform: translateY(-4px); box-shadow: 0 0 28px rgba(125, 211, 230, .30); }
.tool svg { width: 38px; height: 38px; }
.tool .mono { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; border-radius: 10px; background: linear-gradient(135deg, #2b5c8d, #0c8299); color: white; font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.tool-name { font-size: 12.5px; font-weight: 700; line-height: 1.25; text-align: center; color: #e2ebf3; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 18px)); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { width: auto; justify-content: center; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* Social buttons */
.social-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.button.social { gap: 10px; border: 1px solid var(--line); background: white; color: var(--ink); }
.button.social.linkedin:hover { border-color: #0a66c2; color: #0a66c2; }
.button.social.github:hover { border-color: var(--ink); }
.btn-icon { width: 18px; height: 18px; }
.detail-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: -18px 0 46px; padding: 20px 24px; border-radius: 16px; background: white; border: 1px solid var(--line); }
.detail-cta p { margin: 0; color: #52677c; font-size: 15px; }
.detail-cta strong { color: var(--ink); }
.detail-cta div { display: flex; flex-wrap: wrap; gap: 10px; }

/* Galleries */
.gallery { grid-column: 1 / -1; order: 3; margin-top: 8px; }
.gallery-title { margin: 0 0 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.thumb { display: flex; flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: white; overflow: hidden; cursor: zoom-in; text-align: left; font: inherit; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.thumb:hover, .thumb:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); outline: none; }
.thumb:focus-visible { box-shadow: 0 0 0 3px var(--blue); }
.thumb img { width: 100%; height: 130px; object-fit: cover; object-position: top center; background: var(--soft); }
.thumb span { padding: 10px 12px 12px; font-size: 12.5px; font-weight: 700; line-height: 1.35; }

/* Lightbox */
.lightbox { width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 16px; background: #0b1a2e; color: white; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 18, 32, .82); }
.lightbox figure { margin: 0; padding: 18px; }
.lightbox img { max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: 10px; background: white; object-fit: contain; }
.lightbox figcaption { margin-top: 12px; text-align: center; font-size: 14px; font-weight: 700; color: #d6e2ec; }
.lb-close, .lb-nav { position: absolute; border: 0; border-radius: 50%; width: 44px; height: 44px; background: white; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.lb-close { top: -14px; right: -14px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: -18px; }
.lb-next { right: -18px; }

/* Credentials */
.cred-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.cred { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.cred h3 { margin: 14px 0 6px; font-size: 18px; line-height: 1.3; letter-spacing: -.02em; }
.cred p { margin: 0; color: var(--muted); font-size: 14px; }
.cred-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--navy); color: white; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.cred-tag.progress { background: var(--teal); }

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

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 44px; min-height: auto; padding-top: 64px; }
  .profile-column { display: flex; align-items: center; gap: 28px; padding-top: 0; }
  .photo-frame { width: 150px; height: 150px; flex: none; }
  .profile-meta { margin-top: 0; }
  .project-grid { grid-template-columns: 1fr; gap: 58px; }
  .project-image-wrap { height: 380px; }
  .case-study, .case-inner, .travel-inner { grid-template-columns: 1fr; }
  .case-inner.reverse .case-copy, .case-inner.reverse .case-visual { order: initial; }
  .case-visual { max-width: 800px; }
  .expertise-grid { gap: 44px; }
  .cred-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .hero { position: relative; padding-top: 28px; }
  .hero::before { content: ""; position: absolute; inset: 0 -15px; z-index: -1; background: radial-gradient(120% 60% at 50% 0%, #dff3f6 0%, #eef5fb 45%, #ffffff 80%); }
  .profile-column { flex-direction: column; align-items: center; text-align: center; padding: 26px 18px 22px; border-radius: 22px; background: white; box-shadow: var(--shadow); }
  .photo-frame { width: 128px; height: 128px; box-shadow: 0 0 0 5px white, 0 0 0 8px #7dd3e6, var(--shadow); }
  .profile-meta { margin-top: 18px; }
  .profile-links { justify-content: center; }
  .quick-stats { width: 100%; }
  .hero-copy .eyebrow { text-align: center; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .button.primary { grid-column: 1 / -1; }
  .social-actions { display: grid; grid-template-columns: 1fr; }
  .hero-preview { position: relative; display: block; height: 210px; margin-top: 30px; border-radius: 20px; background: linear-gradient(135deg, var(--ink), #1f4e79); overflow: hidden; }
  .hero-preview img { position: absolute; width: 58%; border-radius: 10px; border: 4px solid white; box-shadow: 0 14px 30px rgba(0,0,0,.35); }
  .hero-preview img:nth-child(1) { left: 6%; top: 26px; transform: rotate(-7deg); }
  .hero-preview img:nth-child(2) { left: 21%; top: 16px; z-index: 2; transform: rotate(1deg); }
  .hero-preview img:nth-child(3) { right: 5%; top: 30px; transform: rotate(7deg); }
  .hero-preview span { position: absolute; left: 50%; bottom: 14px; z-index: 3; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: white; color: var(--ink); font-size: 13px; font-weight: 800; white-space: nowrap; }
  .hero-copy h2, .hero-lede { text-align: center; }
  .project-card { display: flex; flex-direction: column; }
  .project-card .project-image-wrap { order: 10; margin: 22px 0 0; }
  .project-card .text-link { order: 11; }
  .principles div { padding: 14px 16px; border-left: 3px solid var(--teal); border-radius: 0 12px 12px 0; background: var(--soft); }

  .wrap { width: min(100% - 30px, 1180px); }
  .nav { display: none; }
  .nav-wrap { height: 64px; }
  .nav-cta { margin-left: auto; }
  .hero { padding: 48px 0 72px; }
  .photo-frame { width: 110px; height: 110px; }
  .photo-fallback { font-size: 32px; }
  .profile-meta h1 { font-size: 25px; }
  .hero-copy h2 { font-size: 40px; }
  .hero-lede { font-size: 17px; }
  .principles { grid-template-columns: 1fr; gap: 18px; margin-top: 46px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .section, .projects-section { padding: 78px 0; }
  .project-image-wrap { height: 245px; }
  .case-study, .case-inner { padding: 84px 0; gap: 44px; }
  .case-points { grid-template-columns: 1fr 1fr; }
  .workflow { gap: 6px; }
  .workflow span { font-size: 10px; padding: 7px 8px; }
  .travel-story { padding: 86px 0; }
  .travel-gallery { max-width: 520px; }
  .footer-inner { flex-direction: column; }
  .tool { width: 108px; height: 108px; }
  .tool svg { width: 32px; height: 32px; }
  .toolbelt { padding: 56px 0 60px; }
  .cred-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .thumb img { height: 100px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; } .lb-close { top: 6px; right: 6px; }
  .nav-cta { padding: 9px 12px; }
}

@media (max-width: 480px) {
  .profile-meta { margin-top: 20px; }
  .hero-copy h2 { font-size: 38px; }
  .case-points { grid-template-columns: 1fr; gap: 4px; }
  .travel-gallery { gap: 10px; }
  .travel-gallery img { border-radius: 18px; }
}
