/* ============================================================
   GENWEB — Agence de création web
   Dark / bold / lime accent
   ============================================================ */

:root {
  --bg: #0b0b0d;
  --bg-2: #101013;
  --surface: #16161a;
  --surface-2: #1d1d22;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f3ef;
  --muted: #97978f;
  --muted-2: #6b6b64;
  --accent: #c6ff3a;
  --accent-dim: #a9e02a;
  --accent-ink: #0b0b0d;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1320px;
  --pad: clamp(20px, 5vw, 88px);
  --radius: 18px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 900px) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(80px, 12vw, 160px); position: relative; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.section-head { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head .title { max-width: 16ch; }

h1, h2, h3 { font-weight: 500; line-height: 0.98; letter-spacing: -0.03em; text-wrap: balance; }
.display {
  font-size: clamp(48px, 9vw, 132px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.h-xl { font-size: clamp(36px, 6vw, 88px); }
.h-lg { font-size: clamp(30px, 4.4vw, 60px); }
.h-md { font-size: clamp(24px, 2.6vw, 36px); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.serif-i { font-style: italic; }

.lead { font-size: clamp(18px, 1.5vw, 22px); color: var(--muted); line-height: 1.6; max-width: 52ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  border-radius: 100px;
  font-size: 16px; font-weight: 500;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--text);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  position: relative;
}
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); transition: transform .4s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary .dot { background: var(--accent-ink); }
.btn-primary:hover { background: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* ---------- Custom cursor — torch / flashlight ---------- */
.cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  width: 10px; height: 10px; border-radius: 50%; background: #f4ffd6;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px 3px rgba(198,255,58,0.95), 0 0 26px 8px rgba(198,255,58,0.55);
}
.cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9998;
  width: 420px; height: 420px; border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  background: radial-gradient(circle,
    rgba(220,255,150,0.30) 0%,
    rgba(198,255,58,0.18) 15%,
    rgba(198,255,58,0.09) 34%,
    rgba(198,255,58,0.03) 54%,
    transparent 70%);
  transition: width .5s var(--ease), height .5s var(--ease), opacity .4s var(--ease);
}
.cursor-ring.hover {
  width: 560px; height: 560px;
  background: radial-gradient(circle,
    rgba(224,255,160,0.30) 0%,
    rgba(198,255,58,0.18) 20%,
    rgba(198,255,58,0.07) 42%,
    transparent 70%);
}
.cursor-ring.click { width: 320px; height: 320px; }
.cursor-label {
  position: fixed; z-index: 9999; pointer-events: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent);
  padding: 6px 12px; border-radius: 100px; transform: translate(-50%, -50%) scale(0);
  transition: transform .3s var(--ease); white-space: nowrap;
  box-shadow: 0 0 24px rgba(198,255,58,0.5);
}
.cursor-label.show { transform: translate(-50%, -50%) scale(1); }
@media (max-width: 900px) { .cursor-dot, .cursor-ring, .cursor-label { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  transition: transform .5s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled { background: rgba(11,11,13,0.72); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.header.hidden { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 700; letter-spacing: -0.04em; }
.logo .mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); position: relative; overflow: hidden; flex: none; }
.logo .mark::after { content: ""; position: absolute; inset: 7px; border-radius: 3px; border: 2.5px solid var(--accent-ink); border-right: none; border-bottom: none; }
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links a { font-size: 15.5px; color: var(--muted); transition: color .3s var(--ease); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1px; background: var(--accent); transition: width .35s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.menu-toggle { display: none; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-right .btn span.lbl { display: none; }
  .menu-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; width: 48px; height: 48px;
    align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: transparent;
  }
  .menu-toggle span { width: 20px; height: 2px; background: var(--text); transition: transform .4s var(--ease), opacity .3s; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Mobile fullscreen menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 790; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: var(--pad);
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease); pointer-events: none;
}
.mobile-menu.open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.mobile-menu a { font-size: clamp(40px, 11vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; color: var(--text); }
.mobile-menu a .idx { font-family: var(--font-mono); font-size: 14px; color: var(--accent); vertical-align: super; margin-right: 10px; }

/* ---------- Hero ---------- */
.hero { padding-top: 150px; padding-bottom: clamp(60px, 9vw, 120px); position: relative; overflow: hidden; }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); opacity: .5; pointer-events: none; }
.hero-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: center; margin-bottom: clamp(40px, 6vw, 70px); }
.hero-status { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.hero-status .live { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(198,255,58,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(198,255,58,.5);} 70% { box-shadow: 0 0 0 12px rgba(198,255,58,0);} 100% { box-shadow: 0 0 0 0 rgba(198,255,58,0);} }
.hero h1 { position: relative; z-index: 2; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(0); }
@media (prefers-reduced-motion: no-preference) {
  .anim-in .hero h1 .line > span { animation: heroUp 1.1s var(--ease) both; }
  .anim-in .hero h1 .line:nth-child(1) > span { animation-delay: .05s; }
  .anim-in .hero h1 .line:nth-child(2) > span { animation-delay: .17s; }
  .anim-in .hero h1 .line:nth-child(3) > span { animation-delay: .29s; }
}
@keyframes heroUp { from { transform: translateY(110%); } to { transform: translateY(0); } }
.hero-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 36px; margin-top: clamp(40px, 6vw, 64px); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-scroll .ind { width: 24px; height: 38px; border: 1px solid var(--line-strong); border-radius: 14px; position: relative; }
.hero-scroll .ind::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 4px; background: var(--accent); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0%,100% { opacity: 1; top: 7px; } 50% { opacity: .3; top: 20px; } }

