/* ==========================================================================
   RESEARCH & INNOVATION STUDIOS
   Oxblood / cream / sage / brass — with Bulb Hub layout concept.
   Marquee, trusted-by, large brand mark, clean alignment.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&display=swap');

:root {
  --oxblood: #380B12;
  --oxblood-deep: #26060B;
  --oxblood-soft: #4B161F;
  --cream: #F5E2CD;
  --cream-deep: #EBD3B8;
  --ivory: #FBF0DE;
  --ink: #2A0A10;
  --sage: #BEBF99;
  --sage-deep: #9EA077;
  --brass: #B08A5E;
  --brass-light: #D9BC92;
  --brass-ink: #7C5730;

  --muted: rgba(42, 10, 16, 0.68);
  --muted-cream: rgba(245, 226, 205, 0.74);
  --hair: rgba(42, 10, 16, 0.16);
  --hair-strong: rgba(42, 10, 16, 0.34);
  --hair-cream: rgba(245, 226, 205, 0.20);
  --hair-cream-strong: rgba(245, 226, 205, 0.38);

  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --sans: 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-frame: 34px;

  --shadow-offset: 0 5px 0 0 var(--ink);
  --shadow-offset-sm: 0 3px 0 0 var(--ink);
  --shadow-soft: 0 18px 40px -18px rgb(17 17 17 / 0.35);

  --ease-squish: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 120ms;
  --duration-base: 220ms;
  --duration-slow: 600ms;

  --gutter: clamp(20px, 4vw, 44px);
  --header-h: 72px;

  /* Bulb Hub proportional sizing */
  --px: min(1px, calc(100vw / 1440));
  --largura: calc(1440 * var(--px));
}

@media (max-width: 767px) {
  :root {
    --px: calc(100vw / 390);
    --largura: 100vw;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--ink);
}

html {
  scroll-behavior: smooth;
  background-color: var(--oxblood-deep);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100svh;
  background-color: var(--oxblood-deep);
  font-family: var(--sans);
  font-weight: 600;
  overflow-x: hidden;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1240px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.miolo {
  position: relative;
  width: var(--largura);
  margin: 0 auto;
  padding-inline: calc(48 * var(--px));
}

@media (max-width: 767px) {
  .miolo {
    padding-inline: calc(20 * var(--px));
  }
}

/* ---- Site header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: var(--oxblood-deep);
  border-bottom: 1px solid var(--hair-cream);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding-inline: var(--gutter);
  max-width: 1240px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  min-width: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand img {
  width: 36px;
  height: 36px;
  padding: 3px;
  object-fit: contain;
  border: 1px solid var(--hair-cream);
  border-radius: 4px;
  background: var(--oxblood-soft);
}

.nav {
  display: none;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--muted-cream);
  transition: color 0.25s var(--ease-out-soft);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--cream);
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out-soft);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-action {
  display: none;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--oxblood-deep);
  background: var(--sage);
  border-radius: 2px;
  transition: background 0.25s var(--ease-out-soft), color 0.25s var(--ease-out-soft);
}

.header-action:hover {
  background: var(--cream);
}

.menu-toggle {
  position: relative;
  display: grid;
  place-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 1px solid var(--hair-cream);
  border-radius: 2px;
  background: transparent;
}

.menu-toggle i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out-soft), opacity 0.2s;
}

.menu-toggle[aria-expanded='true'] i:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] i:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (min-width: 940px) {
  .menu-toggle { display: none; }
  .nav { display: flex; }
  .header-action { display: inline-flex; }
}

/* ---- Mobile nav ---- */
@media (max-width: 939px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 55;
    display: grid;
    gap: 0;
    padding: 12px var(--gutter) 20px;
    background: var(--oxblood-deep);
    border-bottom: 1px solid var(--hair-cream);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease-out-soft),
                transform 0.3s var(--ease-out-soft),
                visibility 0.3s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav a {
    padding: 14px 0;
    font-family: var(--serif);
    font-size: 1.35rem;
    color: var(--cream);
    border-bottom: 1px solid var(--hair-cream);
  }

  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

/* ---- Hero (home) ---- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: clamp(40px, 7vh, 80px) 0 clamp(48px, 6vh, 72px);
  overflow: hidden;
  background: transparent;
}

.hero-grid {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 800px;
  }
}

.hero-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-mark img {
  width: 52px;
  height: 52px;
  padding: 4px;
  border: 1px solid var(--hair-cream);
  border-radius: 4px;
  background: var(--oxblood-soft);
}

.hero-mark span {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 6.4vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--cream);
  max-width: 13ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--sage);
}

.hero .lede {
  margin-top: 22px;
  max-width: 44ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted-cream);
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.marks {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.85rem;
  color: var(--muted-cream);
}

.marks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--hair-cream);
  border-radius: 2px;
  transition: background 0.25s var(--ease-out-soft), color 0.25s var(--ease-out-soft), border-color 0.25s var(--ease-out-soft);
}

.btn:hover {
  background: var(--cream);
  color: var(--oxblood-deep);
  border-color: var(--cream);
}

.btn--solid {
  background: var(--sage);
  color: var(--oxblood-deep);
  border-color: var(--sage);
  font-weight: 600;
}

.btn--solid:hover {
  background: var(--cream);
  border-color: var(--cream);
}

.btn--light {
  background: transparent;
  color: var(--cream);
  border-color: var(--hair-cream);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Sections ---- */
.section {
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--cream);
  color: var(--ink);
  border-top: 1px solid var(--hair);
}

