@import url("portfolio-system.css?v=20261109-4");

:root {
  color-scheme: light;
  --gallery-paper: var(--portfolio-paper);
  --gallery-ink: var(--portfolio-ink);
  --gallery-fog: var(--portfolio-fog);
  --gallery-muted: var(--portfolio-muted);
  --gallery-line: var(--portfolio-line);
  --gallery-font: var(--portfolio-font);
  --gallery-display: var(--portfolio-font);
  /* Mirrors tokens.css --ease-out and --dur-feedback so case studies share timing. */
  --gallery-ease-out: cubic-bezier(.32, .72, 0, 1);
  --gallery-feedback: var(--portfolio-motion);
  --gallery-zoom: 300ms var(--gallery-ease-out);
  --type-display: clamp(3rem, 7.5vw, 6.375rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scrollbar-color: var(--gallery-muted) var(--gallery-paper); }
body { margin: 0; background: var(--gallery-paper); color: var(--portfolio-text); font: 300 1.125rem/1.5 var(--gallery-font); }
::selection { background: var(--gallery-ink); color: var(--gallery-paper); }
[hidden] { display: none !important; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { color: var(--portfolio-text); font-weight: 400; text-wrap: balance; overflow-wrap: anywhere; }
p { text-wrap: pretty; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; text-underline-offset: .25em; transition: color var(--gallery-feedback); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; max-width: 100%; }
.shell { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: clamp(20px, 3vw, 40px); }
.shell.site-header { max-width: none; padding-inline: max(5vw, calc((100% - 1040px) / 2)); }
.skip-link { position: absolute; top: 8px; left: 20px; z-index: 2; padding: 12px; background: var(--gallery-paper); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.hero { display: grid; grid-template-columns: minmax(0, 41fr) minmax(0, 59fr); align-items: start; gap: 40px; padding-block: 64px 0; overflow-x: clip; }
.hero-copy { padding-top: 32px; }
h1 { font: 700 var(--type-display)/1.1 var(--gallery-display); letter-spacing: -.06em; }
.hero-lead { margin-top: 8px; color: var(--gallery-muted); font-size: 1.5rem; line-height: 1.3; }
.hero-intro { margin-top: 24px; }
.hero-bio p { margin-bottom: 24px; }
.hero-visual { position: relative; min-width: 0; height: 440px; margin: 0; }
.hero-visual-main { position: absolute; top: 64px; left: 0; width: 88%; height: auto; border: 1px solid var(--gallery-line); border-radius: 8px; }
.hero-visual-detail { position: absolute; bottom: 24px; right: 0; width: 44%; height: auto; border: 8px solid var(--gallery-paper); border-radius: 12px; }
.work { padding-block: 96px; background: #fafafa; border-block: 1px solid var(--gallery-line); }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.work .section-heading { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.section-heading > p { max-width: 48ch; color: var(--gallery-muted); }
.work .section-heading > p { color: var(--portfolio-muted-on-fog); }
.project-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; align-items: start; }
.project { min-width: 0; display: flex; flex-direction: column; padding: 8px 8px 0; border-radius: 12px; color: var(--portfolio-text); background: var(--gallery-paper); box-shadow: 0 1px 4px rgb(0 0 0 / .2); transition: box-shadow var(--gallery-feedback); }
.project-image { width: 100%; aspect-ratio: 628 / 368; overflow: hidden; border-radius: 6px; background: var(--gallery-fog); }
.media-core { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; transition: transform var(--gallery-zoom); }
.project-image img { width: 100%; height: 100%; object-fit: contain; }
.project-copy { position: relative; padding: 16px 40px 16px 16px; }
.project-heading { display: flex; flex-direction: column; gap: 4px; }
.project h3 { font: 300 1.125rem/1.2 var(--gallery-display); letter-spacing: 0; }
.project-meta { color: var(--gallery-muted); font-size: 1rem; line-height: 1.2; }
.project-role { display: block; margin-bottom: 4px; line-height: 1.4; }
.project-copy > p:not(.project-outcome) { margin-top: 12px; font-size: 1rem; line-height: 1.5; }
.project-outcome, .project-link { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.project-heading::after { content: ""; position: absolute; right: 16px; top: 22px; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: 0; transition: opacity var(--gallery-feedback), translate var(--gallery-feedback); }
.project:focus-visible .project-heading::after { opacity: 1; }
.site-footer { background: var(--portfolio-fog); border-top: 1px solid var(--portfolio-line); font-size: .875rem; }
.site-footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-block: 24px; }
.site-footer-inner > span { margin-right: auto; color: var(--portfolio-muted-on-fog); }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) {
  a:hover { color: var(--gallery-muted); }
  .project:hover { color: var(--portfolio-text); box-shadow: 0 4px 8px rgb(0 0 0 / .2); }
  .project:hover .project-heading::after { opacity: 1; translate: 2px 0; }
  .site-footer a:hover { color: var(--portfolio-muted-on-fog); }
}
@media (max-width: 1000px) {
  .hero { gap: 32px; }
  .hero-visual { height: 360px; }
}
@media (max-width: 900px) {
  .project-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  :root { --type-display: clamp(3.5rem, 20.5vw, 5rem); }
  .shell { padding-inline: 32px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 64px 0; gap: 0; }
  .hero-copy { padding-top: 0; }
  .hero-lead { font-size: 1.5rem; }
  .hero-bio { font-size: 1.25rem; }
  .hero-visual { height: auto; aspect-ratio: 590 / 440; max-width: 480px; width: 100%; justify-self: center; margin-bottom: 40px; }
  .hero-visual-main { top: 16px; }
  .hero-visual-detail { bottom: 16px; }
  .work { padding-block: 64px; }
}
@media (max-width: 600px) {
  .project-list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .project-heading::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .media-core, .project-link > span { transform: none !important; }
}
@media (prefers-contrast: more) {
  :root { --gallery-muted: #070707; --gallery-line: #070707; }
}