/* hero visual strip */
.hero-visual { margin-top: clamp(48px, 7vw, 80px); position: relative; z-index: 2; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding-block: 26px; overflow: hidden; white-space: nowrap; background: var(--bg-2); }
.marquee-track { display: inline-flex; gap: 0; will-change: transform; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: clamp(28px, 4vw, 52px); font-weight: 500; letter-spacing: -0.03em; padding-inline: 34px; display: inline-flex; align-items: center; gap: 34px; color: var(--text); }
.marquee-track span .sep { color: var(--accent); font-size: 0.5em; }
.marquee-track span.outline { color: transparent; -webkit-text-stroke: 1px var(--muted-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal animation (visible by default; .in enhances) ---------- */
.reveal.in { animation: revealIn 1s var(--ease) both; }
.reveal-d1.in { animation-delay: .10s; }
.reveal-d2.in { animation-delay: .18s; }
.reveal-d3.in { animation-delay: .26s; }
@keyframes revealIn { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal.in, .hero h1 .line > span { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- Placeholder media ---------- */
.ph { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.ph::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 11px); }
.ph .ph-label { position: absolute; left: 16px; bottom: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(11,11,13,.6); padding: 5px 10px; border-radius: 100px; border: 1px solid var(--line); }
.ph .ph-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--muted-2); }

/* ---------- Services ---------- */
.services-list { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 80px 1.1fr 1.3fr auto; gap: 28px; align-items: center;
  padding-block: clamp(28px, 3.4vw, 46px); border-bottom: 1px solid var(--line);
  position: relative; transition: padding-inline .5s var(--ease);
}
.service::before { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; border-radius: 8px; }
.service:hover { padding-inline: 28px; }
.service:hover::before { transform: scaleY(1); transform-origin: top; }
.service:hover, .service:hover * { color: var(--accent-ink) !important; }
.service:hover .service-arrow { transform: rotate(0); opacity: 1; }
.service .num { font-family: var(--font-mono); font-size: 15px; color: var(--muted); }
.service .s-title { font-size: clamp(24px, 2.6vw, 38px); font-weight: 500; letter-spacing: -0.03em; }
.service .s-desc { color: var(--muted); font-size: 16.5px; max-width: 42ch; }
.service .s-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.service .s-tags span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); border: 1px solid var(--line); padding: 4px 9px; border-radius: 100px; }
.service-arrow { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transform: rotate(-30deg); opacity: .5; transition: transform .5s var(--ease), opacity .5s var(--ease); flex: none; }
@media (max-width: 820px) {
  .service { grid-template-columns: 1fr auto; gap: 6px 18px; }
  .service .s-desc { grid-column: 1 / -1; }
  .service .num { order: -1; }
  .service:hover { padding-inline: 16px; }
}

