/* ==========================================================================
   SHANADA — clone of "ikonik" (pixelwars) — main stylesheet
   Fonts: Jost (body) + Anton (display) via Google Fonts
   ========================================================================== */

:root {
  --accent: #1755cf;
  --accent-light: #3a7bff;
  --accent-dark: #0d3aa0;
  --accent-2: #e10600;
  --accent-2-dark: #b00000;
  --dark: #10131b;
  --dark-2: #161a24;
  --text: #1c2130;
  --text-soft: #5a6478;
  --muted: #8b93a5;
  --line: rgba(23, 40, 75, 0.12);
  --line-strong: rgba(23, 40, 75, 0.2);
  --bg: #fbfbfc;
  --bg-alt: #f2f4f8;
  --display: "Anton", "Arial Narrow", Arial, sans-serif;
  --body: "Jost", "Segoe UI", Arial, sans-serif;
  --radius: 0px;
  --ease: cubic-bezier(0.77, 0, 0.18, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: #000;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: #000;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--accent-light); }

p { margin: 0 0 1.2em; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 0.6em;
}

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(23, 85, 207, 0.35); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* --------------------------------------------------------------------------
   BUTTONS / LINKS
   -------------------------------------------------------------------------- */

.button {
  display: inline-block;
  padding: 15px 34px;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 15px;
  border-radius: 0;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.button.ghost { background: transparent; color: var(--accent); }
.button.ghost:hover { background: var(--accent); color: #fff; }

.cool-link {
  position: relative;
  background-image: linear-gradient(var(--accent-2), var(--accent-2));
  background-repeat: no-repeat;
  background-size: 0 2px;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease);
}
.cool-link:hover { background-size: 100% 2px; }

/* --------------------------------------------------------------------------
   RIPPLE
   -------------------------------------------------------------------------- */

i.ripple {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(23, 85, 207, 0.28);
  transform: scale(0);
  pointer-events: none;
  z-index: 9999;
}
i.ripple.active {
  animation: ripple 0.7s ease-out forwards;
}
@keyframes ripple {
  to { transform: scale(60); opacity: 0; }
}

/* ==========================================================================
   BRAND PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-inner {
  text-align: center;
  user-select: none;
}
.preloader-icon {
  display: block;
  width: clamp(220px, 34vw, 520px);
  margin: 0 auto;
}
.preloader-icon img { width: 100%; }

/* ==========================================================================
   LANDING (HOME)
   ========================================================================== */

.home-wrap {
  position: fixed;
  inset: 0;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}

.home-bg {
  position: absolute;
  top: -2%;
  left: -2%;
  width: 104%;
  height: 104%;
  background: #000;
  background-size: cover;
  background-position: center;
  opacity: 0;
  will-change: transform;
}

/* featured photo — right side, anchored lower, shifted left, fades into black */
.home-image {
  position: absolute;
  top: auto;
  right: 9%;
  bottom: -18%;
  height: 112%;
  z-index: 2;
  opacity: 0;
  will-change: transform;
  pointer-events: none;
}
.home-image img { height: 100%; width: auto; max-width: none; display: block; }
.home-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, var(--img-overlay, 1)) 0%, rgba(0, 0, 0, 0) 34%);
}

.home-bg-logo {
  position: absolute;
  top: 50%;
  left: 42%;
  transform: translate(-50%, -50%);
  width: min(34vw, 520px);
  z-index: 3;
  opacity: 0;
  will-change: transform;
  pointer-events: none;
}
.home-bg-logo img { width: 100%; height: auto; display: block; }

