/* =============================================================================
   LZK PORTFOLIO - Index Page Styles (Refactored)
   Consolidated from inline <style> tags + site.css variables
   
   Date: February 6, 2026
   Changes:
   - Extracted 617 lines of inline CSS from index.html
   - Consolidated duplicate :root blocks
   - Removed broken/incomplete CSS rules
   - Removed duplicate media queries
   - Normalized formatting
   ============================================================================= */

/* =============================================================================
   CSS VARIABLES (Consolidated)
   All variables from inline styles + site.css merged here
   ============================================================================= */
:root {
  /* Base colors */
  --c-black: #000;
  --c-white: #fff;
  --c-cyan: #39d7ff;
  --c-cyan-soft: #8fe9ff;
  --c-magenta: #ff3bd1;
  
  /* Foreground/Background */
  --bg: var(--c-black);
  --fg: var(--c-white);
  --muted: rgba(255, 255, 255, 0.72);
  --muted2: rgba(255, 255, 255, 0.52);
  --line: rgba(255, 255, 255, 0.14);
  --soft: rgba(255, 255, 255, 0.08);
  
  /* White overlays (opacity-based) */
  --w-04: rgba(255, 255, 255, 0.04);
  --w-05: rgba(255, 255, 255, 0.05);
  --w-06: rgba(255, 255, 255, 0.06);
  --w-08: rgba(255, 255, 255, 0.08);
  --w-10: rgba(255, 255, 255, 0.10);
  --w-14: rgba(255, 255, 255, 0.14);
  --w-22: rgba(255, 255, 255, 0.22);
  
  /* Black overlays (opacity-based) */
  --b-45: rgba(0, 0, 0, 0.45);
  --b-55: rgba(0, 0, 0, 0.55);
  --b-65: rgba(0, 0, 0, 0.65);
  --b-88: rgba(0, 0, 0, 0.88);
  --b-96: rgba(0, 0, 0, 0.96);
  
  /* Semantic tokens */
  --panel-bg: var(--w-06);
  --pill-bg: var(--w-04);
  --hairline: var(--line);
  --glass-bg: var(--w-06);
  --glass-bg-soft: var(--w-04);
  --glass-bg-strong: var(--w-10);
  --glass-border: var(--line);
  --glass-border-soft: var(--soft);
  --overlay-dim: var(--b-55);
  --overlay-deep: var(--b-88);
  
  /* Layout */
  --max: 1100px;
  --pad: 22px;
  --radius: 18px;
  --radius2: 12px;
  --topbar-h: 64px;
  
  /* Shadows */
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-elev: var(--shadow);
  --shadow-lift: 0 20px 60px rgba(0, 0, 0, 0.55);
  
  /* Typography */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --fs-h1: clamp(40px, 5vw, 52px);
  --fs-h2: clamp(26px, 3vw, 32px);
  --fs-h3: 18px;
  --fs-body: 16px;
  --fs-lead: 18px;
  --lh-tight: 1.15;
  --lh-normal: 1.45;
  --lh-loose: 1.65;
  
  /* Motion */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.2s;
  --t-med: 0.35s;
  --t-slow: 0.6s;
  
  /* Z-index layers */
  --z-modal: 9000;
  --z-overlay: 8000;
  --z-nav: 7000;
  
  /* UI borders */
  --border-subtle: 1px solid rgba(255, 255, 255, 0.12);
}

/* =============================================================================
   BASE / RESET
   ============================================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  letter-spacing: 0.15px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: none;
  outline-offset: 3px;
  border-radius: 10px;
}

/* =============================================================================
   LAYOUT HELPERS
   ============================================================================= */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.container.narrow {
  max-width: 860px;
}

/* =============================================================================
   SECTIONS & VERTICAL RHYTHM
   ============================================================================= */

.section {
  padding: clamp(56px, 7vw, 92px) 0;
}

.section h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  margin: 0 0 14px;
  letter-spacing: 0.2px;
}

.section p {
  margin: 10px 0;
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
}

.section .container.narrow p + p {
  margin-top: 12px;
}

.section .container.narrow h2 + p {
  margin-top: 10px;
}

.section .container.narrow p + .lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-loose);
  color: var(--fg);
  opacity: 0.92;
}

.lead {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--fg);
  opacity: 0.92;
  max-width: 70ch;
}

.section-intro {
  color: var(--muted);
  max-width: 70ch;
}

.eyebrow {
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-size: 11px;
  margin: 0 0 8px;
}

/* =============================================================================
   TOPBAR / NAVIGATION
   ============================================================================= */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(120%) blur(10px);
  z-index: 1000;
}

.topbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.logo {
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
}

.logo:hover {
  background: var(--soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav a,
.nav button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font: inherit;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.nav a:hover,
.nav button:hover {
  background: var(--soft);
  color: var(--fg);
}

.nav-cta {
  color: var(--fg) !important;
  border: none;
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.10);
}

/* Dropdown menu */
.nav-services {
  position: relative;
}

.nav-services::after {
  content: "▾";
  margin-left: 8px;
  opacity: 0.8;
}

.topbar .nav {
  position: relative;
}

.services-menu {
  position: absolute;
  top: calc(var(--topbar-h) - 6px);
  right: calc(var(--pad));
  width: min(320px, calc(100vw - 2 * var(--pad)));
  background: rgba(0, 0, 0, 0.96);
  border: none;
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow);
  display: none;
}

.services-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-radius: 12px;
  color: var(--muted);
  border: none;
}

.services-menu a:hover {
  background: var(--soft);
  color: var(--fg);
  border-color: rgba(255, 255, 255, 0.10);
}

.services-menu small {
  color: var(--muted2);
}

