/* outmoststudio.co.uk: charity landing page.
   Values match design/charity-landing/reference/source exactly. */

@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/poppins-300-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/poppins-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/poppins-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --black: #000;
  --panel: #1a1a1a;
  --panel-hover: #222;
  --tile: #111;
  --text: rgb(230,230,230);
  --text-body: rgba(230,230,230,0.85);
  --green: #38B163;
  --green-hover: #2f9a55;
  --ease-in: cubic-bezier(0.2,0,0,1);
  --ease-out: cubic-bezier(0.4,0,1,1);
  --side: clamp(18px, 5vw, 80px);
}

*, ::before, ::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { margin: 0; background: #000; color: #fff; font-family: 'Poppins', sans-serif; font-weight: 300; font-size: 13px; line-height: 1.25; letter-spacing: -0.025em; text-align: left; }
h1, h2, h3, h4, h5, h6 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; font-weight: 300; }
p { margin: 0; text-wrap: pretty; }
a { color: #fff; text-decoration: underline; text-underline-offset: 3px; transition: background-color 120ms var(--ease-in), color 120ms var(--ease-in), border-color 120ms var(--ease-in); }
a:hover { color: var(--green); }
img { display: block; }
.page { min-height: 100vh; background: #000; }
@keyframes omspin { to { transform: rotate(360deg); } }

/* Shared section type */
.h-section { margin: 0; font-size: clamp(32px, 6vw, 47px); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; color: var(--text); text-align: center; text-wrap: balance; }
.lede { font-size: 17px; font-weight: 300; line-height: 26px; color: var(--text-body); text-align: center; text-wrap: pretty; }

/* 1. Hero */
/* --hero-h is the window height in px, set once at load (see <head>), so the hero never resizes while scrolling. */
.hero { position: relative; height: 100vh; height: var(--hero-h, 100svh); min-height: 600px; max-height: 1000px; background: #000; overflow: hidden; }
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 400ms var(--ease-in); }
.hero-bg video.is-playing { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
@keyframes omdots { 0%, 80%, 100% { transform: scale(0.5); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }
.hero-loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; display: flex; align-items: center; gap: 14px; background: #000; color: #fff; padding: 14px 26px; border-radius: 999px; font-size: 18px; font-weight: 700; letter-spacing: -0.025em; pointer-events: none; transition: opacity 200ms; }
.hero-loading.is-done { opacity: 0; }
/* Phones: sit in the empty space above the heading instead of dead centre, so it never covers the text. */
@media (max-width: 699px) {
  .hero-loading { position: static; transform: none; align-self: center; margin: auto 0; }
}
.hero-dots { display: flex; gap: 6px; }
.hero-dots span { width: 10px; height: 10px; border-radius: 999px; background: var(--green); animation: omdots 1.2s ease-in-out infinite; }
.hero-dots span:nth-child(2) { animation-delay: 0.15s; }
.hero-dots span:nth-child(3) { animation-delay: 0.3s; }
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; }
.topbar-inner { padding: 12px 12px 0 18px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo { display: inline-flex; }
.logo img { width: clamp(96px, 24vw, 124px); height: auto; }
.pillnav { display: flex; align-items: center; gap: 4px; background: rgba(0,0,0,0.35); border-radius: 999px; padding: 4px; flex-wrap: nowrap; white-space: nowrap; }
.pillnav a { color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; padding: 10px 14px; border-radius: 999px; }
.pillnav a:hover { background: rgba(0,0,0,0.3); color: #fff; }
.hero-copy { position: relative; height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 40px 72px; display: flex; flex-direction: column; justify-content: flex-end; gap: 24px; }
.hero-copy h1 { margin: 0; max-width: 820px; font-size: clamp(36px, 5vw, 68px); font-weight: 300; line-height: 1.05; letter-spacing: -0.025em; color: #fff; text-wrap: balance; }
.hero-sub { font-size: clamp(19px, 4vw, 26px); font-weight: 300; color: #fff; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn-play { display: flex; align-items: center; gap: 12px; white-space: nowrap; background: #fff; color: #000; text-decoration: none; padding: 10px 24px 10px 10px; border-radius: 999px; font-size: 16px; font-weight: 400; }
.btn-play:hover { color: #000; }
.play-dot { width: 32px; height: 32px; border-radius: 999px; background: #000; display: flex; align-items: center; justify-content: center; }
.play-dot span { width: 0; height: 0; border-left: 10px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.btn-outline { display: flex; align-items: center; white-space: nowrap; color: #fff; border: 1px solid #fff; text-decoration: none; padding: 0 28px; min-height: 52px; border-radius: 999px; font-size: 16px; font-weight: 400; transition: background 120ms var(--ease-in), border-color 120ms, color 120ms; }
.btn-outline:hover { background: var(--green); border-color: var(--green); color: #000; }

/* 2. Intro */
.intro { scroll-margin-top: 0; background: #000; border-top: 1px solid rgba(255,255,255,0.16); }
.intro-inner { max-width: 960px; margin: 0 auto; padding: 112px 40px; display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.intro-body { display: flex; flex-direction: column; gap: 26px; font-size: 17px; font-weight: 300; line-height: 26px; color: var(--text-body); max-width: 820px; text-align: center; }

/* 3. Work grid */
.work { scroll-margin-top: 24px; max-width: 1440px; margin: 0 auto; padding: 0 40px 112px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 56px 24px; }
.project { display: flex; flex-direction: column; gap: 16px; }
.tile { position: relative; aspect-ratio: 16 / 9; background: var(--tile); border-radius: 20px; cursor: pointer; overflow: hidden; }
.tile-spin { position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 999px; border: 2px solid rgba(255,255,255,0.14); border-top-color: var(--green); animation: omspin 0.9s linear infinite; transition: opacity 200ms; }
.tile-spin.is-done { opacity: 0; }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tile-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 120ms var(--ease-in); }
.js .tile-poster, .js .tile-watch { visibility: hidden; }
@keyframes omfadein { from { opacity: 0; } }
/* Poster and Watch button fade in together once the poster is decoded and the tile is on screen. */
.js .tile.is-in .tile-poster, .js .tile.is-in .tile-watch { visibility: visible; animation: omfadein 1200ms ease-out; }
@media (prefers-reduced-motion: reduce) { .js .tile.is-in .tile-poster, .js .tile.is-in .tile-watch { animation: none; } }
.tile-watch { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; background: #fff; color: #000; padding: 6px 16px 6px 8px; border-radius: 999px; font-size: 13px; font-weight: 400; }
.tile-watch .play-dot { width: 22px; height: 22px; }
.tile-watch .play-dot span { border-left-width: 7px; border-top-width: 5px; border-bottom-width: 5px; margin-left: 2px; }
.project-meta { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.project-meta h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -0.025em; }
.project-meta p { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.7); text-wrap: pretty; }
.case-link { font-size: 14px; margin-top: 4px; align-self: flex-start; text-decoration: none; }
.case-link:hover { color: #fff; }

/* 4. Testimonials */
.clients { border-top: 1px solid rgba(255,255,255,0.16); padding: 112px 0; }
.clients-head { max-width: 960px; margin: 0 auto 72px; padding: 0 40px; display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.clients-head .lede { max-width: 820px; }
.marquee { overflow: hidden; padding: 0; margin: 0 0 72px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%); }
.marquee-track { display: flex; align-items: center; gap: 120px; width: max-content; padding: 0 40px; will-change: transform; }
.marquee-track img { width: auto; flex: none; }
.reviews { position: relative; }
.reviews-track { display: flex; gap: 48px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-y: auto; touch-action: pan-x pan-y; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 calc(50% - min(280px, 40vw)); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 82%, transparent 100%); }
.reviews-track::-webkit-scrollbar { display: none; }
.review { flex: 0 0 min(560px, 80vw); scroll-snap-align: center; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.stars { display: flex; gap: 6px; color: var(--green); font-size: 30px; line-height: 1; }
.review blockquote { margin: 0; font-size: 21px; font-weight: 300; line-height: 31px; color: var(--text); text-align: center; text-wrap: pretty; }
.review figcaption { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; text-align: center; }
.review figcaption span { color: rgba(230,230,230,0.6); }
.review figcaption span:first-child { color: var(--text); }
.rv-arrow { all: unset; cursor: pointer; position: absolute; top: 50%; transform: translateY(-50%); width: 64px; height: 64px; border-radius: 999px; background: var(--panel); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.rv-arrow:hover { background: #2a2a2a; }
.rv-prev { left: 40px; }
.rv-next { right: 40px; }
.rv-dots { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.rv-dots button { all: unset; cursor: pointer; width: 10px; height: 10px; border-radius: 999px; background: #fff; opacity: 0.3; }
.rv-dots button[aria-current="true"] { opacity: 1; }

/* 5. Process */
.process { background: #000; padding: 40px var(--side) 112px; }
.process-panel { background: var(--panel); border-radius: 40px; padding: clamp(40px, 5vw, 64px) clamp(24px, 6vw, 96px); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; overflow: hidden; }
.process-title { margin: 0; font-size: clamp(34px, 4vw, 47px); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; color: var(--text); text-align: center; text-wrap: balance; }
.process-unit { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; }
.process-stage { position: relative; width: 240px; height: 240px; max-width: 60vw; max-height: 60vw; }
.process-text { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 640px; min-height: 112px; }
.process-text h3 { margin: 0; font-size: 27px; font-weight: 700; letter-spacing: -0.025em; color: var(--text); text-align: center; }
.process-num { color: var(--green); font-weight: 300; }
.process-text p { font-size: 17px; font-weight: 300; line-height: 26px; color: var(--text-body); text-align: center; text-wrap: pretty; }
.process-bar { width: 100%; max-width: 880px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.process-bar button { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 10px; align-items: center; font-family: 'Poppins', sans-serif; letter-spacing: -0.025em; }
.bar-track { width: 100%; height: 4px; border-radius: 999px; background: rgba(255,255,255,0.16); overflow: hidden; display: block; }
.bar-fill { display: block; height: 100%; width: 0%; background: var(--green); }
.bar-label { font-size: 13px; font-weight: 400; color: rgba(230,230,230,0.5); transition: color 200ms; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.process-bar button[aria-selected="true"] .bar-label { color: #fff; }

/* 6. Contact */
.contact { scroll-margin-top: 24px; background: #000; padding: 112px var(--side) 112px; }
.contact-head { max-width: 820px; margin: 0 auto 64px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { all: unset; box-sizing: border-box; cursor: pointer; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 240px; font-family: 'Poppins', sans-serif; letter-spacing: -0.025em; text-align: left; }
.card img { width: 40px; height: 40px; object-fit: contain; }
.card-talk { background: var(--green); color: #000; transition: background 120ms var(--ease-in); }
.card-talk:hover { background: var(--green-hover); }
.card-dark { color: var(--text); background: var(--panel); }
.card-dark:hover { background: var(--panel-hover); color: var(--text); }
.card-link { transition: background-color 120ms var(--ease-in), color 120ms var(--ease-in); }
.card-body { display: flex; flex-direction: column; gap: 8px; }
.card-body-talk { gap: 16px; align-items: flex-start; }
.card-title { font-size: 27px; font-weight: 700; letter-spacing: -0.025em; }
.card-text { font-size: 15px; font-weight: 300; line-height: 1.45; color: rgba(230,230,230,0.75); }
.card-pill { background: #000; color: #fff; font-size: 15px; font-weight: 700; padding: 12px 22px; border-radius: 999px; }

/* 7. FAQs */
.faqs { padding: 112px var(--side); }
.faqs-head { max-width: 820px; margin: 0 auto 80px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px 24px; align-items: start; }
.faq-col { display: flex; flex-direction: column; gap: 20px; }
.faq { display: flex; flex-direction: column; }
.faq-q { all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; background: var(--panel); border-radius: 20px; padding: 26px 28px; font-family: 'Poppins', sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -0.025em; color: var(--text); text-align: left; }
.faq-q:hover { background: var(--panel-hover); }
.faq-plus { flex: none; position: relative; width: 22px; height: 22px; transition: transform 200ms var(--ease-in); }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; background: var(--text); }
.faq-plus::before { left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; }
.faq-plus::after { top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; }
.faq-q[aria-expanded="true"] .faq-plus { transform: rotate(45deg); }
.faq-a { padding: 24px 28px 16px; font-size: 17px; font-weight: 300; line-height: 26px; color: var(--text-body); text-wrap: pretty; }
.inline-link { all: unset; cursor: pointer; color: inherit; text-decoration: underline; text-underline-offset: 3px; transition: color 120ms var(--ease-in); }
.inline-link:hover { color: var(--green); }
.inline-link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }

/* 8. Footer */
.footer { background: #000; padding: 80px var(--side) 40px; display: flex; flex-direction: column; gap: 64px; }
.wordmark { width: 100%; aspect-ratio: 1920 / 341; opacity: 0.2; }
.wordmark svg { width: 100%; height: auto; display: block; overflow: visible; }
.footer-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 40px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(230,230,230,0.5); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px 40px; }
.footer-nav a { color: rgba(230,230,230,0.5); text-decoration: none; }
.footer-nav a:hover { color: #fff; }

/* Mobile: one breakpoint at 700px */
@media (max-width: 699px) {
  .wide-only { display: none !important; }
}

/* Video modal */
.vmodal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.9); display: flex; align-items: center; justify-content: center; padding: 56px 24px 24px; }
.vmodal[hidden] { display: none; }
.vmodal-inner { width: min(1280px, 100%, calc((100vh - 120px) * 16 / 9)); display: flex; flex-direction: column; gap: 14px; }
.vmodal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #fff; }
.vmodal-title { font-size: 16px; font-weight: 700; }
.vmodal-close { all: unset; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 13px; color: #000; background: #fff; padding: 8px 18px; border-radius: 999px; }
.vmodal iframe { width: 100%; aspect-ratio: 16 / 9; background: #000; display: block; border: 0; }

/* Form modal */
.fmodal { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.82); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease-in), visibility 200ms; }
.fmodal.is-open { opacity: 1; visibility: visible; }
.fmodal-panel { position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 48px); overflow-y: auto; background: var(--panel); border-radius: 20px; padding: 56px 32px 32px; }
.fmodal-close { all: unset; cursor: pointer; position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-family: 'Poppins', sans-serif; font-weight: 300; }
.fmodal-close:hover { background: rgba(255,255,255,0.08); }
.fmodal-form { overflow: hidden; }
.fmodal-form.is-collapsed { height: 0; }
