/* =========================================================
   Juan Mercado — personal site
   Palette: dark ink + warm cream + magenta (software) + violet (video)
   ========================================================= */
/* Self-hosted fonts (SIL OFL license) */
@font-face { font-family: "Instrument Serif"; src: url(../fonts/instrument-serif-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(../fonts/instrument-serif-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(../fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #0c0b0f;
  --bg-2: #131218;
  --surface: #1a1920;
  --line: #2a2830;
  --text: #f3ece1;
  --muted: #a39d94;
  --amber: #e8336f;      /* main accent / software */
  --amber-soft: rgba(232, 51, 111, .14);
  --red: #a78bfa;        /* film / video accent */
  --red-soft: rgba(167, 139, 250, .14);

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --radius: 14px;
  --wrap: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--amber); }
.mono { font-family: var(--mono); letter-spacing: .02em; }

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

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--amber); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

/* Section numbers ("01 — ") are automatic: visible .eyebrow--num elements are counted in page order */
main { counter-reset: section; }
.eyebrow--num::before { counter-increment: section; content: counter(section, decimal-leading-zero) " — "; }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(12, 11, 15, .88); backdrop-filter: blur(12px); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav__install { font: 500 14px var(--sans); color: var(--text); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.nav__install:hover { border-color: var(--text); }

/* "Back" button: only in the installed app (no browser bar), on inner pages */
.back {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font: 500 14px var(--sans); color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.back:hover { border-color: var(--text); }
.nav .nav__cta { color: #fff; background: var(--amber); padding: 8px 16px; border-radius: 999px; font-weight: 600; }
.nav .nav__cta:hover { color: #fff; filter: brightness(1.08); }
.header__tools { display: flex; align-items: center; gap: 12px; }

.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button {
  font: 500 12px var(--mono); color: var(--muted); background: none; border: 0;
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.burger { display: none; width: 40px; height: 40px; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); transition: transform .25s, top .25s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + 56px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(232,51,111,.10), transparent 70%),
    radial-gradient(500px 400px at 10% 90%, rgba(167,139,250,.07), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.25fr .85fr; gap: 56px; align-items: center; position: relative; }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(42px, 5.6vw, 80px);
  line-height: .98;
  letter-spacing: -.01em;
  margin-bottom: 26px;
}
.hero__lead { font-size: 19px; color: var(--muted); max-width: 560px; margin-bottom: 36px; }

.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 600px; }
.door {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 20px 22px 22px; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  transition: transform .25s, border-color .25s, background .25s;
}
.door:hover { transform: translateY(-3px); }
.door--code:hover { border-color: var(--amber); background: var(--amber-soft); }
.door--film:hover { border-color: var(--red); background: var(--red-soft); }
.door__tag { font-size: 12px; margin-bottom: 10px; }
.door--code .door__tag { color: var(--amber); }
.door--film .door__tag { color: var(--red); }
.door__label { font-weight: 600; font-size: 18px; }
.door__hint { font-size: 14px; color: var(--muted); }
.door__arrow { position: absolute; right: 20px; top: 18px; font-size: 20px; transition: transform .25s; }
.door:hover .door__arrow { transform: translateX(4px); }

.hero__photo { margin: 0; position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 5 / 6; border: 1px solid var(--line); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,11,15,.85) 0%, transparent 40%);
}
.hero__photo figcaption {
  position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1;
  display: flex; justify-content: space-between; font-size: 12px; color: var(--text); letter-spacing: .14em;
}

.trust { margin: 72px 0 0; padding: 30px 0 64px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; position: relative; }
.trust__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust__stats strong { display: block; font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--amber); font-weight: 400; }
.trust__stats span { font-size: 14px; color: var(--muted); }
.trust__logos { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.trust__logos .mono { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.trust__names { font-size: 16px; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-2); }
.section--film { background: linear-gradient(180deg, var(--bg) 0%, #110f17 100%); }
.section--film em { color: var(--red); }
.section__head { max-width: 760px; margin-bottom: 52px; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.section__head--row > div { max-width: 640px; }
.section h2 { font-family: var(--serif); font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; margin-bottom: 18px; }
.section__lead { font-size: 18px; color: var(--muted); }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: #45414c; transform: translateY(-2px); }
.card__icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); font-size: 20px; margin-bottom: 18px; }
.card h3 { font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card--accent { border-color: rgba(232,51,111,.45); background: linear-gradient(160deg, rgba(232,51,111,.10), var(--surface) 60%); }
.card--film .card__icon { background: var(--red-soft); color: var(--red); }

.own {
  margin-top: 26px; padding: 26px 30px; border-radius: var(--radius);
  border: 1px dashed rgba(232,51,111,.5);
  display: flex; gap: 30px; align-items: center; flex-wrap: wrap;
}
.own__title { font-family: var(--serif); font-size: 30px; color: var(--amber); }
.own__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.own__list li { font-size: 15px; }
.own__list li::before { content: "✓ "; color: var(--amber); font-weight: 700; }

/* ---------- Portfolio ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; transition: border-color .25s, transform .25s;
}
.work:hover { transform: translateY(-3px); border-color: #45414c; }

.work__media {
  position: relative; aspect-ratio: 16 / 10; background: #000; border: 0; padding: 0; cursor: pointer; width: 100%;
  display: block; overflow: hidden; color: inherit; text-decoration: none;
}
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work:hover .work__media img { transform: scale(1.04); }
.work__media--logo { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #1d1a22, #0f0e13); }
.work__media--logo img { width: 46%; height: 46%; object-fit: contain; }
.work:hover .work__media--logo img { transform: scale(1.06); }
.work__placeholder {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px 20px;
  font-family: var(--serif); font-size: 26px; line-height: 1.1;
}
.work--code .work__placeholder { background: radial-gradient(circle at 30% 20%, rgba(232,51,111,.35), transparent 60%), linear-gradient(135deg, #1d1218, #0f0e12); }
.work--film .work__placeholder { background: radial-gradient(circle at 70% 30%, rgba(167,139,250,.35), transparent 60%), linear-gradient(135deg, #16121f, #0f0e12); }
.work--client .work__placeholder { background: radial-gradient(circle at 70% 30%, rgba(143,199,255,.25), transparent 60%), linear-gradient(135deg, #12161e, #0f0e12); }
.work__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; border-radius: 50%; background: rgba(12,11,15,.7); border: 1px solid rgba(255,255,255,.35);
  display: grid; place-items: center; font-size: 20px; backdrop-filter: blur(4px); transition: background .2s;
}
.work__platform {
  position: absolute; right: 12px; top: 12px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em;
  background: rgba(12,11,15,.75); padding: 5px 9px; border-radius: 6px; backdrop-filter: blur(4px);
}

.work__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.work__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.badge--own { color: var(--amber); border-color: rgba(232,51,111,.4); }
.badge--client { color: #8fc7ff; border-color: rgba(143,199,255,.4); }
.badge--demo { color: #b9a7ff; border-color: rgba(185,167,255,.4); }
.work h3 { font-weight: 600; font-size: 19px; }
.work__desc { color: var(--muted); font-size: 15px; margin: 0; }
.work__credit {
  font-size: 13.5px; margin: 0; padding: 10px 12px; border-left: 2px solid var(--line); background: rgba(255,255,255,.03);
  color: #d8d1c6; border-radius: 0 8px 8px 0;
}
.work--client .work__credit { border-left-color: #8fc7ff; }
.work__meta { font: 400 12.5px var(--mono); color: var(--muted); margin: 0; }
.work__links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.cbtn {
  display: inline-flex; align-items: center; gap: 6px; font: 500 14px var(--sans); color: var(--text); background: transparent;
  text-decoration: none; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; transition: border-color .2s, background .2s;
}
.cbtn:hover { border-color: var(--text); }
.cbtn--primary { background: var(--amber); border-color: var(--amber); color: #fff; font-weight: 600; }
.cbtn--primary:hover { border-color: var(--amber); filter: brightness(1.08); }
.cbtn--film { border-color: rgba(167,139,250,.6); color: #d4c6ff; }
.cbtn--film:hover { border-color: var(--red); background: var(--red-soft); }
.cbtn--off { opacity: .55; cursor: default; }
.cbtn--off:hover { border-color: var(--line); filter: none; }
.work--film .work__play:hover, .work--film:hover .work__play { background: var(--red); }
.work--client:hover .work__play { background: #3d6fa8; }
.work--code:hover .work__play { background: var(--amber); color: #fff; }
.more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 32px; }
.more:empty { display: none; }
.more__count { margin: 0; font: 400 13px var(--mono); color: var(--muted); }

/* ---------- Project cards (image optional) ---------- */
.work__media--static { cursor: default; }
.work__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.work__tag { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--amber); }
.work__plats { font: 400 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-left: auto; }
.work--project .work__title { font-weight: 600; font-size: 20px; line-height: 1.25; }
.work--text { position: relative; }
.work--text::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), rgba(232,51,111,0) 80%);
}
.work--text .work__body { padding-top: 26px; background: radial-gradient(420px 220px at 100% 0%, rgba(232,51,111,.08), transparent 70%); }
.work--text .work__title { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.08; }
.chips--sm { margin: 0; gap: 6px; }
.chips--sm li { font-size: 11.5px; padding: 4px 10px; }
.work__monogram { font-family: var(--serif); font-size: 72px; color: var(--amber); }
.cbtn__soon { font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-left: 1px solid var(--line); padding-left: 8px; margin-left: 2px; }