/* --- home menu : vertical, hard left --- */
.home-menu {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 10;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.home-menu a {
  position: relative;
  display: block;
  width: max-content;
  margin: 1.5vh 0;
  overflow: hidden;
  outline: none;
  line-height: 1;
}
.home-menu .item-name {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(30px, 5.4vh, 74px);
  line-height: 1;
  color: #fff;
  padding: 0 6px 0 18px;
  z-index: 1;
  overflow: hidden;
  transform: translateY(135%);
  transition: transform 1.15s cubic-bezier(0.23, 1, 0.32, 1);
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.4);
  will-change: transform;
}
html.home-loaded .home-menu .item-name { transform: translateY(0); }
html.home-loaded .home-menu a:nth-child(1) .item-name { transition-delay: 0.25s; }
html.home-loaded .home-menu a:nth-child(2) .item-name { transition-delay: 0.37s; }
html.home-loaded .home-menu a:nth-child(3) .item-name { transition-delay: 0.49s; }
html.home-loaded .home-menu a:nth-child(4) .item-name { transition-delay: 0.61s; }
html.home-loaded .home-menu a:nth-child(5) .item-name { transition-delay: 0.73s; }

.home-menu .item-name::before,
.home-menu .item-name::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-2);
  z-index: -1;
  opacity: 0;
  transform: translate3d(-100%, 0, 0);
  transition: transform 0.7s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.3s ease;
}
.home-menu a:hover .item-name::before,
.home-menu a:hover .item-name::after { opacity: 1; }
.home-menu a:hover .item-name::before { transform: translate3d(100%, 0, 0); }
.home-menu a:hover .item-name::after { transform: translate3d(0, 0, 0); }
.home-menu .item-name::after { top: calc(50% - 2px); height: 0.13em; }

