/* =============================================================
   KOMPETAN — Editorial Design System
   ============================================================= */

/* ---------- 1. RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
ul, ol { list-style: none; }

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

/* ---------- 2. DESIGN TOKENS ---------- */
:root {
  --paper: #F6F2EA;
  --paper-2: #ECE5D4;
  --ink: #171717;
  --ink-dim: #625c50;
  --line: #ddd4bd;
  --accent: #7B1E28;
  --accent-soft: #9c3540;
  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-logo: 'League Spartan', sans-serif;
}

html[data-theme="dark"] {
  --paper: #131210;
  --paper-2: #1c1a16;
  --ink: #f2ede0;
  --ink-dim: #a89f8c;
  --line: #322d24;
  --accent: #c9636d;
  --accent-soft: #d98088;
}

html { background: var(--paper); color-scheme: light dark; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

body.menu-open { overflow: hidden; height: 100%; position: fixed; width: 100%; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- 3. TYPE UTILITIES ---------- */
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.kicker::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

.cat-label {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.cat-pill {
  display: inline-block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 5px 12px;
  margin-bottom: 18px;
}
.cat-pill.accent { border-color: var(--accent-soft); background: rgba(123,30,40,0.35); }

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); margin-top: 24px; }
.btn-dark:hover { background: var(--accent); }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); margin-top: 8px; }
.btn-outline-dark:hover { background: var(--ink); color: var(--paper); }

/* ---------- 5. LOADING SCREEN ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader-mark {
  font-family: var(--font-logo); font-weight: 700;
  font-size: 1.6rem; letter-spacing: 0.08em;
  color: var(--paper);
  animation: pulse 1.4s ease-in-out infinite;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
@keyframes pulse { 0%,100%{opacity:0.4;} 50%{opacity:1;} }

/* ---------- 6. READING PROGRESS ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent);
  width: 0%;
  z-index: 300;
  transition: width 0.1s linear;
}

/* ---------- 7. HEADER / FLOATING NAV ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5vw;
  background: rgba(246,242,234,0.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, padding 0.3s ease;
}
html[data-theme="dark"] .site-header { background: rgba(19,18,16,0.7); }
.site-header.scrolled { border-color: var(--line); padding: 12px 5vw; }

.site-logo {
  font-family: var(--font-logo); font-weight: 700;
  font-size: 1.3rem; letter-spacing: 0.05em;
  color: var(--ink);
}

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-dim); font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }

.nav-right { align-items: center; }
.icon-btn {
  background: none; border: none; color: var(--ink);
  cursor: pointer; display: flex; align-items: center;
  padding: 4px; transition: color 0.2s ease, transform 0.2s ease;
}
.icon-btn:hover { color: var(--accent); transform: scale(1.08); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-toggle span { width: 20px; height: 1.5px; background: var(--ink); transition: transform 0.3s ease, opacity 0.3s ease; }

/* ---------- 8. MOBILE MENU ---------- */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(78vw, 320px);
  background: var(--paper);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
  padding: 100px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 140;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  color: var(--ink);
}

/* ---------- 9. SEARCH OVERLAY ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-inner { width: min(90vw, 560px); text-align: center; }
.search-inner .kicker { justify-content: center; margin-bottom: 20px; }
#searchInput {
  width: 100%; border: none; border-bottom: 1px solid var(--ink);
  background: transparent; font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem); color: var(--ink);
  padding: 10px 0; outline: none;
}
.search-suggestions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.search-suggestions span {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 8px 16px; color: var(--ink-dim);
  cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease;
}
.search-suggestions span:hover { border-color: var(--accent); color: var(--accent); }

.search-results {
  margin-top: 30px; max-width: 640px; width: 100%;
  max-height: 55vh; overflow-y: auto; text-align: left;
}
.search-result {
  display: flex; gap: 16px; align-items: center;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
}
.search-result:hover h3 { color: var(--accent); }
.search-result-img {
  flex: 0 0 64px; width: 64px; height: 64px;
  background-size: cover; background-position: center;
  border: 1px solid var(--line);
}
.search-result-cat {
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.search-result h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  color: var(--ink); margin: 4px 0 2px; transition: color 0.2s ease;
}
.search-result p {
  font-size: 0.82rem; color: var(--ink-dim);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch;
}
.search-empty {
  margin-top: 10px; font-size: 0.88rem; color: var(--ink-dim); text-align: center;
}

/* ---------- 10. HERO SLIDER ---------- */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; }
.hero-slides { position: relative; width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0; visibility: hidden;
  transition: opacity 1.1s ease;
  display: flex; align-items: flex-end;
  animation: none;
}
.hero-slide[data-placeholder]::before {
  content: attr(data-placeholder);
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(123,30,40,0.25), transparent 55%),
    repeating-linear-gradient(135deg, #232019 0 2px, #17140f 2px 4px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
  font-family: var(--font-body); font-size: 0.7rem;
  letter-spacing: 0.1em; color: #8a8272;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide.is-active .hero-content { animation: kenburns 8s ease-out forwards; }
.hero-slide.is-active { animation: kenburns-bg 8s ease-out forwards; transform-origin: center; }
@keyframes kenburns-bg { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Art-directed crops for mobile: landscape source photos get a
   purpose-cropped portrait version instead of a blind center-crop,
   so the subject isn't blown up/cut off on tall narrow screens. */
@media (max-width: 640px) {
  .hero { height: 88vh; }
  .hero-quantum { background-image: url('assets/images/quantum-cover-mobile.jpg') !important; background-position: center !important; }
  .hero-pepsi { background-image: url('assets/images/featured-pepsi-rolex-mobile.jpg') !important; background-position: center !important; }
  .hero-oyuncaklarim { background-image: url('assets/images/oyuncaklarim-cover-mobile.jpg') !important; background-position: center !important; }
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.25) 45%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 6vw 12vh;
  max-width: 760px;
  color: #fff;
}
.hero-content h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.1rem, 6vw, 4rem);
  line-height: 1.08;
  margin-bottom: 16px;
}
.hero-content p {
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  color: rgba(255,255,255,0.85);
  max-width: 52ch;
  margin-bottom: 20px;
}
.hero-meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}

