/* ============================================================================
   sinnapps — cinematic, investor-grade styles.  Tokens live in tokens.css.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; letter-spacing: -0.02em; }

.container {
  width: min(var(--container), 100%);
  margin: 0 auto;
  padding-inline: clamp(18px, 4vw, 48px);
}

/* Dark section palette */
:root { --dark: #0b0b0f; --dark-2: #14141a; --on-dark: #f4f4f7; --on-dark-muted: #9a9aa6; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 500; font-size: 15px; line-height: 1;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.btn--light   { background: #fff; color: var(--ink); }
.btn--light:hover { background: #ececf2; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn--outline:hover { border-color: #fff; }
.btn--dark    { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--ghost   { background: var(--surface-2); color: var(--ink); }
.btn--ghost:hover { background: var(--line-strong); }

/* ---- Header: floating glass bar, alive ---------------------------------- */
@property --hdr-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes hdr-spin { to { --hdr-angle: 360deg; } }
@keyframes header-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes brand-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes mark-glow {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: .95; transform: scale(1.12); }
}

.site-header {
  position: sticky; top: 0; z-index: 200; padding-top: 14px;
  animation: header-in 0.7s cubic-bezier(.16,.84,.44,1) both;
}

.site-header__bar {
  position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px 9px 16px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: 0 8px 30px rgba(23,23,28,0.07);
  -webkit-backdrop-filter: saturate(1.7) blur(16px);
  backdrop-filter: saturate(1.7) blur(16px);
  transition: background .35s ease, box-shadow .35s ease;
}
/* Living gradient border that slowly rotates around the bar. */
.site-header__bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--hdr-angle),
    var(--brand-blue), var(--brand-purple), var(--brand-pink),
    var(--brand-coral), var(--brand-green), var(--brand-blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: hdr-spin 8s linear infinite;
  opacity: 0.55;
}

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  animation: brand-in 0.7s .12s cubic-bezier(.16,.84,.44,1) both; }
.brand__mark-wrap { position: relative; display: inline-flex; }
.brand__mark-wrap::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; z-index: -1;
  background: var(--brand-gradient); filter: blur(9px);
  animation: mark-glow 3.4s ease-in-out infinite;
}
.brand__mark { height: 30px; width: 30px; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.1); }

.wordmark-text {
  font-family: "Baloo 2", var(--font-body); font-weight: 600; font-size: 21px;
  letter-spacing: -0.01em; line-height: 1; color: var(--ink);
  transition: color .35s ease;
}
.wordmark-text b { font-weight: 800; }

.nav { display: flex; align-items: center; gap: 4px;
  animation: brand-in 0.7s .2s cubic-bezier(.16,.84,.44,1) both; }
