/* ==========================================================================
   paskui.lt — stylesheet
   Design tokens live at the top. Change these to re-theme the whole site.
   ========================================================================== */

:root {
  /* -- color: light mode -- */
  --bg: #ECEAE3;
  --bg-raised: #F7F6F2;
  --ink: #14171A;
  --ink-soft: #4B4E49;
  --muted: #86897F;
  --line: rgba(20, 23, 26, 0.12);
  --accent: #CFEE2E;
  --accent-ink: #1A1E12;
  --shadow: rgba(20, 23, 26, 0.08);

  /* -- color: photo placeholder gradients (shared vars, tuned per theme) -- */
  --ph-sport-1: #2B2F27;
  --ph-sport-2: #6B7A4A;
  --ph-dogs-1: #3B2E22;
  --ph-dogs-2: #B08A4E;
  --ph-family-1: #33302C;
  --ph-family-2: #C9A98A;

  /* -- type -- */
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* -- layout -- */
  --container: 1360px;
  --radius: 2px;
  --nav-h: 76px;

  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #0F1113;
  --bg-raised: #17191C;
  --ink: #EFEFE9;
  --ink-soft: #B7B9B1;
  --muted: #71746D;
  --line: rgba(239, 239, 233, 0.12);
  --accent: #D6F23C;
  --accent-ink: #0F1113;
  --shadow: rgba(0, 0, 0, 0.35);

  --ph-sport-1: #1A1D17;
  --ph-sport-2: #45502E;
  --ph-dogs-1: #241A12;
  --ph-dogs-2: #7A5B2B;
  --ph-family-1: #201E1B;
  --ph-family-2: #7A6350;

  color-scheme: dark;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 14px;
}

.accent-text { color: var(--ink); background: var(--accent); padding: 0 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .grain { opacity: 0.06; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
html[data-theme="dark"] .btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: translateY(-2px); background: var(--accent); color: var(--accent-ink); }
.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--block { width: 100%; padding: 17px 28px; }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  position: relative;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.nav__logo::after {
  content: attr(data-text);
  position: absolute;
  left: 3px; top: 3px;
  color: var(--accent);
  z-index: -1;
  opacity: 0.9;
}
.nav__links {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
}
.nav__link { position: relative; font-size: 14px; padding: 6px 2px; }
.nav__link span { position: relative; z-index: 1; }
.nav__link::before {
  content: "";
  position: absolute;
  left: -4px; right: -4px; bottom: 2px;
  height: 8px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 0;
}
.nav__link:hover::before { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.theme-toggle:hover { border-color: var(--ink); transform: rotate(20deg); }
.theme-toggle .icon--moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon--sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon--moon { display: block; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Placeholder photo blocks
   ========================================================================== */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-size: 220% 220%;
  background-position: center;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 6px);
  mix-blend-mode: overlay;
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), inset 0 -60px 80px rgba(0,0,0,0.28);
}
.ph__label {
  position: relative;
  z-index: 2;
  margin: 16px;
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.35);
  border: 1px dashed rgba(255,255,255,0.5);
  border-radius: 2px;
}

.ph--sport   { background-image: linear-gradient(135deg, var(--ph-sport-1), var(--ph-sport-2)); }
.ph--dogs    { background-image: linear-gradient(135deg, var(--ph-dogs-1), var(--ph-dogs-2)); }
.ph--family  { background-image: linear-gradient(135deg, var(--ph-family-1), var(--ph-family-2)); }
.ph--portrait{ background-image: linear-gradient(160deg, var(--ph-family-2), var(--ph-sport-1)); }

