/* ============================================================
   VLAD — Portfolio CV
   Built on COAS Design System
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--coas-black);
  color: var(--fg);
  font-family: var(--font-sans);
  overflow-x: hidden;
  cursor: default;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Animated blurred shapes (smoke / fog) ---------- */
.fog-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.fog {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.fog.white  { background: #ffffff; }
.fog.red    { background: #E60012; opacity: 0.32; }
.fog.cool   { background: #b9c8d6; opacity: 0.28; }

.fog-1 { width: 56vw; height: 56vw; top: -10%; left: -15%; animation: drift1 22s ease-in-out infinite alternate; }
.fog-2 { width: 44vw; height: 44vw; top: 30%;  right: -20%; animation: drift2 28s ease-in-out infinite alternate; }
.fog-3 { width: 38vw; height: 38vw; top: 70%;  left: 10%;   animation: drift3 26s ease-in-out infinite alternate; }
.fog-4 { width: 30vw; height: 30vw; top: 110%; right: 5%;   animation: drift4 32s ease-in-out infinite alternate; }
.fog-5 { width: 50vw; height: 50vw; top: 160%; left: -10%;  animation: drift1 30s ease-in-out infinite alternate-reverse; }
.fog-6 { width: 36vw; height: 36vw; top: 220%; right: -10%; animation: drift2 24s ease-in-out infinite alternate; }
.fog-7 { width: 42vw; height: 42vw; top: 280%; left: 30%;   animation: drift3 36s ease-in-out infinite alternate-reverse; }
.fog-8 { width: 28vw; height: 28vw; top: 340%; right: 20%;  animation: drift4 28s ease-in-out infinite alternate; }

@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(8vw, 6vh) scale(1.2); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-6vw, 8vh) scale(0.9); } }
@keyframes drift3 { from { transform: translate(0,0) scale(0.95); } to { transform: translate(10vw, -4vh) scale(1.15); } }
@keyframes drift4 { from { transform: translate(0,0) scale(1.1); } to { transform: translate(-4vw, -6vh) scale(0.85); } }

/* ---------- Layout ---------- */
.shell { position: relative; z-index: 1; }
section { position: relative; padding: clamp(80px, 12vh, 160px) clamp(24px, 6vw, 96px); }
.container { max-width: 1600px; margin: 0 auto; }

/* ---------- Top status bar (paper-printed style) ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
}
.topbar .left, .topbar .right { display: flex; gap: 18px; align-items: center; }
.topbar .dot { width: 6px; height: 6px; background: var(--coas-red); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity: 0.3; } }
.topbar a:hover { color: var(--coas-fog); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: center;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 32px;
}
.hero-eyebrow .line { width: 60px; height: 1px; background: var(--fg-2); }
.hero-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(80px, 16vw, 280px);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-name span { display: block; }
.hero-name .outline {
  -webkit-text-stroke: 2px #fff;
  color: transparent;
}
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(18px, 1.6vw, 24px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-2);
  max-width: 720px;
  margin-bottom: 48px;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  max-width: 800px;
}
.hero-meta .cell { }
.hero-meta .label {
  font-size: 10px;
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 6px;
}
.hero-meta .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.hero-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 2px solid #fff;
  transition: box-shadow 0.5s ease;
}
.hero-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter 0.5s ease;
}
.hero-portrait:hover { box-shadow: 0 0 36px rgba(255,255,255,0.22); }
.hero-portrait:hover img { filter: brightness(1.06) saturate(1.05); }
.hero-portrait .stamp {
  position: absolute;
  bottom: 16px; left: 16px;
  border: 2px solid #fff;
  padding: 8px 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  background: rgba(0,0,0,0.6);
}
.hero-portrait .approved {
  position: absolute;
  top: 16px; right: 16px;
  width: 110px;
  transform: rotate(8deg);
}

.scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  color: var(--fg-3);
}
.scroll-cue .l {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, transparent, #fff);
  animation: scroll-down 2s ease-in-out infinite;
}
@keyframes scroll-down { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Section header ---------- */
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: clamp(40px, 6vh, 80px);
  border-top: 2px solid #fff;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 24px;
}
.section-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 96px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 80px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.section-tag {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  color: var(--fg-3);
  align-self: flex-start;
}

/* ---------- MANIFESTO ---------- */
.manifesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.manifesto-statement {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.manifesto-statement .em {
  font-weight: 900;
  font-style: italic;
}
.manifesto-statement .red { color: var(--coas-red); }
.manifesto-meta {
  display: flex; flex-direction: column; gap: 32px;
  padding-top: 12px;
}
.manifesto-meta .row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  align-items: start;
}
.manifesto-meta .k {
  font-size: 10px;
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  color: var(--fg-3);
  padding-top: 6px;
}
.manifesto-meta .v {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  margin: 0;
}
.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.stat:last-child { border-right: none; }
.stat .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 6vw, 96px);
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.stat .num .sup { font-size: 0.4em; vertical-align: super; }
.stat .lbl {
  font-size: 11px;
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  color: var(--fg-2);
  line-height: 1.4;
}

