/* An open, image-led portfolio. */
:root {
  --max: 90rem; --gutter: clamp(22px, 2vw, 32px);
  --base: #fff; --wall: #fff; --hair: #e8e8e5;
  --type-title: clamp(2.75rem, 4.6vw, 4rem);
  --type-section: clamp(1.5rem, 2.3vw, 2rem);
  --type-lead: clamp(1.125rem, 1.6vw, 1.25rem);
  --type-body: 1.0625rem;
  --reading-width: 68ch;
  --intro-space: clamp(48px, 6vw, 88px);
  --section-space: clamp(64px, 7.5vw, 108px);
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.studio-top .wrap { display: flex; align-items: center; min-height: 90px; padding-top: 23px; padding-bottom: 23px; }
.studio-top .studio-brand { display: grid; place-items: center; width: 52px; height: 44px; margin-left: -4px; }
.studio-brand img { display: block; width: 52px; height: 44px; transform: rotate(-6deg); transition: transform 450ms cubic-bezier(.2,.75,.3,1); }
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .studio-brand:hover img { transform: translate(2px, -3px) rotate(4deg); }
}
.studio-menu { display: flex; gap: clamp(22px, 3vw, 40px); font: 400 13px/1.5 var(--sans); text-transform: none; letter-spacing: 0; }
.studio-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; }
.studio-menu a::after { bottom: 7px; }
.studio-menu a .arrow { margin-left: 6px; }
.studio-menu .nav-resume { margin-left: 10px; color: var(--muted); }
.studio-hero { position: relative; padding-top: clamp(120px, 13vw, 190px); padding-bottom: 56px; }
.time-corner { position: absolute; top: 38px; right: var(--gutter); color: var(--muted); font-size: 11px; line-height: 1.8; }
.time-corner p { display: flex; justify-content: space-between; gap: 25px; margin: 0; }
.time-corner time { color: var(--ink-2); font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.studio-heading h1 { font-family: var(--sans); font-size: clamp(48px, 4.3vw, 64px); font-weight: 400; line-height: 1.05; letter-spacing: -.06em; }
.studio-copy { max-width: 625px; margin-top: 22px; color: var(--ink-2); font-size: 17px; line-height: 1.5; letter-spacing: -.018em; text-wrap: pretty; }
.studio-copy a { text-decoration-color: #a5a5a0; text-underline-offset: .15em; }
.studio-copy a:hover { text-decoration-color: var(--ink); }
.studio-postscript { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 22px; margin-left: -6px; color: var(--muted); }
.social-links a { width: 40px; height: 40px; display: grid; place-items: center; text-decoration: none; transition: transform .25s, color .25s; }
.social-links .ico { width: 17px; height: 17px; margin: 0; }
.social-links a:hover { transform: translateY(-2px); color: var(--ink); }
.workdesk-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 24px; row-gap: 60px; align-items: start; }
.desk-project { min-width: 0; }
.desk-project .project-art { height: auto; aspect-ratio: 4 / 3; border-radius: 8px; }
.desk-caption { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; }
.desk-caption h3 { font-size: 17px; font-weight: 400; line-height: 1.3; letter-spacing: -.015em; }
.desk-role { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.desk-caption > .arrow { width: 12px; height: 12px; flex: none; color: var(--muted); transition: transform .25s; }
.project-link:hover .desk-caption > .arrow { transform: translate(2px,-2px); }
.desk-project .project-summary { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-wrap: pretty; }
/* Aperture's own eye, local-time sky, wordmark, and display type. */
.aperture-cover { container-type: inline-size; background: #383e47; color: #fffdf8; }
.aperture-cover .aperture-cover-landscape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: none; transition: none; }
.project-link:hover .aperture-cover > .aperture-cover-landscape { transform: none; }
.aperture-cover::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(var(--sky-tint, 0, 0, 0), var(--sky-top, .2)), transparent 26%), linear-gradient(to bottom, transparent var(--sky-from, 46%), rgba(0, 0, 0, var(--sky-mid, .5)) var(--sky-mid-at, 70%), #000 100%); pointer-events: none; }
.aperture-cover[data-sky="day"] { --sky-tint: 22, 38, 84; --sky-top: .62; --sky-from: 40%; --sky-mid: .8; --sky-mid-at: 64%; }
.aperture-cover[data-sky="dusk"] { --sky-top: .3; --sky-from: 44%; --sky-mid: .78; --sky-mid-at: 66%; }
.aperture-cover[data-sky="night"] { --sky-top: .1; --sky-mid: .74; --sky-mid-at: 72%; }
.aperture-cover .aperture-cover-eye { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.aperture-cover-brand { position: absolute; z-index: 3; top: 10%; left: 8%; width: clamp(88px, 22cqw, 160px); }
.aperture-cover-brand svg { display: block; width: 100%; height: auto; }
.aperture-cover .aperture-cover-title { position: absolute; z-index: 3; left: 8%; right: 8%; bottom: 10%; margin: 0; color: inherit; font-family: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif; font-size: clamp(24px, 7.1cqw, 54px); font-weight: 300; font-optical-sizing: auto; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; opacity: var(--aperture-words, 1); transform: translateY(calc((1 - var(--aperture-words, 1)) * 8px)); }
@media (prefers-reduced-motion: reduce) {
  .aperture-cover .aperture-cover-eye { display: none; }
  .aperture-cover .aperture-cover-title { opacity: 1; transform: none; }
}

.desk-project .snack-exploded { background: #f0f0ed; }
.desk-project .snack-exploded > img { position: absolute; width: 128%; height: 128%; max-width: none; left: -17%; top: -18%; margin: 0; }
.desk-ordo { container-type: inline-size; background: #dfe8e9; }
.desk-ordo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(245 248 247 / 84%), rgb(244 247 246 / 40%) 55%, rgb(244 247 246 / 10%)), url('/media/ordo/cloud-sea.jpg') center / cover; }
.ordo-cover-brand { position: absolute; left: 8%; top: 12%; color: #263a3f; }
.ordo-cover-brand > span { display: block; font-size: 6cqw; font-weight: 500; line-height: 1; letter-spacing: -.06em; }
.ordo-cover-brand p { margin-top: 5cqw; font-size: 3.3cqw; line-height: 1.25; letter-spacing: -.035em; }
.ordo-cover-platform { position: absolute; bottom: 10%; left: 8%; color: #344a50; font-size: 1.8cqw; }
.ordo-ios-pair { position: absolute; inset: 0; }
.ordo-device { position: absolute; width: 31%; aspect-ratio: 1350 / 2760; }
.ordo-device-today { left: 37%; top: 7%; z-index: 1; }
.ordo-device-focus { width: 28%; right: 2%; top: 20%; }
.ordo-device img { display: block; position: absolute; max-width: none; margin: 0; border: 0; box-shadow: none; }
.ordo-device .ordo-device-screen { left: 5.333333%; top: 2.5%; width: 89.333333%; height: 95%; border-radius: 12.5% / 5.75%; object-fit: fill; }
.ordo-device .ordo-device-frame { inset: 0; width: 100%; height: 100%; border-radius: 0; pointer-events: none; }
.celestica-art { background: transparent; }
.celestica-art__brand { position: absolute; top: 50%; left: 50%; width: 68%; max-width: 420px; transform: translate(-50%, -50%); }
.celestica-art .celestica-art__logo { display: block; width: 100%; height: auto; margin: 0; object-fit: contain; }
.more-work { display: flex; justify-content: space-between; gap: 24px; padding-top: 28px; margin-top: 58px; border-top: 1px solid var(--hair); text-decoration: none; font-size: 13px; }
.more-work > span:last-child { color: var(--muted); }
.more-work .arrow { margin-left: 18px; }
.more-work:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.studio-footer { margin-top: clamp(80px, 9vw, 130px); padding: 0 0 26px; border: 0; }
.foot.studio-footer .wrap > .studio-footer-main { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; border-top: 1px solid var(--hair); padding-top: 27px; }
.studio-footer-main > a:first-child { font-size: 18px; letter-spacing: -.02em; text-decoration: none; }
.studio-footer-main p, .studio-footer-main > a:last-child { color: var(--muted); font-size: 12px; }
.studio-footer-note { margin-top: 28px; color: var(--muted); font-size: 11px; }
/* A readable story, with availability kept beside it rather than interrupting it. */
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .44fr); gap: clamp(48px, 8vw, 120px); max-width: 1200px; align-items: start; margin-top: 36px; }
.about-copy { max-width: var(--reading-width); font-size: var(--type-body); line-height: 1.7; }
.about-copy .lead { font-size: var(--type-lead); line-height: 1.6; letter-spacing: -.012em; }
.about-copy > p + p { margin-top: 20px; }
.about-availability { max-width: 300px; border-top: 1px solid var(--hair); padding-top: 18px; }
.about-availability .open { margin-top: 0; font-size: 14px; line-height: 1.6; gap: 12px; }
.about-availability .open .tag { font-size: 13px; font-weight: 500; }
.about-availability .actions { display: flex; gap: 24px; margin-top: 18px; }
.about-availability .text-link { min-height: 44px; font-size: 14px; gap: 10px; }
.about-index { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 38px; }
.about-index a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); text-decoration-color: var(--hair); }
.about-index a:hover { color: var(--ink); text-decoration-color: currentColor; }
.about-page .block { padding-top: var(--section-space); }
.about-page .head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px 40px; margin-bottom: 30px; }
.about-page .head p { margin: 0; font-size: 14px; }
.about-page .job, .about-page .edu { grid-template-columns: 12rem minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding: 30px 0 34px; }
.about-page .job > div, .about-page .edu > div { max-width: 760px; }
.about-page .job .when { font: 400 12px/1.7 var(--mono); }
.about-page .job h3, .about-page .edu h3 { font-size: 20px; font-weight: 500; line-height: 1.35; letter-spacing: -.02em; }
.about-page .job .org { font-size: 15px; margin-top: 5px; }
.about-page .job ul:not(.tags) { max-width: var(--reading-width); margin-top: 18px; }
.about-page .job li { font-size: 16px; line-height: 1.7; margin-top: 10px; }
.about-page .job .tags { margin-top: 18px; }
.about-page .job .tags li { font-size: 12px; line-height: 1.6; }
.about-page .edu .label { font: 400 12px/1.7 var(--mono); }
.about-page .edu p { max-width: var(--reading-width); font-size: 16px; line-height: 1.65; }
.about-page .edu .muted { margin-top: 12px; font-size: 14px; }
.about-page .skills > li { grid-template-columns: 12rem minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding: 22px 0; }
.about-page .skills h3 { font: 500 14px/1.5 var(--sans); }
.about-page .skills .chips { max-width: 760px; font-size: 15px; line-height: 1.8; }
.about-page .skills .chips li { white-space: normal; }

