/* GSA: tokens, foundations, sections and responsive adaptations. */
:root {
  color-scheme: dark;
  --ink: #060709;
  --surface: #0d1016;
  --paper: #f5f6f8;
  --muted: #b8bec9;
  --accent: #2864e8;
  --line: #272c35;
  --container: 1160px;
  --gutter: 32px;
  --space: clamp(72px, 7.2vw, 104px);
  --ease: cubic-bezier(.23, 1, .32, 1);
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: var(--ink);
  color: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-block: 28px 88px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; }
figure, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; text-underline-offset: .25em; }
a, button { touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.container { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
a:focus-visible, button:focus-visible { outline: 3px solid #a9c4ff; outline-offset: 5px; }
h1:focus-visible, h2:focus-visible { outline: 2px solid #a9c4ff; outline-offset: 8px; }
.skip-link { position: fixed; z-index: 60; top: 12px; left: 12px; padding: 14px 20px; border-radius: 4px; background: white; color: #08090d; opacity: 0; transform: translateY(-200%); }
.skip-link:focus { opacity: 1; transform: none; }

.site-header a:focus-visible, .site-header button:focus-visible, .site-footer a:focus-visible { outline-color: #1d4cbb; }

/* Every section shares the same centered axis. */
.site-header { position: relative; z-index: 20; color-scheme: light; color: #192238; background: #fff; border-bottom: 1px solid #d8dfe9; }
.header-inner { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 32px; }
.brand, .footer-brand { display: block; width: 180px; flex: 0 0 auto; }
.brand img, .footer-brand img { width: 100%; filter: brightness(0); }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.nav-link { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; font-weight: 600; text-decoration: none; color: #354258; transition: color 160ms ease; }
.nav-link[aria-current]:not(.nav-contact), .mobile-menu a[aria-current] { color: #1d4cbb; }
.nav-contact { min-height: 44px; padding-inline: 22px; gap: 18px; border: 1px solid #709bff80; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #1d4cbb); color: #fff; box-shadow: inset 0 1px 0 #ffffff1a, 0 5px 14px #0002; transition: transform 160ms var(--ease), box-shadow 160ms ease; }
.nav-contact svg, .service-cta svg { width: 17px; height: 17px; flex: 0 0 17px; }
.menu-toggle, .mobile-menu { display: none; }

/* Natural portrait proportions, without cover, clipping or masks. */
.hero { background: #000; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 64px; }
.hero-copy { min-width: 0; padding-block: 64px; }
.hero h1 { margin: 0; font-size: clamp(68px, 6.5vw, 94px); font-weight: 300; line-height: 1.02; letter-spacing: -.065em; }
.hero h1 span { display: block; }
.hero h1 span:last-child { font-weight: 600; }
.hero-description { max-width: 410px; margin-top: 30px; font-size: 18px; line-height: 1.7; color: #c5cad3; text-wrap: pretty; }
.hero-media { display: flex; align-items: end; justify-content: center; min-width: 0; }
.hero-media img { width: min(100%, 440px); aspect-ratio: 854 / 1280; object-fit: contain; }
.profile-section { padding-block: var(--space); background: #000; border-top: 1px solid #15171c; }
.profile-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 88px; align-items: center; }
.profile-photo { width: min(100%, 400px); }
.profile-photo img { width: 100%; aspect-ratio: 854 / 1280; object-fit: contain; }
.profile-copy h2 { margin: 0 0 28px; font-size: clamp(42px, 4.1vw, 58px); font-weight: 400; letter-spacing: -.055em; line-height: 1.1; }
.profile-copy p { font-size: 16px; line-height: 1.8; color: var(--muted); text-wrap: pretty; }
.profile-copy p:first-of-type { color: #e0e3ea; }
.profile-copy p + p { margin-top: 20px; }

.modalities-section { padding-block: var(--space); background: var(--surface); border-block: 1px solid #1a1f29; }
.modalities-inner { text-align: center; }
.modalities-title, .services-intro h2 { max-width: 850px; margin: 0 auto; font-size: clamp(40px, 4vw, 56px); font-weight: 300; letter-spacing: -.045em; line-height: 1.12; text-wrap: balance; }
.modalities-title span, .services-intro h2 span { display: block; }
.modalities-title span:last-child, .services-intro h2 span:last-child { font-weight: 600; }
.modalities-description, .services-intro p { max-width: 650px; margin: 22px auto 0; font-size: 17px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.modalities-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; text-align: left; }
.modality-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 28px; padding: 32px; border: 1px solid #334157; border-radius: 12px; background: linear-gradient(145deg, #172237 0%, #10151f 55%, #10131a 100%); }
.modality-card::before { position: absolute; top: -1px; left: 32px; width: 56px; height: 2px; content: ""; background: #6a98ff; }
.modality-art { display: grid; width: 116px; height: 84px; place-items: center; border: 1px solid #344e76; border-radius: 16px; background: #16263f; }
.modality-art svg { width: 56px; height: 56px; color: #b8d0ff; }
.modality-label { align-self: start; }
.modality-label h3 { margin: 0 0 14px; font-size: 20px; line-height: 1.3; letter-spacing: .035em; font-weight: 600; }
.modality-label p { color: #c0c9d9; font-size: 15px; line-height: 1.75; text-wrap: pretty; }
.services-section { padding-block: var(--space); background: var(--ink); }
.services-intro { text-align: center; }
.services-intro p { max-width: 720px; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.service-card { position: relative; isolation: isolate; display: flex; aspect-ratio: .73; min-width: 0; align-items: flex-end; overflow: hidden; border: 1px solid #303540; border-radius: 8px; background: #10141c; }
/* Darker color stops keep white CTA labels legible across each gradient. */
.service-card--talks {
  --cta-start: #a36800;
  --cta-end: #713d00;
  --cta-border: #dca44d;
  --cta-shadow: #8d500044;
}

.service-card--training {
  --cta-start: #087b35;
  --cta-end: #034c22;
  --cta-border: #49a66a;
  --cta-shadow: #087b3544;
}

.service-card--mentoring {
  --cta-start: #3226b9;
  --cta-end: #12105e;
  --cta-border: #7165e5;
  --cta-shadow: #3226b944;
}

.service-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 240ms var(--ease); }
.service-card--talks > img, .service-card--mentoring > img { object-position: 50% 35%; }
.service-card--training > img { object-position: 50% 80%; }
/* Hide projected wording while keeping the presenter outside the blur area. */
.service-card--training::before {
  position: absolute;
  z-index: -1;
  top: 35%;
  left: 42%;
  width: 25%;
  height: 10%;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  -webkit-mask-image: radial-gradient(ellipse, #000 55%, transparent 75%);
  mask-image: radial-gradient(ellipse, #000 55%, transparent 75%);
  pointer-events: none;
  content: "";
}
.service-card::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(180deg, transparent 15%, #06070918 38%, #060709d9 72%, #060709 100%); }
.service-card-content { width: 100%; padding: 28px; text-align: center; }
.service-card h3 { margin: 0 0 24px; font-size: clamp(30px, 2.8vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; }
.service-cta { display: flex; width: 100%; min-height: 56px; padding: 15px 18px; gap: 12px; align-items: center; justify-content: center; border: 1px solid var(--cta-border); border-radius: 8px; background: linear-gradient(135deg, var(--cta-start), var(--cta-end)); color: #fff; box-shadow: inset 0 1px 0 #ffffff1a, 0 6px 18px #0003; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; text-align: center; transition: box-shadow 160ms ease, transform 160ms var(--ease); }
.service-cta:active { background: var(--cta-end); }
.nav-contact:active { background: #1c50c1; }
.service-cta:active, .nav-contact:active { transform: scale(.98); }

.site-footer { padding-block: 72px 28px; color-scheme: light; color: #192238; border-top: 1px solid #d8dfe9; background: #fff; }
.site-footer-main { display: grid; grid-template-columns: 1.2fr 1fr .75fr; gap: 80px; padding-bottom: 44px; }
.footer-brand-block { display: flex; align-self: center; justify-content: flex-start; }
.footer-brand { width: 190px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.footer-social { justify-self: start; }
.footer-nav h2, .footer-social h2 { margin: 0 0 16px; font-size: 14px; line-height: 1.5; font-weight: 600; }
.footer-nav h2 { grid-column: 1 / -1; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; color: #46546a; font-size: 14px; text-decoration: none; }
.footer-social-links { display: flex; gap: 12px; }
.social-link { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid #a7b3c5; border-radius: 12px; background: #f4f6fa; color: #25344d; transition: background-color 160ms ease, border-color 160ms ease; }
.social-link svg { width: 19px; height: 19px; }
.site-footer-bottom { padding-top: 24px; border-top: 1px solid #d8dfe9; text-align: center; }
.site-footer-bottom p { font-size: 12px; line-height: 1.7; color: #46546a; }

/* Stable contact control. Mobile gets a viewport-edge dock, never narrower text. */
.contact-dock { position: fixed; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px)); z-index: 30; }
.floating-whatsapp { position: relative; isolation: isolate; display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid #8df0b2; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 4px 18px #0005; animation: contact-appear 250ms var(--ease) both; }
.floating-whatsapp::after { position: absolute; z-index: -1; inset: -2px; border: 2px solid #25d366; border-radius: inherit; pointer-events: none; opacity: 0; content: ""; animation: contact-pulse 4000ms var(--ease) infinite; }
.floating-whatsapp:focus-visible::after { animation: none; opacity: 0; }
.floating-whatsapp svg { width: 29px; height: 29px; }
@keyframes contact-appear { from { opacity: 0; } to { opacity: 1; } }
/* A brief recurring halo followed by a quiet interval; the hit target stays still. */
@keyframes contact-pulse {
  0% { transform: scale(.95); opacity: 0; }
  8% { opacity: .55; }
  40%, 100% { transform: scale(1.25); opacity: 0; }
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:not(.nav-contact):hover, .footer-nav a:hover { color: #1d4cbb; }
  .nav-contact:hover:not(:active), .service-cta:hover:not(:active) { box-shadow: inset 0 1px 0 #ffffff30, 0 8px 22px #102b6855; transform: translateY(-2px); }
  .service-cta:hover:not(:active) { box-shadow: inset 0 1px 0 #ffffff30, 0 8px 22px var(--cta-shadow); }
  .service-card:hover > img { transform: scale(1.025); }
  .social-link:hover { color: #1d4cbb; background: #e8eef9; border-color: #1d4cbb; }
  .floating-whatsapp:hover { background: #20bc5a; }
  .floating-whatsapp:hover::after { animation: none; opacity: 0; }
}
@media (max-width: 1100px) {
  .hero-grid { gap: 40px; }
  .hero-media img { width: min(100%, 380px); }
  .hero h1 { font-size: 76px; }
  .profile-grid { gap: 52px; }
  .modality-card { padding: 26px; }
  .modality-label h3 { font-size: 18px; }
  .service-card-content { padding: 22px; }
  .service-cta { font-size: 13px; }
}
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .header-inner { min-height: 76px; }
  .menu-toggle { display: grid; width: 46px; height: 46px; padding: 0; place-items: center; border: 1px solid #9caabd; border-radius: 5px; background: #fff; color: #192238; }
  .menu-toggle svg { width: 23px; height: 23px; }
  .menu-toggle:active { background: #e8eef9; }
  .menu-toggle .icon-close { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
  .mobile-menu { position: absolute; top: 100%; left: 0; right: 0; display: block; color-scheme: light; background: #fff; border-bottom: 1px solid #d8dfe9; visibility: hidden; opacity: 0; transition: opacity 160ms ease; }
  .mobile-menu[data-open] { visibility: visible; opacity: 1; }
  .mobile-menu-inner { display: grid; padding-block: 16px 24px; }
  .mobile-menu a { display: flex; min-height: 50px; align-items: center; text-decoration: none; color: #354258; }
  [data-input="keyboard"] .mobile-menu { transition: none; }
  .hero h1 { font-size: clamp(48px, 7.3vw, 66px); }
  .hero-grid { gap: 24px; }
  .profile-grid { grid-template-columns: 1fr; gap: 36px; max-width: 680px; }
  .profile-photo { max-width: 340px; justify-self: center; }
  .modalities-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .modality-card { grid-template-columns: 100px minmax(0, 1fr); align-items: center; padding: 28px; gap: 26px; }
  .modality-art { width: 100px; height: 88px; }
  .modality-label { align-self: center; }
  .modality-label h3 { font-size: 16px; }
  .modality-label p { font-size: 15px; }
  .services-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .service-card { aspect-ratio: .85; }
  .service-card-content { padding: 30px; }
  .service-card h3 { font-size: 40px; }
  .service-cta { font-size: 15px; }
  .site-footer-main { gap: 40px; grid-template-columns: 1fr 1fr; }
  .footer-brand-block { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 22px; --space: 60px; }
  html { scroll-behavior: auto; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .header-inner { padding-top: env(safe-area-inset-top, 0px); min-height: 76px; }
  .brand { width: 162px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-block: 42px 6px; }
  .hero h1 { font-size: clamp(45px, 13.5vw, 62px); line-height: 1.04; }
  .hero-description { margin-top: 22px; font-size: 16px; line-height: 1.65; }
  .hero-media img { width: min(100%, 310px); }
  .profile-photo { width: min(100%, 300px); }
  .profile-copy h2 { font-size: 40px; margin-bottom: 24px; }
  .profile-copy p { font-size: 16px; line-height: 1.75; }
  .modalities-title, .services-intro h2 { font-size: clamp(30px, 8.1vw, 36px); line-height: 1.16; }
  .modalities-description, .services-intro p { margin-top: 20px; font-size: 16px; line-height: 1.7; }
  .modalities-grid { margin-top: 32px; gap: 16px; }
  .modality-card { grid-template-columns: 68px minmax(0, 1fr); padding: 24px 20px; gap: 20px; }
  .modality-card::before { left: 20px; width: 40px; }
  .modality-art { width: 68px; height: 72px; border-radius: 12px; }
  .modality-art svg { width: 44px; height: 44px; }
  .modality-label h3 { font-size: 14px; }
  .modality-label p { font-size: 14px; }
  .services-grid { margin-top: 32px; gap: 24px; }
  .service-card { aspect-ratio: .78; }
  .service-card-content { padding: 24px; }
  .service-card h3 { font-size: 36px; margin-bottom: 22px; }
  .service-cta { font-size: 14px; min-height: 54px; }
  .site-footer { padding-block: 46px 26px; }
  .site-footer-main { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
  .footer-brand { width: 175px; }
  .footer-nav a { font-size: 15px; }
  .site-footer-bottom p { max-width: 290px; margin-inline: auto; }
  .footer-nav { width: 100%; }
  .contact-dock { right: 0; left: 0; bottom: 0; height: calc(72px + env(safe-area-inset-bottom, 0px)); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: flex-end; border-top: 1px solid #252a33; background: #080a0f; pointer-events: none; }
  .floating-whatsapp { pointer-events: auto; }
}
@media (max-width: 360px) {
  :root { --gutter: 20px; }
  .hero-media img { max-width: 280px; }
  .profile-photo { max-width: 270px; }
  .profile-copy h2 { font-size: 36px; }
  .modality-card { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 16px; }
  .modality-art { width: 56px; height: 64px; }
  .modality-art svg { width: 38px; height: 38px; }
  .service-card-content { padding: 20px; }
  .service-card h3 { font-size: 32px; }
  .service-cta { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .service-card:hover > img, .service-cta:active, .nav-contact:active, .service-cta:hover:not(:active), .nav-contact:hover:not(:active) { transform: none; }
}
