/* Home page layout. Depends on tokens.css and components.css. */
.sec { padding: var(--s-3) 0; }
.sec--gap { padding-top: var(--s-6); }
.sec__head { display: grid; gap: 14px; margin-bottom: var(--s-4); max-width: 720px; }
.sec__head p { color: var(--text-2); }

/* Hero: video inside a rounded frame */
.hero { padding: 12px; height: 100svh; min-height: 620px; }
.hero__frame {
  position: relative; height: 100%; border-radius: var(--r); overflow: hidden;
  background: var(--bg-2);
}
.hero__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.35) contrast(1.05) brightness(.95); transform: scale(1.04); }
.hero__tint { position: absolute; inset: 0; background: #5E7A7E; mix-blend-mode: color; opacity: .65; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 40, 42, .35) 0%, rgba(30, 40, 42, 0) 30%, rgba(30, 40, 42, .15) 55%, rgba(26, 34, 36, .82) 100%); }
.hero__body {
  position: absolute; left: 0; right: 0; bottom: clamp(36px, 8vh, 88px);
  display: grid; justify-items: center; gap: 22px; text-align: center; padding: 0 var(--gutter);
}
.hero h1 {
  font-size: var(--fs-hero); text-transform: uppercase; font-weight: 600;
  letter-spacing: .01em; word-spacing: .14em; line-height: 1.08; text-shadow: 0 10px 40px rgba(0, 0, 0, .25);
}
.hero__sub { max-width: 52ch; color: var(--text-2); font-size: clamp(.9rem, 1.2vw, 1.05rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__meta {
  position: absolute; left: 24px; bottom: 24px; display: flex; gap: 8px;
}
.hero__meta .chip { background: rgba(255, 255, 255, .08); }
.hero__pause { position: absolute; right: 24px; bottom: 24px; cursor: pointer; background: rgba(38, 48, 47, .6); }
@media (max-width: 767px) { .hero__pause { right: 16px; bottom: 16px; padding: 7px 12px; } }
@media (max-width: 767px) { .hero__meta { display: none; } .hero__v { object-position: 72% center; } }

/* Split layout used by About, Divisions, Permits */
.split { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); min-height: 720px; } }
.split__text { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.split__text .t { text-align: center; display: grid; gap: 14px; justify-items: center; }
.split__text .t p { color: var(--text-2); max-width: 40ch; }
.split__visual {
  position: relative; border-radius: var(--r); overflow: hidden; min-height: 460px;
  background: radial-gradient(120% 90% at 50% 40%, #A9BABD 0%, #7F9396 55%, #5E6F72 100%);
}

/* Two ways we work */
.paths { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .paths { grid-template-columns: 1fr 1fr; } }
.path { position: relative; display: block; min-height: clamp(440px, 72vh, 720px); border-radius: var(--r); overflow: hidden; background: var(--panel); isolation: isolate; }
.path__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); z-index: -2; }
.path__media--zoom { animation: path-zoom 24s ease-in-out infinite alternate; }
@keyframes path-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.path:hover .path__media { transform: scale(1.06); }
.path__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26, 34, 36, .1) 30%, rgba(26, 34, 36, .88) 100%); }
.path__body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(24px, 4vw, 44px); display: grid; gap: 14px; justify-items: start; }
.path__body h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); text-transform: uppercase; letter-spacing: -.03em; }
.path__body p { color: var(--text-2); max-width: 40ch; }
.path__body .btn { margin-top: 6px; }

/* Page hero for Film & Cinema and Industrial pages */
.phero { padding: 12px; height: 88svh; min-height: 560px; }
.phero__frame { position: relative; height: 100%; border-radius: var(--r); overflow: hidden; background: var(--panel-2); }
.phero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 34, 36, .3) 0%, rgba(26, 34, 36, 0) 35%, rgba(26, 34, 36, .85) 100%); }
.phero__body { position: absolute; left: 0; right: 0; bottom: clamp(32px, 7vh, 72px); padding: 0 clamp(20px, 4vw, 56px); display: grid; gap: 18px; justify-items: start; }
.phero h1 { font-size: var(--fs-hero); text-transform: uppercase; font-weight: 600; letter-spacing: .01em; word-spacing: .14em; line-height: 1.08; }
.phero__body p { color: var(--text-2); max-width: 52ch; }
.intro { padding: clamp(32px, 5vw, 64px); display: grid; gap: 18px; justify-items: center; text-align: center; }
.intro p { color: var(--text-2); max-width: 60ch; }

