/* Mikhalkos — Film & AI Production · v2
   Overcast daylight paper, graphite ink, a teal-shadow / sodium-highlight grade. */
:root {
  --paper: #dde3e6;
  --paper-2: #cfd7db;
  --ink: #17222c;
  --muted: #45535e;
  --teal: #24505b;
  --teal-deep: #0d2129;
  --night: #050c10;
  --sodium: #e8962e;
  --sodium-soft: #f3c27a;
  --on-dark: #eef2f3;
  --on-dark-muted: #b9c7cc;
  --line: rgba(23, 34, 44, .18);
  --line-dark: rgba(238, 242, 243, .16);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --bar: clamp(36px, 7vh, 72px);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(.86rem, .83rem + .15vw, .94rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1: clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.2rem + 1.1vw, 2.1rem);
  --step-3: clamp(2rem, 1.4rem + 2.8vw, 3.8rem);
  --step-4: clamp(2.6rem, 1.4rem + 5.4vw, 6.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--step-0); line-height: 1.55;
  font-variation-settings: "wdth" 100;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sodium); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: sits on top of the dark hero on the home page */
.site-head { position: relative; z-index: 5; padding-block: 18px; }
.site-head.over { position: absolute; inset-inline: 0; top: 0; color: var(--on-dark); }
.site-head .wrap { display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap; }
.wordmark { font-weight: 700; font-size: 1.12rem; letter-spacing: .04em; text-decoration: none; font-variation-settings: "wdth" 125; }
.site-head nav { margin-inline-start: auto; }
.langs { display: flex; gap: 2px; list-style: none; padding: 0; margin: 0; }
.langs a { display: inline-block; padding: 6px 9px; text-decoration: none; font-size: var(--step--1); opacity: .7; }
.langs a:hover { opacity: 1; }
.langs a[aria-current="page"] { opacity: 1; font-weight: 600; box-shadow: inset 0 -2px 0 var(--sodium); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: var(--step--1); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sodium { background: var(--sodium); color: var(--teal-deep); }
.btn-sodium:hover { background: var(--sodium-soft); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--teal); }
.btn-line { border-color: currentColor; }
.btn-line:hover { background: rgba(127, 140, 150, .16); }
.btn svg { width: 18px; height: 18px; }
.site-head.over .btn-ink { background: rgba(238, 242, 243, .12); color: var(--on-dark); border-color: rgba(238, 242, 243, .4); }
.site-head.over .btn-ink:hover { background: rgba(238, 242, 243, .22); }

/* Full-bleed hero: a graded frame with letterbox bars, video when available */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--on-dark);
  min-height: min(100svh, 920px); display: flex; flex-direction: column; justify-content: flex-end;
  background:
    radial-gradient(ellipse 46% 64% at 80% 40%, rgba(243, 194, 122, .92) 0%, rgba(232, 150, 46, .5) 26%, rgba(232, 150, 46, 0) 62%),
    radial-gradient(ellipse 26% 34% at 90% 26%, rgba(255, 233, 196, .85) 0%, rgba(255, 233, 196, 0) 70%),
    linear-gradient(100deg, #0a1a21 0%, #0f2a33 40%, #1d4651 63%, #3a5550 80%, #6b5a3c 100%);
}
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(5, 12, 16, .8) 0%, rgba(5, 12, 16, .42) 48%, rgba(5, 12, 16, 0) 78%); }
.bar { position: absolute; inset-inline: 0; height: var(--bar); background: var(--night); z-index: 1; }
.bar-top { top: 0; }
.bar-bot { bottom: 0; }
.hero-copy { position: relative; z-index: 2; padding-block: calc(var(--bar) + 110px) calc(var(--bar) + clamp(28px, 6vh, 64px)); }
.hero h1 { margin: 0 0 .3em; max-width: 11ch; font-size: var(--step-4); line-height: .95; font-weight: 650; font-variation-settings: "wdth" 118; letter-spacing: -.015em; }
.hero p { margin: 0 0 1.5em; max-width: 38ch; font-size: var(--step-1); line-height: 1.4; color: #dfe6e8; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .hero .bar { animation: letterbox 1.2s cubic-bezier(.7, 0, .2, 1) .1s both; }
  .bar-top { transform-origin: top; }
  .bar-bot { transform-origin: bottom; }
  .hero-copy { animation: rise .9s ease-out .6s both; }
  @keyframes letterbox { from { transform: scaleY(7); } to { transform: scaleY(1); } }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .hero video { display: none; } }

/* Sections */
section { padding-block: clamp(64px, 9vw, 120px); }
.section-h { margin: 0 0 clamp(26px, 4vw, 48px); font-size: var(--step-3); line-height: 1.02; font-weight: 650; font-variation-settings: "wdth" 118; letter-spacing: -.01em; }