.hero-dots {
  position: absolute; bottom: 32px; right: 5vw; z-index: 3;
  display: flex; gap: 10px;
}
.hero-dots button {
  width: 26px; height: 2px; background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; transition: background 0.3s ease;
}
.hero-dots button.active { background: #fff; }

.trending-widget {
  position: absolute; top: 100px; right: 5vw; z-index: 3;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 20px 22px;
  width: 260px;
  display: none;
}
.trending-widget ol { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; counter-reset: t; }
.trending-widget li {
  counter-increment: t;
  font-family: var(--font-display); font-size: 0.88rem;
  color: #fff; line-height: 1.3;
  padding-left: 22px; position: relative;
}
.trending-widget li::before {
  content: counter(t, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-body); font-size: 0.68rem;
  color: rgba(255,255,255,0.5);
}
.trending-widget li a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.trending-widget li a:hover { color: var(--accent); text-decoration: underline; }
@media (min-width: 1000px) { .trending-widget { display: block; } }

.scroll-cue {
  position: absolute; bottom: 32px; left: 5vw; z-index: 3;
  width: 22px; height: 36px; border: 1px solid rgba(255,255,255,0.6);
  border-radius: 12px;
}
.scroll-cue span {
  display: block; width: 3px; height: 7px; background: #fff;
  border-radius: 2px; margin: 6px auto 0;
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue { 0%{transform:translateY(0);opacity:1;} 70%{transform:translateY(10px);opacity:0;} 100%{opacity:0;} }

/* ---------- 11. SECTIONS / GRID BASICS ---------- */
.section { padding: 90px 6vw; }
.alt-bg { background: var(--paper-2); }
.section-head { margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin-top: 10px;
  color: var(--ink);
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- 12. EDITOR'S PICKS ---------- */
.picks-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) { .picks-grid { grid-template-columns: 1.3fr 1fr; } }
.pick { display: block; }
.pick-img {
  aspect-ratio: 4/3; background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: var(--paper-2);
  margin-bottom: 16px; overflow: hidden; position: relative;
}
.pick-img[data-placeholder]::before {
  content: attr(data-placeholder);
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, var(--paper-2) 0 2px, var(--line) 2px 4px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  font-size: 0.62rem; letter-spacing: 0.08em; color: var(--ink-dim);
}
.pick:hover .pick-img { filter: brightness(1.04); }
.pick-img { transition: filter 0.3s ease; }
.pick-main h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.2; }
.pick-main p { margin-top: 10px; color: var(--ink-dim); font-size: 0.94rem; max-width: 46ch; }
.picks-secondary { display: flex; flex-direction: column; gap: 26px; }
.pick-sub .pick-img { aspect-ratio: 16/9; }
.pick-sub h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; line-height: 1.3; }

/* ---------- 13. LATEST STORIES — asymmetric grid ---------- */
.latest-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
@media (min-width: 720px) {
  .latest-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; }
  .story-lg { grid-column: span 2; grid-row: span 2; }
}
.story { background: var(--paper); padding: 24px; display: block; }
.alt-bg .story { background: var(--paper-2); }
.story-img {
  aspect-ratio: 4/3; margin-bottom: 14px; position: relative; overflow: hidden;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  background-color: var(--paper-2);
}
.story-lg .story-img { aspect-ratio: 16/10; }
.story-img[data-placeholder]::before {
  content: attr(data-placeholder);
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, var(--paper) 0 2px, var(--line) 2px 4px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 14px;
  font-size: 0.58rem; letter-spacing: 0.08em; color: var(--ink-dim);
}
.story h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; line-height: 1.3; }
.story-lg h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.story p { margin-top: 8px; font-size: 0.85rem; color: var(--ink-dim); }
.story:hover h3 { color: var(--accent); transition: color 0.2s ease; }

