@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  color-scheme: dark;
  --background: #201d17;
  --foreground: #f7f4ee;
  --card: #2a261d;
  --primary: #d9b45c;
  --primary-foreground: #26200f;
  --accent: #4fae82;
  --accent-foreground: #10201a;
  --muted-foreground: #a8a397;
  --border: rgba(255, 255, 255, 0.12);
  --radius: 0.625rem;
  --font-sans: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Custom cursor - desktop only */
@media (pointer: fine) {
  body,
  body * {
    cursor: none !important;
  }
}

.cursor-jet {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
  transition: color 0.5s;
  color: var(--foreground);
  opacity: 0;
}

.cursor-jet.visible {
  opacity: 1;
}

.cursor-jet.theme-gold {
  color: var(--primary);
}

.cursor-jet.theme-emerald {
  color: var(--accent);
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid var(--foreground);
  width: 2rem;
  height: 2rem;
  opacity: 0.6;
  transition: width 0.3s, height 0.3s, opacity 0.3s, border-color 0.3s;
}

.cursor-ring.hovering {
  width: 3.5rem;
  height: 3.5rem;
  opacity: 1;
}

.cursor-ring.theme-gold {
  border-color: var(--primary);
}

.cursor-ring.theme-emerald {
  border-color: var(--accent);
}

/* ===== PORTAL ===== */
#portal {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  #portal {
    flex-direction: row;
  }
}

#portal h1 {
  position: absolute;
  left: 50%;
  top: 2rem;
  z-index: 20;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  margin: 0;
}

#portal h1 .brand {
  display: block;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.3em;
}

@media (min-width: 768px) {
  #portal h1 .brand {
    font-size: 2.25rem;
  }
}

#portal h1 .tagline {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--muted-foreground);
}

.portal-half {
  position: relative;
  flex: 1;
  min-height: 50svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .portal-half {
    min-height: 100svh;
  }
}

.portal-half img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  opacity: 0.5;
  transition: transform 0.7s, opacity 0.7s;
}

.portal-half:hover img {
  transform: scale(1.05);
  opacity: 0.8;
}

.portal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background), rgba(32, 29, 23, 0.4), rgba(32, 29, 23, 0.7));
}

.portal-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1.5rem;
  text-align: center;
}

.portal-kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.35em;
}

.portal-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .portal-title {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .portal-title {
    font-size: 3.75rem;
  }
}

.portal-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 999px;
  border: 2px solid;
  padding: 1rem 2rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  transition: all 0.3s;
}

.coffee-half .portal-kicker,
.coffee-half .portal-cta {
  color: var(--primary);
}
.coffee-half .portal-cta {
  border-color: var(--primary);
  background: rgba(217, 180, 92, 0.1);
}
.coffee-half:hover .portal-cta {
  background: var(--primary);
  color: var(--primary-foreground);
}

.dev-half .portal-kicker,
.dev-half .portal-cta {
  color: var(--accent);
}
.dev-half .portal-cta {
  border-color: var(--accent);
  background: rgba(79, 174, 130, 0.1);
}
.dev-half:hover .portal-cta {
  background: var(--accent);
  color: var(--accent-foreground);
}

.portal-divider {
  height: 1px;
  width: 100%;
  background: var(--border);
  z-index: 10;
}

@media (min-width: 768px) {
  .portal-divider {
    height: auto;
    width: 1px;
  }
}

