/* ============================================================
   CASE STUDY — Social School
   ============================================================ */

/* ── FONT ────────────────────────────────────────────────── */
@font-face {
  font-family: 'SimplerPro';
  src: url('../assets/social school/SimplerPro_V3 copy/SimplerPro_V3-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'SimplerPro';
  src: url('../assets/social school/SimplerPro_V3 copy/SimplerPro_V3-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: 'SimplerPro';
  src: url('../assets/social school/SimplerPro_V3 copy/SimplerPro_V3-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'SimplerPro';
  src: url('../assets/social school/SimplerPro_V3 copy/SimplerPro_V3-RegularItalic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'SimplerPro';
  src: url('../assets/social school/SimplerPro_V3 copy/SimplerPro_V3-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'SimplerPro';
  src: url('../assets/social school/SimplerPro_V3 copy/SimplerPro_V3-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: 'SimplerPro';
  src: url('../assets/social school/SimplerPro_V3 copy/SimplerPro_V3-Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
}
@font-face {
  font-family: 'SimplerPro';
  src: url('../assets/social school/SimplerPro_V3 copy/SimplerPro_V3-BlackItalic.otf') format('opentype');
  font-weight: 900;
  font-style: italic;
}

/* Apply to entire social school page */
body {
  font-family: 'SimplerPro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ── ANIMATIONS ─────────────────────────────────────────── */
.sc-anim-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.sc-anim-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.sc-anim-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.sc-anim-tape-1 {
  opacity: 0;
  transform: rotate(-2.5deg) translateX(-60px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.sc-anim-tape-2 {
  opacity: 0;
  transform: rotate(1.5deg) translateX(60px);
  transition: opacity 0.6s 0.15s ease, transform 0.6s 0.15s ease;
}

.sc-anim-up.in,
.sc-anim-left.in,
.sc-anim-right.in,
.sc-anim-tape-1.in,
.sc-anim-tape-2.in {
  opacity: 1;
  transform: none;
}

/* Hero laptop float */
@keyframes sc-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}

/* ── HERO ────────────────────────────────────────────────── */
.sc-hero {
  background: #3D0A1E;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 48px 60px;
  overflow: hidden;
}

.sc-hero-inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Laptop frame */
.sc-laptop {
  width: 100%;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.55));
  animation: sc-float 5s ease-in-out infinite;
}

.sc-laptop-screen {
  background: #111;
  border-radius: 14px 14px 0 0;
  border: 10px solid #2a2a2a;
  border-bottom: none;
  overflow: hidden;
  aspect-ratio: 16/10;
  position: relative;
}

.sc-laptop-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 5px;
  background: #444;
  border-radius: 0 0 4px 4px;
  z-index: 2;
}

.sc-laptop-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sc-laptop-chin {
  background: #2a2a2a;
  height: 18px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-laptop-notch {
  width: 50px; height: 6px;
  background: #222;
  border-radius: 3px;
}

.sc-laptop-base {
  background: linear-gradient(to bottom, #3a3a3a 0%, #2a2a2a 100%);
  height: 26px;
  border-radius: 0 0 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sc-laptop-base::before,
.sc-laptop-base::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 25%;
  height: 8px;
  background: #222;
  border-radius: 2px 2px 0 0;
}

.sc-laptop-base::before { right: 4%; }
.sc-laptop-base::after  { left: 4%; }

.sc-laptop-trackpad {
  width: 80px; height: 8px;
  background: #444;
  border-radius: 4px;
}

/* ── PROJECT INFO ────────────────────────────────────────── */
.sc-info {
  background: #fff;
  padding: 80px 48px;
  border-bottom: 1px solid rgba(97,19,44,.1);
}

.sc-info-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
}

.sc-title {
  font-family: 'SimplerPro', var(--serif);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(38px, 5vw, 68px);
  color: var(--maroon);
  line-height: 1.05;
  margin-bottom: 32px;
}

.sc-desc {
  font-size: 16px;
  line-height: 1.85;
  color: var(--maroon);
  opacity: .72;
  margin-bottom: 20px;
  max-width: 580px;
}

.sc-live-link {
  display: inline-block;
  margin-top: 16px;
  background: #F07020;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 14px 32px;
  border-radius: 3px;
  text-decoration: none;
  transition: background .25s, transform .2s;
}

.sc-live-link:hover {
  background: #c85a10;
  transform: translateY(-2px);
}

/* Meta table */
.sc-meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--maroon);
  opacity: .4;
  margin-bottom: 20px;
}

.sc-meta-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(97,19,44,.12);
}

.sc-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(97,19,44,.12);
  gap: 16px;
}

.sc-meta-key {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--maroon);
  opacity: .4;
  flex-shrink: 0;
}

.sc-meta-val {
  font-size: 14px;
  color: var(--maroon);
  font-weight: 400;
  text-align: left;
  direction: ltr;
}

a.sc-meta-val {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

a.sc-meta-val:hover {
  opacity: 0.6;
}

/* ── BEFORE SECTION ──────────────────────────────────────── */
.sc-before {
  background: #A8C8E8;
  padding: 60px 48px;
  position: relative;
}

.sc-before-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 32px;
  opacity: .75;
}

.sc-before-img {
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
  border-radius: 4px;
  overflow: hidden;
}

.sc-before-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── DUAL MOCKUPS ────────────────────────────────────────── */
.sc-dual {
  padding: 0;
  background: #fff;
}

.sc-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.sc-dual-item {
  overflow: hidden;
}

.sc-dual-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.sc-dual-item:hover img {
  transform: scale(1.03);
}

/* ── TAPE STRIPS PHOTO ───────────────────────────────────── */
.sc-tape {
  position: relative;
  background: #1a1a1a;
  overflow: hidden;
}

.sc-tape-wrap {
  position: relative;
}

.sc-tape-img {
  width: 100%;
  max-height: 90vh;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.sc-tape-no-img {
  min-height: 60vh;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.sc-tape-strips {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 15%;
  gap: 20px;
  pointer-events: none;
}

.sc-strip {
  color: #1a1a1a;
  font-size: clamp(14px, 1.8vw, 22px);
  font-weight: 800;
  letter-spacing: .05em;
  padding: 14px 0;
  white-space: nowrap;
  width: 120%;
  margin-right: -10%;
  font-family: 'SimplerPro', var(--sans);
  direction: rtl;
}

.sc-strip-orange { background: #F07020; }

.sc-strip:nth-child(2) {
  background: #F5D200;
  margin-top: 4px;
}

/* ── WEBSITE SHOWCASE ────────────────────────────────────── */
.sc-showcase {
  padding: 100px 48px;
  background: var(--off-white);
}

.sc-showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sc-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 20px;
}

.sc-section-h {
  font-family: 'SimplerPro', var(--serif);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(26px, 3.2vw, 46px);
  color: var(--maroon);
  line-height: 1.15;
  margin-bottom: 24px;
}

.sc-section-p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--maroon);
  opacity: .7;
  margin-bottom: 16px;
}

.sc-showcase-img img {
  width: 100%;
  border-radius: 4px;
  display: block;
  box-shadow: 0 16px 50px rgba(0,0,0,.12);
  transition: transform .4s ease;
}

.sc-showcase-img:hover img {
  transform: translateY(-6px);
}

/* ── FULL MOCKUP ─────────────────────────────────────────── */
.sc-full-mockup {
  background: #fff;
}

.sc-full-mockup img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80vh;
  object-fit: cover;
}

/* ── THREE QUALITIES ─────────────────────────────────────── */
.sc-qualities {
  padding: 100px 48px;
  background: #fff;
  border-top: 1px solid rgba(97,19,44,.08);
}

.sc-qualities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.sc-quality {
  border-top: 3px solid #F07020;
  padding-top: 28px;
}

.sc-quality h3 {
  font-family: 'SimplerPro', var(--serif);
  font-style: italic;
  font-weight: 200;
  font-size: 26px;
  color: var(--maroon);
  margin-bottom: 16px;
  line-height: 1.2;
}

.sc-quality p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--maroon);
  opacity: .68;
  margin-bottom: 20px;
}

