@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');
:root{--ink:#4c4c4c;--muted:#595959;--line:#efefef;--green:#49bf9d;--project-ink:#2f3b45}
*{box-sizing:border-box}html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--muted);font:400 16px/1.75 'Source Sans Pro',Helvetica,Arial,sans-serif}
a{color:var(--green);text-decoration:none;border-bottom:1px dotted currentColor;transition:color .2s,border-color .2s}
a:hover,a:focus-visible{color:#36a584;border-bottom-color:transparent}
img{max-width:100%}button{font:inherit}
h1,h2,h3{color:var(--ink);font-weight:400;line-height:1.5}p{margin:0 0 1.55em}
/* Strata's photographic sidebar, using Alfred's own photos. */
.site-sidebar{position:fixed;inset:0 auto 0 0;width:25%;min-height:100vh;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;padding:8em 4em 3em;background:linear-gradient(rgba(24,22,20,.72),rgba(20,18,18,.84)),url('media/desk2.jpg') center/cover no-repeat;color:rgba(255,255,255,.65);text-align:right}
.sidebar-inner{width:100%}.sidebar-portrait{display:block;width:6.25em;height:6.25em;margin:0 0 1em auto;overflow:hidden;border:0;border-radius:50%}
.sidebar-portrait img{width:100%;height:100%;object-fit:cover;display:block}
.sidebar-intro{margin:0;color:rgba(255,255,255,.66);font-size:1.35em;line-height:1.75}
.sidebar-intro strong{color:#fff;font-weight:600}
.sidebar-intro a{color:inherit;border-bottom:0}
.sidebar-intro a:hover,.sidebar-intro a:focus-visible{color:#fff;border-bottom:0}
.sidebar-nav{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:1em;margin-top:2em;font-size:.85em}
.sidebar-nav a,.sidebar-bottom a{color:rgba(255,255,255,.72);border-bottom-color:rgba(255,255,255,.25)}
.sidebar-nav a:hover,.sidebar-nav a[aria-current='page'],.sidebar-bottom a:hover{color:#fff}
.sidebar-bottom{display:flex;flex-direction:column;align-items:flex-end;gap:1.5em;width:100%;font-size:.8em;color:rgba(255,255,255,.48)}
.sidebar-contact{max-width:100%;overflow-wrap:anywhere}.sidebar-contact h2{margin:0 0 .35em;color:#fff;font-size:1.35em;font-weight:400}
.container{width:75%;max-width:54em;margin-left:25%;padding:8em 4em 4em}
.home-page .container,.about-site-page .container{padding-top:2em}
main{min-height:70vh}main>section,.projects-page{border-top:2px solid var(--line);margin:4em 0 0;padding:4em 0 0}
main>:first-child{border-top:0;margin-top:0;padding-top:0}
.section-heading{font-size:1.7em;font-weight:700;margin:0 0 1.2em}
.page-heading{margin:0 0 1em;color:var(--ink);font-size:2em;font-weight:700;line-height:1.25}
.engineering-projects{display:grid;gap:3em}
.project-panel{min-width:0;padding:0 0 3em;border-bottom:2px solid var(--line)}
.project-panel:last-child{padding-bottom:0;border-bottom:0}
.project-panel-title{display:flex;gap:.8em;align-items:baseline;margin:0 0 1em}.project-panel-index{display:none}
.project-title{margin:0;color:#2c3e50;font-size:1.7em;font-weight:700;line-height:1.3}
.project-panel-inner{display:block}
.project-summary-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.75em;align-items:start}
.project-media-grid{grid-column:2;grid-row:1;display:grid;gap:1em;min-width:0}
.project-copy{grid-column:1;grid-row:1;min-width:0}
.project-description{overflow:hidden;transition:height 280ms ease,opacity 220ms ease,transform 220ms ease}
.project-copy.is-truncated .project-description{position:relative}
.project-copy.is-truncated:not(.is-open) .project-description::after{position:absolute;right:0;bottom:0;left:0;height:3em;background:linear-gradient(transparent,#fff);content:'';pointer-events:none}
.read-more{display:inline-flex;align-items:center;gap:.55em;margin-top:.8em;padding:0;border:0;background:none;color:#000;font:400 .9em/1.4 'Source Sans Pro',Helvetica,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.read-more::after{width:.4em;height:.4em;margin-top:-.2em;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;content:'';transform:rotate(45deg);transition:transform 220ms ease}
.project-copy.is-open .read-more::after{margin-top:.2em;transform:rotate(225deg)}
.read-more:hover{text-decoration:underline}
.read-more:focus-visible{outline:2px solid #000;outline-offset:4px}
.read-more[hidden]{display:none}
.project-copy .intro{color:var(--project-ink);font-size:.9em;line-height:1.6;margin:0 0 .8em}.project-copy .intro:last-child{margin-bottom:0}
.project-media,.flight-video{margin:0;min-width:0}
.project-media img{display:block;width:100%;max-height:360px;object-fit:cover;border-radius:.35em;cursor:zoom-in}
.project-media figcaption{margin:.5em 0 0;color:var(--muted);font-size:.85em;line-height:1.5}
.project-panel[data-project='binnies'] .project-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.project-panel[data-project='binnies'] .project-media:first-child{grid-column:1/-1}
.project-panel[data-project='binnies'] .project-media:not(:first-child) img{height:125px}
.flight-video{width:min(100%,240px);margin:0 auto}.flight-video-player{aspect-ratio:9/16;overflow:hidden;border-radius:.35em;background:#f6f6f6}
.flight-video-player iframe{display:block;width:100%;height:100%;border:0}
.project-resources{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:.65em;margin-top:.5em}
.button{display:inline-block;padding:8px 14px;border:1px solid #c8c8c8;border-radius:4px;background:#fff;color:#444;font:400 .9em/1.4 'Source Sans Pro',Helvetica,sans-serif;text-align:center;text-decoration:none;cursor:pointer}
.button:hover{background:#f5f5f5;border-color:#999;color:#333}
.button:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.skills-grid{display:grid;grid-template-columns:1fr 1fr;gap:2em}.skills-grid h3{margin:0 0 .6em;font-size:1.35em;font-weight:700}
.skills-grid ul{margin:0;padding-left:1.2em}.skills-grid li{padding-left:.2em}
.about-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(190px,1fr);gap:2.5em}
.about-copy{grid-column:1;grid-row:1}.about-copy p{margin:0 0 1.5em}.about-visuals{display:grid;grid-column:2;grid-row:1;gap:1em;align-content:start}.about-visuals .project-media img{max-height:none}
/* Existing project photo gallery and image viewer. */
.photo-gallery{width:min(920px,calc(100% - 28px));max-height:min(760px,calc(100vh - 28px));padding:clamp(18px,3vw,30px);border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);box-shadow:0 12px 40px rgba(0,0,0,.18)}
.photo-gallery::backdrop{background:rgba(20,19,18,.75)}.photo-gallery-header{display:flex;justify-content:space-between;gap:20px;margin-bottom:20px}
.photo-gallery h2,.photo-gallery h3{margin:0;font-size:1.5em}.eyebrow{margin:0 0 6px;color:var(--muted);font-size:.72em;letter-spacing:.07em;text-transform:uppercase}
.gallery-close{flex:0 0 auto;width:38px;height:38px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-size:1.5em;cursor:pointer}.gallery-close:hover{background:#e8f8f3}
.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.gallery-item{margin:0}
.gallery-item img{display:block;width:100%;aspect-ratio:4/3;object-fit:contain;cursor:zoom-in}
.gallery-item figcaption,.image-viewer-figure figcaption{margin-top:8px;color:var(--muted);font-size:.85em}.gallery-status{grid-column:1/-1}
.image-viewer{width:min(1100px,calc(100% - 28px))}.image-viewer-figure{margin:0}
.image-viewer-figure img{display:block;width:100%;max-height:calc(100vh - 180px);object-fit:contain}
@media(max-width:1280px){.site-sidebar{width:20%;padding:6em 3em 3em}.sidebar-intro{font-size:1.25em}.container{width:80%;max-width:none;margin-left:20%;padding:6em 3em 3em}}
@media(max-width:980px){.site-sidebar{position:relative;width:100%;min-height:0;padding:5em 4em;align-items:center;text-align:center;background-position:center}.sidebar-portrait{margin:0 auto 1em}.sidebar-intro{max-width:650px;font-size:1.75em}.sidebar-nav{justify-content:center}.sidebar-bottom{align-items:center;margin-top:2em}.container{width:100%;margin:0;padding:6em 4em}.home-page .container,.about-site-page .container{padding-top:1.5em}}
@media(max-width:736px){.site-sidebar{padding:2.25em 1.5em}.sidebar-intro{font-size:1.35em}.container{padding:2.25em 1.5em}.home-page .container,.about-site-page .container{padding-top:1.5em}main>section,.projects-page{margin-top:2.25em;padding-top:2.25em}.page-heading{font-size:1.8em}.section-heading{font-size:1.5em}.project-summary-row,.about-layout,.skills-grid{grid-template-columns:1fr}.project-copy{grid-column:1;grid-row:1}.project-media-grid{grid-column:1;grid-row:2}.about-copy{grid-column:1;grid-row:1}.about-visuals{grid-column:1;grid-row:2}.project-title{font-size:1.45em}.gallery-grid{grid-template-columns:1fr}}
@media(max-width:480px){.site-sidebar{padding:4em 1.5em}.project-panel[data-project='binnies'] .project-media-grid{grid-template-columns:1fr}.project-panel[data-project='binnies'] .project-media:first-child{grid-column:1}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important}}