/* Empty section */
.empty {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 56px 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}
.empty__icon { font-size: 28px; color: var(--amber); }
.section--film .empty__icon { color: var(--red); }
.empty p { margin: 0; max-width: 420px; }

/* ---------- Inner pages ---------- */
.page-head { padding: calc(var(--header-h) + 64px) 0 0; position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 360px at 90% 0%, rgba(232,51,111,.10), transparent 70%);
}
.page-head--film::before { background: radial-gradient(600px 360px at 90% 0%, rgba(167,139,250,.12), transparent 70%); }
.page-head--film em { color: var(--red); }
.page-head .wrap { position: relative; }
.page-head__title { font-family: var(--serif); font-size: clamp(42px, 5.4vw, 72px); line-height: 1; margin-bottom: 18px; max-width: 900px; }
.page-head .section__lead { max-width: 720px; }
.section--first { padding-top: 56px; }
.page-links { display: flex; gap: 10px; flex-wrap: wrap; margin: 32px 0 0; }

/* Tabs (videos page) */
.tabs { display: inline-flex; gap: 4px; margin-top: 30px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.tabs [role="tab"] {
  font: 500 15px var(--sans); color: var(--muted); background: none; border: 0; border-radius: 999px;
  padding: 10px 18px; cursor: pointer; transition: background .2s, color .2s;
}
.tabs [role="tab"]:hover { color: var(--text); }
.tabs [role="tab"][aria-selected="true"] { background: var(--red); color: #0c0b0f; font-weight: 600; }

/* ---------- Home: services summary ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svc {
  display: flex; flex-direction: column; gap: 14px; padding: 30px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.svc--code { background: linear-gradient(160deg, rgba(232,51,111,.08), var(--surface) 55%); }
.svc--film { background: linear-gradient(160deg, rgba(167,139,250,.08), var(--surface) 55%); }
.svc__tag { font-size: 12px; color: var(--amber); }
.svc--film .svc__tag { color: var(--red); }
.svc h3 { font-family: var(--serif); font-size: 34px; line-height: 1.05; }
.svc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.svc__list li { padding-left: 22px; position: relative; }
.svc__list li::before { content: "→"; position: absolute; left: 0; color: var(--amber); }
.svc--film .svc__list li::before { color: var(--red); }
.svc__text { color: var(--muted); font-size: 15.5px; margin: 0; }
.svc__link { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; color: var(--amber); }
.svc--film .svc__link { color: var(--red); }
.svc__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Home: featured work ---------- */
.featured__block + .featured__block { margin-top: 56px; }
.featured__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.featured__head h3 { font: 500 13px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.featured__head a { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--amber); }
.featured__block--film .featured__head a { color: var(--red); }
.featured__head a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Contact band (inner pages) ---------- */
.cta-band { padding: 90px 0; border-top: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 100%, rgba(232,51,111,.12), transparent 70%); pointer-events: none; }
.cta-band__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(36px, 4.6vw, 56px); line-height: 1.04; max-width: 760px; }

