@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("assets/fonts/bricolage-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("assets/fonts/instrument-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #08070f;
  --ink: #f5f3ff;
  --muted: #a6a3bd;
  --glass: rgb(255 255 255 / .045);
  --glass-hover: rgb(255 255 255 / .08);
  --edge: rgb(255 255 255 / .1);
  --violet: #a855f7;
  --indigo: #6358f0;
  --signal: #c8ff4d;
  --on-signal: #141a05;
  --radius: 22px;
  --gutter: 28px;
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Aurora and grain: fixed layers behind everything, painted once */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vmax 50vmax at 88% -8%, rgb(99 88 240 / .34), transparent 65%),
    radial-gradient(50vmax 45vmax at -5% 30%, rgb(168 85 247 / .22), transparent 65%),
    radial-gradient(45vmax 40vmax at 70% 108%, rgb(99 88 240 / .2), transparent 65%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* Page frame: stacked on phones, split from tablet up */
.page {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding: max(16px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
}

/* Profile */
.portrait {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--edge);
  border-radius: calc(var(--radius) + 6px);
  background: #1a1830;
  animation: rise .9s var(--ease) both;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  transition: transform 1.2s var(--ease);
}
.portrait:hover img { transform: scale(1.03); }
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(52 40 130 / .16) 0%, transparent 34%, rgb(8 7 15 / .58) 62%, rgb(8 7 15 / .96) 100%);
}

.identity { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; }
h1 {
  font: 700 clamp(3rem, 15vw, 4.25rem)/.92 var(--display);
  letter-spacing: -.035em;
  color: #fff;
}
.role {
  margin-bottom: 10px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--signal);
}

.tagline {
  margin: 18px 4px 16px;
  font: 500 1.25rem/1.25 var(--display);
  letter-spacing: -.01em;
}

/* Buttons */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 50px;
  padding: 10px 12px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: var(--glass);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .25s var(--ease);
}
.btn svg { flex: none; width: 18px; height: 18px; fill: currentColor; }
.btn svg.stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); transition-duration: .08s; }

.btn-save { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.btn-save:hover { box-shadow: 0 10px 28px rgb(200 255 77 / .28); }

.btn-whatsapp svg { color: #25d366; }
.btn-whatsapp:hover { background: #25d366; border-color: #25d366; color: #04210f; }
.btn-whatsapp:hover svg { color: inherit; }

.btn-linkedin svg { color: #5aa9f5; }
.btn-linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.btn-linkedin:hover svg { color: inherit; }

.btn-email svg { color: #b4aeff; }
.btn-email:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn-email:hover svg { color: inherit; }

.btn-site { grid-column: span 2; }
.btn-site svg { color: var(--signal); }
.btn-site:hover { background: var(--glass-hover); border-color: rgb(255 255 255 / .28); }

.share {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: .875rem;
  cursor: pointer;
  transition: color .2s;
}
.share[hidden] { display: none; }
.share:hover { color: var(--ink); }

/* The route: a line through every section, with a marker driven by scroll */
.flow {
  position: relative;
  container-type: inline-size;
  margin-top: 28px;
  padding-left: var(--gutter);
}
.route { position: absolute; top: 10px; bottom: 96px; left: 5px; width: 2px; border-radius: 2px; background: var(--edge); }
.route-fill {
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--p, 0) * 100%);
  border-radius: inherit;
  background: linear-gradient(180deg, var(--indigo), var(--violet) 55%, var(--signal));
}
.route-dot {
  position: absolute;
  left: 50%;
  top: calc(var(--p, 0) * 100%);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgb(200 255 77 / .18), 0 0 18px rgb(200 255 77 / .7);
}

section + section { margin-top: 36px; }

h2 {
  position: relative;
  margin-bottom: 14px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}
/* Each section heading is a stop on the route */
h2::before {
  content: "";
  position: absolute;
  top: .36em;
  left: calc(var(--gutter) * -1 + 1px);
  width: 10px;
  height: 10px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  background: var(--bg);
}

/* Panels */
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--glass);
  transition: background-color .25s, border-color .25s, opacity .7s var(--ease), transform .7s var(--ease);
}
/* Soft spotlight following the pointer, positioned from app.js */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 50%), rgb(168 85 247 / .2), transparent 70%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.panel:hover { background: var(--glass-hover); border-color: rgb(255 255 255 / .18); }
.panel:hover::before { opacity: 1; }
.panel > * { position: relative; }

