/* ============================================================
   style.css — every page's styles in one file
   ------------------------------------------------------------
   Most rules are shared by every page. A rule that only applies to
   some pages starts with  :where(.page-…)  — the class is on that
   page's <html> tag:
     index.html           → page-home
     about.html           → page-about
     froogle.html         → page-froogle
     sheridan-events.html → page-sheridan
   :where() adds no specificity, so these rules behave exactly as they
   did inside each page's old <style> tag.
   ============================================================ */

/* ↓ only on: froogle.html, sheridan-events.html */
/* ==========================================================
       Design tokens
       ========================================================== */
:root:where(.page-froogle, .page-sheridan) {
  --color-bg: #ffffff; /* page background */
  --color-nav-bg: #f5f7ff; /* header bar */
  --color-text: #0a0f29; /* deep text: headings + body */
  --color-muted: #64748b; /* slate muted text */
  --color-subtle: #475569; /* paragraphs (slightly darker slate) */

  /* ✏️ ACCENT: electric blue for links, badges and active states */
  --color-accent: #0038ff;
  --color-accent-tint: rgba(0, 56, 255, 0.08); /* blue wash: tags, hovers, cursor bubble */
  --color-accent-ring: rgba(0, 56, 255, 0.45); /* cursor bubble outline */
  --color-back-button: #f5f7ff; /* ✏️ ↖ back button circle: pale blue (same as the cards) */
  --color-back-arrow: #0038ff; /* ✏️ ↖ the arrow inside it */
  --color-card: #f5f7ff; /* cards: a faint blue so they show on white */
  --color-panel: #f5f7ff; /* big light-blue panels (callouts, demos, next card) */
  --color-paper: #ffffff; /* postcard + stamp paper */
  --color-line: rgba(0, 56, 255, 0.25); /* subtle blue borders */


  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-logo: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-note: "Instrument Serif", Georgia, serif; /* postcard note */

  --content-max: 1200px;
  --gutter: 100px; /* side padding (desktop) */

}

@media (prefers-color-scheme: dark) {

  :root:where(.page-froogle, .page-sheridan) {
    --color-bg: #060608;
    --color-nav-bg: #1a1a23;
    --color-text: #e4e4e7;
    --color-muted: #86868d;
    --color-subtle: #c8c8cf;

    --color-accent: #7b96ff; /* lighter blue so it reads on black */
    --color-accent-tint: rgba(123, 150, 255, 0.12);
    --color-accent-ring: rgba(123, 150, 255, 0.55);
    --color-back-button: rgba(123, 150, 255, 0.14);
    --color-back-arrow: #7b96ff;
    --color-card: #12121a;
    --color-panel: rgba(123, 150, 255, 0.12);
    --color-paper: #12121a;

  }
}

/* ↓ only on: about.html */
/* ==========================================================
       Design tokens
       ========================================================== */
:root:where(.page-about) {
  --color-bg: #ffffff; /* page background */
  --color-nav-bg: #f5f7ff; /* header bar */
  --color-text: #0a0f29; /* deep text: headings + body */
  --color-muted: #64748b; /* slate muted text */
  --color-subtle: #475569; /* paragraphs (slightly darker slate) */
  --color-card: #f5f7ff; /* cards: a faint blue so they show on white */
  --color-paper: #ffffff; /* postcard + stamp paper */
  --color-line: rgba(0, 56, 255, 0.25); /* subtle blue borders */

  /* ✏️ ACCENT: electric blue for links, badges and active states */
  --color-accent: #0038ff;
  --color-accent-tint: rgba(0, 56, 255, 0.08); /* blue wash: tags, hovers, cursor bubble */
  --color-accent-ring: rgba(0, 56, 255, 0.45); /* cursor bubble outline */

  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-logo: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-note: "Instrument Serif", Georgia, serif; /* postcard note */

  --content-max: 1200px;
  --gutter: 100px; /* side padding (desktop) */

}

@media (prefers-color-scheme: dark) {

  :root:where(.page-about) {
    --color-bg: #060608;
    --color-nav-bg: #1a1a23;
    --color-text: #e4e4e7;
    --color-muted: #86868d;
    --color-subtle: #c8c8cf;
    --color-card: #12121a;
    --color-paper: #12121a;

    --color-accent: #7b96ff; /* lighter blue so it reads on black */
    --color-accent-tint: rgba(123, 150, 255, 0.12);
    --color-accent-ring: rgba(123, 150, 255, 0.55);

  }
}

/* ↓ only on: index.html */
/* ==========================================================
       Design tokens (pulled from the live Framer site)
       ========================================================== */
:root:where(.page-home) {
  --color-bg: #ffffff; /* page background */
  --color-nav-bg: #f5f7ff; /* header bar */
  --color-text: #0a0f29; /* deep text: headings + body */
  --color-muted: #64748b; /* slate muted text */
  --color-subtle: #475569; /* paragraphs (slightly darker slate) */
  --color-card: #f5f7ff; /* cards: a faint blue so they show on white */
  --color-paper: #ffffff; /* postcard + stamp paper */
  --color-line: rgba(0, 56, 255, 0.25); /* subtle blue borders */

  /* ✏️ ACCENT: electric blue for links, badges and active states */
  --color-accent: #0038ff;
  --color-accent-tint: rgba(0, 56, 255, 0.08); /* blue wash: tags, hovers, cursor bubble */
  --color-accent-ring: rgba(0, 56, 255, 0.45); /* cursor bubble outline */
  --color-pill: #f5f7ffeb; /* "Coming soon" label (slightly see-through) */

  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-logo: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-note: "Instrument Serif", Georgia, serif; /* postcard note */

  --content-max: 1200px; /* hero content width */
  --gutter: 100px; /* side padding (desktop) */

}

@media (prefers-color-scheme: dark) {

  :root:where(.page-home) {
    --color-bg: #060608;
    --color-nav-bg: #1a1a23;
    --color-text: #e4e4e7;
    --color-muted: #86868d;
    --color-subtle: #c8c8cf;
    --color-card: #12121a;
    --color-paper: #12121a;

    --color-accent: #7b96ff; /* lighter blue so it reads on black */
    --color-accent-tint: rgba(123, 150, 255, 0.12);
    --color-accent-ring: rgba(123, 150, 255, 0.55);
    --color-pill: #1a1a23eb;

  }
}

/* ==========================================================
       Base
       ========================================================== */
*,
      *::before,
      *::after {
  box-sizing: border-box;

}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;

}

/* ↓ only on: froogle.html, sheridan-events.html */
:where(.page-froogle, .page-sheridan) img {
  display: block;
  max-width: 100%;
  height: auto;

}

/* ↓ only on: index.html, about.html */
:where(.page-home, .page-about) img {
  display: block;
  max-width: 100%;

}

a {
  color: inherit;

}

@media (prefers-reduced-motion: no-preference) {

  /* ↓ only on: froogle.html, sheridan-events.html */
  html:where(.page-froogle, .page-sheridan) {
    scroll-behavior: smooth;

  }
}

/* ↓ only on: about.html */
/* Hidden on screen, still read by screen readers & search engines */
:where(.page-about) .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;

}

/* ==========================================================
       Header / nav (fixed to the top)
       ========================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  background: var(--color-nav-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 20px var(--gutter);
  font-size: 14px;

}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--content-max);
  margin: 0 auto;

}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-logo);
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;

}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex: 1;
  max-width: 820px;

}

.tagline {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.2;
  white-space: nowrap;

}

.nav-links {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.8;

}

.nav-links a {
  text-decoration: none;
  white-space: nowrap;

}

.nav-links a:hover {
  color: var(--color-accent);
  text-decoration: underline;

}

.nav-links a[aria-current="page"] {
  color: var(--color-accent);
  text-decoration: line-through;

}

/* Hamburger: hidden on desktop */
.menu-toggle {
  display: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;

}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;

}

