/* ============================================================
   Dylan Videlo — Portfolio
   Bento playful · Cream + Orange + Black
   ============================================================ */

:root {
  /* Color tokens — dark, à la Webflow actuel */
  --bg:        #0e0e0e;          /* near-black */
  --bg-elev:   #161616;          /* card surface */
  --bg-dark:   #050505;          /* footer / overlay */
  --ink:       #f4f1ea;          /* primary text */
  --ink-2:     #d4cfc4;
  --ink-3:     #8a857c;
  --ink-4:     #5a564f;
  --line:      #232323;
  --line-2:    #2e2e2e;
  --accent:    #ff4f1a;
  --accent-2:  #ff8a3d;
  --accent-soft:#2a1a10;
  --lime:      #d4ff3d;
  --plum:      #4a2a6e;
  --pink:      #ee3868;

  /* Type */
  --font-display: "Bricolage Grotesque", "Söhne", system-ui, sans-serif;
  --font-body:    "Geist", "Inter", system-ui, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, "JetBrains Mono", monospace;

  /* Radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Variation: light (cream/orange original) */
[data-variant="light"] {
  --bg:        #f5f1ea;
  --bg-elev:   #ffffff;
  --bg-dark:   #0e0e0c;
  --ink:       #0e0e0c;
  --ink-2:     #2a2823;
  --ink-3:     #6b6760;
  --ink-4:     #a8a298;
  --line:      #e3ddd1;
  --line-2:    #d4ccbb;
  --accent-soft:#ffe5d6;
}

/* Variation: editorial — refined dark with tighter radii (typography handled by Type tweak) */
[data-variant="editorial"] {
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}

::selection { background: var(--accent); color: var(--bg); }

/* ----- Typography utilities ----- */
.mono   { font-family: var(--font-mono); font-feature-settings: "ss01"; letter-spacing: -0.01em; }
.label  { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.display-xl { font-size: clamp(64px, 11vw, 200px); line-height: 0.88; letter-spacing: -0.045em; font-weight: 500; }
.display-l  { font-size: clamp(48px, 7vw, 120px); line-height: 0.92; letter-spacing: -0.04em; }
.display-m  { font-size: clamp(36px, 4.2vw, 72px); line-height: 0.95; letter-spacing: -0.035em; }
.display-s  { font-size: clamp(24px, 2.4vw, 40px); line-height: 1.05; letter-spacing: -0.025em; }

/* ----- Layout ----- */
.wrap { max-width: 1480px; margin: 0 auto; padding: 0 var(--s-6); }
@media (max-width: 700px) { .wrap { padding: 0 var(--s-5); } }

/* ----- Nav ----- */
.nav {
  position: fixed; top: var(--s-5); left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--s-2);
  background: var(--bg-elev); color: var(--ink);
  padding: 6px; border-radius: var(--r-pill);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  backdrop-filter: blur(20px);
}
[data-variant="light"] .nav-inner { background: #0e0e0c; color: #f4f1ea; border: none; }
[data-variant="brutalist"] .nav-inner { border-radius: 0; border: 1.5px solid var(--ink); }
.nav-brand {
  display: flex; align-items: center; gap: var(--s-2);
  padding: 8px 14px 8px 10px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  letter-spacing: -0.02em;
}
.nav-brand .dot {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--bg-dark);
  animation: spinSlow 14s linear infinite;
}
[data-variant="brutalist"] .nav-brand .dot { border-radius: 0; }

.nav-links { display: flex; gap: 2px; }
.nav-link {
  background: transparent; color: var(--ink); border: none;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  padding: 9px 16px; border-radius: var(--r-pill); cursor: pointer;
  transition: background 0.2s, color 0.2s; letter-spacing: -0.005em;
}
.nav-link:hover { background: rgba(255,255,255,0.08); }
.nav-link.active { background: var(--accent); color: var(--bg); }
[data-variant="brutalist"] .nav-link { border-radius: 0; }

.nav-cta {
  background: var(--accent); color: var(--bg);
  padding: 9px 16px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  cursor: pointer; border: none; transition: transform 0.18s var(--ease-spring);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-cta:hover { transform: scale(1.04); }
[data-variant="brutalist"] .nav-cta { border-radius: 0; }

.lang-toggle {
  display: inline-flex; padding: 3px; gap: 0;
  background: rgba(255,255,255,0.06); border-radius: var(--r-pill);
  margin-left: 4px;
}
.lang-toggle button {
  background: transparent; color: var(--ink-4); border: none;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  padding: 5px 9px; border-radius: var(--r-pill); cursor: pointer;
  letter-spacing: 0.05em;
}
.lang-toggle button.active { background: var(--ink); color: var(--bg); }
[data-variant="brutalist"] .lang-toggle, [data-variant="brutalist"] .lang-toggle button { border-radius: 0; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; transition: transform 0.18s var(--ease-spring), background 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { transform: scale(1.03); background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[data-variant="brutalist"] .btn { border-radius: 0; }

.arrow { width: 16px; height: 16px; transition: transform 0.2s; }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ----- Card primitive ----- */
.card {
  background: var(--bg-elev); border-radius: var(--r-lg);
  padding: var(--s-6); border: 1px solid var(--line);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
  position: relative; overflow: hidden;
}
[data-variant="brutalist"] .card { border-width: 1.5px; }

/* ----- Reveal animation ----- */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d-1 { transition-delay: 0.06s; }
.reveal.d-2 { transition-delay: 0.12s; }
.reveal.d-3 { transition-delay: 0.18s; }
.reveal.d-4 { transition-delay: 0.24s; }
.reveal.d-5 { transition-delay: 0.30s; }

/* ----- Marquee ----- */
.marquee {
  overflow: hidden; white-space: nowrap; display: flex; gap: 0;
  user-select: none; padding: var(--s-5) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--accent); color: var(--bg);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 96px;
  animation: scroll-x 36s linear infinite; flex-shrink: 0;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 96px;
  font-family: var(--font-display); font-size: clamp(48px, 7vw, 96px);
  font-weight: 500; letter-spacing: -0.03em;
}
.marquee-item .sep {
  width: 14px; height: 14px; background: var(--bg); border-radius: 50%;
  display: inline-block;
}
[data-variant="brutalist"] .marquee-item .sep { border-radius: 0; }

@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ----- HERO ----- */
.hero {
  padding-top: 140px; padding-bottom: var(--s-9);
  position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--s-5);
}
.hero-title-block {
  position: relative;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 240px);
  line-height: 0.84; letter-spacing: -0.05em; font-weight: 500;
  color: var(--ink);
}
.hero-title .word { display: inline-block; }
.hero-title .accent {
  color: var(--accent);
  font-style: italic; font-weight: 400;
}
.hero-title .underline {
  position: relative; display: inline-block;
}
.hero-title .underline::after {
  content: ""; position: absolute; bottom: 0.08em; left: 0; right: 0; height: 0.06em;
  background: var(--accent); border-radius: 999px;
}

.hero-meta {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-5);
  margin-top: var(--s-7); align-items: end;
}
.hero-meta .pitch {
  grid-column: span 6; font-size: 22px; line-height: 1.35;
  color: var(--ink-2); max-width: 52ch;
}
.hero-meta .status-card {
  grid-column: span 3; background: var(--ink); color: var(--bg);
  border-radius: var(--r-md); padding: var(--s-5);
  display: flex; flex-direction: column; gap: 6px;
}
.hero-meta .status-card .live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-meta .status-card .live .pulse {
  width: 8px; height: 8px; background: var(--lime); border-radius: 50%;
  box-shadow: 0 0 0 0 var(--lime); animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212,255,61,0.6); }
  70%  { box-shadow: 0 0 0 12px rgba(212,255,61,0); }
  100% { box-shadow: 0 0 0 0 rgba(212,255,61,0); }
}
.hero-meta .cta-card {
  grid-column: span 3; background: var(--accent); color: var(--ink);
  border-radius: var(--r-md); padding: var(--s-5);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 120px; cursor: pointer;
  transition: transform 0.2s var(--ease-spring);
}
.hero-meta .cta-card:hover { transform: rotate(-1.5deg) scale(1.02); }
.hero-meta .cta-card .big { font-family: var(--font-display); font-size: 28px; line-height: 1; letter-spacing: -0.02em; font-weight: 600; }

