/* Anda Viška — portfolio. Plain CSS, no build step. */

@font-face { font-family: "Bricolage"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-display: swap; font-weight: 100 1000;
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-display: swap; font-weight: 100 1000;
  src: url("../fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --ground: #FBF8FC;
  --ink: #2E1A35;
  --ink-2: #4A3652;
  --muted: #5E4A66;
  --line: #E6DCEA;
  --white: #FFFFFF;
  --berry: #8E3B6E;
  --berry-dark: #6A2A52;
  --pink: #F7D6E2;
  --lilac: #E4DBF6;
  --mint: #D3EEE2;
  --butter: #FCE3A8;
  --display: "Bricolage", "Trebuchet MS", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 24px);
  --radius-l: 28px;
  --radius-m: 20px;
  --radius-s: 14px;
  /* per-project tint, overridden on each project page */
  --tint: var(--pink);
  --tint-soft: #FCEEF3;
  --accent: var(--berry);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--berry-dark); }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 252, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 20px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo-dots { position: relative; width: 14px; height: 14px; border-radius: 50%; background: #F2A7C3; }
.logo-dots::after { content: ""; position: absolute; left: 10px; top: 0; width: 14px; height: 14px; border-radius: 50%; background: #B9A4EC; mix-blend-mode: multiply; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 28px); font-weight: 500; font-size: 16px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--berry); }
.nav .btn { color: var(--white); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--berry-dark); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); min-height: 44px; padding: 10px 20px; }
.btn-dark:hover { background: #4A2E55; color: var(--white); }
.btn-ghost { background: var(--white); color: var(--ink); border-color: #D8CCE0; }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 56px); padding-block: clamp(32px, 6vw, 64px) clamp(56px, 8vw, 96px); }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pill { align-self: flex-start; background: var(--lilac); color: #4B2E73; font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: 1.02; letter-spacing: -0.035em; }
.mark { background: linear-gradient(transparent 62%, #F7C9DA 62%); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 540px; }
.hero-art { flex: 1 1 400px; min-width: 0; position: relative; aspect-ratio: 1 / 0.95; max-width: 560px; margin-inline: auto; width: 100%; }
.sticker { position: absolute; width: 54%; aspect-ratio: 1 / 1.1; border-radius: 32px; display: flex; align-items: center; justify-content: center; }
.sticker img { width: 80%; }
.sticker-a { left: 2%; top: 4%; background: var(--pink); transform: rotate(-5deg); box-shadow: 0 22px 40px -26px rgba(142, 59, 110, .55); }
.sticker-b { right: 2%; top: 22%; background: var(--mint); transform: rotate(6deg); box-shadow: 0 22px 40px -26px rgba(46, 120, 90, .55); }
.dot { position: absolute; border-radius: 50%; }
.dot-1 { left: 46%; top: 0; width: 22px; height: 22px; background: var(--butter); }
.dot-2 { left: 8%; bottom: 4%; width: 14px; height: 14px; background: #B9A4EC; }
.dot-3 { right: 6%; bottom: 0; width: 18px; height: 18px; background: #F2A7C3; }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 16px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* ---------- project cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.card { --accent: var(--card-accent); display: flex; flex-direction: column; gap: 16px; background: var(--card-tint); color: var(--ink); text-decoration: none; border-radius: var(--radius-l); padding: 14px 14px 22px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(46, 26, 53, .45); }
.card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; background: rgba(255, 255, 255, .5); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding-inline: 8px; flex: 1; }
.card-kind { font-size: 14px; font-weight: 600; color: var(--card-accent); }
.card-title { font-family: var(--display); font-weight: 750; font-size: 26px; letter-spacing: -0.015em; line-height: 1.15; }
.card-text { color: var(--muted); font-size: 16px; }
.card-more { margin-top: 8px; font-weight: 600; font-size: 15px; color: var(--card-accent); display: inline-flex; align-items: center; gap: 6px; }
.card-more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.card:hover .card-more svg { transform: translateX(3px); }

/* ---------- other art strip ---------- */
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 300px), 1fr)); gap: clamp(10px, 2vw, 16px); }
.art-grid a { display: block; border-radius: var(--radius-s); overflow: hidden; background: var(--white); }
.art-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s ease; }
.art-grid a:hover img { transform: scale(1.04); }