.section--about { background: var(--cream); }
.section--projects { background: var(--ivory); }
.section--contact { background: var(--cream-deep); }

.section--dark {
  background: var(--oxblood-deep);
  color: var(--cream);
}

.features-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(32px, 4vw, 48px);
  max-width: 62ch;
}

.features-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.features-head .lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---- About disciplines ---- */
.disciplines {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .disciplines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

.discipline {
  padding: 28px 24px;
  background: var(--ivory);
  border: 1px solid var(--hair);
  border-radius: 4px;
  transition: border-color 0.25s var(--ease-out-soft);
}

.discipline:hover {
  border-color: var(--brass);
}

.discipline h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 8px;
  font-style: italic;
}

.discipline p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---- Project plate ---- */
.project-plate {
  margin-top: 8px;
}

.project-plate-inner {
  display: grid;
  gap: 20px;
  padding: 24px;
  background: var(--ivory);
  border: 1px solid var(--hair);
  border-radius: 4px;
  transition: border-color 0.25s var(--ease-out-soft);
}

.project-plate-inner:hover {
  border-color: var(--brass);
}

@media (min-width: 760px) {
  .project-plate-inner {
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 24px;
  }
}

.project-plate-inner img {
  width: 100%;
  max-width: 120px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--cream);
}

.project-plate-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 6px;
  font-style: italic;
}

.project-plate-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ---- Contact plate ---- */
.contact-plate {
  margin-top: 8px;
}

.contact-plate-inner {
  display: grid;
  gap: 16px;
  padding: 28px 24px;
  background: var(--ivory);
  border: 1px solid var(--hair);
  border-radius: 4px;
}

.contact-plate-inner p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 58ch;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  word-break: break-word;
  transition: color 0.25s var(--ease-out-soft), border-color 0.25s var(--ease-out-soft);
}

.contact-email:hover {
  color: var(--brass);
  border-color: var(--ink);
}

/* ---- Footer ---- */
.site-footer {
  padding: clamp(48px, 6vw, 72px) 0 28px;
  background: var(--oxblood-deep);
  color: var(--cream);
  border-top: 1px solid var(--hair-cream);
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  padding: 3px;
  border: 1px solid var(--hair-cream);
  border-radius: 4px;
  background: var(--oxblood-soft);
}

.footer-brand .brand-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--cream);
  font-style: italic;
}

.footer-brand p {
  margin-top: 12px;
  color: var(--muted-cream);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 40ch;
}

