@font-face { font-family: "IBM Plex Sans"; src: url("assets/IBMPlexSans-var.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
:root {
  --black: #000; --ink: #0a0a0a; --paper: #f1efea; --graphite: #2b2b2a; --accent: #ff5a1f;
  --font-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif; --font-display: var(--font-body); --font-mono: var(--font-body);
  --gutter: clamp(16px, 2.8vw, 46px); --max: 1600px; --ease: cubic-bezier(.16,1,.3,1);
  /* Fluid type scale: 375px → 1600px viewports */
  --fs-xs: clamp(12px, 11.4px + .16vw, 13.5px);
  --fs-sm: clamp(14px, 13.4px + .16vw, 15.5px);
  --fs-body: clamp(16px, 15.4px + .16vw, 18px);
  --fs-lead: clamp(16.5px, 15.5px + .3vw, 20px);
  --fs-h3: clamp(19px, 17px + .5vw, 24px);
  --fs-statement: clamp(24px, 18px + 1.7vw, 44px);
  font-family: var(--font-body); font-size: var(--fs-body); background: var(--black); color: var(--paper); line-height: 1.5;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
h1, h2, h3, .display { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.wrap { padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2)); }
.display { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -.035em; line-height: .94; }
.label, .top, .loader, .foot, .hero-visual figcaption { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500; text-transform: uppercase; letter-spacing: .07em; }
.label { color: #bcbab5; }
.skip { position: fixed; inset: 8px auto auto 8px; padding: 10px; background: var(--paper); color: var(--ink); z-index: 120; transform: translateY(-150%); }
.skip:focus { transform: none; }
.top { height: 64px; position: fixed; inset: 0 0 auto; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--black); }
.top > a { justify-self: start; }
.top nav { display: flex; gap: clamp(16px, 3vw, 48px); }
.top a:hover, .foot a:hover, .contact-links a:hover, .email:hover { color: var(--accent); }
.location { justify-self: end; color: #bcbab5; }
.location time { margin-left: 8px; font-variant-numeric: tabular-nums; }
.menu-toggle { display: none; }
.loader { position: fixed; inset: 0; z-index: 100; background: var(--black); display: flex; flex-direction: column; justify-content: space-between; padding-block: 24px; }
.loader[hidden] { display: none; }
.loader div { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.loader strong { font-size: clamp(96px, 16vw, 260px); }
.loader.leaving { animation: curtain .7s cubic-bezier(.76,0,.24,1) both; pointer-events: none; }
@keyframes curtain { to { clip-path: inset(0 0 100% 0); } }
.hero { height: 220vh; background: var(--black); }
.hero-sticky { position: sticky; top: 0; height: 100svh; max-width: calc(var(--max) + 160px); margin-inline: auto; overflow: hidden; display: grid; align-items: center; }
.hero-visual { position: absolute; inset: 11% 2% 6% 47%; display: grid; place-items: center; }
.hero-image { position: relative; width: 100%; overflow: hidden; }
.hero-image img { width: 100%; height: auto; }
.hero-stages, .hero-stages span { position: absolute; inset: 0; }
.hero-stages { display: none; }
.hero-build .hero-stages { display: block; }
.hero-stages span { background: url("assets/mep-construction-stages.png") 0 0 / 200% 200% no-repeat; opacity: 0; }
.hero-stages span:nth-child(2) { background-position: right top; }
.hero-stages span:nth-child(3) { background-position: left bottom; }
.hero-stages span:nth-child(4) { background-position: right bottom; }
.hero-visual figcaption { position: absolute; top: 4%; right: 1%; text-align: right; display: grid; gap: 3px; }
.hero-visual figcaption > span { color: #bcbab5; }
.track { width: 112px; height: 1px; background: #555; justify-self: end; margin-top: 5px; }
.track span { display: block; height: 100%; width: 0%; background: var(--paper); }
.hero-copy { position: relative; width: 48%; padding-top: 64px; pointer-events: none; }
.hero-copy .actions { pointer-events: auto; }
.hero-label { margin-bottom: clamp(14px, 2vw, 30px); }
.hero-label span { margin-left: 8px; color: #aaa; }
h1 { font-size: clamp(64px, 8.2vw, 172px); }
h1 > span { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
h1 b { display: block; font-weight: inherit; }
.intro-play h1 b { animation: rise 1.1s .15s var(--ease) both; }
.intro-play h1 > span + span b { animation-delay: .23s; }
.intro-play .hero-visual, .intro-play .hero-label, .intro-play .hero-intro, .intro-play .hero-copy .actions { animation: enter 1.05s .35s var(--ease) both; }
@keyframes rise { from { transform: translateY(110%); } }
@keyframes enter { from { opacity: 0; transform: translateY(24px); } }
.hero-intro { max-width: 46ch; font-size: var(--fs-lead); line-height: 1.5; margin-top: clamp(20px, 3vw, 44px); margin-bottom: 22px; color: #ceccc7; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; justify-content: center; background: transparent; min-height: 44px; border-radius: 100px; border: 1px solid #64635f; padding: 10px 24px; font-size: var(--fs-sm); font-weight: 600; }
.pill:hover { border-color: var(--paper); }
.primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.primary:hover { background: white; }
.primary:focus-visible { outline-color: var(--paper); }
.chapter { padding-block: clamp(48px, 6vw, 96px); }
.contour { position: relative; isolation: isolate; background-color: var(--ink); }
.contour::before, .approach::before { position: absolute; z-index: -1; inset: 0; content: ""; background: url("assets/contours.svg") center top / 1000px auto repeat; opacity: .58; pointer-events: none; }
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(22px, 4vw, 64px); margin-top: 36px; }
.about-art { position: relative; align-self: start; overflow: hidden; background: var(--graphite); }
.about-art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); transition: filter .65s; }
.about-art:hover img { filter: grayscale(0); }
.about-art figcaption { position: absolute; inset: auto auto 10px 12px; padding: 4px 7px; font-family: var(--font-mono); font-size: var(--fs-xs); background: var(--ink); color: var(--paper); }
.statement { max-width: 30ch; font-size: var(--fs-statement); font-weight: 500; line-height: 1.18; letter-spacing: -.02em; }
[data-word-highlight] span { display: inline-block; transition: color .18s ease; }
@media (prefers-reduced-motion: no-preference) {
  [data-word-highlight] span {
    --word-reveal: clamp(0, var(--word-progress, 100) - var(--word-index, 0), 1);
    --word-eased: calc(var(--word-reveal) * var(--word-reveal) * (3 - 2 * var(--word-reveal)));
    opacity: calc(.28 + .72 * var(--word-eased));
  }
}
@media (hover: hover) and (pointer: fine) {
  [data-word-highlight] span:hover { color: var(--accent); opacity: 1; }
}
.facts, .stats { display: grid; gap: 18px; margin-top: clamp(30px, 5vw, 68px); }
.facts { grid-template-columns: repeat(3, 1fr); }
.facts > div, .stats > div { border-top: 1px solid #ffffff40; padding-top: 14px; }
.facts dt, .stats span, .project-summary span { font-family: var(--font-mono); font-size: var(--fs-xs); color: #c4c0bb; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin-top: 9px; font-size: var(--fs-sm); line-height: 1.55; }
.stats { grid-template-columns: repeat(2, 1fr); }
.stats strong { display: block; font-size: clamp(58px, 7vw, 112px); margin-bottom: 8px; }
.approach { position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; text-align: center; background: #7a1607; padding-block: clamp(65px, 9vw, 135px); }
.approach::before { opacity: .8; mix-blend-mode: screen; animation: contour-drift 16s ease-in-out infinite alternate; }
@keyframes contour-drift { to { transform: scale(1.12) translate(2%, 2%); } }
.approach h2 { font-size: clamp(46px, 7vw, 116px); }
.work-title { position: sticky; top: 80px; font-size: clamp(80px, 13vw, 200px); line-height: .84; margin-bottom: clamp(20px, 4vw, 55px); transform: scale(var(--work-scale, 1)); transform-origin: top left; opacity: var(--work-opacity, 1); pointer-events: none; }
.work-grid { position: relative; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.project { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ffffff26; border-radius: clamp(22px, 3vw, 40px); background: #141414; }
.project-art { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: #1b2129; }
.project-art img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--art-shift, 0px)) scale(1.12); }
.project-art.portrait img { object-position: center 70%; }
.project-art.emblem, .detail-visual.emblem { background: #fff; }
.project-art.emblem img, .detail-visual.emblem img { object-fit: contain; padding: clamp(14px, 2.4vw, 32px); }
.project-art.emblem img { transform: translateY(calc(var(--art-shift, 0px) * .25)); }
.project h3 { text-align: center; background: var(--paper); color: var(--ink); padding: 18px 16px 16px; font-size: clamp(24px, 2.3vw, 38px); line-height: 1.05; }
.project-summary { flex: 1; padding: clamp(16px, 1.6vw, 24px) clamp(18px, 2vw, 28px); }
.project-summary p { max-width: 52ch; margin-bottom: 8px; color: #dedbd7; line-height: 1.5; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.paper { position: relative; background: var(--paper); color: var(--ink); }
.paper .label { color: #53514d; }
.section-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 24px; }
.section-grid .display { font-size: clamp(46px, 6.6vw, 112px); }
.jobs { list-style: none; padding: 0; margin: 40px 0 0; border-bottom: 1px solid #0a0a0a30; }
.jobs li { border-top: 1px solid #0a0a0a30; }
.jobs summary { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 40px; gap: 8px 20px; padding-block: 22px; align-items: baseline; }
.jobs summary:hover strong { color: #000; }
.job-toggle { position: relative; align-self: center; width: 40px; height: 40px; border: 1px solid #0a0a0a40; border-radius: 50%; transition: background .25s, border-color .25s, transform .4s var(--ease); }
.job-toggle::before, .job-toggle::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 14px; height: 1.5px; background: currentColor; translate: -50% -50%; transition: transform .4s var(--ease); }
.job-toggle::after { transform: rotate(90deg); }
.jobs summary:hover .job-toggle { border-color: var(--ink); }
.jobs details[open] .job-toggle { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.jobs details[open] .job-toggle::after { transform: rotate(0deg); }
.jobs summary:focus-visible { outline-offset: -2px; }
.jobs strong { font-size: clamp(19px, 1.2vw + 12px, 32px); font-weight: 600; line-height: 1.1; }
.jobs small { display: block; font-size: var(--fs-sm); margin-top: 6px; }
.jobs time, .jobs summary > span:first-child { font-family: var(--font-mono); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; color: #53514d; }
.duties { margin: 0; padding: 0 0 26px 58px; max-width: 78ch; list-style: none; counter-reset: duty; }
.duties li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid #0a0a0a18; line-height: 1.55; }
.duties li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 12px; height: 1.5px; background: var(--accent); }
@supports (interpolate-size: allow-keywords) {
  .jobs details { interpolate-size: allow-keywords; }
  .jobs details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
  .jobs details[open]::details-content { height: auto; }
}
.toolkit { margin-top: clamp(42px, 6vw, 80px); }
.experience-title, .skills-title { font-size: clamp(46px, 6.6vw, 112px); }
.skills-title { margin-bottom: clamp(24px, 3vw, 40px); padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid #0a0a0a30; }
.tool-grid > div { border-top: 1px solid #0a0a0a30; padding-top: 16px; }
.education { margin-top: clamp(42px, 6vw, 80px); }
.edu-list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid #0a0a0a30; }
.edu-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 6px 20px; align-items: baseline; padding-block: 18px; border-top: 1px solid #0a0a0a30; }
.edu-list span, .edu-list small { font-family: var(--font-mono); font-size: var(--fs-xs); color: #53514d; text-transform: uppercase; letter-spacing: .07em; }
.edu-list strong { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }
.tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.tool-grid h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }
.tool-grid ul { margin: 8px 0 0; padding-left: 18px; line-height: 1.6; }
footer.contour { background: var(--black); }
footer .actions { margin-top: 30px; }
.marquee { display: block; overflow: hidden; background: var(--accent); color: var(--ink); padding-block: 12px 16px; }
.marquee-track { display: flex; width: max-content; font-size: clamp(56px, 6.5vw, 108px); white-space: nowrap; animation: marquee 22s linear infinite; }
.marquee-track > span { padding-right: .2em; }
.marquee:hover .marquee-track, .marquee:focus-visible .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-block: 48px 34px; max-width: 640px; }
.contact-location { border: 1px solid #ffffff40; max-width: 420px; }
.contact-location span { display: block; padding: 10px 16px; }
.contact-location span + span { border-top: 1px solid #ffffff40; }
.contact-links { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.email { display: block; margin-top: 18px; font-size: var(--fs-lead); overflow-wrap: anywhere; }
.footer-name { font-size: clamp(56px, 15vw, 248px); line-height: .9; }
.foot { display: flex; justify-content: space-between; gap: 14px; padding-block: 20px; margin-top: 22px; border-top: 1px solid #ffffff30; }
.foot a { text-decoration: underline; text-underline-offset: .25em; }
.revealed { animation: enter .9s var(--delay, 0ms) var(--ease) both; }
@media (max-width: 767px) {
  .top { grid-template-columns: 1fr auto; }
  .top .location { display: none; }
  .top nav { grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; padding-block: 0 10px; }
  .has-menu .top nav { display: none; }
  .has-menu .menu-toggle { display: block; border: 0; background: none; min-height: 44px; }
  .has-menu .top nav.open { display: flex; position: fixed; inset: 64px 0 0; flex-direction: column; gap: 0; background: var(--ink); padding: 35px var(--gutter); animation: open-menu .45s var(--ease) both; overflow: auto; }
  .top nav.open a { font: 700 8.6vw / 1.15 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; border-bottom: 1px solid #ffffff30; padding-block: 8px; }
  @keyframes open-menu { from { clip-path: inset(0 0 100% 0); } }
  .hero { height: 160vh; }
  .hero-sticky { display: flex; flex-direction: column; justify-content: flex-end; padding-top: 68px; }
  .hero-visual { position: relative; inset: auto; width: 100%; flex: 1; min-height: 0; overflow: hidden; }
  .hero-visual { grid-template-rows: minmax(0, 1fr); }
  .hero-image { width: auto; max-width: calc(100% - 2 * var(--gutter)); height: min(100%, (100vw - 2 * var(--gutter)) * 9 / 16); aspect-ratio: 16 / 9; }
  .hero-image img { height: 100%; object-fit: cover; }
  .hero-visual figcaption { display: none; }
  .hero-copy { width: 100%; padding-top: 10px; padding-bottom: 26px; }
  .hero-label { margin-bottom: 12px; }
  .hero-label span { display: none; }
  h1 { font-size: 22vw; }
  .hero-intro { margin-block: 12px 18px; }
  .hero-copy .pill { flex: 1; }
  .about-grid, .section-grid, .contact-grid, .work-grid { grid-template-columns: 1fr; }
  .about-art img { aspect-ratio: 16 / 9; }
  .facts { grid-template-columns: 1fr; }
  .approach h2 { font-size: 11vw; }
  .work-title { font-size: 19vw; top: 72px; }
  .jobs summary { grid-template-columns: 28px minmax(0, 1fr) 36px; gap: 5px 10px; }
  .jobs time { grid-column: 2; grid-row: 2; }
  .job-toggle { grid-column: 3; grid-row: 1 / span 2; width: 36px; height: 36px; }
  .duties { padding-left: 38px; }
  .tool-grid { gap: 22px 14px; }
  .tool-grid { grid-template-columns: 1fr; }
  .edu-list li { grid-template-columns: 28px minmax(0, 1fr); gap: 4px 10px; }
  .edu-list small { grid-column: 2; }
  .footer-name { font-size: 17.5vw; }
  .foot { flex-direction: column; }
  .marquee-track { font-size: 15vw; }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .top { grid-template-columns: auto 1fr; gap: 20px; }
  .top .location { display: none; }
  .top nav { justify-self: end; gap: clamp(14px, 2.4vw, 28px); }
  .hero-copy { width: 52%; }
  h1 { font-size: clamp(64px, 10vw, 104px); }
  .hero-visual { inset: 14% 2% 10% 52%; }
  .hero-visual figcaption { display: none; }
  .about-grid { grid-template-columns: 2fr 3fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .tool-grid { gap: 28px 24px; }
  .hero-label span { display: none; }
}
@media (min-width: 768px) and (max-width: 1099px) and (orientation: portrait) {
  .hero-sticky { display: flex; flex-direction: column; justify-content: flex-end; padding-top: 84px; }
  .hero-visual { position: relative; inset: auto; width: 100%; flex: 1; min-height: 0; }
  .hero-visual { display: grid; grid-template-rows: minmax(0, 1fr); }
  .hero-image { width: auto; max-width: calc(100% - 2 * var(--gutter)); height: min(100%, (100vw - 2 * var(--gutter)) * 9 / 16); aspect-ratio: 16 / 9; }
  .hero-image img { height: 100%; object-fit: cover; }
  .hero-copy { width: 100%; padding-block: 24px 48px; }
  h1 { font-size: 17vw; }
  .hero-intro { max-width: 46ch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero { height: auto; }
  .hero-sticky { position: relative; min-height: 100svh; }
  .hero-visual figcaption { display: none; }
  .work-title { position: relative; top: 0; }
  .marquee-track { animation: none; }
}
.project-link { display: flex; justify-content: space-between; background: var(--accent); color: var(--ink); font-weight: 600; padding: 16px 20px; }
.project-link:hover { background: #ff7240; }
.project-link span { transition: transform .3s; }
.project-link:hover span { transform: translateX(4px); }
.project-link:focus-visible { outline-offset: -5px; }
.project-top > a:last-child { justify-self: end; }
.project-page { padding-block: clamp(100px, 10vw, 155px) clamp(48px, 7vw, 100px); }
.project-heading { margin-bottom: 32px; align-items: start; }
.project-heading p { margin-top: 9px; }
.project-heading h1 { font-size: clamp(52px, 8vw, 136px); }
.project-facts { margin-bottom: clamp(28px, 5vw, 64px); }
.project-facts dl > div { display: grid; grid-template-columns: minmax(92px, 1fr) 4fr; gap: 12px; padding-block: 12px; border-bottom: 1px solid #ffffff26; }
.project-facts dt { font-weight: 600; }
.project-facts dd { color: #d7d4cf; }
.detail-visual { position: relative; aspect-ratio: 21 / 9; background: #1b2129; overflow: hidden; animation: detail-reveal 1.1s var(--ease) both; }
.detail-visual img { width: 100%; height: 100%; object-fit: cover; }
.detail-visual.portrait { aspect-ratio: auto; }
.detail-visual.portrait img { max-height: 72svh; object-fit: contain; }
@keyframes detail-reveal { from { clip-path: inset(12% 0 0); opacity: 0; } }
.project-overview { margin-top: clamp(40px, 7vw, 90px); }
.study-heading { font-size: clamp(42px, 5vw, 84px); }
.contribution-list { margin: 18px 0 0; padding-left: 20px; max-width: 65ch; }
.contribution-list li + li { margin-top: 9px; }
.project-studies { margin-top: clamp(52px, 8vw, 108px); }
.project-photos { margin-top: clamp(52px, 8vw, 108px); }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s ease; }
.photo-grid a:hover img { opacity: .9; }
.study-note { margin-top: 14px; max-width: 62ch; color: #d7d4cf; }
.study-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; }
.study-grid a { display: block; overflow: hidden; border-radius: 12px; background: #15212a; }
.study-grid a:hover svg { opacity: .94; }
.study-grid svg { display: block; width: 100%; height: auto; transition: opacity .2s ease; }
@media (prefers-reduced-motion: no-preference) {
  .study-grid a:not(:focus-visible) [data-study="model"] [data-study-geometry] > * {
    opacity: var(--piece-progress, 1);
    transform: translateY(calc((1 - var(--piece-progress, 1)) * -24px));
  }
  .study-grid a:not(:focus-visible) [data-study="plan"] [data-study-geometry] > * {
    fill-opacity: calc(var(--piece-progress, 1) * var(--piece-progress, 1));
  }
  .study-grid a:not(:focus-visible) [data-study="plan"] .tracing {
    stroke-dasharray: var(--line-length);
    stroke-dashoffset: calc((1 - var(--piece-progress, 1)) * var(--line-length));
  }
}
.study-grid figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; margin-top: 10px; font-weight: 600; }
.study-grid figcaption span { color: #bcbab5; font-weight: 400; }
.next-project { padding-block: 45px 60px; }
.next-project span { display: block; }
.next-project .display { font-size: clamp(44px, 7vw, 108px); margin-top: 12px; }
.next-project a:hover .display { color: var(--accent); }
@media (max-width: 767px) {
  .project-top { grid-template-columns: 1fr auto auto; gap: 15px; }
  .detail-visual { aspect-ratio: 4 / 3; }
  .study-grid { grid-template-columns: 1fr; }
}

.study-grid a, .detail-visual img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: clamp(56px, 6vw, 80px) var(--gutter) var(--gutter); border: 0; background: #000000eb; color: var(--paper); cursor: zoom-out; }
.lightbox[open] { display: grid; place-items: center; animation: lightbox-in .35s var(--ease) both; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - clamp(56px, 6vw, 80px) - var(--gutter)); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 14px; right: var(--gutter); display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px; border: 1px solid #64635f; border-radius: 100px; background: transparent; font-size: var(--fs-sm); font-weight: 600; }
.lightbox-close:hover { border-color: var(--paper); }
.lightbox-close kbd { font-family: var(--font-mono); font-size: var(--fs-xs); padding: 2px 6px; border: 1px solid #64635f; border-radius: 4px; color: #bcbab5; }
.lightbox-open { overflow: hidden; }
@keyframes lightbox-in { from { opacity: 0; } }

.contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-block: clamp(36px, 5vw, 56px) 8px; }
.contact-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 76px; padding: 14px 20px 14px 14px; border: 1px solid #ffffff2a; border-radius: 16px; background: #0d0d0dcc; transition: border-color .25s, background .25s; }
.contact-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #ffffff12; color: var(--paper); transition: background .25s, color .25s; }
.contact-icon svg { width: 24px; height: 24px; }
.contact-text { display: grid; gap: 2px; min-width: 0; }
.contact-text small { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .07em; color: #bcbab5; }
.contact-text strong { font-size: var(--fs-lead); font-weight: 500; overflow-wrap: anywhere; }
.contact-arrow { color: #8a8884; transition: transform .3s var(--ease), color .25s; }
.contact-item:hover { border-color: var(--accent); background: #161616; }
.contact-item:hover .contact-icon { background: var(--accent); color: var(--ink); }
.contact-item:hover .contact-arrow { color: var(--accent); transform: translate(2px, -2px); }
@media (max-width: 767px) { .contact-list { grid-template-columns: 1fr; } .contact-item { min-height: 68px; } }
.toolkit > .skills-title { border-top: 0; padding-top: 0; }
.location { white-space: nowrap; }
@media (min-width: 1100px) and (max-width: 1359px) { .top .location { display: none; } }