@media (max-width: 900px) {
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta .pitch, .hero-meta .status-card, .hero-meta .cta-card { grid-column: span 1; }
}

/* ----- Bento gallery ----- */
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: var(--s-5); margin-bottom: var(--s-6);
  padding-top: var(--s-9);
}
.section-head h2 { font-size: clamp(40px, 5vw, 80px); }
.section-head .right { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; text-align: right; }

.bento {
  display: grid; grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(160px, auto); gap: var(--s-4);
}
.bento-card {
  position: relative; overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-6);
  cursor: pointer; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.bento-card:hover { border-color: var(--ink); }
[data-variant="brutalist"] .bento-card { border-radius: 0; }

.bento-card .corner-arrow {
  position: absolute; top: var(--s-5); right: var(--s-5);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease-spring), background 0.2s;
  z-index: 3;
}
.bento-card:hover .corner-arrow { transform: rotate(-45deg) scale(1.08); background: var(--accent); color: var(--ink); }
[data-variant="brutalist"] .bento-card .corner-arrow { border-radius: 0; }

.bento-card .badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-3);
}
.bento-card .badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.bento-card h3 { font-size: clamp(26px, 2.4vw, 40px); margin-top: var(--s-4); }
.bento-card .desc { color: var(--ink-3); margin-top: var(--s-3); max-width: 42ch; }
.bento-card .meta-row {
  margin-top: auto; padding-top: var(--s-5);
  display: flex; gap: var(--s-3); flex-wrap: wrap;
}
.bento-card .tag {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-3);
  padding: 5px 10px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
}
[data-variant="brutalist"] .bento-card .tag { border-radius: 0; }