/* About */
.about__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: blur(1.8px); animation: about-drift 30s ease-in-out infinite alternate; }
@keyframes about-drift { from { transform: scale(1.02); } to { transform: scale(1.08); } }
.about .split__visual { background: radial-gradient(110% 90% at 50% 45%, #33403F 0%, #1C2324 70%); }
.about .stats { margin-top: auto; padding-top: var(--s-4); }
.about .btn { align-self: center; margin-top: var(--s-4); }
.globe { position: absolute; inset: 0; }
.globe canvas { width: 100% !important; height: 100% !important; }
.globe__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.globe__cap {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: min(460px, calc(100% - 32px)); padding: 18px 22px; text-align: center;
  font-size: var(--fs-small); color: var(--text);
  background: rgba(38, 48, 47, .78);
}

.globe__cap-t { display: block; font-family: var(--font-h); font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }

/* Divisions: every item shows its explanation; the selected item is white, the rest grey */
.divs .acc__body { grid-template-rows: 1fr; }
.divs .acc__body > div { visibility: visible; }
.divs .acc__head { padding-bottom: 8px; }
.divs .acc__inner { padding-bottom: 20px; }
.divs .acc__inner p { color: rgba(255, 255, 255, .58); transition: color .35s var(--ease); }
.divs .acc__item.is-open .acc__inner p { color: var(--text-2); }
.divs .acc { margin-top: var(--s-4); }
.stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.stage__img.is-out { opacity: 0; transform: scale(1.04); }
.stage__grade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(47, 58, 60, 0) 50%, rgba(38, 48, 47, .65) 100%); pointer-events: none; }
.stage__hots .hot { transition: opacity .4s var(--ease); }
.stage__name {
  position: absolute; left: 28px; bottom: 24px; font-family: var(--font-h); font-weight: 600;
  font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.03em; text-transform: uppercase; opacity: .92;
}

