/* =========================================================================
   Vincent Regnault — Portfolio
   Recréation statique fidèle du design Portfolio.dc.html (Claude Design)
   ========================================================================= */

:root {
  --ink: #0B1220;
  --paper: #EEF1F6;
  --cream: #F7F9FC;
  --blue: #2E7DF2;
  --cyan: #22D3EE;
  --sky: #38BDF8;
  --indigo: #6366F1;
  --teal: #0FB5A6;
  --accent: #0FB5A6;
  --muted: #5B6472;
  --line: rgba(11, 18, 32, .14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--ink); }
input, textarea, button { font-family: inherit; }
input, textarea { cursor: text; }

img { max-width: 100%; }

/* -------------------------------------------------------------------------
   Keyframes
   ------------------------------------------------------------------------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes grainshift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-6%, 3%); }
  40%  { transform: translate(4%, -5%); }
  60%  { transform: translate(-3%, 6%); }
  80%  { transform: translate(5%, -2%); }
  100% { transform: translate(0, 0); }
}

/* -------------------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------------------- */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.font-display { font-family: 'Bricolage Grotesque', sans-serif; }
.font-mono { font-family: 'Space Mono', monospace; }

/* -------------------------------------------------------------------------
   Global fixed overlays
   ------------------------------------------------------------------------- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  z-index: 2000;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 1500;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainshift 8s steps(6) infinite;
}

/* -------------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(14px, 2vw, 20px) clamp(20px, 5vw, 64px);
  color: #EEF1F6;
  transition: background .4s ease, color .4s ease, border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: inherit;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.02em;
}
.nav-logo:hover { color: inherit; }

.nav-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.2rem);
}

.nav-links a {
  color: inherit;
  font-weight: 500;
  font-size: .98rem;
}

.nav-links a.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: .95rem;
  padding: .6rem 1.15rem;
  border-radius: 100px;
  border: 2px solid var(--ink);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s;
}
.nav-links a.nav-cta:hover { color: var(--ink); }

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1.5px solid currentColor;
  border-radius: 12px;
  color: inherit;
  cursor: pointer;
}
.nav-burger span { width: 20px; height: 2px; background: currentColor; display: block; }

/* Bascule desktop / mobile en CSS (robuste même sans JS) */
@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (min-width: 900px) {
  .nav-overlay { display: none !important; }
}

/* Verrouillage du défilement quand le menu mobile est ouvert */
body.nav-open { overflow: hidden; }

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1600;
  background: var(--ink);
  color: var(--paper);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.nav-overlay.is-open { display: flex; }
.nav-overlay a {
  color: var(--paper);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 2rem;
}
.nav-overlay a.nav-overlay-cta {
  margin-top: .5rem;
  display: inline-flex;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  padding: .8rem 1.6rem;
}
.nav-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1.5px solid rgba(236, 242, 251, .4);
  border-radius: 12px;
  color: var(--paper);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: clamp(120px, 17vh, 180px) 0 clamp(64px, 9vw, 120px);
}

.hero-ghost {
  position: absolute;
  left: 50%;
  bottom: -.16em;
  transform: translateX(-50%);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(6rem, 26vw, 25rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(236, 242, 251, .06);
  white-space: nowrap;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -18%;
  right: -8%;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 22%, transparent), transparent 62%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Space Mono', monospace;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(236, 242, 251, .72);
  animation: rise .7s ease both;
}
.hero-eyebrow .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: floaty 3s ease-in-out infinite;
  display: inline-block;
}

.hero-title {
  margin: .5em 0 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 7.6vw, 6.6rem);
  line-height: .98;
  letter-spacing: -.03em;
  max-width: 16ch;
  animation: rise .8s ease .08s both;
}
.hero-title .hl { position: relative; color: var(--cyan); white-space: nowrap; }
.hero-title .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .02em;
  height: .1em;
  background: var(--cyan);
  opacity: .35;
  border-radius: 3px;
}

.hero-lead {
  margin: 1.4rem 0 0;
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.6;
  color: rgba(236, 242, 251, .78);
  animation: rise .8s ease .16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2rem;
  animation: rise .8s ease .24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 1rem 1.7rem;
  border-radius: 100px;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s, color .3s;
}
.btn-primary {
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--accent);
}
.btn-primary:hover { color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--paper);
  padding: 1rem 1.6rem;
  border: 2px solid rgba(236, 242, 251, .4);
}
.btn-ghost:hover { color: var(--paper); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.4rem, 4vw, 3rem);
  margin-top: 2.8rem;
  animation: rise .8s ease .32s both;
}
.hero-stats .num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}
.hero-stats .label {
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(236, 242, 251, .6);
  margin-top: .35rem;
}