.bento-card .thumb {
  margin-top: var(--s-5); border-radius: var(--r-md); overflow: hidden;
  background: var(--bg); border: 1px solid var(--line); flex: 1;
  min-height: 200px;
  position: relative;
}
[data-variant="brutalist"] .bento-card .thumb { border-radius: 0; }

/* Variant card backgrounds */
.bento-card.b-dark { background: var(--ink); color: var(--bg); border-color: transparent; }
.bento-card.b-dark .badge, .bento-card.b-dark .desc { color: var(--ink-4); }
.bento-card.b-dark .tag { border-color: rgba(255,255,255,0.18); color: var(--ink-4); }
.bento-card.b-dark .thumb { background: #1a1a17; border-color: rgba(255,255,255,0.08); }
.bento-card.b-dark .corner-arrow { background: var(--bg); color: var(--ink); }

.bento-card.b-accent { background: var(--accent); color: var(--ink); border-color: transparent; }
.bento-card.b-accent .badge, .bento-card.b-accent .desc { color: var(--ink-2); }
.bento-card.b-accent .tag { border-color: rgba(0,0,0,0.18); color: var(--ink-2); }
.bento-card.b-accent .thumb { background: rgba(255,255,255,0.22); border-color: rgba(0,0,0,0.1); }

.bento-card.b-cream { background: #1e1b16; border-color: var(--line); }
.bento-card.b-cream .thumb { background: #0e0e0e; }
.bento-card.b-cream .badge, .bento-card.b-cream .desc { color: var(--ink-3); }
.bento-card.b-cream .tag { border-color: var(--line-2); color: var(--ink-3); }

.bento-card.b-plum { background: var(--plum); color: #fff; border-color: transparent; }
.bento-card.b-plum .badge, .bento-card.b-plum .desc { color: rgba(255,255,255,0.78); }
.bento-card.b-plum .tag { border-color: rgba(255,255,255,0.28); color: rgba(255,255,255,0.86); }
.bento-card.b-plum .thumb { background: #2c1748; border-color: rgba(255,255,255,0.1); }
.bento-card.b-plum .corner-arrow { background: rgba(255,255,255,0.95); color: var(--plum); }

.bento-card.b-pink { background: var(--pink); color: #fff; border-color: transparent; }
.bento-card.b-pink .badge, .bento-card.b-pink .desc { color: rgba(255,255,255,0.86); }
.bento-card.b-pink .tag { border-color: rgba(255,255,255,0.32); color: rgba(255,255,255,0.92); }
.bento-card.b-pink .thumb { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.18); }
.bento-card.b-pink .corner-arrow { background: #4a2a6e; color: #fff; }

/* ----- Stats strip ----- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
  margin-top: var(--s-7);
}
[data-variant="brutalist"] .stats { border-radius: 0; }
.stat {
  background: var(--bg); padding: var(--s-6) var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
}
.stat .n {
  font-family: var(--font-display); font-size: clamp(48px, 5.4vw, 88px);
  line-height: 0.9; letter-spacing: -0.04em; font-weight: 500;
}
.stat .n .small { font-size: 0.5em; color: var(--ink-3); }
.stat .lbl {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-3);
}

@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ----- About strip ----- */
.about-strip {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-7);
  align-items: start;
  padding-top: var(--s-9);
}
.about-strip .lede { font-size: clamp(24px, 2.4vw, 38px); line-height: 1.25; letter-spacing: -0.02em; }
.about-strip .lede .accent { color: var(--accent); }

@media (max-width: 900px) { .about-strip { grid-template-columns: 1fr; } }

.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.about-cards .card { padding: var(--s-5); }
.about-cards .card .n {
  font-family: var(--font-display); font-size: 40px; line-height: 1; letter-spacing: -0.03em;
}
.about-cards .card .lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin-top: 8px; }

/* ----- Services ----- */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line);
}
.svc {
  background: var(--bg); padding: var(--s-6); min-height: 320px;
  display: flex; flex-direction: column; gap: var(--s-4);
  transition: background 0.3s;
}
.svc:hover { background: var(--ink); color: var(--bg); }
.svc:hover .svc-n, .svc:hover .svc-desc { color: inherit; }
.svc .svc-n { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.svc h3 { font-size: clamp(26px, 2.2vw, 38px); }
.svc .svc-desc { color: var(--ink-3); }
.svc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.svc ul li { font-family: var(--font-mono); font-size: 12px; color: inherit; display: flex; align-items: center; gap: 8px; }
.svc ul li::before { content: "—"; color: var(--accent); }

@media (max-width: 800px) { .services { grid-template-columns: 1fr; } }
[data-variant="brutalist"] .services { border-radius: 0; }

/* ----- Testimonials ----- */
.tlist {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4);
}
.tcard {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-5);
  position: relative;
}
[data-variant="brutalist"] .tcard { border-radius: 0; }
.tcard .quote { font-size: 17px; line-height: 1.45; color: var(--ink); flex: 1; }
.tcard .who { display: flex; gap: 12px; align-items: center; }
.tcard .who .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
}
[data-variant="brutalist"] .tcard .who .avatar { border-radius: 0; }
.tcard .who .name { font-weight: 600; font-size: 14px; }
.tcard .who .role { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

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

/* ----- Footer / CTA ----- */
.contact-cta {
  background: var(--ink); color: var(--bg);
  border-radius: var(--r-xl); padding: var(--s-9) var(--s-7);
  position: relative; overflow: hidden;
  margin-top: var(--s-9);
}
[data-variant="brutalist"] .contact-cta { border-radius: 0; }
.contact-cta h2 { font-size: clamp(56px, 9vw, 160px); line-height: 0.9; }
.contact-cta .row { display: flex; align-items: end; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; margin-top: var(--s-6); }
.contact-cta .links { display: flex; flex-direction: column; gap: var(--s-3); }
.contact-cta .links a {
  font-family: var(--font-mono); font-size: 14px; color: var(--bg);
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 6px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-cta .links a:hover { color: var(--accent); border-color: var(--accent); }

footer.foot {
  padding: var(--s-7) 0 var(--s-6);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-5);
  flex-wrap: wrap;
}
footer.foot .meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }

