/* ============================================
   FLUID — Static Site Stylesheet
   Pure CSS, no frameworks, no build step
   ============================================ */

/* ── Design Tokens ────────────────────────── */
:root {
  --bg: #080808;
  --charcoal: #0A0A0A;
  --surface: #121212;
  --surface-2: #1A1A1A;
  --text: #F5F5F0;
  --text-muted: rgba(245,245,240,0.62);
  --text-faint: rgba(245,245,240,0.32);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.18);
  --lime: #C6FF00;
  --cyan: #00D4FF;
  --orange: #FF6B35;
  --red: #FF3A3A;
  --purple: #7D5CFF;
  --sand: #E7E4DF;
  --fs-sans: 'Albert Sans', system-ui, sans-serif;
  --fs-display: 'Playfair Display', Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── Reset & Base ─────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--fs-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

::selection {
  background: var(--lime);
  color: #000;
}

/* ── Grain Overlay ────────────────────────── */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ── Layout ───────────────────────────────── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-1-2-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-1-2-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-1-2-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-end {
  align-items: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ── Spacing ──────────────────────────────── */
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.pt-20 { padding-top: 5rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-12 { padding-bottom: 3rem; }
.pb-24 { padding-bottom: 6rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-20 { margin-bottom: 5rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-12 > * + * { margin-top: 3rem; }

/* ── Typography ───────────────────────────── */
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }

.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

.tracking-wide { letter-spacing: 0.18em; }
.tracking-wider { letter-spacing: 0.22em; }
.tracking-widest { letter-spacing: 0.28em; }

.uppercase { text-transform: uppercase; }

.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-lime { color: var(--lime); }

.display {
  font-family: var(--fs-display);
  font-style: italic;
}

.label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--text-muted);
}

.label-sm {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
}

/* ── Hero Typography ──────────────────────── */
.hero-title {
  font-size: clamp(56px, 11vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.section-title {
  font-size: clamp(32px, 4.4vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-weight: 400;
}

/* Disciplines intro */
.disciplines-title {
  max-width: 100%;
}

.page-title {
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 400;
}

.about-title {
  font-size: clamp(40px, 6.4vw, 108px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-weight: 400;
  max-width: 1200px;
}

.contact-title {
  font-size: clamp(56px, 12vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 400;
}

.footer-cta {
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1;
  font-weight: 400;
}

/* ── Components ───────────────────────────── */

/* Footer */
footer {
  padding: 5rem 2rem 2.5rem;
  background: var(--charcoal);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}

.footer-bottom a:hover {
  color: var(--text);
  transition: color 0.2s ease;
}

/* Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-radius: 9999px;
  background: var(--lime);
  color: #000;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}

.btn-pill:hover {
  transform: scale(1.02);
}

.btn-pill:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Filter pills */
.filter-pill {
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.filter-pill.active {
  background: var(--lime);
  color: #000;
  border-color: var(--lime);
}

/* Cards */
.card-image {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 0.5px solid var(--border);
}

.card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
  filter: grayscale(15%) contrast(1.05);
}

.card-hover:hover .card-image img {
  transform: scale(1.04);
}

.card-hover:hover .card-title {
  font-style: italic;
}

.card-hover:hover .card-arrow {
  opacity: 1;
}

.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: rgba(8,8,8,0.7);
  backdrop-filter: blur(10px);
}

.card-arrow {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  color: #000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  transition: font-style 0.3s ease;
}

@media (min-width: 768px) {
  .card-title {
    font-size: 1.5rem;
  }
}

/* Category colors */
.tag-cyan { color: var(--cyan); }
.tag-orange { color: var(--orange); }
.tag-lime { color: var(--lime); }
.tag-red { color: var(--red); }
.tag-purple { color: var(--purple); }
.tag-sand { color: var(--sand); }

/* Service cards */
.service-card {
  padding: 2.5rem;
  background: var(--bg);
  transition: background 0.3s ease;
}

.service-card:hover {
  background: rgba(255,255,255,0.02);
}

/* Form fields */
.form-field {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--border-strong);
  color: var(--text);
  font-size: 1.125rem;
  padding-bottom: 0.75rem;
  outline: none;
  resize: none;
}

.form-field:focus {
  border-bottom-color: var(--lime);
}

/* Location pills */
.location-pill {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  border: 0.5px solid var(--border-strong);
}

/* ── Animations ───────────────────────────── */

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Marquee */
@keyframes mqslide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mq-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: mqslide 30s linear infinite;
  will-change: transform;
}

.mq-track-slow {
  animation: mqslide 60s linear infinite;
}

/* Pulse dot */
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(198,255,0,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(198,255,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(198,255,0,0); }
}

.pulse-dot {
  animation: pulseDot 2.2s ease-out infinite;
}

/* ── Utilities ────────────────────────────── */
.overflow-hidden { overflow: hidden; }
.whitespace-nowrap { white-space: nowrap; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
.rounded-md { border-radius: 0.375rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.shrink-0 { flex-shrink: 0; }
.cursor-pointer { cursor: pointer; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.text-center { text-align: center; }

/* Aspect ratios */
.aspect-4-3 { aspect-ratio: 4/3; }
.aspect-4-5 { aspect-ratio: 4/5; }
.aspect-16-9 { aspect-ratio: 16/9; }

/* Hidden on mobile */
@media (max-width: 767px) {
  .hidden-mobile { display: none; }
}

/* Hidden on desktop */
@media (min-width: 768px) {
  .hidden-desktop { display: none; }
}

@media (max-width: 767px) {
  .grid-12 {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(40px, 14vw, 80px);
  }

  .about-title {
    font-size: clamp(32px, 10vw, 60px);
  }

  .page-title {
    font-size: clamp(36px, 12vw, 80px);
  }

  .contact-title {
    font-size: clamp(40px, 14vw, 80px);
  }

  .disciplines-title {
    font-size: clamp(30px, 9.5vw, 44px);
    line-height: 1.1;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-12 {
    grid-template-columns: repeat(6, 1fr);
  }

  .disciplines-intro .label {
    grid-column: span 1;
  }

  .disciplines-intro .disciplines-title {
    grid-column: span 5;
  }
}

/* Large screens */
@media (min-width: 1024px) {
  .col-span-3 { grid-column: span 3; }
  .col-span-5 { grid-column: span 5; }
  .col-span-6 { grid-column: span 6; }
  .col-span-7 { grid-column: span 7; }
  .col-span-9 { grid-column: span 9; }
  .col-start-1 { grid-column-start: 1; }
  .col-start-6 { grid-column-start: 6; }
  .col-start-7 { grid-column-start: 7; }

  .disciplines-intro .label {
    grid-column: span 2;
  }

  .disciplines-intro .disciplines-title {
    grid-column: span 10;
  }
}

/* Responsive typography */
@media (min-width: 768px) {
  .md-text-3xl { font-size: 1.875rem; }
  .md-text-4xl { font-size: 2.25rem; }
}

/* 3-column grid on desktop */
@media (min-width: 768px) {
  .grid-3-desktop { grid-template-columns: repeat(3, 1fr); }
}

.flex-wrap { flex-wrap: wrap; }
.img-editorial {
  filter: grayscale(15%) contrast(1.05);
}

.img-editorial-strong {
  filter: grayscale(20%) contrast(1.05);
}

/* Transitions */
.transition-colors {
  transition: color 0.2s ease, background-color 0.2s ease;
}

.transition-transform {
  transition: transform 0.3s ease;
}