/* ---------- SERVICES ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.service {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.3s ease;
  cursor: default;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 280px;
}
.service:hover { background: var(--coas-graphite); }
.service .num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}
.service .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-top: auto;
}
.service .desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
  font-weight: 300;
}
.service .arrow {
  position: absolute;
  top: 32px; right: 32px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 24px;
  opacity: 0.4;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.service:hover .arrow { transform: translate(4px,-4px); opacity: 1; }

/* ---------- WORK GRID ---------- */
.work-block { margin-bottom: 80px; }
.work-block:last-child { margin-bottom: 0; }
.work-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 32px;
}
.work-head .title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 36px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.work-head .count {
  font-size: 11px;
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  color: var(--fg-3);
}

.grid {
  display: grid;
  gap: 16px;
}
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-1 { grid-template-columns: 1fr; gap: 24px; }

.tile {
  position: relative;
  overflow: hidden;
  background: var(--coas-graphite);
  aspect-ratio: 4/5;
}
.tile.wide { aspect-ratio: 16/10; }
.tile.square { aspect-ratio: 1/1; }
.tile.tall { aspect-ratio: 3/4; }
.tile.phone { aspect-ratio: 9/16; }
.tile.cinema {
  aspect-ratio: auto !important;
  background: var(--coas-graphite);
}
.tile.cinema img, .tile.cinema video {
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: cover !important;
  background: var(--coas-graphite);
  transition: transform 0.8s var(--ease-standard, cubic-bezier(.2,.8,.2,1)) !important;
}

/* Fashion Design block — unified frame for all 8 tiles, matching the configured first tile */
.fashion-grid .fd-tile {
  aspect-ratio: auto !important;
  width: 100% !important;
  max-width: none;
  height: auto !important;
  margin: 0 auto;
  background: var(--coas-graphite);
  overflow: hidden;
  position: relative;
}
.fashion-grid .fd-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  display: block;
  background: var(--coas-graphite);
  transition: transform 0.8s var(--ease-standard, cubic-bezier(.2,.8,.2,1)) !important;
}
@media (max-width: 1400px) {
  .fashion-grid .fd-tile { height: auto !important; aspect-ratio: 2 / 1 !important; }
}
.tile.horiz {
  aspect-ratio: 4/3;
  background: var(--coas-graphite);
}
.tile.horiz img, .tile.horiz video {
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--coas-graphite);
}
.tile.fullwide {
  aspect-ratio: auto;
  width: 100%;
  background: var(--coas-graphite);
  border: 1px solid var(--border);
}
.tile.fullwide img, .tile.fullwide video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transform: none !important;
}
.tile img, .tile video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-standard), filter 0.6s ease;
}
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile .cap {
  position: absolute;
  left: 12px; bottom: 12px; right: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.7);
  padding: 6px 10px;
  display: inline-block;
  width: max-content;
  max-width: calc(100% - 24px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.tile:hover .cap { opacity: 1; transform: translateY(0); }

/* ---------- BRANDS / EXPERIENCE ---------- */
.brand-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}
.brand-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.brand-block.flip { grid-template-columns: 1.2fr 1fr; direction: rtl; }
.brand-block.flip > * { direction: ltr; }

.brand-info { padding-top: 8px; }
.brand-tag {
  display: inline-block;
  border: 2px solid #fff;
  padding: 6px 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.brand-tag.red { border-color: var(--coas-red); color: var(--coas-red); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 4.5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.brand-sub {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: 24px;
}
.brand-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-2);
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 32px;
}
.brand-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}
.brand-stats .b {
  padding: 16px 12px 0 0;
  border-right: 1px solid var(--border);
}
.brand-stats .b:last-child { border-right: none; padding-left: 12px; padding-right: 0; }
.brand-stats .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.brand-stats .l {
  font-size: 9px;
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  color: var(--fg-3);
  margin-top: 4px;
}

.brand-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 600px;
}
.brand-gallery > div {
  overflow: hidden;
  background: var(--coas-graphite);
}
.brand-gallery > div:nth-child(1) { grid-row: span 2; }
.brand-gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease-standard);
}
.brand-gallery > div:hover img { transform: scale(1.05); }

/* ---------- UGC / INSTA ---------- */
.ugc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.ugc-grid .tile { aspect-ratio: 9/16; }
.phone-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

