/* ═══════════════════════════════════════
   PIIOT — Less is More
   Palette : noir / blanc + accent cyan
═══════════════════════════════════════ */

:root {
  --bg:      #ffffff;
  --bg-off:  #f7f7f7;
  --dark:    #0a0a0a;
  --mid:     #1a1a1a;
  --muted:   #888;
  --line:    #e8e8e8;
  --accent:  #00ffcc;
  --max:     1200px;
  --pad:     clamp(20px, 5vw, 48px);
  --radius:  4px;
  --mono:    'DM Mono', monospace;
  --sans:    'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --display: 'Outfit', 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--display);
}

h1 { font-weight: 800; letter-spacing: -.01em; }
h2 { font-weight: 800; letter-spacing: -.02em; }
h3 { font-weight: 700; letter-spacing: -.01em; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ═══ ACCENT ═══ */
.accent {
  color: var(--accent);
}

/* ═══ HEADER ═══ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
header.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.06); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-label {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.logo {
  height: 28px;
  width: auto;
  display: block;
}

.logo-footer {
  height: 22px;
  opacity: .75;
}

nav { display: flex; gap: 8px; align-items: center; }

nav a {
  font-size: .85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  color: var(--muted);
  transition: color .2s, background .2s;
  letter-spacing: .02em;
}
nav a:hover,
nav a.active { color: var(--accent); background: rgba(0,255,204,.08); }

nav a.nav-cta {
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
}
nav a.nav-cta:hover { background: var(--accent); color: var(--dark); }

/* ═══ MENU BURGER ═══ */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══ BTN PRIMARY ═══ */
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--dark);
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-1px);
}

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 60px;
  overflow: hidden;
  background: var(--bg);
}

.hero .container { position: relative; z-index: 1; }

.hero-label {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: var(--display);
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: 24px;
  color: var(--dark);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ═══ TYPEWRITER ═══ */
.typewriter-wrap {
  display: inline;
}

#typewriter {
  border-right: none;
}

.cursor {
  display: inline-block;
  color: var(--accent);
  font-weight: 300;
  animation: blink .7s step-end infinite;
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ═══ HIGHLIGHT GLOW ═══ */
.highlight-blink {
  color: #00ffcc;
  font-weight: 700;
  letter-spacing: .06em;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.4), 0 0 20px rgba(0, 255, 204, 0.15);
  animation: blink-text 1.4s ease-in-out infinite;
}

@keyframes blink-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.hero-bg-text {
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(8rem, 22vw, 22rem);
  font-weight: 900;
  letter-spacing: -.05em;
  color: rgba(0,0,0,.03);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

/* ═══ SECTIONS ═══ */
.section {
  padding: clamp(60px, 10vw, 120px) 0;
  border-top: 1px solid var(--line);
}
.section-dark {
  background: var(--dark);
  color: #fff;
  border-top: none;
}
.section-dark .muted,
.section-dark p { color: rgba(255,255,255,.6); }
.section-dark .section-label { color: var(--accent); }

.section-off { background: var(--bg-off); }

.section-label {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.section-label.light { color: rgba(255,255,255,.4); }

.section h2 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 32px;
  color: inherit;
}
.section-dark h2 { color: #fff; }

.section-intro {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 56px;
  line-height: 1.75;
}

/* ═══ GRID 3 ═══ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* ═══ VISION CARDS ═══ */
.vc {
  padding: 40px 32px;
  border: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  overflow: hidden;
  cursor: default;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease,
              border-color .3s, box-shadow .3s;
}
.vc.is-active {
  opacity: 1;
  transform: translateY(0);
}
.vc:hover {
  border-color: var(--accent);
  box-shadow: 0 0 28px rgba(0,255,204,.06);
}

/* ── Watermark numeral SVG ── */
.vc-num-svg {
  position: absolute;
  top: 14px; right: 18px;
  width: 72px; height: 58px;
  pointer-events: none;
  color: rgba(0,0,0,.07);
}
.vc-num-path {
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}
.vc.is-active .vc-num-path          { animation: draw-vc-num .5s ease forwards .05s; }
.vc.is-active .vc-num-path.np-d1   { animation: draw-vc-num .5s ease forwards .18s; }
.vc.is-active .vc-num-path.np-d2   { animation: draw-vc-num .5s ease forwards .31s; }
@keyframes draw-vc-num { to { stroke-dashoffset: 0; } }

/* ── Micro-visual area ── */
.vc-visual {
  height: 38px;
  display: flex;
  align-items: center;
  color: var(--accent);
  opacity: .75;
  margin-bottom: 18px;
}

/* Simple — 3 lines merge to 1 */
.vi-l1, .vi-l3 {
  transform-box: fill-box;
  transform-origin: center;
}
.vc[data-vc="0"].is-active .vi-l1 {
  animation: merge-up   .45s ease forwards .35s;
}
.vc[data-vc="0"].is-active .vi-l3 {
  animation: merge-down .45s ease forwards .35s;
}
@keyframes merge-up   { to { transform: translateY(7px);  opacity: 0; } }
@keyframes merge-down { to { transform: translateY(-7px); opacity: 0; } }

/* Robuste — box shake + check draw */
.rob-check  { stroke-dasharray: 30; stroke-dashoffset: 30; }
.vc[data-vc="1"].is-active .vc-robust-svg {
  animation: micro-shake .14s ease .12s 2;
}
.vc[data-vc="1"].is-active .rob-check {
  animation: draw-rob-check .4s ease forwards .45s;
}
@keyframes micro-shake {
  0%,100% { transform: translateX(0); }
  30%     { transform: translateX(-3px); }
  70%     { transform: translateX(3px); }
}
@keyframes draw-rob-check { to { stroke-dashoffset: 0; } }

/* Durable — curve + arrow tip */
.vc[data-vc="2"].is-active .vc-chart-path {
  animation: draw-chart .85s ease forwards .1s;
}
.vc[data-vc="2"].is-active .vc-arrow-tip {
  animation: draw-chart .3s ease forwards .85s;
}
@keyframes draw-chart { to { stroke-dashoffset: 0; } }

/* ── Title underline ── */
.vc-title-wrap { margin-bottom: 12px; }
.vc-title-wrap h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 7px;
}
.vc-underline {
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}
.vc.is-active .vc-underline {
  animation: underline-grow .35s ease forwards .42s;
}
@keyframes underline-grow { to { transform: scaleX(1); } }

/* ── Badge ── */
.vc-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid var(--accent);
  border-radius: 20px;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0;
  transform: scale(.65);
  transform-origin: left center;
}
.vc.is-active .vc-badge {
  animation: badge-vc-pop .42s cubic-bezier(.34,1.56,.64,1) forwards .58s;
}
@keyframes badge-vc-pop { to { opacity: 1; transform: scale(1); } }

