:root {
  color-scheme: light;
  --paper: #f3f7f8;
  --ink: #0b1b29;
  --muted: #475d6a;
  --line: #c7d2d8;
  --teal: #006c79;
  --night: #0a1825;
  --cyan: #29dcea;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--portfolio-text); }
h1, h2, h3, p, dl, dd, ol, fieldset { margin: 0; }
h1, h2, h3 { font-family: var(--portfolio-display); font-weight: 700; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid #008591; outline-offset: 4px; }
.feature :focus-visible, footer :focus-visible { outline-color: var(--cyan); }
[hidden] { display: none !important; }
.wrap { width: min(1260px, 90%); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 20; top: .5rem; left: 1rem; padding: .7rem 1rem; background: #fff; }
.mast { border-bottom: 1px solid var(--line); }
.mast-inner, .crumb, .mast-links { display: flex; align-items: center; }
.mast-inner { min-height: 66px; justify-content: space-between; gap: .75rem; }
.crumb { gap: .7rem; font: 700 1.12rem/1.3 var(--portfolio-display); }
.crumb a, .mast-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.crumb > span[aria-hidden] { color: #8396a0; font-weight: 500; }
.crumb > span[aria-current] { color: var(--teal); }
.mast-links { gap: clamp(16px, 2.5vw, 34px); font-size: .9375rem; }
.mast a:hover { text-decoration: underline; }
.profile { padding-block: clamp(40px, 5vw, 72px); display: grid; align-items: center; grid-template-columns: 1fr 1.08fr; gap: clamp(36px, 6vw, 96px); }
.profile-copy { min-width: 0; }
.byline { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .9375rem; line-height: 1.35; }
.byline img { width: 50px; height: 50px; object-fit: cover; object-position: 50% 35%; border-radius: 50%; }
.profile h1 { font-size: clamp(3.4rem, 6.1vw, 5.8rem); line-height: 1; letter-spacing: -.055em; margin-top: 1.45rem; }
.profession { margin-top: .45rem; color: var(--teal); font: 500 clamp(1.25rem, 2.05vw, 1.95rem)/1.17 var(--portfolio-display); letter-spacing: -.02em; }
.intro { max-width: 40ch; margin-top: clamp(16px, 1.7vw, 24px); color: var(--muted); font-size: clamp(1.05rem, 1.45vw, 1.25rem); line-height: 1.5; }
.profile-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; margin-top: clamp(22px, 2.4vw, 32px); }
.primary { display: inline-flex; align-items: center; gap: .55rem; padding: 12px 16px; min-height: 46px; border-radius: 5px; background: var(--night); color: white; font-weight: 700; text-decoration: none; }
.primary svg { width: 18px; height: 18px; stroke: var(--cyan); fill: none; stroke-width: 1.65; }
.primary span { font-size: .75rem; color: #9ddae1; font-weight: 500; }
.primary:hover { background: #183748; }
.share-button {
  display: inline-flex; justify-content: center; align-items: center; gap: .5rem;
  min-height: 46px; padding: .6rem .9rem; border: 1px solid #94a8b1; border-radius: 5px;
  background: transparent; color: var(--ink); font-weight: 500; cursor: pointer;
}
.share-button svg { width: 17px; height: 17px; fill: none; stroke: var(--teal); stroke-width: 1.7; }
.share-button:hover { background: #e5f0f1; border-color: var(--teal); }
.forward-tools { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 1.35rem; margin-top: .35rem; }
.forward-tools .one-page, .introduction summary, .intro-actions > * {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--teal); font-size: .9375rem; font-weight: 500;
}
.introduction { flex: 1 1 12rem; min-width: 0; }
.introduction summary { cursor: pointer; list-style: none; gap: .5rem; }
.introduction summary::-webkit-details-marker { display: none; }
.introduction summary::after { content: ''; width: .49rem; height: .49rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.introduction[open] summary::after { transform: translateY(2px) rotate(225deg); }
.intro-panel { padding: .75rem 0 .15rem .9rem; border-inline-start: 2px solid #8fbac0; }
.intro-panel p { color: var(--muted); font-size: 1rem; line-height: 1.48; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 0 1rem; margin-top: .35rem; }
.intro-actions button { border: 0; padding: 0; background: transparent; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
[data-copy][data-copied] { color: var(--teal); }
.manual-copy { margin-top: .7rem; }
.manual-copy label { font-size: .94rem; }
.manual-copy textarea { display: block; margin-top: .3rem; width: 100%; padding: .65rem; font: inherit; border: 1px solid #8299a5; border-radius: 4px; color: var(--ink); background: white; }
.showcase { min-width: 0; }
.stage { background: var(--night); border-radius: 16px; overflow: hidden; }
.feature { position: relative; height: clamp(285px, 25vw, 355px); isolation: isolate; overflow: hidden; color: #f4f8fb; }
.feature h2 { font-size: clamp(1.7rem, 2.6vw, 2.55rem); line-height: 1.03; letter-spacing: -.035em; }
.feature-copy .kicker { color: #b6cbd4; font: 500 .78rem/1.3 var(--portfolio-text); letter-spacing: .09em; text-transform: uppercase; margin: 0 0 8px; }
.feature-copy a { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; font-weight: 500; color: #edf6f9; }
.feature-copy a:hover { color: var(--cyan); }
.watch { display: flex; align-items: center; background: radial-gradient(ellipse at 79% 49%, #32474c 0, #172a34 31%, #0d1c28 63%, #0a1825 85%); }
.watch .work-image { position: absolute; right: 1%; width: 56%; height: 95%; object-fit: contain; z-index: -1; }
.watch .feature-copy { width: 48%; padding: 18px 0 18px clamp(20px, 2.7vw, 38px); }
.watch .feature-copy > p:not(.kicker) { color: #becdd4; font-size: 1rem; line-height: 1.4; max-width: 23ch; margin: 12px 0 13px; }
.wide { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.wide .work-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: 10px 14px 2px; }
.wide .feature-copy { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px clamp(16px, 2.1vw, 30px) 16px; }
.feature-result { max-width: 38ch; margin-top: .4rem; color: #becdd4; font-size: .9375rem; line-height: 1.4; }
.wide .feature-copy .kicker { margin-bottom: 3px; }
.wide .feature-copy a { white-space: nowrap; }
.project-switch { margin-top: 7px; padding: 0; border: 0; display: flex; }
.project-switch label { position: relative; flex: 1; cursor: pointer; text-align: center; }
.project-switch input { position: absolute; opacity: 0; margin: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.project-switch span { display: grid; height: 100%; align-items: center; padding: 4px; min-height: 44px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.project-switch input:checked + span { color: var(--ink); box-shadow: inset 0 -3px var(--teal); font-weight: 700; }
.project-switch input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: -3px; }
.project-switch label:hover span { color: var(--teal); }
.career-band { background: #fff; border-block: 1px solid var(--line); }
.career, .practice { display: grid; grid-template-columns: minmax(180px,.75fr) minmax(0,2fr); gap: clamp(28px,5vw,80px); padding-block: clamp(38px,5vw,72px); }
.career-intro { align-self: start; position: sticky; top: 1.5rem; }
.career h2, .practice h2 { font-size: clamp(2.05rem, 3.2vw, 3.15rem); letter-spacing: -.05em; line-height: 1.05; }
.filters { margin-top: 1.5rem; max-width: 245px; }
.filters label { display: block; color: var(--muted); font-weight: 500; font-size: .9rem; margin-bottom: 6px; }
.filters select { appearance: none; width: 100%; min-height: 44px; padding: .55rem 2.1rem .55rem .85rem; border: 1px solid #9aabb6; border-radius: 5px; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' fill='none' stroke='%23233745' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .7rem center; cursor: pointer; }
.count { color: var(--muted); margin-top: .55rem; font-size: .875rem; }
.timeline { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.timeline li[id] { border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.role summary { display: grid; grid-template-columns: clamp(109px, 10.7vw, 159px) minmax(0, 1fr) 34px; gap: clamp(10px, 2vw, 28px); align-items: start; padding: 20px 0; }
.dates { padding-top: 5px; color: var(--teal); font-size: .875rem; font-weight: 500; }
.role-name { display: block; font: 700 clamp(1.23rem, 1.62vw, 1.6rem)/1.12 var(--portfolio-display); letter-spacing: -.025em; }
.role-title { display: block; margin-top: 5px; color: var(--muted); font-size: 1rem; line-height: 1.35; }
.toggle { align-self: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; position: relative; color: var(--muted); }
.toggle::before, .toggle::after { content: ''; position: absolute; width: 11px; height: 1.5px; background: currentColor; }
.toggle::after { transform: rotate(90deg); }
details[open] > summary .toggle { background: var(--night); border-color: var(--night); color: var(--cyan); }
details[open] > summary .toggle::after { display: none; }
summary:hover .role-name, summary:hover .skill-name { color: var(--teal); }
.role-body { margin: 0 0 24px calc(clamp(109px, 10.7vw, 159px) + clamp(10px, 2vw, 28px)); max-width: 65ch; color: #334b59; }
.role-body p + p, .role-body ul, .role-body dl { margin-top: .7rem; }
.role-body ul { padding-left: 1.15rem; }
.role-body li + li { margin-top: .4rem; }
.role-body dt { font-weight: 700; margin-top: .85rem; color: var(--ink); }
.role-meta { color: var(--teal); font-size: .9rem; font-weight: 500; }
.role-body a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); margin-right: 1rem; }
.skill-list { border-top: 1px solid var(--line); }
.skill-list details { border-bottom: 1px solid var(--line); }
.skill-list summary { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; gap: 12px; }
.skill-name { font: 700 1.25rem/1.3 var(--portfolio-display); }
.skill-list dl { padding-bottom: 18px; }
.skill-list dl div { display: grid; grid-template-columns: minmax(105px,1fr) 3fr; gap: 10px; margin: 8px 0; }
.skill-list dt { font-weight: 500; }
.skill-list dd { color: var(--muted); }
footer { background: var(--night); color: #edf6fa; }
.foot { display: flex; justify-content: space-between; gap: 24px; padding-block: 32px; }
.foot h2 { font-size: 1.15rem; }
.foot nav { display: flex; gap: 2px 22px; flex-wrap: wrap; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; font-size: .95rem; color: #c5d6e0; }
@media (max-width: 800px) {
  .profile { gap: 26px; grid-template-columns: 1fr 1fr; }
  .watch .feature-copy { padding-left: 16px; width: 51%; }
  .watch .feature-copy > p:not(.kicker) { font-size: .95rem; }
  .career, .practice { grid-template-columns: 1fr; gap: 24px; }
  .career-intro { position: static; }
  .filters { max-width: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; }
  .filters select { width: auto; max-width: 100%; }
  .filters label, .count { margin: 0; }
}
@media (max-width: 680px) {
  .profile { grid-template-columns: 1fr; padding-block: 32px; gap: 26px; }
  .profile h1 { margin-top: 16px; }
  .feature { height: clamp(225px,58vw,295px); }
  .watch .feature-copy { padding-left: 20px; }
  .mast-links a:not(:last-child) { display: none; }
  .mast-inner { min-height: 52px; }
  .foot { flex-direction: column; gap: 18px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 36px); }
  .profile-actions { gap: 5px 16px; }
  .role summary { grid-template-columns: minmax(0, 1fr) 32px; gap: 6px 10px; padding-block: 16px; }
  .dates { grid-column: 1; padding: 0; }
  .role-summary { grid-column: 1; }
  .role summary .toggle { grid-column: 2; grid-row: 1 / span 2; }
  .role-body { margin-left: 0; }
  .filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .filters label { grid-column: 1 / -1; }
  .feature { height: 245px; }
  .watch { height: auto; min-height: 245px; }
  .watch .feature-copy { width: 54%; padding: 18px 0 18px 16px; }
  .watch .work-image { width: 47%; right: 0; }
}
@media (forced-colors: active) {
  .project-switch input:checked + span { border-bottom: 3px solid Highlight; }
  .toggle::before, .toggle::after { background: ButtonText; }
}