.nav__link {
  position: relative; text-decoration: none; font-weight: 500; font-size: 15px;
  color: var(--ink-soft); padding: 8px 14px; border-radius: var(--radius-pill);
  transition: color .2s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px;
  background: var(--brand-gradient); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.16,.84,.44,1);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__cta {
  text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: var(--ink); color: #fff !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(23,23,28,0.22); }

/* Overlay (over the dark hero): dark glass, light text */
.site-header--overlay { position: fixed; left: 0; right: 0; top: 0; }
.site-header--overlay .site-header__bar {
  background: color-mix(in srgb, #0b0b0f 30%, transparent);
  box-shadow: 0 8px 30px rgba(0,0,0,0.22);
}
.site-header--overlay .wordmark-text { color: #fff; }
.site-header--overlay .nav__link { color: rgba(255,255,255,0.82); }
.site-header--overlay .nav__link:hover { color: #fff; }
.site-header--overlay .nav__cta { background: #fff; color: var(--ink) !important; }

/* Scrolled past the hero: light glass, dark text */
.site-header--overlay.is-scrolled .site-header__bar {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  box-shadow: 0 8px 30px rgba(23,23,28,0.09);
}
.site-header--overlay.is-scrolled .wordmark-text { color: var(--ink); }
.site-header--overlay.is-scrolled .nav__link { color: var(--ink-soft); }
.site-header--overlay.is-scrolled .nav__link:hover { color: var(--ink); }
.site-header--overlay.is-scrolled .nav__cta { background: var(--ink); color: #fff !important; }

/* ---- Hero (cinematic dark) ---------------------------------------------- */
.hero {
  background: var(--dark);
  color: var(--on-dark);
  min-height: 92vh;
  display: flex; align-items: center;
  padding-block: 120px 72px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: auto -10% -40% -10%; height: 60vh;
  background: var(--brand-gradient); filter: blur(160px); opacity: 0.22; pointer-events: none;
}
.hero__inner { text-align: center; position: relative; z-index: 1; }
.hero__eyebrow {
  margin: 0 0 22px; font-size: 13px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--on-dark-muted);
}
.hero__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(44px, 8vw, 108px);
  line-height: 0.98; letter-spacing: -0.035em;
  color: #fff; margin: 0 auto; max-width: 16ch;
}
.hero__title .accent {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  letter-spacing: -0.02em;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede {
  margin: 28px auto 0; max-width: 56ch; font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.6; color: var(--on-dark-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }

/* ---- Stats (dark, dividers + count-up + staggered reveal) ---------------- */
.stats { background: var(--dark); color: var(--on-dark); padding-block: clamp(64px, 10vw, 128px); }
.stats__eyebrow {
  margin: 0 0 clamp(28px, 4vw, 48px); font-size: 13px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-muted);
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.10);
}
.stat {
  position: relative;
  padding: clamp(32px, 4vw, 58px) clamp(16px, 2.2vw, 34px);
  border-left: 1px solid rgba(255,255,255,0.08);
}
.stat:first-child { border-left: none; }
.stat::before {
  content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0;
  background: var(--brand-gradient); transition: width .9s .1s cubic-bezier(.16,.84,.44,1);
}
.stats.in-view .stat::before { width: 46px; }
/* Reveal only when JS is present (so no-JS still shows the stats). */
.js .stat { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,.84,.44,1); }
.js .stats.in-view .stat { opacity: 1; transform: none; }
.stats.in-view .stat:nth-child(1) { transition-delay: .02s; }
.stats.in-view .stat:nth-child(2) { transition-delay: .12s; }
.stats.in-view .stat:nth-child(3) { transition-delay: .22s; }
.stats.in-view .stat:nth-child(4) { transition-delay: .32s; }
.stat__num {
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(52px, 7vw, 104px); line-height: 0.95; letter-spacing: -0.05em; color: #fff;
  display: flex; align-items: baseline;
}
.stat__unit {
  font-size: 0.4em; margin-left: 6px; font-weight: 600;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { margin-top: 18px; font-size: 14.5px; line-height: 1.4; color: var(--on-dark-muted); max-width: 20ch; }
@media (max-width: 820px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.08); }
}
@media (max-width: 460px) {
  .stats__grid { grid-template-columns: 1fr; }
  .stat { border-left: none !important; border-top: 1px solid rgba(255,255,255,0.08); }
  .stat:first-child { border-top: none; }
}

/* ---- Statement ----------------------------------------------------------- */
.statement { padding-block: clamp(72px, 12vw, 160px); }
.statement__text {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 4vw, 52px); line-height: 1.18; letter-spacing: -0.02em;
  color: var(--ink); max-width: 20ch; margin: 0; max-width: 24ch;
}
.statement__text { max-width: 900px; }
.statement__text em {
  font-style: italic;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Portfolio ----------------------------------------------------------- */
.portfolio { padding-bottom: clamp(56px, 9vw, 112px); }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.section-eyebrow, .hero__eyebrow, .section-eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted);
}
.section-eyebrow { margin: 0 0 10px; }
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.02em; max-width: 18ch;
}