.footer-col h2 {
  margin-bottom: 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--cream);
  font-style: italic;
}

.footer-col li {
  margin-bottom: 4px;
}

.footer-col a,
.footer-col span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 0.92rem;
  color: var(--muted-cream);
  transition: color 0.25s var(--ease-out-soft);
}

.footer-col a:hover {
  color: var(--sage);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--hair-cream);
  border-radius: 2px;
  transition: background 0.25s var(--ease-out-soft), border-color 0.25s var(--ease-out-soft),
              color 0.25s var(--ease-out-soft);
}

.socials a:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--oxblood-deep);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--hair-cream);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted-cream);
}

/* ---- Large brand mark in footer ---- */
.brand-mark {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 48px 0 32px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--cream);
  opacity: 0.15;
  user-select: none;
  font-style: italic;
}

.brand-mark span {
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s var(--ease-out-soft);
}

.brand-mark:hover span {
  color: var(--sage);
  transform: translateY(-4px);
}

/* ---- Play FAB (clean, no spinner) ---- */
.play-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--oxblood-deep);
  background: var(--sage);
  border: 1px solid var(--sage);
  border-radius: 2px;
  transition: background 0.25s var(--ease-out-soft), color 0.25s var(--ease-out-soft);
}

.play-fab:hover {
  background: var(--cream);
  color: var(--oxblood-deep);
}

.play-fab:active {
  transform: translateY(1px);
}

.fab-logo {
  position: relative;
  width: 24px;
  height: 24px;
}

.fab-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 2px;
}

.fab-logo b {
  position: absolute;
  inset: 0;
  border: 1px solid var(--oxblood-deep);
  border-radius: 2px;
  pointer-events: none;
}

.fab-label {
  font-weight: 600;
}

.fab-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--cream);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  transition: transform 0.1s linear;
}

/* ---- Hero (home) ---- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: clamp(40px, 7vh, 80px) 0 clamp(48px, 6vh, 72px);
  overflow: hidden;
  background: transparent;
}

.hero-grid {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 800px;
  }
}

.hero-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-mark img {
  width: 52px;
  height: 52px;
  padding: 4px;
  border: 1px solid var(--hair-cream);
  border-radius: 4px;
  background: var(--oxblood-soft);
}

.hero-mark span {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  font-style: italic;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 6.4vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--cream);
  max-width: 13ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--sage);
}

.hero .lede {
  margin-top: 22px;
  max-width: 44ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted-cream);
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.marks {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.85rem;
  color: var(--muted-cream);
}

.marks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--hair-cream);
  border-radius: 2px;
  transition: background 0.25s var(--ease-out-soft), color 0.25s var(--ease-out-soft), border-color 0.25s var(--ease-out-soft);
}

.btn:hover {
  background: var(--cream);
  color: var(--oxblood-deep);
  border-color: var(--cream);
}

.btn--solid {
  background: var(--sage);
  color: var(--oxblood-deep);
  border-color: var(--sage);
  font-weight: 600;
}

.btn--solid:hover {
  background: var(--cream);
  border-color: var(--cream);
}

.btn--light {
  background: transparent;
  color: var(--cream);
  border-color: var(--hair-cream);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Sections ---- */
.section {
  padding: clamp(64px, 9vw, 120px) 0;
  background: var(--cream);
  color: var(--ink);
  border-top: 1px solid var(--hair);
}

.section--about { background: var(--cream); }
.section--projects { background: var(--ivory); }
.section--contact { background: var(--cream-deep); }

.section--dark {
  background: var(--oxblood-deep);
  color: var(--cream);
}

.features-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(32px, 4vw, 48px);
  max-width: 62ch;
}

.features-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  font-style: italic;
}

.features-head .lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ---- About disciplines ---- */
.disciplines {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .disciplines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

.discipline {
  padding: 28px 24px;
  background: var(--ivory);
  border: 1px solid var(--hair);
  border-radius: 4px;
  transition: border-color 0.25s var(--ease-out-soft);
}

.discipline:hover {
  border-color: var(--brass);
}

.discipline h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 8px;
  font-style: italic;
}

