:root {
  color-scheme: light;
  --paper: #f4f3ef;
  --white: #fffefa;
  --ink: #18202d;
  --muted: #596372;
  --line: #d7dbe0;
  --night: #111827;
  --night-soft: #1c2637;
  --blue: #6879f4;
  --lime: #c9f27c;
  --coral: #ff8068;
  --sans: "DM Sans", sans-serif;
  --display: "Space Grotesk", sans-serif;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 18px/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.ui-icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ui-icon-filled { fill: currentColor; stroke: none; }
::selection { color: var(--night); background: var(--lime); }
.shell { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }

.site-header { position: sticky; z-index: 20; top: 0; height: 82px; color: var(--white); background: var(--night); }
.nav { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.brand { font: 700 20px/1 var(--display); letter-spacing: -.8px; }
.brand span { margin-left: 5px; color: var(--lime); font: 500 9px var(--mono); vertical-align: top; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 15px; font-weight: 600; }
.nav-links > a:not(.nav-contact) { color: #ccd1d9; transition: color .2s ease; }
.nav-links > a:not(.nav-contact):hover { color: var(--lime); }
.nav-contact { padding: 11px 16px; border: 1px solid #536071; transition: background .2s ease, color .2s ease; }
.nav-contact .ui-icon { margin-left: 10px; color: var(--lime); }
.nav-contact:hover { color: var(--night); background: var(--lime); }
.menu-toggle { display: none; }

.hero { position: relative; display: grid; min-height: 715px; grid-template-columns: 1fr .83fr; align-items: center; gap: 55px; padding-top: 64px; padding-bottom: 90px; }
.hero-content { padding-left: 22px; }
.eyebrow, .hero-location, .section-kicker, .slot-number, .photo-slot figcaption, .project-number, .project-type, .skill-index, .education-date, .contact-kind, .contact-bottom { font-family: var(--mono); letter-spacing: 1.15px; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; color: #637080; font-size: 11px; }
.availability-dot { width: 9px; height: 9px; border-radius: 50%; background: #6b9b74; box-shadow: 0 0 0 5px rgba(107, 155, 116, .14); }
.eyebrow-slash { color: #a0a9b5; }
.hero h1 { margin: 27px 0 22px; font: 700 clamp(63px, 7.6vw, 101px)/.95 var(--display); letter-spacing: -7.2px; }
.hero h1 span { color: var(--blue); }
.hero-description { max-width: 555px; color: var(--muted); font-size: 19px; line-height: 1.75; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 29px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 25px; padding: 13px 17px; font-size: 14px; font-weight: 700; transition: background .2s, color .2s, transform .2s; }
.button .ui-icon { width: 17px; height: 17px; }
.button-accent { color: var(--night); background: var(--lime); }
.button-accent:hover { transform: translateY(-2px); background: #d7ffa0; }
.button-outline { border: 1px solid #c9ced3; }
.button-outline:hover { color: var(--white); background: var(--night); }
.hero-location { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 48px; color: #7d8792; font-size: 13px; }
.hero-location span + span::before { margin-right: 19px; color: #c3c8cc; content: "/"; }
.portrait-card { --portrait-gutter: 23px; position: relative; display: block; padding: var(--portrait-gutter) var(--portrait-gutter) 0; background: var(--blue); box-shadow: 0 12px 26px rgba(27, 38, 58, .12); transition: transform .3s ease, box-shadow .3s ease; }
.portrait-card:hover { transform: translateY(-7px) rotateX(1deg); box-shadow: 0 24px 42px rgba(27, 38, 58, .23); }
.portrait-card:focus-visible { outline: 3px solid var(--night); outline-offset: 5px; }
.portrait-frame { position: relative; min-height: 490px; display: flex; flex-direction: column; overflow: hidden; color: #e8eaff; background: var(--night-soft); }
.portrait-image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: 0; transition: opacity .25s ease, transform .55s ease; }
.portrait-frame.has-photo .portrait-image { opacity: 1; }
.portrait-card:hover .portrait-image { transform: scale(1.035); }
.portrait-art { position: relative; z-index: 1; height: 345px; display: grid; place-items: center; color: #7383ef; background-image: linear-gradient(rgba(179, 187, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(179, 187, 255, .08) 1px, transparent 1px); background-size: 27px 27px; }
.portrait-art svg { width: min(76%, 290px); height: 100%; }
.portrait-frame.has-photo .portrait-art { background: none; }
.portrait-frame.has-photo .portrait-art svg { visibility: hidden; }
.portrait-caption { position: relative; z-index: 1; }
.portrait-caption { display: flex; min-height: 82px; align-items: center; gap: 14px; margin-top: auto; padding: 12px 19px; background: #202b3d; }
.portrait-frame.has-photo .portrait-caption { background: linear-gradient(transparent, rgba(17, 24, 39, .9)); }
.portrait-initials, .portrait-avatar { width: 42px; height: 42px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #9fa9f8; border-radius: 50%; }
.portrait-initials { color: var(--lime); font: 600 14px var(--display); }
.portrait-avatar { display: none; object-fit: cover; object-position: center top; }
.portrait-avatar.is-loaded { display: block; }
.portrait-avatar.is-loaded + .portrait-initials { display: none; }
.portrait-caption div { display: flex; flex: 1; flex-direction: column; }
.portrait-caption strong { font-size: 15px; }
.portrait-caption small { color: #b4bdcc; font-size: 12px; }
.caption-arrow { color: var(--lime); font-size: 18px; transition: transform .2s ease; }
.portrait-card:hover .caption-arrow { transform: translate(2px, -2px); }
.portrait-footer { height: var(--portrait-gutter); }

.ticker { overflow: hidden; color: var(--night); background: var(--lime); }
.ticker-track { display: flex; width: max-content; min-height: 57px; align-items: center; gap: 34px; animation: ticker-scroll 38s linear infinite; }
.ticker-track span { font: 600 13px var(--display); letter-spacing: 1.1px; }
.ticker-track i { width: 8px; height: 8px; border: 2px solid var(--night); border-radius: 50%; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

.section { padding-top: 112px; padding-bottom: 112px; }
.section-kicker { display: flex; align-items: center; gap: 14px; color: #7b8490; font-size: 14px; }
.section-kicker span { color: var(--blue); font-size: 16px; }
.section-kicker-icon { width: 15px; height: 15px; color: var(--blue); }
.about-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; margin-top: 43px; }
.about-grid h2, .photo-heading h2, .work-heading h2, .skills-heading h2, .contact-heading h2 { margin: 0; font: 700 clamp(43px, 5.2vw, 68px)/1.07 var(--display); letter-spacing: -3.8px; }
.about-grid h2 span { color: var(--blue); }
.about-copy p { margin: 0 0 19px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.about-copy .about-lead { color: var(--ink); font-size: 21px; font-weight: 600; line-height: 1.65; }
.text-link { display: inline-flex; gap: 12px; align-items: center; margin-top: 8px; color: var(--ink); font-size: 15px; font-weight: 700; }
.text-link .ui-icon { color: var(--blue); }

.photo-section { color: var(--white); background: var(--night); }
.photo-section-inner { padding-top: 88px; padding-bottom: 100px; }
.section-kicker-light { color: #a8b1bf; }
.section-kicker-light span { color: var(--lime); }
.section-kicker-light .section-kicker-icon { color: var(--lime); }
.photo-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin: 35px 0 38px; }
.photo-heading h2 { font-size: clamp(45px, 5.4vw, 70px); }
.photo-heading h2 em, .skills-heading h2 em, .contact-heading h2 em { color: var(--lime); font-style: normal; }
.photo-heading p { max-width: 385px; margin: 0 0 6px; color: #b5bfca; font-size: 16px; line-height: 1.7; }
.photo-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 19px; align-items: start; }
.photo-slot { min-width: 0; margin: 0; }
.photo-placeholder { position: relative; min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.photo-slot-large .photo-placeholder { min-height: 405px; }
.gallery-image { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.photo-placeholder.has-photo .gallery-image { opacity: 1; }
.photo-placeholder.has-photo > :not(.gallery-image):not(.slot-number) { visibility: hidden; }
.photo-placeholder.has-photo { cursor: zoom-in; }
.photo-placeholder.has-photo:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.photo-placeholder.has-photo .slot-number { z-index: 1; }
.photo-blue { color: #dfe4ff; background: #3944a4; }
.photo-lime { color: #28341a; background: #c9f27c; }
.photo-coral { color: #321f26; background: #ff8068; }
.photo-placeholder::before { position: absolute; inset: 14px; content: ""; border: 1px solid currentColor; opacity: .23; }
.slot-number { position: absolute; top: 22px; left: 22px; font-size: 9px; opacity: .8; }
.photo-placeholder svg { width: 79px; height: 79px; margin-bottom: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; opacity: .58; }
.photo-slot-large .photo-placeholder svg { width: 93px; height: 93px; }
.add-photo { position: absolute; top: calc(50% - 56px); left: calc(50% + 24px); width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: var(--night); background: var(--lime); font: 17px var(--sans); }
.photo-placeholder strong { padding: 0 12px; font: 600 18px var(--display); }
.photo-placeholder small { margin-top: 7px; font: 11px var(--mono); opacity: .72; }
.photo-slot figcaption { display: flex; justify-content: space-between; padding-top: 11px; color: #a7b0bd; font-size: 9px; }

.work-section { background: #e7e9ef; }
.work-section .section { padding-top: 103px; padding-bottom: 106px; }
.work-heading { display: flex; justify-content: space-between; align-items: end; gap: 45px; margin: 35px 0 42px; }
.work-heading h2 { font-size: clamp(44px, 5.3vw, 67px); }
.work-heading h2 span { color: #7180e7; }
.work-heading p { max-width: 395px; margin: 0 0 7px; color: #586372; font-size: 16px; line-height: 1.7; }
.project-list { border-top: 1px solid #c8cdd5; }
.project-row { display: grid; grid-template-columns: 48px 112px minmax(0, 1fr) 52px; gap: 25px; align-items: center; padding: 24px 0; border-bottom: 1px solid #c8cdd5; }
.project-number { align-self: start; padding-top: 10px; color: #78838f; font-size: 11px; }
.project-icon { position: relative; width: 112px; height: 102px; display: grid; place-items: center; overflow: hidden; }
.project-icon span { position: relative; z-index: 1; font: 600 26px var(--display); letter-spacing: -1.5px; }
.project-water { color: #d7f0ff; background: #194b63; }
.project-water::before { position: absolute; width: 75px; height: 75px; border: 1px solid #81b8cc; border-radius: 50%; content: ""; box-shadow: 0 0 0 12px rgba(129, 184, 204, .15); }
.project-traffic { color: #f0f3df; background: #3d493a; }
.project-traffic::before { position: absolute; width: 150px; height: 33px; transform: rotate(-25deg); content: ""; border-block: 1px solid rgba(240, 243, 223, .65); background: #202922; }
.project-compute { color: #e0e6ff; background-color: #3b466b; background-image: radial-gradient(rgba(210, 218, 255, .5) 1px, transparent 1px); background-size: 15px 15px; }
.project-compute span { font-size: 23px; }
.project-drawing { color: #374e39; background: #d3dec9; }
.project-drawing::before { position: absolute; width: 73px; height: 55px; content: ""; border: 1px solid #627e62; background: repeating-linear-gradient(0deg, transparent 0 11px, rgba(55, 78, 57, .15) 11px 12px), repeating-linear-gradient(90deg, transparent 0 11px, rgba(55, 78, 57, .15) 11px 12px); }
.project-drawing span { font: 8px var(--mono); letter-spacing: .5px; }
.project-text { padding: 0 10px; }
.project-type { color: #788291; font-size: 10px; }
.project-text h3 { margin: 5px 0 4px; font: 600 23px/1.3 var(--display); letter-spacing: -.7px; }
.project-text p { max-width: 740px; margin: 0; color: #586372; font-size: 15px; line-height: 1.65; }
.project-button { width: 46px; height: 46px; border: 1px solid #aeb7c2; border-radius: 50%; color: var(--ink); background: transparent; cursor: pointer; transition: color .2s, background .2s, transform .2s; }
.project-button .ui-icon { width: 18px; height: 18px; }
.project-button:hover { transform: rotate(45deg); color: var(--white); background: var(--night); }

.skills-section { color: var(--white); background: #283b84; }
.skills-inner { padding-top: 95px; padding-bottom: 105px; }
.skills-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin: 35px 0 40px; }
.skills-heading h2 { font-size: clamp(46px, 5.6vw, 72px); }
.skills-heading p { max-width: 380px; margin: 0 0 7px; color: #d5daf1; font-size: 16px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.skill-card { min-height: 296px; padding: 25px 26px; border: 1px solid rgba(238, 241, 255, .26); background: rgba(15, 24, 53, .16); }
.skill-index { color: #c4cbed; font-size: 10px; }
.skill-card h3 { display: flex; align-items: center; gap: 11px; margin: 24px 0 13px; font: 600 23px var(--display); }
.skill-card h3 .ui-icon { width: 22px; height: 22px; color: var(--lime); }
.skill-card ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.skill-card li { padding: 7px 10px; border: 1px solid rgba(238, 241, 255, .28); color: #f1f2fb; font-size: 13px; }

.education-section { min-height: calc(100vh - 82px); display: flex; align-items: center; padding: 72px 0; background: #e7e9ef; }
.education-content { margin-inline: auto; }
.education-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 31px; }
.education-heading h2 { margin: 17px 0 0; font: 700 clamp(38px, 4.5vw, 56px)/1.08 var(--display); letter-spacing: -2.8px; }
.education-list { border-top: 1px solid #c8cdd5; }
.education-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 175px; gap: 22px; align-items: start; padding: 25px 0; border-bottom: 1px solid #c8cdd5; }
.education-mark { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(24, 32, 45, .12); background: #fffefa; font: 700 15px var(--display); letter-spacing: -1px; }
.mark-ioe { color: #394bb0; }
.mark-arniko { color: #498451; }
.mark-modern { color: #b55f4e; }
.education-details h3 { margin: 0 0 5px; font: 600 21px/1.35 var(--display); }
.education-details p { margin: 0; color: #5e6977; font-size: 16px; }
.education-school { display: block; margin-top: 5px; color: #87919d; font-size: 14px; }
.education-tag { display: inline-block; margin-top: 11px; padding: 3px 8px; color: #394bb0; background: #dce1fa; font: 9px var(--mono); letter-spacing: .8px; }
.education-date { padding-top: 5px; color: #78838f; font-size: 11px; text-align: right; }

.contact-section { color: var(--white); background: var(--night); }
.contact-inner { padding-top: 84px; padding-bottom: 26px; }
.contact-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin: 34px 0 39px; }
.contact-heading h2 { font-size: clamp(49px, 6vw, 77px); }
.contact-heading p { max-width: 390px; margin: 0 0 8px; color: #bbc4d0; font-size: 17px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.contact-card { position: relative; min-width: 0; min-height: 120px; display: flex; flex-direction: column; justify-content: center; overflow-wrap: anywhere; padding: 18px 58px 18px 64px; border: 1px solid #475365; background: #182232; }
.contact-icon { position: absolute; top: 50%; left: 20px; width: 26px; height: 26px; color: var(--lime); transform: translateY(-50%); }
.contact-icon-linkedin, .contact-icon-facebook { width: 27px; height: 27px; color: #82aaff; }
.email-card { transition: background .2s, border-color .2s; }
.email-card:hover { border-color: var(--lime); background: #202e40; }
.contact-kind { margin-bottom: 5px; color: #aeb9c8; font-size: 10px; }
.contact-card strong { font: 600 19px var(--display); }
.email-card strong { font-size: 17px; }
.contact-card small { margin-top: 4px; color: #aeb9c8; font-size: 13px; }
.link-slot { border-style: dashed; }
.link-slot strong { color: #e8ebf0; }
.link-slot[aria-disabled="true"] { cursor: default; }
.link-slot:not([aria-disabled="true"]):hover { border-color: var(--lime); background: #202e40; }
.contact-arrow { position: absolute; top: 50%; right: 21px; display: flex; color: var(--lime); transform: translateY(-50%); }
.contact-arrow .ui-icon { width: 20px; height: 20px; }
.contact-bottom { display: flex; justify-content: space-between; margin-top: 54px; padding-top: 17px; border-top: 1px solid #3a4655; color: #aeb9c8; font-size: 9px; }
.contact-bottom a:hover { color: var(--lime); }
.footer { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 15px; color: #7b8592; font-size: 12px; }
.footer .brand { color: var(--ink); }

.project-dialog { position: fixed; width: min(610px, calc(100% - 32px)); max-width: none; max-height: 85vh; padding: 40px; border: 1px solid #d5dae1; color: var(--ink); background: var(--white); box-shadow: 0 25px 90px rgba(12, 19, 36, .34); }
.project-dialog::backdrop { background: rgba(14, 21, 34, .77); backdrop-filter: blur(4px); }
.photo-dialog { position: fixed; width: min(96vw, 1500px); max-width: none; max-height: 96vh; padding: 52px 18px 16px; border: 1px solid #475365; color: var(--white); background: var(--night); box-shadow: 0 25px 90px rgba(12, 19, 36, .55); overflow: auto; }
.photo-dialog::backdrop { background: rgba(14, 21, 34, .88); backdrop-filter: blur(4px); }
.photo-dialog .dialog-close { color: var(--white); }
.photo-dialog-content { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.photo-dialog-content img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(90vh - 52px); object-fit: contain; }
.photo-original-link { color: var(--lime); font-size: 13px; font-weight: 600; }
.photo-original-link:hover { text-decoration: underline; }
.dialog-close { position: absolute; top: 12px; right: 17px; width: 38px; height: 38px; border: 0; color: var(--muted); background: transparent; font-size: 29px; cursor: pointer; }
.dialog-kicker { color: #6b7785; font: 10px var(--mono); letter-spacing: 1px; }
.project-dialog h2 { margin: 15px 0 10px; font: 600 35px/1.12 var(--display); letter-spacing: -1.4px; }
.project-dialog > p { color: #596574; font-size: 16px; }
.dialog-details { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 22px 0; }
.dialog-detail { padding: 13px; border: 1px solid var(--line); }
.dialog-detail span { display: block; margin-bottom: 6px; color: #7d8895; font: 10px var(--mono); }
.dialog-detail strong { font-size: 14px; }
.project-dialog .dialog-note { padding-top: 13px; border-top: 1px solid var(--line); font-size: 13px; }
.reveal-ready .reveal { opacity: 0; transform: translateY(15px); transition: opacity .65s ease, transform .65s ease; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .shell { width: min(100% - 52px, 760px); }
  .hero { grid-template-columns: 1.04fr .96fr; gap: 25px; min-height: 650px; }
  .hero-content { padding-left: 0; }
  .hero h1 { font-size: clamp(58px, 8vw, 78px); letter-spacing: -5px; }
  .portrait-card { --portrait-gutter: 15px; padding: var(--portrait-gutter) var(--portrait-gutter) 0; }
  .portrait-frame { min-height: 425px; }
  .portrait-art { height: 288px; }
  .about-grid { gap: 35px; }
  .project-row { grid-template-columns: 35px 90px minmax(0, 1fr) 46px; gap: 15px; }
  .project-icon { width: 90px; height: 90px; }
  .skills-grid { gap: 10px; }
  .skill-card { padding: 22px 18px; }
  .education-row { grid-template-columns: 56px minmax(0, 1fr) 145px; gap: 15px; }
  .education-mark { width: 52px; height: 52px; }
  .education-date { font-size: 10px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 64px; }
  .shell { width: calc(100% - 40px); }
  .site-header { height: 68px; }
  .menu-toggle { display: flex; width: 42px; height: 42px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid #465366; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 18px; height: 1px; background: var(--white); transition: transform .2s; }
  .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); }
  .nav-links { position: absolute; top: 67px; right: 0; left: 0; display: flex; max-height: 0; flex-direction: column; align-items: stretch; gap: 0; overflow: hidden; padding: 0 20px; color: var(--white); background: var(--night); transition: max-height .25s, padding .25s; }
  .nav-links.is-open { max-height: 360px; padding: 8px 20px 18px; border-bottom: 1px solid #465366; }
  .nav-links > a:not(.nav-contact) { padding: 11px 0; border-top: 1px solid #344051; }
  .nav-contact { margin-top: 9px; text-align: center; }
  .hero { grid-template-columns: 1fr; gap: 38px; min-height: unset; padding-top: 53px; padding-bottom: 68px; }
  .eyebrow { gap: 7px; font-size: 9px; }
  .hero h1 { margin: 23px 0 17px; font-size: clamp(55px, 15vw, 78px); letter-spacing: -4px; }
  .hero-description { max-width: 500px; font-size: 17px; }
  .hero-buttons { gap: 10px; margin-top: 23px; }
  .button { min-height: 48px; padding: 11px 13px; font-size: 13px; }
  .hero-location { gap: 12px; margin-top: 32px; font-size: 10px; }
  .hero-location span + span::before { margin-right: 11px; }
  .portrait-card { width: min(100%, 440px); justify-self: center; }
  .portrait-frame { min-height: 390px; }
  .portrait-art { height: 260px; }
  .portrait-index { font-size: 8px; }
  .ticker-track { min-height: 48px; gap: 24px; }
  .ticker-track span { font-size: 11px; }
  .section { padding-top: 76px; padding-bottom: 76px; }
  .section-kicker { font-size: 12px; }
  .section-kicker span { font-size: 14px; }
  .about-grid { grid-template-columns: 1fr; gap: 25px; margin-top: 27px; }
  .about-grid h2, .photo-heading h2, .work-heading h2, .skills-heading h2, .contact-heading h2 { font-size: clamp(41px, 11vw, 59px); letter-spacing: -2.6px; }
  .about-copy p { font-size: 16px; }
  .about-copy .about-lead { font-size: 19px; }
  .photo-section-inner { padding-top: 69px; padding-bottom: 75px; }
  .photo-heading, .work-heading, .skills-heading, .contact-heading { display: block; margin: 26px 0 29px; }
  .photo-heading p, .work-heading p, .skills-heading p, .contact-heading p { margin-top: 15px; font-size: 16px; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 17px 12px; }
  .photo-slot-large { grid-column: 1 / -1; }
  .photo-slot-large .photo-placeholder { min-height: 320px; }
  .photo-placeholder { min-height: 225px; }
  .photo-placeholder strong { font-size: 15px; }
  .photo-placeholder small { font-size: 9px; }
  .slot-number { top: 17px; left: 15px; font-size: 8px; }
  .photo-placeholder::before { inset: 9px; }
  .photo-slot figcaption { font-size: 8px; }
  .work-section .section { padding-top: 76px; padding-bottom: 78px; }
  .project-row { grid-template-columns: 25px 68px minmax(0, 1fr) 38px; gap: 10px; padding: 21px 0; }
  .project-number { font-size: 9px; }
  .project-icon { width: 68px; height: 75px; }
  .project-icon span { font-size: 19px; }
  .project-compute span { font-size: 16px; }
  .project-drawing span { font-size: 6px; }
  .project-type { font-size: 9px; letter-spacing: .45px; }
  .project-text { padding: 0; }
  .project-text h3 { font-size: 18px; line-height: 1.25; }
  .project-text p { font-size: 14px; }
  .project-button { width: 34px; height: 34px; font-size: 17px; }
  .skills-inner { padding-top: 74px; padding-bottom: 80px; }
  .skills-grid { grid-template-columns: 1fr; gap: 11px; }
  .skill-card { min-height: unset; padding: 21px; }
  .skill-card h3 { margin: 14px 0 11px; font-size: 21px; }
  .skill-card li { font-size: 14px; }
  .education-section { min-height: calc(100vh - 68px); padding: 68px 0; }
  .education-heading { display: block; margin-bottom: 23px; }
  .education-heading h2 { font-size: 39px; letter-spacing: -2px; }
  .education-row { grid-template-columns: 46px minmax(0, 1fr); gap: 7px 13px; padding: 21px 0; }
  .education-mark { grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 44px; font-size: 12px; }
  .education-date { grid-column: 2; grid-row: 1; padding-top: 1px; font-size: 9px; text-align: left; }
  .education-details { grid-column: 2; grid-row: 2; }
  .education-details h3 { font-size: 18px; }
  .education-details p { font-size: 15px; }
  .education-school { font-size: 13px; }
  .contact-inner { padding-top: 70px; padding-bottom: 23px; }
  .contact-grid { grid-template-columns: 1fr; gap: 9px; }
  .contact-card { min-height: 101px; padding-left: 58px; }
  .contact-card strong { font-size: 18px; }
  .email-card strong { font-size: 16px; }
  .contact-card small { font-size: 13px; }
  .contact-bottom { gap: 10px; margin-top: 36px; font-size: 8px; }
  .footer { min-height: 72px; flex-wrap: wrap; padding-top: 15px; padding-bottom: 15px; font-size: 10px; }
  .footer span:nth-child(2) { order: 3; width: 100%; }
  .project-dialog { padding: 35px 23px 25px; }
  .project-dialog h2 { font-size: 30px; }
  .project-dialog > p { font-size: 15px; }
  .dialog-details { grid-template-columns: 1fr; }
}

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

.admin-page { min-height: 100vh; background: #e7e9ef; }
.admin-header { color: var(--white); background: var(--night); }
.admin-header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-brand { font-size: 19px; }
.admin-header-label, .admin-view-link { font: 10px var(--mono); letter-spacing: 1px; }
.admin-header-label { color: #aeb9c8; }
.admin-view-link { color: var(--lime); }
.admin-main { padding-top: 58px; padding-bottom: 70px; }
.admin-main > h1 { margin: 20px 0 8px; font: 700 clamp(38px, 5vw, 58px)/1.08 var(--display); letter-spacing: -2.6px; }
.admin-intro { max-width: 760px; margin: 0; color: var(--muted); font-size: 16px; }
.admin-notice { margin: 25px 0; padding: 16px 19px; border-left: 3px solid var(--blue); background: var(--white); color: #4c5664; font-size: 14px; }
.admin-notice strong { color: var(--ink); }
.admin-layout { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.5fr); gap: 18px; align-items: start; }
.admin-panel { min-width: 0; padding: 23px; border: 1px solid #d5dae1; background: var(--white); }
.admin-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.admin-panel-heading .admin-button-secondary { flex-shrink: 0; white-space: nowrap; }
.admin-panel h2, .admin-publish h2 { margin: 0; font: 600 21px/1.3 var(--display); }
.admin-button, .admin-button-secondary, .admin-edit-button, .admin-delete, .admin-reset { min-height: 40px; padding: 9px 13px; border: 1px solid transparent; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.admin-button { color: var(--night); background: var(--lime); }
.admin-button:hover { background: #d7ffa0; }
.admin-button-secondary, .admin-edit-button { border-color: #c8cdd5; color: var(--ink); background: transparent; }
.admin-button-secondary:hover, .admin-edit-button:hover { border-color: var(--blue); background: #f0f1fb; }
.admin-project-list { display: grid; gap: 8px; }
.admin-project-entry { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #e0e3e8; }
.admin-project-entry > div { min-width: 0; }
.admin-project-entry strong, .admin-project-entry small { display: block; overflow-wrap: anywhere; }
.admin-project-entry strong { font: 600 14px/1.35 var(--display); }
.admin-project-entry small { margin-top: 3px; color: #737e8b; font: 9px/1.5 var(--mono); }
.admin-edit-button { min-height: 34px; padding: 6px 10px; }
.admin-empty { color: var(--muted); font-size: 14px; }
.admin-reset { width: 100%; margin-top: 13px; border-color: #e0e3e8; color: #65707d; background: transparent; }
.admin-reset:hover { border-color: var(--coral); color: #8e3f36; background: #fff3f0; }
.admin-form-help { margin: 5px 0 21px; color: #747f8c; font-size: 13px; }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.admin-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: #45505e; font-size: 13px; font-weight: 700; }
.admin-field-wide { grid-column: 1 / -1; }
.admin-field input, .admin-field textarea, .admin-field select { width: 100%; min-height: 42px; padding: 10px 11px; border: 1px solid #cbd1d9; border-radius: 0; color: var(--ink); background: #fff; font: 14px/1.5 var(--sans); }
.admin-field textarea { min-height: 92px; resize: vertical; }
.admin-field input:focus, .admin-field textarea:focus, .admin-field select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.admin-form-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.admin-delete { margin-left: auto; border-color: #e5bcb6; color: #9c4339; background: #fff8f6; }
.admin-delete:hover { border-color: #c7665b; background: #ffede9; }
.admin-publish { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 20px; padding: 23px; color: var(--white); background: var(--night); }
.admin-publish p { margin: 5px 0 0; color: #bbc4d0; font-size: 14px; }
.admin-publish .admin-status { color: var(--lime); font-size: 13px; }
.admin-status.is-error { color: #ffad9a; }
.admin-publish-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 17px; }
.admin-preview-link { color: var(--white); font-size: 13px; font-weight: 700; }
.admin-preview-link:hover { color: var(--lime); }

@media (max-width: 820px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-publish { align-items: flex-start; flex-direction: column; }
  .admin-publish-actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .admin-header-inner { min-height: 68px; gap: 10px; }
  .admin-header-label { display: none; }
  .admin-view-link { font-size: 9px; }
  .admin-main { padding-top: 39px; padding-bottom: 45px; }
  .admin-main > h1 { letter-spacing: -1.8px; }
  .admin-intro { font-size: 15px; }
  .admin-panel { padding: 17px; }
  .admin-panel-heading { align-items: flex-start; flex-direction: column; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-field-wide { grid-column: auto; }
  .admin-publish { padding: 18px; }
  .admin-publish-actions { align-items: stretch; flex-direction: column; }
}
