/* 02-creative-studio — Light motion-driven creative studio */

:root {
  --bg: #FAFAFA;
  --bg-alt: #FFFFFF;
  --text: #09090B;
  --text-muted: #71717A;
  --accent: #2563EB;
  --accent-light: rgba(37, 99, 235, 0.08);
  --border: #E4E4E7;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --max-width: 76rem;
  --nav-height: 4.5rem;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border-radius: 999px;
}

.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.scrolled {
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: var(--accent-light);
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  padding: 0.5rem;
  cursor: pointer;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.15;
}

/* Hero with animation */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 12s ease-in-out infinite;
}

.hero-orb--1 {
  width: 40vw;
  height: 40vw;
  background: #93C5FD;
  top: -10%;
  right: -10%;
}

.hero-orb--2 {
  width: 30vw;
  height: 30vw;
  background: #C4B5FD;
  bottom: 10%;
  left: -5%;
  animation-delay: -4s;
}

.hero-orb--3 {
  width: 20vw;
  height: 20vw;
  background: #FDE68A;
  top: 40%;
  left: 40%;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 2rem;
  animation: fadeUp 0.8s var(--ease) both;
}

.hero-badge svg { width: 1rem; height: 1rem; color: var(--accent); }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1.5rem;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 0 2.5rem;
  animation: fadeUp 0.8s var(--ease) 0.2s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeUp 0.8s var(--ease) 0.3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Parallax sections */
.parallax-section {
  position: relative;
  padding: 8rem 0;
  background: var(--bg-alt);
  overflow: hidden;
}

.parallax-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.parallax-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700;
  color: var(--bg);
  -webkit-text-stroke: 1px var(--border);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: transparent;
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background: var(--accent-light);
  border-radius: 0.875rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.service-card:hover .service-icon {
  background: var(--accent);
  transform: scale(1.1);
}

.service-card:hover .service-icon svg { color: white; }

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
  transition: color 0.3s var(--ease);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.7;
}

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.work-item {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--border);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.work-item--large { grid-column: span 7; }
.work-item--medium { grid-column: span 5; }
.work-item--small { grid-column: span 4; }

.work-item-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease);
}

.work-item:hover .work-item-bg { transform: scale(1.08); }

.work-item--1 .work-item-bg { background: linear-gradient(135deg, #2563EB, #7C3AED); }
.work-item--2 .work-item-bg { background: linear-gradient(135deg, #059669, #0D9488); }
.work-item--3 .work-item-bg { background: linear-gradient(135deg, #DC2626, #EA580C); }
.work-item--4 .work-item-bg { background: linear-gradient(135deg, #7C3AED, #DB2777); }
.work-item--5 .work-item-bg { background: linear-gradient(135deg, #0891B2, #2563EB); }
.work-item--6 .work-item-bg { background: linear-gradient(135deg, #CA8A04, #EA580C); }

.work-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: white;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.work-item:hover .work-item-overlay { opacity: 1; }

.work-item-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.work-item-overlay p {
  font-size: 0.875rem;
  opacity: 0.85;
  margin: 0;
}

.work-item-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: white;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 1rem;
}

.contact-info > p {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-details svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.contact-details strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
  outline: none;
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 1rem 0 0;
  max-width: 24rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 0.625rem; }

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 0.3s var(--ease);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.social-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

.social-links svg { width: 1.125rem; height: 1.125rem; }

/* Responsive */
@media (max-width: 900px) {
  .work-item--large,
  .work-item--medium,
  .work-item--small { grid-column: span 12; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
  }

  .nav-links.is-open { display: flex; }

  .form-row { grid-template-columns: 1fr; }
}
