:root {
  color-scheme: dark;
  --bg: #080b0f;
  --bg-rgb: 8, 11, 15;
  --bg-soft: #0d1218;
  --bg-soft-rgb: 13, 18, 24;
  --panel: rgba(15, 20, 27, 0.78);
  --panel-solid: #111821;
  --text: #f3f6f8;
  --muted: #a7b2bd;
  --subtle: #6f7d88;
  --line: rgba(255, 255, 255, 0.11);
  --cyan: #8be7ff;
  --teal: #39c6b6;
  --amber: #d7a855;
  --max: 1160px;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7f8;
  --bg-rgb: 245, 247, 248;
  --bg-soft: #ffffff;
  --bg-soft-rgb: 255, 255, 255;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --text: #111820;
  --muted: #4e5d68;
  --subtle: #71808b;
  --line: rgba(17, 24, 32, 0.13);
  --cyan: #006d85;
  --teal: #087d72;
  --amber: #9a6500;
  --shadow: 0 24px 70px rgba(25, 36, 47, 0.14);
}

:root[data-theme="retro"] {
  color-scheme: dark;
  --bg: #000033;
  --bg-rgb: 0, 0, 51;
  --bg-soft: #000066;
  --bg-soft-rgb: 0, 0, 102;
  --panel: rgba(0, 0, 102, 0.86);
  --panel-solid: #000066;
  --text: #ffffff;
  --muted: #d8ecff;
  --subtle: #99ccff;
  --line: rgba(0, 255, 255, 0.38);
  --cyan: #00ffff;
  --teal: #33ff99;
  --amber: #ffcc00;
  --shadow: 0 0 34px rgba(0, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 80% 10%, rgba(57, 198, 182, 0.12), transparent 34rem),
    linear-gradient(180deg, #080b0f 0%, #0a0f14 48%, #080b0f 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 85% 8%, rgba(0, 109, 133, 0.12), transparent 34rem),
    linear-gradient(180deg, #f7f9fa 0%, #eef3f4 52%, #ffffff 100%);
}

:root[data-theme="retro"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 16%, rgba(255, 255, 255, 0.85) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 28%, rgba(0, 255, 255, 0.75) 0 1px, transparent 2px),
    linear-gradient(rgba(0, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #000033 0%, #000066 52%, #000033 100%);
  background-size: 180px 180px, 240px 240px, 32px 32px, 32px 32px, auto;
  font-family: Verdana, Arial, sans-serif;
  cursor: crosshair;
}

:root[data-theme="retro"] a,
:root[data-theme="retro"] button {
  cursor: pointer;
}

:root[data-theme="retro"] .hero,
:root[data-theme="retro"] .section,
:root[data-theme="retro"] .footer {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M4 2v24l6-6 4 9 4-2-4-8h9z' fill='%23ffffff' stroke='%23000066' stroke-width='2'/%3E%3Cpath d='M6 7v14l4-4 4 8 1.4-.7-4.1-8.6h6.8z' fill='%2300ffff' opacity='.85'/%3E%3C/svg%3E") 4 2, crosshair;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.92), rgba(var(--bg-rgb), 0));
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
  border-bottom: 1px solid var(--line);
  background: rgba(var(--bg-rgb), 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(139, 231, 255, 0.38);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 0.95rem;
}

.nav {
  gap: clamp(14px, 2.2vw, 28px);
  color: var(--muted);
  font-size: 0.9rem;
}

.nav a {
  transition: color 180ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
}

.theme-switcher {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(var(--bg-soft-rgb), 0.55);
  backdrop-filter: blur(14px);
}

.theme-switcher button {
  min-width: 58px;
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.theme-switcher button:hover,
.theme-switcher button[aria-pressed="true"] {
  background: rgba(139, 231, 255, 0.16);
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  padding: 132px clamp(18px, 5vw, 72px) 88px;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.74;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(var(--bg-rgb), 0.98) 0%, rgba(var(--bg-rgb), 0.8) 38%, rgba(var(--bg-rgb), 0.34) 100%),
    linear-gradient(180deg, rgba(var(--bg-rgb), 0.18), var(--bg) 100%);
}

:root[data-theme="light"] .hero-media img {
  opacity: 0.46;
  filter: saturate(0.82) contrast(1.05);
}

:root[data-theme="light"] .hero-shade {
  background:
    linear-gradient(90deg, rgba(245, 247, 248, 0.98) 0%, rgba(245, 247, 248, 0.84) 44%, rgba(245, 247, 248, 0.44) 100%),
    linear-gradient(180deg, rgba(245, 247, 248, 0.12), var(--bg) 100%);
}

:root[data-theme="retro"] .hero-media img {
  opacity: 0.38;
  filter: saturate(1.55) contrast(1.2);
}

:root[data-theme="retro"] .hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 51, 0.97), rgba(0, 0, 102, 0.7), rgba(0, 0, 51, 0.26)),
    repeating-linear-gradient(0deg, rgba(0, 255, 255, 0.08) 0 1px, transparent 1px 4px);
}

.hero-content {
  min-width: 0;
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow,
.section-label,
.card-kicker {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(4.1rem, 11vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

:root[data-theme="retro"] .hero h1,
:root[data-theme="retro"] h2 {
  color: #ffff66;
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 2px 2px 0 #003399, 0 0 16px rgba(0, 255, 255, 0.7);
}

.hero-lead {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2.45rem);
  line-height: 1.14;
  font-weight: 650;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: center;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 18px;
  border: 1px solid var(--line);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border-color: rgba(139, 231, 255, 0.48);
  background: linear-gradient(135deg, rgba(139, 231, 255, 0.18), rgba(57, 198, 182, 0.1));
  color: var(--text);
}

.button.ghost {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

:root[data-theme="retro"] .brand-mark,
:root[data-theme="retro"] .button,
:root[data-theme="retro"] .theme-switcher,
:root[data-theme="retro"] .hero-card,
:root[data-theme="retro"] .timeline article,
:root[data-theme="retro"] .story-grid article,
:root[data-theme="retro"] .service-grid article,
:root[data-theme="retro"] .human-panel {
  border-style: outset;
  border-width: 2px;
}

:root[data-theme="retro"] .button.primary,
:root[data-theme="retro"] .theme-switcher button[aria-pressed="true"] {
  background: linear-gradient(180deg, #00ffff, #0066cc);
  color: #000033;
}

:root[data-theme="retro"] .button.ghost {
  background: #000066;
  color: #ffff66;
}

.hero-card {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 5vw, 72px);
  bottom: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 260px);
  gap: 16px;
  align-items: center;
  max-width: 390px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(var(--bg-soft-rgb), 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.profile-photo {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(139, 231, 255, 0.35);
  background:
    radial-gradient(circle at 50% 34%, rgba(139, 231, 255, 0.28), transparent 34px),
    linear-gradient(180deg, #242832, #10151c);
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-card p {
  margin: 0;
}

.hero-card p:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.intro-grid,
.split,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 6vw, 76px);
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h2 {
  margin: 10px 0 0;
  max-width: 760px;
  font-size: clamp(2rem, 4.5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro-grid {
  align-items: start;
  column-gap: 48px;
  margin-top: 20px;
}

.intro-grid h2 {
  margin: 0;
  font-size: 2.5rem;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

h3 {
  margin: 8px 0 8px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.prose p,
.section-copy,
.section-heading p,
.story-heading p,
.manifesto-copy p,
.human-panel p,
.timeline p,
.story-grid p,
.service-grid p {
  color: var(--muted);
}

.prose p:first-child {
  margin-top: 0;
}

.timeline-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story {
  border-top: 1px solid var(--line);
}

.story-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.72fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: end;
  margin-bottom: 28px;
}

.story-heading p {
  margin: 0 0 8px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article,
.story-grid article,
.service-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.timeline article,
.story-grid article {
  padding: 20px;
}

.timeline span,
.story-grid span,
.service-grid span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline p,
.story-grid p,
.service-grid p {
  margin: 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-heading p {
  max-width: 440px;
  margin: 0 0 8px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-grid article {
  min-height: 220px;
  padding: 22px;
}

.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.capabilities li {
  border: 1px solid rgba(139, 231, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(139, 231, 255, 0.035);
  font-size: 0.92rem;
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: start;
}

.manifesto > .section-label {
  grid-column: 1 / -1;
}

.manifesto blockquote {
  margin: 0;
}

.manifesto blockquote p {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: normal;
  word-break: normal;
  letter-spacing: 0;
}

.ai-service {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 820px;
}

.ai-service h3 {
  font-size: 1.75rem;
  line-height: 1.25;
}

.ai-service p {
  color: var(--muted);
}

.ai-service ul {
  padding-left: 20px;
  color: var(--muted);
}

.ai-service li + li {
  margin-top: 8px;
}

.manifesto-copy {
  border-left: 1px solid rgba(139, 231, 255, 0.35);
  padding-left: 24px;
}

.human {
  padding-top: 0;
}

.human-panel {
  padding: clamp(26px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(139, 231, 255, 0.09), rgba(215, 168, 85, 0.055)),
    var(--panel-solid);
}

:root[data-theme="retro"] .human-panel {
  background:
    repeating-linear-gradient(45deg, rgba(0, 255, 255, 0.08) 0 8px, transparent 8px 16px),
    var(--panel-solid);
}

.human-panel h2 {
  max-width: 900px;
}

.human-panel p {
  max-width: 780px;
  margin-bottom: 0;
}

.contact {
  align-items: center;
  border-top: 1px solid var(--line);
}

.contact h2 {
  font-size: clamp(2.1rem, 5vw, 5.1rem);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 100px 28px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #16853f;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 4px 16px #0003;
  font-size: 30px;
}

.whatsapp-tooltip {
  position: absolute;
  right: 66px;
  width: max-content;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip,
.whatsapp-float:focus-visible .whatsapp-tooltip {
  opacity: 1;
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
  }

  .nav {
    display: none;
  }

  .theme-switcher {
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    padding-bottom: 40px;
    row-gap: 32px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(var(--bg-rgb), 0.98), rgba(var(--bg-rgb), 0.66)),
      linear-gradient(180deg, rgba(var(--bg-rgb), 0.05), var(--bg) 100%);
  }

  .hero-card {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .intro-grid,
  .split,
  .story-heading,
  .manifesto,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 16px;
  }

  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .intro-grid h2 {
    font-size: 2rem;
  }
  .manifesto blockquote p {
    font-size: 2rem;
  }
  .site-header {
    gap: 12px;
    padding-inline: 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .theme-switcher button {
    min-width: 48px;
    font-size: 0.72rem;
  }

  .hero {
    padding-top: 112px;
  }

  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero-lead {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .contact-actions,
  .intro-grid > *,
  .split > *,
  .story-heading > *,
  .manifesto > * {
    min-width: 0;
  }

  .capabilities li {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
    padding: 12px 16px;
  }

  .hero-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .profile-photo {
    width: 58px;
    height: 58px;
  }

  .section {
    padding: 68px 0;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .service-grid article {
    min-height: 0;
  }

  .manifesto-copy {
    padding-left: 16px;
  }

  .footer {
    flex-direction: column;
  }
}