.hero-badge {
  position: absolute;
  right: clamp(20px, 5vw, 64px);
  bottom: clamp(36px, 7vw, 84px);
  width: 118px;
  height: 118px;
  z-index: 3;
  animation: floaty 5s ease-in-out infinite;
}
.hero-badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero-badge text { font-family: 'Space Mono', monospace; font-size: 10.5px; letter-spacing: 2.4px; fill: var(--paper); }
.hero-badge .arrow { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-badge .arrow span { font-size: 1.4rem; color: var(--accent); }

/* -------------------------------------------------------------------------
   Marquee band
   ------------------------------------------------------------------------- */
.band {
  overflow: hidden;
  background: var(--accent);
  border-top: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  padding: .7rem 0;
}
.band-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.band-group {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3.5vw, 3rem);
  padding-right: clamp(1.4rem, 3.5vw, 3rem);
  flex: none;
}
.band-group span.word {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: -.01em;
}
.band-group span.sep { color: var(--ink); font-size: clamp(1rem, 2vw, 1.5rem); }

/* -------------------------------------------------------------------------
   Shared section heading
   ------------------------------------------------------------------------- */
.section { padding: clamp(72px, 11vw, 150px) 0; scroll-margin-top: 96px; }

.eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  letter-spacing: -.02em;
  line-height: 1.02;
  margin: .25em 0 0;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* -------------------------------------------------------------------------
   Projects
   ------------------------------------------------------------------------- */
.projects-head { max-width: none; }
/* Mesure appliquée au titre lui-même (ch calculé sur sa grande police) */
.section-title { max-width: 22ch; }

.browser-window {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0A1120;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  background: #16223C;
}
.browser-bar .dotpip { width: 9px; height: 9px; border-radius: 50%; display: block; }
.browser-bar .url {
  margin-left: 6px;
  font-family: 'Space Mono', monospace;
  font-size: .68rem;
  color: rgba(236, 242, 251, .55);
  background: rgba(236, 242, 251, .08);
  padding: 2px 10px;
  border-radius: 100px;
}
.browser-screen {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0A1120;
}
.browser-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

/* Placeholder screen (missing screenshots) */
.slot-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  background:
    radial-gradient(circle at 30% 25%, rgba(15, 181, 166, .10), transparent 55%),
    repeating-linear-gradient(45deg, rgba(236, 242, 251, .03) 0 10px, transparent 10px 20px),
    #0A1120;
}
.slot-placeholder .slot-inner {
  font-family: 'Space Mono', monospace;
  font-size: .74rem;
  letter-spacing: .04em;
  line-height: 1.5;
  color: rgba(236, 242, 251, .5);
}
.slot-placeholder .slot-icon {
  display: block;
  margin: 0 auto .55rem;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(236, 242, 251, .28);
  color: rgba(236, 242, 251, .55);
  font-size: 1rem;
}

/* Flagship project */
.flagship {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: clamp(2.4rem, 4vw, 3.5rem);
  color: inherit;
}
.flagship:hover { color: inherit; }
.flagship-head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.flagship-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  color: var(--teal);
  line-height: 1;
}
.pill {
  font-family: 'Space Mono', monospace;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 11px;
  border-radius: 100px;
}
.flagship-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  letter-spacing: -.02em;
  margin: .4em 0 0;
}
.proj-meta {
  font-family: 'Space Mono', monospace;
  font-size: .8rem;
  letter-spacing: .05em;
  color: var(--muted);
  margin-top: .55rem;
}
.flagship-desc {
  margin: 1rem 0 0;
  max-width: 44ch;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #3E4757;
}
.link-underline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.4rem;
  font-weight: 700;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}