/* Big two-column cards with the FULL app screenshot */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 22px;
}
.big-card {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 42%, 360px);
  align-items: stretch;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-xl); overflow: hidden; cursor: pointer; text-align: left;
  min-height: 400px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.big-card__content { min-width: 0; }
.big-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.big-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.big-card__content { display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 36px); }
.big-card__head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.big-card__name { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; }
.big-card__cat { margin-top: 5px; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-muted); }
.big-card__desc {
  font-size: 15px; color: var(--ink-soft); margin: 0 0 20px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.big-card__meta { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.big-card__meta li {
  font-size: 12.5px; font-weight: 500; color: var(--ink-soft);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: var(--radius-pill);
}
.big-card__meta .star { color: var(--brand-yellow); }
.big-card__actions { margin-top: auto; display: flex; align-items: center; gap: 18px; }
.big-card__more { font-size: 14px; font-weight: 500; color: var(--ink-muted); }

.big-card__media {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 2.4vw, 34px); background: var(--surface-2);
}
.tint-blue   .big-card__media { background: color-mix(in srgb, var(--brand-blue) 13%, #fff); }
.tint-purple .big-card__media { background: color-mix(in srgb, var(--brand-purple) 13%, #fff); }
.tint-pink   .big-card__media { background: color-mix(in srgb, var(--brand-pink) 13%, #fff); }
.tint-green  .big-card__media { background: color-mix(in srgb, var(--brand-green) 15%, #fff); }
/* Full screenshot — nothing cropped */
.big-card__shot {
  max-width: 100%; max-height: 440px; width: auto; height: auto;
  border-radius: 22px; box-shadow: 0 18px 44px rgba(0,0,0,0.18);
}
.big-card__mark { width: 108px; height: 108px; border-radius: 26px; box-shadow: 0 14px 34px rgba(0,0,0,0.16); }

/* Standard app grid */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.app-card {
  display: flex; flex-direction: column; padding: 22px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); cursor: pointer; text-align: left;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.app-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.app-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.app-card__top { display: flex; gap: 14px; align-items: center; }
.app-icon { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06); }
.feature-card .app-icon { width: 56px; height: 56px; }
.app-card__meta { min-width: 0; }
.app-card__name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.app-card__cat { margin-top: 3px; font-size: 12px; color: var(--ink-muted); }
.app-card__desc { margin: 16px 0; font-size: 14.5px; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.app-card__bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rating { font-size: 13px; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.rating .star { color: var(--brand-yellow); }
.btn--download { padding: 8px 16px; font-size: 13px; font-weight: 500; color: #fff; background: var(--ink); border-radius: var(--radius-pill); text-decoration: none; transition: background var(--transition); }
.btn--download:hover { background: #000; }

.empty-state { padding: clamp(48px, 8vw, 80px) 24px; text-align: center; color: var(--ink-muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }

/* Live pill */
.live-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); animation: live-pulse 2s infinite; }
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent); }
  70% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--success) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 0%, transparent); }
}

/* ---- Closer -------------------------------------------------------------- */
.closer { background: var(--dark); color: var(--on-dark); padding-block: clamp(72px, 12vw, 140px); }
.closer__inner { text-align: center; }
.closer__title { font-family: var(--font-display); font-size: clamp(30px, 5vw, 60px); letter-spacing: -0.02em; color: #fff; max-width: 18ch; margin: 0 auto; }
.closer__text { margin: 20px auto 32px; color: var(--on-dark-muted); font-size: 18px; max-width: 44ch; }

/* ---- Modal --------------------------------------------------------------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: flex-start; justify-content: center; padding: clamp(12px, 4vw, 48px); background: color-mix(in srgb, var(--dark) 60%, transparent); backdrop-filter: blur(6px); overflow-y: auto; }
.modal.is-open { display: flex; }
.modal__panel { position: relative; width: min(900px, 100%); background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; animation: modal-in 0.22s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.99); } to { opacity: 1; transform: none; } }
.modal__inner { padding: clamp(24px, 4vw, 44px); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--surface-2); color: var(--ink); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.modal__close:hover { background: var(--line-strong); }
.modal__header { display: flex; gap: 22px; align-items: center; }
.modal__header .app-icon { width: 96px; height: 96px; border-radius: 22px; }
.modal__title { font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.02em; }
.modal__sub { margin-top: 8px; color: var(--ink-muted); font-size: 14px; }
.modal__sub .dot { margin: 0 6px; opacity: 0.5; }
.modal__actions { margin-top: 16px; }
.modal__section-title { margin: 30px 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); }
.modal__desc { white-space: pre-line; color: var(--ink-soft); font-size: 15px; }
.screens { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 12px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.screens img { width: 100%; border-radius: var(--radius-md); border: 1px solid var(--line); scroll-snap-align: start; }
.doc-links { display: flex; flex-wrap: wrap; gap: 10px; }
.doc-links a { font-weight: 500; font-size: 13px; text-decoration: none; color: var(--ink-soft); padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); transition: border-color var(--transition), color var(--transition); }
.doc-links a:hover { border-color: var(--ink); color: var(--ink); }

/* ---- Document pages ------------------------------------------------------ */
.doc-page { padding-block: clamp(40px, 6vw, 80px); }
.doc-wrap { width: min(720px, 100%); margin: 0 auto; }
.doc-header { display: flex; gap: 16px; align-items: center; margin-bottom: 32px; }
.doc-header .app-icon { width: 56px; height: 56px; }
.doc-eyebrow { font-size: 13px; font-weight: 500; color: var(--ink-muted); letter-spacing: 0.02em; }
.doc-title { font-family: var(--font-display); font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.02em; }
.doc-body { font-size: 16px; color: var(--ink-soft); }
.doc-body h2 { font-family: var(--font-display); font-size: 21px; margin-top: 32px; margin-bottom: 8px; }
.doc-body a { color: var(--ink); text-underline-offset: 3px; }
.doc-note { margin-top: 32px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md); font-size: 14px; color: var(--ink-muted); }
.doc-back { margin-top: 48px; }
.doc-back a { color: var(--ink-muted); text-decoration: none; }
.doc-back a:hover { color: var(--ink); }

/* ---- Footer (modern, big wordmark) -------------------------------------- */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--surface); padding-top: clamp(52px, 8vw, 88px); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { max-width: 340px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .wordmark--light { display: none; }
.footer-tagline { color: var(--ink-muted); font-size: 15px; line-height: 1.6; margin: 0 0 16px; }
.footer-mail { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .2s ease; }
.footer-mail:hover { border-color: var(--ink); }
.footer-cols { display: flex; gap: clamp(36px, 7vw, 84px); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; margin: 0 0 2px; }
.footer-col a { text-decoration: none; color: var(--ink-soft); font-size: 15px; font-weight: 500; transition: color .2s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-word {
  font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: clamp(74px, 21vw, 300px); line-height: 0.82; letter-spacing: -0.04em;
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-top: clamp(28px, 5vw, 64px); user-select: none; pointer-events: none;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 22px 0 30px; border-top: 1px solid var(--line);
  color: var(--ink-muted); font-size: 13px;
}
.footer-bottom p { margin: 0; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 980px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .big-card { grid-template-columns: 1fr; min-height: 0; }
  .big-card__media { order: 2; }
  .big-card__shot { max-height: 460px; }
}
@media (max-width: 760px) {
  .footer-top { flex-direction: column; gap: 32px; }
}
@media (max-width: 640px) {
  .modal__header { flex-direction: column; text-align: center; align-items: center; }
  .big-card__content { padding: 24px; }
  .big-card__shot { max-height: 380px; }
  .hero { min-height: 84vh; }
  .footer-bottom { flex-direction: column; }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