/* ↓ only on: froogle.html, sheridan-events.html */
/* ==========================================================
       Case study layout: sticky sidebar + reading column
       ========================================================== */
:where(.page-froogle, .page-sheridan) .case {
  display: grid;
  /* ✏️ sidebar width + reading column width; gap = space between them */
  grid-template-columns: 160px minmax(0, 960px);
  justify-content: center;
  gap: 48px;
  padding: 120px 40px 0; /* ✏️ first number = space between the header and the case study */

}

/* ---- Sticky sidebar (table of contents) ---- */
:where(.page-froogle, .page-sheridan) .toc {
  position: sticky;
  top: 120px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 40px;
  font-size: 14px;

}

:where(.page-froogle, .page-sheridan) .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;

}

:where(.page-froogle, .page-sheridan) .back-link:hover {
  color: var(--color-accent);
  gap: 12px; /* arrow nudges left */

}

:where(.page-froogle, .page-sheridan) .toc-title {
  margin: 0 0 14px;
  color: var(--color-muted);
  font-family: var(--font-logo);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;

}

:where(.page-froogle, .page-sheridan) .toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;

}

:where(.page-froogle, .page-sheridan) .toc-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.25s ease;

}

/* The little line in front of each item. It grows when active. */
:where(.page-froogle, .page-sheridan) .toc-link::before {
  content: "";
  flex: none;
  width: 12px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  transition: width 0.3s ease, opacity 0.3s ease;

}

:where(.page-froogle, .page-sheridan) .toc-link:hover {
  color: var(--color-text);

}

:where(.page-froogle, .page-sheridan) .toc-link.is-active {
  color: var(--color-accent);
  font-weight: 500;

}

:where(.page-froogle, .page-sheridan) .toc-link.is-active::before {
  width: 28px;
  opacity: 1;

}

/* ↓ only on: sheridan-events.html */
/* ==========================================================
       Hero 
       ========================================================== */
:where(.page-sheridan) .case-hero {
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 104px var(--gutter) 0; /* top space clears the fixed header */

}

/* ↓ only on: froogle.html */
/* ==========================================================
       Hero
       ========================================================== */
/* Original Framer layout: text on the left, phones on the right */
:where(.page-froogle) .case-hero {
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 150px var(--gutter) 0; /* top space clears the fixed header */

}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 7px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }

}

/* ↓ only on: froogle.html, sheridan-events.html */
:where(.page-froogle, .page-sheridan) .case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 56px;

}

/* ↓ only on: froogle.html, sheridan-events.html */
:where(.page-froogle, .page-sheridan) .case-title {
  margin: 0;
  font-family: var(--font-logo);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;

}

/* Outcome headline: a little bigger and tighter than the plain title */
:where(.page-sheridan) .case-title {
  /* shrinks a little on smaller laptops so it stays on one line */
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.02em;

}

/* ↓ only on: froogle.html, sheridan-events.html */
/* Small round blue ↖ button back to the home page */
:where(.page-froogle, .page-sheridan) .back-circle {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 0 40px;
  border-radius: 50%;
  background: var(--color-back-button);
  color: var(--color-back-arrow);
  transition: filter 0.2s ease, transform 0.2s ease;

}

:where(.page-froogle, .page-sheridan) .back-circle:hover {
  filter: brightness(0.95);
  transform: translate(-2px, -2px);

}

/* Video sits in the hero's right column (like Froogle's phones),
   lined up with the bottom of the project details */
:where(.page-sheridan) .case-hero-grid {
  /* ✏️ video size: raise the second number for a bigger laptop */
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center; /* text is centered against the laptop */
  gap: 48px;

}

/* On wide screens, "Try it yourself" hangs below the laptop without
   taking up height, so the text centers on the laptop itself */
@media (min-width: 1100px) {
  :where(.page-sheridan) .case-hero-video {
    position: relative;

  }

  /* ✏️ nudges the text block down from the laptop's center */
  :where(.page-sheridan) .case-hero-grid > div:first-child {
    position: relative;
    top: 20px;

  }

  :where(.page-sheridan) .case-hero-video .device-caption {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

  }

}

:where(.page-sheridan) .showcase.case-hero-video {
  max-width: none;
  margin: 0;
  padding: 0;

}

:where(.page-sheridan) .case-hero-video .showcase-stage {
  padding: 0;
  border-radius: 0;

}

/* ---- Hero stage: a tinted panel that holds the laptop ---- */
:where(.page-sheridan) .showcase {
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin: 72px auto 0; /* space between the project details and the video */
  padding: 0 var(--gutter);

}

:where(.page-sheridan) .showcase-stage {
  overflow: hidden;
  padding: 0 9%;
  border-radius: 28px;
  background: transparent;

}

/* ---- MacBook mockup with the screen recording inside ---- */
:where(.page-sheridan) .device {
  max-width: 980px;
  margin: 0 auto -1px; /* lets the base sit right on the stage's bottom edge */

}

:where(.page-sheridan) .device-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;

}

:where(.page-sheridan) .device-lid {
  position: relative;
  padding: 2.4% 2.4% 3.2%;
  border: 1px solid #3b3b44;
  border-radius: 22px 22px 6px 6px;
  background: #16161b;
  box-shadow: inset 0 0 0 2px #26262d,
    0 40px 80px -40px rgba(10, 15, 41, 0.45);

}

/* Camera dot */
:where(.page-sheridan) .device-lid::before {
  content: "";
  position: absolute;
  top: 1%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f3340;
  transform: translate(-50%, 50%);

}

:where(.page-sheridan) .device-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 4px;
  background: #f5f7ff;

}

/* Fallback: a screenshot behind the live site (shows while it loads,
         or if the site can't be embedded) */
:where(.page-sheridan) .device-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px;
  background: #f5f7ff url("assets/projects/sheridan-events.jpg") top center / cover no-repeat;

}

:where(.page-sheridan) .device-fallback a {
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-logo);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;

}

/* The live site. script.js sets --frame-scale so it's drawn at
         desktop width and shrunk to fit the screen. */
:where(.page-sheridan) .device-screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / var(--frame-scale, 1));
  height: calc(100% / var(--frame-scale, 1));
  border: 0;
  transform: scale(var(--frame-scale, 1));
  transform-origin: 0 0;

}

/* Aluminium base with the little thumb notch */
:where(.page-sheridan) .device-base {
  position: relative;
  width: 114%;
  height: 18px;
  margin-left: -7%;
  border-radius: 2px 2px 18px 18px / 2px 2px 100% 100%;
  background: linear-gradient(#e6e8ee, #b7bac4 70%, #9b9ea8);

}

:where(.page-sheridan) .device-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 15%;
  height: 7px;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(#a8abb5, #c9ccd4);
  transform: translateX(-50%);

}

:where(.page-sheridan) .device-caption {
  margin: 28px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  text-align: center;

}

:where(.page-sheridan) .device-caption a {
  color: var(--color-accent);
  font-weight: 500;
  text-decoration: none;

}

:where(.page-sheridan) .device-caption a:hover {
  text-decoration: underline;

}

/* ---- Project Summary card ---- */
/* On Sheridan it sits inside the reading column, lined up with the sections */
:where(.page-froogle, .page-sheridan) .case-content > .summary {
  max-width: none;
  margin: 0;
  padding: 56px 0 0; /* ✏️ space between the hero and the summary */

}

:where(.page-froogle, .page-sheridan) .summary {
  max-width: var(--content-max);
  margin: 96px auto 0;
  padding: 0 var(--gutter);
  scroll-margin-top: 100px;

}

:where(.page-froogle, .page-sheridan) .summary-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 20px;
  background: var(--color-card);
  box-shadow: 0 1px 2px rgba(10, 15, 41, 0.05),
    0 20px 50px -30px rgba(10, 15, 41, 0.25);

}

:where(.page-froogle, .page-sheridan) .summary-card li {
  padding: 36px;

}