/* ---------- Portfolio slider ---------- */
.portfolio { overflow: hidden; }
.slider-wrap { position: relative; }
.slider-track { display: flex; gap: clamp(18px, 2.4vw, 34px); transition: transform .8s var(--ease); will-change: transform; }
.proj { flex: 0 0 clamp(300px, 46vw, 620px); }
.proj .proj-media { aspect-ratio: 4 / 3; }
.proj .proj-media .ph { width: 100%; height: 100%; }
.proj .proj-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 20px; }
.proj .proj-meta h3 { font-size: clamp(22px, 2.2vw, 32px); }
.proj .proj-cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.proj .proj-year { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.proj .proj-media .ph { transition: transform .7s var(--ease); }
.proj:hover .proj-media .ph { transform: scale(.985); }
.proj .view-pill { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .4s var(--ease); }
.proj .proj-media { position: relative; }
.proj .view-pill span { background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 12px 22px; border-radius: 100px; transform: translateY(10px); transition: transform .4s var(--ease); }
.proj:hover .view-pill { opacity: 1; }
.proj:hover .view-pill span { transform: none; }
.slider-controls { display: flex; align-items: center; justify-content: space-between; margin-top: clamp(36px, 5vw, 56px); gap: 24px; }
.slider-progress { flex: 1; height: 2px; background: var(--line); position: relative; max-width: 460px; }
.slider-progress .bar { position: absolute; left: 0; top: 0; height: 100%; background: var(--accent); transition: width .6s var(--ease); }
.slider-btns { display: flex; gap: 12px; }
.s-btn { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text); display: grid; place-items: center; transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
.s-btn:hover { background: var(--accent); color: var(--accent-ink); }
.s-btn:disabled { opacity: .3; pointer-events: none; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg); padding: clamp(28px, 3.4vw, 48px); }
.stat .num { font-size: clamp(44px, 6vw, 88px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.stat .num .suffix { color: var(--accent); }
.stat .lbl { color: var(--muted); margin-top: 14px; font-size: 15.5px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-media { aspect-ratio: 4/5; }
.about-media .ph { width: 100%; height: 100%; }
.values { margin-top: 40px; border-top: 1px solid var(--line); }
.value { display: flex; gap: 22px; padding-block: 22px; border-bottom: 1px solid var(--line); align-items: baseline; }
.value .v-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); flex: none; width: 40px; }
.value h4 { font-size: 20px; font-weight: 500; margin-bottom: 4px; }
.value p { color: var(--muted); font-size: 15.5px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-2); border-block: 1px solid var(--line); }
.tst-track { position: relative; min-height: 1px; }
.tst { position: absolute; inset: 0; opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); pointer-events: none; }
.tst.active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.tst blockquote { font-size: clamp(26px, 3.6vw, 50px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; max-width: 20ch; }
.tst blockquote .q { color: var(--accent); }
.tst-author { display: flex; align-items: center; gap: 16px; margin-top: 44px; }
.tst-author .av { width: 54px; height: 54px; border-radius: 50%; flex: none; }
.tst-author .who strong { display: block; font-weight: 500; }
.tst-author .who span { color: var(--muted); font-size: 15px; }
.tst-nav { display: flex; align-items: center; gap: 20px; margin-top: 48px; }
.tst-dots { display: flex; gap: 8px; }
.tst-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--line-strong); transition: background .3s, width .3s; }
.tst-dots button.active { background: var(--accent); width: 28px; border-radius: 100px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: clamp(22px, 2.6vw, 32px); background: none; border: none; color: var(--text); text-align: left; font-family: inherit; font-size: clamp(19px, 2vw, 26px); font-weight: 500; letter-spacing: -0.02em; transition: color .3s var(--ease); }
.faq-q:hover { color: var(--accent); }
.faq-icon { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; position: relative; transition: background .35s var(--ease), border-color .35s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform .4s var(--ease); }
.faq-item.open .faq-icon { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq-item.open .faq-icon::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .55s var(--ease); }
.faq-a-inner { padding-bottom: clamp(22px, 2.6vw, 32px); color: var(--muted); font-size: 17px; max-width: 60ch; }

