/* Leo və Teo — leoteo.talk
   Rənglər loqodan götürülüb (İkonik): kömür, sümük ağı, karamel, zeytun. */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --coal: #19191E;
  --coal-2: #222128;
  --ink: #292529;
  --bone: #F3EADB;
  --paper: #FBF7F0;
  --sand: #F1E8DA;
  --line: #E4D9C7;
  --caramel: #AD6D42;
  --caramel-2: #C98A52;
  --brown: #7E4C2E;
  --olive: #A7A761;
  --muted: #6B625A;
  --bone-70: rgba(243, 234, 219, .72);
  --bone-12: rgba(243, 234, 219, .12);
  --radius: 22px;
  --wrap: 1160px;
  --header: 68px;
  --shadow: 0 1px 0 rgba(25, 25, 30, .04), 0 18px 40px -24px rgba(25, 25, 30, .38);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--coal); font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--bone); color: var(--coal); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--caramel-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: background-color .2s, color .2s, transform .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-light { background: var(--bone); color: var(--coal); }
.btn-light:hover { background: var(--caramel-2); }
.btn-ghost { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 1.5px rgba(243, 234, 219, .38); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--bone); }
.btn-dark { background: var(--coal); color: var(--bone); }
.btn-dark:hover { background: var(--ink); }
.btn-dark:hover svg { transform: translateX(3px); }
.btn svg { transition: transform .2s; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-block { width: 100%; }

/* ---------- Kicker (söhbət balonu formasında) ---------- */
.kicker {
  display: inline-block; margin: 0 0 4px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brown); background: rgba(173, 109, 66, .1);
  padding: 7px 14px 6px; border-radius: 14px 14px 14px 3px;
}
.kicker--dark { color: var(--caramel-2); background: rgba(201, 138, 82, .14); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(25, 25, 30, .94);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(243, 234, 219, .07);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header); }
.brand, .footer-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-avatars { display: inline-flex; }
.brand-avatars img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--coal), 0 0 0 4px rgba(243, 234, 219, .55); }
.brand-avatars img + img { margin-left: -10px; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: var(--bone); }
.brand-name span { color: var(--caramel-2); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--bone); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: 999px; opacity: .82; transition: opacity .2s, background-color .2s;
}
.nav a:hover { opacity: 1; background: rgba(243, 234, 219, .08); }
.nav a.nav-cta { opacity: 1; background: var(--bone); color: var(--coal); font-weight: 700; margin-left: 6px; }
.nav a.nav-cta:hover { background: var(--caramel-2); }

.nav-toggle {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; color: var(--bone); cursor: pointer;
  border: 1px solid rgba(243, 234, 219, .22); border-radius: 12px;
}
.nav-toggle path { transition: transform .25s, opacity .2s; transform-origin: 12px 12px; }
.nav-toggle[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .l2 { opacity: 0; }
.nav-toggle[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--coal); color: var(--bone); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 24px; }
.hero-text { padding-bottom: 40px; }
.hero h1 { color: var(--bone); font-size: clamp(48px, 7.4vw, 92px); line-height: .98; margin: 18px 0 22px; letter-spacing: -.035em; }
.hero h1 .and { color: var(--bone-70); font-weight: 500; font-size: .62em; letter-spacing: -.01em; vertical-align: .1em; }
.hero h1 .teo { color: var(--caramel-2); }
.hero .lead { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--bone-70); max-width: 32em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-handle { margin: 26px 0 0; font-size: 14.5px; color: rgba(243, 234, 219, .55); }
.hero-handle strong { color: var(--bone); font-weight: 500; }

