/* Flow-Creative */

/* Fonts (self-hosted, no third-party requests) */
@font-face { font-family: 'Anton'; src: url('../fonts/anton-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('../fonts/inter-tight-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('../fonts/inter-tight-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('../fonts/inter-tight-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #0B0B0C;
  --surface: #17171A;
  --line: #26262A;
  --line-strong: #3A3A40;
  --text: #F2F0EB;
  --text-soft: #C9C7C1;
  --muted: #A3A19B;
  --accent: #C8FF3D;
  --display: 'Anton', 'Impact', sans-serif;
  --body: 'Inter Tight', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

@property --r {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

.accent { color: var(--accent); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-border { border-top: 1px solid var(--line); }

.label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.9;
  text-transform: uppercase;
}

.statement {
  margin: 0;
  max-width: 1180px;
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--text);
  padding: 12px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn-lg { padding: 16px 24px; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-accent:hover { background: var(--text); border-color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 11, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0.02em;
}
.logo:hover { color: var(--text); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

/* Marquees */

@keyframes slide-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes slide-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.track { display: flex; width: max-content; white-space: nowrap; }
.track-left { animation: slide-left 38s linear infinite; }
.track-right { animation: slide-right 44s linear infinite; }
.track-slow { animation: slide-left 60s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .track-left, .track-right, .track-slow { animation: none; }
}

/* Hero */

.hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.marquee {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--display);
  font-size: clamp(64px, 12vw, 184px);
  line-height: 0.92;
  text-transform: uppercase;
}
.marquee span { padding-right: 0.4em; }
.marquee .outline { -webkit-text-stroke: 2px var(--text); color: transparent; }

/* About */

.statement-block {
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: clamp(72px, 10vw, 140px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Work */

.work-head {
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(64px, 8vw, 112px);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
}
.work-title { display: flex; flex-direction: column; gap: 14px; }

/* Work: sticky stacking case studies */

.stack { position: relative; padding-bottom: 12vh; }

.stack-slot {
  position: sticky;
  top: 0;
  height: 85vh;
  min-height: 560px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(80px, 11vh, 112px) var(--gutter) 0;
}

.stack-card {
  position: relative;
  top: calc(var(--i) * 20px);
  width: min(1328px, 100%);
  height: calc(100% - 24px - var(--i) * 20px);
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  padding: clamp(12px, 1.6vw, 20px);
  border-radius: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line-strong);
  background: #141416;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.55);
  transform-origin: top center;
  will-change: transform;
}

.case-text {
  flex: 1 1 38%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(12px, 2vw, 32px);
}
.case-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.case-num { font-family: var(--display); font-size: 22px; color: var(--accent); }
.case-head { display: flex; flex-direction: column; gap: 14px; }
.case-brand { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(36px, 4.4vw, 72px); line-height: 0.92; text-transform: uppercase; }
.case-title { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }
.case-link { align-self: flex-start; }

.case-media {
  --x: 50%;
  --y: 50%;
  --r: 0px;
  flex: 1 1 62%;
  min-width: 0;
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: clamp(16px, 2vw, 28px);
  background: var(--bg);
  transition: --r .45s cubic-bezier(.2, .8, .2, 1);
}
.case-media:hover .media { transform: scale(1.04); }

@media (max-width: 860px) {
  .stack-slot { height: 88vh; padding-top: 184px; }
  .stack-card { flex-direction: column-reverse; }
  .case-media { flex: 1 1 auto; min-height: 0; }
  .case-text { flex: 0 0 auto; gap: 16px; padding: 8px 8px 12px; }
  .case-brand { font-size: clamp(30px, 8vw, 44px); }
}

.tile {
  --x: 50%;
  --y: 50%;
  --r: 0px;
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  transition: --r .45s cubic-bezier(.2, .8, .2, 1);
}
.tile:hover { color: var(--text); }
.tile-full { grid-column: 1 / -1; aspect-ratio: 16 / 9; }

.media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.tile:hover .media { transform: scale(1.03); }

/* Lens hover effect */
.lens {
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: circle(var(--r) at var(--x) var(--y));
}
.lens .media { filter: grayscale(1) contrast(1.35) brightness(1.15); }
.lens-tint { position: absolute; inset: 0; background: var(--accent); mix-blend-mode: multiply; }
@media (hover: none) { .lens { display: none; } }

.tile-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(20px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), rgba(0,0,0,0));
}
.tile-full .tile-meta { padding: clamp(24px, 4vw, 56px); }

.tile-brand {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 0.95;
  text-transform: uppercase;
}
.tile-full .tile-brand { font-size: clamp(40px, 5vw, 80px); }

.tile-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(242, 240, 235, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.tag-accent { background: var(--accent); color: var(--bg); }

/* Approach */

.approach {
  border-top: 1px solid var(--line);
  background: var(--accent);
  color: var(--bg);
}
.approach .container {
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: clamp(72px, 10vw, 140px);
}

/* Services */

.services {
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(64px, 8vw, 112px);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border-top: 1px solid var(--line-strong);
}

.service {
  padding: 32px 32px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-bottom: 1px solid var(--line-strong);
}
.service-num { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--accent); }
.service h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; text-transform: uppercase; }
.service p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-soft); }

/* Brands */

.brands {
  padding: clamp(56px, 7vw, 96px) 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
  overflow: hidden;
}

.brands-head {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-end;
}
.brands-head p { margin: 0; max-width: 620px; font-size: 20px; line-height: 1.4; }

.brands-track {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  text-transform: uppercase;
}
.brands-track span { display: flex; align-items: center; gap: 0.5em; padding-right: 0.5em; }
.brands-track i { font-style: normal; color: var(--accent); font-size: 0.5em; }

/* Footer */

.footer {
  padding-top: clamp(72px, 10vw, 140px);
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.footer-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 168px);
  line-height: 0.9;
  text-transform: uppercase;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px;
}
.footer-grid > div { display: flex; flex-direction: column; gap: 10px; font-size: 18px; line-height: 1.4; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* Footer legal links */

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--muted);
  cursor: pointer;
}
.link-btn:hover { color: var(--accent); }

/* Smaller Mercedes frame */

.tile-narrow {
  width: 100%;
  max-width: 960px;
  justify-self: center;
  margin: clamp(32px, 5vw, 72px) 0 0;
}

/* Legal pop-ups */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay[hidden] { display: none; }

.modal {
  width: 100%;
  max-width: 680px;
  max-height: min(80vh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-strong);
}
.modal-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: 28px; line-height: 1; text-transform: uppercase; }
.modal-close {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
}
.modal-close:hover { border-color: var(--accent); color: var(--accent); }

.modal-body { padding: 24px; overflow-y: auto; font-size: 15px; line-height: 1.7; color: var(--text-soft); }
.modal-body h3 { margin: 24px 0 6px; font-size: 15px; font-weight: 600; color: var(--text); }
.modal-body p { margin: 0 0 10px; }
.modal-body ul { margin: 0 0 10px; padding-left: 20px; }
.modal-body li { margin-bottom: 4px; }
.modal-body strong { color: var(--text); font-weight: 600; }
.modal-body a { color: var(--accent); text-decoration: underline; }
.modal-effective { font-size: 13px; color: var(--muted); }

body.modal-open { overflow: hidden; }
