/* Rima Krivickienė — portfolio
   Editorial grid (paper, ink, vermilion) + soft rounded display type and blurred hover backgrounds. */

:root {
  --paper: #F7F5F0;
  --paper-2: #EFECE4;
  --ink: #141414;
  --ink-2: #55524C;
  --rule: #E0DCD2;
  --accent: #E8553C;
  --on-accent: #FFFFFF;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --round: "M PLUS Rounded 1c", "Inter", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141413; --paper-2: #1E1D1B; --ink: #F2EFE8; --ink-2: #A8A39A; --rule: #2E2C29;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141413; --paper-2: #1E1D1B; --ink: #F2EFE8; --ink-2: #A8A39A; --rule: #2E2C29;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(44px, 8vw, 112px); }
h2 { font-size: clamp(34px, 5vw, 64px); }
h3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-style: italic; }
.display { font-family: var(--round); font-weight: 800; letter-spacing: -.035em; line-height: .92; }
.mono, .label { font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.label { color: var(--ink-2); }
.lede { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; max-width: 38ch; }
.muted { color: var(--ink-2); }
.accent { color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-family: var(--round); font-weight: 800; font-size: 19px; text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: clamp(14px, 2.2vw, 30px); align-items: center; }
.nav a { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px; background: var(--accent); transition: right .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.nav a sup { color: var(--accent); font-size: 9px; margin-right: 3px; }
.theme-toggle, .menu-toggle { background: none; border: 1px solid var(--rule); color: var(--ink); border-radius: 999px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--ink); }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { font-size: 15px; padding: 14px 0; width: 100%; border-bottom: 1px solid var(--rule); }
  .nav a::after { display: none; }
}

/* ---------- sections ---------- */
section { padding: clamp(64px, 10vw, 140px) 0; border-top: 1px solid var(--rule); }
section.first { border-top: 0; }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .num { grid-column: span 2; font-family: var(--mono); font-size: 13px; color: var(--accent); }
.sec-head h2 { grid-column: span 7; }
.sec-head p { grid-column: span 3; color: var(--ink-2); font-size: 15px; margin: 0; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; gap: 12px; } .sec-head > * { grid-column: auto !important; } }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-12 { grid-template-columns: 1fr; } .grid-12 > * { grid-column: auto !important; } }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); border-top: 0; }
.hero .grid-12 { align-items: end; }
.hero-text { grid-column: span 8; }
.hero-photo { grid-column: 10 / span 3; }
.hero .display { font-size: clamp(56px, 11.5vw, 168px); margin: 18px 0 28px; }
.hero .display .line { display: block; }
.hero .display .dot { color: var(--accent); }
.hero-photo figure { margin: 0; position: relative; }
.hero-photo img { border-radius: 14px; width: 100%; height: auto; filter: saturate(.92); }
.hero-photo figcaption { margin-top: 10px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3DBE6E; box-shadow: 0 0 0 4px color-mix(in srgb, #3DBE6E 25%, transparent); }
@media (max-width: 860px) { .hero-photo { max-width: 260px; order: -1; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; transition: .3s var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--accent); }

/* ---------- blurred hover background (project list) ---------- */
.hover-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .6s var(--ease); }
.hover-bg img { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); max-width: none; object-fit: cover; filter: blur(46px) saturate(1.3); opacity: 0; transform: scale(1.08); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.hover-bg img.on { opacity: .55; transform: scale(1); }
.hover-bg.on { opacity: 1; }
body.bg-active { background: transparent; }
body.bg-active::before { content: ""; position: fixed; inset: 0; z-index: -2; background: var(--paper); }

.project-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.project-list li { border-bottom: 1px solid var(--rule); }
.project-list a { display: grid; grid-template-columns: 60px 1fr auto 120px; gap: 24px; align-items: baseline; padding: 26px 0; text-decoration: none; transition: padding .45s var(--ease), color .3s; }
.project-list .n { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.project-list .t { font-family: var(--round); font-weight: 800; font-size: clamp(30px, 4.6vw, 64px); letter-spacing: -.03em; line-height: 1; }
.project-list .d { font-size: 15px; color: var(--ink-2); max-width: 34ch; }
.project-list .y { font-family: var(--mono); font-size: 13px; text-align: right; }
.project-list .thumb { display: none; }
.project-list a:hover { padding-left: 18px; }
.project-list a:hover .t { color: var(--accent); }
@media (max-width: 860px) {
  .project-list a { grid-template-columns: 1fr auto; gap: 6px 16px; padding: 22px 0; }
  .project-list .n { grid-column: 1; } .project-list .y { grid-column: 2; grid-row: 1; }
  .project-list .t, .project-list .d { grid-column: 1 / -1; }
  .project-list .thumb { display: block; grid-column: 1 / -1; border-radius: 12px; aspect-ratio: 16/9; object-fit: cover; margin-top: 10px; }
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.stat { padding: 26px 20px 8px 0; border-right: 1px solid var(--rule); }
.stat + .stat { padding-left: 20px; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--round); font-weight: 800; font-size: clamp(34px, 4vw, 56px); letter-spacing: -.03em; line-height: 1; margin-bottom: 10px; }
.stat span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } .stat { border-right: 0; border-bottom: 1px solid var(--rule); padding: 20px 0 !important; } }