/* ----- Project page ----- */
.proj-hero {
  padding-top: 140px; padding-bottom: var(--s-7);
}
.proj-hero .crumb { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s-5); }
.proj-hero .crumb a { color: var(--ink-3); text-decoration: none; }
.proj-hero .crumb a:hover { color: var(--accent); }
.proj-hero h1 { font-size: clamp(64px, 11vw, 200px); line-height: 0.86; letter-spacing: -0.045em; font-weight: 500; }
.proj-hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.proj-hero .summary {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-7);
  margin-top: var(--s-7);
}
.proj-hero .summary .left { display: flex; flex-direction: column; gap: var(--s-4); }
.proj-hero .summary .left .meta-block { display: flex; flex-direction: column; gap: 6px; }
.proj-hero .summary .left .meta-block .lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.proj-hero .summary .left .meta-block .val { font-family: var(--font-display); font-size: 20px; }
.proj-hero .summary .right { font-size: 22px; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 900px) { .proj-hero .summary { grid-template-columns: 1fr; } }

.proj-cover {
  background: var(--accent);
  border-radius: var(--r-xl);
  padding: var(--s-7); overflow: hidden;
  min-height: 520px; display: flex; align-items: center; justify-content: center;
  position: relative;
}
[data-variant="brutalist"] .proj-cover { border-radius: 0; }