/* ---------- About ---------- */
.about { display: block; max-width: 900px; }
.about__text p { color: #d8d1c6; font-size: 17.5px; }
.chips { list-style: none; padding: 0; margin: 26px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font: 400 13px var(--mono); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.about__sub { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 36px 0 16px; font-weight: 400; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.skills__group { font-weight: 600; font-size: 15px; margin: 0 0 2px; color: var(--text) !important; }
.skills .chips { margin: 10px 0 18px; }
.link { color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(232,51,111,.4); }
.link:hover { border-color: var(--amber); }



.cards__note { margin: 22px 0 0; color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent; transition: transform .2s, filter .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--amber); color: #fff; }
.btn--film { background: var(--red); color: #0c0b0f; }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.faq .section__head { margin: 0; }
.faq__list details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq__list summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; color: var(--amber); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { color: var(--muted); margin: 12px 0 0; }

/* ---------- Contact ---------- */
.contact { text-align: center; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 50% 100%, rgba(232,51,111,.12), transparent 70%); pointer-events: none; }
.contact__inner { position: relative; max-width: 820px; }
.contact__title { font-family: var(--serif); font-size: clamp(44px, 6vw, 80px) !important; }
.contact__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 34px 0 44px; }
.contact__alt { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; }
.contact__alt li { display: flex; flex-direction: column; gap: 4px; }
.contact__alt .mono { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.contact__alt a { text-decoration: none; }
.contact__alt a:hover { color: var(--amber); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer__inner p { margin: 0; }
.footer img { height: 32px; width: auto; opacity: .85; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }

/* ---------- Player ---------- */
.player { width: min(960px, 94vw); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--text); overflow: visible; }
.player::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(4px); }
.player__frame { aspect-ratio: 16 / 9; background: #000; border-radius: 16px 16px 0 0; overflow: hidden; }
.player--vertical { width: min(420px, 92vw); }
.player--vertical .player__frame { aspect-ratio: 9 / 16; max-height: 78vh; margin-inline: auto; }
.player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player__credit { margin: 0; padding: 14px 18px; font-size: 14px; color: var(--muted); }
.player__close { position: absolute; right: -6px; top: -46px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; font-size: 16px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards, .grid, .skills { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: 1fr; }
  .nav { gap: 18px; }
}
@media (max-width: 900px) {
  .burger { display: block; }
  .header__tools { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(12,11,15,.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
    padding: 10px 20px 22px; transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text); }
  .nav .nav__cta { margin-top: 14px; text-align: center; border: 0; }
  .nav a[aria-current="page"] { color: var(--amber); text-decoration: none; }
  .nav__install { margin-top: 14px; padding: 12px; font-size: 16px; }
  .header__inner { gap: 12px; }
  .header { background: rgba(12, 11, 15, .88); backdrop-filter: blur(12px); }

  .hero { padding-top: calc(var(--header-h) + 30px); }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__photo { order: -1; max-width: 340px; aspect-ratio: 1 / 1; border-radius: 50%; margin-inline: auto; }
  .hero__photo figcaption { display: none; }
  .hero__photo::after { background: none; }
  .hero__text { text-align: left; }
  .about, .faq { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .cards, .grid, .skills, .svc-grid { grid-template-columns: 1fr; }
  .doors { grid-template-columns: 1fr; }
  .page-head { padding-top: calc(var(--header-h) + 36px); }
  .svc { padding: 24px; }
  .svc h3 { font-size: 30px; }
  .tabs { display: flex; width: 100%; }
  .tabs [role="tab"] { flex: 1; padding: 10px 8px; font-size: 14px; }
  .featured__block + .featured__block { margin-top: 44px; }
  .cta-band { padding: 70px 0; }
  .back { padding: 7px 11px; }
  .back [data-i18n] { display: none; }
  .trust__stats { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .trust__stats strong { font-size: 34px; }
  .trust__stats span { font-size: 12.5px; }
  .hero__photo { max-width: 220px; }
  .own { padding: 22px; }
  .contact__alt { gap: 22px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .brand img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
