:root {
  color-scheme: dark;
  --paper: #080a0c;
  --ink: #f5f7f8;
  --muted: #8d969e;
  --line: #30373d;
  --coral: #b9e8ff;
  --blue: #4169e1;
  --serif: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --sans: 'Avenir Next', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --mono: 'Cascadia Code', Consolas, 'Courier New', monospace;
  --jetbrains: 'JetBrains Mono', 'Cascadia Code', Consolas, monospace;
  --dejavu: 'DejaVu Sans Mono', 'Liberation Mono', Consolas, monospace;
  --ice: #c4edff;
  --grid-line: rgb(196 237 255 / 5%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body::before { position: fixed; z-index: 0; inset: 0; content: ''; pointer-events: none; background-image: repeating-linear-gradient(0deg, transparent 0 79px, var(--grid-line) 80px), repeating-linear-gradient(90deg, transparent 0 79px, var(--grid-line) 80px); }
a { color: inherit; }
.ascii-background { position: fixed; z-index: 0; inset: 0; width: 100%; height: 100%; opacity: .88; pointer-events: none; }
body[data-ascii-key-background="black"] .ascii-background { opacity: 1; }
body[data-ascii-layout="portrait"] .ascii-background { opacity: .78; }
.skip-link { position: absolute; z-index: 20; top: 8px; left: 8px; transform: translateY(-150%); padding: 12px 16px; background: var(--lime); color: var(--ink); }
.skip-link:focus { transform: translateY(0); }
.site-header { height: 78px; padding: 0 7.1%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: 0; text-decoration: none; }
.wordmark span, .period { color: var(--coral); }
.site-nav { display: flex; align-items: center; gap: 38px; font-size: 13px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .contact-bottom a:hover { color: var(--coral); }
.nav-contact { padding: 11px 15px; border: 1px solid var(--ink); }
.nav-contact span { margin-left: 9px; }
.menu-toggle { display: none; }
.intro { min-height: 640px; padding: 74px 11.3% 20px; display: grid; grid-template-columns: 1fr 0.84fr; column-gap: 5.8%; align-items: center; position: relative; }
.intro-copy { z-index: 2; padding: 0 0 40px; }
.eyebrow { margin: 0 0 22px; color: var(--muted); font: 11px/1.5 var(--mono); letter-spacing: 0; text-transform: uppercase; }
.availability-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #85a33f; vertical-align: 1px; }
h1, h2, h3, p { margin-top: 0; }
.intro h1 { margin: 0; font: 500 clamp(60px, 7.15vw, 104px)/0.99 var(--serif); letter-spacing: 0; }
.intro h1 span { color: var(--coral); font-style: italic; }
.intro-summary { max-width: 370px; margin: 25px 0 22px; color: #4d544e; font-size: 15px; line-height: 1.75; }
.text-link { display: inline-flex; align-items: center; gap: 18px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-size: 13px; text-decoration: none; }
.text-link span { color: var(--coral); font-size: 17px; }
.intro-art { width: 100%; max-width: 420px; aspect-ratio: 0.92; justify-self: end; position: relative; overflow: hidden; background: #dce6cc; }
.art-sun { position: absolute; width: 36%; aspect-ratio: 1; top: 9%; right: 10%; border-radius: 50%; background: #f2c54d; }
.art-arch { position: absolute; width: 73%; height: 79%; top: 19%; left: 14%; border-radius: 48% 48% 0 0; background: #ee8064; }
.art-face { position: absolute; width: 36%; height: 47%; top: 27%; left: 34%; border-radius: 47% 45% 44% 48%; transform: rotate(-4deg); background: #b86547; }
.art-hair { position: absolute; width: 40%; height: 41%; top: 22%; left: 31%; border-radius: 49% 52% 12% 12%; transform: rotate(3deg); background: #273a34; clip-path: polygon(0 0, 100% 0, 93% 68%, 79% 46%, 66% 60%, 53% 45%, 36% 64%, 19% 47%, 9% 82%); }
.art-neck { position: absolute; width: 15%; height: 22%; top: 63%; left: 45%; background: #b86547; }
.art-shirt { position: absolute; width: 61%; height: 25%; left: 21%; bottom: -5%; border-radius: 50% 50% 0 0; background: #4169e1; }
.art-caption { position: absolute; z-index: 2; left: 7%; bottom: 5%; margin: 0; font: 12px/1.5 var(--mono); color: var(--paper); }
.art-number { position: absolute; z-index: 2; right: 7%; top: 5%; color: var(--ink); font: 10px var(--mono); }
.intro-meta { grid-column: 1 / -1; align-self: end; display: flex; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); text-transform: uppercase; }
.section-wrap { padding-left: 11.3%; padding-right: 11.3%; }
.work { padding-top: 112px; padding-bottom: 118px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 39px; }
.section-heading .eyebrow { margin-bottom: 13px; }
.section-heading h2, .contact h2 { margin: 0; font: 500 52px/1.1 var(--serif); letter-spacing: 0; }
.section-note { max-width: 275px; margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 53px 24px; }
.project-wide { grid-column: 1 / -1; }
.project-art { position: relative; min-height: 330px; overflow: hidden; }
.project-wide .project-art { min-height: 445px; }
.about { background: #dce7ce; }
.about-inner { padding: 91px 11.3% 29px; }
.about-inner > .eyebrow { margin-bottom: 27px; }
.about-copy { display: grid; grid-template-columns: 1.5fr .7fr; gap: 10%; align-items: end; }
.about-copy h2 { max-width: 700px; margin: 0; font: 500 clamp(36px, 5vw, 65px)/1.13 var(--serif); }
.about-copy h2 span { color: #54734f; font-style: italic; }
.about-detail p { color: #475047; font-size: 12px; line-height: 1.8; }
.about-detail .text-link { margin-top: 5px; }
.about-bottom { display: flex; justify-content: space-between; margin-top: 76px; padding: 15px 0; border-top: 1px solid #bdcbb0; font: 9px var(--mono); text-transform: uppercase; }
.contact { padding-top: 104px; padding-bottom: 26px; }
.contact .eyebrow { margin-bottom: 18px; }
.contact-row { display: flex; justify-content: space-between; align-items: end; padding-bottom: 54px; }
.contact h2 { font-size: clamp(47px, 6.2vw, 82px); }
.contact h2 span { color: var(--coral); font-style: italic; }
.contact-button { display: inline-flex; gap: 25px; align-items: center; margin-bottom: 9px; padding: 16px 20px; background: var(--ink); color: var(--paper); font-size: 13px; text-decoration: none; }
.contact-button:hover { background: var(--coral); }
.contact-button span { color: var(--lime); }
.contact-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 15px; color: var(--muted); font: 9px var(--mono); text-transform: uppercase; }
.contact-bottom a { color: var(--ink); text-transform: none; text-decoration: none; }
.site-footer { min-height: 75px; padding: 12px 7.1%; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.site-footer .wordmark { font-size: 23px; }.site-footer p { margin: 0; color: var(--muted); font: 9px var(--mono); }

@media (min-width: 1500px) { .intro, .section-wrap, .about-inner { padding-left: max(11.3%, calc((100% - 1160px) / 2)); padding-right: max(11.3%, calc((100% - 1160px) / 2)); } }
@media (max-width: 800px) {
  .site-header { height: 68px; padding: 0 6%; }
  .intro { min-height: auto; padding: 58px 8% 17px; column-gap: 4%; grid-template-columns: 1fr .78fr; }
  .intro h1 { font-size: clamp(55px, 8.6vw, 76px); }
  .intro-art { align-self: center; }
  .intro-summary { font-size: 13px; }
  .intro-meta { margin-top: 38px; }
  .section-wrap { padding-left: 8%; padding-right: 8%; }
  .work { padding-top: 83px; padding-bottom: 88px; }
  .project-wide .project-art { min-height: 370px; }
  .project-art { min-height: 270px; }
  .about-inner { padding: 75px 8% 24px; }
  .about-copy { grid-template-columns: 1fr .8fr; gap: 6%; }
  .about-bottom { margin-top: 52px; }
  .contact { padding-top: 82px; }
}
@media (max-width: 560px) {
  body[data-ascii-layout="portrait"] .ascii-background { opacity: .48; }
  .site-header { position: relative; z-index: 5; }
  .menu-toggle { width: 42px; height: 42px; display: grid; align-content: center; justify-items: center; gap: 6px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .menu-toggle span { width: 17px; height: 1px; background: var(--ink); transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav { position: absolute; top: 67px; left: 0; right: 0; display: none; padding: 22px 6% 25px; align-items: stretch; gap: 0; flex-direction: column; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; }
  .site-nav .nav-contact { margin-top: 8px; padding: 13px; text-align: center; }
  .intro { display: flex; flex-direction: column; align-items: stretch; padding: 51px 7% 17px; }
  .intro-copy { padding-bottom: 32px; }
  .intro .eyebrow { margin-bottom: 19px; }
  .intro h1 { font-size: clamp(62px, 16vw, 85px); }
  .intro-summary { max-width: 340px; margin-top: 19px; }
  .intro-art { width: 82%; max-width: none; margin: 0 auto; }
  .intro-meta { gap: 15px; margin-top: 37px; font-size: 8px; }
  .intro-meta span:last-child { text-align: right; }
  .section-wrap { padding-right: 7%; padding-left: 7%; }
  .work { padding-top: 70px; padding-bottom: 72px; }
  .section-heading { display: block; margin-bottom: 29px; }
  .section-heading h2 { font-size: 43px; }
  .section-note { margin-top: 13px; }
  .project-grid { grid-template-columns: 1fr; gap: 36px; }
  .project-wide { grid-column: auto; }
  .project-wide .project-art, .project-art { min-height: 300px; }
  .project-info { display: block; }
  .project-info h3 { font-size: 21px; }
  .project-description { max-width: none; margin-top: 8px; text-align: left; }
  .about-inner { padding: 65px 7% 20px; }
  .about-copy { display: block; }
  .about-copy h2 { font-size: 42px; }
  .about-detail { max-width: 390px; margin-top: 24px; }
  .about-detail p { font-size: 13px; }
  .about-bottom { gap: 12px; margin-top: 39px; font-size: 7px; }
  .contact { padding-top: 71px; padding-bottom: 21px; }
  .contact-row { display: block; padding-bottom: 38px; }
  .contact h2 { font-size: clamp(48px, 12vw, 66px); }
  .contact-button { margin-top: 26px; }
  .contact-bottom { gap: 16px; align-items: start; font-size: 8px; }
  .contact-bottom a { text-align: right; }
  .site-footer { min-height: 68px; padding: 12px 7%; }
  .site-footer p:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

body { background: var(--paper); color: #fff; font-family: var(--dejavu); }
a { color: inherit; }
.skip-link { background: var(--ice); color: #080a0c; font-family: var(--jetbrains); }
.site-sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: 246px; display: flex; flex-direction: column; padding: 38px 25px 24px; border-right: 1px solid var(--line); background: #0b0e11; }
.wordmark { position: relative; display: block; max-width: 180px; padding: 10px 43px 10px 12px; border: 1px solid var(--line); background: #11161a; color: var(--ice); font: 500 15px/1.5 var(--jetbrains); overflow-wrap: anywhere; text-decoration: none; transition: background-color .18s ease, border-color .18s ease; }
.wordmark::after { position: absolute; top: 50%; right: 12px; width: 22px; height: 22px; content: ''; background: var(--ink); mask: url('assets/home-icon.svg') center / contain no-repeat; transform: translateY(-50%); transition: background-color .18s ease; }
.wordmark:hover, .wordmark:focus-visible { border-color: var(--ice); background: #151a1f; }
.wordmark:hover::after, .wordmark:focus-visible::after { background: var(--coral); }
.wordmark span, .period { color: var(--ice); }
.sidebar-label { margin: 76px 0 15px; color: #78838b; font: 10px var(--jetbrains); text-transform: uppercase; }
.site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 5px; font: 12px var(--jetbrains); }
.nav-link { display: block; padding: 12px 13px; border-left: 2px solid transparent; color: var(--ice); text-decoration: none; transition: background-color .18s ease, border-color .18s ease; }
.nav-link:hover, .nav-link:focus-visible, .nav-link[aria-current="page"] { border-left-color: var(--ice); background: #151a1f; }
.sidebar-note { margin: auto 0 0; color: #778189; font: 10px/1.6 var(--dejavu); }
.site-main { position: relative; z-index: 1; min-height: 100vh; margin-left: 246px; }
h1, h2, h3 { color: var(--ice); font-family: var(--jetbrains); font-weight: 400; }
.eyebrow, .home-subtitle, .section-intro, .project-label { color: var(--ice); font-family: var(--jetbrains); }
.eyebrow { margin-bottom: 24px; font-size: 11px; }
.blue-period { color: var(--ice); }
.home-section { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 80px 10%; border-bottom: 1px solid var(--line); }
.home-page .home-section { min-height: calc(100vh - 36px); }
.home-content { max-width: 760px; }
.home-section h1 { margin: 0; font-size: 72px; line-height: 1.18; }
.home-subtitle { max-width: 560px; margin: 28px 0 32px; font-size: 14px; line-height: 1.8; }
.home-bio { display: grid; gap: 4px; max-width: 560px; margin: 0 0 24px; padding: 0; color: var(--white); font: 12px/1.8 var(--dejavu); list-style: none; }
.home-bio li { position: relative; padding-left: 1.5em; }
.home-bio li::before { position: absolute; left: 0; color: var(--ice); content: '>'; font-family: var(--jetbrains); }
.section-link { display: inline-flex; gap: 22px; align-items: center; padding: 12px 0; border-bottom: 1px solid #66717a; color: var(--ice); font: 11px var(--jetbrains); text-decoration: none; }
.section-link span { font-size: 17px; }
.home-index { position: absolute; right: 7%; bottom: 36px; color: #78838b; font: 10px var(--jetbrains); }
.content-section { min-height: 100vh; padding: 112px 10%; border-bottom: 1px solid var(--line); }
.section-heading { align-items: end; gap: 32px; margin-bottom: 45px; }
.section-heading .eyebrow { margin-bottom: 15px; }
.section-heading h2, .about-layout h2, .contact-layout h2 { margin: 0; color: var(--ice); font: 400 42px/1.2 var(--jetbrains); }
.section-intro { max-width: 310px; margin: 0 0 3px; font-size: 12px; line-height: 1.8; }
.project-list { display: grid; gap: 24px; }
.project-item { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(180px, .85fr); align-items: center; gap: 30px; padding: 18px; border: 1px solid var(--line); background: #0d1013; }
.project-art { min-height: 260px; display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid #30373d; background: linear-gradient(145deg, #1a2025, #101316 70%); }
.project-art-alt { background: linear-gradient(35deg, #171b1f, #222a30 58%, #111417); }
.project-art-third { background: linear-gradient(135deg, #22272b, #121518 66%); }
.art-index { position: absolute; top: 17px; left: 18px; color: #7d8991; font: 10px var(--jetbrains); }
.art-placeholder { color: #d0d7dc; font: 15px var(--jetbrains); }
.art-line { position: absolute; right: 18px; bottom: 19px; left: 18px; height: 1px; background: #48525a; }
.project-copy .project-label { margin: 0 0 13px; font-size: 10px; text-transform: uppercase; }
.project-copy h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.5; }
.project-copy > p:last-child, .about-copy p, .contact-copy > p { color: #fff; font: 12px/1.9 var(--dejavu); }
.about-section { display: flex; flex-direction: column; justify-content: center; background-color: rgb(11 14 17 / 72%); }
.about-layout, .contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10%; align-items: start; }
.about-layout h2, .contact-layout h2 { font-size: 40px; }
.about-layout h1, .contact-layout h1 { margin: 0; color: var(--ice); font: 400 42px/1.2 var(--jetbrains); }
.contact-layout h1 { font-size: 72px; line-height: 1.18; }
.about-copy p { max-width: 560px; margin-bottom: 22px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 55px; }
.about-tags span { padding: 10px 12px; border: 1px solid #3b444b; color: #c4ccd1; font: 10px var(--dejavu); }
.contact-section { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; border-bottom: 0; }
.contact-layout { grid-template-columns: 1fr; gap: 24px; max-width: 540px; }
.contact-section .contact-layout { transform: translateY(7vh); }
.contact-copy { display: grid; justify-items: stretch; gap: 10px; width: min(100%, 420px); }
.contact-copy > p { margin-bottom: 0; }
.contact-link { display: flex; justify-content: space-between; gap: 25px; padding: 13px 14px; border: 1px solid var(--line); color: var(--ice); font: 12px var(--jetbrains); text-decoration: none; }
.contact-link:hover, .contact-link:focus-visible { border-color: var(--ice); background: var(--surface-raised); }
.site-footer { position: fixed; z-index: 5; right: 0; bottom: 0; left: 246px; height: 42px; min-height: 0; display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 8px 10%; border: 0; background: rgb(8 10 12 / 88%); color: #8d969e; font: 9px var(--dejavu); }
.site-footer span:last-child { color: var(--ice); font-family: var(--jetbrains); }
.about-copy { display: block; }

@media (max-width: 800px) {
  .site-sidebar { width: 190px; padding: 30px 19px 22px; }
  .site-main { margin-left: 190px; }
  .home-section, .content-section { padding-right: 7%; padding-left: 7%; }
  .home-section h1 { font-size: 54px; }
  .project-item { grid-template-columns: 1fr; gap: 20px; }
  .project-art { min-height: 220px; }
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { left: 190px; padding-right: 7%; padding-left: 7%; }
}
@media (max-width: 560px) {
  .site-sidebar { width: 112px; padding: 24px 10px 18px; }
  .wordmark { font-size: 11px; }
  .sidebar-label { margin-top: 56px; font-size: 8px; }
  .site-nav { gap: 3px; font-size: 9px; }
  .nav-link { padding: 11px 7px; }
  .sidebar-note { font-size: 8px; }
  .site-main { margin-left: 112px; }
  .contact-section { justify-content: flex-start; padding-top: 70px; }
  .contact-section > .eyebrow { margin-bottom: 8px; }
  .site-footer { left: 112px; height: 34px; padding: 7px 18px; font-size: 7px; }
  .home-section, .content-section { padding: 76px 18px; }
  .home-page .home-section { min-height: calc(100svh - 33px); }
  .about-section, .contact-section { justify-content: flex-start; padding: 36px 18px; }
  .contact-section .contact-layout { transform: none; }
  .about-section > .eyebrow, .contact-section > .eyebrow { display: none; }
  .about-layout h1, .contact-layout h1 { font-size: 25px; line-height: 1.2; }
  .contact-layout h1 { font-size: 34px; line-height: 1.18; }
  .home-section:not(.projects-hero) { align-items: flex-start; padding-top: 36px; }
  .home-section h1 { font-size: 34px; }
  .home-subtitle, .section-intro { font-size: 11px; }
  .home-bio { margin-bottom: 20px; font-size: 9px; line-height: 1.7; }
  .home-section .eyebrow, .content-section .eyebrow { font-size: 9px; }
  .section-heading { display: block; margin-bottom: 30px; }
  .section-heading h2, .about-layout h2, .contact-layout h2 { font-size: 25px; }
  .section-intro { margin-top: 17px; }
  .project-item { padding: 10px; gap: 16px; }
  .project-art { min-height: 170px; }
  .art-placeholder { font-size: 10px; }
  .project-copy h3 { font-size: 14px; }
  .project-copy > p:last-child, .about-copy p, .contact-copy > p { font-size: 10px; }
  .about-tags { margin-top: 30px; }
  .about-tags span { font-size: 8px; }
  .site-footer { gap: 12px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-link { transition: none; }
}

.nav-projects-row { display: flex; align-items: stretch; }
.nav-projects-row .nav-link { flex: 1; min-width: 0; }
.submenu-toggle { width: 38px; flex: none; border: 0; border-left: 1px solid var(--border); background: transparent; color: var(--ice); font: 16px var(--jetbrains); cursor: pointer; }
.submenu-toggle:hover, .submenu-toggle:focus-visible, .submenu-toggle[aria-expanded="true"] { background: var(--surface-raised); }
.submenu-toggle span { display: inline-block; transition: transform .18s ease; }
.submenu-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.project-submenu { display: flex; flex-direction: column; gap: 2px; margin: 5px 0 8px 14px; padding-left: 10px; border-left: 1px solid #48525a; }
.project-submenu[hidden] { display: none; }
.project-submenu a { padding: 8px 5px; color: #c0cbd1; font: 10px var(--jetbrains); text-decoration: none; }
.project-submenu a:hover, .project-submenu a:focus-visible { background: var(--surface-raised); color: var(--ice); }
.project-item { scroll-margin-top: 24px; }
.project-item:target { border-color: var(--ice); }
@media (max-width: 560px) {
  .submenu-toggle { width: 26px; font-size: 13px; }
  .project-submenu { margin-left: 8px; padding-left: 6px; }
  .project-submenu a { padding: 8px 2px; font-size: 8px; }
}

.projects-hero { min-height: 100vh; }
.projects-hero .home-content { position: relative; z-index: 2; width: min(58%, 500px); max-width: 500px; transform: translateY(-8vh); }
.projects-hero h1 { margin: 0; color: var(--ice); font: 400 72px/1.18 var(--jetbrains); }
.projects-hero .home-subtitle { max-width: 520px; }
.about-hero h1 { margin: 0; color: var(--ice); font: 400 72px/1.18 var(--jetbrains); }
.about-hero { align-items: flex-start; padding-top: 30vh; }
.about-hero .home-content { width: 9ch; max-width: 100%; margin: 0; font-size: 72px; transform: none; }
.about-bio { width: 100%; max-width: 100%; margin: 24px 0 0; color: var(--ice); font: 14px/1.8 var(--jetbrains); }
.project-stack { position: relative; isolation: isolate; }
.project-case { position: relative; min-height: 100vh; display: grid; align-items: center; overflow: hidden; padding: 56px clamp(28px, 7vw, 104px); border-top: 1px solid #394148; background-color: #101316; scroll-margin-top: 0; }
.project-case:nth-child(1) { background-color: #101316; }
.project-case:nth-child(2) { background-color: #15181b; }
.project-case:nth-child(3) { background-color: #111518; }
.project-case:nth-child(4) { background-color: #17191c; }
.project-case:nth-child(5) { background-color: #111417; }
.project-case-inner { width: min(100%, 1180px); margin: 0 auto; }
.about-case .project-case-inner { display: flex; min-height: calc(100vh - 112px); align-items: center; }
.about-case .case-heading { width: 100%; margin: 0; }
.about-case .case-heading h2 { color: var(--ice); font: 400 clamp(42px, 6vw, 72px)/1.2 var(--jetbrains); text-align: left; }
.experience-case { min-height: auto; display: block; overflow: visible; padding: 64px clamp(28px, 7vw, 104px) 76px; }
.experience-case .project-case-inner { display: block; min-height: 0; margin: 0; }
.experience-case .case-heading { margin-bottom: 30px; }
.experience-case .case-heading h2 { font-size: 42px; }
.experience-list { width: min(100%, 900px); margin: 0; padding: 0; list-style: none; }
.experience-item { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; margin: 0; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.experience-item + .experience-item { padding-top: 18px; }
.experience-item::before { position: absolute; top: 54px; bottom: -1px; left: 26px; width: 1px; background: #48525a; content: ''; }
.experience-item:last-child { border-bottom: 0; }
.experience-logo { position: relative; z-index: 1; width: 54px; height: 54px; display: block; overflow: hidden; border: 1px solid rgb(196 237 255 / 28%); border-radius: 8px; box-shadow: 0 0 0 3px rgb(196 237 255 / 5%); color: #aab5bc; font: 8px var(--jetbrains); }
.experience-logo img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.logo-farm, .logo-motorcycle { background: #fff; }
.logo-university { background: #017fb0; }
.logo-digital { background: #71b34f; }
.logo-engineering { background: #121314; }
.logo-tomorrows-engineers { display: grid; place-items: center; background: #1d4f6d; color: var(--ice); font: 11px var(--jetbrains); }
.experience-entry h3 { margin: 0 0 3px; color: var(--ice); font: 500 16px/1.35 var(--jetbrains); }
.experience-employer { margin: 0 0 3px; color: var(--white); font: 11px/1.5 var(--dejavu); }
.experience-meta { margin: 0; color: var(--muted); font: 10px/1.6 var(--dejavu); }
.experience-description { margin: 12px 0 0; color: var(--white); font: 11px/1.7 var(--dejavu); }
.experience-responsibilities { display: grid; gap: 4px; margin: 12px 0 0; padding: 0; color: var(--white); font: 11px/1.7 var(--dejavu); list-style: none; }
.experience-responsibilities li { display: grid; grid-template-columns: 1em minmax(0, 1fr); gap: 6px; }
.experience-responsibilities li::before { color: var(--ice); content: '>'; font-family: var(--jetbrains); }
.certifications-case { min-height: auto; display: block; overflow: visible; padding: 64px clamp(28px, 7vw, 104px) 76px; }
.certifications-case .project-case-inner { display: block; min-height: 0; margin: 0; }
.certifications-case .case-heading { margin-bottom: 30px; }
.certifications-case .case-heading h2 { font-size: 42px; }
.certifications-list { width: min(100%, 900px); margin: 0; padding: 0; list-style: none; }
.certification-item { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; padding: 0 0 20px; border-bottom: 1px solid var(--line); }
.certification-item + .certification-item { padding-top: 18px; }
.certification-item:nth-child(n + 4) { display: none; }
.certifications-list.is-expanded .certification-item:nth-child(n + 4) { display: grid; }
.certification-logo { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgb(196 237 255 / 28%); border-radius: 8px; background: #192a34; color: var(--muted); font: 8px var(--jetbrains); }
.certification-entry h3 { margin: 0 0 3px; color: var(--ice); font: 500 16px/1.35 var(--jetbrains); }
.certification-organisation { margin: 0 0 3px; color: var(--white); font: 11px/1.5 var(--dejavu); }
.certification-date { margin: 0; color: var(--muted); font: 10px/1.6 var(--dejavu); }
.certifications-toggle { display: flex; justify-content: space-between; align-items: center; gap: 25px; min-width: 220px; margin-top: 18px; border: 1px solid var(--line); border-radius: 0; padding: 13px 14px; background: transparent; color: var(--ice); font: 12px var(--jetbrains); cursor: pointer; }
.certifications-toggle::after { content: '\2193'; font-size: 14px; line-height: 1; }
.certifications-toggle[aria-expanded="true"]::after { content: '\2191'; }
.certifications-toggle:hover, .certifications-toggle:focus-visible { border-color: var(--ice); background: var(--surface-raised); color: var(--ice); }
.interests-case { min-height: auto; display: block; overflow: visible; padding: 64px clamp(28px, 7vw, 104px) 76px; }
.interests-case .project-case-inner { display: block; min-height: 0; margin: 0; }
.interests-case .case-heading { margin-bottom: 30px; }
.interests-case .case-heading h2 { font-size: 42px; }
.interests-list { width: min(100%, 900px); }
.interest-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); gap: 28px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.interest-entry + .interest-entry { padding-top: 24px; }
.interest-copy h3 { margin: 0 0 8px; color: var(--ice); font: 500 16px/1.35 var(--jetbrains); }
.interest-copy p { margin: 0; color: var(--white); font: 11px/1.75 var(--dejavu); }
.interest-photos { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.interest-photo:not(.interest-photo-image) { aspect-ratio: 1.45 / 1; border: 1px solid #394148; background: #15191c; }
.interest-photo-image { margin: 0; }
.interest-photo-image img { display: block; width: 100%; height: auto; }
.interest-entry-motorcycles, .interest-entry-engineering { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 24px; row-gap: 16px; }
.interest-entry-motorcycles .interest-copy, .interest-entry-engineering .interest-copy { grid-column: 1; grid-row: 1; }
.interest-entry-motorcycles .interest-photos, .interest-entry-engineering .interest-photos { display: contents; }
.interest-entry-motorcycles .interest-photo-image:first-child, .interest-entry-engineering .interest-photo-image:last-child { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; width: 100%; height: 100%; min-height: 0; }
.interest-entry-motorcycles .interest-photo-image:last-child, .interest-entry-engineering .interest-photo-image:first-child { grid-column: 1; grid-row: 2; align-self: stretch; width: 100%; height: 100%; min-height: 0; }
.interest-entry-motorcycles .interest-photo-image img, .interest-entry-engineering .interest-photo-image img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; }
.interest-entry-motorcycles .interest-photo-image:last-child img, .interest-entry-engineering .interest-photo-image:first-child img { object-position: left bottom; }
.education-case { min-height: auto; display: block; overflow: visible; padding: 64px clamp(28px, 7vw, 104px) 76px; }
.education-case .project-case-inner { display: block; min-height: 0; margin: 0; }
.education-case .case-heading { margin-bottom: 30px; }
.education-case .case-heading h2 { font-size: 42px; }
.education-list { width: min(100%, 900px); margin: 0; padding: 0; list-style: none; }
.education-item { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 18px; margin: 0; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.education-item + .education-item { padding-top: 22px; }
.education-item::before { position: absolute; top: 54px; bottom: -1px; left: 26px; width: 1px; background: #48525a; content: ''; }
.education-item:last-child { border-bottom: 0; }
.education-logo { position: relative; z-index: 1; width: 54px; height: 54px; display: block; overflow: hidden; border: 1px solid rgb(196 237 255 / 28%); border-radius: 8px; background: var(--paper); color: var(--muted); font: 8px var(--jetbrains); }
.education-logo img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.education-logo.logo-university { background: #017fb0; }
.education-logo.logo-nelson { background: #18273e; }
.education-logo.logo-engineering { background: #121314; }
.education-entry h3 { margin: 0 0 6px; color: var(--ice); font: 500 16px/1.35 var(--jetbrains); }
.education-level { margin: 0; color: var(--muted); font: 10px/1.6 var(--dejavu); }
.education-subjects { margin-top: 18px; padding: 0; border: 0; background: transparent; }
.education-subjects h4 { margin: 0 0 8px; color: var(--ice); font: 10px var(--jetbrains); }
.education-grades { display: grid; gap: 5px; margin: 0; padding: 0; color: var(--white); font: 10px/1.5 var(--dejavu); list-style: none; }
.education-grades li { display: grid; grid-template-columns: 1em 110px 35px max-content; column-gap: 6px; align-items: baseline; min-width: 0; }
.education-grades li::before { grid-column: 1; color: var(--ice); content: '>'; font-family: var(--jetbrains); }
.education-grades li span:first-of-type { grid-column: 2; min-width: 0; }
.education-grades li span:last-of-type { grid-column: 4; }
.case-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.case-heading .project-label { margin: 0; color: var(--ice); font: 10px var(--jetbrains); text-transform: uppercase; }
.case-heading h2 { margin: 0; color: var(--ice); font: 400 clamp(25px, 3vw, 38px)/1.2 var(--jetbrains); text-align: right; }
.case-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(230px, .8fr); gap: clamp(26px, 5vw, 74px); align-items: center; }
.case-photo { min-width: 0; margin: 0; }
.case-photo-trigger { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: zoom-in; }
.case-photo-trigger-label { position: absolute; z-index: 2; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgb(196 237 255 / 55%); padding: 8px 10px; background: rgb(8 10 12 / 88%); color: var(--ice); font: 9px var(--jetbrains); white-space: nowrap; }
.case-photo-trigger:hover .case-photo-trigger-label, .case-photo-trigger:focus-visible .case-photo-trigger-label { border-color: var(--ice); background: #172027; color: var(--white); }
.case-photo-trigger:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }
.case-photo-surface { position: relative; min-height: 270px; aspect-ratio: 1.62 / 1; display: grid; place-items: center; overflow: hidden; border: 1px solid #48525a; background: radial-gradient(ellipse at 50% 40%, #30363b 0, #1a1f23 45%, #0b0e10 100%); color: #bcc5ca; font: 11px var(--jetbrains); }
.case-photo-surface::before, .case-photo-surface::after { position: absolute; content: ''; pointer-events: none; }
.case-photo-surface::before { inset: 10% 12%; border: 1px solid rgb(196 237 255 / 18%); }
.case-photo-surface::after { width: 60%; height: 1px; background: rgb(196 237 255 / 25%); transform: rotate(-24deg); }
.case-photo-surface span { position: relative; z-index: 1; padding: 10px 12px; background: rgb(8 10 12 / 76%); }
.case-photo-surface i { position: absolute; width: 24%; aspect-ratio: 1; border: 1px solid rgb(196 237 255 / 24%); border-radius: 50%; }
.case-photo-surface-alt { background: radial-gradient(ellipse at 70% 35%, #3b3934 0, #22211f 40%, #101112 100%); }
.case-photo-surface-third { background: radial-gradient(ellipse at 34% 65%, #343b3d 0, #202629 42%, #0d1012 100%); }
.case-photo figcaption { margin-top: 9px; color: #8d969e; font: 9px var(--jetbrains); text-transform: uppercase; }
.case-photo-gallery-items { display: none; }
.project-gallery { position: fixed; inset: 0; width: min(920px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); margin: auto; overflow: auto; padding: 0; border: 1px solid #48525a; background: #101316; color: var(--white); }
.project-gallery::backdrop { background: rgb(3 5 7 / 88%); backdrop-filter: blur(5px); }
.project-gallery-inner { display: grid; gap: 14px; padding: clamp(14px, 2.5vw, 28px); }
.project-gallery-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.project-gallery-header h2 { margin: 0; color: var(--ice); font: 400 20px/1.3 var(--jetbrains); }
.project-gallery-close, .project-gallery-arrow, .project-gallery-thumbnail { display: grid; place-items: center; border: 1px solid #48525a; background: #151a1e; color: var(--ice); cursor: pointer; }
.project-gallery-close { width: 40px; height: 40px; font: 24px/1 var(--sans); }
.project-gallery-viewer { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 12px; align-items: center; }
.project-gallery-viewer.is-single-photo { grid-template-columns: minmax(0, 1fr); }
.project-gallery-arrow { width: 42px; height: 48px; font: 22px/1 var(--jetbrains); }
.project-gallery-arrow[hidden], .project-gallery-thumbnails[hidden] { display: none; }
.project-gallery-close:hover, .project-gallery-arrow:hover, .project-gallery-thumbnail:hover, .project-gallery-thumbnail[aria-pressed="true"] { border-color: var(--ice); background: #1b252c; }
.project-gallery-stage { display: grid; min-width: 0; min-height: 0; place-items: center; }
.project-gallery-image { display: block; max-width: 100%; max-height: min(68vh, 720px); object-fit: contain; }
.project-gallery-placeholder { width: 100%; height: auto; min-height: 0; aspect-ratio: 1.62 / 1; }
.project-gallery-placeholder[data-parallax-layer] { transform: none !important; }
.project-gallery-count { margin: 0; color: var(--muted); font: 10px var(--jetbrains); text-align: center; }
.project-gallery-thumbnails { display: flex; justify-content: center; gap: 8px; overflow-x: auto; padding: 2px; }
.project-gallery-thumbnail { flex: 0 0 88px; width: 88px; height: 58px; min-height: 0; overflow: hidden; padding: 0; }
.project-gallery-thumbnail img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.project-gallery-thumbnail .case-photo-surface { width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; border: 0; font-size: 6px; }
.case-details { display: grid; align-content: center; }
.case-detail { padding: 15px 0 17px; border-top: 1px solid #394148; }
.case-detail h3 { margin: 0 0 8px; color: var(--ice); font: 500 12px var(--jetbrains); }
.case-detail p { margin: 0; color: #f5f7f8; font: 11px/1.75 var(--dejavu); }
.case-bullets { display: grid; gap: 5px; margin: 0; padding: 0; color: #f5f7f8; font: 11px/1.75 var(--dejavu); list-style: none; }
.case-bullets li { display: grid; grid-template-columns: 1em minmax(0, 1fr); gap: 6px; }
.case-bullets li::before { color: var(--ice); content: '>'; font-family: var(--jetbrains); }
.project-photo-cover { min-height: 0; aspect-ratio: auto; }
.project-photo-cover::before, .project-photo-cover::after { display: none; }
.project-photo-cover-image { display: block; width: 100%; height: auto; min-width: 0; min-height: 0; object-fit: contain; }

@media (max-width: 1200px) {
  .case-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 800px) {
  .project-case { padding: 42px 7%; }
  .case-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .case-photo-surface { min-height: 210px; }
  .project-gallery { width: calc(100vw - 24px); max-height: calc(100svh - 24px); }
  .project-gallery-viewer { grid-template-columns: 34px minmax(0, 1fr) 34px; gap: 6px; }
  .project-gallery-arrow { width: 34px; height: 42px; }
  .project-gallery-placeholder { height: auto; }
}
@media (max-width: 560px) {
  .projects-hero { align-items: flex-start; padding-top: 36px; }
  .projects-hero .home-content { width: 100%; max-width: none; margin: 0; transform: none; }
  .projects-hero .eyebrow { margin-bottom: 0; }
  .projects-hero h1 { font-size: 34px; }
  .about-hero { align-items: flex-start; padding-top: 36px; }
  .about-hero .home-content { width: 9ch; max-width: 100%; font-size: 34px; }
  .about-hero h1 { font-size: 34px; }
  .about-bio { margin-top: 16px; font-size: 11px; line-height: 1.6; }
  .projects-hero .home-subtitle { max-width: 100%; margin: 14px 0 12px; line-height: 1.6; }
  .projects-hero .section-link { padding: 9px 0; }
  .project-case { min-height: 100svh; padding: 30px 18px; }
  .about-case .project-case-inner { min-height: calc(100svh - 60px); }
  .about-case .case-heading h2 { font-size: 28px; }
  .experience-case { padding: 36px 18px 54px; }
  .experience-case .case-heading { margin-bottom: 22px; }
  .experience-case .case-heading h2 { font-size: 25px; }
  .experience-item { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
  .experience-item + .experience-item { padding-top: 14px; }
  .experience-item::before { top: 42px; left: 20px; }
  .experience-logo { width: 42px; height: 42px; font-size: 7px; }
  .experience-entry h3 { font-size: 11px; }
  .experience-employer { font-size: 9px; }
  .experience-meta { font-size: 8px; }
  .experience-description { margin-top: 8px; font-size: 9px; }
  .certifications-case { min-height: auto; padding: 36px 18px 54px; }
  .about-case.certifications-case .project-case-inner { min-height: 0; }
  .certifications-case .case-heading { margin-bottom: 22px; }
  .certifications-case .case-heading h2 { font-size: 25px; }
  .certification-item { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
  .certification-item + .certification-item { padding-top: 14px; }
  .certification-logo { width: 42px; height: 42px; font-size: 7px; }
  .certification-entry h3 { font-size: 11px; }
  .certification-organisation { font-size: 9px; }
  .certification-date, .certifications-toggle { font-size: 8px; }
  .interests-case { min-height: auto; padding: 36px 18px 54px; }
  .about-case.interests-case .project-case-inner { min-height: 0; }
  .interests-case .case-heading { margin-bottom: 22px; }
  .interests-case .case-heading h2 { font-size: 25px; }
  .interest-entry { grid-template-columns: 1fr; gap: 14px; padding-bottom: 18px; }
  .interest-entry + .interest-entry { padding-top: 18px; }
  .interest-copy h3 { font-size: 11px; }
  .interest-copy p { font-size: 9px; }
  .interest-photos { grid-template-columns: 1fr; gap: 8px; }
  .interest-photo:not(.interest-photo-image) { aspect-ratio: 1.25 / 1; }
  .interest-entry-motorcycles, .interest-entry-engineering { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .interest-entry-motorcycles .interest-copy,
  .interest-entry-motorcycles .interest-photo-image:first-child,
  .interest-entry-motorcycles .interest-photo-image:last-child,
  .interest-entry-engineering .interest-copy,
  .interest-entry-engineering .interest-photo-image:first-child,
  .interest-entry-engineering .interest-photo-image:last-child { grid-column: 1; grid-row: auto; width: 100%; height: auto; }
  .interest-entry-motorcycles .interest-photo-image img,
  .interest-entry-engineering .interest-photo-image img { height: auto; }
  .education-case { min-height: auto; padding: 36px 18px 54px; }
  .about-case.education-case .project-case-inner { min-height: 0; }
  .education-case .case-heading { margin-bottom: 22px; }
  .education-case .case-heading h2 { font-size: 25px; }
  .education-item { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
  .education-item + .education-item { padding-top: 16px; }
  .education-item::before { top: 42px; left: 20px; }
  .education-logo { width: 42px; height: 42px; font-size: 7px; }
  .education-entry h3 { font-size: 11px; }
  .education-level { font-size: 8px; }
  .education-subjects { margin-top: 12px; }
  .education-subjects h4 { font-size: 8px; }
  .education-grades { font-size: 8px; }
  .education-grades li { grid-template-columns: 1em 80px minmax(0, 1fr); }
  .education-grades li span:last-of-type { grid-column: 3; overflow-wrap: anywhere; }
  .case-heading { display: block; margin-bottom: 18px; }
  .case-heading .project-label { margin-bottom: 8px; font-size: 8px; }
  .case-heading h2 { font-size: 18px; text-align: left; }
  .case-layout { grid-template-columns: 1fr; gap: 16px; }
  .case-photo-surface { min-height: 0; aspect-ratio: 1.55 / 1; font-size: 8px; }
  .project-photo-cover { aspect-ratio: auto; }
  .case-photo figcaption { font-size: 7px; }
  .case-detail { padding: 9px 0 10px; }
  .case-detail h3 { margin-bottom: 5px; font-size: 9px; }
  .case-detail p { font-size: 8px; line-height: 1.55; }
  .project-footer { padding: 15px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .case-photo-surface { transform: none !important; }
}
@media (max-width: 340px) {
  .education-grades li { grid-template-columns: 1em minmax(0, 1fr); row-gap: 2px; }
  .education-grades li span:first-of-type { white-space: nowrap; }
  .education-grades li span:last-of-type { grid-column: 2; grid-row: 2; }
}