/* ---------- Contact ---------- */
.contact { position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside .big-mail { font-size: clamp(20px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; }
.contact-aside .big-mail:hover { color: var(--accent); }
.contact-info { margin-top: 48px; display: grid; gap: 24px; }
.contact-info .ci { border-top: 1px solid var(--line); padding-top: 16px; }
.contact-info .ci .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-info .ci .v { font-size: 18px; margin-top: 4px; }

.form { display: grid; gap: 22px; }
.field { position: relative; }
.field label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 12px; }
.field input, .field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line-strong);
  color: var(--text); font-family: inherit; font-size: 19px; padding: 12px 0; transition: border-color .35s var(--ease);
  resize: none; cursor: none;
}
@media (max-width: 900px) { .field input, .field textarea { cursor: auto; } }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field.error input, .field.error textarea { border-color: #ff5a52; }
.field .err-msg { color: #ff7a73; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; margin-top: 8px; display: none; }
.field.error .err-msg { display: block; }
.form-submit { margin-top: 8px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.submit-btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 18px 32px; border-radius: 100px;
  background: var(--accent); color: var(--accent-ink); border: none; font-size: 17px; font-weight: 500;
  transition: transform .4s var(--ease), background .4s var(--ease); position: relative; overflow: hidden;
}
.submit-btn:hover { transform: translateY(-2px); background: var(--text); }
.submit-btn .arrow { transition: transform .4s var(--ease); }
.submit-btn:hover .arrow { transform: translate(4px,-4px); }
.submit-btn.sent { background: var(--accent); pointer-events: none; }
.form-note { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.form-success { display: none; align-items: center; gap: 14px; color: var(--accent); font-size: 17px; }
.form-success.show { display: flex; }
.form-success .check { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(60px, 8vw, 100px); padding-bottom: 40px; }
.footer-cta { font-size: clamp(54px, 13vw, 200px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.86; }
.footer-cta .out { color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.footer-mid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; margin-top: clamp(48px, 7vw, 90px); padding-top: 40px; border-top: 1px solid var(--line); }
.footer-col h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { color: var(--muted); transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: clamp(48px, 7vw, 90px); font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); letter-spacing: .03em; }

/* ---------- EMILY chat ---------- */
.emily-fab {
  position: fixed; bottom: 26px; right: 26px; z-index: 900;
  display: inline-flex; align-items: center; gap: 13px; padding: 12px 12px 12px 20px;
  background: var(--accent); color: var(--accent-ink); border: none; border-radius: 100px;
  box-shadow: 0 14px 40px rgba(0,0,0,.45); transition: transform .4s var(--ease), opacity .3s;
}
.emily-fab:hover { transform: translateY(-3px); }
.emily-fab .e-txt { font-weight: 500; font-size: 15px; }
.emily-fab .e-txt small { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; opacity: .7; text-transform: uppercase; }
.emily-fab .e-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 16px; flex: none; position: relative; }
.emily-fab .e-ava::after { content: ""; position: absolute; bottom: 1px; right: 1px; width: 10px; height: 10px; border-radius: 50%; background: #5ad17a; border: 2px solid var(--accent-ink); }
.emily-fab.hidden { transform: scale(0); opacity: 0; pointer-events: none; }

.emily-panel {
  position: fixed; bottom: 26px; right: 26px; z-index: 901; width: min(400px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 52px)); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 24px; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); transform-origin: bottom right;
  transform: scale(.6) translateY(30px); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.emily-panel.open { transform: none; opacity: 1; pointer-events: auto; }
.emily-head { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.emily-head .e-ava { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; position: relative; }
.emily-head .e-ava::after { content: ""; position: absolute; bottom: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: #5ad17a; border: 2px solid var(--bg-2); }
.emily-head .e-meta { flex: 1; }
.emily-head .e-meta strong { font-weight: 500; font-size: 16px; display: block; }
.emily-head .e-meta span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.emily-head .e-meta span b { color: #5ad17a; font-weight: 400; }
.emily-close { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); display: grid; place-items: center; transition: background .3s; flex: none; }
.emily-close:hover { background: var(--surface-2); }
.emily-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.emily-body::-webkit-scrollbar { width: 6px; }
.emily-body::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }
.msg { max-width: 84%; padding: 13px 16px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.msg.bot { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg.user { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 5px; align-self: flex-end; }
.msg.bot a { color: var(--accent); text-decoration: underline; }
.emily-typing { display: inline-flex; gap: 5px; align-items: center; padding: 15px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 5px; align-self: flex-start; }
.emily-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.4s infinite both; }
.emily-typing span:nth-child(2) { animation-delay: .2s; }
.emily-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.emily-suggest { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 20px 12px; }
.emily-suggest button { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 100px; padding: 8px 13px; transition: background .3s, border-color .3s; }
.emily-suggest button:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.emily-input { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--bg-2); }
.emily-input input { flex: 1; background: var(--surface-2); border: 1px solid var(--line); border-radius: 100px; padding: 13px 18px; color: var(--text); font-family: inherit; font-size: 15px; cursor: none; }
@media (max-width: 900px) { .emily-input input { cursor: auto; } }
.emily-input input:focus { outline: none; border-color: var(--accent); }
.emily-send { width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; transition: transform .3s; }
.emily-send:hover { transform: rotate(-15deg) scale(1.05); }
.emily-send:disabled { opacity: .4; pointer-events: none; }

@media (max-width: 900px) {
  .emily-panel { bottom: 0; right: 0; width: 100vw; height: 100dvh; border-radius: 0; }
}

/* ---------- misc reveal of letters ---------- */
.split-up { display: inline-block; overflow: hidden; vertical-align: top; }
.split-up > i { display: inline-block; font-style: inherit; transform: translateY(110%); transition: transform .9s var(--ease); }
.in .split-up > i { transform: none; }

/* ---------- Image band / gallery reel ---------- */
.img-band { padding-block: clamp(70px, 10vw, 130px); overflow: hidden; }
.img-row { overflow: hidden; padding-block: 9px; }
.img-track { display: flex; gap: 18px; width: max-content; height: clamp(210px, 26vw, 330px); animation: imgScroll 55s linear infinite; }
.img-track.reverse { animation-direction: reverse; animation-duration: 62s; }
.img-row:hover .img-track { animation-play-state: paused; }
@keyframes imgScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.img-tile {
  position: relative; height: 100%; width: clamp(220px, 25vw, 310px); flex: none;
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  margin: 0; background: #16161a; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.img-tile.wide { width: clamp(340px, 39vw, 500px); }
.img-tile.tall { width: clamp(180px, 20vw, 240px); }
.img-tile:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(0,0,0,.5); }
.img-tile figcaption {
  position: absolute; left: 14px; bottom: 13px; z-index: 3;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: rgba(8,8,10,.55);
  padding: 6px 11px; border-radius: 100px; border: 1px solid rgba(255,255,255,.16);
}
.img-tile .grain { display: none; }
/* duotone / gradient "artworks" — single-paint background per tile */
.g1 { background: radial-gradient(110% 80% at 22% 16%, rgba(255,255,255,.22), transparent 52%), linear-gradient(150deg, #c6ff3a, #4a6b0e 60%, #11160a); }
.g2 { background: radial-gradient(110% 80% at 22% 16%, rgba(255,255,255,.22), transparent 52%), linear-gradient(150deg, #1a1f3a, #4530a8 55%, #8b5cf6); }
.g3 { background: radial-gradient(110% 80% at 22% 16%, rgba(255,255,255,.22), transparent 52%), linear-gradient(150deg, #2a0f12, #b13a2e 55%, #ff8a5c); }
.g4 { background: radial-gradient(110% 80% at 22% 16%, rgba(255,255,255,.22), transparent 52%), linear-gradient(150deg, #07262b, #0e6b78 55%, #38d6c4); }
.g5 { background: radial-gradient(110% 80% at 22% 16%, rgba(255,255,255,.22), transparent 52%), linear-gradient(150deg, #16161a, #2a2a32 50%, #6b6b64); }
.g6 { background: radial-gradient(110% 80% at 22% 16%, rgba(255,255,255,.22), transparent 52%), linear-gradient(150deg, #2a0f24, #9b2f7a 55%, #f06ec0); }
.g7 { background: radial-gradient(110% 80% at 22% 16%, rgba(255,255,255,.22), transparent 52%), linear-gradient(150deg, #0a1430, #1d4ed8 55%, #5aa9ff); }
.g8 { background: radial-gradient(110% 80% at 22% 16%, rgba(255,255,255,.22), transparent 52%), linear-gradient(150deg, #1a1207, #9a6a12 55%, #f0c24a); }
.g9 { background: radial-gradient(110% 80% at 22% 16%, rgba(255,255,255,.22), transparent 52%), linear-gradient(150deg, #0e160a, #c6ff3a 70%, #eaffc0); }
.g10 { background: radial-gradient(110% 80% at 22% 16%, rgba(255,255,255,.22), transparent 52%), linear-gradient(150deg, #120a26, #5b21b6 55%, #a78bfa); }
.g11 { background: radial-gradient(110% 80% at 22% 16%, rgba(255,255,255,.22), transparent 52%), linear-gradient(150deg, #2b0a16, #be185d 55%, #fb7185); }
.g12 { background: radial-gradient(110% 80% at 22% 16%, rgba(255,255,255,.22), transparent 52%), linear-gradient(150deg, #07211c, #0f766e 55%, #5eead4); }
@media (prefers-reduced-motion: reduce) { .img-track { animation: none; } }
