/* Homepage 2026 template styles (page-home-2026.php) */
/* Theme fonts, served from the WordPress theme */
@font-face {
  font-family: "DINWeb-Medium";
  src: url("../fonts/DINWeb-Medium.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Vista Light";
  src: url("../fonts/vista-light.woff") format("woff");
  font-display: swap;
}

:root {
  --orange: #f36c33;
  --orange-deep: #db3b2b;
  --navy: #222d38;
  --slate: #526d87;
  --gray-100: #f2f2f2;
  --gray-200: #e6e6e6;
  --gray-400: #b3b3b3;
  --gray-500: #91949d;
  --white: #ffffff;
  --font-head: "DINWeb-Medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-accent: "Vista Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

/* ---------- Hero slideshow ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--navy); color: var(--white); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide .bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.12);
}
.slide.active .bg { animation: kenburns 7s linear forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34, 45, 56, .55) 0%, rgba(34, 45, 56, 0) 30%, rgba(34, 45, 56, 0) 50%, rgba(34, 45, 56, .75) 100%);
}
.slide .caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 120px; }
.slide .caption h2, .slide .caption p { margin: 0; overflow: hidden; }
.slide .caption span { display: block; transform: translateY(110%); transition: transform .9s var(--ease); }
.slide.active .caption span { transform: translateY(0); }
.slide.active .caption p span { transition-delay: .15s; }
.slide .caption h2 { font-family: var(--font-head); font-weight: normal; font-size: clamp(34px, 6vw, 72px); line-height: 1.05; letter-spacing: -.01em; }
.slide .caption p { margin-top: 10px; font-size: clamp(14px, 1.6vw, 18px); letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.slide .caption a:hover h2 span { color: var(--orange); }
.caption .view {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  font-family: var(--font-head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px); transition: opacity .6s .35s, transform .6s .35s var(--ease);
}
.slide.active .caption .view { opacity: 1; transform: none; }
.view .arrow { width: 28px; height: 1px; background: currentColor; position: relative; transition: width .35s var(--ease); }
.view .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.view:hover .arrow { width: 44px; }

.hero-controls { position: absolute; z-index: 3; left: 0; right: 0; bottom: 48px; }
.hero-controls .wrap { display: flex; align-items: center; gap: 24px; }
.dots { display: flex; gap: 10px; flex: 1; }
.dot { flex: 0 1 64px; height: 3px; padding: 0; border: 0; background: rgba(255, 255, 255, .3); cursor: pointer; position: relative; overflow: hidden; }
.dot i { position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.dot.done i { transform: scaleX(1); }
.dot.active i { animation: progress var(--dur, 6s) linear forwards; }
.hero.paused .dot.active i { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }
.counter { font-family: var(--font-head); font-size: 14px; letter-spacing: .1em; }
.counter b { color: var(--orange); font-weight: normal; }
.arrows { display: flex; gap: 8px; }
.arrows button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5);
  background: transparent; color: var(--white); cursor: pointer; font-size: 18px;
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.arrows button:hover { background: var(--orange); border-color: var(--orange); transform: scale(1.06); }

.scroll-cue { position: absolute; z-index: 3; right: 32px; bottom: 140px; writing-mode: vertical-rl; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .8); display: flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ""; width: 1px; height: 56px; background: linear-gradient(var(--orange), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Intro ---------- */
.intro { padding: clamp(80px, 12vw, 160px) 0; text-align: center; }
.eyebrow { font-family: var(--font-head); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--orange); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--orange); }
.intro .lead { margin: 24px auto 0; max-width: 640px; font-size: 20px; color: var(--slate); }
.big-quote {
  margin: 18px auto 0; max-width: 980px;
  font-family: var(--font-accent); font-weight: normal; font-size: clamp(32px, 5vw, 60px); line-height: 1.15; color: var(--navy);
}
.big-quote .w { display: inline-block; opacity: 0; transform: translateY(.4em); transition: opacity .6s, transform .7s var(--ease); }
.big-quote.in .w { opacity: 1; transform: none; }
.big-quote .hl { position: relative; white-space: nowrap; }
.big-quote .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .12em; background: var(--orange); opacity: .85;
  transform: scaleX(0); transform-origin: left; transition: transform .9s 1s var(--ease);
}
.big-quote.in .hl::after { transform: scaleX(1); }
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 64px; text-align: left; }
.intro-cols p { margin: 0; font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px; overflow: hidden;
  padding: 16px 30px; background: var(--orange); color: var(--white); border: 0;
  font-family: var(--font-head); font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--navy); transform: translateX(-101%); transition: transform .45s var(--ease); z-index: -1; }
