:root {
  --ink: #0c0a09;
  --paper: #f6efe6;
  --accent: #e0553a;
  --line: rgba(246, 239, 230, 0.16);
  --shadow: rgba(0, 0, 0, 0.5);
  --glass-bg: linear-gradient(160deg, rgba(58, 20, 14, 0.52), rgba(10, 6, 5, 0.62));
  --glass-border: rgba(246, 239, 230, 0.14);
  --header-h: 114px;
  --dock-h: 88px;

  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--paper);
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100%; margin: 0; overflow-x: clip; }
button { border: 0; font: inherit; background: none; }
img { max-width: 100%; display: block; }

/* ---------- Fixed video background ---------- */
.bg-video {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh;
  object-fit: cover; z-index: -2; display: block;
  background: var(--ink);
}
.bg-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(120% 90% at 50% 10%, rgba(8, 5, 4, 0.05) 0%, rgba(8, 5, 4, 0.55) 62%, rgba(6, 4, 3, 0.82) 100%),
    linear-gradient(180deg, rgba(6, 4, 3, 0.55) 0%, rgba(6, 4, 3, 0.28) 18%, rgba(6, 4, 3, 0.28) 82%, rgba(6, 4, 3, 0.6) 100%);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: flex-start;
  padding: 22px 24px 18px clamp(24px, 5vw, 64px);
}
.site-logo { display: block; }
.site-logo img { height: 72px; width: auto; opacity: 0.95; }