/* ===== WORLD SWITCH ===== */
#world-switch {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(42, 38, 29, 0.9);
  padding: 0.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.switch-btn-home {
  border-radius: 999px;
  padding: 0.625rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.switch-btn-home:hover {
  color: var(--foreground);
}

.switch-btn-toggle {
  border-radius: 999px;
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  transition: opacity 0.3s;
}
.switch-btn-toggle.to-dev {
  background: var(--accent);
  color: var(--accent-foreground);
}
.switch-btn-toggle.to-coffee {
  background: var(--primary);
  color: var(--primary-foreground);
}
.switch-btn-toggle:hover {
  opacity: 0.9;
}

/* ===== SITE HEADER ===== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(32, 29, 23, 0.75);
  backdrop-filter: blur(8px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.125rem;
  padding-bottom: 1.125rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1.125rem;
}

.header-brand img {
  height: 6.75rem;
  width: 6.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}

.header-brand img.logo-contain {
  border-radius: 0;
  object-fit: contain;
}

.header-brand .brand-lines {
  display: none;
  flex-direction: column;
  line-height: 1;
}

@media (min-width: 640px) {
  .header-brand .brand-lines {
    display: flex;
  }
}

.header-brand .brand-line1 {
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.header-brand .brand-line2 {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  letter-spacing: 0.25em;
}

.brand-line2.accent-primary {
  color: var(--primary);
}
.brand-line2.accent-accent {
  color: var(--accent);
}

.header-nav {
  display: none;
  align-items: center;
  gap: 0.375rem;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
}

.header-nav a {
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 1.125rem;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.header-nav a:hover {
  color: var(--foreground);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.125rem;
}

.header-email {
  display: none;
  font-family: var(--font-mono);
  font-size: 1.3125rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

@media (min-width: 1024px) {
  .header-email {
    display: inline;
  }
}
.header-email:hover {
  color: var(--foreground);
}

.header-whatsapp {
  display: flex;
  height: 3.375rem;
  width: 3.375rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #0b1a0f;
  transition: transform 0.2s;
}
.header-whatsapp:hover {
  transform: scale(1.1);
}

/* ===== SHARED SECTIONS ===== */
main section {
  scroll-margin-top: 8rem;
}

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--background), rgba(32, 29, 23, 0.5), rgba(32, 29, 23, 0.3));
}

.hero-content {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  max-width: 56rem;
  padding: 6rem 1.5rem;
  text-align: center;
}

.kicker {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
}
.kicker.primary {
  color: var(--primary);
}
.kicker.accent {
  color: var(--accent);
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
  }
}

.hero-sub {
  margin: 1.5rem auto 0;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.btn-cta {
  margin-top: 2.5rem;
  display: inline-block;
  border-radius: 999px;
  padding: 1rem 2.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  transition: transform 0.2s;
}
.btn-cta:hover {
  transform: scale(1.05);
}
.btn-cta.primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-cta.accent {
  background: var(--accent);
  color: var(--accent-foreground);
}

.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.stats-grid {
  display: grid;
  gap: 2rem;
  padding: 4rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  text-align: center;
}

.stat .stat-value {
  font-size: 1.875rem;
  font-weight: 700;
}
.stat .stat-value.primary {
  color: var(--primary);
}
.stat .stat-value.accent {
  color: var(--accent);
}

.stat .stat-label {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}

.section {
  margin: 0 auto;
  max-width: 72rem;
  padding: 6rem 1.5rem;
}

.section h2 {
  margin-top: 0.75rem;
  max-width: 42rem;
  font-size: 2.25rem;
  font-weight: 700;
  text-wrap: balance;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .section h2 {
    font-size: 3rem;
  }
}

.card-grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.card:hover.card-primary {
  border-color: rgba(217, 180, 92, 0.6);
}
.card:hover.card-accent {
  border-color: rgba(79, 174, 130, 0.6);
}

.card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.card h3.mono {
  font-family: var(--font-mono);
}
.card h3.primary {
  color: var(--primary);
}
.card h3.accent {
  color: var(--accent);
}

.card .card-tag {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.card .card-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.image-band {
  position: relative;
  overflow: hidden;
}

.image-band img {
  height: 60svh;
  width: 100%;
  object-fit: cover;
}

.image-band-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to top, var(--background), transparent, transparent);
}

.image-band-overlay .container {
  padding-bottom: 3rem;
}

.image-band-quote {
  max-width: 36rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .image-band-quote {
    font-size: 1.875rem;
  }
}

.regions-grid {
  margin-top: 3rem;
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .regions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.region {
  display: flex;
  gap: 1.25rem;
}

.region .region-index {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--primary);
}

.region h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.region p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.ai-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .ai-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ai-copy p {
  margin: 0 0 1.25rem;
  line-height: 1.7;
  color: var(--muted-foreground);
  text-wrap: pretty;
}

.ai-cards {
  display: grid;
  gap: 1rem;
}

.ai-cards .card h3 {
  font-size: 1rem;
  color: var(--foreground);
}

.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band img {
  height: 70svh;
  width: 100%;
  object-fit: cover;
}

.cta-band-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(32, 29, 23, 0.5);
}