/* --- home social (bottom-left black squares) --- */
.home-social {
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  margin: 0;
  opacity: 0;
  z-index: 50;
}
.home-social .social-link {
  width: auto;
  height: auto;
  padding: calc(10px + 1.6vmin);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border: 0;
  border-radius: 0;
  color: #fff;
  transition: background 0.3s, color 0.3s;
}
.home-social .social-link svg { width: 22px; height: 22px; }
.home-social .social-link:hover { background: var(--sc, var(--accent-2)); color: #fff; }

/* --- home footer --- */
.home-footer {
  position: fixed;
  bottom: 0;
  right: 0;
  margin: 0;
  padding: 8px 18px;
  font-size: clamp(11px, 0.9vw, 14px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  z-index: 50;
}

/* --- full screen toggle --- */
.full-screen-wrap {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 6;
  opacity: 0.7;
  transition: opacity 0.25s, transform 0.2s;
}
.full-screen-wrap:hover { opacity: 1; transform: scale(1.1); }
.full-screen-wrap div {
  position: absolute;
  background: #fff;
  transition: all 0.3s;
}
.full-screen-wrap .top-left { top: 0; left: 0; width: 11px; height: 2px; }
.full-screen-wrap .top-left-horiz { top: 0; left: 0; width: 2px; height: 11px; }
.full-screen-wrap .top-right { top: 0; right: 0; width: 11px; height: 2px; }
.full-screen-wrap .top-right-horiz { top: 0; right: 0; width: 2px; height: 11px; }
.full-screen-wrap .bottom-left { bottom: 0; left: 0; width: 11px; height: 2px; }
.full-screen-wrap .bottom-left-horiz { bottom: 0; left: 0; width: 2px; height: 11px; }
.full-screen-wrap .bottom-right { bottom: 0; right: 0; width: 11px; height: 2px; }
.full-screen-wrap .bottom-right-horiz { bottom: 0; right: 0; width: 2px; height: 11px; }

/* ==========================================================================
   OVERLAYS / TRANSITIONS
   ========================================================================== */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: var(--overlay-dark, #0d1017);
  transform: translateY(100%);
  transition: transform var(--page-dur, 0.5s) var(--ease);
  pointer-events: none;
}
.overlay-2 { background: var(--overlay-accent, #1851f1); z-index: 701; }

/* COVER — curtains slide up from below (black first, then blue) */
html.is-ajax-page-active .overlay { transform: translateY(0); transition-delay: 0s; }
html.is-ajax-page-active .overlay-2 { transform: translateY(0); transition-delay: calc(var(--page-dur, 0.5s) * 0.36); }

/* REVEAL — curtains slide down off screen (blue first, then black) */
html.is-ajax-page-active.is-ajax-page-visible .overlay { transform: translateY(100%); transition-delay: calc(var(--page-dur, 0.5s) * 0.36); }
html.is-ajax-page-active.is-ajax-page-visible .overlay-2 { transform: translateY(100%); transition-delay: 0s; }

/* CLOSE step 1 — curtains cover again */
html.is-ajax-page-closing .overlay { transform: translateY(0); transition-delay: 0s; }
html.is-ajax-page-closing .overlay-2 { transform: translateY(0); transition-delay: calc(var(--page-dur, 0.5s) * 0.36); }
/* CLOSE step 2 — curtains rise up off screen, revealing home */
html.is-ajax-page-closing.is-ajax-page-closed .overlay { transform: translateY(-100%); transition-delay: calc(var(--page-dur, 0.5s) * 0.36); }
html.is-ajax-page-closing.is-ajax-page-closed .overlay-2 { transform: translateY(-100%); transition-delay: 0s; }

/* loading pulse while a page is being fetched */
html.is-ajax-page-active:not(.is-ajax-page-visible) .overlay-2::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulse 0.9s ease-in-out infinite;
  z-index: 2;
}
@keyframes pulse {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

/* --- one page content (the panel that holds AJAX pages) --- */
.one-page-content {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.one-page-content.is-visible { opacity: 1; pointer-events: auto; }

.one-page-content .content-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 28px 110px;
  min-height: 100%;
}

/* page title reveal — rotated diamond behind the h1 (like the theme) */
.one-page-content h1 {
  position: relative;
  line-height: 1.05;
  padding: 0 10px 18px;
}
.one-page-content h1::before {
  content: "";
  position: absolute;
  height: 34%;
  width: 34%;
  top: 50%;
  margin-top: -15px;
  left: 34%;
  z-index: -1;
  background: #eef1f6;
  transform: rotate3d(0, 0, 1, 45deg) scale3d(0, 1, 1);
  transition: transform 0.7s var(--ease);
}
html.is-ajax-page-visible .one-page-content h1::before {
  transform: rotate3d(0, 0, 1, 45deg) scale3d(1, 1, 1);
}

/* content cascades in when a page is revealed */
.one-page-content .hentry > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.is-ajax-page-visible .one-page-content .hentry > * { opacity: 1; transform: translateY(0); }
html.is-ajax-page-visible .one-page-content .hentry > *:nth-child(1) { transition-delay: 0.06s; }
html.is-ajax-page-visible .one-page-content .hentry > *:nth-child(2) { transition-delay: 0.14s; }
html.is-ajax-page-visible .one-page-content .hentry > *:nth-child(3) { transition-delay: 0.22s; }
html.is-ajax-page-visible .one-page-content .hentry > *:nth-child(4) { transition-delay: 0.3s; }
html.is-ajax-page-visible .one-page-content .hentry > *:nth-child(5) { transition-delay: 0.38s; }
html.is-ajax-page-visible .one-page-content .hentry > *:nth-child(6) { transition-delay: 0.46s; }
html.is-ajax-page-visible .one-page-content .hentry > *:nth-child(7) { transition-delay: 0.54s; }
html.is-ajax-page-visible .one-page-content .hentry > *:nth-child(8) { transition-delay: 0.62s; }

/* --- close page button (top center, drops in — like the theme) --- */
.close-page {
  position: fixed;
  top: 0;
  left: 50%;
  margin-left: -31px;
  width: 62px;
  height: 62px;
  border-radius: 0;
  background: #10131b;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease), background 0.25s;
  cursor: pointer;
}
html.is-ajax-page-visible .close-page { transform: translateY(0); }
body.standalone .close-page { transform: translateY(0); }
.close-page:hover { background: var(--accent); }
.close-page span { position: relative; width: 20px; height: 20px; }
.close-page span::before,
.close-page span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 2px;
  background: #fff;
}
.close-page span::before { transform: rotate(45deg); }
.close-page span::after { transform: rotate(-45deg); }

/* ==========================================================================
   PAGE CONTENT (hentry) — shared by AJAX overlay & standalone pages
   ========================================================================== */

.hentry .entry-title,
.page-title {
  font-size: clamp(34px, 5vw, 64px);
  margin-bottom: 0.4em;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: center;
}
.page-intro {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text-soft);
  max-width: 780px;
  margin: 0 auto 40px;
  text-align: center;
}
.page-intro strong { color: var(--accent); }

.section-title {
  font-family: var(--body);
  font-style: italic;
  text-transform: lowercase;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.02em;
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 64px 0 30px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
  max-width: 220px;
}
.section-title span { font-family: var(--display); font-style: normal; text-transform: uppercase; color: var(--text); margin-left: 8px; }

/* --- about intro --- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}
.about-grid .about-photo img { border-radius: var(--radius); width: 100%; box-shadow: 0 30px 80px rgba(16, 19, 27, 0.25); }
.about-grid .lead {
  font-size: 22px;
  line-height: 1.6;
  color: var(--text);
}
.about-grid .lead strong { color: var(--accent); }

/* --- full bio (continuous paragraphs) --- */
.bio { display: grid; gap: 16px; }
.bio-paragraph {
  margin: 0;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
}
.bio-paragraph strong { color: var(--accent); }
.bio .bio-paragraph:first-child {
  font-size: 19px;
}

/* --- the duo members --- */
.member-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.member-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  padding: 28px 26px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.member-card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(16, 19, 27, 0.12); }
.member-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.member-head h3 { font-size: 26px; margin: 0; }
.member-location {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  background: rgba(23, 85, 207, 0.1);
  padding: 4px 12px;
}
.member-tag {
  margin: 10px 0 12px;
  font-family: var(--body);
  font-style: italic;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 15px;
}
.member-text { margin: 0; color: var(--text-soft); font-size: 15px; }

/* --- the sound --- */
.about-text {
  max-width: 860px;
  margin: 0 auto 22px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
}
.about-text.closing {
  color: var(--text-soft);
  border-left: 3px solid var(--accent);
  padding-left: 20px;
}

/* --- services --- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 26px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.service:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(16, 19, 27, 0.12); border-color: var(--accent-2); }
.service .service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  padding: 12px;
  background: #fff;
  border-radius: 0;
  border: 1px solid var(--line);
  transition: border-color 0.3s;
}
.service:hover .service-icon { border-color: var(--accent-2); }
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service p { color: var(--text-soft); font-size: 15px; margin: 0; }

/* --- work process --- */
.work-process {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.process-step {
  text-align: center;
  padding: 22px 12px;
}
.process-step img { width: 56px; margin: 0 auto 12px; opacity: 0.9; }
.process-step h4 {
  font-size: 15px;
  letter-spacing: 0.1em;
  margin: 0;
}

/* --- clients --- */
.clients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.client {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}
.client:hover { filter: none; opacity: 1; transform: scale(1.04); }

/* --- milestones (achievement cards) --- */
.milestone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: mile;
}
.milestone {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: 30px 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.milestone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--accent-2);
}
.milestone:nth-child(even)::before { background: var(--accent); }
.milestone::after {
  counter-increment: mile;
  content: "0" counter(mile);
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--display);
  font-size: 44px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
}
.milestone img { width: 40px; height: 40px; margin-bottom: 18px; filter: invert(1); opacity: 0.95; }
.milestone h4 {
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.milestone:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 22px 46px rgba(0, 0, 0, 0.4); }

