/* Hallmark · genre: editorial · theme: custom · redesign: full · job: hire · shape: typographic portfolio · hero: banner · posture: committed · modes: light+dark
Keeps: navy identity, text-only content, discreet side navigation, native disclosure, contact, print and themes.
Critique: real project descriptions replace filler;
no invented figures or decorative imagery.
Copy: original CV facts retained;
date ranges retain standard typographic dashes. */
@font-face{
  font-family:Roboto;
  src:url(./fonts/Roboto.woff2) format('woff2');
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}
:root{
  color-scheme:dark;
  --bg:#0c1a2f;
  --surface:#15273e;
  --surface-alt:#1b304a;
  --ink:#eef1f6;
  --muted:#b0bfd2;
  --accent:#b1caff;
  --button-ink:#10213a;
  --line:#3a4f69;
  --hover:#273e5b;
  --focus:#b1caff;
  --print-bg:#fafbfd;
  --print-ink:#162a42;
  --print-muted:#42556d;
  --print-line:#abb9ca;
  --font-body:Roboto,system-ui,sans-serif;
  --font-display:var(--font-body);
  --rule:.0625rem;
  --radius:.35rem;
  --space-xs:.5rem;
  --space-sm:.75rem;
  --space-md:1rem;
  --space-lg:1.5rem;
  --space-xl:2.5rem;
  --space-2xl:4rem;
  --gap-columns:2.5rem;
  --gutter:clamp(1.25rem,3.4vw,3.5rem);
  --rail-width:8.5rem;
  --container:85rem;
  font-family:var(--font-body);
  font-synthesis:none;
  scroll-behavior:smooth;
  scroll-padding-top:2rem;
  accent-color:var(--accent);
}
:root[data-theme=light]{
  color-scheme:light;
  --bg:#f2f5f9;
  --surface:#e3eaf4;
  --surface-alt:#d8e3f1;
  --ink:#142b48;
  --muted:#4a607a;
  --accent:#254f85;
  --button-ink:#f2f5f9;
  --line:#a3b3c8;
  --hover:#ccd9ec;
  --focus:#255caa
}
*{
  box-sizing:border-box
}
html,body{
  overflow-x:clip
}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-size:1rem;
  line-height:1.6
}
::selection{
  background:var(--accent);
  color:var(--button-ink)
}
a{
  color:inherit;
  text-underline-offset:.25em
}
button{
  font:inherit;
  color:inherit
}
button,summary{
  cursor:pointer
}
a,button,summary{
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent
}
a:focus-visible,button:focus-visible,summary:focus-visible{
  outline:.1875rem solid var(--focus);
  outline-offset:.375rem
}
a:active,button:active,summary:active{
  opacity:.8
}
button[hidden]{
  display:none
}
svg{
  display:block
}
p,h1,h2,h3,dl,dd{
  margin:0
}
p{
  text-wrap:pretty;
  max-width:70ch
}
h1,h2,h3{
  min-width:0;
  overflow-wrap:break-word;
  text-wrap:balance;
  line-height:1.1;
  font-weight:500;
  letter-spacing:-.035em
}
h1{
  font-family:var(--font-display);
  font-size:clamp(2.5rem,3.6vw,3.25rem);
  font-weight:400;
  line-height:1.08;
  letter-spacing:-.025em;
}
h2{
  font-size:1.5rem;
  font-weight:500;
  letter-spacing:-.025em;
}
h3{
  font-size:1.25rem;
  line-height:1.25;
  letter-spacing:-.02em
}
ul{
  padding-left:1.25rem
}
li+li{
  margin-top:var(--space-xs)
}
.icon-library{
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}
.icon{
  width:1.25rem;
  height:1.25rem;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:none
}
.skip{
  position:fixed;
  top:1rem;
  left:1rem;
  z-index:20;
  background:var(--accent);
  color:var(--button-ink);
  padding:var(--space-sm) var(--space-md);
  transform:translateY(-200%)
}
.skip:focus{
  transform:none
}
.topbar{
  max-width:var(--container);
  margin:auto;
  min-height:7rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-md);
  padding:var(--space-lg) var(--gutter)
}
.monogram{
  font-size:1.25rem;
  line-height:1.35;
  font-weight:600;
  text-decoration:none;
  letter-spacing:-.025em
}
.monogram span{
  display:block;
  font-size:.8125rem;
  font-weight:400;
  letter-spacing:0;
  color:var(--muted);
  margin-top:.125rem
}
.toolbar{
  display:flex;
  gap:var(--space-sm);
  align-items:center
}
.button,.theme-toggle{
  border:var(--rule) solid var(--line);
  background:transparent;
  border-radius:var(--radius);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:var(--space-sm);
  min-height:3.25rem;
  padding:.875rem 1.25rem;
  text-decoration:none;
  font-size:.9375rem;
  font-weight:500;
  line-height:1.3;
  transition:background .2s ease,border-color .2s ease,color .2s ease
}
.button:hover,.theme-toggle:hover{
  background:var(--hover);
  border-color:var(--accent)
}
.button.primary{
  background:var(--accent);
  border-color:var(--accent);
  color:var(--button-ink)
}
.button.primary:hover{
  background:var(--ink);
  border-color:var(--ink);
  color:var(--bg)
}
.button.small,.theme-toggle{
  min-height:2.75rem;
  padding:.65rem var(--space-md);
  font-size:.8125rem
}
.theme-toggle{
  min-width:6rem
}
.moon{
  display:none
}
[data-theme=light] .sun{
  display:none
}
[data-theme=light] .moon{
  display:block
}
.settings-menu{
  position:relative;
  z-index:10
}
.settings-menu[hidden]{
  display:none
}
.settings-menu>summary{
  display:flex;
  align-items:center;
  justify-content:center;
  width:2.75rem;
  height:2.75rem;
  border:var(--rule) solid var(--line);
  border-radius:var(--radius);
  list-style:none;
  transition:background .2s ease,border-color .2s ease
}
.settings-menu>summary:hover,.settings-menu[open]>summary{
  background:var(--surface);
  border-color:var(--accent)
}
.settings-panel{
  position:absolute;
  right:0;
  top:calc(100% + .75rem);
  width:12rem;
  padding:var(--space-md);
  background:var(--surface);
  color:var(--ink);
  border:var(--rule) solid var(--line);
  border-radius:.5rem
}
.settings-panel p{
  font-size:.875rem;
  font-weight:500;
  margin-bottom:var(--space-sm)
}
.settings-panel .theme-toggle{
  width:100%;
  justify-content:flex-start
}
.rail{
  position:fixed;
  top:14rem;
  left:max(var(--gutter),calc((100% - var(--container))/2 + var(--gutter)));
  width:7rem;
  display:grid;
  gap:var(--space-sm);
  z-index:5
}
.rail a{
  font-size:.8125rem;
  min-height:2.75rem;
  display:flex;
  align-items:center;
  gap:var(--space-sm);
  text-decoration:none;
  color:var(--muted)
}
.rail a:before{
  content:"";
  width:.75rem;
  height:var(--rule);
  background:var(--line);
  transform:scaleX(.5);
  transform-origin:left;
  transition:transform .2s ease,background .2s ease
}
.rail a[aria-current],.rail a:hover{
  color:var(--ink)
}
.rail a[aria-current]:before,.rail a:hover:before{
  transform:scaleX(1);
  background:var(--accent)
}
main,footer{
  max-width:var(--container);
  margin-inline:auto;
  padding-inline:calc(var(--gutter) + var(--rail-width)) var(--gutter)
}
.hero{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  gap:var(--gap-columns);
  align-items:center;
  padding-block:3.5rem 4.5rem;
}
.intro{
  min-width:0
}
.name-line{
  display:block;
  overflow:clip;
  padding-bottom:.08em;
  margin-bottom:-.08em;
  perspective:30rem
}
.name-line>span{
  display:block;
  transform-origin:center bottom
}
.hero-summary{
  margin-top:var(--space-lg)
}
.role{
  font-size:1rem;
  font-weight:500;
  color:var(--accent);
  margin-bottom:var(--space-md)
}
.lead{
  font-size:1rem;
  line-height:1.7;
  max-width:43ch;
  color:var(--muted)
}
.actions{
  display:flex;
  gap:var(--space-sm);
  flex-wrap:wrap;
  margin-top:var(--space-xl)
}
.practice{
  min-width:0;
  padding-left:var(--space-xl);
  border-left:var(--rule) solid var(--line);
}
.practice-area{
  display:grid;
  gap:var(--space-xs);
  padding-block:var(--space-lg);
  border-bottom:var(--rule) solid var(--line);
}
.practice-area:first-child{padding-top:0}
.practice-area:last-child{padding-bottom:0;border-bottom:0}
.practice-area h2{
  font-size:1.25rem;
  line-height:1.3;
  color:var(--accent);
}
.practice-area>p{
  font-size:.9375rem;
  color:var(--muted);
  max-width:42ch;
}
.practice-area .practice-tools{
  font-size:.75rem;
  color:var(--ink);
  padding-top:.25rem;
}
.section{
  padding-block:3rem
}
.section-heading{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:var(--gap-columns);
  margin-bottom:var(--space-xl)
}
.section-heading>p{
  font-size:.9375rem;
  color:var(--muted);
  max-width:33ch
}
.work{
  padding-top:var(--space-xl);
  border-top:var(--rule) solid var(--line)
}
.projects{
  border-top:var(--rule) solid var(--line)
}
.project{
  min-width:0;
  border-bottom:var(--rule) solid var(--line)
}
summary{
  list-style:none
}
summary::-webkit-details-marker{
  display:none
}
.project summary{
  display:grid;
  grid-template-columns:8.5rem minmax(0,1fr) 7.5rem;
  align-items:center;
  gap:var(--gap-columns);
  min-height:9rem;
  padding:var(--space-lg) 0;
  transition:background .2s ease
}
.project h3{
  font-size:1.4rem;
  line-height:1.3;
  letter-spacing:-.025em;
  transition:transform .25s ease,color .25s ease
}
.project-description{
  display:block;
  color:var(--muted);
  font-size:.875rem;
  line-height:1.65;
  max-width:50ch;
  margin-top:var(--space-xs);
  text-wrap:pretty
}
.project-type{
  font-size:.75rem;
  color:var(--muted);
  max-width:12ch;
  line-height:1.5
}
.project-disclosure{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-xs);
  border:var(--rule) solid var(--line);
  border-radius:var(--radius);
  min-height:2.75rem;
  padding:.65rem var(--space-sm);
  font-size:.75rem;
  white-space:nowrap;
  transition:background .2s ease,border-color .2s ease
}
.project-disclosure .icon,.more-education summary .icon{
  transition:transform .25s ease
}
.project[open] .project-disclosure .icon,.more-education[open] summary .icon{
  transform:rotate(45deg)
}
.project summary:hover h3{
  transform:translateX(.25rem);
  color:var(--accent)
}
.project summary:hover .project-disclosure,.project[open] .project-disclosure{
  background:var(--surface);
  border-color:var(--accent)
}
.project-body{
  padding:0 9rem var(--space-xl) 11rem;
  color:var(--muted);
  font-size:.9375rem
}
.project-body ul{
  margin-block:var(--space-lg)
}
.project-context{
  font-size:.8125rem;
  margin-bottom:var(--space-md)
}
.experience{
  padding-block:3rem;
}
.experience h2{font-size:1.5rem;overflow-wrap:normal}
.experience .section-heading>p{max-width:none}
.experience .section-heading br{display:none}
.timeline{
  list-style:none;
  margin:0;
  padding:0;
}
.timeline>li{
  display:grid;
  grid-template-columns:10rem minmax(0,1fr);
  gap:var(--gap-columns);
  padding-block:var(--space-lg);
  border-top:var(--rule) solid var(--line);
  margin:0;
}
.period{
  font-size:.8125rem;
  font-variant-numeric:tabular-nums;
  color:var(--muted);
}
.timeline .period{padding-top:.25rem}
.timeline h3{font-size:1.25rem}
.company{
  font-size:.9375rem;
  margin-top:var(--space-xs);
  font-weight:500;
  color:var(--accent);
}
.timeline li>div>p:last-child{
  font-size:.9375rem;
  color:var(--muted);
  margin-top:var(--space-sm);
  max-width:65ch;
}
.knowledge{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:var(--gap-columns);
  border-block:var(--rule) solid var(--line)
}
.knowledge h2{
  font-size:1.5rem;
  margin-bottom:var(--space-xl)
}
.skills>div{
  display:grid;
  grid-template-columns:8rem 1fr;
  gap:var(--space-md);
  padding-block:var(--space-md);
  border-top:var(--rule) solid var(--line)
}
.skills>div:first-child{
  padding-top:0;
  border:0
}
.skills dt{
  font-size:.875rem;
  font-weight:500
}
.skills dd{
  color:var(--muted);
  font-size:1rem
}
.languages{
  font-size:.875rem;
  margin-top:var(--space-xl)
}
.languages span{
  color:var(--muted);
  padding-inline:var(--space-xs)
}
.education article+article{
  margin-top:var(--space-lg)
}
.education h3{
  font-size:1.125rem;
  margin-top:var(--space-xs)
}
.education article>p:last-child{
  color:var(--muted);
  font-size:.9375rem;
  margin-top:var(--space-sm)
}
.more-education{
  margin-top:var(--space-lg)
}
.more-education summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-sm);
  padding:var(--space-sm) var(--space-md);
  border:var(--rule) solid var(--line);
  border-radius:var(--radius);
  font-size:.875rem;
  min-height:2.75rem
}
.more-education summary:hover{
  background:var(--surface)
}
.more-education>div{
  padding-top:var(--space-md);
  font-size:.9375rem;
  color:var(--muted)
}
.more-education h3{
  color:var(--ink);
  margin-top:var(--space-lg)
}
.contact{
  padding-block:3rem var(--space-2xl)
}
.contact h2{
  font-family:var(--font-display);
  font-size:clamp(1.85rem,3vw,2.75rem);
  font-weight:400;
  max-width:27ch;
}
.contact p{
  color:var(--muted);
  margin-top:var(--space-xl);
  font-size:.9375rem
}
.email{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-md);
  width:fit-content;
  max-width:100%;
  font-size:1rem;
  margin-top:var(--space-lg);
  padding-bottom:var(--space-sm);
  border-bottom:var(--rule) solid var(--line);
  text-decoration:none;
  overflow-wrap:anywhere
}
.email:hover{
  color:var(--accent);
  border-color:var(--accent)
}
.email .icon{
  width:1.5rem;
  height:1.5rem;
  transform:rotate(-45deg)
}
footer{
  display:flex;
  justify-content:space-between;
  gap:var(--space-lg);
  padding-block:var(--space-lg) var(--space-xl);
  font-size:.8125rem;
  color:var(--muted)
}
footer a{
  display:flex;
  align-items:center;
  gap:var(--space-sm);
  text-decoration:none;
  min-height:2.75rem
}
footer .icon{
  transform:rotate(-90deg)
}
footer p{
  align-self:center
}
@media(max-width:78rem){
  :root{
    --gap-columns:1.75rem;
    --rail-width:7.25rem
  }
  .hero{
    gap:2rem
  }
  .skills>div{
    grid-template-columns:1fr;
    gap:var(--space-xs)
  }
  .project summary{
    grid-template-columns:7rem minmax(0,1fr) 7rem
  }
  .project-body{
    padding-inline:8.75rem 0
  }
}
@media(max-width:60rem){
  :root{
    --rail-width:0rem;
    scroll-padding-top:5rem
  }
  .topbar{
    min-height:6rem
  }
  .rail{
    position:sticky;
    top:0;
    left:auto;
    width:auto;
    margin-inline:var(--gutter);
    display:flex;
    justify-content:space-between;
    gap:var(--space-xs);
    padding-block:.25rem;
    background:var(--bg);
    border-bottom:var(--rule) solid var(--line)
  }
  .rail a:before{
    display:none
  }
  .rail a[aria-current]{
    color:var(--accent)
  }
  .hero{
    padding-block:var(--space-xl) 3rem;
    gap:2rem
  }
  h1{
    font-size:clamp(2.25rem,4.3vw,3rem)
  }
}
@media(max-width:44rem){
  .topbar{
    gap:var(--space-sm);
    flex-wrap:wrap;
    padding-block:1.25rem
  }
  .monogram{
    font-size:1rem
  }
  .monogram span{
    font-size:.75rem
  }
  .toolbar{
    gap:var(--space-xs)
  }
  .button.small,.theme-toggle{
    padding:.65rem var(--space-sm)
  }
  .theme-toggle{
    min-width:2.75rem
  }
  .settings-panel .theme-label{
    display:inline
  }
  #print{
    font-size:.75rem
  }
  .hero{
    grid-template-columns:1fr;
    gap:2rem
  }
  h1{
    font-size:clamp(2rem,8.2vw,3rem)
  }
  .lead{
    max-width:48ch
  }
  .hero-summary{
    margin-top:1.25rem
  }
  .actions{
    margin-top:var(--space-lg)
  }
  .section-heading{
    display:block;
    margin-bottom:var(--space-lg)
  }
  .section-heading>p{
    margin-top:var(--space-sm);
    font-size:.875rem
  }
  .section-heading br{
    display:none
  }
  .project summary{
    grid-template-columns:minmax(0,1fr) 2.75rem;
    gap:var(--space-sm);
    min-height:11rem;
    padding-block:var(--space-lg)
  }
  .project-type{
    grid-column:1/-1;
    max-width:none
  }
  .project h3{
    font-size:1.25rem
  }
  .project-disclosure{
    width:2.75rem;
    justify-content:center;
    padding:var(--space-xs)
  }
  .project-disclosure span{
    display:none
  }
  .project-description{
    font-size:.875rem
  }
  .project-body{
    padding:0 0 var(--space-lg);
    font-size:.9375rem
  }
  .knowledge{
    grid-template-columns:1fr;
    gap:var(--space-lg)
  }
  .experience .section-heading{
    margin-bottom:var(--space-lg)
  }
  .experience .section-heading>p{
    margin-top:var(--space-sm)
  }
  .timeline>li{grid-template-columns:1fr;gap:var(--space-xs)}
  .practice{padding-left:0;border-left:0;padding-top:var(--space-lg);border-top:var(--rule) solid var(--line)}
  .knowledge{
    gap:3rem
  }
  .knowledge h2{
    margin-bottom:var(--space-lg)
  }
  .skills>div{
    grid-template-columns:7rem minmax(0,1fr);
    gap:var(--space-md)
  }
  .contact{
    padding-block:3rem
  }
  .contact h2{
    font-size:2.1rem
  }
  .contact p{
    margin-top:var(--space-lg)
  }
  .email{
    font-size:.875rem
  }
  footer{
    flex-direction:column;
    gap:var(--space-xs)
  }
  footer p{
    align-self:start
  }
}
@media(max-width:23rem){
  .skills>div{
    grid-template-columns:1fr;
    gap:var(--space-xs)
  }
}
@media(prefers-reduced-motion:reduce){
  :root{
    scroll-behavior:auto
  }
  *,*:before,*:after{
    animation:none!important;
    transition:none!important
  }
}
@media print{
  :root,:root[data-theme=light]{
    --bg:var(--print-bg);
    --surface:var(--print-bg);
    --surface-alt:var(--print-bg);
    --ink:var(--print-ink);
    --muted:var(--print-muted);
    --accent:var(--print-ink);
    --line:var(--print-line);
    font-size:.75rem;
    color-scheme:light
  }
  .topbar,.rail,.actions,footer,.skip,.project-disclosure,.more-education summary{
    display:none!important
  }
  main{
    max-width:none;
    margin:0;
    padding:0
  }
  .hero{
    display:block;
    padding:0 0 var(--space-lg)
  }
  h1{
    font-size:2.5rem
  }
  .name-line{
    display:inline;
    overflow:visible
  }
  .name-line>span{
    display:inline;
    transform:none!important
  }
  .name-line+.name-line:before{
    content:" "
  }
  .hero-summary{
    margin-top:var(--space-sm)
  }
  .lead{
    max-width:none;
    font-size:1rem
  }
  .section{
    padding-block:1.25rem
  }
  .section-heading{
    margin-bottom:var(--space-md)
  }
  .section-heading>p{
    display:none
  }
  h2,.experience h2,.knowledge h2,.contact h2{
    font-size:1.5rem
  }
  .project summary{
    grid-template-columns:8rem 1fr;
    min-height:0;
    padding:var(--space-sm) 0
  }
  .project h3{
    font-size:1.25rem
  }
  .project-body{
    padding:0 0 var(--space-sm)
  }
  .experience{
    display:block
  }
  .timeline>li{
    padding-block:var(--space-sm);
    break-inside:avoid
  }
  .knowledge{
    grid-template-columns:1fr 1fr;
    gap:var(--space-lg)
  }
  .knowledge h2{
    margin-bottom:var(--space-md)
  }
  .skills>div{
    grid-template-columns:1fr;
    gap:.25rem
  }
  .more-education>div{
    display:block!important
  }
  .contact p,.email{
    margin-top:var(--space-xs)
  }
  .email{
    border:0;
    font-size:1rem
  }
  .project,article,.skills>div{
    break-inside:avoid
  }
  h2,h3{
    break-after:avoid
  }
  a{
    text-decoration:none
  }
}