/* ---------- about ---------- */
.about { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-photo { flex: 0 1 380px; min-width: 240px; margin-inline: auto; position: relative; }
.about-photo img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 100%; border: 10px solid var(--white); box-shadow: 0 24px 50px -30px rgba(46, 26, 53, .5); }
.about-photo::before { content: ""; position: absolute; inset: -18px -18px auto auto; width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--lilac); z-index: -1; }
.about-photo::after { content: ""; position: absolute; left: -10px; bottom: 6%; width: 24%; aspect-ratio: 1; border-radius: 50%; background: var(--mint); z-index: -1; }
.about-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-text h2 { font-size: clamp(32px, 4vw, 44px); }
.about-text p { color: var(--ink-2); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.skills li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 500; }
.skills li.tool { background: var(--lilac); border-color: transparent; color: #4B2E73; }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: var(--white); border-radius: 36px; padding: clamp(32px, 6vw, 72px); display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; position: relative; overflow: hidden; }
.contact h2 { font-size: clamp(36px, 5.5vw, 64px); color: var(--white); max-width: 12ch; }
.contact p { color: #D9CDE0; margin-top: 14px; max-width: 420px; }
.contact-links { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.contact-links a { display: inline-flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; font-weight: 500; font-size: 18px; min-height: 44px; word-break: break-word; }
.contact-links a:hover { color: #F7C9DA; }
.contact-links svg { width: 22px; height: 22px; flex: none; color: #F7C9DA; }
.contact-links .btn-primary { background: #F7C9DA; color: var(--ink); justify-content: center; }
.contact-links .btn-primary:hover { background: var(--white); color: var(--ink); }
.contact-links .btn-primary svg { color: var(--ink); }
.contact .bubble { position: absolute; border-radius: 50%; opacity: .9; pointer-events: none; }
.contact .b1 { width: 160px; height: 160px; right: -50px; top: -60px; background: #4A2E55; }
.contact .b2 { width: 70px; height: 70px; right: 120px; top: 40px; background: #5B3E96; opacity: .5; }

/* ---------- footer ---------- */
.site-footer { padding-block: 32px 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* ---------- project page ---------- */
.project-top { background: var(--tint-soft); padding-block: clamp(24px, 4vw, 40px) clamp(48px, 7vw, 80px); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; min-height: 44px; margin-bottom: clamp(16px, 3vw, 28px); }
.back:hover { color: var(--accent); }
.back svg { width: 18px; height: 18px; }
.project-intro { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 56px); align-items: flex-start; }
.project-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.project-text h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1; letter-spacing: -0.035em; }
.project-text .lead { color: var(--ink-2); font-size: clamp(18px, 1.8vw, 21px); max-width: 620px; }
.project-text p { color: var(--muted); max-width: 640px; }
.facts { flex: 0 1 340px; min-width: min(100%, 260px); margin: 0; background: var(--white); border-radius: 24px; padding: 26px 28px; display: grid; gap: 16px; box-shadow: 0 14px 34px -24px rgba(46, 26, 53, .35); }
.facts dt { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.facts dd { margin: 2px 0 0; font-weight: 500; }
.project-cover { margin-top: clamp(32px, 5vw, 56px); }
.project-cover img { width: 100%; border-radius: var(--radius-l); }

.block { padding-block: clamp(40px, 6vw, 72px) 0; }
.block-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; max-width: 720px; }
.block-head h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; }
.block-head p { color: var(--muted); }

.gallery { display: grid; gap: 18px; }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(46%, 300px), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(46%, 220px), 1fr)); }
.g-1 { grid-template-columns: minmax(0, 1fr); }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery a.zoom { display: block; border-radius: var(--radius-m); overflow: hidden; background: var(--tint-soft); cursor: zoom-in; }
.gallery a.zoom img { width: 100%; transition: transform .35s ease; }
.gallery a.zoom:hover img { transform: scale(1.025); }
.gallery.cover-fit a.zoom img { aspect-ratio: var(--ratio, 16 / 9); object-fit: cover; }
.gallery figcaption { font-size: 15px; color: var(--muted); padding-inline: 4px; }

/* transparent assets on a tinted tile */
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); gap: 14px; }
.assets.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.assets.c6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.assets figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.assets a.zoom { display: block; position: relative; aspect-ratio: 1; background: var(--tint-soft); border-radius: var(--radius-m); cursor: zoom-in; transition: background-color .2s ease; }
.assets a.zoom:hover { background: var(--tint); }
.assets img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
.assets figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.assets.big img { inset: 7%; width: 86%; height: 86%; }
.assets.big figcaption { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); }
@media (max-width: 760px) {
  .assets.c6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .assets.c5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assets.big figcaption { font-size: 16px; }
}

.note { margin-top: 22px; background: var(--tint-soft); border-radius: var(--radius-m); padding: 20px 24px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.note p { max-width: 640px; }

.next { margin-top: clamp(56px, 8vw, 96px); }
.next a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--next-tint); color: var(--ink); text-decoration: none; border-radius: var(--radius-l); padding: clamp(22px, 4vw, 32px); transition: transform .2s ease; }
.next a:hover { transform: translateY(-3px); color: var(--ink); }
.next .label { display: flex; flex-direction: column; gap: 6px; flex: 1 1 260px; min-width: 0; }
.next .eyebrow { color: var(--next-accent); }
.next .t { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.025em; line-height: 1.05; }
.next img { width: clamp(160px, 26vw, 300px); border-radius: 18px; aspect-ratio: 16 / 10; object-fit: cover; }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(28, 16, 33, .92); color: var(--white); }
.lightbox::backdrop { background: rgba(28, 16, 33, .92); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 64px 72px 24px; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 12px; background: rgba(255,255,255,.04); }
.lightbox figcaption { color: #E9DFF0; font-size: 15px; text-align: center; }
.lb-btn { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: var(--white); cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox figure { padding: 72px 12px 84px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav .hide-sm { display: none; }
  .site-header .wrap { padding-block: 12px; }
  .logo { font-size: 20px; }
  .contact { border-radius: 28px; }
}