:where(.page-froogle, .page-sheridan) .summary-card li + li {
  border-left: 1px solid var(--color-line);

}

:where(.page-froogle, .page-sheridan) .summary-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--color-accent);
  font-family: var(--font-logo);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;

}

:where(.page-froogle, .page-sheridan) .summary-label span {
  color: var(--color-muted);
  font-weight: 500;

}

:where(.page-froogle, .page-sheridan) .summary-card p:last-child {
  margin: 0;
  color: var(--color-subtle);
  font-size: 16px;
  line-height: 1.7;

}

/* ↓ only on: froogle.html, sheridan-events.html */
:where(.page-froogle, .page-sheridan) .case-tagline {
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 25px;
  line-height: 1.6;
  letter-spacing: -0.02em;

}

/* Role / Team / Timeline / Project type: wraps like the original */
:where(.page-froogle, .page-sheridan) .case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 44px;
  margin: 56px 0 0;

}

/* Sheridan: Role and Team get a line each; Timeline + Platform share the last */
:where(.page-sheridan) .case-meta > div:nth-child(-n + 2) { flex-basis: 100%; }

:where(.page-froogle, .page-sheridan) .case-meta dt {
  margin-bottom: 10px;
  color: var(--color-muted);
  font-size: 15px;
  text-transform: uppercase;

}

:where(.page-froogle, .page-sheridan) .case-meta dd {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;

}

/* header.png has a lot of empty (transparent) space around the
         phones, so zoom in on them and clip the edges */
:where(.page-froogle) .case-hero-image {
  margin: 0;
  overflow: hidden;

}

:where(.page-froogle) .case-hero-image img {
  width: 100%;
  transform: scale(1.45); /* ✏️ phone size: bigger number = bigger phones */

}

/* ↓ only on: froogle.html, sheridan-events.html */
/* ==========================================================
       Sections & shared content blocks
       ========================================================== */
:where(.page-froogle, .page-sheridan) .case-section {
  padding-top: 120px;
  scroll-margin-top: 100px; /* so the fixed header doesn't cover the title */

}

:where(.page-froogle, .page-sheridan) .eyebrow {
  margin: 0 0 12px;
  color: var(--color-muted);
  font-family: var(--font-logo);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;

}

:where(.page-froogle, .page-sheridan) .section-title {
  margin: 0 0 24px;
  font-family: var(--font-logo);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;

}

:where(.page-froogle, .page-sheridan) .sub-title {
  margin: 0 0 12px;
  font-family: var(--font-logo);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;

}

:where(.page-froogle, .page-sheridan) .case-section p {
  margin: 0 0 20px;
  color: var(--color-subtle);
  font-size: 18px;
  line-height: 1.75;

}

:where(.page-froogle, .page-sheridan) .case-section strong {
  color: var(--color-text);
  font-weight: 600;

}

/* ↓ only on: froogle.html */
/* Yellow highlighter pen behind <strong class="hl"> phrases
   (plain <strong> stays bold only): covers the lower ~60% of
   the text with slightly ragged, uneven ends, like a real marker stroke */
:where(.page-froogle, .page-sheridan) .case-section strong.hl {
  --highlighter: rgba(250, 220, 90, 0.32); /* ✏️ highlighter colour (last number = strength) */
  padding: 0 0.12em;
  margin: 0 -0.12em; /* stroke pokes past the words without pushing text apart */
  border-radius: 0.2em 0.5em 0.3em 0.6em / 0.6em 0.3em 0.5em 0.2em;
  background-image: linear-gradient(
    100deg,
    transparent 0.2em,
    var(--highlighter) 0.35em,
    var(--highlighter) calc(100% - 0.4em),
    transparent calc(100% - 0.15em)
  );
  background-size: 100% 62%;
  background-position: 0 88%;
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;

}

@media (prefers-color-scheme: dark) {
  :where(.page-froogle, .page-sheridan) .case-section strong.hl {
    --highlighter: rgba(250, 220, 90, 0.2);

  }
}

/* ↓ only on: froogle.html */
/* Images with captions */
:where(.page-froogle, .page-sheridan) .case-figure {
  margin: 40px 0;

}

:where(.page-froogle, .page-sheridan) .case-figure img {
  width: 100%; /* square corners: transparent PNGs show the page */

}

:where(.page-froogle, .page-sheridan) .case-figure figcaption {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;

}

/* ↓ only on: froogle.html, sheridan-events.html */
/* The hackathon prompt */
:where(.page-froogle, .page-sheridan) .prompt {
  margin: 32px 0;
  padding: 4px 0 4px 28px;
  border-left: 2px solid var(--color-accent);
  font-family: var(--font-logo);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.45;

}

/* Panels that hold the little UI recreations */
:where(.page-sheridan) .ui-demo {
  margin: 32px 0 0;
  padding: 32px;
  border-radius: 20px;
  background: var(--color-panel);
  --color-card: var(--color-paper); /* white cards inside the blue panel */

}

:where(.page-sheridan) .ui-demo figcaption {
  margin-top: 20px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;

}

/* Event card recreation + labels pointing at its parts */
:where(.page-sheridan) .anatomy {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  align-items: start; /* list starts level with the top of the card */
  gap: 40px;

}

:where(.page-sheridan) .anatomy-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding-top: 44px !important; /* sits a little below the card's top edge */
  padding: 0;
  list-style: none;
  counter-reset: part;

}

:where(.page-sheridan) .anatomy-list li {
  display: flex;
  gap: 14px;
  color: var(--color-subtle);
  font-size: 19px;
  line-height: 1.45;
  counter-increment: part;

}

:where(.page-sheridan) .anatomy-list li::before {
  content: counter(part);
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;

}

:where(.page-sheridan) .anatomy-list strong {
  color: var(--color-text);
  font-weight: 600;

}

/* Numbered markers on the card itself */
:where(.page-sheridan) .marker {
  position: absolute;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-card);
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;

}

/* Real event-card screenshot with numbered dots on top
   ✏️ top/left are percentages of the card image */
:where(.page-sheridan) .card-shot {
  position: relative;
  max-width: 320px;

}

:where(.page-sheridan) .card-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(10, 15, 41, 0.12);

}

:where(.page-sheridan) .card-shot .marker {
  transform: translate(-50%, -50%);

}

:where(.page-sheridan) .card-shot .marker-1 { top: 8%; left: 3%; }
:where(.page-sheridan) .card-shot .marker-2 { top: 41.5%; left: 3%; }
:where(.page-sheridan) .card-shot .marker-3 { top: 66%; left: 3%; }
:where(.page-sheridan) .card-shot .marker-4 { top: 92%; left: 67.5%; }

/* Live-site UI screenshots get a soft frame so they read as screens */
:where(.page-sheridan) .case-figure .ui-shot {
  border: 1px solid var(--color-line);
  border-radius: 14px;

}

/* ---- 4 → 1: the four source sites, then the live site ---- */
:where(.page-sheridan) .four-to-one {
  margin: 48px 0 0;

}

:where(.page-sheridan) .source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;

}

:where(.page-sheridan) .source-grid li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;

}

:where(.page-sheridan) .source-grid img,
:where(.page-sheridan) .browser-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-line);
  border-radius: 12px;

}

:where(.page-sheridan) .source-grid span {
  color: var(--color-muted);
  font-size: 13px;

}