/* ---------- WORKFLOW / PROCESS ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.step {
  background: var(--coas-black);
  padding: 32px 20px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 240px;
}
.step .n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  -webkit-text-stroke: 1.5px #fff;
  color: transparent;
}
.step .t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-top: auto;
}
.step .d {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-2);
  font-weight: 300;
}

/* ---------- QUOTE ---------- */
.quote-block {
  text-align: center;
  padding: clamp(80px, 14vh, 200px) clamp(24px, 6vw, 96px);
}
.quote-block .q {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  max-width: 1400px;
  margin: 0 auto 32px;
}
.quote-block .q .em { font-weight: 900; }
.quote-block .q .red { color: var(--coas-red); }
.quote-block .src {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ---------- CONTACT ---------- */
.contact {
  background: var(--coas-paper);
  color: var(--coas-black);
  padding: clamp(80px, 12vh, 160px) clamp(24px, 6vw, 96px);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: ''; position: absolute; top: -20%; right: -15%;
  width: 60vw; height: 60vw; border-radius: 50%;
  background: #000; filter: blur(160px); opacity: 0.06;
  animation: drift1 30s ease-in-out infinite alternate;
}
.contact .container { position: relative; z-index: 1; }
.contact .head {
  border-top: 2px solid #000;
  padding-top: 24px;
  margin-bottom: 64px;
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap;
  gap: 24px;
}
.contact .head .num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 96px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.contact .head .title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 80px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}
.contact .head .tag {
  font-size: 11px;
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-pitch {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.contact-pitch .em { font-weight: 900; font-style: italic; }
.contact-pitch .red { color: var(--coas-red); }

.contact-cards {
  display: flex; flex-direction: column; gap: 12px;
}
.cc-card {
  border: 2px solid #000;
  padding: 24px 28px;
  display: flex; align-items: center; gap: 20px;
  transition: background 0.2s ease, color 0.2s ease;
}
.cc-card:hover { background: #000; color: #fff; }
.cc-card:hover .cc-icon { filter: invert(1); }
.cc-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cc-icon img { width: 100%; height: 100%; object-fit: contain; }
.cc-text .lbl {
  font-size: 10px;
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
  margin-bottom: 4px;
}
.cc-card:hover .cc-text .lbl { color: rgba(255,255,255,0.5); }
.cc-text .val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.contact-stamp {
  margin-top: 80px;
  display: flex; justify-content: space-between; align-items: end;
  border-top: 1px solid rgba(0,0,0,0.18);
  padding-top: 24px;
  flex-wrap: wrap; gap: 24px;
}
.contact-stamp .left {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 8vw, 140px);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.9;
}
.contact-stamp .right {
  text-align: right;
  font-size: 10px;
  letter-spacing: var(--tracking-stamp);
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
  line-height: 1.6;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-standard), transform 0.8s var(--ease-standard);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 40s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 48px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
}
.marquee span.outline {
  -webkit-text-stroke: 1.5px #fff;
  color: transparent;
}
.marquee span.dot { color: var(--coas-red); font-weight: 900; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Section variants ---------- */
.paper {
  background: var(--coas-paper);
  color: var(--coas-black);
}
.paper .section-head { border-top-color: #000; }
.paper .section-tag { color: rgba(0,0,0,0.5); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { aspect-ratio: 4/5; max-height: 60vh; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .manifesto { grid-template-columns: 1fr; gap: 40px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .services { grid-template-columns: 1fr; }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .ugc-grid { grid-template-columns: repeat(2, 1fr); }
  .phone-row { grid-template-columns: repeat(2, 1fr); }
  .brand-block, .brand-block.flip { grid-template-columns: 1fr; gap: 32px; }
  .brand-gallery { height: 400px; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  /* ---- Mobile symmetry: handle orphans on odd-count grids ---- */

  /* 3D Motion (3 wide videos) — single column on mobile, no orphan possible */
  .grid[data-block="3d-motion"] { grid-template-columns: 1fr; }

  /* Workflow — 5 steps; orphan last step spans both columns (full-row banner) */
  .process .step:last-child:nth-child(odd) { grid-column: 1 / -1; }

  /* Other galleries with odd-count: orphan tile is CENTERED in its own row,
     same width as siblings — not stretched, not left-aligned. */
  .grid[data-block="digital-prov"] .tile:last-child:nth-child(odd),
  .ugc-grid .tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 8px);
  }
}

/* ---------- Print / PDF styles ---------- */
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; color: #000; }
  .fog-field, .topbar, .scroll-cue, .marquee { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  section { page-break-inside: avoid; padding: 40px 32px; }
  .hero { min-height: auto; padding-top: 32px; }
  .hero-name { color: #000; }
  .hero-name .outline { -webkit-text-stroke-color: #000; }
  .contact { background: #fff; }
  .print-contact { display: block !important; }
  img, video { max-height: 400px; object-fit: cover; }
}
.print-contact { display: none; }


/* Override runtime fd-tweak-style injection (higher specificity beats .fashion-grid .fd-tile) */
body .fashion-grid { gap: 24px !important; }
body .fashion-grid .fd-tile {
  aspect-ratio: 2 / 1 !important;
  height: auto !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 0 24px 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}
body .fashion-grid .fd-img,
body .fashion-grid .fd-tile img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  background: transparent !important;
  display: block !important;
  transition: transform 0.9s cubic-bezier(.2,.8,.2,1) !important, filter 0.6s ease !important;
}
body .fashion-grid .fd-tile:hover img,
body .fashion-grid .fd-tile:hover .fd-img {
  transform: scale(1.035) !important;
}
@media (max-width: 1418px) {
  body .fashion-grid .fd-tile {
    aspect-ratio: 2 / 1 !important;
    height: auto !important;
  }
}