.flagship-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0A1120;
  box-shadow: 0 30px 60px -30px rgba(22, 19, 15, .45);
}
.flagship-frame .accent-strip { height: 5px; background: var(--teal); }
.flagship-frame .browser-bar { padding: 11px 14px; background: #16223C; }
.flagship-frame .browser-bar .dotpip { width: 11px; height: 11px; }
.flagship-frame .browser-bar .url { margin-left: 8px; font-size: .72rem; color: rgba(236, 242, 251, .6); padding: 3px 12px; }
.flagship:hover .flagship-frame img { transform: scale(1.04); }

/* Project grid */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.4rem, 2.6vw, 2rem);
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}
.proj-card { display: flex; flex-direction: column; color: inherit; }
.proj-card:hover { color: inherit; }
.proj-card .browser-window {
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s;
}
.proj-card:hover .browser-window {
  transform: translateY(-8px);
  box-shadow: 0 26px 50px -24px rgba(22, 19, 15, .5);
}
.proj-card .accent-strip { height: 5px; }
.proj-body { padding: 1.1rem .2rem 0; }
.proj-body-head { display: flex; align-items: baseline; gap: .7rem; }
.proj-n {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
}
.proj-h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 0;
  letter-spacing: -.01em;
}
.proj-tag {
  margin-left: auto;
  font-family: 'Space Mono', monospace;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
}
.proj-desc { margin: .7rem 0 0; font-size: 1rem; line-height: 1.55; color: #3E4757; }
.proj-visit { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; font-weight: 700; font-size: .95rem; }

/* -------------------------------------------------------------------------
   Projects showcase (liste + aperçu animé, style Mastra)
   ------------------------------------------------------------------------- */
.showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) 1.3fr;
  gap: clamp(1.4rem, 3.5vw, 3rem);
  align-items: start;
  margin-top: clamp(2.4rem, 4vw, 3.5rem);
}

.showcase-list { display: flex; flex-direction: column; gap: .4rem; }

.showcase-item {
  position: relative;
  border-radius: 16px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: background .35s ease, border-color .35s ease;
}
.showcase-item.is-active { background: var(--cream); border-color: var(--line); }

.showcase-btn {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  padding: clamp(.95rem, 2vw, 1.25rem) clamp(1rem, 2vw, 1.4rem);
}
.showcase-btn:focus-visible { outline: 2px solid var(--c, var(--accent)); outline-offset: -3px; border-radius: 14px; }

.showcase-num {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--c, var(--accent));
  opacity: .45;
  flex: none;
  transition: opacity .3s ease;
}
.showcase-item.is-active .showcase-num { opacity: 1; }

.showcase-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -.01em;
}

.showcase-tag {
  margin-left: auto;
  font-family: 'Space Mono', monospace;
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
  flex: none;
}

.showcase-detail {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  padding: 0 clamp(1rem, 2vw, 1.4rem);
  transition: max-height .45s cubic-bezier(.2, .7, .2, 1), opacity .35s ease, visibility 0s linear .45s;
}
.showcase-item.is-active .showcase-detail {
  max-height: 360px;
  visibility: visible;
  opacity: 1;
  transition: max-height .45s cubic-bezier(.2, .7, .2, 1), opacity .35s ease .05s, visibility 0s;
}
.showcase-detail-inner { min-height: 0; }

.showcase-desc { margin: .55rem 0 0; font-size: 1rem; line-height: 1.55; color: #3E4757; max-width: 46ch; }

.showcase-visit {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: .9rem 0 clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  border-bottom: 2px solid var(--c, var(--accent));
  padding-bottom: 2px;
}
.showcase-visit:hover { color: var(--c, var(--accent)); }

/* Barre de progression de l'auto-défilement */
.showcase-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: transparent; }
.showcase-progress-fill { display: block; height: 100%; width: 0; background: var(--c, var(--accent)); }
.showcase.auto .showcase-item.is-active .showcase-progress-fill { animation: fillbar 4.5s linear forwards; }
.showcase.auto:hover .showcase-item.is-active .showcase-progress-fill,
.showcase.auto:focus-within .showcase-item.is-active .showcase-progress-fill,
.showcase.auto.is-offscreen .showcase-item.is-active .showcase-progress-fill { animation-play-state: paused; }
.showcase:not(.auto) .showcase-progress { display: none; }
@keyframes fillbar { from { width: 0; } to { width: 100%; } }

/* Aperçu (droite) — cadres empilés en fondu */
.showcase-preview { display: grid; position: sticky; top: 90px; }
.showcase-frame {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0A1120;
  box-shadow: 0 30px 60px -30px rgba(22, 19, 15, .45);
  color: inherit;
  opacity: 0;
  transform: translateY(14px) scale(.985);
  pointer-events: none;
  visibility: hidden; /* sort les cadres inactifs du tab-order clavier */
  transition: opacity .5s ease, transform .55s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .55s;
}
.showcase-frame.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition: opacity .5s ease, transform .55s cubic-bezier(.2, .7, .2, 1), visibility 0s;
}
.showcase-frame:hover { color: inherit; }
.showcase-frame .accent-strip { height: 5px; background: var(--c, var(--accent)); }
.showcase-frame .browser-bar { padding: 11px 14px; }
.showcase-frame .browser-bar .dotpip { width: 11px; height: 11px; }
.showcase-frame .browser-bar .url { font-size: .72rem; color: rgba(236, 242, 251, .6); padding: 3px 12px; }
.showcase-frame .browser-screen { aspect-ratio: 16 / 10; }