/* Section blocks in case study */
.cs-section {
  padding-top: var(--s-9); padding-bottom: var(--s-7);
  border-top: 1px solid var(--line);
}
.cs-section .head {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-7);
  margin-bottom: var(--s-6);
}
.cs-section .head .sticky-l { position: sticky; top: 120px; align-self: start; }
.cs-section .head .label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }
.cs-section .head .step {
  font-family: var(--font-display); font-size: clamp(48px, 7vw, 96px);
  line-height: 0.9; letter-spacing: -0.04em;
}
.cs-section .head .step .num { color: var(--accent); }
.cs-section .head .body { font-size: 19px; line-height: 1.55; color: var(--ink-2); display: flex; flex-direction: column; gap: var(--s-4); }
.cs-section .head .body strong { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) { .cs-section .head { grid-template-columns: 1fr; } .cs-section .head .sticky-l { position: static; } }

/* Persona cards */
.personas { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-top: var(--s-5); }
.persona {
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-4);
}
[data-variant="brutalist"] .persona { border-radius: 0; }
.persona .head-p { display: flex; align-items: center; gap: var(--s-4); }
.persona .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink); }
[data-variant="brutalist"] .persona .avatar { border-radius: 0; }
.persona .name { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.persona .role { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
.persona .quote { font-style: italic; color: var(--ink-2); border-left: 2px solid var(--accent); padding-left: var(--s-4); }
.persona .goals { display: flex; flex-direction: column; gap: 6px; margin-top: var(--s-3); }
.persona .goals .lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.persona .goals ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.persona .goals ul li::before { content: "→ "; color: var(--accent); font-family: var(--font-mono); }
.persona .goals ul li { font-size: 14px; color: var(--ink-2); }
@media (max-width: 700px) { .personas { grid-template-columns: 1fr; } }

/* Journey timeline */
.journey {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-3);
  margin-top: var(--s-5); position: relative;
}
.journey::before {
  content: ""; position: absolute; top: 56px; left: 0; right: 0; height: 2px;
  background: var(--line);
}
.journey-step {
  position: relative; display: flex; flex-direction: column; gap: var(--s-3);
  z-index: 2;
}
.journey-step .num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
}
[data-variant="brutalist"] .journey-step .num { border-radius: 0; }
.journey-step .marker { width: 16px; height: 16px; background: var(--accent); border-radius: 50%; margin-top: 12px; border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--line); }
[data-variant="brutalist"] .journey-step .marker { border-radius: 0; }
.journey-step .title { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.02em; margin-top: var(--s-3); }
.journey-step .pain { font-size: 13px; color: var(--ink-3); }
.journey-step .pain .l { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); display: block; margin-top: 6px; }