/* 6 sources: 3 across on wider screens */
@media (min-width: 700px) {
  :where(.page-sheridan) .source-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Sources the site doesn't pull from yet */
:where(.page-sheridan) .source-grid .is-pending img { opacity: 0.45; filter: grayscale(1); }
:where(.page-sheridan) .source-grid em {
  display: block;
  width: fit-content;
  margin-top: 6px;
  padding: 1px 8px;
  border: 1px dashed var(--color-line);
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

:where(.page-sheridan) .case-section .four-to-one-arrow {
  margin: 20px 0;
  color: var(--color-accent);
  font-size: 28px;
  line-height: 1;
  text-align: center;

}

:where(.page-sheridan) .browser-shot img {
  border-color: var(--color-accent);
  box-shadow: 0 16px 40px rgba(0, 56, 255, 0.12);

}

:where(.page-sheridan) .four-to-one figcaption {
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 14px;

}

/* Process: sketch → mid-fi wireframe → shipped */
:where(.page-sheridan) .process-steps {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(.page-sheridan) .process-steps > li {
  display: grid;
  gap: 12px;
  align-content: start;
  margin: 0;
}

:where(.page-sheridan) .case-section .process-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-logo);
  font-size: 15px;
  font-weight: 600;
}

:where(.page-sheridan) .process-label span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
}

:where(.page-sheridan) .process-steps img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-line);
  border-radius: 12px;
}

/* The sketch keeps its own shape when stacked on phones */
:where(.page-sheridan) .process-crop { aspect-ratio: 976 / 657; }

/* Sketch and wireframe share one row; widths follow their proportions so
   the images end at the same height. Shipped gets its own row below. */
@media (min-width: 701px) {
  :where(.page-sheridan) .process-steps {
    grid-template-columns: minmax(0, 1.49fr) minmax(0, 2.55fr);
    column-gap: 16px;
  }
  :where(.page-sheridan) .process-steps > li:last-child { grid-column: 1 / -1; }
  /* The sketch fills its row and is cropped at the bottom, so it ends
     exactly where the wireframes end (their height sets the row) */
  :where(.page-sheridan) .process-steps > li:first-child { grid-template-rows: 1fr; }
  :where(.page-sheridan) .process-crop { position: relative; min-height: 0; aspect-ratio: auto; }
  :where(.page-sheridan) .process-crop img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }
}
:where(.page-sheridan) .process-steps img.process-shipped { max-width: none; }

:where(.page-sheridan) .process-pair {
  display: grid;
  /* widths match the two images' proportions so they end at the same height */
  grid-template-columns: minmax(0, 732fr) minmax(0, 690fr);
  gap: 8px;
  align-items: start;
}

/* "Students asked for reminders…": same as body text, above the shipped row */
:where(.page-sheridan) .case-section .process-lead { margin: 8px 0 4px; }

/* Shipped screen + chat bubble side by side */
:where(.page-sheridan) .shipped-row {
  display: grid;
  /* screen and bubble split the full width, so neither leaves empty space */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

@media (max-width: 700px) {
  :where(.page-sheridan) .shipped-row { grid-template-columns: 1fr; gap: 20px; }
  :where(.page-sheridan) .shipped-row .chat-quote { order: -1; }
}

/* A student's request, drawn as a WhatsApp-style chat bubble (Decision 3, step 3) */
:where(.page-sheridan) .chat-quote {
  --chat-bubble: var(--color-panel); /* soft tint so it reads as a bubble on the white page */
  --chat-ink: #111b21;
  --chat-meta: #667781;
  --chat-name: #a5662a;
  margin: 0;
  padding-left: 8px; /* room for the bubble's tail */
}

@media (prefers-color-scheme: dark) {
  :where(.page-sheridan) .chat-quote {
    --chat-bubble: #202c33;
    --chat-ink: #e9edef;
    --chat-meta: #8696a0;
    --chat-name: #e2a76f;
  }
}

:where(.page-sheridan) .chat-bubble {
  position: relative;
  width: 100%;
  padding: 10px 14px 22px;
  border-radius: 0 12px 12px 12px;
  background: var(--chat-bubble);
  color: var(--chat-ink);
}

/* the little tail on the top-left corner */
:where(.page-sheridan) .chat-bubble::before {
  content: "";
  position: absolute;
  top: 0;
  left: -8px;
  border-top: 10px solid var(--chat-bubble);
  border-left: 8px solid transparent;
}

:where(.page-sheridan) .case-section .chat-sender {
  margin: 0 0 4px;
  color: var(--chat-name);
  font-size: 14px;
  font-weight: 600;
}

:where(.page-sheridan) .case-section .chat-text {
  margin: 0;
  color: var(--chat-ink);
  font-size: 15px;
  line-height: 1.45;
}

:where(.page-sheridan) .chat-time {
  position: absolute;
  right: 12px;
  bottom: 6px;
  color: var(--chat-meta);
  font-size: 11px;
}

:where(.page-sheridan) .chat-quote figcaption {
  margin-top: 10px;
  color: var(--chat-meta);
  font-size: 13px;
}

/* Proof of Concept: heading on top, then screenshot left + paragraph right (stacked on phones) */
:where(.page-sheridan) .proof-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

:where(.page-sheridan) .proof .whatsapp-shot { margin: 0; }
:where(.page-sheridan) .proof .whatsapp-shot img { max-width: none; }
:where(.page-sheridan) .proof-row p { margin: 0; }

@media (max-width: 800px) {
  :where(.page-sheridan) .proof-row { grid-template-columns: 1fr; gap: 20px; }
  :where(.page-sheridan) .proof-row > div { order: -1; }
}

/* Decision numbers: a filled circle before each title */
:where(.page-sheridan) .sub-title:has(.sub-num) {
  display: flex;
  align-items: center;
  gap: 12px;
}

:where(.page-sheridan) .sub-num {
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

/* WhatsApp group screenshot */
:where(.page-sheridan) .whatsapp-shot img {
  display: block;
  width: 100%;
  max-width: 520px;
  height: auto;
  border: 1px solid var(--color-line);
  border-radius: 14px;
}

:where(.page-sheridan) .case-section .process-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ↓ only on: froogle.html */
/* Research cards (01 / 02) */
:where(.page-froogle, .page-sheridan) .research-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0 48px;

}

/* ↓ only on: sheridan-events.html — 3 channel cards in a row */
:where(.page-sheridan) .research-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));

}

:where(.page-froogle, .page-sheridan) .research-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 16px;
  background: var(--color-card);

}

:where(.page-froogle, .page-sheridan) .research-card .card-number {
  margin: 0 0 16px;
  color: var(--color-accent);
  font-family: var(--font-logo);
  font-size: 14px;
  font-weight: 600;

}

:where(.page-froogle, .page-sheridan) .research-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-logo);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;

}

:where(.page-froogle, .page-sheridan) .case-section .research-card p {
  flex: 1;
  font-size: 16px;
  line-height: 1.7;

}

:where(.page-froogle, .page-sheridan) .case-section .research-card .card-number {
  flex: none; /* only the paragraph stretches, not the number */

}

:where(.page-froogle, .page-sheridan) .research-card cite {
  color: var(--color-muted);
  font-size: 13px;
  font-style: normal;

}

/* ---- Hero captions (under the phones) ---- */
:where(.page-froogle) .hero-callouts {
  position: relative; /* sits above the zoomed-in image */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;

}

:where(.page-froogle) .hero-callout {
  display: inline-flex;
  align-items: center;
  gap: 8px;

}

:where(.page-froogle) .hero-callout-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;

}

/* colours picked from the two cards in header.png */
:where(.page-froogle) .hero-callout-dot--before {
  background: #dbe07a;

}

:where(.page-froogle) .hero-callout-dot--after {
  background: #e3b6e8;

}

/* ---- Before / After image pair (The Pivot) ---- */
:where(.page-froogle) .image-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 40px 0;

}

:where(.page-froogle) .image-pair figure {
  margin: 0;

}

:where(.page-froogle) .image-pair img {
  width: 100%;
  height: auto; /* square corners: transparent PNGs */

}

:where(.page-froogle) .image-pair figcaption {
  margin-top: 12px;
  color: var(--color-muted);
  font-family: var(--font-logo);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;

}

/* ---- Step labels under the pre-purchase flow ----
   The 5 screens in pc - pre.png are evenly spaced with ~4% gaps,
   so a 5-column grid with the same gap lines each label up under its screen. */
:where(.page-froogle) .flow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 4%;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-family: var(--font-logo);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;

}

