/*
 * Ikaro Medios 4.3 — editorial/cinematic refinement.
 * Loaded after the base/reference/WordPress/floating layers.
 * Keeps the Home reference intact and gives every internal view one coherent system.
 */

:root{
  --ik-shell:min(1180px,calc(100vw - 48px));
  --ik-copy:860px;
  --ik-gold:#f4a000;
  --ik-gold-soft:#ffc247;
  --ik-black:#050505;
  --ik-panel:#0d0d0d;
  --ik-panel-2:#13110d;
  --ik-text:#f7f3eb;
  --ik-muted:#bdb5a8;
  --ik-line:rgba(255,255,255,.12);
}

/* ---------- HEADER: never white on internal views ---------- */
.ikaro-site:not(.home) .site-header,
.ikaro-site:not(.front-page) .site-header{
  background:rgba(5,5,5,.94)!important;
  border-bottom:1px solid rgba(255,255,255,.10)!important;
  box-shadow:0 14px 44px rgba(0,0,0,.20);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.ikaro-site:not(.home) .site-header.scrolled,
.ikaro-site:not(.front-page) .site-header.scrolled{
  background:rgba(5,5,5,.98)!important;
}
.ikaro-site:not(.home) .site-header .nav,
.ikaro-site:not(.front-page) .site-header .nav{color:rgba(255,255,255,.86)}
.ikaro-site:not(.home) .site-header .nav-cta,
.ikaro-site:not(.front-page) .site-header .nav-cta{
  border-color:rgba(244,160,0,.64);
  color:var(--ik-gold-soft);
  background:rgba(244,160,0,.035);
}

/* ---------- INTERNAL TYPOGRAPHIC SYSTEM ---------- */
.ikaro-site:not(.home) .ik-main h2{
  font-size:30px!important;
  line-height:1.14!important;
  font-weight:700!important;
  letter-spacing:-.02em!important;
}
.ikaro-site:not(.home) .ik-main h3{
  font-size:22px!important;
  line-height:1.24!important;
  font-weight:600!important;
  letter-spacing:-.012em!important;
}
.ikaro-site:not(.home) .ik-main p,
.ikaro-site:not(.home) .ik-main li{
  font-size:17px;
  line-height:1.78;
}

/* ---------- CINEMATIC INTERNAL HERO ---------- */
.ik-page-hero,
.ik-single-hero,
.ik-archive-hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:150px 0 76px!important;
  background:
    radial-gradient(circle at 74% 32%,rgba(244,160,0,.10),transparent 28%),
    linear-gradient(135deg,#040404 0%,#090806 58%,#050505 100%)!important;
  border-bottom:1px solid var(--ik-line);
}
.ik-page-hero::before,
.ik-single-hero::before,
.ik-archive-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(5,5,5,.98) 0%,rgba(5,5,5,.84) 42%,rgba(5,5,5,.30) 72%,rgba(5,5,5,.82) 100%),
    linear-gradient(0deg,rgba(5,5,5,.80),transparent 52%);
}
.ik-page-hero::after,
.ik-single-hero::after,
.ik-archive-hero::after{
  content:"";
  position:absolute;
  left:max(24px,calc((100vw - 1180px)/2));
  top:118px;
  width:88px;
  height:1px;
  background:var(--ik-gold);
  opacity:.75;
}
.ik-page-hero .ik-content-shell,
.ik-single-hero .ik-content-shell,
.ik-archive-hero .ik-content-shell{
  width:var(--ik-shell);
  max-width:none;
}
.ik-page-hero-grid,
.ik-single-hero-grid{
  grid-template-columns:minmax(0,.92fr) minmax(420px,1.08fr)!important;
  gap:clamp(46px,6vw,92px)!important;
  align-items:center!important;
}
.ik-page-hero h1,
.ik-single-hero h1,
.ik-archive-hero h1{
  margin:0 0 22px!important;
  max-width:760px;
  font-size:clamp(50px,6.2vw,84px)!important;
  line-height:.96!important;
  letter-spacing:-.045em!important;
  font-weight:650!important;
  text-wrap:balance;
}
.ik-page-lead,
.ik-archive-hero>div>p:not(.brand-line),
.ik-single-hero .ik-page-lead{
  max-width:700px;
  margin:0 0 30px;
  color:#c8c1b5!important;
  font-size:clamp(18px,1.6vw,22px)!important;
  line-height:1.55!important;
}
.ik-page-featured,
.ik-single-hero figure{
  position:relative!important;
  min-height:460px!important;
  aspect-ratio:4/3;
  margin:0!important;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16)!important;
  background:#090909;
  box-shadow:0 36px 90px rgba(0,0,0,.48);
}
.ik-page-featured::before,
.ik-single-hero figure::before{
  content:"";
  position:absolute;
  inset:14px -14px -14px 14px;
  z-index:-1;
  border:1px solid rgba(244,160,0,.44);
}
.ik-page-featured::after,
.ik-single-hero figure::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,transparent 48%,rgba(5,5,5,.46));
}
.ik-page-featured img,
.ik-single-hero figure img{
  position:absolute!important;
  inset:0;
  width:100%!important;
  height:100%!important;
  max-height:none!important;
  object-fit:cover!important;
  filter:saturate(.92) contrast(1.04) brightness(.92);
}
.ik-back-link{
  color:#9f978a!important;
  font-size:13px!important;
  letter-spacing:.02em;
}
.brand-line{
  margin-bottom:15px!important;
  color:var(--ik-gold-soft)!important;
  font-size:12px!important;
  font-weight:850!important;
  letter-spacing:.06em!important;
}

