/* Shared look for every page: same language as the home page story. */
:root {
    --ink: #1d1d1f;
    --soft: #f5f5f7;
    --dim: #a1a1a6;
    --muted: #6e6e73;
    --line: #d2d2d7;
    --brand: #774389;
    --brand-dark: #5d3370;
    --grad: linear-gradient(90deg, #ff5a7e, #c58bf0);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --gutter: max(24px, calc((100vw - 1100px) / 2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #000; scroll-padding-top: 110px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif; font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Top bar ---- */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 22px; height: 52px; padding: 0 var(--gutter); background: rgba(10, 8, 12, .86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); color: #fff; font-size: 13.5px; }
.nav-brand { display: flex; align-items: center; gap: 9px; margin-right: auto; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.nav-mark { width: 26px; height: 26px; border-radius: 6px; background: url(img/logo.png) left center / auto 100% no-repeat; }
.nav-links { display: flex; align-self: stretch; gap: 22px; }
.nav-item { display: flex; align-items: center; }
.nav-top { color: rgba(255, 255, 255, .78); transition: color .2s; }
.nav-top:hover, .nav-item:hover > .nav-top, .nav-top.on { color: #fff; }
.nav-panel { position: absolute; top: 52px; left: 0; right: 0; display: flex; gap: 72px; padding: 30px var(--gutter) 38px; background: rgba(14, 12, 16, .98); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.nav-item:hover > .nav-panel, .nav-item:focus-within > .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-panel h4 { margin-bottom: 10px; font-size: 12px; font-weight: 500; color: var(--dim); }
.nav-panel a { display: block; padding: 5px 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: #f5f5f7; transition: color .15s; }
.nav-panel a:hover { color: #d3aee0; }
.nav-cta { flex: 0 0 auto; padding: 5px 14px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; font-size: 13px; }
.nav-toggle { display: none; width: 36px; height: 36px; margin-right: -8px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.nav-toggle span, .nav-toggle span:before, .nav-toggle span:after { content: ''; display: block; width: 20px; height: 2px; margin: 0 auto; border-radius: 2px; background: currentColor; transition: transform .2s; }
.nav-toggle span { position: relative; }
.nav-toggle span:before { position: absolute; top: -6px; }
.nav-toggle span:after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span:before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span:after { top: 0; transform: rotate(-45deg); }
.nav-sheet { display: none; position: fixed; z-index: 49; top: 52px; right: 0; bottom: 0; left: 0; overflow-y: auto; padding: 12px 24px 48px; background: #0a080c; color: #f5f5f7; }
.nav-sheet h4 { margin: 22px 0 6px; font-size: 12px; font-weight: 500; color: var(--dim); }
.nav-sheet a { display: block; padding: 8px 0; font-size: 22px; font-weight: 600; letter-spacing: -.015em; }
.nav-sheet .sub a { font-size: 17px; font-weight: 500; padding: 6px 0; }
.nav-open .nav-sheet { display: block; }
.nav-open { overflow: hidden; }
@media (max-width: 980px) {
    .nav { gap: 14px; }
    .nav-links { display: none; }
    .nav-toggle { display: block; }
}

/* ---- Page parts ---- */
main.page { padding-top: 52px; background: #000; }
.subnav { position: sticky; z-index: 40; top: 52px; background: rgba(22, 22, 23, .88); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.subnav ul { display: flex; justify-content: safe center; gap: 18px; overflow-x: auto; padding: 0 24px; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 11px 0; white-space: nowrap; font-size: 13px; color: rgba(255, 255, 255, .7); border-bottom: 2px solid transparent; transition: color .15s; }
.subnav a:hover { color: #fff; }
.subnav a.on { color: #fff; font-weight: 600; border-bottom-color: #c58bf0; }

.hero { padding: 76px 24px 48px; background: #000; color: #f5f5f7; text-align: center; }
.hero h1 { max-width: 19ch; margin: 0 auto; font-size: clamp(38px, 5.6vw, 72px); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.eyebrow { margin-bottom: 14px; font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; color: #ff7d99; }
.hero .lead { max-width: 740px; margin: 20px auto 0; font-size: clamp(18px, 1.7vw, 22px); font-weight: 500; line-height: 1.4; letter-spacing: -.01em; color: var(--dim); }
.hero-media { padding: 0 24px 76px; background: #000; text-align: center; overflow: hidden; }
.hero-media a { display: inline-block; cursor: zoom-in; }
.hero-media img { display: block; margin: 0 auto; height: auto; max-height: 74vh; width: auto; border-radius: 18px; will-change: transform; }
.hero-media figcaption { margin-top: 14px; font-size: 14px; color: #86868b; }

.band { padding: 84px 0; background: #fff; }
.band.soft { background: var(--soft); }
.band.dark { background: #000; color: #f5f5f7; }
.wrap { max-width: 1148px; margin: 0 auto; padding: 0 24px; }
.band h2 { font-size: clamp(30px, 3.9vw, 50px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.band-head { max-width: 760px; margin-bottom: 44px; }
.band-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.band-head p { margin-top: 14px; font-size: 19px; line-height: 1.45; color: var(--muted); }
.band.dark .band-head p { color: var(--dim); }
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: start; }
.prose p { font-size: 18px; line-height: 1.55; color: #424245; }
.prose p + p { margin-top: 16px; }
.prose h3 { margin: 30px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.prose h3:first-child { margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 20px; margin-top: 44px; }
.card { padding: 28px; border-radius: 20px; background: var(--soft); }
.band.soft .card { background: #fff; }
.card h3 { margin-bottom: 12px; font-size: 21px; font-weight: 600; letter-spacing: -.015em; }
.card p { font-size: 16.5px; line-height: 1.5; color: #424245; }
.checks li { position: relative; padding: 6px 0 6px 28px; font-size: 16.5px; line-height: 1.4; }
.checks li:before { content: ''; position: absolute; top: 12px; left: 2px; width: 13px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

/* ---- Photo tiles and viewer ---- */
.tiles { --row: 290px; display: flex; flex-wrap: wrap; gap: 18px; }
.tiles::after { content: ""; flex: 99 1 0; }
.tile { display: flex; flex-direction: column; flex: var(--r) 1 calc(var(--r) * var(--row)); min-width: 0; overflow: hidden; border-radius: 18px; background: #fff; cursor: zoom-in; transition: transform .35s var(--ease), box-shadow .35s; }
.band:not(.soft) .tile { background: var(--soft); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, .1); }
.tile img { display: block; width: 100%; height: auto; aspect-ratio: var(--r, 4 / 3); object-fit: cover; background: #e9e9ee; }
.band.black { background: #000; color: #f5f5f7; }
.band.black .tile, .band.black .tile-group, .band.black .tile img, .band.black .tile-group img { background: #000; }
.band.black .tile:hover { transform: none; box-shadow: none; }
.band.black .tile span { color: #d6d6db; font-weight: 500; text-align: center; }
.band.black .tile-group h3 { color: #f5f5f7; }
.tile span { display: block; padding: 14px 16px 18px; font-size: 15.5px; font-weight: 600; line-height: 1.35; letter-spacing: -.005em; }
.tile-group { flex: 1 1 100%; padding: 16px; border-radius: 18px; background: #fff; }
.band:not(.soft) .tile-group { background: var(--soft); }
.tile-group h3 { padding: 2px 2px 14px; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.tile-group div { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tile-group a { display: block; flex: var(--r) 1 calc(var(--r) * 300px); max-width: calc(var(--r) * 440px); min-width: 0; overflow: hidden; border-radius: 12px; cursor: zoom-in; }
.tile-group img { display: block; width: 100%; height: auto; aspect-ratio: var(--r, 4 / 3); object-fit: cover; background: #e9e9ee; }
.viewer { position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 56px 72px 28px; background: rgba(0, 0, 0, .94); color: #f5f5f7; }
.viewer img { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 10px; }
.viewer p { font-size: 15px; font-weight: 500; text-align: center; }
.viewer button { position: absolute; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font: 400 24px/44px Arial, sans-serif; cursor: pointer; }
.viewer button:hover { background: rgba(255, 255, 255, .26); }
.viewer .close { top: 14px; right: 14px; }
.viewer .prev { left: 14px; top: 50%; margin-top: -22px; }
.viewer .next { right: 14px; top: 50%; margin-top: -22px; }

/* ---- About and infrastructure ---- */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 8px; }
.timeline li { padding-top: 18px; border-top: 2px solid #3a3a3c; }
.timeline strong { display: block; margin-bottom: 8px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.timeline span { display: block; font-size: 15px; line-height: 1.4; color: #d2d2d7; }
.bars { max-width: 760px; }
.bars li { display: grid; grid-template-columns: 76px 1fr 56px; align-items: center; gap: 14px; padding: 9px 0; font-size: 15.5px; }
.bars i { display: block; height: 10px; border-radius: 5px; background: #e4e4e9; overflow: hidden; }
.bars b { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--brand); transition: width 1.2s var(--ease) .15s; }
.bars.in b, .no-motion .bars b { width: var(--v); }
.bars em { font-style: normal; font-weight: 600; text-align: right; }
.bignum { font-size: clamp(64px, 11vw, 148px); font-weight: 700; line-height: 1; letter-spacing: -.045em; }
.pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 20px; }
.pairs li { padding: 26px; border-radius: 20px; background: #fff; }
.pairs small { display: block; margin-bottom: 8px; font-size: 14.5px; color: var(--muted); }
.pairs strong { display: block; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.pairs strong:before { content: '\2192\00a0'; color: var(--brand); }
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.photo-row figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; }
.photo-row figcaption { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.modules { display: flex; flex-wrap: wrap; gap: 10px; }
.modules li { padding: 9px 16px; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 500; }

.usps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.usps li { padding: 24px; border-radius: 18px; background: #fff; }
.usps h3 { margin-bottom: 8px; font-size: 18px; font-weight: 600; letter-spacing: -.012em; }
.usps p { font-size: 15px; line-height: 1.45; color: var(--muted); }
.awards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.awards .card { background: #fff; }
.awards .logo-box { display: flex; align-items: center; height: 76px; margin-bottom: 14px; }
.awards .logo-box img { display: block; width: auto; height: auto; max-width: min(200px, 100%); max-height: 72px; }
.modules.on-white li { background: var(--soft); }
.prose .modules { margin-top: 10px; }
.plain { color: var(--brand); text-decoration: underline; }

/* ---- Clients, testimonials, videos ---- */
.logos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 16px; }
.logos-grid li { overflow: hidden; border-radius: 18px; background: #fff; }
.logos-grid img { display: block; width: 100%; height: auto; transform: scale(1.06); }
.logos-grid span { position: relative; display: block; padding: 10px 12px 13px; background: #fff; font-size: 14px; font-weight: 500; text-align: center; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 20px; }
.quote { display: flex; flex-direction: column; margin: 0; padding: 34px; border-radius: 22px; background: var(--soft); }
.quote p { flex: 1; font-size: 21px; font-weight: 500; line-height: 1.38; letter-spacing: -.012em; }
.quote cite { margin-top: 20px; font-size: 15px; font-style: normal; font-weight: 600; color: var(--brand); }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.videos video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #111; }
.videos h3 { margin-top: 12px; font-size: 17px; font-weight: 600; }
@media (max-width: 480px) { .quotes { grid-template-columns: 1fr; } .quote { padding: 26px; } .quote p { font-size: 19px; } }

/* ---- Contact ---- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); gap: 16px; margin-bottom: 44px; }
.contact-cards li { padding: 24px; border-radius: 18px; background: var(--soft); }
.contact-cards small { display: block; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.contact-cards a, .contact-cards b { display: block; font-size: 18px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; overflow-wrap: anywhere; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.contact-grid .result { grid-column: 1 / -1; padding: 14px 18px; border-radius: 14px; background: #f3effa; color: #3b1a50; font-size: 15px; }
.contact-grid .result:empty { display: none; } /* custom.js puts contact.php's reply here after sending */
.map iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; border-radius: 20px; }
.contact-form { padding: 32px; border-radius: 20px; background: var(--soft); }
.contact-form h3 { margin-bottom: 20px; font-size: 24px; font-weight: 600; letter-spacing: -.015em; }
.contact-form input:not([type="submit"]), .contact-form textarea { display: block; width: 100%; margin-bottom: 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.contact-form textarea { height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--brand); }
.contact-form input.error, .contact-form textarea.error { border-color: #c62828; }
.contact-form label.error { display: none !important; }
.contact-form .captcha { margin-bottom: 14px; }
.contact-form input[type="submit"] { padding: 12px 30px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: background .2s; }
.contact-form input[type="submit"]:hover { background: var(--brand-dark); }

/* ---- Next page, call to action, footer ---- */
.next-link { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.next-link small { display: block; margin-bottom: 4px; font-size: 14px; color: var(--muted); }
.next-link b { font-size: clamp(24px, 3vw, 36px); font-weight: 700; letter-spacing: -.025em; }
.next-link i { font-style: normal; font-size: 28px; color: var(--brand); transition: transform .25s var(--ease); }
.next-link:hover i { transform: translateX(6px); }
.cta { padding: 110px 24px; text-align: center; background: radial-gradient(60% 70% at 50% 100%, #2c1c36 0%, #000 72%); color: #f5f5f7; }
.cta h2 { font-size: clamp(32px, 4.6vw, 60px); font-weight: 700; line-height: 1.07; letter-spacing: -.03em; }
.cta p { max-width: 640px; margin: 18px auto 0; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; line-height: 1.4; color: var(--dim); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.btn { padding: 13px 26px; border-radius: 999px; font-size: 16px; font-weight: 600; transition: transform .25s var(--ease), background .2s; }
.btn:hover { transform: scale(1.03); }
.btn-solid { background: #fff; color: #000; }
.btn-line { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); color: #fff; }

.foot { padding: 52px var(--gutter) 26px; background: #000; border-top: 1px solid #222; color: #a1a1a6; font-size: 14px; line-height: 1.5; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 32px; }
.foot h4 { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: #f5f5f7; }
.foot a { display: block; padding: 2px 0; overflow-wrap: break-word; transition: color .15s; }
.foot a:hover { color: #fff; }
.foot-iso { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.foot-iso img { width: 46px; height: 46px; border-radius: 50%; background: #fff; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 34px; padding-top: 18px; border-top: 1px solid #222; font-size: 13px; color: #86868b; }
.foot-base a { display: inline; }

/* ---- Careers: keeps its own form and job card styles from the page ---- */
.careers-openings { padding: 72px 0; background: #fff; }
.careers-openings .container, .careers-apply .container { max-width: 1148px; margin: 0 auto; padding: 0 24px; }
.careers-openings .sec-title { margin-bottom: 36px; text-align: center; }
.careers-openings .sec-title h3 { font-size: clamp(30px, 3.9vw, 50px); font-weight: 700; letter-spacing: -.03em; }
.careers-openings .sec-title h3 span { color: inherit; }
.careers-apply .row { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }

.careers-openings .job-card { border: 0; border-radius: 20px; background: var(--soft); }
.careers-openings .job-skills li { border-radius: 999px; background: #fff; }
.careers-openings .job-apply, .careers-apply .job-apply { border-radius: 999px; }
.careers-apply .career-form, .careers-apply .apply-success, .careers-apply .apply-aside { border-radius: 20px; }
.careers-apply .career-form input[type="text"], .careers-apply .career-form input[type="email"], .careers-apply .career-form input[type="tel"], .careers-apply .career-form select, .careers-apply .career-form textarea { border-radius: 12px; }
.careers-apply .career-form button[type="submit"] { border-radius: 999px; }
.careers-apply .resume-drop { border-radius: 14px; }

/* ---- Fade up as things arrive ---- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .band { padding: 60px 0; }
    .tiles { --row: 210px; gap: 14px; }
    .split, .contact-grid, .careers-apply .row { grid-template-columns: 1fr; gap: 28px; }
    .timeline { grid-template-columns: repeat(2, 1fr); }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .map iframe { min-height: 320px; }
    .hero { padding-top: 56px; }
    .hero-media { padding-bottom: 56px; }
    .viewer { padding: 56px 14px 20px; }
    .viewer .prev, .viewer .next { top: auto; bottom: 12px; margin: 0; }
}
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .careers-apply .row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 430px) {
    .contact-form { padding: 20px; }
    .contact-form .captcha, .career-form .g-recaptcha { height: 66px; transform: scale(.85); transform-origin: 0 0; }
}
@media (max-width: 360px) {
    .contact-form .captcha, .career-form .g-recaptcha { height: 60px; transform: scale(.75); }
}
@media (max-width: 560px) {
    .tile, .tile-group a { flex: 1 1 100%; max-width: 100%; }
    .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .quotes { grid-template-columns: 1fr; }
    .next-link { align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .bars b { transition: none; }
    .tile, .btn, .next-link i { transition: none; }
}
