/* ============================================================
   demos/shared/styles.css — demo.gysho.com brand shell
   Mirrors the deck's editorial Swiss/dark style. Works standalone.
   ============================================================ */

:root {
  --gysho-black:    #000;
  --gysho-bg:       #050507;
  --gysho-bg-card:  #0e0e14;
  --gysho-pink:     #FF007E;
  --gysho-pink-dim: rgba(255, 0, 126, 0.6);
  --gysho-pink-bg:  rgba(255, 0, 126, 0.08);
  --gysho-text:     #FAFAFA;
  --gysho-text-dim: rgba(255, 255, 255, 0.7);
  --gysho-text-mut: rgba(255, 255, 255, 0.5);
  --gysho-hairline: rgba(255, 255, 255, 0.12);
  --gysho-pink-hairline: rgba(255, 0, 126, 0.35);

  --gysho-font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --gysho-font-body:    'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--gysho-bg);
  color: var(--gysho-text);
  font-family: var(--gysho-font-body);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page chrome ------------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gysho-hairline);
}
.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--gysho-font-heading);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1.5px;
  color: var(--gysho-text);
  text-decoration: none;
}
.site-nav__brand img {
  width: 26px;
  height: 26px;
}
.site-nav__brand-divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: var(--gysho-hairline);
  margin: 0 4px;
}
.site-nav__brand-segment {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gysho-pink);
}
.site-nav__back {
  font-family: var(--gysho-font-heading);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gysho-text-dim);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.site-nav__back:hover { color: var(--gysho-pink); }

/* Page container --------------------------------------------- */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 56px) clamp(64px, 10vh, 120px);
}