/* ==========================================================================
   RESUME
   ========================================================================== */

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line-strong);
}
.timeline .event { position: relative; margin-bottom: 34px; }
.timeline .event::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline .event-period {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.timeline .event h3 { font-size: 22px; margin-bottom: 2px; }
.timeline .event h4 { font-family: var(--body); font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--accent); font-size: 16px; margin-bottom: 10px; }
.timeline .event p { color: var(--text-soft); font-size: 15px; margin: 0; }

.skills { margin-top: 40px; }
.skills .skill { margin-bottom: 24px; }
.skill-name {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.skill-name .value { color: var(--accent); font-weight: 700; }
.bar {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.bar .progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-light));
  border-radius: 20px;
  transition: width 1.2s var(--ease);
}

.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 34px;
}
.testimonial {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.testimonial blockquote { margin: 0 0 18px; font-size: 16px; color: var(--text-soft); }
.testimonial .testimonial-meta { display: flex; align-items: center; gap: 14px; }
.testimonial .testimonial-meta img { width: 52px; height: 52px; border-radius: 0; }
.testimonial .testimonial-meta h4 { font-size: 16px; margin: 0; }
.testimonial .testimonial-meta p { margin: 0; font-size: 13px; color: var(--muted); }

.download-cv { margin-top: 40px; }

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */

.filters {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filters li a {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}
.filters li a:hover { border-color: var(--accent); color: var(--accent); }
.filters li.current a { background: var(--accent); border-color: var(--accent); color: #fff; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.portfolio-grid .p-item { opacity: 1; transform: scale(1); transition: opacity 0.3s, transform 0.3s; }
.portfolio-grid .p-item.is-hidden { display: none; }

.media-box {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 14px;
}
.media-box img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.6s var(--ease); }
.media-box:hover img { transform: scale(1.08); }
.media-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8, 10, 16, calc(0.55 * var(--img-overlay, 1))));
  opacity: 0;
  transition: opacity 0.3s;
}
.media-box:hover::after { opacity: 1; }