/* Work: LANDIA-style captioned reel list */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: clamp(20px, 3vw, 36px); }
.work a { display: block; text-decoration: none; }
.work .thumb { aspect-ratio: 16 / 9; background: var(--teal-deep); overflow: hidden; border-radius: 4px; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work a:hover img { transform: scale(1.03); }
.work .cap { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; }
.work .t { font-weight: 600; }
.work .m { color: var(--muted); font-size: var(--step--1); text-align: end; }

/* Services: a shot list of links */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list a {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) auto; align-items: baseline; gap: 10px clamp(20px, 4vw, 56px);
  padding-block: clamp(20px, 3vw, 32px); text-decoration: none;
}
.svc-list .n { font-size: var(--step-2); line-height: 1.08; font-weight: 600; font-variation-settings: "wdth" 112; }
.svc-list .l { color: var(--muted); }
.svc-list .go { width: 28px; height: 28px; color: var(--teal); transition: transform .2s ease; }
.svc-list a:hover .n { color: var(--teal); }
.svc-list a:hover .go { transform: translateX(6px); }

/* Process: a real sequence on the dark band */
.band { background: var(--teal-deep); color: var(--on-dark); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.steps li { position: relative; padding-top: 22px; }
.steps li::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 3px; background: linear-gradient(90deg, var(--teal) 0%, var(--sodium) 100%); opacity: calc(.35 + var(--i) * .2); }
.steps .n { display: block; font-size: var(--step-2); font-weight: 600; color: var(--sodium); line-height: 1; margin-bottom: 14px; }
.steps h3 { margin: 0 0 6px; font-size: var(--step-1); font-weight: 600; }
.steps p { margin: 0; color: var(--on-dark-muted); font-size: var(--step--1); }

/* Trust */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; margin: 0; }
.stats div { border-top: 3px solid var(--sodium); padding-top: 14px; }
.stats dt { font-size: var(--step-3); font-weight: 650; line-height: 1; font-variation-settings: "wdth" 118; }
.stats dd { margin: 8px 0 0; color: var(--muted); }
.clients { display: flex; flex-wrap: wrap; gap: 12px 40px; list-style: none; padding: 0; margin: 40px 0 0; font-size: var(--step-1); font-weight: 600; color: var(--muted); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 32px; margin-top: 56px; }
.quotes blockquote { margin: 0; font-size: var(--step-1); line-height: 1.45; }
.quotes figcaption { margin-top: 12px; color: var(--muted); font-size: var(--step--1); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: var(--step-1); display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--teal); font-size: 1.4em; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* Contact */
.contact { background: var(--paper-2); }
.contact .wrap { display: grid; gap: 20px; }
.contact .section-h { margin-bottom: 0; }
.contact p { margin: 0; color: var(--muted); }
.mail {
  justify-self: start; font-size: clamp(1.7rem, 1rem + 4.2vw, 4.6rem); font-weight: 650; line-height: 1.05; text-decoration: none; word-break: break-word;
  font-variation-settings: "wdth" 112; padding-bottom: 6px;
  background: linear-gradient(var(--sodium), var(--sodium)) 0 100% / 100% 4px no-repeat;
}
.mail:hover { color: var(--teal); }

/* Service page */
.page-head { background: var(--teal-deep); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 40% 90% at 92% 30%, rgba(232, 150, 46, .55) 0%, rgba(232, 150, 46, 0) 65%), linear-gradient(100deg, #0a1a21 0%, #0f2a33 55%, #24505b 100%);
}
.page-head .wrap { padding-block: clamp(40px, 8vw, 96px) clamp(48px, 8vw, 104px); }
.crumbs { font-size: var(--step--1); color: var(--on-dark-muted); margin: 0 0 24px; }
.crumbs a { color: var(--on-dark); }
.page-head h1 { margin: 0 0 .4em; max-width: 16ch; font-size: var(--step-4); line-height: .98; font-weight: 650; font-variation-settings: "wdth" 118; letter-spacing: -.015em; }
.page-head p { margin: 0 0 1.6em; max-width: 52ch; font-size: var(--step-1); line-height: 1.45; color: #dfe6e8; }
.uses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); }
.uses li { padding-block: 18px; border-bottom: 1px solid var(--line); font-size: var(--step-1); font-weight: 500; }
.more { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.more a { display: inline-block; padding: 12px 20px; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: var(--step--1); }
.more a:hover { background: var(--ink); color: var(--paper); }

/* Footer */
.site-foot { padding-block: 28px 40px; font-size: var(--step--1); color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
.site-foot nav ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.site-foot a { color: var(--ink); }

/* WhatsApp floating button */
.wa-float { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #1f9d55; color: #fff; box-shadow: 0 6px 20px rgba(5, 12, 16, .35); }
.wa-float svg { width: 28px; height: 28px; }

.nf { min-height: 60vh; display: grid; align-content: center; gap: 18px; }
.nf h1 { margin: 0; font-size: var(--step-3); line-height: 1.05; font-variation-settings: "wdth" 118; }
.nf p { margin: 0; color: var(--muted); }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-list a { grid-template-columns: 1fr auto; }
  .svc-list .l { grid-column: 1; }
  .svc-list .go { grid-row: 1; grid-column: 2; }
}
@media (max-width: 720px) {
  .hero { min-height: 92svh; }
  .hero::after { background: linear-gradient(0deg, rgba(5, 12, 16, .88) 0%, rgba(5, 12, 16, .5) 55%, rgba(5, 12, 16, .12) 100%); }
  .site-head .nav-cta { display: none; }
  .uses { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .actions .btn { flex: 1 1 100%; }
}