.sc-quality ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sc-quality li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--maroon);
  opacity: .58;
  padding-right: 16px;
  position: relative;
}

.sc-quality li::before {
  content: '—';
  position: absolute;
  right: 0;
  color: #F07020;
  font-weight: 700;
}

/* ── ORANGE CTA ──────────────────────────────────────────── */
.sc-cta-orange {
  background: #F07020;
  padding: 120px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-cta-logo {
  text-align: right;
  direction: rtl;
}

.sc-cta-line {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  font-size: clamp(48px, 8vw, 110px);
  font-weight: 900;
  font-family: 'SimplerPro', var(--sans);
  padding: 6px 18px;
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -.02em;
  display: block;
}

.sc-cta-line--shift {
  transform: translateX(40px);
}

/* ── HERO FULL-WIDTH IMAGE ───────────────────────────────── */
.sc-hero-full {
  width: 100%;
  line-height: 0;
  margin-top: 0;
}

.sc-hero-full img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── HERO GIF — full-bleed, no bg ───────────────────────── */
.sc-hero-gif {
  width: 100%;
  line-height: 0;
}

.sc-hero-gif img,
.sc-hero-gif video {
  width: 100%;
  height: auto;
  display: block;
}

/* ── BEFORE SPLIT — image + text 2-col ──────────────────── */
.sc-before-split {
  background: #A8C8E8;
  padding: 100px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sc-before-split-img img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  border-radius: 4px;
}

.sc-before-title {
  font-family: 'SimplerPro', var(--serif);
  font-style: italic;
  font-weight: 200;
  font-size: clamp(24px, 2.8vw, 38px);
  color: #1a3060;
  line-height: 1.2;
  margin-bottom: 24px;
}

.sc-before-desc {
  font-size: 16px;
  line-height: 1.85;
  color: #1a3060;
  opacity: .82;
  margin-bottom: 16px;
}

/* ── SECTION 02 — gif + video 2-col ─────────────────────── */
.sc-section02 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: #fff;
  padding: 50px;
}

