@font-face { font-family: Geist; src: url('assets/fonts/Geist.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
.hero.portfolio-hero { position: relative; isolation: isolate; height: auto; min-height: min(920px, 100dvh); overflow: hidden; border-bottom: 1px solid var(--line); background: var(--void); }
.portfolio-hero .hero-copy { position: relative; z-index: 2; display: block; width: var(--shell); max-width: none; margin: 0 auto; padding: clamp(176px, 20vh, 230px) 0 128px; text-align: left; text-shadow: none; pointer-events: none; }
.portfolio-hero .hero-copy > * { max-width: 680px; }
.portfolio-hero .hero-copy h1 { margin: 0 0 28px; color: var(--white); font: 560 clamp(3.25rem, 4.7vw, 4.5rem)/1.02 Geist, sans-serif; letter-spacing: -.045em; text-wrap: initial; }
.portfolio-hero .hero-accent { color: #a4abad; }
.portfolio-hero :is(.hero-lede, .hero-credentials) { max-width: 490px; margin: 0 0 20px; color: var(--mist); font: 400 18px/1.6 Geist, sans-serif; }
.portfolio-hero .hero-credentials { margin-bottom: 28px; }
.hero-credentials > span { display: block; }
.hero-credentials a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.hero-credentials a:is(:hover, :focus-visible) { color: var(--white); text-decoration-color: currentColor; }
.portfolio-hero .portfolio-hero-actions { max-width: 540px; gap: 18px 24px; }
.portfolio-hero .hero-copy a { pointer-events: auto; }
.portfolio-hero .portfolio-hero-socials { flex-basis: 100%; gap: 24px; }
.hero-wall { position: absolute; inset: -30% -18% -30% 26%; display: flex; gap: 22px; transform: perspective(2200px) rotateX(18deg) rotateY(-12deg) rotate(6deg); transform-origin: 50% 40%; }
.hero-column { flex: 1; min-width: 0; align-self: flex-start; display: flex; flex-direction: column; gap: 20px; animation: hero-wall-up var(--duration) linear infinite paused; }
.hero-column--down { animation-name: hero-wall-down; }
.portfolio-hero[data-active] .hero-column { animation-play-state: running; }
.portfolio-hero:focus-within .hero-column, .portfolio-hero[data-preview-open] .hero-column, .portfolio-hero .hero-column:has(.hero-tile:hover) { animation-play-state: paused; }
.hero-tile { flex: none; display: block; aspect-ratio: 1.6; overflow: hidden; border-radius: 10px; background: var(--rock); box-shadow: 0 0 0 1px #ffffff26, 0 20px 50px -10px #000c; cursor: zoom-in; transition: transform 250ms var(--ease), box-shadow 250ms var(--ease); }
.hero-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hero-tile:is(:hover, :focus-visible) { transform: scale(1.05); box-shadow: 0 0 0 2px var(--white), 0 30px 70px -10px #000e; }
.hero-wall-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--void) 0%, #050708f5 27%, #050708a6 43%, #05070800 65%), linear-gradient(180deg, var(--void) 0, var(--void) 110px, #05070800 250px, #05070800 80%, var(--void) 100%); }
.hero-preview button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--mist); background: var(--void); font: 400 13px/1.4 var(--font-body); cursor: pointer; }
.hero-preview button:hover { color: var(--white); border-color: var(--white); }
.hero-preview button:active { background: var(--rock); }
.hero-preview { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px clamp(20px, 5vw, 80px); border: 0; background: #050708f5; color: var(--white); }
.hero-preview[open] { display: flex; flex-direction: column; justify-content: center; }
.hero-preview::backdrop { background: #050708c9; }
.hero-preview-toolbar { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.hero-preview-toolbar > span { display: flex; gap: 8px; }
.hero-preview figure { width: 100%; min-height: 0; margin: 0; }
.hero-preview figure > img { width: 100%; height: auto; max-height: 65dvh; object-fit: contain; border-radius: 8px; }
.hero-preview figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.hero-preview h2 { margin: 0 0 4px; font-size: 22px; }
.hero-preview p { margin: 0; max-width: 70ch; color: var(--mist); font-size: 13px; }
.hero-preview p:empty { display: none; }
.hero-preview figure > img { background: var(--void); }
html:has(.hero-preview[open]) { overflow: hidden; }
@keyframes hero-wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 10px)); } }
@keyframes hero-wall-down { from { transform: translateY(calc(-50% - 10px)); } to { transform: translateY(0); } }
@media (min-width: 1800px) { .hero-wall-shade { background: linear-gradient(90deg, var(--void) 0%, #050708f5 32%, #05070880 51%, #05070800 68%), linear-gradient(180deg, var(--void) 0, var(--void) 110px, #05070800 250px, #05070800 80%, var(--void) 100%); } }
@media (max-width: 900px) {
  .hero.portfolio-hero { min-height: 1100px; }
  .portfolio-hero .hero-copy { padding: 130px 0 550px; }
  .portfolio-hero .hero-copy > * { max-width: 650px; }
  .portfolio-hero .hero-copy h1 { font-size: clamp(2.8rem, 7.6vw, 4.5rem); }
  .portfolio-hero :is(.hero-lede, .hero-credentials) { max-width: 520px; font-size: 17px; }
  .hero-wall { inset: auto -100px -100px; height: 660px; gap: 12px; transform: none; }
  .hero-column { gap: 12px; }
  .hero-column:nth-child(n+4) { display: none; }
  .hero-tile { border-radius: 7px; }
  .hero-wall-shade { background: linear-gradient(180deg, var(--void) 0, var(--void) calc(100% - 560px), #05070800 calc(100% - 380px), #05070800 85%, var(--void) 100%); }
  @keyframes hero-wall-up { from { transform: translateY(0); } to { transform: translateY(calc(-50% - 6px)); } }
  @keyframes hero-wall-down { from { transform: translateY(calc(-50% - 6px)); } to { transform: translateY(0); } }
}
@media (max-width: 600px) {
  .portfolio-hero .hero-copy { padding-top: 120px; padding-bottom: 430px; }
  .portfolio-hero .hero-copy h1 { font-size: clamp(2.6rem, 10vw, 3.5rem); }
  .portfolio-hero :is(.hero-lede, .hero-credentials) { font-size: 16px; }
  .hero.portfolio-hero { min-height: 1040px; }
  .hero-wall { height: 500px; inset-inline: -110px; }
  .hero-wall-shade { background: linear-gradient(180deg, var(--void) 0, var(--void) calc(100% - 440px), #05070800 calc(100% - 300px), #05070800 85%, var(--void) 100%); }
}
@media (prefers-reduced-motion: reduce) { .hero-column { animation: none; } .hero-tile { transition: none; } .hero-tile:is(:hover, :focus-visible) { transform: none; } }