.media-cell-desc h3 { font-size: 20px; margin-bottom: 2px; }
.media-cell-desc h3 a { color: var(--text); }
.media-cell-desc h3 a:hover { color: var(--accent); }
.media-cell-desc p { color: var(--muted); font-size: 14px; margin: 0; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; }

/* portfolio single (detail overlay) */
.portfolio-single { max-width: 980px; margin: 0 auto; padding: 60px 24px; }
.portfolio-single .portfolio-image { border-radius: var(--radius); margin-bottom: 30px; }
.portfolio-single .portfolio-content { max-width: 720px; }
.portfolio-single h1 { font-size: clamp(30px, 4vw, 52px); }
.portfolio-single .portfolio-meta { color: var(--muted); margin-bottom: 20px; letter-spacing: 0.1em; text-transform: uppercase; font-size: 13px; }
.portfolio-nav { display: flex; justify-content: space-between; margin-top: 40px; }
.portfolio-nav a { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; }

/* ==========================================================================
   BLOG
   ========================================================================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-post {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-post:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(16, 19, 27, 0.12); }
.blog-post .blog-thumb { overflow: hidden; }
.blog-post .blog-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s var(--ease); }
.blog-post:hover .blog-thumb img { transform: scale(1.07); }
.blog-post .blog-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.blog-post .blog-meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 600;
}
.blog-post h3 { font-size: 22px; margin-bottom: 10px; }
.blog-post h3 a { color: var(--text); }
.blog-post h3 a:hover { color: var(--accent); }
.blog-post p { color: var(--text-soft); font-size: 15px; margin: 0 0 16px; }
.blog-post .button { margin-top: auto; align-self: flex-start; padding: 10px 22px; font-size: 13px; }

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.contact-info-item {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}
.contact-info-item .ci-icon { width: 46px; height: 46px; margin: 0 auto 12px; }
.contact-info-item h4 { font-size: 15px; margin-bottom: 4px; letter-spacing: 0.08em; }
.contact-info-item p { margin: 0; color: var(--text-soft); font-size: 14px; word-break: break-word; }
.contact-info-item p.accent { color: var(--accent-2); font-weight: 600; }
.contact-info-item .ci-icon { color: var(--accent); }

.contact-wrap {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
}
.contact-wrap h2 { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: 12px; }
.contact-wrap .lead { color: var(--text-soft); font-size: 17px; }

.contact-form .field { position: relative; margin-bottom: 22px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--line-strong);
  font-family: var(--body);
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form input.error,
.contact-form textarea.error { border-color: #e23b3b; }
.contact-form .error-message { color: #e23b3b; font-size: 13px; margin-top: 6px; display: none; }
.contact-form .field.has-error .error-message { display: block; }
.site-alert {
  display: none;
  padding: 14px 18px;
  border-radius: 0;
  margin-bottom: 18px;
  font-size: 14px;
}
.site-alert.success { display: block; background: #e5f6ec; color: #177a3b; border: 1px solid #b7e5c6; }
.site-alert.error { display: block; background: #fdeaea; color: #b32626; border: 1px solid #f3c1c1; }

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox-popup {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 16, 0.94);
  padding: 30px;
}
.lightbox-popup.open { display: flex; }
.lightbox-popup .lb-content { position: relative; max-width: 92vw; max-height: 88vh; }
.lightbox-popup img,
.lightbox-popup iframe,
.lightbox-popup video { max-width: 100%; max-height: 82vh; border-radius: 0; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6); }
.lightbox-popup .lb-close {
  position: absolute;
  top: -54px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
}
.lightbox-popup .lb-title { color: rgba(255, 255, 255, 0.8); text-align: center; margin-top: 14px; font-size: 14px; letter-spacing: 0.1em; }
.lightbox-popup .lb-prev,
.lightbox-popup .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  transition: background 0.25s;
}
.lightbox-popup .lb-prev:hover, .lightbox-popup .lb-next:hover { background: var(--accent); }
.lightbox-popup .lb-prev { left: 10px; }
.lightbox-popup .lb-next { right: 10px; }

/* ==========================================================================
   PORTFOLIO OVERLAY (p-overlay)
   ========================================================================== */