.ph--alt1 { background-image: linear-gradient(200deg, var(--ph-sport-2), var(--ph-dogs-1)); }
.ph--alt2 { background-image: linear-gradient(70deg, var(--ph-dogs-2), var(--ph-family-1)); }
.ph--alt3 { background-image: linear-gradient(160deg, var(--ph-family-1), var(--ph-sport-2)); }
.ph--alt4 { background-image: linear-gradient(20deg, var(--ph-sport-1), var(--ph-dogs-2)); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10,11,10,0.15) 0%, rgba(10,11,10,0.15) 40%, rgba(10,11,10,0.75) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(20px, 5vw, 56px) clamp(56px, 9vw, 96px);
  color: #F4F4EF;
  max-width: 1000px;
}
.hero__content .eyebrow { color: #D9DBCF; }
.hero__title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(64px, 15vw, 160px);
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  width: fit-content;
}
.hero__title::after {
  content: attr(data-text);
  position: absolute;
  left: 8px; top: 8px;
  color: var(--accent);
  z-index: -1;
  animation: chase 6s ease-in-out infinite;
}
@keyframes chase {
  0%, 100% { transform: translate(8px, 8px); }
  50% { transform: translate(14px, 12px); }
}
.hero__tagline {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 500;
  max-width: 22ch;
  margin-bottom: 10px;
}
.hero__joke { font-size: 14px; color: #D9DBCF; margin-bottom: 34px; }
.hero__joke .accent-text { color: var(--accent-ink); }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__cta .btn--primary { background: var(--accent); color: var(--accent-ink); }
.hero__cta .btn--primary:hover { background: #fff; }
.hero__cta .btn--ghost { border-color: rgba(244,244,239,0.5); color: #F4F4EF; }
.hero__cta .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.hero__scroll {
  position: absolute;
  right: clamp(20px, 5vw, 56px);
  bottom: 34px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #F4F4EF;
}
.hero__scroll-line { width: 1px; height: 46px; background: rgba(244,244,239,0.5); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--accent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
  overflow: hidden;
  padding: 16px 0;
}
.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.marquee__track span { padding: 0 14px; }
.marquee__track .dot { color: var(--accent); padding: 0 8px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Sections (generic)
   ========================================================================== */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head--center { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.005em;
}
.section__sub { margin-top: 18px; color: var(--ink-soft); font-size: 17px; }

/* ==========================================================================
   Filters
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.filter__count { font-size: 10px; color: var(--muted); }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.filter.is-active .filter__count { color: var(--accent-ink); opacity: 0.6; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.gallery__item {
  position: relative;
  grid-column: span 1;
  grid-row: span 1;
  overflow: hidden;
  border-radius: var(--radius);
  text-align: left;
}
.gallery__item.span-wide { grid-column: span 2; }
.gallery__item.span-tall { grid-row: span 2; }
.gallery__item .ph { transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.gallery__item:hover .ph { transform: scale(1.06); }
.gallery__item.is-hidden { display: none; }

.gallery__item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.gallery__item:hover::after { opacity: 1; }

.gallery__item .gitem-meta {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 3;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.gallery__item:hover .gitem-meta { opacity: 1; transform: translateY(0); }
.gitem-meta__tag { display: block; font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); }
.gitem-meta__title { display: block; font-size: 16px; font-weight: 600; margin-top: 2px; }

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item.span-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery__item.span-wide, .gallery__item.span-tall { grid-column: span 1; grid-row: span 1; }
}

/* ==========================================================================
   About
   ========================================================================== */
.section--about { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.about__media { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.about__lead { font-size: clamp(18px, 2vw, 22px); font-weight: 500; margin-bottom: 18px; }
.about__body { color: var(--ink-soft); font-size: 16px; margin-bottom: 40px; }
.about__stats { display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 4px; border-left: 2px solid var(--accent); padding-left: 14px; }
.stat__num { font-family: var(--font-display); font-size: 34px; line-height: 1; }
.stat__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: clamp(32px, 6vw, 72px);
}
.contact__form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.field input, .field textarea, .field select {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  background: var(--bg);
}
.field textarea { resize: vertical; min-height: 110px; }
.contact__note { color: var(--muted); font-size: 12.5px; margin-top: 4px; }

.contact__side { display: flex; flex-direction: column; gap: 40px; }
.contact__block .eyebrow { margin-bottom: 12px; }
.contact__big-link { display: block; font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; padding: 6px 0; border-bottom: 1px solid var(--line); }
.contact__big-link:hover { color: var(--ink); border-color: var(--accent); }
.contact__text { color: var(--ink-soft); }
.social li { border-bottom: 1px solid var(--line); }
.social a { display: flex; justify-content: space-between; padding: 12px 2px; font-size: 15px; }
.social a span { color: var(--muted); transition: transform 0.25s ease, color 0.25s ease; }
.social a:hover span { color: var(--accent); transform: translate(2px,-2px); }

@media (max-width: 800px) {
  .contact { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__logo { position: relative; font-family: var(--font-display); font-size: 20px; }
.footer__logo::after { content: attr(data-text); position: absolute; left: 2px; top: 2px; color: var(--accent); z-index: -1; }
.footer__meta { color: var(--muted); font-size: 12px; }
.footer__back { font-size: 12px; color: var(--muted); }
.footer__back:hover { color: var(--ink); }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(10,11,10,0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__inner { width: 100%; max-width: 900px; }
.lightbox__media { width: 100%; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; }
.lightbox__close {
  position: absolute; top: 24px; right: 24px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  display: grid; place-items: center;
}
.lightbox__close:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lightbox__caption { display: flex; justify-content: space-between; color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.lightbox__title { color: #fff; font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px); letter-spacing: 0.01em; }

/* ==========================================================================
   Mobile nav
   ========================================================================== */
@media (max-width: 760px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav__link { padding: 18px clamp(20px, 5vw, 56px); border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__link::before { display: none; }
}