:where(.page-froogle) .flow-steps li {
  position: relative;

}

/* small → in the gap before each label */
:where(.page-froogle) .flow-steps li + li::before {
  content: "→";
  position: absolute;
  right: 100%;
  width: 25%; /* ≈ the 4% gap, measured against one column */
  text-align: center;
  color: var(--color-line);

}

/* ---- Key Insight callout ---- */
:where(.page-froogle, .page-sheridan) .insight-callout {
  position: relative;
  margin: 48px 0;
  padding: 36px 40px;
  border-radius: 20px;
  background: var(--color-panel);

}

:where(.page-froogle, .page-sheridan) .insight-callout .callout-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--color-accent);
  font-family: var(--font-logo);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;

}

:where(.page-froogle, .page-sheridan) .insight-callout blockquote {
  margin: 0;
  font-family: var(--font-logo);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.45;

}

/* ---- Before / After comparison (The Pivot) ---- */
:where(.page-froogle, .page-sheridan) .compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 16px;
  margin: 40px 0;

}

:where(.page-froogle, .page-sheridan) .compare-card {
  padding: 32px;
  border-radius: 20px;

}

:where(.page-froogle, .page-sheridan) .compare-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 500;

}

:where(.page-froogle, .page-sheridan) .compare-card .compare-label {
  margin: 0 0 4px;
  font-family: var(--font-logo);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;

}

:where(.page-froogle, .page-sheridan) .compare-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.5;

}

:where(.page-froogle, .page-sheridan) .compare-card li {
  position: relative;
  padding-left: 28px; /* room for the ✕ / ✓ mark */

}

:where(.page-froogle, .page-sheridan) .compare-card li::before {
  position: absolute;
  left: 0;
  font-weight: 600;

}

/* "Before" card: quiet, crossed-out feeling */
:where(.page-froogle, .page-sheridan) .compare-before {
  background: var(--color-card);
  color: var(--color-muted);

}

:where(.page-froogle, .page-sheridan) .compare-before h3 {
  text-decoration: line-through;
  text-decoration-thickness: 1px;

}

:where(.page-froogle, .page-sheridan) .compare-before li::before {
  content: "✕";

}

/* "After" card: the decision we made */
:where(.page-froogle, .page-sheridan) .compare-after {
  background: #0038ff; /* electric blue in light + dark mode */
  color: #fff;

}

:where(.page-froogle, .page-sheridan) .compare-after .compare-label {
  color: #c9d5ff; /* pale blue */

}

:where(.page-froogle, .page-sheridan) .compare-after li::before {
  content: "✓";
  color: #c9d5ff;

}

:where(.page-froogle, .page-sheridan) .compare-arrow {
  display: grid;
  place-items: center;
  color: var(--color-muted);
  font-size: 22px;

}

/* ---- Solution loops ---- */
:where(.page-froogle, .page-sheridan) .loop {
  margin-top: 56px;

}

:where(.page-froogle, .page-sheridan) .case-section .loop-tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--color-accent-tint);
  color: var(--color-accent);
  font-family: var(--font-logo);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;

}

/* ↓ only on: froogle.html, sheridan-events.html */
/* ---- Takeaways ---- */
/* ↓ only on: froogle.html */
/* Closing "what I'd test next" line under the takeaways */
:where(.page-froogle, .page-sheridan) .case-section .next-step {
  margin-top: 64px;

}

/* ==========================================================
       Next project link (text only, end of the case study)
       Uses the existing .eyebrow label + .case-title type size.
       ========================================================== */
:where(.page-froogle, .page-sheridan) .next-link-section {
  /* same width + side padding as the hero and footer, so it lines up on the left */
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin: 160px auto 0; /* same gap the old next-project banner used */
  padding: 0 var(--gutter);

}

:where(.page-froogle, .page-sheridan) .next-link {
  display: inline-flex;
  flex-direction: column;
  color: var(--color-text);
  text-decoration: none;

}

:where(.page-froogle, .page-sheridan) .next-link-name {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--font-logo);
  font-size: 48px; /* same as .case-title */
  font-weight: 400;
  line-height: 1.2;

}

:where(.page-froogle, .page-sheridan) .next-link-text {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.3s ease;

}

:where(.page-froogle, .page-sheridan) .next-link-arrow {
  display: inline-block;
  transition: transform 0.3s ease;

}

/* Hover: subtle underline on the name, arrow nudges right */
:where(.page-froogle, .page-sheridan) .next-link:hover .next-link-text,
:where(.page-froogle, .page-sheridan) .next-link:focus-visible .next-link-text {
  text-decoration-color: currentColor;

}

:where(.page-froogle, .page-sheridan) .next-link:hover .next-link-arrow,
:where(.page-froogle, .page-sheridan) .next-link:focus-visible .next-link-arrow {
  transform: translateX(6px);

}

:where(.page-froogle, .page-sheridan) .next-link:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 6px;

}

/* ↓ only on: about.html */
/* ==========================================================
       About section 
       ========================================================== */
:where(.page-about) .about {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 799px; /* same height as the live page */
  padding: 65px 150px 0; /* top space clears the fixed header */

}

:where(.page-about) .about-inner {
  display: flex;
  align-items: center;
  gap: 50px;
  width: 100%;
  max-width: 900px;

}

/* Tall rounded "pill" photo on desktop */
:where(.page-about) .about-photo {
  flex: none;
  width: 305px;
  height: 511px;
  border-radius: 152px;
  overflow: hidden;

}

:where(.page-about) .about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

:where(.page-about) .about-text {
  flex: 1;
  min-width: 0;
  color: var(--color-subtle);
  font-size: 16px;
  line-height: 1.8;

}

:where(.page-about) .about-text p {
  margin: 0 0 20px;

}

:where(.page-about) .about-text p:last-child {
  margin-bottom: 0;

}

:where(.page-about) .about-text strong {
  font-weight: 700;

}

/* ↓ only on: index.html */
/* ==========================================================
       Hero
       ========================================================== */
:where(.page-home) .hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 183px var(--gutter) 0; /* top space clears the fixed header */

}

:where(.page-home) .hero-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
  max-width: var(--content-max);

}

/* Photo slideshow on the left, text on the right */
:where(.page-home) .hero-top {
  display: flex;
  align-items: flex-start;
  gap: 48px;

}

:where(.page-home) .hero-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-width: 0;

}

/* ---- Photo slideshow ----
       Height = height of the text beside it (script.js measures it and
       sets --intro-h). Width follows from home1's shape (980 × 918). */
:where(.page-home) .hero-photos {
  position: relative;
  flex: none;
  /* skip the greeting's 12px top padding so the photo lines up
     with the top of "Hello, I'm Rita," */
  margin-top: 12px;
  height: calc(var(--intro-h, 200px) - 12px);
  aspect-ratio: 980 / 918;
  border-radius: 15px;
  z-index: 5; /* keeps the hover label ABOVE the headline text */

}

/* Crops the photos (so the starburst can poke out past the corner) */
:where(.page-home) .hero-photos-frame {
  position: absolute;
  inset: 0;
  border-radius: 15px;
  overflow: hidden;

}

/* ⭐ Starburst badge: top-left corner, tilted like a sticker */
:where(.page-home) .hero-badge {
  position: absolute;
  top: -26px;
  left: -26px;
  z-index: 2;
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  transform: rotate(-12deg);
  pointer-events: none;

}

:where(.page-home) .hero-badge-star {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: #0038ff; /* electric blue */

}

:where(.page-home) .hero-badge-text {
  position: relative;
  color: #fff;
  font-family: var(--font-logo);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;

}

:where(.page-home) .hero-photos.fade-up {
  animation-delay: 0.24s;

}

/* fades in just after the headline */
:where(.page-home) .hero-photos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* crops each photo to the same shape */
  opacity: 0;
  transition: opacity 1.1s ease;

}

:where(.page-home) .hero-photos img.is-active {
  opacity: 1;

}