.p-overlay {
  position: fixed;
  inset: 0;
  z-index: 550;
  background: var(--bg);
  overflow-y: auto;
  display: none;
}
.p-overlay.active { display: block; animation: panim-in 0.45s var(--ease); }
.p-overlay.animate-out { animation: panim-out 0.4s var(--ease) forwards; }
@keyframes panim-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes panim-out { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* ==========================================================================
   DATES PAGE
   ========================================================================== */
.date-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.date-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.date-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(16, 19, 27, 0.12); border-color: var(--accent-2); }
.date-badge {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 0;
  background: linear-gradient(160deg, var(--accent-2), var(--accent-2-dark));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  box-shadow: 0 8px 22px rgba(225, 6, 0, 0.35);
}
.date-badge .date-day { font-family: var(--display); font-size: 32px; }
.date-badge .date-month { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.9; }
.date-info { flex: 1; min-width: 0; }
.date-info h3 { font-size: 20px; margin-bottom: 4px; }
.date-info .date-venue { margin: 0 0 8px; color: var(--text-soft); font-size: 14px; }
.date-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  background: rgba(23, 85, 207, 0.1);
  padding: 3px 12px;
  border-radius: 0;
}
.date-ticket {
  flex: 0 0 auto;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  color: #fff;
  background: var(--accent);
  padding: 12px 20px;
  border-radius: 0;
  transition: background 0.25s, transform 0.2s;
}
.date-ticket:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }

