html { scroll-behavior: smooth; scroll-padding-top: 6rem; background: rgb(var(--color-ink)); }
body { background: rgb(var(--color-ink)); color: rgb(255 255 255 / .72); font-family: Poppins, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }
.fluid-h1 { font-size: clamp(2.25rem, 1.2rem + 5vw, 5rem); line-height: 1.05; }
.fluid-h2 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem); line-height: 1.15; }
.text-grad { background: linear-gradient(90deg, rgb(var(--color-accent)), #ffb08f); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Floating nav */
#nav { transition: background .3s, border-color .3s; }
#nav.is-scrolled { background: rgb(var(--color-surface)); border-color: rgb(255 255 255 / .14); }
.nav-link { color: rgb(255 255 255 / .7); transition: color .2s; }
.nav-link:hover, .nav-link.active { color: rgb(var(--color-accent)); }
.tab-link { color: rgb(255 255 255 / .7); transition: color .2s, background-color .2s; }
.tab-link.active { color: rgb(var(--color-accent)); background: rgb(var(--color-accent) / .15); }

/* Hero */
.hero {
    background:
            radial-gradient(60% 50% at 50% 0%, rgb(var(--color-accent) / .35), transparent 70%),
            linear-gradient(rgb(11 11 15 / .82), rgb(11 11 15 / .96)),
            url('../img/header.webp') center / cover no-repeat;
}

/* Keyword ticker */
.marquee { animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Card spotlight */
.spot { position: relative; overflow: hidden; transition: border-color .3s, transform .3s; }
.spot:hover { border-color: rgb(var(--color-accent) / .5); transform: translateY(-4px); }
html.js .spot:hover { transform: translateY(-4px); }
.spot::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(700px circle at var(--x, 50%) var(--y, 0%), rgb(var(--color-accent) / .28), transparent 50%);
}
.spot:hover::before { opacity: 1; }
.spot > :not(.absolute) { position: relative; }

/* Scroll reveal (only hides when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Placeholder thumbnail for Work cards */
.thumb-ph { background: repeating-linear-gradient(45deg, rgb(255 255 255 / .04) 0 10px, transparent 10px 20px); }

/* Our Story image background */
.has-img-bg { position: relative; background: url('../img/section.jpg') center / cover no-repeat; }
.has-img-bg::after { content: ''; position: absolute; inset: 0; background: rgb(11 11 15 / .86); }
.has-img-bg > * { position: relative; z-index: 1; }
@media (hover: hover) and (min-width: 1024px) { .has-img-bg { background-attachment: fixed; } }

/* Form fields */
.field { width: 100%; border: 1px solid rgb(255 255 255 / .12); background: rgb(255 255 255 / .04); border-radius: .75rem; padding: .8rem 1rem; color: #fff; outline: none; transition: border-color .2s; }
.field::placeholder { color: rgb(255 255 255 / .4); }
.field:focus { border-color: rgb(var(--color-accent)); }
.field option { color: #111; }

* { scrollbar-width: thin; scrollbar-color: rgb(var(--color-accent)) transparent; }

@media (prefers-reduced-motion: reduce) {
    .marquee { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* Gives any photo a consistent moody tone */
.img-themed { filter: saturate(.85) contrast(1.05) brightness(.92); transition: filter .3s; }
.img-themed:hover { filter: none; }

/* Faint logo watermark behind the hero headline */
.hero::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: min(80vw, 720px); aspect-ratio: 1;
  transform: translate(-50%, -50%); pointer-events: none; opacity: .07;
  background: url('../img/logo.webp') center / contain no-repeat;
}

/* Custom dropdown */
.dd { position: relative; }
.dd-btn { display: flex; align-items: center; justify-content: space-between; gap: .75rem; text-align: left; cursor: pointer; color: rgb(255 255 255 / .4); }
.dd-btn.has-value { color: #fff; }
.dd.open .dd-btn { border-color: rgb(var(--color-gold)); }
.dd-chev { transition: transform .2s; color: rgb(var(--color-gold)); }
.dd.open .dd-chev { transform: rotate(180deg); }
.dd-list { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: 15rem; overflow: auto; padding: .35rem; list-style: none; border: 1px solid rgb(var(--color-gold) / .5); border-radius: .75rem; background: rgb(var(--color-surface)); box-shadow: 0 20px 40px rgb(0 0 0 / .5); }
.dd.open .dd-list { display: block; }
.dd-list button { width: 100%; text-align: left; padding: .6rem .75rem; border-radius: .5rem; color: rgb(255 255 255 / .8); font-size: .9rem; }
.dd-list button:hover, .dd-list button:focus-visible { background: rgb(var(--color-accent) / .16); color: #fff; outline: none; }
.dd-list button.selected { color: rgb(var(--color-gold)); font-weight: 600; }

/* Grid-line texture in the hero */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / .04) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent);
}