.discipline p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---- Project plate ---- */
.project-plate {
  margin-top: 8px;
}

.project-plate-inner {
  display: grid;
  gap: 20px;
  padding: 24px;
  background: var(--ivory);
  border: 1px solid var(--hair);
  border-radius: 4px;
  transition: border-color 0.25s var(--ease-out-soft);
}

.project-plate-inner:hover {
  border-color: var(--brass);
}

@media (min-width: 760px) {
  .project-plate-inner {
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 24px;
  }
}

.project-plate-inner img {
  width: 100%;
  max-width: 120px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--cream);
}

.project-plate-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 6px;
  font-style: italic;
}

.project-plate-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ---- Contact plate ---- */
.contact-plate {
  margin-top: 8px;
}

.contact-plate-inner {
  display: grid;
  gap: 16px;
  padding: 28px 24px;
  background: var(--ivory);
  border: 1px solid var(--hair);
  border-radius: 4px;
}

.contact-plate-inner p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 58ch;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 2px;
  word-break: break-word;
  transition: color 0.25s var(--ease-out-soft), border-color 0.25s var(--ease-out-soft);
}

.contact-email:hover {
  color: var(--brass);
  border-color: var(--ink);
}

/* ---- Project page hero ---- */
.project-page .site-header {
  background: var(--oxblood-deep);
}

.project-hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: clamp(56px, 8vh, 96px) 0 clamp(48px, 6vh, 72px);
  overflow: hidden;
  background: transparent;
}

.project-hero-grid {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

@media (min-width: 900px) {
  .project-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    column-gap: clamp(32px, 4vw, 64px);
  }
}

.project-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 5.2vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--cream);
  max-width: 16ch;
}

.project-hero h1 em {
  font-style: italic;
  color: var(--sage);
}

.project-hero .lede {
  margin-top: 20px;
  max-width: 46ch;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.6;
  color: var(--muted-cream);
}

.hero-tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags li {
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--cream);
  background: var(--oxblood-soft);
  border: 1px solid var(--hair-cream);
  border-radius: 2px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.marks {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.85rem;
  color: var(--muted-cream);
}

.marks li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.marks li::before {
  content: '';
  width: 6px;
  height: 6px;
  border: 1px solid var(--sage);
  background: var(--sage);
  transform: rotate(45deg);
}

/* ---- Device rig (DOM mock) ---- */
.device-rig {
  position: relative;
  display: flex;
  justify-content: center;
}

.device {
  width: min(300px, 86vw);
  padding: 18px 18px 16px;
  background: var(--ivory);
  border: 1px solid var(--hair);
  border-radius: 4px;
}

.device-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  font-style: italic;
}

.device-name img {
  width: 32px;
  height: 32px;
  border: 1px solid var(--hair);
  border-radius: 4px;
}

.device > p {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.progress-row {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progress-line {
  margin-top: 6px;
  height: 8px;
  background: var(--cream-deep);
  border: 1px solid var(--hair);
  border-radius: 4px;
  overflow: hidden;
}

.progress-line span {
  display: block;
  width: 75%;
  height: 100%;
  background: var(--sage);
}

.device-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.device-stats div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-top: 1px solid var(--hair);
}

.device-stats b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  color: var(--cream);
  background: var(--oxblood);
  border-radius: 50%;
}

.device-stats div:last-child b {
  background: transparent;
  border: 1px solid var(--brass);
  color: var(--brass);
}

.device > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 18px;
  font-weight: 600;
  color: var(--oxblood-deep);
  background: var(--sage);
  border: 1px solid var(--sage);
  border-radius: 2px;
  transition: background 0.25s var(--ease-out-soft), color 0.25s var(--ease-out-soft);
}

.device > a:hover {
  background: var(--cream);
}