/* ---------- LONG-FORM CONTENT: readable, shaped, editorial ---------- */
.ik-page-body,
.ik-longform,
.ik-archive-body{
  padding:86px 0 100px!important;
  background:
    radial-gradient(circle at 88% 8%,rgba(244,160,0,.035),transparent 22%),
    linear-gradient(180deg,#0a0a0a 0%,#0f0d09 100%)!important;
}
.ik-page-body .ik-content-shell,
.ik-longform .ik-content-shell,
.ik-archive-body .ik-content-shell{
  width:var(--ik-shell);
  max-width:none;
}
.ik-entry-content{
  width:min(100%,1040px);
  margin-inline:auto;
  color:#ddd6cb!important;
  font-size:17px!important;
  line-height:1.8!important;
}
.ik-entry-content>p,
.ik-entry-content>ul,
.ik-entry-content>ol,
.ik-entry-content>blockquote{
  max-width:var(--ik-copy);
}
.ik-entry-content>p:first-child{
  max-width:960px;
  margin-bottom:50px;
  color:#f0ebe2!important;
  font-size:19px!important;
  line-height:1.72!important;
}
.ik-entry-content h2{
  position:relative;
  max-width:900px;
  margin:68px 0 18px!important;
  padding-top:32px;
  border-top:1px solid rgba(255,255,255,.12);
  color:#fff!important;
}
.ik-entry-content h2::before{
  content:"";
  position:absolute;
  left:0;
  top:-1px;
  width:62px;
  height:2px;
  background:var(--ik-gold);
}
.ik-entry-content h3{
  position:relative;
  max-width:840px;
  margin:36px 0 12px!important;
  padding-left:18px;
  color:#f8f4ec!important;
}
.ik-entry-content h3::before{
  content:"";
  position:absolute;
  left:0;
  top:.33em;
  width:4px;
  height:1.05em;
  background:var(--ik-gold);
}
.ik-entry-content p{margin:0 0 22px;color:#cfc8bc!important}
.ik-entry-content ul,
.ik-entry-content ol{
  margin:22px 0 34px;
  padding:22px 24px 22px 46px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.025);
}
.ik-entry-content li+li{margin-top:9px}
.ik-entry-content blockquote{
  margin:38px 0;
  padding:26px 28px;
  border-left:3px solid var(--ik-gold);
  background:#11100d;
  color:#f2ede5;
}
.ik-entry-content table{
  margin:34px 0 46px!important;
  border:1px solid var(--ik-line);
  background:#0a0a0a;
}
.ik-entry-content th{
  background:#15120d!important;
  color:var(--ik-gold-soft)!important;
  font-weight:700;
}
.ik-entry-content th,
.ik-entry-content td{padding:15px 16px!important}

/* ---------- SERVICE FACTS ---------- */
.ik-facts{padding:58px 0!important;background:#070707!important;border-bottom:1px solid var(--ik-line)}
.ik-facts .ik-content-shell{width:var(--ik-shell);max-width:none}
.ik-fact-grid{gap:12px!important}
.ik-fact-grid article{
  min-height:170px;
  padding:24px!important;
  border:1px solid rgba(255,255,255,.11)!important;
  background:linear-gradient(145deg,#111,#0c0c0b)!important;
}
.ik-fact-grid article:hover{border-color:rgba(244,160,0,.40)!important}
.ik-fact-grid span{color:var(--ik-gold-soft)!important}
.ik-fact-grid p{font-size:15px!important;line-height:1.65!important;color:#c9c2b7!important}

/* ---------- ARCHIVES ---------- */
.ik-archive-hero{min-height:510px;display:flex;align-items:center}
.ik-archive-hero .ik-content-shell{padding-right:min(32vw,420px);position:relative}
.ik-archive-hero .ik-content-shell::after{
  content:"";
  position:absolute;
  right:0;
  top:50%;
  translate:0 -50%;
  width:min(29vw,360px);
  aspect-ratio:4/3;
  border:1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(180deg,rgba(5,5,5,.08),rgba(5,5,5,.42)),
    url('../images/work-film-crew.jpg') center/cover no-repeat;
  box-shadow:0 28px 70px rgba(0,0,0,.42);
}
.ik-archive-count{
  margin-top:8px!important;
  border-color:rgba(244,160,0,.35)!important;
  color:var(--ik-gold-soft)!important;
  background:rgba(244,160,0,.04);
}
.ik-archive-grid{gap:18px!important}
.ik-service-card,
.ik-news-card,
.ik-project-archive-card{
  border:1px solid rgba(255,255,255,.11)!important;
  background:linear-gradient(180deg,#111,#0b0b0b)!important;
  box-shadow:0 18px 42px rgba(0,0,0,.12);
}
.ik-card-media{aspect-ratio:16/10!important}
.ik-card-body{padding:24px!important}
.ik-card-body h2,
.ik-card-body h3{
  font-size:22px!important;
  line-height:1.16!important;
  font-weight:650!important;
}
.ik-card-body p{font-size:15px!important;line-height:1.65!important}
.ik-card-link{color:var(--ik-gold-soft)!important}

/* ---------- FAQ: compact editorial composition ---------- */
.ik-faq{
  width:var(--ik-shell);
  margin-inline:auto;
  padding:96px 0!important;
  display:grid;
  grid-template-columns:minmax(220px,.58fr) minmax(0,1.42fr);
  gap:72px;
  background:transparent!important;
}
.ik-faq>.section-heading,
.ik-faq-list{max-width:none!important;margin:0!important}
.ik-faq .section-heading{position:sticky;top:124px;align-self:start}
.ik-faq .section-heading p{margin:0 0 16px!important;color:var(--ik-gold-soft)!important;font-size:12px!important;font-weight:800!important;text-transform:uppercase}
.ik-faq .section-heading h2{max-width:360px;margin:0!important;font-size:30px!important;font-weight:700!important;line-height:1.12!important}
.ik-faq-list summary{
  min-height:72px;
  padding:18px 0!important;
  font-size:16px!important;
  line-height:1.45;
  font-weight:700!important;
}
.ik-faq-list summary span{color:var(--ik-gold)!important;font-size:22px}
.ik-faq-list details>div{max-width:760px;padding:0 48px 24px 0;color:#c9c2b7}
.ik-faq-list details>div p{font-size:16px!important;line-height:1.72!important}

/* ---------- MEDIA / RELATED / CTA ---------- */
.ik-media-section,
.ik-related,
.ik-final-cta{padding:86px 0!important}
.ik-media-section .ik-content-shell,
.ik-related .ik-content-shell,
.ik-final-cta .ik-content-shell{width:var(--ik-shell);max-width:none}
.ik-media-section h2,
.ik-related h2,
.ik-final-cta h2{font-size:30px!important;font-weight:700!important}
.ik-gallery-grid{gap:14px!important}
.ik-gallery-grid figure{border:1px solid rgba(255,255,255,.12)}
.ik-cta-box{
  padding:38px!important;
  border:1px solid rgba(244,160,0,.34)!important;
  background:linear-gradient(120deg,#0b0b0b,#151109)!important;
  box-shadow:0 24px 70px rgba(0,0,0,.20);
}

/* ---------- CONTACT FORM ---------- */
.ik-cf7-wrap{
  max-width:1040px!important;
  margin-inline:auto;
  padding:34px!important;
  border:1px solid rgba(255,255,255,.11);
  background:linear-gradient(145deg,#0b0b0b,#11100e);
}
.ik-cf7-wrap input,
.ik-cf7-wrap select,
.ik-cf7-wrap textarea{
  border-color:rgba(255,255,255,.14)!important;
  background:#080808!important;
}
.ik-cf7-wrap input:focus,
.ik-cf7-wrap select:focus,
.ik-cf7-wrap textarea:focus{
  border-color:rgba(244,160,0,.65)!important;
  box-shadow:0 0 0 3px rgba(244,160,0,.08);
}

/* ---------- DESKTOP ---------- */
@media(min-width:901px){
  .ik-page-hero,
  .ik-single-hero{min-height:650px;display:flex;align-items:center}
  .ikaro-site:not(.home) .site-header{min-height:84px}
}

/* ---------- TABLET / MOBILE ---------- */
@media(max-width:900px){
  .ik-page-hero,
  .ik-single-hero,
  .ik-archive-hero{padding:126px 0 58px!important}
  .ik-page-hero-grid,
  .ik-single-hero-grid{grid-template-columns:1fr!important;gap:34px!important}
  .ik-page-hero h1,
  .ik-single-hero h1,
  .ik-archive-hero h1{font-size:clamp(44px,10vw,68px)!important}
  .ik-page-featured,
  .ik-single-hero figure{min-height:0!important;aspect-ratio:16/10}
  .ik-archive-hero{min-height:auto}
  .ik-archive-hero .ik-content-shell{padding-right:0}
  .ik-archive-hero .ik-content-shell::after{display:none}
  .ik-faq{grid-template-columns:1fr;gap:30px;padding:72px 0!important}
  .ik-faq .section-heading{position:static}
  .ik-faq .section-heading h2{max-width:620px}
}

@media(max-width:640px){
  :root{--ik-shell:calc(100vw - 36px)}
  .ikaro-site:not(.home) .site-header,
  .ikaro-site:not(.front-page) .site-header{background:rgba(5,5,5,.98)!important}
  .ik-page-hero,
  .ik-single-hero,
  .ik-archive-hero{padding:110px 0 44px!important}
  .ik-page-hero::after,
  .ik-single-hero::after,
  .ik-archive-hero::after{left:18px;top:94px;width:52px}
  .ik-page-hero h1,
  .ik-single-hero h1,
  .ik-archive-hero h1{font-size:clamp(40px,12vw,54px)!important;line-height:.98!important}
  .ik-page-lead,
  .ik-single-hero .ik-page-lead{font-size:18px!important}
  .ik-page-featured,
  .ik-single-hero figure{aspect-ratio:4/3}
  .ik-page-featured::before,
  .ik-single-hero figure::before{inset:8px -8px -8px 8px}
  .ik-page-body,
  .ik-longform,
  .ik-archive-body{padding:56px 0 72px!important}
  .ik-entry-content>p:first-child{font-size:18px!important;margin-bottom:38px}
  .ik-entry-content h2{margin-top:52px!important;padding-top:25px}
  .ikaro-site:not(.home) .ik-main h2{font-size:30px!important}
  .ikaro-site:not(.home) .ik-main h3{font-size:21px!important}
  .ikaro-site:not(.home) .ik-main p,
  .ikaro-site:not(.home) .ik-main li{font-size:16px}
  .ik-entry-content ul,
  .ik-entry-content ol{padding:20px 18px 20px 38px}
  .ik-fact-grid article{min-height:0}
  .ik-faq{width:var(--ik-shell);padding:62px 0!important}
  .ik-faq-list summary{min-height:66px;font-size:15px!important}
  .ik-faq-list details>div{padding-right:0}
  .ik-cf7-wrap{padding:22px!important}
}