/* ── Body text ── */
.vc p {
  color: var(--muted);
  font-size: .97rem;
  line-height: 1.7;
  transition: transform .3s ease;
}
@media (hover: hover) {
  .vc:hover p { transform: translateX(7px); }
}

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .vc { transform: none !important; transition: opacity .4s ease !important; }
  .vc:not(.is-active) { opacity: .2; }
  .vc-num-path, .rob-check, .vc-chart-path, .vc-arrow-tip {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
  .vc-underline {
    animation: none !important;
    transform: scaleX(1) !important;
  }
  .vc-badge {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .vi-l1, .vi-l3 { animation: none !important; }
  .vc:hover p { transform: none; }
}

/* ═══ EXPERTISE STACK ═══ */
.expertise-stack {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
  margin-top: 48px;
  overflow-x: auto;
}

/* ── Item : caché avant scroll ── */
.stack-item {
  flex: 1;
  min-width: 150px;
  padding: 26px 20px 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease,
              border-color .3s, box-shadow .3s, background .3s;
}
.stack-item.is-active {
  opacity: 1;
  transform: translateY(0);
}
.stack-item:hover {
  border-color: rgba(0,255,204,.25);
  box-shadow: 0 0 20px rgba(0,255,204,.07);
  background: rgba(255,255,255,.06);
}

/* ── Visual micro ── */
.si-visual {
  height: 34px;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  color: var(--accent);
  opacity: .75;
}

/* ── PCB / Capteur ── */
.si-pcb { flex-shrink: 0; }
.pcb-border { animation: none; }
.pcb-trace, .pcb-chip, .pcb-border { stroke-dashoffset: inherit; }
.stack-item[data-step="0"].is-active .pcb-border { animation: draw-stroke .3s ease forwards .02s; }
.stack-item[data-step="0"].is-active .pcb-chip   { animation: draw-stroke .25s ease forwards .25s; }
.stack-item[data-step="0"].is-active .tr1 { animation: draw-stroke .2s ease forwards .18s; }
.stack-item[data-step="0"].is-active .tr2 { animation: draw-stroke .2s ease forwards .28s; }
.stack-item[data-step="0"].is-active .tr3 { animation: draw-stroke .15s ease forwards .38s; }

/* Binary — Embarqué */
.si-binary {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .18em;
  color: var(--accent);
  opacity: 0;
}
.stack-item[data-step="1"].is-active .si-binary {
  animation: binary-flicker .7s steps(3, end) forwards .1s;
}
@keyframes binary-flicker {
  0%   { opacity: 0; }
  30%  { opacity: .9; }
  55%  { opacity: .3; }
  75%  { opacity: 1; }
  100% { opacity: 1; }
}

/* ── Brain / TinyML ── */
.si-brain { flex-shrink: 0; }
.stack-item[data-step="2"].is-active .brain-l    { animation: draw-stroke .35s ease forwards .03s; }
.stack-item[data-step="2"].is-active .brain-r    { animation: draw-stroke .35s ease forwards .1s;  }
.stack-item[data-step="2"].is-active .bw1        { animation: draw-stroke .2s  ease forwards .42s; }
.stack-item[data-step="2"].is-active .bw2        { animation: draw-stroke .2s  ease forwards .52s; }

/* ── Network / Connectivité ── */
.si-network { flex-shrink: 0; }
.stack-item[data-step="3"].is-active .nl1 { animation: draw-stroke .15s ease forwards .03s; }
.stack-item[data-step="3"].is-active .nl2 { animation: draw-stroke .15s ease forwards .1s;  }
.stack-item[data-step="3"].is-active .nl3 { animation: draw-stroke .15s ease forwards .17s; }
.stack-item[data-step="3"].is-active .nl4 { animation: draw-stroke .15s ease forwards .24s; }

/* ── Cloud / Plateforme IoT ── */
.si-cloud { flex-shrink: 0; }
.stack-item[data-step="4"].is-active .cloud-path  { animation: draw-stroke .4s ease forwards .03s; }
.stack-item[data-step="4"].is-active .cloud-arrow { animation: draw-stroke .2s ease forwards .38s; }

/* ── Dashboard ── */
.si-dash { flex-shrink: 0; }
.stack-item[data-step="5"].is-active .dash-arc    { animation: draw-stroke .35s ease forwards .03s; }
.stack-item[data-step="5"].is-active .dash-needle { animation: needle-swing .35s cubic-bezier(.34,1.3,.64,1) forwards .35s; }
.stack-item[data-step="5"].is-active .b1 { animation: bar-rise .18s ease forwards .38s; }
.stack-item[data-step="5"].is-active .b2 { animation: bar-rise .18s ease forwards .48s; }
.stack-item[data-step="5"].is-active .b3 { animation: bar-rise .18s ease forwards .58s; }
@keyframes needle-swing { from { transform: rotate(-80deg); } to { transform: rotate(0deg); } }
@keyframes bar-rise { to { opacity: .55; } }

/* Shared draw keyframe */
@keyframes draw-stroke { to { stroke-dashoffset: 0; } }

/* ── Connector + chain SVG ── */
.stack-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2px;
  position: relative;
  align-self: center;
  flex-shrink: 0;
  width: 50px;
}
.chain-svg {
  width: 44px;
  height: 14px;
  overflow: visible;
}
.cl {
  fill: none;
  opacity: 0;
  color: rgba(255,255,255,.18);
}
.stack-connector.is-active .cl { color: rgba(0,255,204,.5); }
.stack-connector.is-active .cl0 { animation: link-pop .15s ease forwards 0s;    }
.stack-connector.is-active .cl1 { animation: link-pop .15s ease forwards .07s;  }
.stack-connector.is-active .cl2 { animation: link-pop .15s ease forwards .14s;  }
.stack-connector.is-active .cl3 { animation: link-pop .15s ease forwards .21s;  }
@keyframes link-pop { to { opacity: 1; } }

