:root {
  --ink: #0b1b21;
  --ink-soft: #17313a;
  --paper: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #edf3ef;
  --text: #172b31;
  --muted: #5b6b70;
  --line: #dce5e1;
  --mint: #83e6ca;
  --mint-deep: #087568;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: "Inter", Arial, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 3px solid var(--mint-deep); outline-offset: 4px; border-radius: 3px; }
section[id] { scroll-margin-top: 88px; }
.container { width: min(var(--max-width), calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 1000; padding: 10px 14px; background: var(--mint); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(11, 27, 33, .97); border-bottom: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(18px); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; min-height: 74px; }
.brand { justify-self: start; color: #f6faf8; font-size: 1.04rem; font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.brand span { color: var(--mint); }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a, .header-resume { color: #c8d8d8; font-size: .84rem; font-weight: 600; transition: color .2s ease; }
.site-nav a:hover, .header-resume:hover { color: var(--mint); }
.header-resume { justify-self: end; color: var(--mint); white-space: nowrap; }
.header-resume span { margin-left: 8px; font-size: 1.08rem; }

.hero { overflow: hidden; color: #f5fbf8; background: radial-gradient(circle at 83% 7%, rgba(45, 112, 109, .24), transparent 32%), linear-gradient(135deg, #0a1a20, #102a31 60%, #0b1b21); }
.hero-grid { display: grid; grid-template-columns: 1fr .92fr; gap: clamp(40px, 6vw, 92px); align-items: center; padding-top: 82px; padding-bottom: 76px; }
.eyebrow, .section-kicker { margin: 0; text-transform: uppercase; letter-spacing: .17em; font-size: .73rem; font-weight: 800; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--mint); }
.eyebrow-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(131, 230, 202, .13); }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, .feature-content h3, .contact-panel h2 { font-family: "Newsreader", Georgia, serif; font-weight: 500; letter-spacing: -.045em; }
h1 { max-width: 15ch; margin: 25px 0 25px; font-size: clamp(3.7rem, 5.6vw, 5.35rem); line-height: .97; }
h1 em { color: var(--mint); font-weight: 500; }
.hero-lede { max-width: 57ch; color: #c4d6d5; font-size: 1.12rem; line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 33px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 49px; padding: 13px 20px; border-radius: 7px; font-size: .88rem; font-weight: 700; line-height: 1.2; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--mint); color: var(--ink); }
.button-primary:hover { background: #a3f0d9; }
.button-ghost { border: 1px solid rgba(255,255,255,.28); color: #f5fbf8; }
.button-ghost:hover { border-color: var(--mint); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 550px; margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); }
.hero-facts div { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-size: 1.05rem; font-weight: 700; color: #fff; }
.hero-facts span { font-size: .77rem; color: #a9c2c0; }
.hero-gallery { position: relative; height: min(520px, 43vw); min-height: 420px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: #223b42; }
.hero-gallery figure { position: absolute; inset: 0; overflow: hidden; margin: 0; opacity: 0; transition: opacity .7s ease; }
.hero-gallery figure.is-active { opacity: 1; }
.hero-gallery figure::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(3,12,15,.73)); pointer-events: none; }
.hero-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-gallery figure:hover img { transform: scale(1.04); }
.hero-gallery figcaption { position: absolute; z-index: 1; bottom: 23px; left: 24px; right: 110px; color: #fff; font-size: .95rem; font-weight: 700; }
.hero-gallery figcaption span { display: block; color: #c6d9d7; font-size: .72rem; font-weight: 500; }
.carousel-toggle { position: absolute; z-index: 3; right: 18px; bottom: 17px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 5px; background: rgba(11,27,33,.8); color: #fff; font: 700 .72rem "Inter", Arial, sans-serif; cursor: pointer; }
.carousel-toggle:hover { background: #173d42; }
.hero-award { display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: center; padding-block: 21px; border-top: 1px solid rgba(255,255,255,.15); }
.award-label { color: var(--mint); text-transform: uppercase; letter-spacing: .13em; font-size: .7rem; font-weight: 800; }
.hero-award p { margin: 0; color: #d0dfde; font-size: .88rem; }
.hero-award strong { color: #fff; }
.hero-award a { color: var(--mint); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.hero-award a:hover { text-decoration: underline; text-underline-offset: 4px; }

.section { padding-block: 104px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .62fr); gap: 68px; align-items: end; margin-bottom: 38px; }
.section-kicker { margin-bottom: 19px; color: var(--mint-deep); }
h2 { margin-bottom: 0; font-size: clamp(2.8rem, 4.6vw, 4.65rem); line-height: 1.03; }
.section-heading h2 { max-width: 16ch; }
.section-heading > p { max-width: 43ch; margin: 0 0 6px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.work-section .section-heading, .expertise-section .section-heading { grid-template-columns: 1fr; }
.work-section .section-heading h2 { max-width: 28ch; font-size: clamp(2.45rem, 3.6vw, 3.7rem); }

.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px rgba(9,29,29,.035); }
.feature-card-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 410px; }
.feature-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr .95fr; min-height: 330px; }
.feature-image { overflow: hidden; background: #19333a; height: 245px; }
.feature-card-lead .feature-image, .feature-card-wide .feature-image { height: auto; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.feature-card:hover img { transform: scale(1.035); }
.feature-card:nth-child(2) .feature-image img { object-position: center 58%; }
.feature-content { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 30px 32px 28px; }
.feature-card-lead .feature-content { padding: clamp(34px, 4.3vw, 58px); }
.project-overline { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; color: var(--mint-deep); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 800; }
.project-overline span { padding-left: 12px; border-left: 1px solid var(--line); color: #718184; }
.feature-content h3 { margin-bottom: 14px; color: var(--text); font-size: clamp(2rem, 3.1vw, 3.15rem); line-height: 1.04; }
.feature-card:not(.feature-card-lead) h3 { font-size: 2.35rem; }
.feature-content > p:not(.project-overline) { max-width: 59ch; margin-bottom: 0; color: var(--muted); font-size: .98rem; line-height: 1.75; }
.project-detail { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.project-detail li { padding: 7px 10px; background: var(--surface-soft); border-radius: 4px; color: #40615e; font-size: .72rem; font-weight: 700; }
.project-actions { display: flex; flex-wrap: wrap; gap: 22px; margin-top: auto; padding-top: 28px; }
.project-actions a { color: var(--mint-deep); font-size: .84rem; font-weight: 800; }
.project-actions a:hover { text-decoration: underline; text-underline-offset: 4px; }
.project-actions span { margin-left: 3px; }

.more-work-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 80px 0 24px; }
.more-work-heading .section-kicker { margin-bottom: 10px; }
.more-work-heading h3 { max-width: 24ch; margin-bottom: 0; font-family: "Newsreader", Georgia, serif; font-size: clamp(2rem, 3vw, 2.9rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.more-work-heading > span { color: var(--muted); font-size: .82rem; }
.more-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.more-work-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; min-height: 170px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 11px; transition: border-color .2s ease, transform .2s ease; }
.more-work-card:hover { border-color: #a8cfc4; transform: translateY(-2px); }
.more-work-card > img { width: 140px; height: 140px; object-fit: cover; border-radius: 7px; background: var(--surface-soft); }
.more-work-card h4 { margin-bottom: 7px; font-size: 1.03rem; font-weight: 700; }
.more-work-card p { max-width: 58ch; margin-bottom: 10px; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.more-work-card a { color: var(--mint-deep); font-size: .78rem; font-weight: 800; }
.more-work-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.more-work-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.early-work { margin-top: 32px; padding: 24px 0 0; border-top: 1px solid var(--line); }
.early-work span { margin-right: 8px; color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.early-work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.early-work-grid a { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--mint-deep); font-size: .82rem; }
.early-work-grid a:hover { border-color: #a8cfc4; }
.early-work-grid img { width: 74px; height: 62px; flex: 0 0 auto; border-radius: 5px; object-fit: cover; }

.expertise-section { background: #eaf1ed; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.expertise-card { min-height: 255px; padding: 30px; background: #fff; border: 1px solid #d5e2dc; border-radius: 13px; }
.expertise-number { color: var(--mint-deep); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.expertise-card h3 { margin: 31px 0 12px; color: var(--ink); font-family: "Newsreader", Georgia, serif; font-size: 1.85rem; font-weight: 500; letter-spacing: -.035em; }
.expertise-card p { margin-bottom: 0; color: var(--muted); font-size: .89rem; line-height: 1.7; }
.tool-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 34px; }
.tool-stack > div { display: grid; grid-template-columns: 172px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid #cbdcd4; }
.tool-stack strong { color: var(--ink); font-size: .79rem; }
.tool-stack p { margin: 0; color: #526963; font-size: .82rem; line-height: 1.6; }

.experience-section { color: #f5faf7; background: var(--ink); }
.experience-layout { display: grid; grid-template-columns: minmax(260px, .68fr) minmax(0, 1fr); gap: clamp(58px, 9vw, 140px); }
.experience-section .section-kicker { color: var(--mint); }
.experience-intro h2 { max-width: 13ch; color: #fff; }
.experience-intro > p:last-child { max-width: 43ch; margin-top: 23px; color: #b6c9c7; font-size: .94rem; line-height: 1.75; }
.timeline { border-top: 1px solid rgba(255,255,255,.18); }
.timeline-item { padding: 27px 0 31px; border-bottom: 1px solid rgba(255,255,255,.18); }
.timeline-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 13px; color: var(--mint); font-size: .74rem; font-weight: 700; letter-spacing: .03em; }
.timeline-meta span:last-child { color: #93aca9; }
.timeline-item h3 { margin-bottom: 16px; color: #f7fbf8; font-size: 1.09rem; font-weight: 700; }
.timeline-item h3 span { display: block; margin-top: 3px; color: #a9c1be; font-size: .91rem; font-weight: 500; }
.timeline-item ul { margin: 0; padding-left: 18px; color: #c4d3d1; font-size: .86rem; line-height: 1.7; }
.timeline-item li + li { margin-top: 8px; }
.timeline-item p { margin: 0; color: #c4d3d1; font-size: .86rem; }

.contact-section { padding-block: 98px; }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; padding: clamp(36px, 5vw, 65px); background: #ccefe0; border-radius: 18px; }
.contact-panel h2 { max-width: 15ch; color: var(--ink); font-size: clamp(2.8rem, 4.6vw, 4.8rem); line-height: 1.02; }
.contact-panel p:not(.section-kicker) { max-width: 57ch; margin: 18px 0 0; color: #31564f; font-size: .95rem; line-height: 1.72; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 220px; }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #1f4549; }
.contact-resume { color: var(--ink); font-size: .83rem; font-weight: 800; }
.contact-resume:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-actions > span { color: #4b6c66; font-size: .76rem; }
.contact-social { display: flex; flex-wrap: wrap; gap: 8px 18px; max-width: 320px; }
.contact-social a { color: var(--ink); font-size: .84rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.site-footer { padding: 24px 0; color: #71817c; background: var(--paper); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: .76rem; }
.footer-inner div { display: flex; flex-wrap: wrap; gap: 19px; }
.footer-inner a:hover { color: var(--mint-deep); }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 820px; }
  .hero-gallery { width: 100%; height: 500px; }
  .section-heading { gap: 30px; }
  .experience-layout { gap: 55px; }
  .tool-stack > div { grid-template-columns: 135px 1fr; }
  .more-work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .container { width: min(var(--max-width), calc(100% - 38px)); }
  .header-inner { grid-template-columns: 1fr auto; gap: 0 20px; padding-block: 12px 8px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 16px; width: 100%; padding-top: 10px; }
  .header-resume { grid-column: 2; grid-row: 1; }
  .hero-grid { padding-top: 68px; padding-bottom: 60px; }
  h1 { font-size: clamp(3.9rem, 10vw, 5.2rem); }
  .hero-award { grid-template-columns: 1fr auto; gap: 8px 20px; }
  .hero-award .award-label { grid-column: 1 / -1; }
  .section { padding-block: 76px; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .section-heading > p { max-width: 64ch; }
  .feature-card-lead { grid-template-columns: 1fr; }
  .feature-card-wide { grid-template-columns: 1fr; }
  .feature-card-lead .feature-image, .feature-card-wide .feature-image { height: 320px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card { min-height: 0; }
  .expertise-card h3 { margin-top: 20px; }
  .tool-stack { grid-template-columns: 1fr; }
  .tool-stack > div { grid-template-columns: 172px 1fr; }
  .experience-layout { grid-template-columns: 1fr; gap: 35px; }
  .experience-intro h2 { max-width: 20ch; }
  .contact-panel { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 620px) {
  .site-nav a, .header-resume { font-size: .74rem; }
  .header-resume { max-width: 130px; text-align: right; line-height: 1.3; }
  .header-resume span { margin-left: 2px; }
  .hero-grid { padding-top: 58px; }
  h1 { font-size: clamp(3.35rem, 11.5vw, 4.6rem); }
  .hero-lede { font-size: 1rem; }
  .hero-gallery { height: 340px; min-height: 340px; }
  .hero-gallery figcaption { bottom: 8px; left: 10px; font-size: .68rem; }
  .hero-gallery figcaption span { font-size: .6rem; }
  .hero-award { grid-template-columns: 1fr; padding-block: 20px 24px; }
  .hero-award p { max-width: 48ch; }
  .hero-facts { gap: 10px; margin-top: 40px; }
  .hero-facts strong { font-size: .92rem; }
  .hero-facts span { font-size: .68rem; }
  .section { padding-block: 68px; }
  h2 { font-size: clamp(2.65rem, 10vw, 3.7rem); }
  .featured-grid, .more-work-grid, .early-work-grid { grid-template-columns: 1fr; }
  .feature-card-lead, .feature-card-wide { grid-column: auto; }
  .feature-image, .feature-card-lead .feature-image, .feature-card-wide .feature-image { height: 220px; }
  .feature-content, .feature-card-lead .feature-content { padding: 25px; }
  .feature-content h3, .feature-card:not(.feature-card-lead) h3 { font-size: 2.2rem; }
  .more-work-heading { align-items: start; flex-direction: column; margin-top: 68px; }
  .more-work-heading > span { display: none; }
  .more-work-card { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; min-height: 0; padding: 14px; }
  .more-work-card > img { width: 100px; height: 100px; }
  .tool-stack > div { grid-template-columns: 1fr; gap: 3px; }
  .contact-panel { padding: 32px 25px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 380px) {
  .container { width: calc(100% - 28px); }
  .header-resume { display: none; }
  .header-inner { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .site-nav { justify-content: space-between; padding-top: 0; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .more-work-card { grid-template-columns: 1fr; }
  .more-work-card > img { width: 100%; height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-gallery figure { transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