@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; gap: clamp(1.4rem, 4vw, 2rem); }
  .showcase-preview { position: static; order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-frame { transition: none; opacity: 1; transform: none; }
  .showcase-frame:not(.is-active) { display: none; }
  .showcase-progress-fill { animation: none !important; }
}

/* -------------------------------------------------------------------------
   Services
   ------------------------------------------------------------------------- */
.services { background: var(--cream); }
.services-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.services-list { border-top: 1px solid var(--line); }
.service-row {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  flex-wrap: wrap;
  padding: clamp(1.6rem, 3.4vw, 2.6rem) clamp(.8rem, 2vw, 1.6rem);
  border-bottom: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1), background .35s ease, padding-left .35s ease;
}
.service-row:hover {
  background: var(--ink);
  color: var(--paper);
  padding-left: clamp(1.4rem, 3vw, 2.4rem);
}
.service-num { font-family: 'Space Mono', monospace; font-size: .9rem; color: var(--accent); flex: none; }
.service-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  margin: 0;
  flex: 0 0 auto;
  letter-spacing: -.01em;
}
.service-desc { flex: 1 1 320px; margin: 0; font-size: 1.05rem; line-height: 1.55; opacity: .82; }
.service-arrow { margin-left: auto; font-size: 1.6rem; flex: none; }
.badge-soon {
  font-family: 'Space Mono', monospace;
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  background: var(--accent);
  color: var(--ink);
  padding: 3px 9px;
  border-radius: 100px;
  vertical-align: middle;
}

/* -------------------------------------------------------------------------
   About
   ------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-media { position: relative; }
.about-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(22, 19, 15, .4);
}
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.about-photo .slot-placeholder {
  background:
    radial-gradient(circle at 50% 30%, rgba(15, 181, 166, .12), transparent 60%),
    repeating-linear-gradient(45deg, rgba(11, 18, 32, .03) 0 12px, transparent 12px 24px),
    var(--cream);
}
.about-photo .slot-placeholder .slot-inner { color: var(--muted); }
.about-photo .slot-placeholder .slot-icon { border-color: var(--line); color: var(--muted); }
.about-tag {
  position: absolute;
  bottom: -14px;
  left: -14px;
  background: var(--accent);
  color: var(--ink);
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .5rem .9rem;
  border-radius: 100px;
  border: 2px solid var(--ink);
}
.about-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -.02em;
  line-height: 1.02;
  margin: .25em 0 .6em;
}
.about-p { margin: 0; font-size: 1.1rem; line-height: 1.65; color: #3E4757; max-width: 52ch; }
.about-p + .about-p { margin-top: 1rem; }
.about-quote {
  margin: 1.8rem 0 0;
  padding-left: 1.2rem;
  border-left: 4px solid var(--accent);
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.about-tags { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.chip {
  font-size: .9rem;
  font-weight: 500;
  border: 1px solid var(--line);
  padding: .5rem 1rem;
  border-radius: 100px;
}

/* -------------------------------------------------------------------------
   Automation
   ------------------------------------------------------------------------- */
.automation {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.automation-glow {
  position: absolute;
  bottom: -20%;
  left: -8%;
  width: 50vw;
  height: 50vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 16%, transparent), transparent 62%);
  pointer-events: none;
}
.automation-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.automation .eyebrow { color: var(--accent); }
.automation-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: -.02em;
  line-height: 1.02;
  margin: .25em 0 .5em;
}
.automation-p { margin: 0; max-width: 46ch; font-size: 1.1rem; line-height: 1.65; color: rgba(236, 242, 251, .75); }
.link-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.8rem;
  background: transparent;
  color: var(--paper);
  font-weight: 700;
  font-size: 1rem;
  padding: .9rem 1.5rem;
  border-radius: 100px;
  border: 2px solid rgba(236, 242, 251, .4);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .3s, color .3s;
}
.link-ghost:hover { border-color: var(--accent); color: var(--accent); }