/* ---- Steps ---- */
.steps {
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.step {
  padding: 24px 20px;
  background: var(--ivory);
  border: 1px solid var(--hair);
  border-radius: 4px;
  transition: border-color 0.25s var(--ease-out-soft);
}

.step:hover {
  border-color: var(--brass);
}

.step-num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--brass);
  margin-bottom: 10px;
  font-style: italic;
}

.step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-style: italic;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ---- CTA panels ---- */
.cta-panel {
  margin-top: 40px;
  padding: 28px 24px;
  background: var(--ivory);
  border: 1px solid var(--hair);
  border-radius: 4px;
  display: grid;
  gap: 20px;
}

@media (min-width: 760px) {
  .cta-panel {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
  }
}

.cta-panel h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 6px;
  font-style: italic;
}

.cta-panel p {
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-panel--cream {
  background: var(--cream-deep);
}

/* ---- Features grid ---- */
.features-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 1080px) {
  .features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.feature {
  padding: 20px 18px;
  background: var(--ivory);
  border: 1px solid var(--hair);
  border-radius: 4px;
  transition: border-color 0.25s var(--ease-out-soft);
}

.feature:hover {
  border-color: var(--brass);
}

.feature h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  margin-bottom: 6px;
  font-style: italic;
}

.feature p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ---- Screenshots ---- */
.shots-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(24px, 3vw, 40px);
  max-width: 62ch;
}

.shots-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  font-style: italic;
}

.shots-stage {
  position: relative;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.shot-view {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 9 / 16;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--cream);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.25s var(--ease-out-soft);
}

.shot-view:hover {
  border-color: var(--brass);
}

.shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-soft);
}

.shot.is-active {
  opacity: 1;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot figcaption {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 2px 8px;
  font-family: var(--serif);
  font-size: 0.85rem;
  color: var(--cream);
  background: var(--oxblood);
  border-radius: 2px;
}

.shots-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shots-count {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  font-style: italic;
}

.shots-dots {
  display: flex;
  align-items: center;
  gap: 0;
}

.shot-dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.shot-dot::after {
  content: '';
  position: absolute;
  inset: 8px 9px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  transition: background 0.3s var(--ease-out-soft),
              inset 0.3s var(--ease-out-soft);
}

.shot-dot[aria-current='true']::after {
  inset: 8px 2px;
  background: var(--ink);
}

/* ---- Statement / testimonials ---- */
.statement {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--oxblood-deep);
  color: var(--cream);
}

.statement .container {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.statement h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  color: var(--cream);
  font-style: italic;
}

.statement h2 em {
  font-style: normal;
  color: var(--sage);
}

.statement p {
  color: var(--muted-cream);
  font-size: 1.05rem;
  max-width: 40ch;
}

/* ---- Download section ---- */
.download-head {
  display: grid;
  gap: 14px;
  margin-bottom: clamp(24px, 3vw, 40px);
  max-width: 62ch;
}

.download-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  font-style: italic;
}

.download-row {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 760px) {
  .download-row {
    grid-template-columns: 1fr auto;
    gap: 48px;
  }
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.ios {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--cream-deep);
  border: 1px dashed var(--brass);
  border-radius: 2px;
}

.ios b {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  font-style: italic;
}

.qr-rig {
  display: flex;
  justify-content: center;
}

.qr {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 20px 18px;
  background: var(--ivory);
  border: 1px solid var(--hair);
  border-radius: 4px;
  transition: border-color 0.25s var(--ease-out-soft);
}

.qr:hover {
  border-color: var(--brass);
}

.qr img {
  width: 160px;
  height: 160px;
  border: 1px solid var(--hair);
  border-radius: 2px;
  background: var(--cream);
}

.qr p {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
  font-style: italic;
}

.qr span {
  font-size: 0.75rem;
  color: var(--muted);
}

.benefits {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

@media (min-width: 760px) {
  .benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.benefits > div {
  padding: 20px 18px;
  background: var(--ivory);
  border: 1px solid var(--hair);
  border-radius: 4px;
  transition: border-color 0.25s var(--ease-out-soft);
}

.benefits > div:hover {
  border-color: var(--brass);
}

.benefits h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  margin-bottom: 6px;
  font-style: italic;
}

.benefits p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.requirements {
  margin-top: 40px;
  padding: 24px 20px;
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 4px;
}

.requirements h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 14px;
  font-style: italic;
}

