/* ═══════════════════════════════════════════════════════════════
   KAJA PAVLINIC — PERSONAL WEBSITE
   Design: Editorial, modern, sleek
   ═══════════════════════════════════════════════════════════════ */

/* ── Self-hosted fonts ──────────────────────────────────────── */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('/fonts/rP2Hp2ywxg089UriOZGCGheG.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/nuFiD-vYSZviVYUb_rj3ij__anPXPT7Sh2E-.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/nuFkD-vYSZviVYUb_rj3ij__anPXDTnYgEM86xQ.woff2') format('woff2');
}

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --cream:       #F3EDE3;
  --cream-alt:   #EDE5D8;
  --dark:        #171717;
  --accent:      #C8411B;
  --accent-dim:  rgba(200, 65, 27, 0.12);
  --muted:       #927E72;
  --border:      #DDD5C8;
  --white:       #FCFAF6;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  --nav-h:        72px;
  --max-w:        1320px;
  --px:           clamp(1.25rem, 5vw, 5rem);
  --py:           clamp(4rem, 9vw, 8rem);

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dark);
  background: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Utility ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

.section {
  padding-block: var(--py);
}

.section-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--dark);
}

.accent-label { color: var(--accent); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease-out), color 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: #a83316;
  border-color: #a83316;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(252,250,246,0.4);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-dark:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-full { width: 100%; justify-content: center; }

/* ── Photo placeholders ─────────────────────────────────────── */
.photo-placeholder {
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,0.25);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px dashed rgba(255,255,255,0.12);
}

/* ── Scroll animations ─────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }

/* ══════════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s;
}

.nav.scrolled {
  background: rgba(23, 23, 23, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.lang-toggle {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(252,250,246,0.6);
  border: 1px solid rgba(252,250,246,0.2);
  padding: 0.35rem 0.75rem;
  transition: color 0.2s, border-color 0.2s;
}
.lang-toggle:hover {
  color: var(--white);
  border-color: rgba(252,250,246,0.5);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.h-line {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.hamburger[aria-expanded="true"] .h-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .h-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] .h-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-drawer {
  display: none;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.5rem var(--px) 2rem;
}
.nav-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.nav-drawer a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  display: block;
  transition: color 0.2s;
}
.nav-drawer a:hover { color: var(--accent); }

.nav-drawer.open { display: block; }

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  background: var(--dark);
  color: var(--white);
  min-height: calc(100svh - var(--nav-h));
  margin-top: var(--nav-h);  /* sit below fixed nav */
  display: flex;
  flex-direction: column;
}

/* Two-column grid: text | full-height photo */
.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

/* ── Left: text content ─── */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 5vw, 5rem);
  position: relative;
  z-index: 1;
}

.hero-star {
  display: block;
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.hero-eyebrow {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* Name: "Kaja Pavlinić" small italic + "POPOVIĆ" large bold */
.hero-name {
  display: block;
  margin-bottom: 1.5rem;
  line-height: 1;
}
.hero-name-first {
  /* "Kaja" — the statement */
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6.5vw, 7.5rem);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.92;
  margin-bottom: 0.1em;
}
.hero-name-last {
  /* "Pavlinić Popović" — italic accent */
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0;
  line-height: 1;
}

.hero-rule {
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.hero-desc {
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(252,250,246,0.5);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-line {
  display: block;
  width: 2rem;
  height: 1px;
  background: rgba(146,126,114,0.3);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scroll-anim 2.4s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%   { left: -100%; }
  50%  { left: 0; }
  100% { left: 100%; }
}

/* ── Right: 4:5 portrait photo, centered in column ─── */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem 1.25rem 1rem;
  overflow: hidden;
}


/* Photo wrapper — in front of keywords */
.hero-photo-wrap {
  position: relative;
  width: 96%;
  max-width: 480px;
  flex-shrink: 0;
  z-index: 1;
}

.hero-img,
.hero-photo-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.hero-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.18);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.025);
  border: 1px dashed rgba(255,255,255,0.1);
}

/* Badge — anchored to bottom of photo */
.hero-badge {
  position: absolute;
  bottom: 1.1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(23,23,23,0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.55rem 1rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(252,250,246,0.8);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

/* Mobile background photo (hidden on desktop) */
.hero-mobile-bg {
  display: none;
}

@keyframes kwReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Keyword column — repeating rows behind the photo */
.hero-kw-col {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%);
  animation: kwReveal 1.5s ease-out forwards;
}

.hero-kw-row {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.04;
  white-space: nowrap;
  line-height: 1;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Stats bar ─── */
.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.07);
}