/* Offset for fixed topbar */
main {
  padding-top: var(--topbar-h);
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero {
  position: relative;
  padding: clamp(84px, 9vw, 120px) 0 clamp(56px, 6vw, 84px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 520px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0));
  pointer-events: none;
  filter: blur(8px);
  opacity: 0.9;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  opacity: 0.9;
}

.hero .container {
  position: relative;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.hero-divider {
  margin-top: 18px;
  height: 1px;
  width: min(520px, 100%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
  opacity: 0.9;
}

.hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.02;
  margin: 0 0 18px;
  letter-spacing: -0.6px;
}

.hero h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  opacity: 0.6;
}

.hero-sub {
  font-size: var(--fs-lead);
  line-height: 1.4;
  margin: 0 0 14px;
  color: var(--fg);
  opacity: 0.94;
  max-width: 68ch;
}

.hero-desc {
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: none;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
  cursor: pointer;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: rgba(255, 255, 255, 0.14);
}

.btn.primary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn.secondary {
  background: transparent;
}

body.home .btn.secondary {
  background: transparent;
}

/* =============================================================================
   REEL PLACEHOLDER
   ============================================================================= */

.reel-placeholder {
  height: 420px;
  background: var(--w-04);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

/* =============================================================================
   SERVICES GRID
   ============================================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}

.service-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--w-04);
  border: 1px solid var(--line);
}

.service-card h3 {
  font-size: var(--fs-h3);
  margin: 0 0 12px;
  font-weight: 600;
}

.service-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* Force 4 columns on services grid */
.section.services .services-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
}

/* =============================================================================
   PROCESS ICONS
   ============================================================================= */

.process-icons {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.pitem {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.picon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: var(--w-04);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 6px;
}

.picon svg {
  width: 26px;
  height: 26px;
  color: rgba(255, 255, 255, 0.78);
}

.ptitle {
  font-size: 15px;
  letter-spacing: 0.2px;
  color: var(--fg);
  margin: 0 0 6px;
  font-weight: 600;
}

.pdesc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.section.process .pitem {
  margin: 0 !important;
}

.section.process .pdesc {
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: 22ch;
  margin-inline: auto;
}

.process-list {
  margin: 16px 0 10px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.process-list li {
  margin: 12px 0;
}

.process-list strong {
  color: var(--fg);
  font-weight: 600;
}

.process-claim {
  margin-top: 14px;
  color: var(--fg);
  opacity: 0.9;
}

/* =============================================================================
   WHY SECTION
   ============================================================================= */

.why-list {
  margin: 12px 0 12px;
  padding-left: 18px;
  color: var(--muted);
}

.why-list li {
  margin: 10px 0;
}

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

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.portfolio-item {
  height: 220px;
  border-radius: 18px;
  border: none;
  display: block;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  position: relative;
}

.portfolio-item.has-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

/* Remove play overlay on modal-trigger thumbs */
.portfolio-modal::before,
.portfolio-modal::after {
  content: none !important;
  display: none !important;
}

.portfolio-modal {
  cursor: pointer;
}

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

.section.contact.contact-band {
  border-top: 0;
  border-bottom: 0;
  margin-top: 0;
  padding: clamp(56px, 7vw, 92px) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: 28px;
  align-items: center;
}

.contact-visual {
  display: flex;
  justify-content: flex-end;
}

.contact-visual img {
  width: min(320px, 100%);
  height: auto;
  filter: drop-shadow(0 18px 50px rgba(0, 0, 0, 0.55));
}

.contact-copy h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin: 0 0 10px;
}

.contact-copy p {
  margin-top: 10px;
}

.contact-links {
  margin-top: 14px;
}

.contact-links a {
  color: var(--accent);
}

/* =============================================================================
   CTA SECTION
   ============================================================================= */

.cta {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.cta-buttons {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  color: var(--muted2);
  font-size: 13px;
}

/* =============================================================================
   MODAL VIDEO (Portfolio)
   ============================================================================= */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  padding: 20px;
}

.modal[aria-hidden="false"] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(980px, 100%);
  background: rgba(10, 10, 10, 0.92);
  border: none;
  border-radius: 18px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  max-height: calc(100vh - 40px);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg);
  cursor: pointer;
  z-index: 2;
}

.modal__frame {
  aspect-ratio: 16/9;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
}

.modal__frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  background: var(--panel-bg);
}

/* =============================================================================
   RESPONSIVE: TABLET (< 1200px)
   ============================================================================= */

@media (max-width: 1200px) {
  .process-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .section.process .process-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =============================================================================
   RESPONSIVE: TABLET (< 1100px)
   ============================================================================= */

@media (max-width: 1100px) {
  .section.services .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* =============================================================================
   RESPONSIVE: TABLET/MOBILE (< 980px)
   ============================================================================= */

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =============================================================================
   RESPONSIVE: TABLET (< 700px)
   ============================================================================= */

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }
  
  .contact-visual {
    justify-content: center;
    order: -1;
  }
}

/* =============================================================================
   RESPONSIVE: MOBILE (< 640px)
   ============================================================================= */

@media (max-width: 640px) {
  .section.services .services-grid {
    grid-template-columns: 1fr !important;
  }
  
  .process-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .section.process .process-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .pitem {
    text-align: left;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    align-items: center;
  }
  
  .picon {
    margin: 0;
  }
  
  .ptitle {
    margin: 0 0 4px;
  }
}

/* =============================================================================
   RESPONSIVE: MOBILE (< 620px)
   ============================================================================= */

@media (max-width: 620px) {
  .nav a {
    display: none;
  }
  
  .nav a.nav-cta {
    display: inline-flex;
  }
  
  .services-menu {
    right: var(--pad);
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .reel-placeholder {
    height: 280px;
  }
}
