/* ════════════════════════════════════════════
   LYCKA — Global Styles
   Grayscale Minimalism + Amber Gold
   ════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Backgrounds */
  --bg:          #0A0A0A;
  --bg-surface:  #111111;
  --bg-elevated: #1A1A1A;
  --bg-light:    #F5F4F0;

  /* Text */
  --text:        #FFFFFF;
  --text-dim:    rgba(255,255,255,0.75);
  --text-muted:  rgba(255,255,255,0.35);

  /* Accent */
  --gold:        #D4A828;
  --gold-dim:    rgba(212,168,40,0.15);
  --gold-glow:   rgba(212,168,40,0.4);

  /* Borders */
  --border:      rgba(255,255,255,0.06);

  /* Fonts */
  --font-display:  'DM Serif Display', serif;
  --font-heading:  'Space Grotesk', sans-serif;
  --font-body:     'IBM Plex Sans', sans-serif;
  --font-mono:     'IBM Plex Mono', monospace;

  /* Spacing */
  --space-section: 120px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Grain Overlay ─── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulance type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
nav#navbar,
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95) 0%, transparent 100%);
  transition: background 0.4s;
}
nav#navbar.scrolled,
nav.scrolled {
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(12px);
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  width: 100%;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 60px;
  position: relative;
}

.hero-logo {
  width: 180px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.4s forwards;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.22,1,0.36,1) 0.6s forwards;
}

.hero-title em,
.hero-subtitle em {
  color: var(--gold);
  font-style: italic;
  font-weight: inherit;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Floating Dots ─── */
.hero-dots {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.hero-dots span {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: var(--dot-o);
  animation: floatDot 5s ease-in-out infinite;
}
.hero-title, .hero-subtitle, .hero-logo {
  position: relative;
  z-index: 2;
}

@keyframes floatDot {
  0%   { transform: translateY(0) scale(1);   opacity: var(--dot-o); }
  50%  { transform: translateY(-50px) scale(1.15); opacity: calc(var(--dot-o) * 0.4); }
  100% { transform: translateY(0) scale(1);   opacity: var(--dot-o); }
}

/* ═══════════════════════════════════════════
   SECTION PATTERNS
   ═══════════════════════════════════════════ */
section {
  padding: var(--space-section) 60px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.section-headline em {
  color: var(--gold);
  font-style: italic;
}

/* Legacy support */
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.section-text {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 800px;
}

/* ═══════════════════════════════════════════
   CANVAS SECTION (replaces video)
   ═══════════════════════════════════════════ */
.canvas-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0;
  background: var(--bg);
}

.canvas-section canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.canvas-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: var(--space-section) 60px;
}

.canvas-content {
  max-width: 800px;
}

/* Legacy video support */
.intro-video-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0;
  background: var(--bg);
}
.intro-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  z-index: 0;
}
.intro-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: var(--space-section) 60px;
}
.intro-content {
  max-width: 800px;
}

/* Video inside canvas-section */
.canvas-section video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

/* ═══════════════════════════════════════════
   CONTENT SECTIONS
   ═══════════════════════════════════════════ */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-section) 60px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 60px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.content-card {
  padding: 48px 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.content-card:hover {
  background: var(--bg-surface);
}

.content-card .card-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 24px;
  line-height: 1;
}

.content-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--text);
}

.card-white {
  background: var(--bg-light);
}
.content-card.card-white h3 {
  color: #0A0A0A;
}
.content-card.card-white p {
  color: rgba(10,10,10,0.7);
}

.content-card p {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-dim);
}

.content-card ul {
  list-style: none;
  margin-top: 20px;
}

.content-card li {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-dim);
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
}

.content-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ═══════════════════════════════════════════
   FEATURED WORK
   ═══════════════════════════════════════════ */
.featured-work {
  max-width: 1200px;
  margin: 0 auto;
}

.featured-work-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.featured-work-card:hover {
  border-color: var(--gold-glow);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.featured-work-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.01) 100%);
  position: relative;
  overflow: hidden;
}

.featured-work-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--gold-dim) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.featured-work-card:hover .featured-work-image::before {
  opacity: 1;
}

.featured-work-image img {
  max-width: 180px;
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.featured-work-content {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-work-content h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--text);
}

.featured-work-content p {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.featured-work-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.featured-work-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 8px 16px;
  border: 1px solid rgba(212,168,40,0.3);
  border-radius: 2px;
  transition: background 0.3s, border-color 0.3s;
}

.featured-work-card:hover .featured-work-tag {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.featured-work-arrow {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
}

.featured-work-card:hover .featured-work-arrow {
  color: var(--gold);
}

/* ═══════════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════════ */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
  margin: 80px auto;
  max-width: 1200px;
}