/* Inside the aircraft */
.parts { list-style: none; margin: var(--s-4) 0 0; padding: 0; border-top: 1px solid var(--line); }
.parts li { border-bottom: 1px solid var(--line); }
.parts__btn { width: 100%; display: flex; gap: 18px; align-items: flex-start; padding: 20px 4px; text-align: left; }
.parts__n { font-size: var(--fs-label); letter-spacing: .14em; color: var(--text-3); padding-top: 5px; }
.parts__btn b { display: block; font-family: var(--font-h); font-size: var(--fs-h3); font-weight: 500; color: rgba(255, 255, 255, .58); transition: color .35s var(--ease); }
.parts__btn small { display: block; margin-top: 4px; font-size: var(--fs-small); color: rgba(255, 255, 255, .58); }
.parts__btn:hover b, .parts__btn.is-on b { color: var(--text); }
.parts__btn.is-on small { color: var(--text-2); }
.parts__btn.is-on .parts__n { color: var(--accent); }
.anatomy__visual { background: #1E1F20; }
/* The image box always covers the frame (like object-fit: cover), so hotspots stay on their parts */
.anatomy__visual { overflow: hidden; container-type: size; }
.anatomy__box {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: max(100cqw, 80cqh); aspect-ratio: 1080 / 1350;
}
.anatomy__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* While the video plays, labels wait; motion.js adds and removes .is-playing */
.anatomy__box.is-playing .hot { opacity: 0 !important; }
.anatomy .hot { opacity: .45; transition: opacity .4s var(--ease); }
.anatomy .hot .hot__tag { opacity: 0; transform: translateY(4px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.anatomy .hot.is-on { opacity: 1; }
.anatomy .hot.is-on .hot__tag { opacity: 1; transform: none; }
@media (max-width: 640px) { .anatomy .hot__tag { font-size: 11px; padding: 6px 10px; } }

/* Featured work: YouTube references */
.sec__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.sec__head--row > div { display: grid; gap: 14px; max-width: 640px; }
.sec__head--row p { color: var(--text-2); }
.yts { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .yts { grid-template-columns: 1fr 1fr; } .yt--big { grid-column: span 2; } }
@media (min-width: 1100px) { .yts { grid-template-columns: repeat(4, 1fr); } .yt--big { grid-column: span 2; grid-row: span 2; } }
.yt { padding: 10px 10px 20px; display: flex; flex-direction: column; gap: 14px; transition: transform .5s var(--ease); }
.yt:hover { transform: translateY(-6px); }
.yt__img { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-s); overflow: hidden; background: var(--panel-2); }
.yt--big .yt__img { flex: 1; aspect-ratio: auto; min-height: 240px; }
.yt__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.yt:hover .yt__img img { transform: scale(1.05); }

.yt__play {
  position: absolute; left: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: var(--accent); box-shadow: 0 8px 24px -6px rgba(242, 107, 42, .6);
}
.yt--big .yt__play { width: 56px; height: 56px; border-radius: 16px; left: 20px; bottom: 20px; }
.yt__play svg { width: 14px; height: 14px; }
.yt__body { padding: 0 10px; display: grid; gap: 8px; }
.yt__body h3 { font-size: 1.05rem; line-height: 1.3; }
.yt--big .yt__body h3 { font-size: var(--fs-h3); }
.ytm { padding: 0; border: 0; background: transparent; width: min(1100px, 92vw); max-width: none; overflow: visible; }
.ytm::backdrop { background: rgba(14, 19, 20, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ytm__frame { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.ytm__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.ytm__close { position: absolute; top: -52px; right: 0; width: 40px; height: 40px; border-radius: 12px; background: var(--glass-2); border: 1px solid var(--glass-line); color: #fff; font-size: 16px; }

/* Permits */
.permits .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: var(--s-4); }
.permits .btn { align-self: center; margin-top: auto; }
.permits .split__visual { filter: saturate(.45); }
.permits video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Clients: two logo rows that drift in opposite directions */
.sec__head--center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
.logos { display: grid; gap: 12px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos__row { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content; animation: logos-drift 60s linear infinite; }
.logos__row--rev { animation-direction: reverse; }
.logos:hover .logos__row { animation-play-state: paused; }
.logos__row li {
  width: 240px; height: 124px; flex: none; display: grid; place-items: center; padding: 22px 28px;
  border-radius: var(--r-s); background: rgba(47, 58, 60, .6); border: 1px solid rgba(255, 255, 255, .06);
}
.logos__row img { max-width: 100%; max-height: 64px; width: auto; height: auto; opacity: .85; transition: opacity .3s; }
.logos__row li:hover img { opacity: 1; }
@keyframes logos-drift { to { transform: translateX(calc(-50% - 6px)); } }
@media (prefers-reduced-motion: reduce) {
  .logos { -webkit-mask-image: none; mask-image: none; }
  .logos__row { width: auto; flex-wrap: wrap; justify-content: center; padding: 0 var(--gutter); }
  .logos__row li[aria-hidden="true"] { display: none; }
}

/* Contact */
.contact { padding: clamp(36px, 6vw, 80px); display: grid; gap: 28px; justify-items: center; text-align: center; }
.contact h2 { max-width: 16ch; }
.contact__lines { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Film & Cinema page: visual grids */
.cgrid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
@media (min-width: 900px) { .cgrid--credits { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; } }
@media (min-width: 900px) { .cgrid--events { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 260px; } .cgrid--events .ctile:nth-child(-n+3) { grid-column: span 2; } .cgrid--events .ctile:nth-child(n+4) { grid-column: span 3; } }
@media (min-width: 900px) { .cgrid--estate { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 320px; } }
.ctile { position: relative; margin: 0; border-radius: var(--r-s); overflow: hidden; background: var(--panel-2); min-height: 200px; }
@media (min-width: 900px) { .cgrid--credits .ctile--tall { grid-row: span 2; } .cgrid--credits .ctile--wide { grid-column: span 2; } }
.ctile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ctile:hover img { transform: scale(1.05); }
.ctile__tag {
  position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 7px 12px; border-radius: 10px;
  font-size: var(--fs-small); color: var(--text); background: rgba(38, 48, 47, .7);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--glass-line);
}
.showreel { position: relative; display: block; height: clamp(360px, 60vh, 620px); overflow: hidden; padding: 0; }
.showreel__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showreel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26, 34, 36, .1), rgba(26, 34, 36, .75)); }
.showreel__body { position: absolute; left: clamp(20px, 4vw, 44px); bottom: clamp(20px, 4vw, 44px); display: grid; gap: 14px; justify-items: start; }
.showreel__body h3 { font-size: clamp(2rem, 4.6vw, 4rem); text-transform: uppercase; letter-spacing: -.03em; }
.showreel .yt__play { position: static; width: 64px; height: 64px; border-radius: 18px; }
.showreel .yt__play svg { width: 18px; height: 18px; }

/* Industrial page */
.split__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.icards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .icards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .icards--5 { grid-template-columns: repeat(5, 1fr); } }
.icard { padding: 10px 10px 20px; display: grid; gap: 14px; align-content: start; }
.icard__img { aspect-ratio: 4 / 3; border-radius: var(--r-s); overflow: hidden; background: var(--panel-2); display: grid; place-items: center; }
.icard__img--light { background: #EEF1F1; }
.icard__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.icard__body { padding: 0 10px; display: grid; gap: 8px; }
.icard__body h3 { font-size: 1.05rem; line-height: 1.3; }
.tools { list-style: none; margin: var(--s-4) 0 0; padding: 0; border-top: 1px solid var(--line); }
.tools li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.tools b { font-family: var(--font-h); font-size: var(--fs-h3); font-weight: 500; }
.tools span { color: var(--text-2); font-size: var(--fs-small); }
.compare { padding: 8px; overflow: hidden; }
.compare__row { display: grid; grid-template-columns: 1fr 1fr; }
.compare__row span { padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
.compare__row span:first-child { color: var(--text-2); border-right: 1px solid var(--line); }
.compare__row span:last-child { color: var(--text); font-weight: 500; }
.compare__row:last-child span { border-bottom: 0; }
.compare__row--head span { font-family: var(--font-h); font-size: 1.05rem; font-weight: 600; color: var(--text) !important; }
.compare__row--head span:last-child { color: var(--accent) !important; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { position: relative; padding: 24px 20px; border-radius: var(--r-s); background: var(--panel); border: 1px solid rgba(255, 255, 255, .05); display: grid; gap: 10px; align-content: start; }
.steps__n { font-size: var(--fs-label); letter-spacing: .14em; color: var(--accent); }
.steps b { font-family: var(--font-h); font-size: 1.1rem; font-weight: 500; line-height: 1.25; }
.steps small { color: var(--text-2); font-size: var(--fs-small); }
.whys { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.why { position: relative; overflow: hidden; isolation: isolate; padding: clamp(24px, 3vw, 40px); display: grid; gap: 8px; align-content: end; min-height: 240px; }
.why__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.5) brightness(.7); transition: transform 1.2s var(--ease); }
.why::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26, 34, 36, .25), rgba(26, 34, 36, .9)); }
.why:hover .why__bg { transform: scale(1.06); }
.why__ic { width: 44px; height: 44px; color: var(--accent); margin-bottom: auto; }
.why__ic svg { width: 100%; height: 100%; }
.why-intro { position: relative; overflow: hidden; isolation: isolate; }
.why-intro .why__bg { filter: saturate(.4) brightness(.45); }
.why-intro::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(47, 58, 60, .85), rgba(47, 58, 60, .55)); }
.why b { font-family: var(--font-h); font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: -.02em; }
.why span { color: var(--text-2); }