.stage {
  position: relative; aspect-ratio: 1 / .86; width: 100%; max-width: 600px; justify-self: end; margin-bottom: 40px;
  border-radius: 30px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 70% at 22% 0%, rgba(255, 232, 196, .55), rgba(255, 232, 196, 0) 55%),
    linear-gradient(180deg, #a9b7bd 0%, #8d9ea7 100%);
  box-shadow: 0 0 0 1px rgba(243, 234, 219, .1), 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.stage::before { /* wainscot line on the wall */
  content: ""; position: absolute; left: 0; right: 0; top: 58%; height: 3px; background: rgba(25, 25, 30, .12);
}
.stage-floor {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 14%;
  background: linear-gradient(180deg, #6a4a35 0%, #563b2a 30%, #4a3224 100%);
  border-top: 4px solid #1b1114;
}
.duo {
  position: absolute; z-index: 2; left: 50%; bottom: 3.5%; width: 86%; height: auto;
  transform: translateX(-50%); animation: rise .9s .1s both cubic-bezier(.2, .7, .2, 1);
}

.bubble {
  position: absolute; z-index: 2; margin: 0; max-width: 47%;
  padding: 12px 17px; border-radius: 20px;
  background: var(--bone); color: var(--coal);
  font-weight: 500; font-size: clamp(14px, 1.45vw, 17px); line-height: 1.35;
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .6);
}
.bubble::after {
  content: ""; position: absolute; bottom: -11px; width: 22px; height: 14px; background: inherit;
}
.bubble-teo { left: 4%; top: 5%; animation: pop .45s .9s both cubic-bezier(.2, .8, .2, 1.25); }
.bubble-teo::after { left: 44px; clip-path: polygon(0 0, 100% 0, 15% 100%); }
.bubble-leo { right: 4%; top: 13%; background: var(--olive); animation: pop .45s 2.1s both cubic-bezier(.2, .8, .2, 1.25); }
.bubble-leo::after { right: 60px; clip-path: polygon(0 0, 100% 0, 85% 100%); }

@keyframes rise { from { opacity: 0; transform: translate(-50%, 24px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes hop { 0% { opacity: 0; transform: translateY(40px); } 60% { opacity: 1; transform: translateY(-12px); } 100% { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: none; } 50% { transform: translateY(-5px); } }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.08; margin: 16px 0 18px; }
.section-lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); margin: 0; }

/* About */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 26px; box-shadow: var(--shadow); }
.pillar-num {
  display: grid; place-items: center; width: 46px; height: 46px;
  background: var(--coal); color: var(--bone); font-weight: 700; font-size: 18px;
  border-radius: 15px 15px 15px 4px;
}
.pillar h3 { font-size: 21px; line-height: 1.25; margin: 22px 0 10px; }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }

.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 32px 0 0; }
.facts li { border: 1.5px solid var(--coal); color: var(--coal); border-radius: 999px; padding: 8px 18px; font-weight: 500; font-size: 15px; }