@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; }
  .journey::before { display: none; }
  .journey-step { padding-left: var(--s-5); border-left: 2px solid var(--line); }
}

/* Design system showcase */
.ds-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s-4); margin-top: var(--s-5);
}
.ds-card {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3);
}
[data-variant="brutalist"] .ds-card { border-radius: 0; }
.ds-card .head { display: flex; justify-content: space-between; align-items: center; }
.ds-card .head .lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }

.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.swatch { aspect-ratio: 1; border-radius: 8px; display: flex; flex-direction: column; justify-content: end; padding: 8px; }
[data-variant="brutalist"] .swatch { border-radius: 0; }
.swatch .hex { font-family: var(--font-mono); font-size: 9px; }

.type-stack { display: flex; flex-direction: column; gap: var(--s-3); }
.type-row { display: flex; align-items: baseline; gap: var(--s-4); border-bottom: 1px dashed var(--line); padding-bottom: var(--s-3); }
.type-row .meta { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); width: 80px; text-transform: uppercase; letter-spacing: 0.06em; }
.type-row .sample { font-family: var(--font-display); flex: 1; }

.components-row { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.chip-demo {
  padding: 8px 14px; border-radius: var(--r-pill); font-size: 13px; font-family: var(--font-body);
  border: 1px solid var(--line-2); display: inline-flex; align-items: center; gap: 6px;
}
[data-variant="brutalist"] .chip-demo { border-radius: 0; }
.chip-demo.fill { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.chip-demo.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Wireframe block */
.wf-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-4); margin-top: var(--s-5); }
.wf {
  background: var(--bg-elev); border: 1.5px solid var(--ink); border-radius: var(--r-md);
  aspect-ratio: 3/4; padding: var(--s-4); display: flex; flex-direction: column; gap: 8px;
}
[data-variant="brutalist"] .wf { border-radius: 0; }
.wf .bar { background: var(--line); height: 8px; border-radius: 4px; }
.wf .bar.dk { background: var(--ink); }
.wf .bar.w-30 { width: 30%; }
.wf .bar.w-50 { width: 50%; }
.wf .bar.w-70 { width: 70%; }
.wf .box { background: var(--line); border-radius: 4px; flex: 1; }
.wf .cap { font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: auto; }
@media (max-width: 700px) { .wf-grid { grid-template-columns: 1fr; } }

/* Before/After */
.ba {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: var(--s-5);
}
.ba .pane {
  background: var(--bg-elev); border-radius: var(--r-lg); padding: var(--s-5);
  border: 1px solid var(--line);
}
[data-variant="brutalist"] .ba .pane { border-radius: 0; }
.ba .pane .tag-ba {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: var(--s-4);
}
[data-variant="brutalist"] .ba .pane .tag-ba { border-radius: 0; }
.ba .pane.before .tag-ba { background: var(--line); color: var(--ink-3); }
.ba .pane.after .tag-ba { background: var(--accent); color: var(--ink); }
.ba .pane .frame {
  aspect-ratio: 4/3; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; position: relative;
}
[data-variant="brutalist"] .ba .pane .frame { border-radius: 0; }
.ba .pane.before .frame { filter: saturate(0.4) brightness(0.95); }
@media (max-width: 800px) { .ba { grid-template-columns: 1fr; } }

/* Screens grid (selection d'écrans) */
.screens {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-4);
  margin-top: var(--s-5);
}
.screen {
  background: var(--bg-elev); border-radius: var(--r-md);
  border: 1px solid var(--line); overflow: hidden;
  position: relative;
}
[data-variant="brutalist"] .screen { border-radius: 0; }
.screen.s-2 { grid-column: span 2; }
.screen.s-3 { grid-column: span 3; }
.screen.s-4 { grid-column: span 4; }
.screen.s-6 { grid-column: span 6; }
.screen .ph {
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em;
  background:
    repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 8px),
    var(--bg);
  position: relative;
}
.screen.tall .ph { aspect-ratio: 9/12; }
.screen .cap {
  padding: var(--s-3) var(--s-4); display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3); border-top: 1px solid var(--line);
}
@media (max-width: 900px) { .screens { grid-template-columns: 1fr 1fr; } .screen.s-3, .screen.s-4, .screen.s-6 { grid-column: span 2; } }