.req-grid {
  display: grid;
  gap: 8px 24px;
}

@media (min-width: 600px) {
  .req-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.req-grid div {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 4px 0;
  border-bottom: 1px solid var(--hair);
}

.req-grid dt {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.req-grid dd {
  font-weight: 600;
  color: var(--ink);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(10 10 10 / 0.85);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.lightbox-panel {
  position: relative;
  width: min(960px, 100%);
  max-height: 90vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 16px;
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--ivory);
  border: 1px solid var(--hair);
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.lightbox-close:hover {
  background: var(--sage);
  color: var(--oxblood-deep);
}

.lightbox-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.lightbox-main {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

.lightbox-image {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border: 1px solid var(--hair);
  border-radius: 2px;
  background: var(--cream);
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px 0;
}

.lightbox-bar span {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1rem;
  font-style: italic;
  color: var(--ink);
}

.lightbox-nav {
  display: flex;
  gap: 8px;
}

.lightbox-nav button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: var(--ivory);
  border: 1px solid var(--hair);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.25s var(--ease-out-soft);
}

.lightbox-nav button:hover {
  background: var(--sage);
  color: var(--oxblood-deep);
}

.lightbox-nav svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.lightbox-thumb {
  flex: 0 0 auto;
  width: 54px;
  aspect-ratio: 9 / 16;
  padding: 2px;
  overflow: hidden;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  opacity: 0.55;
  transition: opacity 0.25s var(--ease-out-soft), border-color 0.25s var(--ease-out-soft);
}

.lightbox-thumb:hover {
  opacity: 0.85;
}

.lightbox-thumb[aria-current='true'] {
  opacity: 1;
  border-color: var(--ink);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1px;
}

@media (min-width: 900px) {
  .lightbox-panel {
    grid-template-columns: minmax(0, 1fr) 64px;
    align-items: start;
  }

  .lightbox-main { grid-column: 1; }
  .lightbox-close { top: 0; right: -44px; }
  .lightbox-thumbs {
    grid-column: 2;
    grid-row: 1 / 3;
    flex-direction: column;
    max-height: 68vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
  }
  .lightbox-thumb {
    width: 56px;
  }
}

/* ---- Video modal ---- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(10 10 10 / 0.85);
}

.video-modal[hidden] {
  display: none;
}

.video-backdrop {
  position: absolute;
  inset: 0;
}

.video-panel {
  position: relative;
  width: min(960px, 100%);
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 4px;
  overflow: hidden;
}

.video-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--ivory);
  border: 1px solid var(--hair);
  border-radius: 50%;
  cursor: pointer;
}

.video-close:hover {
  background: var(--sage);
  color: var(--oxblood-deep);
}

.video-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  background: var(--oxblood-deep);
}

.video-caption {
  padding: 12px 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--cream-deep);
  border-top: 1px solid var(--hair);
  font-style: italic;
}

/* ---- Legal page ---- */
.legal {
  background: var(--cream);
}

.legal-top {
  padding: clamp(52px, 8vh, 96px) 0 clamp(34px, 4.4vw, 54px);
  color: var(--cream);
  background: var(--oxblood-deep);
  border-bottom: 1px solid var(--hair-cream);
}

.legal-top .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted-cream);
  margin-bottom: 18px;
  transition: color 0.25s var(--ease-out-soft);
}

.legal-top .back:hover {
  color: var(--sage);
}

.legal-top .back::before {
  content: '\2190';
  font-size: 1.1rem;
}

.legal-top h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  color: var(--cream);
  font-style: italic;
}

.legal-meta {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted-cream);
  letter-spacing: 0.04em;
}

.legal-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--hair);
}

.legal-section:last-child {
  border-bottom: 0;
}