/* ---------- 14. TRENDING NOW — horizontal ---------- */
.trending-row {
  display: flex; gap: 1px; overflow-x: auto;
  background: var(--line); border: 1px solid var(--line);
  scrollbar-width: none;
}
.trending-row::-webkit-scrollbar { display: none; }
.trend-card {
  flex: 0 0 280px; background: var(--paper);
  padding: 26px 22px; display: flex; gap: 16px; align-items: flex-start;
}
.trend-num {
  font-family: var(--font-display); font-style: italic;
  font-size: 2rem; color: var(--line); line-height: 1;
}
.trend-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.02rem; line-height: 1.3; margin-top: 4px; }
.trend-card:hover .trend-num { color: var(--accent); transition: color 0.2s ease; }

/* ---------- 15. COLLECTIONS ---------- */
.collections-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
@media (min-width: 720px) { .collections-grid { grid-template-columns: repeat(3, 1fr); } }
.collection-card {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center;
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.collection-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.08) 55%, rgba(0,0,0,0.05) 100%);
  transition: background 0.35s ease;
}
.collection-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; z-index: 0; }
.collection-card:hover img { transform: scale(1.04); }
.collection-card:hover::before { background: linear-gradient(0deg, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 100%); }
.collection-card-text { position: relative; z-index: 2; padding: 18px 20px; }
.collection-card-text .cat-label { color: rgba(255,255,255,0.75); margin-bottom: 4px; }
.collection-card span {
  display: block;
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  color: #fff;
}

/* ---------- 16. TODAY'S STORY ---------- */
.today-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 860px) { .today-grid { grid-template-columns: 1fr 1fr; gap: 60px; } }
.today-img { aspect-ratio: 4/3; background-size: cover; background-position: center; background-repeat: no-repeat; border: 1px solid var(--line); }
.today-copy h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 12px 0 16px; line-height: 1.2; }
.today-copy p { color: var(--ink-dim); font-size: 0.96rem; max-width: 52ch; }

/* ---------- 17. INSTAGRAM GRID ---------- */
.ig-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
.ig-tile {
  aspect-ratio: 1/1; background-color: var(--paper-2);
  background-size: cover; background-position: center; background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; letter-spacing: 0.08em; color: var(--ink-dim);
  position: relative; overflow: hidden;
}
.ig-tile::before {
  content: attr(data-placeholder);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 10px;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.ig-tile:hover::before { transform: scale(1.06); opacity: 0.7; }

/* ---------- 18. NEWSLETTER ---------- */
.newsletter { background: var(--ink); color: #fff; padding: 100px 6vw; text-align: center; }
.newsletter-inner { max-width: 560px; margin: 0 auto; }
.newsletter h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 14px 0 10px; }
.newsletter p { color: rgba(255,255,255,0.65); font-size: 0.94rem; }
.newsletter-form { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.newsletter-form input {
  flex: 1 1 260px; padding: 14px 16px; border: 1px solid rgba(255,255,255,0.3);
  background: transparent; color: #fff; font-size: 0.88rem; outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-note { margin-top: 16px; font-size: 0.72rem; color: rgba(255,255,255,0.4); }

/* ---------- 19. MODAL (Marka Kiti) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 260;
  background: rgba(17,16,14,0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: var(--paper); border: 1px solid var(--line);
  max-width: 440px; width: 100%; padding: 36px 30px 30px;
  position: relative; max-height: 86vh; overflow-y: auto;
  transform: translateY(12px); transition: transform 0.3s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 1rem; color: var(--ink-dim); cursor: pointer;
}
.modal-close:hover { color: var(--accent); }
.stat-row {
  display: flex; justify-content: space-between; padding: 12px 0;
  border-bottom: 1px solid var(--line); font-size: 0.82rem;
}
.stat-row span:first-child { color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.66rem; }
.stat-row span:last-child { font-weight: 500; }

/* ---------- 20. FOOTER ---------- */
.site-footer { background: var(--paper-2); padding: 70px 6vw 30px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
@media (min-width: 860px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 12px; color: var(--ink-dim); font-family: var(--font-display); font-style: italic; }
.footer-col h4 { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { font-size: 0.88rem; color: var(--ink); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim);
}

/* ---------- 21. BACK TO TOP ---------- */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; z-index: 120;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  border: none; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); }

/* ---------- 22. FOCUS STATES (accessibility) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 23. RESPONSIVE NAV COLLAPSE ---------- */
@media (max-width: 860px) {
  .nav-links.nav-left, .nav-links.nav-right a:not(.icon-btn) { display: none; }
  .nav-toggle { display: flex; }
  .site-header { justify-content: space-between; }
}