/* ---------- cards ---------- */
.card { display: flex; flex-direction: column; text-decoration: none; }
.card .media { position: relative; overflow: hidden; border-radius: 16px; background: var(--paper-2); aspect-ratio: 16/10; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .media img { transform: scale(1.035); }
.card .meta { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 16px; padding: 0; list-style: none; }
.tags li { font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink-2); }
.links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: auto; }

.feature { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; padding: clamp(28px, 4vw, 48px) 0; border-top: 1px solid var(--rule); }
.feature:first-of-type { border-top: 1px solid var(--ink); }
.feature .media { grid-column: span 7; border-radius: 18px; overflow: hidden; background: var(--paper-2); }
.feature .media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .9s var(--ease); }
.feature:hover .media img { transform: scale(1.03); }
.feature .body { grid-column: span 5; }
.feature.flip .media { order: 2; }
.feature .body h3 { font-family: var(--round); font-weight: 800; font-size: clamp(34px, 4vw, 56px); letter-spacing: -.03em; margin: 12px 0 14px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature > * { grid-column: auto !important; } .feature.flip .media { order: 0; } }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; margin-top: 56px; }
@media (max-width: 960px) { .cards-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards-3 { grid-template-columns: 1fr; } }

/* ---------- case study ---------- */
.case-hero { padding-bottom: 40px; }
.case-hero .display { font-size: clamp(52px, 10vw, 140px); margin: 18px 0 24px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); margin-top: 40px; }
.facts > div { padding: 16px 16px 16px 0; border-right: 1px solid var(--rule); }
.facts > div + div { padding-left: 16px; }
.facts > div:last-child { border-right: 0; }
.facts dt { margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 15px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div { border-right: 0; border-bottom: 1px solid var(--rule); padding-left: 0 !important; } }
.cover { border-radius: 20px; overflow: hidden; background: var(--paper-2); }
.cover img { width: 100%; }
.prose { grid-column: 4 / span 7; font-size: 18px; }
.prose h3 { margin: 1.6em 0 .5em; }
.prose ul { padding-left: 1.1em; } .prose li { margin-bottom: .45em; }
.side-label { grid-column: span 3; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 24px; }
.table th, .table td { text-align: left; padding: 11px 10px 11px 0; border-bottom: 1px solid var(--rule); }
.table th { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); font-weight: 400; }
.table td:not(:first-child), .table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.best td { color: var(--accent); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 14px; width: 100%; background: var(--paper-2); border: 1px solid var(--rule); }
.gallery figcaption { margin-top: 8px; }
.gallery .wide { grid-column: 1 / -1; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }
.next-case { display: flex; justify-content: space-between; align-items: end; gap: 24px; text-decoration: none; padding: 40px 0; border-top: 1px solid var(--ink); }
.next-case .display { font-size: clamp(40px, 7vw, 96px); transition: color .3s; }
.next-case:hover .display { color: var(--accent); }
.video { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- music page ---------- */
.release { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; padding: clamp(32px, 5vw, 64px) 0; border-top: 1px solid var(--rule); }
.release .media { grid-column: span 6; }
.release .media img { border-radius: 16px; width: 100%; }
.release .body { grid-column: 8 / span 5; }
.release:nth-of-type(even) .media { order: 2; grid-column: 7 / span 6; }
.release:nth-of-type(even) .body { grid-column: 1 / span 5; }
.release .body h3 { font-family: var(--round); font-weight: 800; font-size: clamp(32px, 3.6vw, 50px); letter-spacing: -.03em; margin: 10px 0 14px; }
.release ul { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--rule); }
.release li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.release li span:first-child { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--ink-2); padding-top: 2px; }
@media (max-width: 860px) { .release { grid-template-columns: 1fr; } .release > * { grid-column: auto !important; order: 0 !important; } }