/* ---- Hover: darken the photo and show the article label ---- */
:where(.page-home) .hero-photos-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 8, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;

}

:where(.page-home) .hero-photos:hover .hero-photos-frame::after,
:where(.page-home) .hero-photos:focus-visible .hero-photos-frame::after {
  opacity: 1;

}

:where(.page-home) .hero-photos:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;

}

/* Only fade (no slide-up) so the cursor tooltip lines up right away */
:where(.page-home) .hero-photos.fade-up {
  animation-name: fade-in;

}

@keyframes fade-in {
  from {
    opacity: 0;
  }

}

/* Label style shared by both versions below */
:where(.page-home) .photo-link-label {
  z-index: 20;
  padding: 8px 14px;
  border-radius: 100px;
  background: #0038ff; /* solid electric blue */
  color: #fff;
  font-family: var(--font-logo);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;

}

/* Mouse / trackpad: label follows the cursor (script.js sets --x / --y) */

@media (hover: hover) {

  :where(.page-home) .photo-link-label {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none; /* never blocks the click */
    transform: translate(var(--x, 0), var(--y, 0));
    opacity: 0;
    transition: opacity 0.2s ease;

  }

  :where(.page-home) .hero-photos.is-hovering .photo-link-label {
    opacity: 1;

  }
}

/* Phones / tablets can't hover: show the label inside the photo */

@media (hover: none) {

  :where(.page-home) .photo-link-label {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    max-width: calc(100% - 20px);
    white-space: normal;
    text-align: center;

  }
}

/* ---- Photo Individual Adjustments ---- */
:where(.page-home) .hero-photos img:nth-child(1) { /* home2.jpg */
  transform: scale(1.25);

}

:where(.page-home) .hero-photos img:nth-child(3) {
  transform: scale(1.5);
  object-position: center 90%;

}

:where(.page-home) .hero-greeting {
  padding: 12px 0;
  margin: 0;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.02em;

}

:where(.page-home) .hero-title {
  margin: 0;
  font-size: 46px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.04em;

}

/* Tools marquee */
:where(.page-home) .tools {
  height: 72px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 12.5%,
    #000 87.5%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 12.5%,
    #000 87.5%,
    transparent
  );

}

:where(.page-home) .tools-track {
  display: flex;
  width: max-content;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: scroll 30s linear infinite;

}

:where(.page-home) .tools-track li {
  display: grid;
  place-items: center;
  width: 74px;
  margin-right: 68px; /* margin (not gap) so the loop seam stays even */

}

:where(.page-home) .tools-track img {
  width: 40px;
  height: 40px;
  object-fit: contain;

}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  } /* track holds 2 copies of the list */

}

/* Gentle entrance, like the live site */
.fade-up {
  animation: fade-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;

}

/* ↓ only on: about.html, froogle.html, sheridan-events.html */
:where(.page-about, .page-froogle, .page-sheridan) .fade-up + .fade-up {
  animation-delay: 0.12s;

}

/* ↓ only on: index.html */
:where(.page-home) .fade-up:nth-child(2) {
  animation-delay: 0.12s;

}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

}

/* ↓ only on: index.html */
/* ---- Floating "scroll to projects" arrow ---- */
:where(.page-home) .scroll-arrow {
  display: flex;
  margin-top: 104px; /* space below the tools strip, like the live site */
  padding: 8px;
  color: var(--color-accent); /* bright blue ↓ */
  transition: transform 0.2s ease;

}

:where(.page-home) .scroll-arrow:hover {
  transform: translateY(3px);

}

:where(.page-home) .scroll-arrow svg {
  animation: bob 0.8s ease-in-out infinite alternate;

}

/* Moves down 8px and back, forever */
@keyframes bob {
  to {
    transform: translateY(8px);
  }

}

/* Smooth scrolling when the arrow (or any #link) is clicked */

@media (prefers-reduced-motion: no-preference) {

  html:where(.page-home) {
    scroll-behavior: smooth;

  }
}

@media (prefers-reduced-motion: reduce) {

  :where(.page-home) .tools-track,
  :where(.page-home) .fade-up,
  :where(.page-home) .scroll-arrow svg {
    animation: none;

  }
}

/* ==========================================================
       Featured Projects
       ========================================================== */
:where(.page-home) .projects {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 100px; /* space between hero and this section */
  padding: 0 var(--gutter);
  scroll-margin-top: 100px; /* so the fixed header doesn't cover the title */

}

:where(.page-home) .projects-title,
:where(.page-home) .project-grid {
  width: 100%;
  max-width: var(--content-max);

}

:where(.page-home) .projects-title {
  margin: 0;
  font-family: var(--font-logo);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.4;

}

/* 2 columns on desktop/tablet, 1 on mobile (see section 6) */
:where(.page-home) .project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;

}

/* ---- Card ---- */
:where(.page-home) .project-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-decoration: none;

}

:where(.page-home) .project-image {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 18 / 17; /* same near-square crop as the live site */
  border-radius: 15px;
  overflow: hidden;

}

:where(.page-home) .project-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);

}

:where(.page-home) .project-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

}

:where(.page-home) .project-name {
  margin: 0 0 4px;
  font-family: var(--font-logo);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;

}

:where(.page-home) .project-desc {
  margin: 0;
  color: var(--color-subtle);
  font-size: 16px;
  line-height: 1.8;

}

/* Round arrow button on the right of each card */
:where(.page-home) .project-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 62px;
  height: 52px;
  border: 1px solid currentColor;
  border-radius: 100px;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;

}

/* Hover: image zooms slightly, arrow fills in */
:where(.page-home) .project-card:hover .project-image img {
  transform: scale(1.03);

}

:where(.page-home) .project-card:hover .project-arrow {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;

}

/* ---- "Coming soon" card ---- */
:where(.page-home) .project-card.is-coming-soon {
  cursor: default;

}

:where(.page-home) .is-coming-soon .project-image img {
  filter: blur(8px);
  transform: scale(1.08); /* hides the blurry edges */

}

:where(.page-home) .coming-soon-label {
  position: relative; /* sits on top of the blurred image */
  margin: 0;
  padding: 12px 18px;
  border-radius: 100px;
  background: var(--color-pill);
  font-family: var(--font-logo);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.25;

}

/* Cards fade up as you scroll to them (script.js adds .is-visible) */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);

}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;

}

@media (prefers-reduced-motion: reduce) {

  /* ↓ only on: froogle.html */
  :where(.page-froogle, .page-sheridan) .next-link-arrow,
  :where(.page-froogle, .page-sheridan) .next-link-text {
    transition: none;

  }

  /* ↓ only on: about.html, froogle.html, sheridan-events.html */
  :where(.page-about, .page-froogle, .page-sheridan) .fade-up {
    animation: none;

  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;

  }

  /* ↓ only on: index.html */
  :where(.page-home) .project-image img,
  :where(.page-home) .project-arrow {
    transition: none;

  }
}

/* ==========================================================
         CONTACT POSTCARD + FOOTER
         ========================================================== */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 56px;
  width: 100%;
  max-width: calc(var(--content-max) + var(--gutter) * 2);
  margin: 120px auto 0;
  padding: 0 var(--gutter) 56px;
  scroll-margin-top: 100px;

}

/* ↓ only on: index.html, about.html */
/* White card, thin blue border */
:where(.page-home, .page-about) .postcard {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: var(--color-paper);
  box-shadow: 0 1px 2px rgba(10, 15, 41, 0.04),
    0 24px 60px -24px rgba(10, 15, 41, 0.18);

}

:where(.page-home, .page-about) .postcard-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);

}

:where(.page-home, .page-about) .postcard-note,
:where(.page-home, .page-about) .postcard-address {
  padding: 40px 48px;

}

/* Thin line down the middle, like a real postcard */
:where(.page-home, .page-about) .postcard-address {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  border-left: 1px solid var(--color-line);

}