/* About page */
.about-hero {
  padding-top: 140px; padding-bottom: var(--s-7);
  display: grid; grid-template-columns: 2fr 1fr; gap: var(--s-7);
  align-items: end;
}
.about-hero .portrait {
  background: var(--bg-elev);
  border-radius: var(--r-xl);
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.about-hero .portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
  filter: brightness(1.04) saturate(0.85) contrast(1.04);
}
[data-variant="brutalist"] .about-hero .portrait { border-radius: 0; }
@media (max-width: 900px) { .about-hero { grid-template-columns: 1fr; } .about-hero .portrait { aspect-ratio: 4/3; max-width: 360px; } }

.about-body { display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-7); padding-top: var(--s-7); }
.about-body .lab { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.about-body .col p { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-bottom: var(--s-4); }
@media (max-width: 900px) { .about-body { grid-template-columns: 1fr; } }

.timeline {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line); margin-top: var(--s-7);
}
.tline-row {
  display: grid; grid-template-columns: 120px 1fr 200px; gap: var(--s-5);
  padding: var(--s-5) 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s;
}
.tline-row:hover { padding-left: var(--s-5); }
.tline-row .yr { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.tline-row .ti { font-family: var(--font-display); font-size: clamp(20px, 1.8vw, 28px); letter-spacing: -0.02em; }
.tline-row .ti .co { color: var(--accent); }
.tline-row .ro { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); text-align: right; }
@media (max-width: 700px) { .tline-row { grid-template-columns: 1fr; } .tline-row .ro { text-align: left; } }

.tools-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-3); margin-top: var(--s-5); }
.tool-tile {
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md);
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-spring);
}
[data-variant="brutalist"] .tool-tile { border-radius: 0; }
.tool-tile:hover { background: var(--ink); color: var(--bg); transform: rotate(-3deg) scale(1.03); }
.tool-tile .ic { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.tool-tile .nm { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; }
@media (max-width: 700px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }

/* Contact page */
.contact-page {
  padding-top: 140px; min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7);
  align-items: start;
}
.contact-page h1 { font-size: clamp(56px, 9vw, 160px); line-height: 0.86; letter-spacing: -0.045em; }
.contact-page h1 .accent { color: var(--accent); font-style: italic; font-weight: 400; }
.contact-form { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-7); display: flex; flex-direction: column; gap: var(--s-4); }
[data-variant="brutalist"] .contact-form { border-radius: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.field input, .field textarea, .field select {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 140px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-toggle {
  padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--bg);
  font-family: var(--font-body); font-size: 13px; cursor: pointer; transition: all 0.18s;
}
.chip-toggle:hover { border-color: var(--ink); }
.chip-toggle.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
[data-variant="brutalist"] .chip-toggle { border-radius: 0; }

@media (max-width: 900px) { .contact-page { grid-template-columns: 1fr; } }

/* Services page (large) */
.services-hero { padding-top: 140px; padding-bottom: var(--s-7); }
.services-hero h1 { font-size: clamp(56px, 9vw, 160px); line-height: 0.86; letter-spacing: -0.045em; }
.services-hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 400; }