/* Phone fixes */
@media (max-width: 640px) {
  .sec--gap { padding-top: var(--s-5); }
  .path__shade { background: linear-gradient(180deg, rgba(26, 34, 36, .2) 15%, rgba(26, 34, 36, .94) 75%); }
  .ctile__tag { font-size: 11px; padding: 5px 9px; left: 8px; bottom: 8px; max-width: calc(100% - 16px); }
  .why { min-height: 180px; padding: 20px; }
  .why b { font-size: 1.35rem; }
  .why__ic { width: 34px; height: 34px; }
  .compare__row span { padding: 14px 12px; }
}

/* Contact form (Wix Forms) */
.cform { width: min(640px, 100%); display: grid; gap: 14px; text-align: left; }
.cform__row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cform__row { grid-template-columns: 1fr 1fr; } }
.cform__f { display: grid; gap: 6px; }
.cform__f span { font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.cform input, .cform textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--r-s); border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, .06); color: var(--text); font: inherit; font-size: 16px; resize: vertical;
}
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.cform [aria-invalid="true"] { border-color: var(--accent); }
.cform__err { font-style: normal; font-size: var(--fs-small); color: var(--accent-2); min-height: 0; }
.cform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.cform__status { color: var(--text-2); font-size: var(--fs-small); }
.cform button[disabled] { opacity: .6; cursor: wait; }