:where(.page-home, .page-about) .postcard-kicker {
  margin: 0 0 14px;
  color: var(--color-accent);
  font-family: var(--font-logo);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;

}

:where(.page-home, .page-about) .postcard-title {
  margin: 0 0 14px;
  font-family: var(--font-logo);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;

}

:where(.page-home, .page-about) .postcard-message {
  margin: 0;
  color: var(--color-subtle);
  font-family: var(--font-note);
  font-size: 24px;
  font-style: italic;
  line-height: 1.45;

}

:where(.page-home, .page-about) .postcard-sign {
  margin: 12px 0 0;
  color: var(--color-muted);
  font-family: var(--font-note);
  font-size: 22px;
  font-style: italic;

}

/* Stamp + postmark, top right */
:where(.page-home, .page-about) .postcard-stamps {
  position: relative;
  align-self: flex-end;
  width: 200px;
  height: 92px;

}

:where(.page-home, .page-about) .postmark {
  position: absolute;
  top: 12px;
  left: 0;
  z-index: 1;
  color: var(--color-accent);
  opacity: 0.55;
  transform: rotate(-8deg);

}

:where(.page-home, .page-about) .stamp {
  position: absolute;
  top: 0;
  right: 0;
  width: 76px;
  height: 92px;
  padding: 7px;
  background: var(--color-paper);
  transform: rotate(3deg);
  filter: drop-shadow(0 2px 3px rgba(10, 15, 41, 0.2));
  /* Perforated edge: holes all round + a solid middle */
  -webkit-mask: radial-gradient(circle, transparent 2.6px, #000 3px) -5px -5px / 10px 10px,
    linear-gradient(#000 0 0) center / calc(100% - 10px) calc(100% - 10px) no-repeat;
  mask: radial-gradient(circle, transparent 2.6px, #000 3px) -5px -5px / 10px 10px,
    linear-gradient(#000 0 0) center / calc(100% - 10px) calc(100% - 10px) no-repeat;

}

:where(.page-home, .page-about) .stamp-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  border-radius: 2px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-logo);
  text-align: center;

}

:where(.page-home, .page-about) .stamp-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;

}

:where(.page-home, .page-about) .stamp-value {
  font-size: 9px;
  opacity: 0.75;
  letter-spacing: 0.08em;

}

/* "Address" lines */
:where(.page-home, .page-about) .postcard-links {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;

}

:where(.page-home, .page-about) .postcard-links li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-line);

}

:where(.page-home, .page-about) .postcard-label {
  flex: none;
  width: 76px;
  color: var(--color-muted);
  font-family: var(--font-logo);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;

}

:where(.page-home, .page-about) .postcard-links a {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--color-accent);
  font-family: var(--font-logo);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  background: linear-gradient(currentColor 0 0) left bottom / 0 1.5px no-repeat;
  transition: background-size 0.3s ease;

}

:where(.page-home, .page-about) .postcard-links a:hover,
:where(.page-home, .page-about) .postcard-links a:focus-visible {
  background-size: 100% 1.5px; /* underline draws in */

}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
  font-size: 14px;

}

.copyright {
  margin: 0;
  color: var(--color-muted);
  letter-spacing: -0.04em;
  line-height: 1.05;
  opacity: 0.4;

}

.copyright .year {
  margin-left: 8px;

}

/* Tablet */

@media (max-width: 1099.98px) {

  /* ↓ only on: index.html, about.html */
  :where(.page-home, .page-about) .postcard-note,
  :where(.page-home, .page-about) .postcard-address {
    padding: 32px 36px;

  }

  :where(.page-home, .page-about) .postcard-title {
    font-size: 30px;

  }
}

/* Mobile: stack the two halves */

@media (max-width: 809.98px) {

  .site-footer {
    gap: 40px;
    margin-top: 80px;

  }

  /* ↓ only on: index.html, about.html */
  :where(.page-home, .page-about) .postcard {
    border-radius: 16px;

  }

  :where(.page-home, .page-about) .postcard-inner {
    grid-template-columns: 1fr;

  }

  :where(.page-home, .page-about) .postcard-note,
  :where(.page-home, .page-about) .postcard-address {
    padding: 28px 24px;

  }

  :where(.page-home, .page-about) .postcard-address {
    gap: 8px;
    border-left: 0;
    border-top: 1px solid var(--color-line);

  }

  :where(.page-home, .page-about) .postcard-stamps {
    margin-bottom: -20px; /* the scaled-down stamp leaves a gap */
    transform: scale(0.8);
    transform-origin: top right;

  }

  :where(.page-home, .page-about) .postcard-title {
    font-size: 26px;

  }

  :where(.page-home, .page-about) .postcard-message {
    font-size: 21px;

  }

  :where(.page-home, .page-about) .postcard-links a {
    font-size: 16px;

  }
}

/* ==========================================================
     Responsive (same breakpoints as the Framer site)
     ========================================================== */
/* Tablet: 810px – 1399px */

@media (max-width: 1399.98px) {

  :root {
    --gutter: 40px;

  }

  /* ↓ only on: index.html */
  :where(.page-home) .hero {
    padding-top: 167px;

  }

  :where(.page-home) .hero-title {
    font-size: 40px;

  }
}

/* Below 1024px there isn't room beside the text,
       so the slideshow moves underneath it */

@media (max-width: 1399.98px) and (max-width: 1023.98px) {

  :where(.page-home) .hero-top {
    flex-direction: column;
    gap: 32px;

  }

  :where(.page-home) .hero-photos {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin-top: 0;

  }

  /* smaller starburst so it stays on screen */
  :where(.page-home) .hero-badge {
    top: -16px;
    left: -12px;
    width: 80px;
    height: 80px;

  }

  :where(.page-home) .hero-badge-text {
    font-size: 10px;

  }
}

@media (max-width: 1399.98px) {

  .tagline {
    display: none;

  }

  /* not enough room beside the links */
  .nav-menu {
    justify-content: flex-end;

  }
}

/* No room for the sidebar: hide it */

@media (max-width: 1099.98px) {

  /* ↓ only on: sheridan-events.html */
  :where(.page-sheridan) .case {
    grid-template-columns: minmax(0, 760px);

  }

  :where(.page-sheridan) .toc {
    display: none;

  }

  /* ↓ only on: froogle.html */
  /* No room for the sidebar: hide it, show a simple back link instead */
  :where(.page-froogle) .case {
    grid-template-columns: minmax(0, 760px);
    padding-top: 0;

  }

  /* ↓ only on: froogle.html, sheridan-events.html */
  :where(.page-froogle) .case-hero {
    padding-top: 130px;

  }

  :where(.page-sheridan) .case-hero {
    padding-top: 104px;

  }

  /* ↓ only on: sheridan-events.html */
  :where(.page-froogle, .page-sheridan) .summary-card {
    grid-template-columns: 1fr;

  }

  :where(.page-froogle, .page-sheridan) .summary-card li + li {
    border-left: 0;
    border-top: 1px solid var(--color-line);

  }

  /* ↓ only on: froogle.html */
  :where(.page-froogle) .toc {
    display: none;

  }

  :where(.page-froogle, .page-sheridan) .case-hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;

  }

  :where(.page-froogle) .case-hero-image {
    max-width: 560px;

  }

}

/* About: tablet — small round photo above the text */

@media (max-width: 1199.98px) {

  /* ↓ only on: about.html */
  :where(.page-about) .about {
    align-items: flex-start;
    min-height: 0;
    padding: 167px 150px 120px;

  }

  :where(.page-about) .about-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    max-width: 540px;

  }

  :where(.page-about) .about-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;

  }
}

@media (max-width: 1399.98px) {

  /* ↓ only on: index.html */
  :where(.page-home) .projects {
    margin-top: 96px;

  }

  :where(.page-home) .project-grid {
    gap: 24px;

  }

  :where(.page-home) .coming-soon-label {
    font-size: 20px;

  }
}

/* Mobile: under 810px */