.btn:hover::before { transform: none; }
.btn:hover { box-shadow: 0 12px 28px -10px rgba(243, 108, 51, .6); transform: translateY(-2px); }
.btn .arrow { width: 18px; height: 1px; background: currentColor; position: relative; transition: width .35s var(--ease); }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.btn:hover .arrow { width: 28px; }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.btn.ghost::before { background: var(--orange); }
.btn.ghost:hover { color: var(--white); box-shadow: inset 0 0 0 1px var(--orange), 0 12px 28px -10px rgba(243, 108, 51, .6); }
.center { text-align: center; margin-top: 48px; }

/* ---------- Stats strip ---------- */
.stats { background: var(--navy); color: var(--white); padding: 56px 0; }
.stats .wrap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.stat { border-left: 2px solid var(--orange); padding-left: 20px; }
.stat strong { display: block; font-family: var(--font-head); font-weight: normal; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }
.stat span { display: block; margin-top: 8px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }

/* ---------- Feature cards ---------- */
.features { padding: clamp(80px, 10vw, 140px) 0; background: var(--gray-100); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head h2 { margin: 12px 0 0; font-family: var(--font-head); font-weight: normal; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--white); display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -28px rgba(34, 45, 56, .45); }
.card .media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .media img { transform: scale(1.07); }
.card .media::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.card:hover .media::after { transform: scaleX(1); }
.card .tag { position: absolute; top: 18px; left: 18px; z-index: 1; padding: 6px 12px; background: var(--white); font-family: var(--font-head); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); }
.card .body { padding: 28px; display: flex; flex-direction: column; gap: 22px; flex: 1; }
.card h3 { margin: 0; font-family: var(--font-head); font-weight: normal; font-size: 24px; }
.card p { margin: 0; flex: 1; }
.card .link { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.card .link .arrow { width: 22px; height: 1px; background: currentColor; position: relative; transition: width .35s var(--ease); }
.card .link .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
.card:hover .link .arrow { width: 40px; }

/* ---------- Careers ---------- */
.careers { display: grid; grid-template-columns: 1.6fr 1fr; min-height: 560px; }
.careers .media { position: relative; overflow: hidden; }
.careers .media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.careers .content { background: var(--orange); color: var(--white); padding: clamp(48px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; gap: 24px; position: relative; overflow: hidden; }
.careers .content::before {
  /* The W mark from the logo, in white (images/logo-w-white.svg) */
  content: ""; position: absolute; right: -50px; bottom: -50px;
  width: 400px; aspect-ratio: 440 / 344;
  background: url("../images/logo-w-white.svg") no-repeat center / contain;
  opacity: .12; pointer-events: none;
  animation: drift 12s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-20px, -16px) rotate(-4deg); } }
.careers .eyebrow { color: var(--white); }
.careers .eyebrow::before { background: var(--white); }
.careers h2 { margin: 0; font-family: var(--font-head); font-weight: normal; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
.careers p { margin: 0; font-size: 18px; max-width: 420px; }
.careers .btn { align-self: flex-start; background: var(--white); color: var(--orange); }
.careers .btn:hover { color: var(--white); }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: rgba(255, 255, 255, .75); padding: 64px 0 40px; }
footer .top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
footer .top img { height: 48px; width: auto; filter: brightness(0) invert(1); }
footer .cta { font-family: var(--font-accent); font-size: clamp(22px, 2.6vw, 30px); color: var(--white); }
footer .cta a { color: var(--orange); border-bottom: 1px solid transparent; transition: border-color .3s; }
footer .cta a:hover { border-color: var(--orange); }
footer .bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 14px; }
footer .legal { display: flex; flex-direction: column; gap: 4px; }
footer .legal a { align-self: flex-start; font-size: 12px; color: var(--white); border-bottom: 1px solid transparent; transition: color .3s, border-color .3s; }
footer .legal a:hover { color: var(--orange); border-color: var(--orange); }
.social { display: flex; gap: 12px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .25); transition: background-color .3s, border-color .3s, transform .35s var(--ease);
}
.social a:hover { background: var(--orange); border-color: var(--orange); transform: translateY(-4px); }
.social img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

/* ---------- Scroll reveal ---------- */
/* Hidden only when JS is running, so content stays visible without it */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .intro-cols, .cards, .careers { grid-template-columns: 1fr; }
  .careers .media { min-height: 320px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .stat:last-child { grid-column: 1 / -1; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
  .arrows { display: none; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .slide .caption { bottom: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .big-quote .w { opacity: 1; transform: none; }
  .slide .caption span { transform: none; }
  .slide .bg { transform: none; }
}
