/* ==========================================================
   Tůma & partneři s.r.o. – moderní jednostránkový web
   Barevná paleta převzata z firemní vizitky
   ========================================================== */

:root {
  --bg-dark:        #1a2e3a;
  --bg-darker:      #132330;
  --bg-darkest:     #0d1a24;
  --bg-cream:       #f6f2e9;
  --bg-cream-2:     #efe9db;
  --bg-white:       #ffffff;

  --accent:         #d99f4c;
  --accent-bright:  #e8b464;
  --accent-dark:    #b37f30;

  --text:           #14232e;
  --text-muted:     #55636d;
  --text-on-dark:   #ffffff;
  --text-on-dark-muted: rgba(255, 255, 255, 0.72);

  --border:         rgba(20, 35, 46, 0.12);
  --border-on-dark: rgba(255, 255, 255, 0.12);

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 1px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.35);

  --font-head: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.4em;
}
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--bg-dark); }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}
.section__head h2 { margin-bottom: 0.5rem; }
.section__lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  padding: 4px 12px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn--primary {
  background: var(--accent);
  color: #1a2e3a;
  box-shadow: 0 10px 24px -12px rgba(217, 159, 76, 0.9);
}
.btn--primary::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255,255,255,0.45) 50%, transparent 75%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
  z-index: -1;
}
.btn--primary:hover::before { transform: translateX(100%); }
.btn--primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -14px rgba(217, 159, 76, 1);
}
.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn--block { width: 100%; }

.link-arrow {
  font-weight: 600;
  color: var(--accent-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.link-arrow:hover { border-color: var(--accent); }

/* ==========================================================
   SCROLL PROGRESS BAR
   ========================================================== */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  z-index: 60;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(217, 159, 76, 0.6);
  transition: width 0.05s linear;
}

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 0;
  background: rgba(26, 46, 58, 0.0);
  transition: background 0.25s var(--ease), padding 0.25s var(--ease), box-shadow 0.25s var(--ease), backdrop-filter 0.25s;
}
.nav.is-scrolled {
  background: rgba(19, 35, 48, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 6px 24px -14px rgba(0,0,0,0.6);
  padding: 8px 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav__logo {
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-head);
}
.nav__logo-main {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}
.nav__logo-sub {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent-bright);
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 3px;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__menu a {
  color: rgba(255,255,255,0.85);
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav__menu a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav__menu .nav__cta {
  margin-left: 6px;
  background: var(--accent);
  color: #1a2e3a;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.nav__menu .nav__cta:hover { background: var(--accent-bright); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s, opacity 0.25s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-on-dark);
  overflow: hidden;
  padding: 130px 0 90px;
  text-align: center;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 600px at 20% 10%, rgba(217,159,76,0.12), transparent 60%),
    radial-gradient(1200px 700px at 90% 100%, rgba(217,159,76,0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 45%, var(--bg-darkest) 100%);
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  opacity: 0.6;
}

/* Floating orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
  animation: orbFloat 18s ease-in-out infinite;
  will-change: transform;
}
.hero__orb--1 {
  width: 420px; height: 420px;
  left: -120px; top: 10%;
  background: radial-gradient(circle, rgba(217,159,76,0.55), transparent 70%);
  animation-duration: 22s;
}
.hero__orb--2 {
  width: 360px; height: 360px;
  right: -100px; top: 40%;
  background: radial-gradient(circle, rgba(232,180,100,0.4), transparent 70%);
  animation-duration: 26s;
  animation-delay: -6s;
}
.hero__orb--3 {
  width: 280px; height: 280px;
  left: 40%; bottom: -80px;
  background: radial-gradient(circle, rgba(217,159,76,0.35), transparent 70%);
  animation-duration: 20s;
  animation-delay: -12s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -30px) scale(1.08); }
  66%      { transform: translate(-30px, 20px) scale(0.94); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(217,159,76,0.3);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-on-dark-muted);
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
  animation: badgeIn 0.9s var(--ease) both;
  animation-delay: 0.1s;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 0 rgba(232,180,100,0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232,180,100,0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(232,180,100,0); }
  100% { box-shadow: 0 0 0 0 rgba(232,180,100,0); }
}
@keyframes badgeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* Business card recreated */
.card {
  width: min(640px, 92%);
  padding: clamp(24px, 5vw, 44px) clamp(18px, 5vw, 48px);
  border: 1px solid rgba(217, 159, 76, 0.35);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0) 60%), rgba(19, 35, 48, 0.55);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,0.02);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: center;
  font-family: var(--font-head);
  color: #fff;
  animation: cardIn 0.9s var(--ease) both;
  animation-delay: 0.2s;
  position: relative;
}
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1.5px solid var(--accent);
  opacity: 0.7;
}
.card::before { top: -1px; left: -1px;  border-right: 0; border-bottom: 0; border-top-left-radius: var(--radius); }
.card::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--radius); }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
.card__top, .card__bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-weight: 500;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  letter-spacing: 0.05em;
  text-transform: lowercase;
}
.card__dot {
  color: var(--accent);
  font-weight: 700;
}
.card__rule {
  position: relative;
  height: 1px;
  margin: 18px auto;
  width: 100%;
  overflow: hidden;
}
.card__rule span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent) 15%, var(--accent) 85%, transparent);
  animation: drawLine 1.2s var(--ease) both;
  transform-origin: center;
}
.card__rule span { animation-delay: 0.4s; }
@keyframes drawLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.card__name {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
}
.card__name span {
  color: var(--accent);
  font-weight: 600;
  padding: 0 4px;
}
.card__name em {
  font-style: normal;
  font-weight: 500;
  opacity: 0.85;
  font-size: 0.65em;
  letter-spacing: 0.05em;
}