.celestica-case-art { display: grid; justify-items: center; align-content: center; gap: 40px; margin: 56px 0 0; min-height: 280px; padding: 32px 0; background: #fff; }
.celestica-case-art img { width: min(70%, 420px); height: auto; }
.celestica-case-art figcaption { color: var(--muted); font-size: 12px; text-align: center; }
.celestica-results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 44px; margin-top: 70px; }
.celestica-results > div { border-top: 1px solid var(--hair); padding-top: 24px; }
.celestica-results b { display: block; font-size: clamp(34px,4vw,54px); font-weight: 400; letter-spacing: -.04em; line-height: 1.1; }
.celestica-results span { display: block; max-width: 270px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.celestica-story { display: grid; grid-template-columns: 1fr 1.45fr; gap: 70px; margin-top: 90px; padding-top: 28px; border-top: 1px solid var(--hair); }
.celestica-story h2 { max-width: 330px; font-size: var(--type-section); font-weight: 400; letter-spacing: -.03em; line-height: 1.2; }
.celestica-story p { max-width: var(--reading-width); font-size: var(--type-body); line-height: 1.7; }
.celestica-story p + p { margin-top: 18px; }


@media(max-width:900px) {
  .studio-menu { gap: 22px; }
  .studio-menu .nav-resume { margin-left: 0; }
  .workdesk-grid { column-gap: 20px; }
  .celestica-story { gap: 40px; }
}
@media(max-width:620px) {
  .studio-top .wrap { flex-wrap: wrap; justify-content: flex-start; gap: 15px; padding-top: 24px; padding-bottom: 12px; min-height: 112px; }
  .studio-menu { width: 100%; justify-content: space-between; gap: 12px; font-size: 13px; }
  .studio-menu .nav-resume { font-size: 12px; }
  .studio-hero { padding-top: 88px; padding-bottom: 46px; }
  .time-corner { position: static; margin-top: -48px; margin-bottom: 46px; width: max-content; margin-left: auto; }
  .studio-heading h1 { font-size: clamp(46px, 12vw, 62px); }
  .studio-copy { margin-top: 20px; font-size: 16px; line-height: 1.5; }
  .studio-postscript { margin-top: 20px; }
  .workdesk-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .desk-caption { margin-top: 14px; }
  .desk-caption h3 { font-size: 17px; }
  .desk-role { font-size: 11px; }
  .more-work { margin-top: 40px; font-size: 12px; flex-wrap: wrap; gap: 10px; }
  .foot.studio-footer .wrap > .studio-footer-main { flex-wrap: wrap; gap: 20px; }
  .studio-footer-main p { order: 1; width: 100%; }
  .studio-footer-note { margin-top: 16px; }
  .celestica-results, .celestica-story { grid-template-columns: 1fr; gap: 26px; }
  .celestica-case-art { min-height: 220px; gap: 28px; }
  .celestica-story { margin-top: 60px; }
}

/* Rolls-Royce: a current capstone, distinct from employment or completed results. */
.rolls-royce-art { display: grid; place-items: center; background: #fff; }
.capstone-lockup { display: grid; grid-template-columns: 1fr .45fr 1.3fr .45fr 2.7fr; align-items: center; gap: 4%; width: 78%; }
.capstone-lockup img { display: block; width: 100%; height: auto; object-fit: contain; }
.capstone-lockup span { color: #b0b1b5; font-size: clamp(12px, 1.4vw, 21px); font-weight: 400; text-align: center; }
.capstone-heading .capstone-lockup { flex: 0 1 390px; width: 390px; }
.capstone-heading { display: flex; justify-content: space-between; align-items: center; gap: 35px; margin-top: 38px; }
.capstone-status { margin-bottom: 15px; color: var(--muted); font-size: 13px; }
.capstone-page .p-hero h1 { font-size: var(--type-title); font-weight: 400; }
.capstone-section { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr); column-gap: 70px; margin-top: 64px; padding-top: 27px; border-top: 1px solid var(--hair); }
.capstone-section h2 { font-size: var(--type-section); font-weight: 400; line-height: 1.2; letter-spacing: -.03em; }
.capstone-section p { max-width: var(--reading-width); font-size: var(--type-body); line-height: 1.7; }
.capstone-section p + p { margin-top: 19px; }
@media(max-width:620px) {
  .capstone-heading { flex-direction: column; align-items: flex-start; gap: 36px; margin-top: 30px; }
  .capstone-heading .capstone-lockup { flex: none; width: min(100%, 360px); margin-bottom: 8px; }
  .capstone-page .p-hero h1 { font-size: var(--type-title); }
  .capstone-status { font-size: 11px; }
  .capstone-section { grid-template-columns: 1fr; gap: 20px; margin-top: 45px; }
  .capstone-section h2 { font-size: var(--type-section); }
  .capstone-section p { font-size: 16px; }
}

/* Shared rhythm for project pages, independent of image and model dimensions. */
.project-page { --room: var(--section-space); }
.crumb { min-height: 44px; margin-bottom: 24px; font-size: 13px; }
.p-hero > .wrap > .tags, .capstone-status { font-size: 12px; }
.spec dt { font-size: 12px; line-height: 1.5; }
.spec dd { font-size: 15px; line-height: 1.6; }
.summary { grid-template-columns: 12rem minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.summary > .label { font: 500 14px/1.6 var(--sans); }
.summary ul { max-width: var(--reading-width); }
.summary li, .chapter p { font-size: var(--type-body); line-height: 1.7; }
.chapter .notes { max-width: var(--reading-width); min-width: 0; }
.chapter h3 { font-size: 17px; font-weight: 500; line-height: 1.4; }
.chapter .status { font-size: 14px; }
.viewer .stage:focus-visible { outline-offset: 5px; }
.viewer button { min-height: 44px; padding: 9px 12px; font-size: 13px; }
.next { align-items: center; padding: 28px 0 8px; }
.next b { font-size: var(--type-section); line-height: 1.2; }
.next .label { font-size: 12px; }
.gallery-hint { display: none; }
.studio-footer-main > a { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; }
#main:focus { outline: none; }
@media (max-width: 900px) {
  .about-intro { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .about-availability { max-width: 540px; }
  .celestica-story, .capstone-section { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .celestica-story h2, .capstone-section h2 { max-width: none; }
  .shots { grid-auto-columns: min(65%, 280px); gap: 22px; padding: 6px 2px 16px; scroll-padding-inline: 2px; }
  .gallery-hint { display: block; margin-top: 12px; font-size: 12px; color: var(--muted); }
}
@media (max-width: 760px) {
  .about-page .head { display: block; }
  .about-page .head p { margin-top: 10px; }
  .about-page .job, .about-page .edu, .about-page .skills > li, .summary { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .about-page .job .when span { display: inline; margin-left: 12px; }
  .about-page .skills h3 { font-size: 15px; }
}
@media (max-width: 620px) {
  .about-intro { margin-top: 28px; }
  .about-copy { font-size: 16px; line-height: 1.7; }
  .about-index { margin-top: 24px; gap: 20px; }
  .about-page .head { margin-bottom: 24px; }
  .about-page .job .when span { display: block; margin-left: 0; }
  .summary li, .chapter p, .celestica-story p, .capstone-section p { font-size: 16px; }
  .shots { grid-auto-columns: 78%; gap: 18px; }
  .shots figcaption { font-size: 13px; }
  .capstone-heading { margin-top: 0; gap: 24px; }
  .capstone-heading .capstone-lockup { width: min(80%, 300px); }
  .studio-footer { padding-bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
}