@media (max-width: 809.98px) {

  :root {
    --gutter: 20px;

  }

  .site-header {
    padding: 12px var(--gutter);

  }

  .nav {
    flex-wrap: wrap;
    gap: 0;

  }

  .menu-toggle {
    display: block;

  }

  /* Collapsible menu */
  .nav-menu {
    flex: 1 0 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    max-width: none;
    display: none;
    padding: 48px 0 20px;

  }

  .site-header.is-open .nav-menu {
    display: flex;

  }

  .site-header.is-open .tagline {
    display: block;

  }

  .nav-links {
    flex-direction: column;
    gap: 6px;

  }

  /* Hamburger → X */
  .site-header.is-open .menu-toggle span:first-child {
    transform: translateY(3.25px) rotate(45deg);

  }

  .site-header.is-open .menu-toggle span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);

  }

  /* ↓ only on: froogle.html, sheridan-events.html */
  /* Case study */
  :where(.page-froogle) .case-hero {
    padding-top: 100px;

  }

  :where(.page-sheridan) .case-hero {
    padding-top: 92px;

  }

  /* ↓ only on: froogle.html */
  :where(.page-froogle, .page-sheridan) .case-meta {
    gap: 20px 32px;
    margin-top: 36px;

  }

  :where(.page-froogle, .page-sheridan) .case-meta dd {
    font-size: 17px;

  }

  /* ↓ only on: froogle.html, sheridan-events.html */
  :where(.page-froogle, .page-sheridan) .case-title {
    font-size: 36px;

  }

  /* ↓ only on: froogle.html — next project link on phones */
  :where(.page-froogle, .page-sheridan) .next-link-section {
    margin-top: 100px;

  }

  :where(.page-froogle, .page-sheridan) .next-link-name {
    font-size: 36px; /* same as .case-title on phones */
    gap: 12px;

  }

  :where(.page-froogle, .page-sheridan) .case-tagline {
    font-size: 20px;

  }

  /* ↓ only on: sheridan-events.html */
  :where(.page-sheridan) .showcase {
    margin-top: 48px;

  }

  :where(.page-sheridan) .showcase-stage {
    padding: 0 7%;
    border-radius: 18px;

  }

  :where(.page-sheridan) .device-lid {
    border-radius: 12px 12px 4px 4px;

  }

  :where(.page-sheridan) .device-base {
    height: 10px;

  }

  :where(.page-froogle, .page-sheridan) .summary {
    margin-top: 64px;

  }

  :where(.page-froogle, .page-sheridan) .summary-card li {
    padding: 26px 24px;

  }

  /* ↓ only on: froogle.html, sheridan-events.html */
  :where(.page-froogle, .page-sheridan) .case-section {
    padding-top: 80px;

  }

  :where(.page-froogle, .page-sheridan) .section-title {
    font-size: 26px;

  }

  :where(.page-froogle, .page-sheridan) .case-section p {
    font-size: 16px;

  }

  /* ↓ only on: sheridan-events.html */
  :where(.page-sheridan) .prompt {
    font-size: 21px;

  }

  :where(.page-sheridan) .anatomy {
    grid-template-columns: 1fr;

  }

  :where(.page-sheridan) .ui-demo {
    padding: 20px;

  }

  /* ↓ only on: froogle.html */
  :where(.page-froogle) .prompt,
  :where(.page-froogle, .page-sheridan) .insight-callout blockquote {
    font-size: 21px;

  }

  :where(.page-froogle, .page-sheridan) .insight-callout {
    padding: 28px 24px;

  }

  :where(.page-froogle) .image-pair {
    grid-template-columns: 1fr;
    gap: 20px;

  }

  /* phones show a different (2-row) image, so the steps just wrap */
  :where(.page-froogle) .flow-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 0;
    margin-top: 12px;
    text-align: left;

  }

  :where(.page-froogle) .flow-steps li + li::before {
    position: static;
    width: auto;
    margin: 0 8px;

  }

  :where(.page-froogle, .page-sheridan) .research-grid {
    grid-template-columns: 1fr;

  }

  :where(.page-froogle, .page-sheridan) .compare {
    grid-template-columns: 1fr;

  }

  :where(.page-froogle, .page-sheridan) .compare-arrow {
    transform: rotate(90deg); /* → becomes ↓ when stacked */

  }

  :where(.page-froogle, .page-sheridan) .compare-card {
    padding: 24px;

  }

}

/* About */

@media (max-width: 809.98px) {

  /* ↓ only on: about.html */
  :where(.page-about) .about {
    padding: 108px 25px 72px;

  }

  :where(.page-about) .about-inner {
    gap: 20px;

  }

  /* ↓ only on: index.html */
  :where(.page-home) .hero {
    padding-top: 128px;

  }

  :where(.page-home) .hero-greeting {
    font-size: 28px;

  }

  :where(.page-home) .hero-title {
    font-size: 30px;

  }

  :where(.page-home) .projects {
    margin-top: 72px;

  }

  :where(.page-home) .project-grid {
    grid-template-columns: 1fr;

  }

  :where(.page-home) .projects-title {
    font-size: 28px;

  }

  :where(.page-home) .project-name {
    font-size: 20px;

  }
}

/* ==========================================================
         CUSTOM CURSOR
         (script.js creates the cursor element and moves it)
         ========================================================== */
.cursor {
  display: none;

}

/* Only for a real mouse / trackpad */

@media (hover: hover) and (pointer: fine) {

  .has-custom-cursor,
          .has-custom-cursor * {
    cursor: none !important;

  }

  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;

  }

  .cursor.is-visible {
    opacity: 1;

  }

  /* One 38px circle: shrunk to a dot normally, full size on hover */
  .cursor-circle {
    position: absolute;
    top: -19px;
    left: -19px;
    width: 38px; /* ✏️ BUBBLE SIZE on hover */
    height: 38px;
    border: 1.5px solid transparent;
    border-radius: 50%;
    background: var(--color-accent);
    transform: scale(0.21); /* ✏️ DOT SIZE: 38px × 0.21 ≈ 8px */
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
      background-color 0.3s ease, border-color 0.3s ease;

  }

  /* ✏️ HOVER BUBBLE: over links, buttons and other clickable things */
  .cursor.is-hover .cursor-circle {
    transform: scale(1);
    background: var(--color-accent-tint);
    border-color: var(--color-accent-ring);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);

  }

  .cursor.is-pressed .cursor-circle {
    transform: scale(0.16);

  }

  .cursor.is-hover.is-pressed .cursor-circle {
    transform: scale(0.85);

  }

  /* ✏️ "VIEW PROJECT" PILL: over anything with data-cursor="..." */
  .cursor-pill {
    position: absolute;
    top: -48px;
    left: -48px;
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(0, 56, 255, 0.35); /* electric blue, see-through */
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    opacity: 0;
    transform: scale(0.3);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
      opacity 0.2s ease;

  }

  .cursor-label {
    max-width: 70px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 20, 90, 0.6); /* keeps the label readable */
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;

  }

  .cursor.is-view .cursor-pill {
    opacity: 1;
    transform: scale(1);

  }

  .cursor.is-view .cursor-circle {
    transform: scale(0); /* the dot hides behind the pill */

  }

  .cursor.is-view.is-pressed .cursor-pill {
    transform: scale(0.92);

  }
}

@media (hover: none) and (pointer: coarse) {

  .cursor {
    display: none !important;

  }
}

/* ↓ only on: braillequest.html (it reuses the Froogle case-study styles) */
/* ==========================================================
       BrailleQuest extras
       ========================================================== */
/* The hero image is already cropped, so don't zoom it like Froogle's */
:where(.page-braillequest) .case-hero-image img {
  transform: none; /* square corners: transparent PNG */

}

/* YouTube demo: 16:9 with rounded corners */
:where(.page-braillequest) .video-embed {
  margin: 32px 0 0;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #000;

}

:where(.page-braillequest) .video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;

}