.terminal {
  border-radius: 16px;
  border: 1px solid rgba(236, 242, 251, .15);
  background: #0A1120;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #16223C;
  border-bottom: 1px solid rgba(236, 242, 251, .08);
}
.terminal-bar .dotpip { width: 11px; height: 11px; border-radius: 50%; display: block; }
.terminal-bar .fname { margin-left: 8px; font-family: 'Space Mono', monospace; font-size: .72rem; color: rgba(236, 242, 251, .5); }
.terminal-body {
  padding: 1.3rem 1.4rem;
  font-family: 'Space Mono', monospace;
  font-size: .86rem;
  line-height: 2.05;
}
.terminal-body .comment { color: rgba(236, 242, 251, .4); }
.terminal-body .arrow { color: var(--accent); }
.terminal-body .time { color: rgba(236, 242, 251, .45); }
.terminal-body .ok { color: var(--teal); }
.terminal-body .saved { color: rgba(236, 242, 251, .5); margin-top: .3rem; }
.terminal-body .caret {
  display: inline-block;
  width: 9px;
  height: 1.05em;
  background: var(--accent);
  margin-left: 6px;
  vertical-align: -2px;
  animation: blink 1.1s step-end infinite;
}

/* -------------------------------------------------------------------------
   Contact
   ------------------------------------------------------------------------- */
.contact-card {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 4.5rem);
}
.contact-glow {
  position: absolute;
  top: -30%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 20%, transparent), transparent 62%);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.contact .eyebrow { color: var(--accent); }
.contact-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -.02em;
  line-height: 1;
  margin: .25em 0 .5em;
}
.contact-lead { margin: 0 0 1.8rem; max-width: 38ch; font-size: 1.08rem; line-height: 1.6; color: rgba(236, 242, 251, .75); }
.contact-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--paper);
  font-size: 1.05rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(236, 242, 251, .15);
}
.contact-link:hover { color: var(--accent); }
.contact-link .ico { color: var(--accent); }
.contact-note { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; padding: .6rem 0; color: rgba(236, 242, 251, .75); }
.contact-note .ico { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label {
  font-family: 'Space Mono', monospace;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(236, 242, 251, .6);
}
.field input,
.field textarea {
  background: rgba(236, 242, 251, .06);
  border: 1px solid rgba(236, 242, 251, .2);
  border-radius: 12px;
  padding: .9rem 1rem;
  color: var(--paper);
  font-size: 1rem;
  outline: none;
  transition: border-color .25s;
}
.field textarea { resize: vertical; font-family: 'Space Grotesk', sans-serif; }
.field input:focus,
.field textarea:focus { border-color: var(--accent); }
.field input::placeholder,
.field textarea::placeholder { color: rgba(236, 242, 251, .4); }

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

.contact-error {
  margin-top: .9rem;
  font-size: .95rem;
  line-height: 1.5;
  color: #FCA5A5;
}
.contact-error a { color: inherit; text-decoration: underline; }

.btn-submit {
  margin-top: .4rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 1.6rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
}
.btn-submit:hover { box-shadow: 0 16px 40px -12px color-mix(in oklab, var(--accent) 70%, transparent); }

.contact-success { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 2rem 0; }
.contact-success .check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 1.6rem;
}
.contact-success h3 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.6rem; margin: 0; }
.contact-success p { margin: 0; color: rgba(236, 242, 251, .75); max-width: 34ch; }
.btn-reset {
  margin-top: .4rem;
  background: transparent;
  color: var(--paper);
  font-weight: 700;
  font-size: 1rem;
  padding: .8rem 1.4rem;
  border: 2px solid rgba(236, 242, 251, .4);
  border-radius: 100px;
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.btn-reset:hover { border-color: var(--accent); color: var(--accent); }
[hidden] { display: none !important; }

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(44px, 7vw, 80px) 0 clamp(28px, 4vw, 40px);
}
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-brand { max-width: 34ch; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -.02em;
}
.footer-logo .nav-badge { width: 36px; height: 36px; font-size: 1rem; }
.footer-brand p { margin: 1rem 0 0; color: rgba(236, 242, 251, .6); line-height: 1.6; }
.footer-cols { display: flex; gap: clamp(2rem, 6vw, 4rem); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: .7rem; }
.footer-col .col-title {
  font-family: 'Space Mono', monospace;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(236, 242, 251, .4);
}
.footer-col a { color: rgba(236, 242, 251, .85); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(236, 242, 251, .12);
  font-family: 'Space Mono', monospace;
  font-size: .74rem;
  color: rgba(236, 242, 251, .55);
}
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--accent); }

/* -------------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