.past-list { display: grid; gap: 0; }
.past-date {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.past-date:last-child { border-bottom: 0; }
.past-date-date { flex: 0 0 120px; color: var(--muted); text-transform: uppercase; font-size: 13px; letter-spacing: 0.06em; }
.past-date-event { flex: 1; font-weight: 600; }
.past-date-venue { color: var(--muted); font-size: 14px; }

/* ==========================================================================
   MUSIC PAGE
   ========================================================================== */
.mix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.mix-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.mix-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(16, 19, 27, 0.14); border-color: var(--accent); }
.mix-art { position: relative; overflow: hidden; }
.mix-art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s var(--ease); }
.mix-card:hover .mix-art img { transform: scale(1.06); }
.mix-play {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 0;
  background: var(--accent-2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(225, 6, 0, 0.45);
  transition: transform 0.25s, background 0.25s;
}
.mix-play svg { width: 22px; height: 22px; display: block; }
.mix-play:hover { transform: scale(1.12); background: var(--accent-2-dark); color: #fff; }
.mix-body { padding: 20px 22px 22px; }
.mix-body h3 { font-size: 22px; margin-bottom: 2px; }
.mix-meta { color: var(--accent); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin: 0 0 10px; }
.mix-note { color: var(--text-soft); font-size: 14px; margin: 0; }

.track-list { display: grid; gap: 0; }
.track-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}
.track-row:hover { background: var(--bg-alt); }
.track-row:last-child { border-bottom: 0; }
.track-art { flex: 0 0 auto; }
.track-art img { width: 62px; height: 62px; border-radius: 0; object-fit: cover; }
.track-info { flex: 1; min-width: 0; }
.track-info h3 { font-size: 19px; margin: 0 0 2px; }
.track-info p { margin: 0; color: var(--text-soft); font-size: 14px; }
.track-links { display: flex; gap: 8px; flex-wrap: wrap; }
.track-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 0;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  transition: all 0.25s;
}
.track-link svg { width: 15px; height: 15px; display: block; }
.track-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.track-link.spotify:hover { background: #1DB954; border-color: #1DB954; }
.track-link.apple:hover { background: #A2AAAD; border-color: #A2AAAD; color: #000; }
.track-link.spotify svg, .track-link.apple svg { color: currentColor; }

/* ==========================================================================
   STANDALONE PAGE SHELL (sub-pages opened directly)
   ========================================================================== */

body.standalone { background: var(--bg); }

.page-shell { min-height: 100vh; display: flex; flex-direction: column; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 34px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(251, 251, 252, 0.92);
  backdrop-filter: blur(8px);
  z-index: 20;
}
.page-logo {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-logo img { width: 170px; height: auto; }
.page-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.page-nav a {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}
.page-nav a:hover { color: var(--accent); }

.page-single { flex: 1; width: 100%; }
.page-single .hentry {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 28px 40px;
}

.page-footer {
  text-align: center;
  padding: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* back to top — defined later with .back-to-top */

/* hidden utility */
.hide { display: none !important; }

/* hide Netlify Identity widget floating button (invite/login handled by /admin) */
.netlify-identity-button { display: none !important; }

/* ==========================================================================
   HOME ENTRANCE ANIMATION (triggered by html.home-loaded)
   ========================================================================== */
html.home-loaded .home-bg { animation: hFade 1s 0s ease both; }
html.home-loaded .home-image { animation: hImg 1s 0.1s cubic-bezier(0.77, 0, 0.18, 1) both; }
@keyframes hImg { 0% { opacity: 0; transform: translateX(100%); } 100% { opacity: 1; transform: translateX(0); } }
html.home-loaded .home-bg-logo { animation: hFade 0.9s 0.05s ease both; }
html.home-loaded .home-social { animation: hSlideUp 0.8s 0.45s cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes hSlideUp { 0% { opacity: 0; transform: translateY(100%); } 100% { opacity: 1; transform: translateY(0); } }
html.home-loaded .home-footer { animation: hFade 0.6s 0.3s ease both; }
@keyframes hFade { 0% { opacity: 0; } 100% { opacity: 1; } }

/* ==========================================================================
   MISC COMPONENTS USED BY JS
   ========================================================================== */
.skill-group-title {
  font-family: var(--body);
  font-style: italic;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  font-size: 22px;
  margin: 44px 0 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.skill-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); max-width: 180px; }

#back-to-top,
.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s, background 0.25s;
  z-index: 400;
  font-size: 18px;
}
#back-to-top.show,
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover,
.back-to-top:hover { background: var(--accent); }

.lightbox-popup .lb-media iframe {
  width: min(92vw, 960px);
  border: 0;
}
.lightbox-popup .lb-media iframe[src*="soundcloud"] { height: 420px; }
.lightbox-popup .lb-media iframe:not([src*="soundcloud"]) { height: calc(min(92vw, 960px) * 0.5625); }

.media-box .media-link { display: block; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-grid .media-box { margin-bottom: 0; }
.gallery-grid .media-box img { aspect-ratio: 1 / 1; }