.hero__tagline {
  margin: 2.2rem 0 1.6rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-on-dark-muted);
  max-width: 640px;
  animation: cardIn 0.9s var(--ease) both;
  animation-delay: 0.55s;
}
.hero__tagline strong { color: var(--accent-bright); font-weight: 600; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  animation: cardIn 0.9s var(--ease) both;
  animation-delay: 0.7s;
}

/* ==========================================================
   MARQUEE TICKER
   ========================================================== */
.marquee {
  background: var(--bg-darkest);
  color: var(--accent-bright);
  border-top: 1px solid rgba(217,159,76,0.25);
  border-bottom: 1px solid rgba(217,159,76,0.25);
  overflow: hidden;
  padding: 18px 0;
  position: relative;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(90deg, var(--bg-darkest), transparent); }
.marquee::after  { right: 0; background: linear-gradient(-90deg, var(--bg-darkest), transparent); }
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.marquee__track span { padding-left: 40px; }
.marquee__dot {
  color: var(--accent) !important;
  padding-left: 40px !important;
  font-size: 0.7rem;
  opacity: 0.8;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================
   SERVICES
   ========================================================== */
.services {
  padding: clamp(64px, 10vw, 120px) 0;
  background: var(--bg-cream);
  position: relative;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.service {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}
.service::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease);
}
.service:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(217,159,76,0.4);
}
.service:hover::after { transform: scaleY(1); }
.service__icon {
  width: 56px; height: 56px;
  color: var(--accent-dark);
  background: rgba(217, 159, 76, 0.12);
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  transition: transform 0.35s var(--ease), background 0.3s;
}
.service:hover .service__icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(217,159,76,0.22);
}
.service__icon svg { width: 30px; height: 30px; }
.service h3 { color: var(--bg-dark); margin-bottom: 0.5rem; }
.service p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }

.service--more {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-darker));
  color: #fff;
  border: 1px solid rgba(217,159,76,0.2);
}
.service--more h3 { color: #fff; }
.service--more p { color: var(--text-on-dark-muted); }
.service--more p a { color: var(--accent-bright); border-bottom: 1px solid var(--accent-bright); }
.service--more .service__icon {
  background: rgba(217,159,76,0.15);
  color: var(--accent-bright);
}
.service--more::after { background: var(--accent-bright); }

/* ==========================================================
   ABOUT
   ========================================================== */
.about {
  padding: clamp(64px, 10vw, 120px) 0;
  background: var(--bg-white);
}
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about__text h2 { max-width: 20ch; }
.about__list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 10px;
}
.about__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 1rem;
}
.about__list span {
  flex: 0 0 26px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: rgba(217,159,76,0.15);
  color: var(--accent-dark);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.85rem;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--bg-dark);
  padding: 32px;
  border-radius: var(--radius-lg);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.about__stats::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,159,76,0.35), transparent 70%);
}
.stat {
  position: relative;
  padding: 14px 10px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--accent-bright);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.02em;
}

/* ==========================================================
   COMPARE (BEFORE / AFTER)
   ========================================================== */