/* ── Pulse dot ── */
.chain-pulse {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent);
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}
.stack-connector.pulse-run .chain-pulse {
  animation: pulse-travel .38s ease-in-out forwards;
}
@keyframes pulse-travel {
  0%   { left: 0%;   opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ── Tags & text ── */
.stack-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: var(--mono);
}
.stack-item p {
  font-size: .88rem;
  line-height: 1.65;
  color: rgba(255,255,255,.5);
}

/* ── prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  .stack-item { transform: none !important; transition: opacity .4s ease !important; }
  .stack-item:not(.is-active) { opacity: .25; }
  .pcb-border, .pcb-chip, .pcb-trace,
  .brain-l, .brain-r, .bw1, .bw2,
  .net-line, .cloud-path, .cloud-arrow,
  .dash-arc {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
  .si-binary { animation: none !important; opacity: 1 !important; }
  .dash-needle { animation: none !important; transform: none !important; }
  .dash-bar { animation: none !important; opacity: .55 !important; }
  .chain-pulse { display: none; }
}

/* ═══ TIMELINE PATH ═══ */
.timeline {
  position: relative;
  margin-top: 56px;
  padding-left: 28px;
}

.timeline-track {
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline-progress {
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), rgba(0,255,204,.2));
  border-radius: 2px;
  transition: height .15s linear;
  box-shadow: 0 0 12px rgba(0,255,204,.4);
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tl-step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 0;
  position: relative;
  opacity: .3;
  transform: translateX(-8px);
  transition: opacity .5s ease, transform .5s ease;
}