.svc-big {
  display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
}
[data-variant="brutalist"] .svc-big { border-radius: 0; }
.svc-big-row {
  background: var(--bg); padding: var(--s-7);
  display: grid; grid-template-columns: 80px 1fr 2fr 60px; gap: var(--s-5); align-items: start;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
}
.svc-big-row:hover { background: var(--ink); color: var(--bg); }
.svc-big-row:hover .num, .svc-big-row:hover h3, .svc-big-row:hover .body { color: inherit; }
.svc-big-row .num { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.svc-big-row h3 { font-size: clamp(28px, 2.6vw, 44px); }
.svc-big-row .body { color: var(--ink-3); }
.svc-big-row .body ul { list-style: none; padding: 0; margin: var(--s-3) 0 0; display: flex; flex-direction: column; gap: 4px; }
.svc-big-row .body ul li { font-family: var(--font-mono); font-size: 12px; }
.svc-big-row .body ul li::before { content: "▸ "; color: var(--accent); }
.svc-big-row .arrow-big {
  width: 44px; height: 44px; border-radius: 50%; background: transparent; border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center; transition: transform 0.3s var(--ease-spring), background 0.2s;
}
.svc-big-row:hover .arrow-big { transform: rotate(-45deg); background: var(--accent); border-color: var(--accent); color: var(--ink); }
[data-variant="brutalist"] .svc-big-row .arrow-big { border-radius: 0; }
@media (max-width: 800px) { .svc-big-row { grid-template-columns: 1fr; } }

/* Toolbar variant pill */
.variant-pill {
  position: fixed; right: 16px; bottom: 16px; z-index: 99;
  background: var(--ink); color: var(--bg); padding: 8px;
  border-radius: var(--r-pill); display: flex; gap: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.variant-pill button {
  background: transparent; color: var(--ink-4); border: none;
  padding: 8px 14px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 11px; cursor: pointer; letter-spacing: 0.04em;
}
.variant-pill button.active { background: var(--bg); color: var(--ink); }

/* Mini phone mockups for case study */
.phone-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-5); }
.phone {
  background: var(--ink); border-radius: 36px; padding: 14px;
  aspect-ratio: 9/19; max-width: 320px; margin: 0 auto;
  position: relative;
}
[data-variant="brutalist"] .phone { border-radius: 0; }
.phone .scr { background: var(--bg); border-radius: 24px; height: 100%; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; position: relative; }
[data-variant="brutalist"] .phone .scr { border-radius: 0; }
.phone .notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 110px; height: 24px; background: var(--ink); border-radius: 999px; z-index: 2; }
.phone .scr .h { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; margin-top: 28px; }
.phone .scr .sub { font-size: 11px; color: var(--ink-3); }
.phone .scr .row { background: var(--accent-soft); border-radius: 12px; padding: 10px; display: flex; gap: 10px; align-items: center; font-size: 11px; }
.phone .scr .row .av { width: 24px; height: 24px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.phone .scr .row.dk { background: var(--ink); color: var(--bg); }
.phone .scr .row .b1, .phone .scr .row .b2 { display: block; height: 5px; border-radius: 3px; background: rgba(0,0,0,0.15); }
.phone .scr .row.dk .b1, .phone .scr .row.dk .b2 { background: rgba(255,255,255,0.18); }
.phone .scr .stat { display: flex; gap: 8px; margin-top: auto; }
.phone .scr .stat .b { flex: 1; background: var(--line); height: 36px; border-radius: 8px; padding: 6px; font-family: var(--font-mono); font-size: 9px; color: var(--ink-3); }
.phone .scr .stat .b .v { font-family: var(--font-display); font-size: 14px; color: var(--ink); letter-spacing: -0.02em; display: block; }
@media (max-width: 800px) { .phone-row { grid-template-columns: 1fr; } }

/* Generic dashboard mockup */
.dash {
  background: var(--bg-elev); border-radius: var(--r-md); padding: var(--s-4); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: var(--s-3); min-height: 100%;
}
[data-variant="brutalist"] .dash { border-radius: 0; }
.dash .topbar { display: flex; justify-content: space-between; align-items: center; }
.dash .pill-sm { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); }
.dash .grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.dash .kpi { background: var(--bg); border-radius: 10px; padding: 10px; }
.dash .kpi .v { font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; }
.dash .kpi .l { font-family: var(--font-mono); font-size: 9px; color: var(--ink-3); text-transform: uppercase; }
.dash .chart {
  background: linear-gradient(180deg, transparent 0%, var(--accent-soft) 100%);
  border-radius: 8px; height: 80px; position: relative; flex: 1;
}
.dash .chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Show only one page at a time */
.page { display: none; }
.page.active { display: block; }

/* responsive marquee speed reduction */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .nav-brand .dot, .hero-meta .status-card .live .pulse { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