.hero-stat {
  padding: 1.5rem clamp(1.5rem, 3vw, 4rem);
  border-right: 1px solid rgba(255,255,255,0.07);
}
.hero-stat:last-child { border-right: none; }

.award-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
  line-height: 1;
}
.award-org {
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(252,250,246,0.55);
}

/* ══════════════════════════════════════════════════════════════
   TICKER
══════════════════════════════════════════════════════════════ */
.ticker-wrap {
  background: var(--accent);
  overflow: hidden;
  padding-block: 0.8rem;
  position: relative;
  z-index: 1;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.ticker-item::after {
  content: '★';
  font-size: 0.5rem;
  opacity: 0.6;
  flex-shrink: 0;
  margin: 0 2.5rem;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════════════ */
.about-section {
  background: var(--white);
}

.about-media {
  position: relative;
}

.about-photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 480px;
}

.about-img,
.tall-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tall-placeholder {
  background: var(--cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px dashed var(--border);
}

.photo-accent-block {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 55%;
  height: 45%;
  background: var(--accent);
  opacity: 0.12;
  z-index: -1;
}

.about-content { padding-top: 0.5rem; }

.about-text {
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.85;
  color: rgba(23,23,23,0.75);
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}
.about-text p + p { margin-top: 1rem; }

.about-roles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.about-role {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 0.2rem 0.6rem;
  flex-shrink: 0;
}
.role-org {
  color: var(--dark);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════
   EXPERTISE
══════════════════════════════════════════════════════════════ */
.expertise-section {
  background: var(--cream);
}

.expertise-list {
  display: flex;
  flex-direction: column;
}

.expertise-item {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background 0.2s;
}
.expertise-item:first-child { border-top: 1px solid var(--border); }

.exp-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--accent);
  padding-top: 0.3rem;
  letter-spacing: 0.05em;
}

.exp-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.exp-desc {
  font-size: clamp(0.875rem, 1vw, 0.95rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 70ch;
}

/* ══════════════════════════════════════════════════════════════
   FEATURED IN — CAROUSEL
══════════════════════════════════════════════════════════════ */
.featured-section {
  background: var(--white);
  overflow: hidden;
  padding-bottom: var(--py);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.c-card {
  background: var(--cream);
  padding: 2rem;
  border-top: 2.5px solid var(--accent);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.c-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(23,23,23,0.08);
}

.media-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.media-pg-info {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  min-width: 3rem;
  text-align: center;
}

.media-pg-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
  background: none;
  cursor: pointer;
}
.media-pg-btn:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.media-pg-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.c-type {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.c-pub {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.c-title {
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(23,23,23,0.7);
  margin-bottom: 1.25rem;
}

.c-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.c-year {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.c-link {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s;
}
.c-link:hover { color: var(--accent); }


/* ══════════════════════════════════════════════════════════════
   DIGITALKA
══════════════════════════════════════════════════════════════ */
.digitalka-section {
  background: var(--dark);
  color: var(--white);
}

.dark-section .section-title { color: var(--white); }

.digitalka-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 700;
  font-style: italic;
  line-height: 0.92;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.digitalka-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-style: italic;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.digitalka-desc {
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.85;
  color: rgba(252,250,246,0.6);
  max-width: 48ch;
  margin-bottom: 2rem;
}

/* Digitalka featured posts */
.digitalka-featured {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 0.5rem;
}

.df-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.df-post {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: opacity 0.2s;
}
.df-post:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.df-post:hover { opacity: 0.75; }

.df-post-img {
  width: 112px;
  height: 80px;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  display: block;
}

.df-post-img-placeholder {
  width: 112px;
  height: 80px;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.df-post-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}

.df-post-date {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.df-post-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.df-post-subtitle {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(252,250,246,0.45);
}

/* ══════════════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════════════ */
.contact-section {
  background: var(--cream);
}

.contact-desc {
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.8;
  color: rgba(23,23,23,0.75);
  margin-top: 1.25rem;
  margin-bottom: 1rem;
}

.contact-sub {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 2rem;
  font-style: italic;
}

.speck-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 2rem;
  padding: 0.45rem 1rem;
  transition: background 0.2s, color 0.2s;
}
.speck-link:hover {
  background: var(--accent);
  color: var(--white);
}

.speck-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  background: var(--white);
  max-width: 340px;
}

.badge-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.badge-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  letter-spacing: -0.01em;
}
.badge-sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

/* ── Form ─────────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
}

.form-control {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-control::placeholder { color: rgba(23,23,23,0.3); }
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,65,27,0.12);
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%23927E72' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea.form-control { resize: vertical; min-height: 120px; }

/* Service checkboxes */
.service-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.service-check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(23,23,23,0.65);
  border: 1px solid var(--border);
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
}
.service-check-label:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.service-check-label input[type="checkbox"] {
  display: none;
}
.service-check-label.checked {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.form-msg {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.form-msg.success {
  background: rgba(200,65,27,0.08);
  border-left: 3px solid var(--accent);
  color: var(--dark);
}
.form-msg.error {
  background: rgba(200,65,27,0.08);
  border-left: 3px solid #c00;
  color: #800;
}

/* Loading state */
.btn[data-loading] {
  opacity: 0.7;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--dark);
  color: var(--white);
  padding-block: 3rem 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.2s;
}
.footer-logo:hover { color: var(--accent); }

.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(252,250,246,0.4);
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  color: rgba(252,250,246,0.45);
  transition: color 0.2s, transform 0.2s;
}
.social-link:hover { color: var(--accent); transform: translateY(-2px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(252,250,246,0.3);
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-made {
  font-style: italic;
  font-family: var(--font-display);
}

/* ══════════════════════════════════════════════════════════════
   TIMELINE
══════════════════════════════════════════════════════════════ */
.timeline-section {
  background: var(--dark);
  color: var(--white);
}
.timeline-section .section-title { color: var(--white); }

/* Outer wrap — bubble is positioned absolute relative to this */
.timeline-outer {
  position: relative;
  margin-top: 1rem;
}

/* ── Bubble (JS positions it via top/left) ── */
.tl-bubble {
  position: absolute;
  width: 260px;
  background: rgba(28,28,28,0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 2px solid var(--accent);
  padding: 1.1rem 1.25rem 1.2rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  z-index: 20;
  animation: bubble-in 0.18s var(--ease-out);
}
.tl-bubble[hidden] { display: none; }

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tl-bubble-arrow {
  position: absolute;
  bottom: -6px;
  width: 10px; height: 10px;
  background: rgba(28,28,28,0.98);
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transform: rotate(45deg);
  pointer-events: none;
}

.tl-bubble-year {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.tl-bubble-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.22;
  margin-bottom: 0.5rem;
}
.tl-bubble-desc {
  font-size: 0.79rem;
  line-height: 1.68;
  color: rgba(252,250,246,0.58);
}

/* ── Horizontal layout (desktop) ── */
.tl-horiz { display: block; }
.tl-vert  { display: none; }

.tl-scroll {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  cursor: grab;
  padding-bottom: 0.5rem;
}
.tl-scroll::-webkit-scrollbar { display: none; }
.tl-scroll:active { cursor: grabbing; }

.tl-arena {
  min-width: 480px;
  padding: 0.5rem 2.5rem;
}

.tl-track {
  position: relative;
  height: 32px;
}
.tl-track::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.1);
  transform: translateY(-50%);
}

.tl-line-fill {
  position: absolute;
  top: 50%; left: 0;
  height: 2px; width: 0;
  background: var(--accent);
  transform: translateY(-50%);
  transition: width 0.55s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.tl-cap {
  position: absolute;
  top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

/* Only event dots — no empty year dots */
.tl-dot {
  position: absolute;
  top: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--dark);
  box-shadow: 0 0 0 2px var(--accent);
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 3;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.tl-dot:hover {
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px rgba(200,65,27,0.25);
}
.tl-dot.active {
  transform: translate(-50%, -50%) scale(1.45);
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 8px rgba(200,65,27,0.3);
}

.tl-years-row {
  position: relative;
  height: 22px;
  margin-top: 10px;
}
.tl-year-lbl {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.3);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.tl-year-lbl.endpoint {
  font-weight: 700;
  color: rgba(255,255,255,0.5);
}
.tl-year-lbl.tl-today-lbl {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* ── Vertical layout (mobile) ── */
.tl-vert-list {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 1.5rem;
}
.tl-vert-list::before {
  content: '';
  position: absolute;
  top: 6px; bottom: 0; left: 5px;
  width: 1px;
  background: rgba(255,255,255,0.1);
}
.tl-vert-item {
  position: relative;
  padding: 0 0 2rem 1.25rem;
}
.tl-vert-item::before {
  content: '';
  position: absolute;
  left: -0.45rem; top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--dark);
  box-shadow: 0 0 0 2px var(--accent);
}
.tl-vert-year {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.tl-vert-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 0.4rem;
}
.tl-vert-desc {
  font-size: 0.8rem;
  line-height: 1.65;
  color: rgba(252,250,246,0.55);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .section-inner {
    grid-template-columns: 1fr;
  }

  /* Hero: single column, photo as faint background */
  .hero {
    margin-top: var(--nav-h);
    min-height: calc(100svh - var(--nav-h));
    position: relative;
  }

  .hero-mobile-bg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }
  .hero-mobile-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0.15;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    position: relative;
    z-index: 1;
  }

  .hero-right { display: none; }

  .hero-kw-col { display: none; }

  .hero-left {
    padding: 3rem clamp(1.25rem, 5vw, 3rem) 3rem;
    align-items: flex-start;
    text-align: left;
    min-height: calc(100svh - var(--nav-h) - 80px);
    justify-content: center;
  }

  .digitalka-section .section-inner {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 640px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root {
    --nav-h: 64px;
  }

  /* Nav */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-name-first { font-size: clamp(2.75rem, 12vw, 5rem); }
  .hero-name-last  { font-size: clamp(1.25rem, 6vw, 2rem); }
  .hero-desc       { font-size: 0.875rem; }

  .hero-scroll-hint { display: none; }

  .hero-stats-bar { grid-template-columns: repeat(3, 1fr); }
  .hero-stat {
    padding: 1.1rem 1rem;
    text-align: center;
  }

  /* About */
  .about-photo-frame { max-width: 100%; aspect-ratio: 4 / 5; }

  /* Expertise */
  .expertise-item {
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
  }

  /* Carousel */
  .media-grid { grid-template-columns: repeat(2, 1fr); }

  /* Digitalka */
  .digitalka-title { font-size: clamp(3rem, 14vw, 5rem); }

  /* Timeline: switch to vertical */
  .tl-horiz { display: none; }
  .tl-vert  { display: block; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════════
   COOKIE BANNER
══════════════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 3rem);
  max-width: 560px;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  padding: 1.25rem 1.5rem;
  animation: kwReveal 0.3s ease-out forwards;
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 200px;
  font-size: 0.825rem;
  line-height: 1.55;
  color: rgba(252,250,246,0.65);
  margin: 0;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-accept {
  font-size: 0.8rem;
  padding: 0.5rem 1.1rem;
}

.cookie-decline {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(252,250,246,0.4);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  transition: color 0.2s;
  font-family: var(--font-body);
}
.cookie-decline:hover { color: rgba(252,250,246,0.75); }

.cookie-settings-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(252,250,246,0.4);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  transition: color 0.2s;
  font-family: var(--font-body);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-settings-link:hover { color: rgba(252,250,246,0.75); }

/* Floating cookie settings button */
.cookie-fab {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9998;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(252,250,246,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.cookie-fab:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}

/* Cookie settings modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}
.cookie-modal-overlay[hidden] { display: none; }

.cookie-modal {
  background: var(--cream);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.cookie-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.cookie-modal-close:hover { color: var(--dark); background: var(--cream-alt); }

.cookie-modal-desc {
  font-size: 0.825rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.cookie-category {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-category-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.cookie-category-desc {
  font-size: 0.775rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Toggle switch */
.cookie-toggle {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.cookie-toggle input { display: none; }

.cookie-toggle-track {
  display: block;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: var(--border);
  position: relative;
  transition: background 0.2s;
}
.cookie-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.cookie-toggle input:checked + .cookie-toggle-track { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle-track::after { transform: translateX(18px); }

.cookie-toggle--locked {
  cursor: default;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.cookie-modal-footer {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  .cookie-banner { bottom: 1rem; width: calc(100% - 2rem); }
  .cookie-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cookie-actions { width: 100%; }
  .cookie-modal { padding: 1.5rem; }
}

/* ══════════════════════════════════════════════════════════════
   PRINT
══════════════════════════════════════════════════════════════ */
@media print {
  .nav, .ticker-wrap, .hamburger { display: none; }
  .media-grid { grid-template-columns: 1fr; }
  .fade-up { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .ticker-track { animation: none; }
  .fade-up { opacity: 1; transform: none; transition: none; }
}