.cta-band-content {
  padding: 0 1.5rem;
  text-align: center;
}

.cta-band-content h2 {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 2.25rem;
  font-weight: 700;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .cta-band-content h2 {
    font-size: 3rem;
  }
}

.cta-band-content button {
  margin-top: 2rem;
  border-radius: 999px;
  padding: 1rem 2.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  transition: transform 0.2s;
}
.cta-band-content button:hover {
  transform: scale(1.05);
}
.cta-band-content button.primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.cta-band-content button.accent {
  background: var(--accent);
  color: var(--accent-foreground);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 7rem;
  text-align: center;
}

.site-footer p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--muted-foreground);
}

.hidden {
  display: none !important;
}

/* ===== V2: smaller framed photos, logos +5%, new layouts ===== */
main section { scroll-margin-top: 9.5rem; }

/* Logos: 6.75rem -> 7.0875rem (+5%) */
.header-brand img { height: 7.0875rem; width: 7.0875rem; }
.page-coffee .header-brand img { object-position: 50% 38%; image-rendering: auto; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.page-dev :focus-visible { outline-color: var(--accent); }

.header-nav a.active { color: var(--foreground); }

/* Hero: text + small framed photo */
.hero-split {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 72rem;
  margin: 0 auto;
  padding: 11rem 1.5rem 4rem;
  overflow: visible;
}
@media (min-width: 900px) {
  .hero-split { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
}
.hero-text { text-align: left; }
.hero-split .hero-title { font-size: clamp(2.25rem, 5vw, 4rem); }
.hero-split .hero-sub { margin-left: 0; max-width: 34rem; }

.photo-frame {
  margin: 0;
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 4 / 5;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  justify-self: center;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame.wide { aspect-ratio: 1 / 1; max-width: 21rem; }

/* One orchestrated entrance, hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero-split .hero-text > *, .hero-split .photo-frame { animation: rise 0.8s cubic-bezier(.2,.7,.2,1) both; }
  .hero-split .hero-text > :nth-child(2) { animation-delay: .1s; }
  .hero-split .hero-text > :nth-child(3) { animation-delay: .2s; }
  .hero-split .hero-text > :nth-child(4) { animation-delay: .3s; }
  .hero-split .photo-frame { animation-delay: .25s; }
  @keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
}

/* Photo + quote */
.feature {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
@media (min-width: 768px) { .feature { grid-template-columns: auto 1fr; gap: 4rem; } }
.feature-note { margin: 1rem 0 0; max-width: 32rem; line-height: 1.7; color: var(--muted-foreground); }

/* CTA card with small photo */
.cta-card {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2.5rem 1.5rem;
}
@media (min-width: 768px) { .cta-card { grid-template-columns: 1.2fr 0.8fr; padding: 3rem; } }
.cta-card h2 { margin: 0; max-width: 28rem; font-size: clamp(1.875rem, 4vw, 2.75rem); }
.cta-card .btn-cta { margin-top: 2rem; }
.cta-card .photo-frame { max-width: 20rem; }

/* Featured card (Geisha) */
.card-feature { position: relative; border-color: rgba(217, 180, 92, 0.6); background: linear-gradient(160deg, #332d1f, var(--card)); }
@media (min-width: 1024px) { .card-feature { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; padding: 2.5rem; } .card-feature .badge { align-self: flex-start; } .card-feature .card-note { font-size: 1rem; } }
.card-feature h3 { font-size: 1.75rem; }
.badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}
.image-band-quote { font-size: clamp(1.5rem, 3vw, 2.25rem); max-width: 28rem; margin: 0; }

.page-coffee { background-image: radial-gradient(60rem 34rem at 85% 22rem, rgba(217, 180, 92, 0.14), transparent 70%); background-repeat: no-repeat; }
.page-dev { background-image: radial-gradient(60rem 34rem at 85% 22rem, rgba(79, 174, 130, 0.14), transparent 70%); background-repeat: no-repeat; }

/* Header fits at laptop widths with the larger logo */
.header-email { font-size: 1rem; }
@media (max-width: 1279px) { .header-email { display: none; } }
@media (min-width: 1280px) { .header-email { display: inline; } }
.header-nav a { font-size: 1rem; padding: 0.625rem 1rem; }
