:root {
  color-scheme: light;
  --paper: #f5f4ee;
  --white: #faf9f4;
  --ink: #152a25;
  --muted: #4b5c54;
  --accent: #2d6454;
  --line: #cfd6cc;
  --green: #163b32;
  --pale: #e8ebe2;
  --sans: "Manrope", "Segoe UI", Arial, sans-serif;
  --mono: "Consolas", "Courier New", monospace;
}
@font-face { font-family: Manrope; src: url("assets/manrope-cyr.woff2") format("woff2"); font-style: normal; font-weight: 400 800; font-display: swap; unicode-range: U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: Manrope; src: url("assets/manrope-latin.woff2") format("woff2"); font-style: normal; font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.64 var(--sans); }
h1,h2,h3,p,figure,dd,dl { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
a:focus-visible { outline: 3px solid #a75f2c; outline-offset: 5px; }
.skip { position: fixed; top: 8px; left: 8px; transform: translateY(-180%); background: var(--ink); color: white; padding: 10px 14px; z-index: 10; }
.skip:focus { transform: none; }
.wrap { width: min(1168px, calc(100% - 96px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 45px); min-height: 66px; font-size: 14px; font-weight: 700; }
.header-inner nav > a { display: flex; align-items: center; justify-content: center; min-height: 40px; text-align: center; }
.header-inner nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.nav-contact { border: 1px solid #adbcb0; padding: 4px 11px; border-radius: 4px; }
.hero { display: grid; grid-template-columns: 1.16fr .84fr; gap: clamp(30px, 7vw, 108px); align-items: center; padding-block: 53px 52px; }
.eyebrow { font: 700 12px/1.5 var(--mono); letter-spacing: .085em; text-transform: uppercase; color: var(--accent); }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 8px; }
h1,h2,h3 { line-height: 1.04; letter-spacing: -.065em; font-weight: 800; }
.hero h1 { font-size: clamp(64px, 7vw, 104px); line-height: 1.02; margin-left: -.055em; }
.hero-bio { max-width: 600px; margin-top: 27px; font-size: 16px; line-height: 1.55; color: var(--muted); }
.hero-bio p + p { margin-top: 12px; }
.hero-bio strong { color: var(--ink); }
.hero-bio .hero-education { font-size: 14px; }
@media (min-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1.24fr) minmax(0, .84fr); }
}
.button { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; border-radius: 4px; border: 1px solid var(--green); padding: 8px 15px; font-size: 13px; font-weight: 800; transition: background .18s, color .18s; }
.primary { background: var(--green); color: #fff; }
.primary:hover { background: #2b5f50; }
.secondary { border-color: #bfcabd; }
.secondary:hover { background: var(--pale); }
.hero-profile { width: 100%; min-width: 0; max-width: 420px; justify-self: end; }
.hero-portrait { aspect-ratio: 4/4.65; object-fit: cover; object-position: 50% 39%; background: #e1e0d8; border-radius: 4px; }
.hero-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.hero-details .button { justify-content: center; font: 800 15px/1.3 var(--sans); cursor: pointer; }
.hero-details .secondary { background: transparent; color: var(--green); }
.hero-details .secondary:hover { background: var(--pale); }
.hero-details .button:focus-visible { outline: 3px solid #a75f2c; outline-offset: 3px; }
figcaption { color: var(--muted); font-size: 13px; line-height: 1.45; }
#projects { border-top: 1px solid var(--line); }
.section { padding-block: clamp(55px, 8vw, 102px); }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 29px; }
h2 { font-size: clamp(38px, 5.25vw, 74px); }
.section-top p,.lead { color: var(--muted); line-height: 1.55; }
.section-top h2 { max-width: 15ch; }
.section-top p { flex-shrink: 0; }
.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.project { border: 1px solid var(--line); background: var(--white); border-radius: 5px; overflow: clip; }
.project.featured { grid-column: 1 / -1; }
.project-link { display: flex; flex-direction: column; height: 100%; }
.project-link:focus-visible { outline-offset: -5px; }
.featured .project-link { display: grid; grid-template-columns: 1.25fr 1fr; }
.project-visual { overflow: hidden; aspect-ratio: 1200/690; }
.featured .project-visual { aspect-ratio: auto; min-height: 310px; }
.project-visual img { height: 100%; object-fit: cover; transition: transform .3s; }
.project-link:hover .project-visual img { transform: scale(1.025); }
.project-copy { display: flex; flex-direction: column; align-items: start; padding: clamp(20px, 3.2vw, 43px); flex: 1; }
.featured .project-copy { justify-content: center; }
.project h3 { font-size: clamp(29px, 3.8vw, 53px); margin-block: 13px 12px; }
.project-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.55; margin-bottom: 18px; }
.read-link { display: inline-flex; gap: 8px; color: var(--green); font-size: 14px; font-weight: 800; margin-top: auto; text-decoration: underline; text-underline-offset: 4px; }
.featured .read-link { margin-top: 0; }
.monitoring { background: #203f36; }
.forecast { background: #dfe9d9; }
.geology { background: #eae4d4; }
.petrel-preview { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: clamp(8px, 1.4vw, 16px); padding: clamp(10px, 2.6vw, 28px); }
.petrel-preview figure { min-width: 0; display: flex; flex-direction: column; border: 1px solid #c9c5b7; border-radius: 5px; overflow: clip; background: var(--white); }
.petrel-preview img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.petrel-preview figure + figure img { background: #eee; }
.project-link:hover .petrel-preview img { transform: none; }
.petrel-preview figcaption { padding: 7px 8px; border-top: 1px solid var(--line); color: var(--green); font-size: clamp(.75rem, 1.2vw, .925rem); font-weight: 800; line-height: 1.3; }
.experience { background: var(--pale); border-block: 1px solid var(--line); }
.experience-grid,.recognition { display: grid; grid-template-columns: .86fr 1.14fr; gap: 44px; }
#education h2 { font-size: clamp(36px, 5vw, 67px); }
.recognition { border-top: 1px solid var(--line); }
.lead { margin-top: 20px; max-width: 30ch; }
.timeline > div,.recognition-list li { display: grid; grid-template-columns: minmax(88px,.24fr) 1fr; gap: 13px; border-top: 1px solid #bdc7b9; padding: 16px 0 18px; }
.timeline dt,.recognition-list li > span { color: var(--accent); font: 700 13px/1.5 var(--mono); margin-top: 3px; }
.timeline strong,.recognition-list strong,.recognition-list a { font-weight: 800; }
.timeline p,.recognition-list p { color: var(--muted); margin-top: 4px; font-size: 15px; }
.role-open { display: grid; width: 100%; grid-template-columns: minmax(75px,.24fr) 1fr auto; align-items: start; gap: 13px; padding: 16px 0; border: 0; border-top: 1px solid #bdc7b9; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; }
.role-open::after { content: '+'; display: grid; place-items: center; border: 1px solid #a9baa9; border-radius: 50%; width: 27px; height: 27px; font-size: 18px; line-height: 1; }
.role-open:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.role-open:focus-visible { outline: 3px solid #a75f2c; outline-offset: 3px; }
.role-open small { display: block; color: var(--muted); font-size: 14px; }
.role-year { color: var(--accent); font: 700 13px/1.5 var(--mono); margin-top: 4px; }
.toolbox, .education-courses { margin-top: 22px; }
.toolbox { border-top: 1px solid #bdc7b9; padding-top: 18px; }
.toolbox h3, .education-courses h3 { font-size: 20px; letter-spacing: -.025em; margin-bottom: 10px; }
.toolbox p { color: var(--muted); font-size: 15px; }
.toolbox a { text-decoration: underline; text-underline-offset: 3px; color: var(--green); font-weight: 800; }
.education-courses dt { white-space: nowrap; }
.credentials { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 12px 0 0; }
.credentials a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #afbbad; border-radius: 4px; padding: 8px 10px; color: var(--green); font-size: 14px; font-weight: 800; }
.credentials a:hover { background: var(--pale); border-color: var(--accent); }
.credentials small { color: var(--accent); font: 700 .75rem/1 var(--mono); }
#education .timeline > div { position: relative; padding-inline-end: 40px; }
#education .timeline > div:hover { background: var(--white); }
.education-open { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 800; text-align: start; cursor: pointer; }
.education-open::before { content: ""; position: absolute; inset: 0; }
.education-open::after { content: "+"; position: absolute; top: 17px; right: 6px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #afbbad; border-radius: 50%; color: var(--accent); }
.education-open:hover::after { background: var(--green); border-color: var(--green); color: white; }
.education-open:focus-visible, .dialog-header button:focus-visible { outline: 3px solid #a75f2c; outline-offset: 3px; }
body:has(.profile-dialog[open]) { overflow: hidden; }
.profile-dialog {
  width: min(660px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: clamp(18px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 65px #12292330;
}
.profile-dialog::backdrop { background: #142822a8; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.dialog-header button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid #afbbad; border-radius: 50%; background: transparent; color: var(--green); font-size: 25px; line-height: 1; cursor: pointer; }
.dialog-header button:hover { background: var(--pale); }
.profile-dialog h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.16; letter-spacing: -.045em; }
.profile-dialog h3 { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 1.05rem; }
.profile-dialog-content { font-size: 1rem; }
.profile-dialog-content p { margin-top: 8px; }
.dialog-header form { margin-inline-start: auto; }
.dialog-links { display: grid; gap: 8px; margin-top: 18px; }
.dialog-links a { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 12px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 4px; }
.dialog-links a:hover { background: var(--pale); }
.dialog-links span { color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }

.program-meta { color: var(--accent); font-weight: 800; font-size: .875rem; }
.profile-dialog ul { margin: 8px 0 0; padding-inline-start: 21px; }
.profile-dialog li + li { margin-top: 4px; }
.program-document { margin-top: 16px; }
.recognition-list { list-style: none; padding: 0; margin: 0; }
.recognition-list a { text-decoration: underline; text-underline-offset: 4px; }
.recognition-list a:hover { color: var(--accent); }
.recognition-docs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: .875rem; }
.recognition-more { border-top: 1px solid #bdc7b9; }
.recognition-more summary { padding-block: 14px; color: var(--green); font-weight: 800; cursor: pointer; }
.recognition-more summary:hover { color: var(--accent); }
.recognition-more summary:focus-visible { outline: 3px solid #a75f2c; outline-offset: 3px; }
.contact { background: var(--green); color: #f8f9f3; }
.contact a:hover { color: #d3e7b4; }
.footer-line { display: flex; justify-content: space-between; gap: 12px; padding-block: 15px; border-top: 1px solid #53766a; color: #ccddd0; font-size: 13px; }

.case-main { padding-block: 38px 66px; }
.backlink { font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.case-heading { max-width: 985px; margin-top: 31px; }
.case-heading h1 { font-size: clamp(35px, 7.6vw, 104px); margin-block: 11px 17px; overflow-wrap: break-word; }
.case-heading > p:not(.eyebrow) { max-width: 64ch; color: var(--muted); font-size: clamp(17px, 1.9vw, 23px); }
.case-image { max-width: 960px; margin: 28px auto 26px; }
.case-image img { border-radius: 5px; }
.case-image figcaption { margin-top: 8px; }
.case-body { display: grid; grid-template-columns: 1fr .42fr; align-items: start; gap: clamp(25px, 6vw, 80px); }
.case-detail > section + section { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 25px; }
.case-detail h2 { font-size: clamp(26px, 4vw, 42px); margin-bottom: 12px; }
.case-detail p + p { margin-top: 10px; }
.case-detail ul { padding-left: 1.2em; }
.case-detail a { text-decoration: underline; text-underline-offset: 4px; }
.case-side { background: var(--pale); padding: 21px; border: 1px solid var(--line); border-radius: 4px; font-size: 15px; }
.case-side dt { color: var(--accent); font: 700 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .075em; }
.case-side dd { margin: 3px 0 16px; }
.case-side dd:last-child { margin-bottom: 0; }
.case-contact { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 28px; margin-top: 42px; padding: clamp(20px, 4vw, 38px); background: var(--pale); border: 1px solid var(--line); border-radius: 4px; }
.case-contact h2 { font-size: clamp(26px, 4vw, 42px); }
.case-contact p { max-width: 56ch; margin-top: 8px; color: var(--muted); }
.case-contact .button { font-size: 1rem; }
.case-next { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; border-top: 1px solid var(--line); padding-top: 21px; margin-top: 42px; font-size: 15px; font-weight: 800; }
.case-next a:hover, .backlink:hover { color: var(--accent); }
.case-gallery { margin-block: 26px; display: grid; gap: 19px; }
.case-gallery img { border: 1px solid var(--line); border-radius: 4px; }
.case-gallery a { display: block; }
.case-gallery figcaption { margin-top: 6px; }
.monitor-illustrations { max-width: 960px; margin: 28px auto 34px; }
.monitor-illustrations a { display: block; }
.monitor-illustrations figure img { border: 1px solid var(--line); border-radius: 4px; }
.monitor-illustrations figcaption { margin-top: 7px; }
@media (max-width: 850px) {
  .wrap { width: calc(100% - 56px); }
  .hero { gap: 26px; }
  .hero h1 { font-size: clamp(56px, 8vw, 68px); }
  .experience-grid,.recognition { gap: 23px; }
  .featured .project-visual { min-height: 255px; }
}
@media (max-width: 630px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 34px); }
  html { scroll-padding-top: 110px; }
  .header-inner nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 7px; padding-block: 6px; font-size: 13px; line-height: 1.2; }
  .header-inner nav > a { min-height: 42px; }
  .header-inner .language-switch { justify-self: center; }
  .nav-contact { padding-inline: 5px; }
  .hero { grid-template-columns: 1fr; padding-block: 36px 26px; gap: 26px; }
  .hero .eyebrow { margin-bottom: 18px; }
  .hero h1 { font-size: clamp(48px, 13.4vw, 68px); }
  .hero-bio { margin-top: 20px; }
  .hero-profile { max-width: none; }
  .hero-portrait { aspect-ratio: 1.15; object-position: 50% 27%; }
  .section-top { align-items: start; flex-direction: column; margin-bottom: 22px; }
  .desktop-only { display: none; }
  .project-grid,.featured .project-link,.experience-grid,.recognition,.case-body { grid-template-columns: 1fr; }
  .featured .project-visual { min-height: auto; aspect-ratio: 1200/690; }
  .experience h2 br,.recognition h2 br { display: none; }
  .timeline > div,.recognition-list li { grid-template-columns: minmax(67px,.26fr) 1fr; }
  .role-open { grid-template-columns: 57px minmax(0,1fr) auto; gap: 8px; }
  .education-courses dt { white-space: normal; }
  .lead { margin-top: 12px; }
  .case-main { padding-block: 25px 42px; }
  .case-heading { margin-top: 24px; }
  .case-side { order: -1; }
  .monitor-illustrations { margin-block: 21px 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.project-copy .project-demo-note { font-size: .875rem; color: var(--muted); }

.language-switch { display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; color: var(--muted); font-size: .76rem; font-weight: 700; }
.language-switch [aria-current] { color: var(--ink); }
.language-switch a { min-height: 32px; display: inline-flex; align-items: center; padding-inline: .2em; text-decoration: underline; text-underline-offset: .25em; }
html[lang="en"] .role-open { height: auto; }
.supporting-materials { max-width: 850px; margin-top: 44px; }
