/* ═══ SPLIT Design Gallery — Swiss-minimal, deliberately neutral so no variant is favoured ═══ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FBFBFA;
  color: #1A1A1A;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.g-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Header */
.g-head {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 22px 0;
  background: rgba(251,251,250,0.94);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.g-head .g-wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.g-brand { display: flex; align-items: baseline; gap: 12px; }
.g-logo {
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: 22px; letter-spacing: .12em;
  color: #1A1A1A;
}
.g-tag {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 14px; color: #777;
}
.g-nav { display: flex; gap: 24px; align-items: center; }
.g-nav a {
  font-size: 13px; color: #555;
  transition: color .15s;
}
.g-nav a:hover { color: #CC5142; }
.g-nav .g-live {
  padding: 7px 16px;
  border: 1px solid #1A1A1A;
  font-weight: 600;
}
.g-nav .g-live:hover { background: #1A1A1A; color: white; }

/* Intro */
.g-intro { padding: 68px 0 56px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.g-intro-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px;
  align-items: end;
}
.g-kicker {
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase;
  color: #CC5142;
  margin-bottom: 14px;
}
.g-h1 {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: clamp(42px, 5.8vw, 76px);
  line-height: 1.02; letter-spacing: -0.02em;
  margin: 0;
}
.g-h1 em { color: #CC5142; }
.g-lede {
  font-size: 17px; line-height: 1.6; color: #555;
  margin: 0;
}
.g-lede a { color: #CC5142; border-bottom: 1px solid #CC5142; }

/* Sections */
.g-section { padding: 80px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.g-section:last-of-type { border-bottom: none; }
.g-sect-head { margin-bottom: 36px; max-width: 720px; }
.g-sect-idx {
  display: inline-block;
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase;
  color: #CC5142;
  margin-bottom: 10px;
}
.g-sect-head h2 {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.02em;
  line-height: 1.1; margin: 0 0 10px;
}
.g-sect-head p { margin: 0; color: #666; font-size: 16px; max-width: 560px; }

/* Grid */
.g-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px 22px;
}
.g-grid-slim { grid-template-columns: repeat(auto-fill, minmax(320px, 480px)); }

/* Card */
.card {
  display: block;
  background: white;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  color: inherit;
}
.card-ready:hover {
  transform: translateY(-3px);
  border-color: #CC5142;
  box-shadow: 0 14px 38px rgba(0,0,0,0.08);
}
.card-stub { opacity: .88; }
.card-frame {
  width: 100%; aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  background: #1F2530;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.card-frame iframe {
  border: none;
  /* Render at 1440x900, scale down to card width via transform */
  width: 1440px; height: 900px;
  transform: scale(0.27);
  transform-origin: top left;
  pointer-events: none;
  background: white;
}
.card-shim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.02) 100%);
  pointer-events: none;
}
.card-frame-stub {
  background: repeating-linear-gradient(135deg, #F4F2EE 0 12px, #EDEAE4 12px 24px);
  display: grid; place-items: center;
}
.stub-tag {
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: #8A7F70;
  padding: 8px 14px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.08);
}

.card-meta { padding: 18px 20px 20px; }
.card-idx {
  display: inline-block;
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 11px; letter-spacing: 2px;
  color: #CC5142; margin-bottom: 8px;
}
.card-meta h3 {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 20px; letter-spacing: -0.01em;
  margin: 0 0 6px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
}
.card-ref {
  font-family: 'Inter', sans-serif; font-style: italic;
  font-weight: 400; font-size: 12px;
  color: #888; letter-spacing: 0;
}
.card-meta p { margin: 0; font-size: 13.5px; color: #666; line-height: 1.55; }

/* Footer */
.g-foot {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 28px 0;
  background: white;
  color: #666; font-size: 13px;
}
.g-foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Mobile */
@media (max-width: 900px) {
  .g-head { padding: 16px 0; }
  .g-nav { gap: 16px; flex-wrap: wrap; }
  .g-nav .g-live { padding: 5px 12px; }
  .g-intro { padding: 56px 0 44px; }
  .g-intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .g-section { padding: 60px 0; }
  .g-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px 18px; }
}
@media (max-width: 560px) {
  .g-wrap { padding: 0 20px; }
  .g-head .g-wrap { gap: 16px; }
  .g-nav a:not(.g-live) { display: none; }
  .card-frame { aspect-ratio: 16 / 12; }
  .card-frame iframe { transform: scale(0.22); }
}