.merch { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.merch figure { margin: 0; }
.merch img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; background: #fff; }
.merch figcaption { margin-top: 8px; }
@media (max-width: 760px) { .merch { grid-template-columns: 1fr 1fr; } }

.photo-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(120px, 16vw, 230px); gap: 12px; }
.photo-grid figure { margin: 0; overflow: hidden; border-radius: 14px; position: relative; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.photo-grid figure:hover img { transform: scale(1.04); }
.photo-grid .banner { background: #000; }
.photo-grid .banner img { object-fit: contain; }   /* promo banner: never crop the logo or line-up */
.photo-grid .a { grid-column: span 4; grid-row: span 2; }
.photo-grid .b { grid-column: span 2; grid-row: span 2; }
.photo-grid .c { grid-column: span 2; }
.photo-grid .d { grid-column: span 3; grid-row: span 2; }
@media (max-width: 760px) { .photo-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .photo-grid figure { grid-column: span 1 !important; grid-row: span 1 !important; } .photo-grid .a { grid-column: span 2 !important; grid-row: span 2 !important; } }
.credit { margin-top: 12px; }

.roles { border-top: 1px solid var(--ink); }
.role { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.role .when { grid-column: span 3; }
.role h3 { grid-column: span 4; font-size: clamp(22px, 2.2vw, 30px); }
.role p { grid-column: span 5; margin: 0; color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) { .role { grid-template-columns: 1fr; gap: 8px; } .role > * { grid-column: auto !important; } }

/* ---------- about ---------- */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.skills h4 { margin: 0 0 10px; }
@media (max-width: 760px) { .skills { grid-template-columns: 1fr; } }
.why { list-style: none; padding: 0; margin: 0; counter-reset: why; border-top: 1px solid var(--ink); }
.why li { counter-increment: why; display: grid; grid-template-columns: 60px 1fr 1.4fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.why li::before { content: "0" counter(why); font-family: var(--mono); font-size: 13px; color: var(--accent); }
.why h3 { font-size: clamp(22px, 2.2vw, 30px); }
.why p { margin: 0; color: var(--ink-2); }
@media (max-width: 760px) { .why li { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- contact ---------- */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink-2); border-radius: 0; padding: 10px 0; outline: none; transition: border-color .3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { font-family: var(--mono); font-size: 12.5px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; transition: .25s var(--ease); }
.chips input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; font-size: 15px; }
.form-status.ok { color: #2E9D5B; } .form-status.err { color: var(--accent); }
.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact-list a { text-decoration: none; } .contact-list a:hover { color: var(--accent); }

/* ---------- big CTA + footer ---------- */
.cta { text-align: left; }
.cta a.display { display: inline-block; font-size: clamp(56px, 12vw, 180px); text-decoration: none; transition: color .3s; }
.cta a.display:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer a { text-decoration: none; } .site-footer a:hover { color: var(--accent); }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* custom cursor (desktop only) */
.cursor { position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); pointer-events: none; z-index: 1000; transform: translate(-50%, -50%); transition: width .25s var(--ease), height .25s var(--ease), background-color .25s, opacity .25s; mix-blend-mode: normal; opacity: 0; }
.cursor.on { opacity: 1; }
.cursor.big { width: 54px; height: 54px; background: color-mix(in srgb, var(--accent) 22%, transparent); border: 1px solid var(--accent); }
.cursor.press { width: 6px; height: 6px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* video stills strip */
.stills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 8px 0 20px; }
.stills.three { grid-template-columns: repeat(3, 1fr); }
.stills figure { margin: 0; }
.stills img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
@media (max-width: 700px) { .stills, .stills.three { grid-template-columns: 1fr 1fr; } .stills.three figure:first-child { grid-column: 1 / -1; } .stills.three figure:first-child img { aspect-ratio: 16/9; } }

/* press list */
.press { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
.press a { display: grid; grid-template-columns: 110px 1fr 160px 24px; gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: padding .4s var(--ease); }
.press a:hover { padding-left: 12px; }
.press a:hover .ttl { color: var(--accent); }
.press .ttl { font-family: var(--serif); font-size: clamp(19px, 1.8vw, 24px); line-height: 1.25; }
.press .src { text-align: right; }
@media (max-width: 760px) { .press a { grid-template-columns: 1fr auto; gap: 6px 12px; } .press .ttl { grid-column: 1 / -1; grid-row: 2; } .press .src { text-align: left; } .press a > span:last-child { display: none; } }

/* concerts timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.stack { display: grid; gap: 12px; }
.stack figure { margin: 0; } .stack img { border-radius: 14px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.stack figcaption { margin-top: 8px; }
.sub-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: end; margin: clamp(56px, 7vw, 96px) 0 28px; padding-top: 28px; border-top: 1px solid var(--rule); scroll-margin-top: 80px; }
.sub-head h3 { grid-column: 3 / span 6; font-family: var(--round); font-weight: 800; font-size: clamp(32px, 4vw, 56px); letter-spacing: -.03em; }
.sub-head p { grid-column: span 4; margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .sub-head { grid-template-columns: 1fr; } .sub-head > * { grid-column: auto !important; } .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* browser-frame screenshots */
.feature .media.browser { position: relative; padding-top: 28px; background: var(--paper-2); border: 1px solid var(--rule); box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); }
.feature .media.browser::before { content: ""; position: absolute; top: 10px; left: 14px; width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; box-shadow: 15px 0 #FEBC2E, 30px 0 #28C840; }
.feature .media.browser img { border-radius: 0; }
.feature .media.browser video { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }   /* scrolling site recording */
[id^="web-"] { scroll-margin-top: 80px; }
section[id] { scroll-margin-top: 40px; }

/* Chills + Thrills typographic card */
.feature .media.wordmark { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; aspect-ratio: 16/10; text-decoration: none; background: #111; color: #F7F5F0; position: relative; overflow: hidden; }
.feature .media.wordmark::before { content: ""; position: absolute; inset: -30%; background: radial-gradient(circle at 30% 30%, rgba(232,85,60,.45), transparent 45%), radial-gradient(circle at 75% 70%, rgba(120,90,255,.35), transparent 45%); filter: blur(30px); transition: transform 1.2s var(--ease); }
.feature:hover .media.wordmark::before { transform: rotate(25deg) scale(1.1); }
.wm-top { position: relative; font-family: var(--sans); font-weight: 600; font-size: clamp(30px, 4.4vw, 60px); letter-spacing: .12em; text-transform: uppercase; }
.wm-top i { font-style: normal; color: var(--accent); }
.wm-sub, .wm-tag { position: relative; font-family: var(--mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; }
.wm-tag { position: absolute; bottom: 16px; font-size: 10.5px; letter-spacing: .08em; opacity: .6; }

/* presentation slider */
.deck { position: relative; border-radius: 20px; overflow: hidden; background: #0d0d0d; box-shadow: 0 24px 50px -30px rgba(0,0,0,.45); }
.deck-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.deck-track::-webkit-scrollbar { display: none; }
.deck-track img { flex: 0 0 100%; width: 100%; aspect-ratio: 16/9; object-fit: contain; scroll-snap-align: center; background: #0d0d0d; }
.deck-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; background: #0d0d0d; color: #F2EFE8; }
.deck-count { font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; }
.deck-count b { color: var(--accent); font-weight: 500; }
.deck-btns { display: flex; gap: 8px; }
.deck-btns button { width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #F2EFE8; font-size: 16px; cursor: pointer; display: grid; place-items: center; transition: .25s var(--ease); }
.deck-btns button:hover { background: var(--accent); border-color: var(--accent); }
.deck-btns button:disabled { opacity: .3; pointer-events: none; }
.deck-progress { position: absolute; left: 0; bottom: 62px; height: 3px; background: var(--accent); transition: width .4s var(--ease); }
.deck:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; }
.deck:fullscreen .deck-track img { aspect-ratio: auto; height: calc(100vh - 64px); }
.deck:fullscreen .deck-progress { bottom: 62px; }
.deck-caption { margin-top: 10px; }

/* ---------- gatefold vinyl animation ---------- */
.lp { container-type: inline-size; position: relative; border-radius: 16px; overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, #EFECE4, #DCD7CC); }
:root[data-theme="dark"] .lp { background: radial-gradient(120% 90% at 50% 20%, #26241F, #151412); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lp { background: radial-gradient(120% 90% at 50% 20%, #26241F, #151412); } }
.lp-stage { --P: 30cqw; position: relative; height: calc(var(--P) * 1.45 + 34px); perspective: 2200px; }
@container (max-width: 520px) { .lp-stage { --P: 34cqw; } }
.lp-rig, .lp-sleeve, .lp-board, .lp-disc { position: absolute; transform-style: preserve-3d; }
.lp-rig { left: 50%; top: calc(50% - 12px); width: 0; height: 0; }
.lp-sleeve { left: calc(var(--P) / -2); top: calc(var(--P) / -2); width: var(--P); height: var(--P); }
.lp-board { inset: 0; }
.lp-face { position: absolute; inset: 0; background: center / cover no-repeat; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset; }
.lp-face.rear { transform: rotateY(180deg); }
.lp-board.back { transform: translateZ(-1px); }
.lp-board.front { transform-origin: 0 50%; transform: translateZ(1px); }
.lp-shadow { position: absolute; left: calc(var(--P) / -2); top: calc(var(--P) / 2 + var(--P) * .05); width: var(--P); height: calc(var(--P) * .08); background: radial-gradient(closest-side, rgba(0,0,0,.35), transparent); filter: blur(6px); }
.lp-disc { left: calc(var(--P) * -.47); top: calc(var(--P) * -.47); width: calc(var(--P) * .94); height: calc(var(--P) * .94); transform: translateZ(-3px); opacity: 0; }
.lp-vinyl { position: absolute; inset: 0; border-radius: 50%;
  background:
    conic-gradient(from 20deg, rgba(255,255,255,.0) 0deg, rgba(255,255,255,.16) 30deg, rgba(255,255,255,0) 70deg, rgba(255,255,255,0) 180deg, rgba(255,255,255,.12) 210deg, rgba(255,255,255,0) 250deg),
    repeating-radial-gradient(circle, #0b0b0b 0 1.2px, #1b1b1b 1.2px 2.4px), #111;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.lp-label { position: absolute; inset: 32%; border-radius: 50%; background: center / 107% no-repeat; box-shadow: 0 0 0 2px #0b0b0b; }
.lp-label::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7%; height: 7%; margin: -3.5% 0 0 -3.5%; border-radius: 50%; background: #DCD7CC; }
.lp-spin { position: absolute; inset: 0; }
.lp-hint { position: absolute; left: 16px; bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.lp-replay { position: absolute; right: 12px; bottom: 10px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: none; border: 1px solid var(--rule); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.lp-replay:hover { border-color: var(--accent); color: var(--accent); }

/* timeline: 16s — front → back → open gatefold → vinyl rolls out */
.lp.play .lp-rig { animation: lp-rig 16s var(--ease) infinite; }
.lp.play .lp-sleeve { animation: lp-sleeve 16s var(--ease) infinite; }
.lp.play .lp-board.front { animation: lp-open 16s var(--ease) infinite; }
.lp.play .lp-disc { animation: lp-disc 16s var(--ease) infinite; }
.lp.play .lp-spin { animation: lp-spin 16s linear infinite; }
.lp.play .lp-stage { animation: lp-fade 16s linear infinite; }
@keyframes lp-sleeve {
  0%, 10%  { transform: rotateY(0) rotateX(0); }
  18%, 27% { transform: rotateY(180deg) rotateX(0); }
  35%, 100% { transform: rotateY(360deg) rotateX(0); }
}
@keyframes lp-open {
  0%, 36%  { transform: translateZ(1px) rotateY(0); }
  47%, 100% { transform: translateZ(1px) rotateY(-178deg); }
}
@keyframes lp-rig {
  0%, 36%  { transform: translate(0, 0) scale(1); }
  47%, 55% { transform: translate(calc(var(--P) * .5), 0) scale(1); }
  66%, 100% { transform: translate(calc(var(--P) * .16), 0) scale(.96); }
}
@keyframes lp-disc {
  0%, 46%  { transform: translateZ(-3px) translateX(0); opacity: 0; }
  48%, 55% { transform: translateZ(-3px) translateX(0); opacity: 1; }
  66%, 100% { transform: translateZ(-3px) translateX(calc(var(--P) * .72)); opacity: 1; }
}
@keyframes lp-spin {
  0%, 55%  { transform: rotate(0); }
  66%      { transform: rotate(250deg); }
  100%     { transform: rotate(520deg); }
}
@keyframes lp-fade { 0%, 94% { opacity: 1; } 97% { opacity: 0; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .lp.play * { animation: none !important; }
  .lp .lp-board.front { transform: translateZ(1px) rotateY(-178deg); }
  .lp .lp-rig { transform: translate(calc(var(--P) * .16), 0) scale(.96); }
  .lp .lp-disc { transform: translateZ(-3px) translateX(calc(var(--P) * .72)); opacity: 1; }
}
.lp-video { margin: 0 0 clamp(24px, 4vw, 48px); }
.lp-video video { display: block; width: 100%; aspect-ratio: 16/9; border-radius: 16px; background: #E6E2D8; }
.lp-video figcaption { margin-top: 10px; }

/* read more */
.more { margin: 0 0 6px; }
.more summary { list-style: none; cursor: pointer; display: inline-block; margin-bottom: 4px; }
.more summary::-webkit-details-marker { display: none; }
.more[open] summary .link-arrow { font-size: 0; }
.more[open] summary .link-arrow::after { content: "Read less"; font-size: 13px; }
.more p { animation: more-in .45s var(--ease); }
@keyframes more-in { from { opacity: 0; transform: translateY(-6px); } }
.lp[data-vinyl="turquoise"] .lp-vinyl {
  background:
    conic-gradient(from 20deg, rgba(255,255,255,0) 0deg, rgba(255,255,255,.20) 30deg, rgba(255,255,255,0) 70deg, rgba(255,255,255,0) 180deg, rgba(255,255,255,.14) 210deg, rgba(255,255,255,0) 250deg),
    repeating-radial-gradient(circle, rgba(0,0,0,.07) 0 1.2px, rgba(255,255,255,.04) 1.2px 2.4px),
    url("../assets/vinyl/nnz/marble.jpg") center / cover no-repeat;
}

/* Senos naujienos: newspaper inner sleeve comes out, hovers, flips, then the record slides out (20s) */
.lp-inner { position: absolute; left: calc(var(--P) * -.475); top: calc(var(--P) * -.475); width: calc(var(--P) * .95); height: calc(var(--P) * .95); transform-style: preserve-3d; transform: translate3d(0,0,-3px); visibility: hidden; }
.lp-inner .lp-face { box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); }
.lp.sn.play .lp-rig { animation: sn-rig 20s var(--ease) infinite; }
.lp.sn.play .lp-sleeve { animation: sn-sleeve 20s var(--ease) infinite; }
.lp.sn.play .lp-board.front { animation: sn-open 20s var(--ease) infinite; }
.lp.sn.play .lp-inner { animation: sn-inner 20s var(--ease) infinite; }
.lp.sn.play .lp-disc { animation: sn-disc 20s var(--ease) infinite; }
.lp.sn.play .lp-spin { animation: sn-spin 20s linear infinite; }
.lp.sn.play .lp-stage { animation: sn-fade 20s linear infinite; }
@keyframes sn-sleeve { 0%, 8% { transform: rotateY(0); } 14%, 20% { transform: rotateY(180deg); } 26%, 100% { transform: rotateY(360deg); } }
@keyframes sn-open { 0%, 27% { transform: translateZ(1px) rotateY(0); } 35%, 100% { transform: translateZ(1px) rotateY(-180deg); } }
@keyframes sn-rig { 0%, 27% { transform: translate(0,0) scale(1); } 35%, 37% { transform: translate(calc(var(--P) * .5), 0) scale(1); } 42%, 48% { transform: translate(calc(var(--P) * .22), 0) scale(.8); } 54%, 100% { transform: translate(calc(var(--P) * .5), 0) scale(1); } }
@keyframes sn-inner {
  0%, 36%  { transform: translate3d(0,0,-3px) rotateY(0); visibility: hidden; }
  37%      { transform: translate3d(0,0,-3px) rotateY(0); visibility: visible; }
  43%      { transform: translate3d(calc(var(--P) * 1.0),0,-3px) rotateY(0); visibility: visible; }
  47%      { transform: translate3d(calc(var(--P) * 1.0),0,90px) rotateY(0); visibility: visible; }
  53%, 58% { transform: translate3d(calc(var(--P) * -.5),0,90px) rotateY(0); visibility: visible; }
  64%, 68% { transform: translate3d(calc(var(--P) * -.5),0,90px) rotateY(180deg); visibility: visible; }
  74%, 100% { transform: translate3d(calc(var(--P) * -.5),0,90px) rotateY(360deg); visibility: visible; }
}
@keyframes sn-disc {
  0%, 74%  { transform: translate3d(calc(var(--P) * -.5),0,84px); opacity: 0; }
  75%      { transform: translate3d(calc(var(--P) * -.5),0,84px); opacity: 1; }
  84%, 100% { transform: translate3d(calc(var(--P) * .22),0,84px); opacity: 1; }
}
@keyframes sn-spin { 0%, 75% { transform: rotate(0); } 84% { transform: rotate(250deg); } 100% { transform: rotate(460deg); } }
@keyframes sn-fade { 0% { opacity: 0; } 2.5%, 95% { opacity: 1; } 98.5%, 100% { opacity: 0; } }

/* presentation title slides: show the whole 16:9 slide, no cropping */
.feature .media.slide img, .carousel .card .media img { aspect-ratio: 16/9; }
.carousel .card .media { aspect-ratio: 16/9; }

/* project carousel (AI Engineering page) */
.carousel { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); }
.carousel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.carousel-head .label { margin: 0; }
.carousel-btns { display: flex; gap: 8px; }
.carousel-btns button { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font-size: 17px; cursor: pointer; display: grid; place-items: center; transition: .25s var(--ease); }
.carousel-btns button:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.carousel-btns button:disabled { opacity: .3; pointer-events: none; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .card { scroll-snap-align: start; }
@media (max-width: 860px) { .carousel-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 560px) { .carousel-track { grid-auto-columns: 85%; gap: 16px; } }
