.project-art { position: relative; isolation: isolate; height: 173px; overflow: hidden; display: grid; place-items: center; }
.weather-art { background: #dce9ef; }
.weather-orbit { position: absolute; width: 250px; aspect-ratio: 1; border: 1px solid #92b1bd; border-radius: 50%; box-shadow: 0 0 0 21px #b8d3dd70, 0 0 0 44px #b8d3dd50; transform: translate(25%, -24%); }
.weather-window { z-index: 1; width: 171px; padding: .55rem .75rem; border-radius: 10px; border: 1px solid #99b2bb; background: #f5fbff; color: #355063; box-shadow: 0 10px 16px #29454c25; transform: rotate(-6deg); }
.weather-window > span { font: 500 .65rem var(--typeface); }
.weather-window > div { display: flex; align-items: center; justify-content: space-between; }
.weather-window strong { color: #1b333e; font-size: 2.3rem; line-height: 1.2; letter-spacing: -.08em; }
.weather-sun { width: 29px; height: 29px; border-radius: 50%; background: #e7b64e; box-shadow: 0 0 0 5px #f6e7b6; margin-right: .45rem; }
.notes-art { background-color: #e7e0f3; background-image: radial-gradient(#a393bd 1px, transparent 1px); background-size: 13px 13px; }
.video-tile, .notes-tile { position: absolute; border-radius: 10px; box-shadow: 0 8px 18px #3c275633; }
.video-tile { width: 137px; height: 85px; display: grid; place-items: center; transform: translate(-34px, -11px) rotate(-10deg); background: #45365a; border: 1px solid #695779; }
.video-tile > span { width: 0; height: 0; border-block: 10px solid transparent; border-left: 16px solid #e8dafa; }
.notes-tile { display: grid; gap: .35rem; width: 118px; padding: .68rem; background: #fcf9ff; border: 1px solid #b5a5c9; color: #39294d; transform: translate(40px, 15px) rotate(8deg); }
.notes-tile strong { font-size: .77rem; }
.notes-tile i { height: 3px; border-radius: 3px; background: #b5a1ce; }
.notes-tile i:last-child { width: 63%; }
.tracking-art { background: repeating-linear-gradient(28deg, transparent 0 25px, #f1f5ec 25px 30px, transparent 30px 50px), repeating-linear-gradient(112deg, #dbe8d3 0 28px, #f1f5ec 28px 33px, #dbe8d3 33px 63px); }
.map-park { position: absolute; width: 86px; height: 59px; left: 15%; bottom: 17%; border-radius: 40% 25% 45% 25%; background: #aacb97; transform: rotate(25deg); }
.map-route { width: 94px; height: 61px; border-bottom: 3px dashed #476b3d; border-right: 3px dashed #476b3d; transform: translate(-13px, -16px) rotate(8deg); border-bottom-right-radius: 12px; }
.map-beacon { position: absolute; width: 16px; aspect-ratio: 1; border-radius: 50%; border: 3px solid #f6faef; background: #426e36; box-shadow: 0 0 0 7px #709f5a55; transform: translate(30px, -47px); }
.map-label { padding: .32rem .55rem; border: 1px solid #a8ba9b; border-radius: 6px; background: #f5f8ee; color: #34562c; position: absolute; transform: translate(25px, 30px); font: 500 .66rem var(--typeface); }
.shell { width: min(1100px, calc(100% - 80px)); margin-inline: auto; }
:root { --muted: #575954; --line: #dedfd9; --section-width: 760px; }
:root[data-theme="dark"] { --muted: #b6b7ae; --line: #41423e; }
html { scroll-padding-top: calc(var(--header-height, 78px) + 24px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.skip { position: absolute; top: 5px; left: 5px; z-index: 5; padding: .6rem; background: var(--page-background); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 4; background: var(--page-background); }
.masthead {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  column-gap: clamp(.7rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--line);
}
.brand { justify-self: start; display: inline-flex; align-items: center; text-decoration: none; }
.monogram { display: inline-flex; gap: .25rem; font: 400 2.65rem/1 var(--heading-font); letter-spacing: -.02em; }
.monogram::after, .brand-tail::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); align-self: flex-end; margin-bottom: .32rem; }
.brand .monogram { column-gap: 0; }
.brand .monogram::after { margin-inline-start: .25rem; transition: opacity .16s ease; }
.brand-initial { position: relative; transition: opacity .16s ease; }
.brand-tail {
  position: absolute;
  inset: 0 auto auto 100%;
  display: inline-flex;
  gap: .25rem;
  width: max-content;
  pointer-events: none;
  opacity: 0;
  clip-path: inset(-.12em 100% -.12em 0);
  transition: clip-path .42s var(--settle), opacity .2s ease;
}
@media (hover: hover) and (pointer: fine) and (min-width: 320px) {
  .brand .monogram:has(.brand-initial:hover)::after,
  .brand .monogram:has(.brand-initial:hover) .brand-initial:not(:hover) { opacity: 0; }
  .brand-initial:hover .brand-tail { opacity: 1; clip-path: inset(-.12em 0 -.12em 0); }
}
.section-nav { display: flex; align-items: center; gap: clamp(.95rem, 2.5vw, 2.25rem); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1rem); }
.masthead nav a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.masthead nav a:hover { color: var(--page-text); text-decoration: underline; }
.social-nav { display: flex; gap: .2rem; }
.social-nav a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; }
.social-nav a:hover { background: var(--control-background); }
.social-nav svg { width: 18px; height: 18px; fill: currentColor; }
main {
  --dock-duration: 1.05s;
  --rail-width: 43%;
}
.stage {
  --card-width: clamp(216px, 32vw, 292px);
  --card-top: 96px;
  --rig-top: 0px;
  display: grid;
  align-items: center;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  min-height: 520px;
}
.stage.entered .rig { left: calc(var(--rail-width) / 2); }
.intro { grid-column: 2; max-width: 570px; padding: 2rem 1rem 2rem 0; }
.motion-enabled:not(.entered) .intro > *,
.motion-enabled:not(.entered) ~ .section > * { opacity: 0; }
.motion-enabled.entered .intro > *,
.motion-enabled.entered ~ .section > * {
  animation: content-in .55s var(--settle) calc(var(--dock-duration) + var(--reveal-offset, 0s)) both;
}
.motion-enabled.entered .intro h1 {
  animation-name: name-in;
  animation-duration: .95s;
  animation-timing-function: cubic-bezier(.24,.65,.3,1);
  --reveal-offset: .06s;
}
.intro .lead { --reveal-offset: .43s; }
.intro .local { --reveal-offset: .52s; }
.intro .actions { --reveal-offset: .61s; }
.section { --reveal-offset: .56s; }
.section > :nth-child(2) { --reveal-offset: .67s; }

/* Show content immediately when reaching a section by link or keyboard. */
.stage .intro:has(#summary:target) > *,
.stage ~ .section:target > *,
.stage .intro:focus-within > *,
.stage ~ .section:focus-within > * {
  animation: none;
  opacity: 1;
}
@keyframes content-in {
  from { opacity: 0; transform: translateX(min(18px, 4vw)); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes name-in {
  from { opacity: 0; clip-path: inset(-12px 100% -12px -8px); transform: translateX(26px); }
  to { opacity: 1; clip-path: inset(-12px -8px -12px); transform: translateX(0); }
}
.role { display: flex; align-items: center; gap: .7rem; margin: 0 0 .9rem; font: 600 .94rem/1.5 var(--typeface); text-transform: uppercase; letter-spacing: .09em; }
.role svg, .local-item svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.role svg { width: 20px; height: 20px; color: var(--focus); }
.intro h1 { width: fit-content; font: 400 clamp(3.6rem, 6.2vw, 5.8rem)/1 var(--heading-font); text-transform: uppercase; letter-spacing: -.018em; }
.intro h1 span { color: #c59619; }
.lead, .project-copy p, .entry p, .education-list p { color: var(--muted); }
.lead { max-width: 48ch; margin: 1.1rem 0; font-size: clamp(1rem, 1.45vw, 1.16rem); line-height: 1.6; }
.local, .education-date, .education-score { font: 400 1rem/1.6 var(--typeface); color: var(--muted); }
.education-date, .education-score { font-family: var(--heading-font); font-size: 1.12rem; }
.local { display: grid; gap: .45rem; font-size: .9rem; }
.local-row { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; }
.local-item { display: inline-flex; align-items: center; gap: .45rem; max-width: 100%; }
.local-item span { overflow-wrap: anywhere; }
a.local-item { text-decoration: none; }
a.local-item:hover { color: var(--page-text); text-decoration: underline; }
#local-time { font-variant-numeric: tabular-nums; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.45rem; margin-top: 1.5rem; }
.actions a { font-size: 1.06rem; font-weight: 600; }
.primary { padding: .7rem 1.15rem; border-radius: 6px; text-decoration: none; background: var(--page-text); color: var(--page-background); }
.primary:hover { background: var(--yellow); color: var(--ink); }
.section {
  max-width: var(--section-width);
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(1.75rem, 4vw, 3rem);
}
#contact { padding-block-start: clamp(1rem, 3vw, 2.25rem); }
.section h2 { margin: -.1em 0 0; font: 400 clamp(2.2rem, 3.7vw, 3.4rem)/1.07 var(--heading-font); text-transform: uppercase; }
.section h3 { margin: 0; font: 400 clamp(1.3rem, 1.8vw, 1.55rem)/1.25 var(--heading-font); text-transform: uppercase; }
.entry, .education-list li { position: relative; border-left: 1px solid var(--line); padding-left: 1.4rem; }
.entry::before, .education-list li::before { content: ""; position: absolute; top: .5rem; left: -4.5px; width: 8px; height: 8px; background: var(--page-text); border-radius: 50%; }
.entry p, .project-copy p, .education-list p { margin: .5rem 0 0; line-height: 1.55; }
.project-grid { display: grid; gap: 1.5rem; }
.project { display: grid; grid-template-columns: minmax(170px, 34%) minmax(0, 1fr); gap: clamp(1rem, 2vw, 1.8rem); align-items: center; }
.project + .project { padding-top: 1.5rem; }
.project .project-art { height: 155px; border: 0; border-radius: 9px; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: .8rem 0 0; padding: 0; list-style: none; }
.tags li { padding: .14rem .45rem; border: 1px solid var(--line); border-radius: 4px; font: .95rem/1.5 var(--typeface); color: var(--muted); }
.education-list { padding: 0; margin: 0; list-style: none; }
.education-list li { padding-bottom: 1.8rem; display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; }
.education-list li:last-child { padding-bottom: 0; }
.education-list li > div { grid-column: 1 / -1; grid-row: 2; }
.education-score { grid-column: 2; grid-row: 1; }
.contact-content > p { margin: 0 0 1.35rem; color: var(--muted); }
.contact-form { border: 1px solid var(--line); border-radius: 10px; }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.contact-fields label, .message-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; padding: 1rem; }
.contact-fields label + label { border-left: 1px solid var(--line); }
.contact-fields label, .message-field label, .contact-topics legend { font-weight: 600; font-size: 1.05rem; }
.contact-form input:not([type="radio"]), .contact-form textarea {
  width: 100%;
  padding: .65rem .7rem;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  background: var(--page-background);
  color: var(--page-text);
  font: 400 1.125rem/1.5 var(--typeface);
}
.contact-form :is(input, textarea, button):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.contact-form textarea { resize: vertical; }
.contact-topics { min-width: 0; margin: 1rem 0 0; padding: 0 1rem 1rem; border: 0; border-bottom: 1px solid var(--line); }
.contact-topics legend { margin-bottom: .5rem; padding: 0; }
.topic-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.topic-options label { position: relative; cursor: pointer; }
.topic-options input { position: absolute; width: 1px; height: 1px; opacity: 0; font: inherit; }
.topic-options span {
  display: block;
  padding: .55rem .75rem;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.topic-options input:checked + span { font-weight: 600; }
.topic-options input:focus-visible + span { background: var(--yellow); color: var(--ink); outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) {
  .topic-options label:hover span { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
}
.character-count { justify-self: end; color: var(--muted); font: .8rem var(--typeface); }
.contact-submit { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.contact-submit > span { min-width: 0; }
.contact-submit a { color: var(--page-text); font-weight: 600; overflow-wrap: anywhere; }
.contact-submit button { border: 0; font: 600 1.06rem var(--typeface); cursor: pointer; }
.contact-submit button:disabled { opacity: .7; cursor: wait; }
.contact-status { margin: 0; padding: 0 1rem 1rem; color: var(--muted); font-size: .9rem; }
.contact-status:empty { padding: 0; }
.footer-main { display: flex; max-width: var(--section-width); align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem 2rem; padding-block: 1.5rem; }
.footer-identity, .footer-actions, .resume-link { display: flex; align-items: center; }
.footer-identity { gap: .85rem; text-decoration: none; }
.footer-identity strong { display: block; font: 400 1.4rem/1.1 var(--heading-font); text-transform: uppercase; }
.footer-role { display: block; margin-top: .2rem; color: var(--muted); font-size: .9rem; }
.footer-actions { flex-wrap: wrap; gap: .65rem; color: var(--muted); }
.footer-actions a:hover { color: var(--page-text); }
.resume-link { gap: .45rem; min-height: 40px; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-size: .9rem; font-weight: 600; }
.resume-link:hover { background: var(--control-background); }
.resume-link svg { width: 17px; height: 17px; }
.footer-meta { margin-block: 0; padding-block: .5rem 1.25rem; text-align: center; color: var(--muted); font-size: .85rem; }
@media (max-width: 800px) {
  .shell { width: calc(100% - 2 * clamp(.75rem, 5vw, 1.25rem)); }
  .masthead .monogram { font-size: 2.35rem; }
  .intro h1 { font-size: clamp(2.9rem, 6vw, 3.6rem); }
}
@media (max-width: 640px) {
  html { --header-height: 100px; }
  .masthead { grid-template-columns: 1fr auto; gap: .5rem .6rem; padding: .65rem 0; }
  .section-nav { grid-area: 2 / 1 / 3 / -1; flex-wrap: wrap; justify-content: space-between; gap: .1rem .6rem; }
  .section-nav a { padding-block: .3rem; }
  main { --dock-duration: 0s; }
  .stage { --card-top: 50px; --card-width: min(250px, calc(100% - 1.25rem)); display: block; min-height: auto; }
  .stage.entered .rig { left: 50%; }
  .intro { padding: calc(var(--card-top) + var(--card-height) + 35px) 0 2.3rem; }
  .intro h1 { font-size: clamp(2.7rem, 9vw, 4.4rem); }
}
@media (max-width: 550px) {
  .contact-fields { grid-template-columns: minmax(0, 1fr); }
  .contact-fields label + label { border-left: 0; border-top: 1px solid var(--line); }
  .project { grid-template-columns: 1fr; gap: .9rem; }
  .project .project-art { height: 150px; }
}
@media (max-width: 320px) {
  html { --header-height: 130px; }
  .section-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .masthead .monogram { font-size: 2rem; }
  .nav-actions, .nav-actions .social-nav { gap: .15rem; }
  .stage { --card-height: 390px; --card-width: min(250px, calc(100% - 1.8rem)); --sway: .7deg; }
  .badge-face { padding-inline: .65rem; }
  .contact-fields label, .message-field, .contact-submit { padding: .75rem; }
  .contact-topics { padding-inline: .75rem; }
}