/* Hero ------------------------------------------------------- */
.hero { margin-bottom: clamp(40px, 6vw, 72px); }
.hero__eyebrow {
  display: block;
  font-family: var(--gysho-font-heading);
  font-weight: 700;
  font-size: clamp(11px, 0.95vw, 14px);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gysho-pink);
  margin-bottom: 12px;
}
.hero__title {
  font-family: var(--gysho-font-heading);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1.0;
  letter-spacing: -1.5px;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.hero__sub {
  font-family: var(--gysho-font-heading);
  font-weight: 500;
  font-size: clamp(16px, 1.5vw, 24px);
  line-height: 1.35;
  color: var(--gysho-text-dim);
  margin: 0;
  max-width: 60ch;
}

/* Demo tabs + clip container --------------------------------- */
/* A `.demo-wrap` holds a tab strip + one or more `.demo-clip` panels.
   Single-clip pages can skip the strip — `.demo-clip.is-active` is the default
   shown panel. JS in shared/tabs.js swaps the active tab + clip on click. */
.demo-wrap { margin: 0 auto clamp(40px, 6vw, 64px); }
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--gysho-hairline);
}
.demo-tabs__tab {
  background: transparent;
  border: 0;
  padding: 12px 22px 12px 0;
  margin-right: 24px;
  font-family: var(--gysho-font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gysho-text-mut);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-align: left;
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.demo-tabs__tab:last-child { margin-right: 0; }
.demo-tabs__tab:hover:not([disabled]) { color: var(--gysho-text); }
.demo-tabs__tab.is-active {
  color: var(--gysho-pink);
  border-bottom-color: var(--gysho-pink);
}
.demo-tabs__tab[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.demo-tabs__tab small {
  display: block;
  font-weight: 500;
  font-size: 10px;
  color: var(--gysho-text-mut);
  text-transform: none;
  letter-spacing: 0.5px;
  margin-top: 3px;
  max-width: 220px;
}
.demo-clips { position: relative; }
.demo-clip { display: none; }
.demo-clip.is-active { display: block; }

/* Coming-soon placeholder treatment inside a clip */
.demo-media--placeholder { opacity: 0.65; }
.demo-media--placeholder .demo-media__caption strong { color: var(--gysho-text-mut); }

/* Demo media frame ------------------------------------------- */
.demo-media {
  position: relative;
  margin: 0 auto clamp(40px, 6vw, 64px);
  background: var(--gysho-bg-card);
  border: 1px solid var(--gysho-pink-hairline);
  overflow: hidden;
}
.demo-media__inner {
  position: relative;
  aspect-ratio: 16 / 9;
}
.demo-media__inner img,
.demo-media__inner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.demo-media__caption {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  font-family: var(--gysho-font-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gysho-text-mut);
  border-top: 1px solid var(--gysho-hairline);
}
.demo-media__caption strong {
  color: var(--gysho-pink);
  font-weight: 700;
}

/* 3-column blocks (Problem / Built / Outcome) ---------------- */
.tri {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(40px, 6vw, 72px);
}
.tri__block {
  border-top: 2px solid var(--gysho-pink);
  padding-top: 18px;
}
.tri__block-label {
  display: block;
  font-family: var(--gysho-font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gysho-pink);
  margin-bottom: 10px;
}
.tri__block h3 {
  font-family: var(--gysho-font-heading);
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin: 0 0 12px;
  color: var(--gysho-text);
}
.tri__block p {
  margin: 0;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.55;
  color: var(--gysho-text-dim);
}

/* Tech stack badges ----------------------------------------- */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.stack__badge {
  font-family: var(--gysho-font-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gysho-text);
  background: var(--gysho-pink-bg);
  border: 1px solid var(--gysho-pink-hairline);
  padding: 6px 12px;
}

/* CTA strip -------------------------------------------------- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--gysho-bg-card);
  border: 1px solid var(--gysho-pink-hairline);
}
.cta__title {
  font-family: var(--gysho-font-heading);
  font-weight: 800;
  font-size: clamp(20px, 2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin: 0;
  color: var(--gysho-text);
}
.cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--gysho-pink);
  color: var(--gysho-text);
  font-family: var(--gysho-font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.cta__btn:hover { background: #ff2d96; transform: translateY(-2px); }

/* Library grid (index.html) --------------------------------- */
/* Fixed 2-column layout — keeps cards substantial, never leaves an
   awkward orphan on the last row. Stacks to 1 column on mobile. */
.library {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 36px);
  max-width: 920px;
  margin: 0 auto clamp(40px, 6vw, 72px);
}
@media (max-width: 600px) {
  .library { grid-template-columns: 1fr; }
}
.case-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--gysho-text);
  background: var(--gysho-bg-card);
  border: 1px solid var(--gysho-hairline);
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.case-card:hover {
  border-color: var(--gysho-pink);
  transform: translateY(-4px);
}
.case-card__poster {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.case-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.35) brightness(0.85);
  transition: filter 0.3s var(--ease-out);
}
.case-card:hover .case-card__poster img { filter: none; }
.case-card__poster::after {
  content: "▶";
  position: absolute;
  right: 14px;
  bottom: 12px;
  font-size: 14px;
  color: var(--gysho-text);
  opacity: 0.85;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.case-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.case-card__name {
  font-family: var(--gysho-font-heading);
  font-weight: 800;
  font-size: clamp(17px, 1.5vw, 22px);
  letter-spacing: -0.2px;
  text-transform: uppercase;
}
.case-card__desc {
  font-family: var(--gysho-font-body);
  font-size: clamp(13px, 1vw, 15px);
  color: var(--gysho-text-dim);
  margin: 0;
  line-height: 1.5;
}
.case-card__cta {
  margin-top: 8px;
  font-family: var(--gysho-font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gysho-pink);
}

/* Footer ---------------------------------------------------- */
.site-footer {
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--gysho-hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--gysho-font-heading);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gysho-text-mut);
}
.site-footer a { color: var(--gysho-text-dim); text-decoration: none; }
.site-footer a:hover { color: var(--gysho-pink); }

/* Mobile ---------------------------------------------------- */
@media (max-width: 720px) {
  .tri { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(34px, 9vw, 56px); }
}