/* Characters */
.cast-section { background: var(--sand); }
.cast { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.cast .card { grid-column: span 3; }
.cast .card--sm { grid-column: span 2; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.card-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card--sm .card-art { aspect-ratio: 1 / 1; }
.card-art img { position: absolute; left: 0; right: 0; bottom: 0; height: 94%; width: auto; margin: 0 auto; transform-origin: 50% 100%; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-art img { transform: scale(1.03); }
.card--leo .card-art { background: #E5E0D2; }
.card--teo .card-art { background: #F2DECB; }
.card--hedo .card-art { background: #DDE5EB; }
.card--fego .card-art { background: #E8E2D3; }
.card--mino .card-art { background: #E9E3EA; }
.badge {
  position: absolute; top: 18px; left: 18px; z-index: 1;
  background: var(--coal); color: var(--bone); font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px 5px; border-radius: 12px 12px 12px 3px;
}
.card-body { padding: 26px 30px 32px; }
.card h3 { font-size: 32px; line-height: 1.05; margin: 0; }
.card--sm h3 { font-size: 27px; }
.card--sm .card-body { padding: 22px 24px 28px; }
.role { color: var(--brown); font-weight: 500; font-size: 15px; margin: 6px 0 14px; }
.card-body > p:not(.role) { color: var(--muted); margin: 0; }
.quote { margin: 20px 0 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--caramel); font-weight: 500; color: var(--coal); font-size: 16.5px; line-height: 1.5; }

/* Watch */
.watch { background: var(--coal); color: var(--bone); }
.watch h2 { color: var(--bone); }
.watch .section-lead { color: var(--bone-70); }
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.platform {
  display: flex; flex-direction: column; gap: 6px; min-height: 250px;
  padding: 28px; border-radius: var(--radius); text-decoration: none; color: var(--bone);
  background: var(--coal-2); border: 1px solid var(--bone-12);
  transition: transform .25s, border-color .25s, background-color .25s;
}
.platform:hover { transform: translateY(-4px); border-color: var(--caramel-2); background: #26252c; }
.platform-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 16px 16px 16px 4px; background: var(--bone); color: var(--coal); }
.platform strong { font-size: 23px; font-weight: 700; line-height: 1.2; }
.platform-handle { color: var(--caramel-2); font-weight: 500; }
.platform-desc { color: var(--bone-70); font-size: 15px; }
.platform-go { margin-top: auto; padding-top: 18px; font-weight: 700; font-size: 15px; }
.platform-go span { display: inline-block; transition: transform .2s; }
.platform:hover .platform-go span { transform: translateX(4px); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.08fr; gap: 64px; align-items: start; }
.contact-info .section-lead { margin-bottom: 30px; }
.mail-link {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; color: var(--coal); text-decoration: none;
  padding-bottom: 6px; border-bottom: 3px solid var(--caramel); letter-spacing: -.01em;
  transition: color .2s, border-color .2s;
}
.mail-link:hover { color: var(--brown); border-color: var(--coal); }
.mail-link svg { flex: none; }
.mail-link span { overflow-wrap: anywhere; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font: inherit; font-size: 14px; font-weight: 500; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.copy-btn:hover { color: var(--coal); border-color: var(--coal); }
.copy-btn.done { color: #3D6A2E; border-color: #3D6A2E; }
.contact-art { margin-top: 44px; max-width: 360px; }

.form { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 34px; box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 500; font-size: 14.5px; color: var(--coal); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid #DACFBC; border-radius: 14px; background: var(--paper);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2319191E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--coal); background-color: #fff; box-shadow: 0 0 0 4px rgba(201, 138, 82, .28); }
.field.invalid input, .field.invalid textarea { border-color: #B3412F; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; min-height: 1.5em; font-weight: 500; font-size: 15px; }
.form-status.ok { color: #3D6A2E; }
.form-status.err { color: #A8392A; }
.form-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* Footer */
.site-footer { background: var(--coal); color: rgba(243, 234, 219, .6); padding: 52px 0 30px; font-size: 14.5px; border-top: 1px solid var(--bone-12); }
.footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--bone-12); }
.footer-logo .brand-avatars img { width: 44px; height: 44px; }
.footer-logo .brand-name { font-size: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--bone); text-decoration: none; font-weight: 500; opacity: .85; }
.footer-links a:hover { opacity: 1; color: var(--caramel-2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; }
.footer-bottom p { margin: 0; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Simple pages (404, form result) */
.simple { min-height: calc(100vh - var(--header)); display: grid; place-items: center; text-align: center; padding: 64px 0; background: var(--coal); color: var(--bone); }
.simple h1 { color: var(--bone); font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 18px 0 14px; }
.simple p { color: var(--bone-70); max-width: 30em; margin: 0 auto 28px; font-size: 18px; }
.simple img { width: min(260px, 66vw); margin: 0 auto; border-bottom: 4px solid #1b1114; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; padding-top: 56px; }
  .hero-text { padding-bottom: 8px; }
  .stage { justify-self: center; max-width: 560px; margin-top: 12px; }
  .pillars, .platforms { grid-template-columns: 1fr; }
  .platform { min-height: 0; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .contact-art { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; top: var(--header); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px 16px 20px; background: var(--coal); border-bottom: 1px solid var(--bone-12);
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .6);
  }
  .nav.open { display: flex; }
  .nav a { font-size: 17px; padding: 13px 14px; border-radius: 12px; }
  .nav a.nav-cta { margin: 8px 0 0; text-align: center; border-radius: 999px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .brand-avatars img { width: 34px; height: 34px; }
  .brand-name { font-size: 17px; }
  .hero-grid { padding-top: 40px; }
  .stage { aspect-ratio: 1 / .98; border-radius: 22px; margin-bottom: 28px; }
  .bubble-teo { top: 3%; }
  .bubble-leo { top: 17%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 36px; }
  .cast { grid-template-columns: 1fr; gap: 18px; }
  .cast .card, .cast .card--sm { grid-column: auto; }
  .card--sm .card-art { aspect-ratio: 4 / 3; }
  .card-body { padding: 22px 22px 26px; }
  .card h3 { font-size: 28px; }
  .pillar { padding: 24px 22px 22px; }
  .form { padding: 22px 18px; border-radius: 22px; }
  .bubble { padding: 10px 13px; border-radius: 16px; max-width: 50%; }
  .bubble-teo::after { left: 30px; }
  .bubble-leo::after { right: 40px; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
