/* polinahneletska.com — "author" role of the v2 instrument system. Same tokens, more air, prose first. */
:root { --wrap: 1160px; }
.brand { text-transform: none; letter-spacing: -0.01em; font-size: 18px; }
.brand .wm { gap: .28em; }
.brand-t small { letter-spacing: .12em; }

/* hero */
.person-hero { padding-top: 132px; }
.person-hero .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: end; min-height: 0; }
.person-hero .hero-copy { padding-bottom: 88px; gap: 28px; }
.person-hero h1 { font-size: clamp(48px, 7vw, 96px); }
.tagline { font-family: var(--h); font-weight: 500; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.3; letter-spacing: -0.02em; color: #fff; max-width: 620px; }
.tagline::before { content: ""; display: block; width: 40px; height: 2px; background: var(--accent); margin-bottom: 18px; }
.person-hero .glow { right: 0; width: 55%; background: radial-gradient(45% 55% at 62% 70%, rgba(255,106,61,.20), transparent 70%); }
.portrait.big { aspect-ratio: 4 / 5; max-width: 460px; width: 100%; justify-self: end; border-color: var(--line-2); background: #000; }
.portrait.big img { object-position: 50% 14%; }
.portrait.big::after { background: linear-gradient(180deg, transparent 72%, rgba(0,0,0,.7)); }
.portrait.big::before { content: ""; position: absolute; inset: -1px; border: 1px solid var(--accent); mask: linear-gradient(#000,#000) top left/12px 12px no-repeat, linear-gradient(#000,#000) bottom right/12px 12px no-repeat; -webkit-mask: linear-gradient(#000,#000) top left/12px 12px no-repeat, linear-gradient(#000,#000) bottom right/12px 12px no-repeat; z-index: 2; pointer-events: none; }
.person-hero .strip { margin-top: 0; }
.person-hero .strip h4 { font-size: 20px; }
.person-hero .strip h4 a:hover { color: var(--accent); }

/* profile */
.profile-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 64px; align-items: start; }
.profile-grid .sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.facts { border: 1px solid var(--line); background: var(--black); padding: 4px 20px; }
.facts .row { padding: 12px 0; font-size: 13px; }
.facts .row .v { font-size: 12px; }
.prose { display: flex; flex-direction: column; gap: 28px; }
.prose .story { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; }
.prose .big { font-size: 17px; max-width: 700px; }
.prose a { color: #fff; border-bottom: 1px solid var(--accent-dim); }
.prose a:hover { color: var(--accent); }

/* identifiers */
.ids h2 { font-size: clamp(28px, 3vw, 40px); }
.ids .meta a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }
.idgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--black); }
.id { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 26px; border-right: 1px solid var(--line); transition: background .25s var(--ease); min-width: 0; }
.id:last-child { border-right: 0; }
.id:hover { background: rgba(255,255,255,.03); }
.id .label { font-size: 10px; }
.id .v { font-family: var(--mono); font-size: 14px; color: #fff; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.id .go { position: absolute; right: 14px; top: 16px; width: 22px; height: 22px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: var(--body); transition: color .2s var(--ease), border-color .2s var(--ease); }
.id .go svg { width: 12px; height: 12px; }
.id:hover .go { color: var(--accent); border-color: var(--accent-dim); }

/* story band on home */
.story-cta { padding: 110px 0; min-height: 520px; }
.story-cta h2 { max-width: 720px; }
.story-cta .photo { mask-image: linear-gradient(90deg, transparent 30%, #000 62%); -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 62%); }
.story-cta .photo img { object-position: 60% 50%; transform: none; }

/* gallery */
.figs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fig { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fig a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--line); background: var(--black); }
.fig.wide { grid-column: span 2; }
.fig.wide a { aspect-ratio: auto; height: 100%; }
.fig img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease), opacity .3s var(--ease); }
.fig a:hover img { transform: scale(1.03); }
.fig a::after { content: ""; position: absolute; inset: 0; border: 1px solid transparent; transition: border-color .3s var(--ease); pointer-events: none; }
.fig a:hover::after { border-color: var(--accent-dim); }
.fig figcaption { display: flex; gap: 12px; align-items: baseline; font-size: 13px; color: var(--body); }
.fig figcaption .n { color: var(--accent); font-size: 11px; flex: none; }
.gal .meta { align-items: flex-end; }

/* gallery carousel */
:root { --sw: min(880px, 72vw); --fh: min(64vh, 720px); }
.carousel-sec { padding: 40px 0 88px; }
.carousel { position: relative; }
.track { display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 12px calc(50% - var(--sw) / 2) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline: none; }
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.slide { flex: 0 0 var(--sw); width: var(--sw); scroll-snap-align: center; scroll-snap-stop: always; margin: 0; display: flex; flex-direction: column; gap: 14px; opacity: .3; transition: opacity .5s var(--ease); cursor: pointer; }
.slide.cur { opacity: 1; cursor: default; }
.slide .frame { position: relative; height: var(--fh); min-height: 300px; display: flex; align-items: center; justify-content: center; background: var(--black); border: 1px solid var(--line); overflow: hidden; }
.slide.cur .frame { border-color: var(--line-2); }
.slide .frame::before, .slide .frame::after { content: ""; position: absolute; width: 10px; height: 10px; border-color: var(--accent); border-style: solid; opacity: 0; transition: opacity .4s var(--ease); }
.slide .frame::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.slide .frame::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.slide.cur .frame::before, .slide.cur .frame::after { opacity: 1; }
.slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.slide figcaption { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--body); min-height: 1.5em; }
.slide figcaption .n { color: var(--accent); font-size: 11px; flex: none; }
.ctrl { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 20px; }
.nav-btns { display: inline-flex; align-items: center; gap: 0; }
.nav-btns .btn.sq { width: 40px; padding: 0; }
.nav-btns .next { border-left: 0; }
.counter { display: inline-flex; align-items: center; justify-content: center; height: 40px; min-width: 88px; padding: 0 14px; border: 1px solid var(--line-3); border-right: 0; font-size: 12px; color: var(--dim); letter-spacing: .08em; }
.counter b { color: #fff; font-weight: 500; margin-right: .3em; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.th { width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); background: var(--black); opacity: .55; cursor: pointer; transition: opacity .25s var(--ease), border-color .25s var(--ease); }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th:hover { opacity: 1; }
.th.on { opacity: 1; border-color: var(--accent); }

/* story page */
.page-hero.has-photo { min-height: 520px; display: flex; align-items: flex-end; padding-bottom: 64px; }
.page-hero.has-photo .photo { mask-image: linear-gradient(90deg, transparent 34%, #000 68%), linear-gradient(180deg, #000 60%, transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 34%, #000 68%), linear-gradient(180deg, #000 60%, transparent 100%); mask-composite: intersect; -webkit-mask-composite: source-in; }
.page-hero.has-photo .photo img { object-position: 50% 42%; opacity: .85; transform: translateX(17%) scale(1.1); }
.page-hero.has-photo .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 75%); }
.page-hero .inner { max-width: var(--wrap); }
.page-hero .inner > * { max-width: 820px; }
.page-hero.has-photo > .wrap { width: 100%; }
.page-hero.has-photo h1 { font-size: clamp(36px, 4.6vw, 64px); }
.byline { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-left: 18px; border-left: 2px solid var(--accent); line-height: 1.2; }
.byline b { font-family: var(--h); font-weight: 600; font-size: 15px; }
.byline small { font-family: var(--sans); font-weight: 500; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--body); }
.story-page { padding-top: 72px; }
.story-col { max-width: 760px; margin-left: calc(var(--n-col, 0px)); display: flex; flex-direction: column; gap: 26px; }
.para { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px; }
.para .n { color: var(--accent); font-size: 12px; padding-top: 7px; }
.para p { color: var(--body); font-size: 18px; line-height: 1.6; }
.para p em { font-style: normal; color: #fff; }
.para:first-child p { color: #eaeaea; font-size: 20px; }
.pull { margin: 30px 0 30px 56px; padding: 6px 0 6px 28px; border-left: 2px solid var(--accent); font-family: var(--h); font-weight: 600; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.025em; line-height: 1.2; color: #fff; }
.close { margin: 26px 0 0 56px; font-family: var(--h); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.3; color: #fff; }
.close b { color: var(--accent); font-weight: inherit; }
.seam { position: relative; height: 1px; background: var(--line-2); margin: 22px 0 22px 56px; }
.seam::before { content: ""; position: absolute; left: -5px; top: -5px; width: 11px; height: 11px; background: linear-gradient(var(--line-3), var(--line-3)) center/1px 11px no-repeat, linear-gradient(var(--line-3), var(--line-3)) center/11px 1px no-repeat; }
.next { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.next h3 { font-size: clamp(22px, 2.4vw, 30px); transition: color .2s var(--ease); }
.next a:hover h3 { color: var(--accent); }

/* footer tweak */
.fgrid { grid-template-columns: 1fr 1.2fr 1.3fr 1fr; }

/* responsive */
@media (max-width: 1080px) {
  .person-hero .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait.big { justify-self: start; max-width: 420px; }
  .profile-grid { grid-template-columns: 1fr; gap: 40px; }
  .profile-grid .sticky { position: static; }
  .idgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .id { border-bottom: 1px solid var(--line); }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig.wide { grid-column: span 2; }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .page-hero.has-photo .photo img { transform: none; }
  .person-hero { padding-top: 92px; }
  .tag { height: auto; min-height: 30px; padding: 6px 12px; line-height: 1.5; }
  .person-hero .hero-grid { display: flex; flex-direction: column; gap: 22px; align-items: stretch; }
  .person-hero .hero-copy { display: contents; }
  .person-hero .hero-copy .tag { order: 1; }
  .person-hero .hero-copy h1 { order: 2; font-size: clamp(42px, 13vw, 60px); }
  .person-hero .portrait.big { order: 3; max-width: 100%; aspect-ratio: 10 / 11; margin-top: 6px; }
  .person-hero .portrait.big img { object-position: 50% 0%; }
  .person-hero .tagline { order: 4; font-size: 19px; margin-top: 8px; }
  .person-hero .btns { order: 5; margin-bottom: 36px; }
  .person-hero .btns .btn { flex: 1 1 auto; }
  .person-hero .strip > div { padding: 18px 0; }
  .person-hero .strip h4 { font-size: 18px; }
  .prose .story { font-size: 20px; line-height: 1.4; }
  .prose .big { font-size: 16px; }
  .facts { padding: 2px 16px; }
  .facts .row { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; }
  .facts .row .v { text-align: right; }
  .id { padding: 16px 14px 18px; }
  .id .v { font-size: 12px; }
  .ids .meta { text-align: left; align-items: flex-start; }
  .sheet-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sheet-head .meta { text-align: left; align-items: flex-start; }
  .figs.teaser { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .figs.teaser::-webkit-scrollbar { display: none; }
  .figs.teaser .fig { flex: 0 0 72%; scroll-snap-align: start; }
  .figs.teaser .fig.wide { flex-basis: 84%; }
  .figs.teaser .fig.wide a { aspect-ratio: 3 / 4; height: auto; }
  .fbottom { flex-direction: column; gap: 10px; }
  .idgrid { grid-template-columns: 1fr 1fr; }
  .id:last-child { grid-column: 1 / -1; }
  .figs { grid-template-columns: 1fr; }
  .fig.wide { grid-column: auto; }
  .fig.wide a { aspect-ratio: 3 / 2; height: auto; }
  .page-hero.has-photo { min-height: 0; padding-top: 262px; padding-bottom: 40px; }
  .page-hero.has-photo .photo { inset: 0 0 auto 0; height: 300px; mask-image: linear-gradient(180deg, #000 50%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%); }
  .page-hero.has-photo .photo img { opacity: 1; object-position: 50% 40%; }
  .page-hero.has-photo .photo::after { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 40%, rgba(0,0,0,.2)); }
  .page-hero.has-photo h1 { font-size: clamp(30px, 9vw, 38px); }
  .page-hero { padding-top: 110px; }
  .carousel-sec { padding: 8px 0 64px; }
  :root { --sw: 86vw; --fh: 54vh; }
  .track { gap: 14px; }
  .slide .frame { min-height: 260px; }
  .slide figcaption { font-size: 13px; }
  .ctrl { flex-direction: column; align-items: flex-start; gap: 16px; }
  .th { width: 40px; height: 40px; }
  .para { grid-template-columns: 36px minmax(0, 1fr); }
  .para p { font-size: 17px; }
  .para:first-child p { font-size: 18px; }
  .pull, .close, .seam { margin-left: 0; }
  .story-cta { padding: 72px 0; min-height: 0; }
  .story-page { padding-top: 48px; }
}
