/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "Inter";
  src: url("Fonts/inter-variable.woff2") format("woff2-variations"), url("Fonts/inter-variable.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("Fonts/plus-jakarta-sans-variable.woff2") format("woff2-variations"), url("Fonts/plus-jakarta-sans-variable.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0f0f10;
  --panel: #1a1712;
  --panel-gradient: linear-gradient(180deg, #201c15 0%, #1a1712 45%, #151209 100%);
  --text: #f3f1ec;
  --muted: #c3b9a8;
  --accent-legacy-green: #4ade80; /* bookmarked: previous signature color, kept for easy revert */
  --accent: #ddb94a; /* muted antique gold */
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --section-y: clamp(56px, 7vw, 96px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-y); }
.panel { background: var(--bg); }

.label { font-family: var(--font-head); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
br.mobile-break { display: none; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; text-transform: none; letter-spacing: -0.015em; line-height: 1.08; }
.text-gradient-gold {
  background: linear-gradient(120deg, #f5e2ae 0%, #ddb94a 50%, #a37f22 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.btn {
  display: inline-block;
  background: var(--accent); color: #0f0f10;
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  font-size: 13px; padding: 14px 22px; border-radius: 999px;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 10px 34px rgba(221,185,74,.34); }
.text-link { display: inline-block; color: var(--accent); font-family: var(--font-head); font-size: 14px; letter-spacing: .04em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(15,15,16,.8); backdrop-filter: blur(10px); border-bottom: 1px solid #ffffff14; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; font-size: 22px; }
.brand-mark { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.brand-word { white-space: nowrap; }
.brand-word-accent { color: var(--accent); }
@media (max-width: 420px) { .brand-word { font-size: 17px; } }
.nav { display: flex; gap: 28px; align-items: center; font-size: 14px; }
.nav a:hover { color: var(--accent); }
.nav-cta { color: inherit; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; }
.header-right { display: flex; align-items: center; gap: 20px; }
.lang-switch { display: flex; align-items: center; gap: 4px; font-family: var(--font-head); font-size: 12px; }
.lang-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; letter-spacing: .06em; }
.lang-btn:hover { color: var(--accent); }
.lang-btn.is-active { color: var(--text); }
.lang-sep { color: #ffffff33; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(72px, 12vw, 140px); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15,15,16,.92) 0%, rgba(15,15,16,.62) 48%, rgba(15,15,16,.34) 100%),
    linear-gradient(0deg, rgba(15,15,16,.95) 0%, rgba(15,15,16,0) 42%); }
.hero .wrap { position: relative; z-index: 2; }
#hero .hero-scrim {
  background:
    linear-gradient(90deg, rgba(15,15,16,.5) 0%, rgba(15,15,16,.28) 48%, rgba(15,15,16,.1) 100%),
    linear-gradient(0deg, rgba(15,15,16,.5) 0%, rgba(15,15,16,0) 42%);
}
.pc-hero .hero-scrim {
  background:
    linear-gradient(90deg, rgba(8,8,9,.99) 0%, rgba(8,8,9,.82) 40%, rgba(8,8,9,.48) 100%),
    linear-gradient(0deg, rgba(8,8,9,.97) 0%, rgba(8,8,9,0) 42%);
}
.pc-hero .hero-sub,
.pc-hero .hero-facts li { color: #e4dccb; }
.hero-title { font-size: clamp(35px, 7.4vw, 87px); text-transform: none; letter-spacing: -0.01em; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 2.6vw, 24px); margin-top: 24px; max-width: 38ch; line-height: 1.65; }
.hero-sub em { color: inherit; font-style: normal; }
.hero-explore {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 44px;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  font-size: 12px; letter-spacing: .14em;
  color: var(--text);
  transition: color .25s ease;
}
.hero-explore-arrow { display: inline-block; color: var(--accent); transition: transform .25s ease; }
.hero-explore:hover, .hero-explore:focus-visible { color: var(--accent); }
.hero-explore:hover .hero-explore-arrow, .hero-explore:focus-visible .hero-explore-arrow { transform: translateY(3px); }

/* ---------- Capability ticker ---------- */
.ticker { overflow: hidden; background: var(--bg); border-top: 1px solid rgba(221,185,74,.18); border-bottom: 1px solid rgba(221,185,74,.18); padding-block: 26px; }
.ticker-track { display: flex; width: max-content; animation: ticker-scroll 76s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; flex: 0 0 auto; }
.ticker-set span:not(.ticker-dot) { font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); white-space: nowrap; padding-inline: 22px; }
.ticker-dot { color: var(--accent); opacity: .5; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Pitch ---------- */

/* ---------- Timewaker / Work ---------- */
.showcase-title { font-size: clamp(30px, 5vw, 56px); color: #fff; margin-top: 14px; }
.showcase-block { margin-top: 56px; }
.showcase-block + .showcase-block { padding-top: 44px; border-top: 1px solid #ffffff14; }
.showcase-top { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 860px) {
  .showcase-top { grid-template-columns: 1fr auto; column-gap: 56px; row-gap: 0; align-items: start; }
  .showcase-links { margin-top: 32px; }
}
.showcase-copy { min-width: 0; }
.showcase-head { display: flex; align-items: center; gap: 14px; }
.showcase-copy .label + .showcase-head { margin-top: 12px; }
.showcase-logo { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.showcase-subtitle { font-size: clamp(22px, 3.4vw, 32px); color: #fff; }
.showcase-subtitle-link:hover { color: var(--accent); }
.work-intro { color: var(--muted); max-width: 52ch; margin-top: 16px; }
.honesty-badge { display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 14px; border: 1px solid #ffffff1f; border-radius: 999px; color: var(--muted); font-size: 12.5px; letter-spacing: .02em; flex-wrap: wrap; }
.honesty-badge .ticker-dot { font-size: 10px; }
.is-mobile-only { display: none; }
.work-note { color: var(--muted); font-size: 14px; max-width: 44ch; margin-top: 0; margin-bottom: 24px; opacity: .8; }

.showcase-hero { max-width: 100%; }
.showcase-hero .work-card { max-width: none; }
@media (min-width: 860px) {
  .showcase-hero .work-embed { width: 533px; height: 300px; }
}
.work-card { max-width: 380px; margin: 0; }
.work-grid { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 4px; }
.work-grid::-webkit-scrollbar { display: none; }
.work-grid .work-card { flex: 0 0 260px; max-width: 260px; scroll-snap-align: start; }
.credits-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 32px; }
@media (min-width: 700px) { .credits-grid { grid-template-columns: repeat(3, 1fr); } }
.credits-grid li { display: flex; flex-direction: column; gap: 4px; }
.credits-label { font-family: var(--font-head); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.credits-value { color: var(--text); font-size: 14px; }
.work-embed { position: relative; display: block; width: 100%; padding: 0; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid #ffffff14; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; box-shadow: 0 0 36px 2px rgba(221,185,74,.14); }
.work-embed:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 44px 4px rgba(221,185,74,.26); }
.work-embed img { width: 100%; height: 100%; object-fit: cover; }
.work-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.work-embed video { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-embed .play { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; transition: transform .18s ease, filter .18s ease; }
.work-embed .play::after { content: ""; width: 0; height: 0; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #0f0f10; margin-left: 4px; }
.work-embed:hover .play { transform: scale(1.08); filter: brightness(1.05); box-shadow: 0 0 26px rgba(221,185,74,.55); }
.work-embed.is-ambient { cursor: default; }
.work-card figcaption { color: var(--muted); font-size: 13px; margin-top: 12px; }
.hero-meta { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hero-facts li { color: var(--muted); font-size: 13px; }
.hero-meta .text-link { display: block; }
.work-card .snug { margin: 6px 0 0; }
.work .text-link { margin-top: 32px; }
#work { scroll-margin-top: 84px; }
.showcase-links { min-width: 0; }
.showcase-links > .text-link { display: block; }
.showcase-links > .text-link + .text-link { margin-top: 8px; }

/* ---------- Case study toggle (expand/collapse) ---------- */
button.case-study-toggle { background: none; border: none; padding: 0; cursor: pointer; }
button.case-study-toggle:hover { filter: brightness(1.15); }
.case-study { margin-top: 28px; }
.case-study[hidden] { display: none; }

/* ---------- ProCamera ---------- */
.procamera-card { max-width: none; }
.procamera-card .work-embed::after { content: ""; position: absolute; inset: 0; background: rgba(15,15,16,.32); pointer-events: none; }

/* ---------- App Store listing mock ---------- */
.appstore-mock { margin-top: 28px; border: 1px solid #ffffff14; border-radius: 18px; overflow: hidden; background: #0f0f10; }

.appstore-mock-banner {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 24px 22px;
  background:
    radial-gradient(140% 180% at 6% 12%, rgba(221,185,74,.22) 0%, rgba(221,185,74,0) 52%),
    radial-gradient(120% 160% at 100% 100%, rgba(217,178,63,.14) 0%, rgba(217,178,63,0) 55%),
    linear-gradient(160deg, #221e17 0%, #121110 100%);
}
.appstore-mock-banner > * { position: relative; z-index: 1; }

.appstore-icon { width: 72px; height: 72px; border-radius: 18px; flex: none; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.appstore-name { font-family: var(--font-head); font-weight: 700; font-size: clamp(16px, 2.2vw, 20px); color: #fff; text-transform: none; }
.appstore-tagline { color: #f4f4f4; opacity: .88; font-size: 13.5px; margin-top: 3px; }
.appstore-price { color: #f4f4f4; opacity: .68; font-size: 12px; margin-top: 6px; }
.editors-choice { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: none; }
.editors-choice img { height: 28px; width: auto; }
.editors-choice-label { color: var(--muted); font-size: 11px; letter-spacing: .02em; white-space: nowrap; }

.appstore-stats { display: flex; align-items: flex-start; gap: 30px; overflow-x: auto; padding: 18px 22px; border-bottom: 1px solid #ffffff14; scrollbar-width: none; }
.star-row { display: flex; align-items: center; justify-content: center; gap: 2px; height: 28px; color: var(--accent); flex: none; }
.star-row svg { width: 17px; height: 17px; }
.appstore-stats::-webkit-scrollbar { display: none; }
.appstore-stat { display: flex; flex-direction: column; flex: none; }
.appstore-downloads-stat, .appstore-years-stat { align-items: center; text-align: center; }
.appstore-stat-num { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--accent); white-space: nowrap; }
.appstore-stat-label { color: var(--muted); font-size: 11px; letter-spacing: .02em; margin-top: 3px; white-space: nowrap; }

/* ---------- App Store screenshot filmstrip + lightbox ---------- */
.appstore-mock-shots { display: flex; gap: 14px; overflow-x: auto; padding: 18px 22px 22px; scroll-padding-inline: 22px; scroll-snap-type: x proximity; scrollbar-width: none; }
.appstore-mock-shots::-webkit-scrollbar { display: none; }
.shot-card { flex: 0 0 140px; max-width: 140px; scroll-snap-align: start; padding: 0; margin: 0; border: 1px solid #ffffff14; border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.shot-card:hover, .shot-card:focus-visible { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.shot-card img { width: 100%; height: auto; display: block; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 5vh 5vw; background: rgba(8,8,9,.92); backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 100%; max-height: 90vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; padding: 8px; }
.lightbox-close:hover { color: var(--accent); }
.work-embed.wide { aspect-ratio: 16 / 9; }

/* ---------- Services ---------- */
.services { background: var(--bg); }
.services-title { font-size: clamp(30px, 5vw, 56px); margin-top: 22px; }
.services-copy { margin-top: 40px; max-width: 60ch; }
.services-copy p { color: var(--muted); line-height: 1.6; }
.services-copy p + p { margin-top: 18px; }
.service-cards { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .service-cards { grid-template-columns: repeat(3, 1fr); } }
.service-card { background: var(--panel); border: 1px solid #ffffff14; border-radius: 16px; padding: 28px; }
.service-card h3 { font-size: 21px; text-transform: none; }
.service-card-tagline { color: var(--accent); font-size: 15px; margin-top: 6px; }
.service-card-list { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.service-card-list li { position: relative; padding-left: 16px; color: var(--muted); font-size: 15.5px; line-height: 1.4; }
.service-card-list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .6; }

/* ---------- About ---------- */
.about { background: var(--panel-gradient); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; justify-items: start; }
@media (min-width: 820px) { .about-grid { grid-template-columns: 340px 1fr; gap: 56px; } }
.about-photo-wrap { position: relative; width: 100%; max-width: 320px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; margin: 0; border: 1px solid #ffffff14; }
.about-photo { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.82); }
.about-photo-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(170deg, rgba(221,185,74,.14) 0%, rgba(15,15,16,.15) 45%, rgba(15,15,16,.7) 100%); pointer-events: none; }
.about h2 { font-size: clamp(30px, 5vw, 56px); margin-top: 10px; }
.about-bio { color: var(--muted); margin-top: 20px; max-width: 54ch; }

/* ---------- Testimonial ---------- */
.testimonial { background: var(--panel-gradient); }
.testimonial-inner { text-align: left; }
.testimonial-inner .label { position: relative; padding-top: 18px; }
.testimonial-inner .label::before { content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 1px; background: var(--accent); opacity: .6; }
.testimonial-quote { max-width: 880px; margin: 24px 0 0; position: relative; }
.testimonial-quote::before { content: "\201C"; position: absolute; top: -18px; left: -8px; font-family: var(--font-head); font-size: 84px; line-height: 1; font-weight: 700; color: var(--accent); opacity: .2; pointer-events: none; }
.testimonial-quote p { position: relative; font-family: var(--font-body); font-weight: 400; font-size: clamp(19px, 2.4vw, 25px); line-height: 1.5; color: var(--text); max-width: 34ch; }
.testimonial-quote footer { margin-top: 22px; display: flex; flex-direction: column; gap: 6px; }
.testimonial-name { font-family: var(--font-head); font-weight: 600; font-style: normal; color: var(--accent); font-size: 16px; }
.testimonial-role { color: var(--muted); font-weight: 400; font-size: 13px; }

/* ---------- Contact ---------- */
.home-contact { background: var(--bg); }
.contact-title { font-size: clamp(30px, 5vw, 56px); margin-top: 16px; }
.contact-sub { color: var(--muted); max-width: 46ch; margin-top: 20px; line-height: 1.5; }

.contact-form { margin-top: 40px; max-width: 640px; display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-family: var(--font-head); font-size: 12px; letter-spacing: .05em; color: var(--muted); text-transform: none; }
.form-field input, .form-field textarea {
  background: var(--panel); border: 1px solid #ffffff1f; border-radius: 10px;
  padding: 13px 14px; color: var(--text); font-family: var(--font-body); font-size: 15px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(221,185,74,.18);
}
.form-field textarea { resize: vertical; min-height: 130px; font-family: var(--font-body); }
.contact-form .btn { align-self: flex-start; border: none; cursor: pointer; }
.contact-form .btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.form-status { font-size: 14px; min-height: 1.4em; }
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: #f2777a; }
.prefer-email { margin-top: 24px; color: var(--muted); font-size: 14px; }
.prefer-email a { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid #ffffff14; padding-block: 40px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.footer-links a:hover { color: var(--accent); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: 13px; }
.footer-legal a:hover { color: var(--accent); }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal-page { padding-block: clamp(56px, 8vw, 96px); }
.legal-page .wrap { max-width: 760px; }
.legal-title { font-size: clamp(34px, 5vw, 52px); margin-top: 12px; }
.legal-updated { color: var(--muted); font-size: 13px; margin-top: 12px; }
.legal-body { margin-top: 40px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.legal-body h2 { color: var(--text); font-size: 20px; text-transform: none; margin-top: 40px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { color: var(--text); font-size: 16px; text-transform: none; margin-top: 26px; }
.legal-body p { margin-top: 14px; }
.legal-body ul { list-style: disc; padding-left: 22px; margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: break-word; }

/* ---------- Timewaker History case study ---------- */
#history-main { --section-y: clamp(40px, 5vw, 64px); }
.history-hero { position: relative; overflow: hidden; padding-block: clamp(72px, 10vw, 128px) clamp(16px, 2vw, 28px); }
.history-films { padding-top: clamp(20px, 2.5vw, 36px); }
.pc-hero-text { max-width: 560px; position: relative; z-index: 2; }
.history-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: 0; }
.history-hero .wrap { position: relative; z-index: 2; }
.history-hero-links { margin-top: 24px; }
.history-hero-title { font-size: clamp(32px, 5.5vw, 60px); }
.history-hero-sub { font-size: clamp(16px, 1.9vw, 20px); max-width: 58ch; }
.history-hero-logo { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 20px; }

.history-cta-btn { margin-top: 32px; }
.history-arthur-tagline { color: var(--accent); font-size: 15px; margin-top: 16px; }
.history-arthur-body { color: var(--muted); margin-top: 16px; max-width: 54ch; }
.pc-logo-card { width: 100%; max-width: 480px; aspect-ratio: 16 / 9; margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid #ffffff14; background: var(--panel); display: flex; align-items: center; justify-content: center; }
.pc-logo-card video { width: 100%; height: 100%; object-fit: cover; }
.pc-logo-card img { width: 34%; height: auto; }

.history-museum-inner { max-width: 760px; }
.history-process-body, .history-museum-body { color: var(--muted); line-height: 1.6; margin-top: 20px; max-width: 65ch; }

@media (min-width: 860px) {
  #films .showcase-hero .work-embed { width: 300px; height: 533px; }
}

.history-films-more { display: block; margin-top: 48px; }

.flow-steps { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; max-width: 900px; }
.flow-step { display: flex; align-items: center; gap: 10px; }
.flow-step:not(:first-child)::before { content: "→"; color: var(--accent); opacity: .7; font-size: 14px; }
.flow-step span { font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text); padding: 9px 15px; border: 1px solid #ffffff1f; border-radius: 999px; background: var(--panel); white-space: nowrap; }

/* ---------- Hero load reveal ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero-reveal > * { animation: riseIn .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-reveal > .hero-title { animation-delay: .12s; }
.hero-reveal > .hero-sub { animation-delay: .24s; }
.hero-reveal > .btn { animation-delay: .34s; }

/* Hero title (homepage): "Ideas made" appears instantly, the gold word fades in slowly */
.hero-reveal > .hero-title { animation: none; opacity: 1; transform: none; }
.text-gradient-gold.fade-slow { opacity: 0; animation: goldFadeIn 1.9s ease .35s forwards; }
@keyframes goldFadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .text-gradient-gold.fade-slow { animation: none; opacity: 1; }
}

/* ---------- Stats ---------- */
.stats { margin-top: clamp(40px, 6vw, 64px); }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 30px; max-width: 1440px; }
@media (min-width: 560px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stats-grid { display: flex; justify-content: center; gap: clamp(48px, 6vw, 96px); margin-inline: auto; } }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.2; letter-spacing: -0.01em; color: var(--accent); white-space: nowrap; }
.stat-label { color: var(--muted); font-size: 13px; }

/* ---------- Trust / worked-with ---------- */
.trust { padding-block: clamp(36px, 5vw, 60px); border-bottom: 1px solid #ffffff12; }
.trust-tagline { margin-top: 12px; color: #c9c9ce; font-size: clamp(16px, 2.2vw, 20px); line-height: 1.5; max-width: 46ch; }
.trust-logos { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 64px; }
.trust-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #d8d8dc; transition: color .18s ease; }
.trust-logo:hover { color: #fff; }
.tl-mark { height: clamp(48px, 7vw, 62px); display: flex; align-items: center; }
.tl-mark svg { height: 100%; width: auto; }
.tl-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: .01em; color: var(--muted); transition: color .18s ease; }
.trust-logo:hover .tl-name { color: var(--text); }

/* ---------- Process / pipeline timeline ---------- */
.process-title { font-size: clamp(30px, 5vw, 56px); margin-top: 14px; }
.process-steps { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 760px) { .process-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.pstep { position: relative; display: flex; gap: 16px; align-items: flex-start; }
@media (min-width: 760px) { .pstep { display: block; } }

.pnode {
  position: relative; z-index: 1; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 14px; letter-spacing: .04em;
  color: var(--muted); background: var(--bg); border: 1.5px solid #ffffff26;
  transition: color .45s ease, border-color .45s ease, box-shadow .45s ease;
}
@media (min-width: 760px) { .pstep-body { margin-top: 16px; } }
.process-steps h3 { font-size: 18px; text-transform: none; }
.process-steps p { color: var(--muted); font-size: 15px; margin-top: 8px; line-height: 1.5; }

/* connector: vertical on mobile, horizontal on desktop */
.pstep:not(:last-child)::after {
  content: ""; position: absolute; z-index: 0;
  left: 20px; top: 42px; width: 2px; height: calc(100% - 42px + 30px);
  background-image: linear-gradient(180deg, var(--accent) 0 50%, #ffffff1f 50% 100%);
  background-size: 100% 200%; background-position: 0 100%;
  transition: background-position .55s ease;
}
@media (min-width: 760px) {
  .pstep:not(:last-child)::after {
    left: 42px; top: 20px; width: calc(100% - 42px + 14px); height: 2px;
    background-image: linear-gradient(90deg, var(--accent) 0 50%, #ffffff1f 50% 100%);
    background-size: 200% 100%; background-position: 100% 0;
  }
}

/* activate as the section scrolls in */
.js .wrap.reveal.in .pnode { color: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px rgba(221,185,74,.35); }
.js .wrap.reveal.in .pstep:not(:last-child)::after { background-position: 0 0; }

/* sequential flow timing */
.pstep:nth-child(1) .pnode { transition-delay: 0s; }
.pstep:nth-child(2) .pnode { transition-delay: .18s; }
.pstep:nth-child(3) .pnode { transition-delay: .36s; }
.pstep:nth-child(1)::after { transition-delay: .09s; }
.pstep:nth-child(2)::after { transition-delay: .27s; }

/* ---------- Accessibility & motion ---------- */
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 12px; background: var(--accent); color: #0f0f10; padding: 8px 14px; border-radius: 8px; z-index: 100; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-reveal > * { animation: none; }
  .js .pnode { transition: none; color: var(--accent); border-color: var(--accent); box-shadow: none; }
  .js .pstep:not(:last-child)::after { transition: none; background-position: 0 0; }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 720px) {
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: flex-start; background: var(--panel); padding: 24px var(--pad); gap: 18px; transform: translateY(-130%); transition: transform .25s ease; border-bottom: 1px solid #ffffff14; }
  .nav.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .label-sep { display: none; }
  br.mobile-break { display: block; }
  .is-desktop-only { display: none; }
  .is-mobile-only { display: block; }
  .hero-facts { flex-direction: row; flex-wrap: wrap; column-gap: 4px; }
  .hero-facts li:not(:last-child)::after { content: " ·"; }
  .appstore-stats { display: grid; grid-template-columns: 1fr 1fr; overflow-x: visible; row-gap: 20px; column-gap: 12px; }
  .appstore-stat, .editors-choice { flex: initial; min-width: 0; align-items: center; text-align: center; }
  .appstore-stat-num, .appstore-stat-label, .editors-choice-label { white-space: normal; }
  .hero { min-height: 84vh; min-height: 84svh; display: flex; align-items: flex-start; padding-block: 150px 48px; }
  #hero .hero-title { font-size: clamp(49px, 10.4vw, 94px); }
  #hero .hero-sub { font-size: clamp(18px, 2.9vw, 27px); }
  #hero .hero-explore { font-size: 13px; }
  .pc-hero .hero-bg { object-position: 78% center; }
  .about-photo-wrap { max-width: 272px; justify-self: center; margin-inline: auto; }
}

/* ---------- Timewaker History case study: heading size override ---------- */
/* Placed last so it wins over showcase-title / process-title / contact-title's own font-size. */
.history-section-title { font-size: clamp(30px, 5vw, 52px); }
.showcase-title.history-section-title { font-size: clamp(24px, 3.4vw, 36px); color: var(--accent); }
