/* Motion layer shared by the group company sites — scroll reveals, word-by-word headlines, image wipes,
   Ken Burns slides, drawn lines, marquee, floating contact button. Disabled for "reduce motion" users. */

/* scroll progress */
.progress { position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 60; transform-origin: right; transform: scaleX(0); background: var(--accent, #c99a2e); }

/* reveal on scroll */
[data-reveal] { opacity: 0; transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), clip-path 1.1s cubic-bezier(.7, 0, .2, 1); transition-delay: var(--d, 0s); will-change: opacity, transform; }
[data-reveal="up"] { transform: translateY(46px); }
[data-reveal="down"] { transform: translateY(-30px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal="clip"] { opacity: 1; clip-path: inset(0 0 0 100%); }
[data-reveal="clip-up"] { opacity: 1; clip-path: inset(100% 0 0 0); }
[data-reveal].in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

/* word-by-word headlines */
.words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.words .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 90ms + var(--d, 0s)); }
.words.in .w > span { transform: none; }

/* image wipe + slow zoom inside */
.wipe { position: relative; overflow: hidden; }
.wipe img { transform: scale(1.18); transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.wipe.in img { transform: scale(1); }
.wipe::after { content: ""; position: absolute; inset: 0; background: var(--wipe, #1f1c18); transform-origin: left; transition: transform 1.1s cubic-bezier(.7, 0, .2, 1); transition-delay: var(--d, 0s); }
.wipe.in::after { transform: scaleX(0); }

/* hero slides with Ken Burns */
.slides { position: absolute; inset: 0; overflow: hidden; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.6s ease, transform 9s linear; }
.slides img.on { opacity: 1; transform: scale(1); }
.slide-dots { position: absolute; z-index: 3; display: flex; gap: 8px; }
.slide-dots button { width: 34px; height: 3px; border: 0; padding: 0; background: rgba(255, 255, 255, .35); cursor: pointer; position: relative; overflow: hidden; }
.slide-dots button.on::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: right; animation: dotfill var(--slide, 6s) linear forwards; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.kenburns { animation: kb 18s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }

/* lines that draw themselves */
.draw path, .draw line, .draw polyline, .draw rect, .draw circle { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 2.4s cubic-bezier(.6, 0, .2, 1); transition-delay: var(--d, 0s); }
.draw.in path, .draw.in line, .draw.in polyline, .draw.in rect, .draw.in circle { stroke-dashoffset: 0; }

/* growing rule under section heads / progress lines */
.grow { transform: scaleX(0); transform-origin: right; transition: transform 1.4s cubic-bezier(.6, 0, .2, 1); }
.grow.in { transform: scaleX(1); }

/* infinite marquee */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee .track { display: inline-flex; animation: marq 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* scroll cue */
.scroll-cue { position: absolute; z-index: 3; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* floating contact button */
.fab { position: fixed; z-index: 55; left: 22px; bottom: 22px; display: flex; align-items: center; gap: 10px; padding: 0 20px 0 14px; height: 54px; border-radius: 27px;
  background: var(--fab, #1f1c18); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transform: translateY(120px); transition: transform .5s cubic-bezier(.2, .8, .2, 1), background .2s; }
.fab.show { transform: none; }
.fab .pulse { position: relative; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; }
.fab .pulse::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); animation: ring 2s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.fab svg { width: 16px; height: 16px; }

/* magnetic buttons */
.magnet { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }

/* count-up numbers */
[data-count] { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .words .w > span, .wipe img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .wipe::after { display: none; }
  .draw path, .draw line, .draw polyline, .draw rect, .draw circle { stroke-dashoffset: 0 !important; }
  .grow { transform: none !important; }
}

/* ═════════ shared components (polish) — colours come from each site's variables ═════════ */
[hidden] { display: none !important; }

/* buttons with a sliding arrow */
.btn { font-size: 16px !important; font-weight: 600 !important; padding: 15px 30px !important; display: inline-flex !important; align-items: center; gap: 10px; transition: background .25s, color .25s, border-color .25s, transform .25s !important; }
.btn::after { content: "←"; display: inline-block; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.btn:hover::after { transform: translateX(-6px); }
.btn.no-arrow::after { display: none; }

/* contact: big tiles + elevated form */
.c2 { position: relative; padding: clamp(70px, 10vw, 130px) clamp(16px, 5vw, 80px); background: var(--c2-bg); color: var(--c2-ink); overflow: hidden; }
.c2::before { content: ""; position: absolute; inset: 0; background: var(--c2-photo) center / cover no-repeat; opacity: .14; }
.c2-wrap { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 6vw, 90px); align-items: start; max-width: 1300px; margin: 0 auto; }
.c2 h2 { font-size: clamp(36px, 4.6vw, 60px); color: var(--c2-head); margin: 0 0 14px; }
.c2 .c2-lead { font-size: 19px; line-height: 1.9; opacity: .9; max-width: 520px; margin: 0 0 30px; }
.c2-tiles { display: grid; gap: 12px; }
.tile { display: flex; align-items: center; gap: 16px; padding: 18px 20px; text-decoration: none; color: inherit; background: var(--c2-tile); border: 1px solid var(--c2-line); transition: transform .3s, background .3s, border-color .3s; }
.tile:hover { transform: translateX(-6px); border-color: var(--c2-accent); }
.tile .ic { flex: 0 0 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--c2-accent); color: var(--c2-accent-ink, #fff); }
.tile .ic svg { width: 22px; height: 22px; }
.tile small { display: block; font-size: 13.5px; opacity: .7; }
.tile b { display: block; font-size: 19px; font-weight: 600; direction: ltr; text-align: right; }
.c2-addr { display: flex; gap: 10px; align-items: center; margin-top: 22px; font-size: 16px; opacity: .85; }
.c2-promise { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 15px; opacity: .85; }
.c2-promise::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 0 4px rgba(62, 207, 142, .2); }
.c2-form { background: var(--c2-card); color: var(--c2-card-ink); padding: clamp(24px, 3.5vw, 44px); box-shadow: 0 30px 80px rgba(0, 0, 0, .28); position: relative; }
.c2-form::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--c2-accent); }
.c2-form h3 { font-size: 24px; margin: 0 0 4px; color: var(--c2-card-ink); }
.c2-form .sub { margin: 0 0 22px; font-size: 15px; color: var(--c2-card-muted); }
.c2-form label { display: block; font-size: 15px !important; font-weight: 600; color: var(--c2-card-ink) !important; margin: 0 0 16px; }
.c2-form input, .c2-form select, .c2-form textarea { display: block; width: 100%; margin-top: 7px; padding: 14px 16px !important; font: inherit; font-size: 16.5px !important; color: var(--c2-card-ink); background: var(--c2-field) !important; border: 1px solid var(--c2-field-line) !important; border-radius: 0; transition: border-color .2s, box-shadow .2s, background .2s; }
.c2-form input:focus, .c2-form select:focus, .c2-form textarea:focus { outline: none !important; background: #fff !important; border-color: var(--c2-accent) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c2-accent) 18%, transparent); }
.c2-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.c2-form button { width: 100%; justify-content: center; margin-top: 6px; }
.c2-form .note { margin: 14px 0 0; font-size: 13.5px; color: var(--c2-card-muted); text-align: center; }

/* footer */
.f2 { background: var(--f2-bg); color: var(--f2-ink); padding: 70px clamp(16px, 5vw, 80px) 26px; }
.f2-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; max-width: 1300px; margin: 0 auto; padding-bottom: 40px; border-bottom: 1px solid var(--f2-line); }
.f2-brand .brand { color: var(--f2-head); }
.f2-brand p { margin: 16px 0 0; font-size: 15.5px; line-height: 1.9; opacity: .8; max-width: 340px; }
.f2 h4 { font-size: 16px; color: var(--f2-head); margin: 0 0 16px; font-weight: 700; }
.f2 ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15.5px; }
.f2 a { color: inherit; text-decoration: none; opacity: .85; transition: opacity .2s, color .2s; }
.f2 a:hover { opacity: 1; color: var(--f2-accent); }
.f2-bottom { max-width: 1300px; margin: 22px auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; opacity: .75; }
.f2-social { display: flex; gap: 8px; }
.f2-social a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--f2-line); opacity: 1; font-size: 12px; font-weight: 700; }
.f2-social a:hover { background: var(--f2-accent); border-color: var(--f2-accent); color: #fff; }

/* big outlined section numbers */
.ghost-num { position: absolute; top: 30px; left: clamp(16px, 4vw, 60px); font-family: "Changa", sans-serif; font-weight: 800; font-size: clamp(90px, 14vw, 220px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--ghost, rgba(0, 0, 0, .09)); pointer-events: none; user-select: none; }

/* subtle paper grain on light sections */
.grain { position: relative; }
.grain::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 0 0.35 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

@media (max-width: 960px) {
  .c2-wrap { grid-template-columns: 1fr; }
  .f2-top { grid-template-columns: 1fr 1fr; }
  .ghost-num { font-size: 90px; }
}
@media (max-width: 560px) { .f2-top { grid-template-columns: 1fr; } .c2-form .row2 { grid-template-columns: 1fr; } }
.c2-form .row2 > * { min-width: 0; }

/* careers page (careers.html): the contact layout, opened up for a job form */
.c2.jobs h1 { font-size: clamp(36px, 4.6vw, 60px); color: var(--c2-head); margin: 0 0 14px; }
.c2.jobs { padding-top: clamp(120px, 14vw, 170px); min-height: 100vh; }
.c2-perks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.c2-perks li { display: flex; gap: 12px; align-items: center; font-size: 17px; }
.c2-perks svg { width: 26px; height: 26px; flex: 0 0 26px; padding: 4px; border-radius: 50%; background: var(--c2-accent); color: #fff; }
.c2-form input[type="file"] { padding: 11px 12px !important; font-size: 14.5px !important; cursor: pointer; }
.c2-form .hint { margin: -8px 0 14px; font-size: 13.5px; color: var(--c2-card-muted); }
.c2-form .form-error { display: none; margin: -6px 0 14px; color: #c0392b; font-size: 14px; font-weight: 600; }