/* Impact bento */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; justify-content: flex-end; min-height: 118px; padding: 16px 18px; }
.stat b {
  font: 700 clamp(1.625rem, 8vw, 2.125rem)/1.05 var(--display);
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat span { margin-top: 6px; font-size: .875rem; line-height: 1.3; color: var(--muted); }
.stat.wide { grid-column: span 2; }
.stat.wide b { font-size: clamp(2.5rem, 13vw, 3.5rem); color: var(--signal); }

/* Bio */
.bio { padding: 22px; }
.bio p { color: var(--muted); }
.bio p + p { margin-top: 14px; }
.bio p:first-child {
  font: 500 1.1875rem/1.4 var(--display);
  letter-spacing: -.01em;
  color: var(--ink);
}

/* Services */
.services { display: grid; gap: 10px; }
.service { display: flex; flex-direction: column; padding: 20px 22px; }
.index { font: 500 .875rem/1 var(--display); color: var(--violet); }
.service h3 { margin-top: 14px; font: 500 1.1875rem/1.2 var(--display); letter-spacing: -.01em; }
.service p { margin-top: 8px; font-size: .9375rem; line-height: 1.5; color: var(--muted); }

/* Quote */
.quote { padding: 26px 22px; }
blockquote { font: 500 clamp(1.1875rem, 5vw, 1.5rem)/1.35 var(--display); letter-spacing: -.01em; }
figcaption { margin-top: 14px; font-size: .875rem; color: var(--muted); }

/* Call to action */
.cta {
  padding: 28px 22px 24px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(125deg, var(--indigo), #8a3fe0 70%, #a03fd8);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.cta h2 {
  margin: 0 0 20px;
  font: 700 clamp(2.5rem, 12vw, 3.75rem)/1 var(--display);
  letter-spacing: -.035em;
  text-transform: none;
  color: #fff;
}
.cta h2::before { display: none; }
.btn-book { background: #fff; border-color: #fff; color: #17122e; font-size: 1rem; }
.btn-book:hover { box-shadow: 0 12px 32px rgb(8 7 15 / .4); }
.arrow { transition: transform .25s var(--ease); }
.btn-book:hover .arrow { transform: translateX(4px); }

footer { margin-top: 26px; }
.logo-chip { display: inline-flex; padding: 9px 12px; border-radius: 14px; background: #fff; }
.logo-chip img { width: 20px; height: auto; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Scroll reveal runs only with scripting on, so content is never left hidden */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px) scale(.985); }
  to { opacity: 1; transform: none; }
}

/* Roomier panels once the content column has width, whatever the viewport */
@container (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat.wide-lg { grid-column: span 2; }
  .stat { min-height: 138px; padding: 20px 22px; }
  .stat b { font-size: 2.5rem; }
  .stat.wide b { font-size: 4rem; }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bio { padding: 30px; }
  .bio p:first-child { font-size: 1.5rem; line-height: 1.3; }
  .bio p:not(:first-child) { max-width: 66ch; }
  .quote { padding: 34px 30px; }
  .quote blockquote { font-size: 1.625rem; }
  .cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 30px; }
  .cta h2 { margin: 0; font-size: 3.5rem; }
  .btn-book { flex: none; padding-inline: 26px; min-height: 56px; }
}

/* Tablet: portrait beside the actions */
@media (min-width: 640px) {
  .page { padding: 24px 24px 36px; }
  .profile { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: end; }
  h1 { font-size: 3.5rem; }
  .tagline { margin: 0 0 18px; font-size: 1.75rem; }
}

/* Desktop: the profile stays pinned while the route scrolls beside it */
@media (min-width: 960px) {
  .page {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
    padding: 32px 32px 48px;
  }
  .profile { display: block; }
  /* Leaves room for the tagline, buttons and page padding so the pinned profile always fits */
  .portrait { aspect-ratio: auto; height: clamp(280px, calc(100vh - 384px), 450px); }
  .tagline { margin: 18px 4px 16px; font-size: 1.25rem; }
  .flow { margin-top: 0; --gutter: 36px; }
}
@media (min-width: 960px) and (min-height: 660px) {
  .profile { position: sticky; top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .portrait:hover img { transform: none; }
}