.sc-s02-gif {
  line-height: 0;
}

.sc-s02-gif img,
.sc-s02-gif video {
  width: 100%;
  height: auto;
  display: block;
}

/* don't double-pad videos inside sc-section02 */
.sc-section02 *:has(> video) {
  padding: 0;
  background: transparent;
}

/* ── PADDED MEDIA SECTION ────────────────────────────────── */
.sc-media-pad {
  background: #fff;
  padding: 80px;
}

.sc-media-pad.sc-media-alt {
  background: var(--off-white);
}

.sc-media-pad img,
.sc-media-pad video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ── 2-COLUMN MEDIA GRID ─────────────────────────────────── */
.sc-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 80px;
  background: var(--off-white);
}

.sc-media-grid.sc-media-grid-alt {
  background: #fff;
}

.sc-media-grid img,
.sc-media-grid video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* ── FULL-WIDTH IMAGE WITH WHITE PADDING ─────────────────── */
.sc-media-white {
  background: #fff;
  padding: 50px;
}

.sc-media-white img,
.sc-media-white video {
  width: 100%;
  height: auto;
  display: block;
}

/* ── WHITE PADDING AROUND ALL VIDEOS ────────────────────── */
*:has(> video) {
  background: #fff;
  padding: 50px;
  box-sizing: border-box;
}

*:has(> video) video {
  width: 100%;
  height: auto;
  display: block;
}

/* ── VIDEO CTA ───────────────────────────────────────────── */
.sc-cta-video {
  width: 100%;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .sc-hero { padding: 80px 24px 40px; }

  .sc-info { padding: 60px 24px; }
  .sc-info-grid { grid-template-columns: 1fr; gap: 40px; }

  .sc-before { padding: 40px 24px; }

  .sc-dual-grid { grid-template-columns: 1fr; }

  .sc-showcase { padding: 60px 24px; }
  .sc-showcase-inner { grid-template-columns: 1fr; gap: 40px; }

  .sc-qualities { padding: 60px 24px; }
  .sc-qualities-grid { grid-template-columns: 1fr; gap: 32px; }

  .sc-cta-orange { padding: 80px 24px; }

  .sc-cta-line { font-size: clamp(38px, 12vw, 72px); }
  .sc-cta-line--shift { transform: translateX(20px); }

  .sc-strip { font-size: 14px; }

  .sc-before-split {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    gap: 40px;
  }

  .sc-section02 {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 16px;
  }

  .sc-media-pad { padding: 40px 24px; }

  .sc-media-grid {
    grid-template-columns: 1fr;
    padding: 40px 24px;
    gap: 16px;
  }

  *:has(> video) {
    padding: 24px;
  }

  .sc-media-white {
    padding: 24px;
  }
}


/* The nav is fixed, so on a phone it sits on top of the opening image.
   Reserve its height here — clears the fixed nav. */
@media (max-width: 900px) {
  .sc-hero-gif {
    padding-top: 70px;
  }
}