.compare {
  padding: clamp(64px, 10vw, 120px) 0;
  background: linear-gradient(180deg, var(--bg-cream-2) 0%, var(--bg-cream) 100%);
  position: relative;
}
.compare__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}
.ba { margin: 0; }
.ba__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-dark);
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.ba__after,
.ba__before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba__before-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  will-change: width;
}
.ba__before-wrap .ba__before {
  width: 100vw;            /* recalc via JS set to parent width — fallback */
  max-width: none;
}
/* Proper fix: image fills frame regardless of wrapper width */
.ba__before-wrap { clip-path: inset(0 50% 0 0); width: 100%; }
.ba__before-wrap .ba__before { width: 100%; }

.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
}
.ba__line {
  position: absolute;
  inset: 0;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.ba__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 0 3px rgba(255,255,255,0.9);
  font-family: var(--font-head);
}
.ba__knob span { line-height: 1; }
.ba__label {
  position: absolute;
  top: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
  backdrop-filter: blur(6px);
}
.ba__label--before {
  left: 14px;
  background: rgba(13,26,36,0.7);
  color: #fff;
}
.ba__label--after {
  right: 14px;
  background: var(--accent);
  color: var(--bg-dark);
}
.ba__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
  z-index: 4;
}
.ba__range:focus-visible + .ba__handle .ba__knob {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}
.ba figcaption {
  margin-top: 14px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-align: center;
}

/* ==========================================================
   GALLERY
   ========================================================== */
.gallery {
  padding: clamp(64px, 10vw, 120px) 0;
  background: var(--bg-white);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-dark);
  margin: 0;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.tile:hover img { transform: scale(1.07); }
.tile figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 18px 14px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  background: linear-gradient(0deg, rgba(13,26,36,0.88), transparent);
  transform: translateY(4px);
  opacity: 0.95;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.tile:hover figcaption { transform: translateY(0); opacity: 1; }

.gallery__note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 2rem;
  font-style: italic;
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact {
  padding: clamp(64px, 10vw, 120px) 0;
  background: var(--bg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: -120px; left: -120px;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,159,76,0.18), transparent 65%);
  pointer-events: none;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  position: relative;
}
.contact__text h2 { color: #fff; max-width: 18ch; }
.contact__text p { color: var(--text-on-dark-muted); max-width: 48ch; }

.contact__list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 14px;
}
.contact__list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border-on-dark);
  font-size: 1.02rem;
}
.contact__list li:last-child { border-bottom: 1px solid var(--border-on-dark); }
.contact__label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--accent-bright);
  font-weight: 600;
}
.contact__list a { border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.contact__list a:hover { border-color: var(--accent); }

/* FORM */
.contact__form {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 34px);
  display: grid;
  gap: 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.field { display: grid; gap: 8px; }
.field--row {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field--row > div { display: grid; gap: 8px; }
.field label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
  font-weight: 600;
  font-family: var(--font-head);
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0,0,0,0.25);
  color: #fff;
  border: 1px solid var(--border-on-dark);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.98rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,0,0,0.4);
  box-shadow: 0 0 0 3px rgba(217,159,76,0.25);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.35); }
.contact__hint {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  margin: 0;
  text-align: center;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--bg-darkest);
  color: var(--text-on-dark-muted);
  padding: 36px 0 28px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  font-size: 0.9rem;
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__brand strong {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}
.footer__brand span {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
}
.footer__meta {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer__meta a {
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.footer__meta a:hover { color: var(--accent-bright); border-color: var(--accent-bright); }

/* ==========================================================
   LIGHTBOX
   ========================================================== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(13,26,36,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox.is-open { display: flex; animation: fadeIn 0.2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 20px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  display: grid; place-items: center;
  transition: background 0.2s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.18); }

/* ==========================================================
   REVEAL ANIMATIONS
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .about__stats { order: -1; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 100%;
    right: 16px; left: 16px;
    background: rgba(19, 35, 48, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-on-dark);
    border-radius: var(--radius);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  }
  .nav__menu.is-open {
    transform: translateY(8px);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__menu a { padding: 14px 18px; }
  .nav__menu .nav__cta { margin: 6px 0 0; text-align: center; }

  .marquee__track { font-size: 0.95rem; }
  .hero__orb { filter: blur(45px); opacity: 0.4; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .field--row { grid-template-columns: 1fr; }
  .contact__list li { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .hero { padding: 140px 0 80px; }
  .ba__knob { width: 42px; height: 42px; font-size: 1rem; }
  .ba__label { font-size: 0.65rem; padding: 3px 9px; }
}

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