.legal-section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--ink);
  font-style: italic;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-section ul {
  padding-left: 1.2em;
  margin: 10px 0;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section strong {
  color: var(--ink);
  font-weight: 600;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

/* ---- Trusted by ---- */
.trusted {
  padding: clamp(40px, 5vw, 64px) 0;
  background: var(--ivory);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.trusted-label {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
  font-style: italic;
}

.trusted-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}

.trusted-links a {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--ink);
  padding: 8px 16px;
  border: 1px solid var(--hair);
  border-radius: 4px;
  background: var(--cream);
  transition: border-color 0.25s var(--ease-out-soft), color 0.25s var(--ease-out-soft);
  font-style: italic;
}

.trusted-links a:hover {
  border-color: var(--brass);
  color: var(--brass);
}

/* ---- Marquee ---- */
.marquee {
  overflow: hidden;
  padding: 16px 0;
  background: var(--oxblood-deep);
  color: var(--cream);
  border-top: 1px solid var(--hair-cream);
  border-bottom: 1px solid var(--hair-cream);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  font-style: italic;
}

.marquee-track span {
  flex-shrink: 0;
}

.marquee-track .dot {
  color: var(--sage);
  font-size: 0.8rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee--dark {
  background: var(--oxblood);
  color: var(--cream);
}

.marquee--dark .dot {
  color: var(--sage);
}

/* ---- Large brand mark in footer ---- */
.brand-mark {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 48px 0 32px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--cream);
  opacity: 0.15;
  user-select: none;
  font-style: italic;
}

.brand-mark span {
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s var(--ease-out-soft);
}

.brand-mark:hover span {
  color: var(--sage);
  transform: translateY(-4px);
}

/* ---- Reveal animations ---- */
.reveal {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 899px) {
  .hero,
  .project-hero {
    min-height: auto;
    padding-top: clamp(120px, 16vh, 160px);
    padding-bottom: 56px;
  }

  .hero { align-items: flex-start; }

  .hero-mark { margin-bottom: 20px; }
  .hero-mark img { width: 44px; height: 44px; }

  .hero h1 {
    max-width: 12ch;
    font-size: clamp(2.4rem, 10vw, 3.6rem);
  }

  .project-hero h1 {
    max-width: 14ch;
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero .lede,
  .project-hero .lede { margin-top: 16px; }

  .hero-cta,
  .hero-actions { margin-top: 24px; }
  .marks { margin-top: 24px; }
  .hero-tags { margin-top: 18px; }

  .device {
    width: min(300px, 86vw);
  }

  .trusted-links {
    gap: 10px 14px;
  }

  .trusted-links a {
    font-size: 1rem;
    padding: 6px 12px;
  }
}

@media (max-width: 560px) {
  .hero,
  .project-hero {
    padding-top: 112px;
    padding-bottom: 48px;
  }

  .hero h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .project-hero h1 { font-size: clamp(2rem, 10vw, 2.8rem); }

  .hero-mark img { width: 40px; height: 40px; }
  .device { width: min(280px, 88vw); }
}

@media (max-height: 540px) and (orientation: landscape) {
  .hero,
  .project-hero {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero { align-items: flex-start; }
  .hero-mark { margin-bottom: 12px; }
  .hero-mark img { width: 40px; height: 40px; }

  .hero h1 {
    max-width: 14ch;
    font-size: clamp(2.2rem, 6.2vw, 3.4rem);
  }

  .project-hero h1 {
    max-width: 16ch;
    font-size: clamp(1.9rem, 5.4vw, 3rem);
  }

  .hero .lede,
  .project-hero .lede { margin-top: 14px; }

  .hero-cta,
  .hero-actions { margin-top: 20px; }
  .marks { margin-top: 20px; }
  .hero-tags { margin-top: 16px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: clamp(2.2rem, 12vw, 3rem); }
  .project-hero h1 { font-size: clamp(2rem, 11vw, 2.8rem); }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .marquee-track {
    animation: none;
  }
}