.tl-step.active {
  opacity: 1;
  transform: translateX(0);
}

.tl-dot {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  z-index: 2;
  transition: border-color .4s, box-shadow .4s, background .4s;
}

.tl-dot span {
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  transition: color .4s;
}

.tl-step.active .tl-dot {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0,255,204,.35), 0 0 4px rgba(0,255,204,.6);
  background: var(--dark);
}

.tl-step.active .tl-dot span {
  color: var(--accent);
}

.tl-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.tl-content p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* ═══ PORTFOLIO BOOK ═══ */
.portfolio-track {
  overflow-x: auto;
  padding: 40px var(--pad) 60px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,255,204,.3) transparent;
}
.portfolio-track:active { cursor: grabbing; }
.portfolio-track::-webkit-scrollbar { height: 4px; }
.portfolio-track::-webkit-scrollbar-track { background: transparent; }
.portfolio-track::-webkit-scrollbar-thumb { background: rgba(0,255,204,.3); border-radius: 2px; }

.portfolio-book {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 0 var(--pad);
}

.book-card {
  width: 280px;
  height: 340px;
  flex-shrink: 0;
  perspective: 1000px;
  cursor: pointer;
  outline: none;
}

.book-card .book-front,
.book-card .book-back {
  position: absolute;
  inset: 0;
  padding: 32px 28px;
  border-radius: 4px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.book-card {
  position: relative;
  transform-style: preserve-3d;
  transition: box-shadow .3s;
}

.book-card .book-front {
  background: linear-gradient(135deg, #111 0%, #1a1a1a 100%);
  border: 1px solid rgba(255,255,255,.08);
  transform: rotateY(0deg);
}

.book-card .book-back {
  background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 100%);
  border: 1px solid rgba(0,255,204,.2);
  transform: rotateY(180deg);
}

.book-card.flipped {
  box-shadow: 0 20px 60px rgba(0,255,204,.15);
}
.book-card.flipped .book-front { transform: rotateY(-180deg); }
.book-card.flipped .book-back { transform: rotateY(0deg); }

.book-card:hover:not(.flipped) .book-front {
  border-color: rgba(0,255,204,.25);
  box-shadow: 0 0 30px rgba(0,255,204,.08);
}

.book-num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: .75rem;
  color: rgba(255,255,255,.15);
  letter-spacing: .1em;
}

.book-domain {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.book-front h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}

.book-back h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.book-back p {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  flex: 1;
}

.book-hint {
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  letter-spacing: .08em;
  font-family: var(--mono);
}

.book-back .tags span {
  border-color: rgba(0,255,204,.2);
  color: rgba(0,255,204,.7);
  font-size: .68rem;
}

.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--mono);
}

/* ═══ CONTACT ═══ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-left p {
  font-size: 1rem;
  color: rgba(255,255,255,.55);
  line-height: 1.75;
  margin-bottom: 28px;
}

.contact-email {
  display: inline-block;
  font-size: .85rem;
  font-family: var(--mono);
  color: var(--accent);
  border-bottom: 1px solid rgba(0,255,204,.3);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.contact-email:hover { border-color: var(--accent); }

/* ═══ FORM ═══ */
.field { margin-bottom: 16px; }

input, textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  color: #fff;
  font-size: 1rem;
  font-family: var(--sans);
  transition: border-color .2s;
  outline: none;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.3); }
input:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 120px; }

.form-status {
  margin-top: 12px;
  font-size: .88rem;
  color: var(--accent);
  min-height: 1.4em;
}

/* ═══ FOOTER ═══ */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.35);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner .brand { font-size: 1rem; font-weight: 800; color: #fff; }
.footer-copy { font-size: .82rem; letter-spacing: .04em; }

/* ═══ MOBILE ═══ */
@media (max-width: 900px) {
  .menu-btn { display: flex; }

  nav {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 99;
  }
  nav.open { transform: translateY(0); }
  nav a { width: 100%; padding: 12px 16px; font-size: 1rem; color: var(--dark); }
  nav a.nav-cta { background: var(--dark); color: #fff; }

  .grid-3 { grid-template-columns: 1fr; }
  .expertise-stack { flex-direction: column; overflow-x: visible; }
  .stack-connector { width: 100%; justify-content: flex-start; padding: 6px 0 6px 20px; }
  .chain-svg { transform: rotate(90deg); }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: clamp(2.5rem, 12vw, 4rem); }
  .hero-bg-text { display: none; }
  .step { gap: 16px; }
}