/* ---------- Dock (bottom-center nav) ---------- */
.dock {
  position: fixed; left: 50%; bottom: 22px; z-index: 60;
  transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 6px;
  padding: 10px; border-radius: 22px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.dock-item {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 14px;
  color: rgba(246, 239, 230, 0.72); text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.dock-item:hover, .dock-item:focus-visible {
  background: rgba(246, 239, 230, 0.08); color: var(--paper);
}
.dock-icon {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.dock-item:hover .dock-icon, .dock-item:focus-visible .dock-icon {
  transform: scale(1.3);
}
.dock-icon svg { width: 20px; height: 20px; flex: none; }

.dock-tooltip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 5;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none; opacity: 0; transform: translate(-50%, 6px) scale(0.94);
  transition: opacity 0.13s ease-out, transform 0.13s ease-out;
}
.dock-item:hover .dock-tooltip, .dock-item:focus-visible .dock-tooltip {
  opacity: 1; transform: translate(-50%, 0) scale(1);
}
.dock-tooltip-label {
  border-radius: 8px; border: 1px solid var(--glass-border); background: rgba(10, 6, 5, 0.92);
  padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--paper);
  white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.dock-tooltip-arrow { margin-top: -1px; color: rgba(10, 6, 5, 0.92); }

/* ---------- Content flow ---------- */
.content { position: relative; z-index: 1; }

.hero-section {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: calc(var(--header-h) + 24px) 24px calc(var(--dock-h) + 60px) clamp(24px, 6vw, 80px);
  text-align: left;
}
.hero-copy { max-width: min(94vw, 700px); }
.hero-kicker {
  display: block; margin-bottom: 20px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(246, 239, 230, 0.82);
}
.hero-title {
  margin: 0; font-family: "Inter", sans-serif; font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1.06; letter-spacing: -0.01em;
  color: var(--paper); text-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.hero-sub {
  margin: 22px 0 0; max-width: 520px; font-size: 1.05rem; font-weight: 500;
  line-height: 1.55; color: rgba(246, 239, 230, 0.88);
}
.hero-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 1.02rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.hero-cta:hover { transform: translateY(-2px); }
.hero-cta-solid { background: var(--paper); color: var(--ink); }
.hero-cta-ghost { background: transparent; color: var(--paper); border: 1px solid var(--glass-border); }

.scroll-cue {
  align-self: center;
  margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(246, 239, 230, 0.8); text-decoration: none; font-size: 12px;
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.scroll-cue i {
  width: 1px; height: 34px; background: linear-gradient(180deg, rgba(246, 239, 230, 0.85), transparent);
  position: relative; overflow: hidden; display: block;
}
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--paper); animation: cueDrop 1.8s ease-in-out infinite;
}
@keyframes cueDrop { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ---------- Section rhythm ---------- */
.work-section {
  padding: 56px 24px; display: flex; flex-direction: column; align-items: center;
}
.panel-kicker {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.about-section h2, .work-info h2, .contact-section h2,
.services-section h2, .homefaq-section h2 {
  margin: 0; font-family: "Bebas Neue", sans-serif; font-weight: 400; letter-spacing: 0.01em;
  font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.05; color: var(--paper);
}

/* ---------- Services ---------- */
.services-section {
  padding: 56px 24px 40px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.services-sub {
  max-width: 560px; margin: 14px 0 0; font-size: 1rem; line-height: 1.6;
  color: rgba(246, 239, 230, 0.72);
}
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; margin: 36px auto 0; width: 100%; max-width: 1180px;
}
.service-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 30px 26px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(58, 20, 14, 0.6), rgba(10, 6, 5, 0.75));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(246, 239, 230, 0.38); }
.service-icon {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 999px; margin-bottom: 18px;
  background: rgba(224, 85, 58, 0.14); border: 1px solid rgba(224, 85, 58, 0.4);
  color: var(--accent); flex: none;
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 {
  margin: 0 0 12px; font-family: "Bebas Neue", sans-serif; font-weight: 400;
  font-size: 1.45rem; letter-spacing: 0.01em; color: var(--paper); line-height: 1.15;
}
.service-card p {
  margin: 0; font-size: 0.92rem; line-height: 1.62; color: rgba(246, 239, 230, 0.75);
}
.service-card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  padding: 9px 18px; border-radius: 999px; background: var(--accent); color: var(--paper);
  font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background 0.2s ease;
}
.service-card-link:hover { background: #c8482f; }

/* ---------- Homepage FAQ (accordion) ---------- */
.homefaq-section {
  padding: 40px 24px 56px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.homefaq-grid {
  display: flex; flex-direction: column; gap: 12px;
  margin: 32px auto 0; width: 100%; max-width: 760px; text-align: left;
}
.homefaq-item {
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, rgba(58, 20, 14, 0.6), rgba(10, 6, 5, 0.75));
  border: 1px solid var(--glass-border);
  transition: border-color 0.2s ease;
}
.homefaq-item.is-open { border-color: rgba(224, 85, 58, 0.45); }
.homefaq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--paper);
}
.homefaq-toggle {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 999px;
  border: 1px solid rgba(224, 85, 58, 0.5); color: var(--accent);
  font-size: 16px; line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.homefaq-item.is-open .homefaq-toggle {
  transform: rotate(45deg); background: var(--accent); color: var(--paper);
}
.homefaq-answer-wrap {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.homefaq-answer p {
  margin: 0; padding: 0 22px 20px; font-size: 0.92rem; line-height: 1.6; color: rgba(246, 239, 230, 0.75);
}
.homefaq-answer p a { color: var(--accent); text-decoration: none; }
.homefaq-answer p a:hover { text-decoration: underline; }

/* ---------- About ---------- */
.about-section {
  padding: 72px 24px 56px clamp(24px, 6vw, 80px);
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left;
}
.about-copy { max-width: min(94vw, 620px); }
.about-section h2 { text-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.about-section p {
  max-width: 520px; margin: 22px 0 0; font-size: 1.02rem; line-height: 1.6;
  color: rgba(246, 239, 230, 0.78);
}
.expertise { margin-top: 48px; width: min(94vw, 500px); }
.expertise-title {
  margin: 0 0 22px; font-family: "Bebas Neue", sans-serif; font-weight: 400;
  font-size: 1.7rem; letter-spacing: 0.02em; color: var(--paper);
  padding-bottom: 10px; border-bottom: 3px solid var(--accent);
  display: inline-block;
}

.skills-list {
  display: flex; flex-direction: column; gap: 22px;
}
.skill-head {
  margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(246, 239, 230, 0.88);
}
.skill-track {
  position: relative; height: 5px; border-radius: 999px;
  background: rgba(246, 239, 230, 0.14); overflow: visible;
}
.skill-fill {
  position: absolute; inset: 0; width: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #f2a35c);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.skill-handle {
  position: absolute; top: 50%; left: 0; width: 13px; height: 13px;
  border-radius: 999px; background: var(--paper);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transform: translate(0, -50%);
  transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Work / portfolio (horizontal scroll) ---------- */
.work-section { display: block; padding: 0; position: relative; }
.work-sticky {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; align-items: center; gap: clamp(24px, 5vw, 64px);
  overflow: hidden;
  padding-left: clamp(24px, 6vw, 80px);
  will-change: opacity;
}
.work-info {
  flex: none; width: min(80vw, 340px);
  text-align: left; z-index: 2;
}
.work-info h2 {
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  min-height: 1.05em;
  opacity: 1; transform: translateX(0);
}
.work-info h2.is-updating {
  animation: workTitleIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-title-link {
  display: inline-flex; align-items: center; gap: 12px;
  color: inherit; text-decoration: none;
}
.work-title-link .live-badge { margin: 0; }
@keyframes workTitleIn {
  from { opacity: 0; transform: translateX(-42px); }
  to { opacity: 1; transform: translateX(0); }
}
.filter-row {
  display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin-top: 28px;
}
.filter-pill {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--glass-border);
  color: rgba(246, 239, 230, 0.75); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  background: rgba(10, 6, 5, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.filter-pill:hover { border-color: rgba(246, 239, 230, 0.4); color: var(--paper); }
.filter-pill.is-active { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.work-track-viewport {
  flex: 1 1 auto; height: 100%; overflow: hidden; position: relative;
  min-width: 0;
}
.work-track {
  display: flex; align-items: flex-end; gap: clamp(14px, 1.8vw, 24px);
  height: 100%; padding-right: clamp(24px, 6vw, 80px);
  padding-bottom: calc(var(--dock-h) + 56px);
  will-change: transform;
}
.work-card {
  position: relative; flex: none; border-radius: 16px; overflow: hidden;
  width: clamp(155px, 17vw, 225px); height: min(45vh, 320px);
  border: 1px solid var(--glass-border);
  background-color: #171310;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.25s ease;
}
.work-card:hover { transform: translateY(-4px); }
.card-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.work-card-soon {
  cursor: default; border-style: dashed; border-color: rgba(246, 239, 230, 0.22);
  background-color: rgba(246, 239, 230, 0.03);
}
.work-card-soon:hover { transform: none; }
.card-fill-soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; padding: 22px; text-align: center; gap: 10px;
}
.card-fill-soon .card-cat { margin: 0; }
.card-fill-soon .card-title {
  font-size: 1.05rem; font-weight: 700; color: rgba(246, 239, 230, 0.5);
}
.work-card .card-fill {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, transparent 55%);
}
.work-card .card-cat {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(246, 239, 230, 0.7); margin-bottom: 8px;
}
.work-card .card-title { font-size: 1.1rem; font-weight: 700; color: var(--paper); margin: 0; }
.card-title-link {
  display: inline-flex; align-items: center;
  color: var(--paper); text-decoration: none;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: #e0263c; color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: 0.03em;
  padding: 4px 8px 4px 5px; border-radius: 999px;
  line-height: 1; text-transform: uppercase;
  vertical-align: middle; margin: 0 8px 3px 0;
  transition: transform 0.18s ease;
}
.live-badge:hover { transform: scale(1.08); }
.live-badge-icon {
  position: relative; width: 12px; height: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.live-badge-dot { width: 5px; height: 5px; border-radius: 999px; background: #fff; }
.live-badge-pulse {
  position: absolute; inset: -1px; border-radius: 999px;
  border: 1.3px solid #fff; opacity: 0.75;
  animation: liveBadgePulse 1.5s ease-out infinite;
  pointer-events: none;
}
@keyframes liveBadgePulse {
  0% { transform: scale(0.6); opacity: 0.75; }
  100% { transform: scale(2.1); opacity: 0; }
}
.work-card.is-hidden { display: none; }

/* ---------- Contact ---------- */
.contact-section {
  padding: 72px 24px 56px clamp(24px, 6vw, 80px);
  display: flex; flex-direction: column; align-items: flex-start;
  text-align: left;
}
.contact-copy { max-width: min(94vw, 560px); }
.contact-section h2 { text-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.contact-section p {
  max-width: 460px; margin: 22px 0 0; font-size: 1.02rem; line-height: 1.6;
  color: rgba(246, 239, 230, 0.78);
}
.contact-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px;
}
.contact-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 30px; border-radius: 999px; background: var(--paper); color: var(--ink);
  text-decoration: none; font-weight: 600; font-size: 1.02rem;
}
.contact-cta-ghost {
  background: transparent; color: var(--paper); border: 1px solid var(--glass-border);
}
.site-footer {
  margin-top: 32px; padding: 22px 0 calc(var(--dock-h) + 40px);
  display: flex; align-items: center; justify-content: flex-start; gap: 14px; flex-wrap: wrap;
}
.site-footer img { height: 18px; width: auto; filter: invert(1) brightness(1.6) opacity(0.75); }
.site-footer span { font-size: 12.5px; color: rgba(246, 239, 230, 0.55); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(6, 4, 3, 0.94);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.lightbox-header {
  position: absolute; top: 26px; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; text-align: center;
  padding: 0 90px; font-family: "Bebas Neue", sans-serif; font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); letter-spacing: 0.01em;
  pointer-events: none;
}
.lightbox-title-link {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--paper); text-decoration: none;
  pointer-events: auto;
}
.lightbox-title-link .live-badge { margin: 0; }
.lightbox-stage { max-width: min(90vw, 1100px); max-height: 76vh; }
.lightbox-stage img {
  display: block; margin: 0 auto; max-width: 100%; max-height: 76vh;
  border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
.lightbox-close, .lightbox-nav {
  position: absolute; z-index: 3; display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 999px;
  background: rgba(246, 239, 230, 0.08); border: 1px solid var(--glass-border);
  color: var(--paper); font-size: 18px; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(246, 239, 230, 0.16); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-caption {
  position: absolute; bottom: 26px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  text-align: center; font-size: 13px; color: rgba(246, 239, 230, 0.7);
}
.lightbox-caption span:first-child { font-weight: 600; color: var(--paper); }

/* ---------- Media queries ---------- */
@media (max-width: 640px) {
  .dock { bottom: 16px; gap: 4px; padding: 8px; }
  .dock-item { width: 40px; height: 40px; }
  .work-sticky { gap: 20px; padding-left: 20px; }
  .work-info { width: 42vw; }
  .work-info h2 { font-size: 1.5rem; }
  .filter-row { display: none; }
  .work-card { width: clamp(112px, 32vw, 154px); height: 36vh; }
  .lightbox-close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dock-item, .dock-tooltip { transition: none; }
  .live-badge-pulse { animation: none; }
}