/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */
.cta-section {
  background: var(--bg-surface);
  padding: var(--space-section) 60px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.cta-text {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  padding: 16px 48px;
  background: var(--gold);
  color: #0A0A0A;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--gold-glow);
}

/* ═══════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════ */
.contact-form {
  max-width: 600px;
  margin: 60px auto 0;
}

.form-group {
  margin-bottom: 32px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 18px;
  background: var(--gold);
  color: #0A0A0A;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--gold-glow);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
footer {
  background: var(--bg);
  padding: 80px 60px 48px;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-brand-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  vertical-align: middle;
}
.footer-brand-heading img {
  height: 28px;
  width: auto;
  display: block;
}
.footer-brand-heading h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.footer-brand h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 400px;
}

.footer-section h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--gold);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--text);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: 24px;
}

.footer-social a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--gold);
}

/* ═══════════════════════════════════════════
   HIGHLIGHT
   ═══════════════════════════════════════════ */
.highlight {
  color: var(--gold);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   PAGE HEADERS (services, about, contact)
   ═══════════════════════════════════════════ */
.page-header {
  padding-top: 160px;
  padding-bottom: 80px;
  text-align: center;
}

.page-header .section-eyebrow {
  margin-bottom: 20px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.page-header h1 em {
  color: var(--gold);
  font-style: italic;
}

.page-header p {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════
   MOBILE NAV (HAMBURGER)
   ═══════════════════════════════════════════ */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 1px;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5.5px, 5.5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -5.5px);
}

/* ─── 2-col grid modifier ─── */
.content-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

/* ─── Tablet ─── */
@media (max-width: 900px) {
  :root { --space-section: 80px; }
  nav, nav#navbar { padding: 20px 32px; }
  .nav-links { gap: 32px; }
  section, .content-section { padding: var(--space-section) 32px; }
  .hero { padding: 0 32px; }
  .content-grid { grid-template-columns: 1fr; border-left: none; }
  .content-grid--2col { grid-template-columns: 1fr; }
  .content-card { border-left: 1px solid var(--border); }
  .featured-work-card { grid-template-columns: 1fr; }
  .featured-work-image { padding: 48px; }
  .featured-work-content { padding: 40px; }
  .footer-content { grid-template-columns: 1fr; gap: 48px; }
  .footer-bottom { flex-direction: column; gap: 24px; text-align: center; }
  .canvas-overlay, .intro-overlay { padding: var(--space-section) 32px; }
  .divider { margin: 40px auto; }
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  /* Hamburger visible */
  .nav-toggle { display: block; }

  nav, nav#navbar {
    padding: 16px 24px;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
    z-index: 100;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }
  .nav-links li {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s, transform 0.3s;
  }
  .nav-links.open li {
    opacity: 1;
    transform: translateY(0);
  }
  .nav-links.open li:nth-child(1) { transition-delay: 0.08s; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.16s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.24s; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.32s; }

  .nav-links a {
    font-size: 20px;
    letter-spacing: 0.14em;
    padding: 20px 0;
    display: block;
  }
  .nav-links a::after { display: none; }

  /* Page header */
  .page-header {
    padding-top: 120px;
    padding-bottom: 48px;
  }

  /* Hero */
  .hero { padding: 0 24px; }
  .hero-title { margin-bottom: 24px; }

  /* Sections */
  :root { --space-section: 60px; }
  section, .content-section { padding: var(--space-section) 24px; }
  .canvas-overlay, .intro-overlay { padding: var(--space-section) 24px; }

  /* Cards */
  .content-card { padding: 36px 28px; }
  .content-card .card-number { font-size: 2rem; margin-bottom: 16px; }

  /* Featured work */
  .featured-work-image { padding: 36px; }
  .featured-work-content { padding: 32px; }
  .featured-work-content h3 { font-size: 26px; }
  .featured-work-content p { font-size: 15px; }
  .featured-work-tags { margin-bottom: 24px; }

  /* CTA */
  .cta-section { padding: 60px 24px; }
  .cta-button {
    display: block;
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
    padding: 18px 32px;
  }

  /* Footer */
  footer { padding: 60px 24px 40px; }
  .footer-content { gap: 40px; }
  .footer-brand p { font-size: 14px; }

  /* Divider */
  .divider { margin: 32px auto; }

  /* Contact form */
  .contact-form { margin-top: 40px; }
  .form-group { margin-bottom: 24px; }
}

/* ─── Small phones ─── */
@media (max-width: 400px) {
  nav, nav#navbar { padding: 14px 16px; }
  section, .content-section { padding: 48px 16px; }
  .canvas-overlay, .intro-overlay { padding: 48px 16px; }
  .hero { padding: 0 16px; }
  .content-card { padding: 28px 20px; }
  .featured-work-image { padding: 24px; }
  .featured-work-content { padding: 24px; }
  .featured-work-content h3 { font-size: 22px; }
  footer { padding: 48px 16px 32px; }
  .cta-section { padding: 48px 16px; }
}
