/* =========================================================
   Murray Longe — Apple-inspired design system
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #1d1d1f;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --border: #d2d2d7;
  --card: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 980px;
  --maxw-wide: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.47;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { letter-spacing: -0.03em; line-height: 1.06; font-weight: 600; }

.eyebrow {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 640px;
  margin: 18px auto 0;
  line-height: 1.4;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.wrap-wide { max-width: var(--maxw-wide); margin: 0 auto; padding: 0 22px; }

section { padding: clamp(70px, 11vw, 130px) 0; }

.center { text-align: center; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 48px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

.nav-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.nav-logo:hover { text-decoration: none; opacity: 0.7; }
.nav-logo img { height: 22px; width: auto; display: block; }

.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }

.nav-links a {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px; height: 24px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 18px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 48px; left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 15px 24px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  padding: 12px 24px;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: rgba(0,113,227,0.06); border-color: var(--accent); }

.btn-dark { background: var(--text); }
.btn-dark:hover { background: #000; }

.link-arrow {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link-arrow:hover { text-decoration: none; }
.link-arrow::after { content: "›"; font-size: 1.3em; line-height: 1; transition: transform 0.2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  padding: 52px 0 72px;
  text-align: center;
  background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 60%);
}

.hero-head { padding: 0 22px; }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1.14;
  padding-bottom: 0.12em;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #1d1d1f 0%, #434344 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Full-bleed hero photo — spans the whole page on desktop,
   grows taller and keeps Murray centred on tablet/mobile. */
.hero-photo {
  width: 100%;
  height: clamp(260px, 26vw, 360px);
  margin: 22px 0 0;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.09);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
}
@media (max-width: 900px) { .hero-photo { height: clamp(320px, 52vw, 420px); } }
@media (max-width: 600px) { .hero-photo { height: 360px; } }

.hero-foot { padding: 0 22px; }

.hero-taglines {
  display: flex;
  gap: 12px 26px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-taglines span {
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 26px;
}
.hero-taglines span:not(:last-child)::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--border);
}

/* ---------- Email signup ---------- */
.signup {
  max-width: 540px;
  margin: 22px auto 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow);
}
.signup h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 6px; }
.signup p { color: var(--text-secondary); font-size: 0.98rem; margin-bottom: 20px; }

.signup-form { display: flex; gap: 10px; }
.signup-form input[type="email"] {
  flex: 1;
  font-family: var(--font);
  font-size: 1rem;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: 980px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 0;
}
.signup-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,113,227,0.18);
}
.signup-note { margin-top: 14px; font-size: 0.8rem; color: var(--text-tertiary); }
.signup-success {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a7f37;
  opacity: 0;
  height: 0;
  transition: opacity 0.4s;
}
.signup-success.show { opacity: 1; height: auto; }
.signup-success.error { color: #c0392b; }
.signup-form .btn[disabled] { opacity: 0.6; cursor: default; }

@media (max-width: 520px) {
  .signup-form { flex-direction: column; }
  .signup-form input[type="email"] { border-radius: 14px; text-align: center; }
  .signup-form .btn { border-radius: 14px; padding: 14px; }
}

/* ---------- Brands / customers ---------- */
.brands { background: var(--bg); padding-top: 40px; }
.brands .eyebrow { text-align: center; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  gap: 46px 40px;
  margin-top: 46px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.brand-grid img {
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}
.brand-grid img:hover { transform: scale(1.05); }
@media (max-width: 680px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 26px; }
  .brand-grid img { height: 44px; }
}

/* ---------- Bio ---------- */
.bio { background: var(--bg-alt); }
.bio-body {
  max-width: 720px;
  margin: 40px auto 0;
}
.bio-body p {
  font-size: clamp(1.15rem, 2.3vw, 1.5rem);
  line-height: 1.5;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.bio-body p:last-child { margin-bottom: 0; color: var(--text-secondary); }

.bio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 54px auto 0;
}
.bio-stat { text-align: center; }
.bio-stat .num {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #0071e3, #42a5f5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bio-stat .lbl { font-size: 0.95rem; color: var(--text-secondary); margin-top: 4px; }
@media (max-width: 560px) {
  .bio-stats { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Books preview ---------- */
.books-preview { text-align: center; }
.book-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 50px 0 44px;
}
.book-mini {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.book-mini:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.book-mini .spine {
  width: 46px; height: 6px; border-radius: 4px;
  background: linear-gradient(90deg, #0071e3, #42a5f5);
  margin-bottom: 18px;
}
.book-mini h4 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; line-height: 1.2; }
.book-mini p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.45; }
@media (max-width: 760px) { .book-strip { grid-template-columns: 1fr; } }

/* Featured newest book (home) */
.new-book {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 48px;
  align-items: center;
  max-width: 880px;
  margin: 54px auto 0;
  text-align: left;
}
.new-book-cover { position: relative; }
.new-book-cover img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  display: block;
}
.new-book-badge {
  position: absolute;
  top: -12px; left: -12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 980px;
  box-shadow: var(--shadow);
}
.new-book-info .nb-series {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); font-weight: 600; margin-bottom: 10px;
}
.new-book-info h3 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; }
.new-book-info .nb-sub { font-size: 1.05rem; color: var(--text-tertiary); margin-bottom: 18px; }
.new-book-info p { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 22px; }
@media (max-width: 680px) {
  .new-book { grid-template-columns: 1fr; gap: 30px; max-width: 360px; text-align: center; }
  .new-book-badge { left: 50%; transform: translateX(-50%); }
}

/* Flyer quote callout */
.book-quote {
  max-width: 740px;
  margin: 0 auto;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--text);
}
.book-quote span { color: var(--accent); }

/* Row of other covers */
.covers-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 46px 0 44px;
}
.covers-row a { display: block; transition: transform 0.3s; }
.covers-row a:hover { transform: translateY(-8px); }
.covers-row img {
  width: 112px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: block;
}
@media (max-width: 520px) { .covers-row img { width: 88px; } }

/* ---------- Services ---------- */
.services { background: var(--bg-alt); }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 54px;
}
.svc-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.svc-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0071e3, #42a5f5);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: #fff; font-size: 1.4rem; font-weight: 600;
}
.svc-card h3 { font-size: 1.35rem; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.02em; }
.svc-card p { font-size: 1rem; color: var(--text-secondary); line-height: 1.5; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { text-align: center; background: var(--bg-dark); color: #fff; }
.contact .section-title { color: #fff; }
.contact .section-sub { color: #a1a1a6; }
.contact-cards {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
}
.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 30px 40px;
  min-width: 260px;
  transition: background 0.3s, transform 0.3s;
}
.contact-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.contact-card .lbl { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #86868b; margin-bottom: 10px; }
.contact-card a { font-size: 1.2rem; color: #fff; font-weight: 500; }
.contact-card a:hover { color: #2997ff; text-decoration: none; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 150px 22px 60px;
  text-align: center;
  background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
}
.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.page-hero p {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 20px auto 0;
  line-height: 1.4;
}

/* ---------- Books page ---------- */
.book-list { display: flex; flex-direction: column; gap: 26px; padding-top: 20px; }

.book-cover-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  display: block;
}

.books-intro-quote {
  max-width: 760px;
  margin: 28px auto 0;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--text);
}
.books-intro-quote span { color: var(--accent); }
.book {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  align-items: start;
}
.book-cover {
  aspect-ratio: 3/4.4;
  border-radius: 8px;
  background: linear-gradient(160deg, #2c2c2e, #48484a);
  box-shadow: var(--shadow-lg);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.book-cover::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 8px; background: rgba(0,0,0,0.25);
}
.book-cover .bc-series { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; }
.book-cover .bc-title { font-size: 0.95rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.book-cover .bc-author { font-size: 0.65rem; opacity: 0.8; }
.book-cover .bc-accent { width: 30px; height: 4px; border-radius: 3px; background: #2997ff; }

.book-info .series {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); font-weight: 600; margin-bottom: 8px;
}
.book-info h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; margin-bottom: 6px; letter-spacing: -0.03em; }
.book-info .author { font-size: 0.95rem; color: var(--text-tertiary); margin-bottom: 18px; }
.book-info .desc { font-size: 1.02rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 20px; }

.book-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.book-topics span {
  font-size: 0.82rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 13px;
  border-radius: 980px;
}
.book-format { font-size: 0.85rem; color: var(--text-tertiary); margin-bottom: 18px; }
.book-format strong { color: var(--text-secondary); font-weight: 500; }
.book-buy { display: flex; gap: 10px; flex-wrap: wrap; }
.book-buy .btn { font-size: 0.9rem; padding: 10px 20px; }

@media (max-width: 720px) {
  .book { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .book-cover { max-width: 150px; }
}

/* ---------- Work / projects page ---------- */
.work-list { display: flex; flex-direction: column; gap: 20px; }
.project {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s;
}
.project:hover { box-shadow: var(--shadow-lg); }
.project-logo {
  height: 46px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 22px;
  display: block;
}
.project h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 600; margin-bottom: 16px; letter-spacing: -0.03em; }
.project > p { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 20px; }
.project .results-label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.project ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.project ul li {
  position: relative; padding-left: 28px;
  font-size: 1rem; color: var(--text); line-height: 1.45;
}
.project ul li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.project-video {
  margin: 22px 0 4px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.project-video video { width: 100%; display: block; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-alt); }
.tst-grid {
  columns: 2;
  column-gap: 22px;
  margin-top: 50px;
}
.tst-card {
  break-inside: avoid;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.tst-card .quote-mark { font-size: 3rem; line-height: 0.5; color: var(--border); font-weight: 700; display: block; margin-bottom: 18px; height: 20px; }
.tst-card p { font-size: 1.02rem; color: var(--text); line-height: 1.55; margin-bottom: 22px; letter-spacing: -0.01em; }
.tst-author { display: flex; align-items: center; gap: 14px; }
.tst-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #0071e3, #42a5f5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 1.05rem; flex-shrink: 0;
  overflow: hidden;
}
.tst-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tst-author .nm { font-weight: 600; font-size: 1rem; }
.tst-author .rl { font-size: 0.85rem; color: var(--text-tertiary); }
@media (max-width: 720px) { .tst-grid { columns: 1; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; background: var(--bg); }
.cta-inner {
  background: linear-gradient(135deg, #1d1d1f, #2c2c2e);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 8vw, 80px) 30px;
  color: #fff;
}
.cta-inner h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.cta-inner p { color: #a1a1a6; font-size: 1.2rem; margin: 16px auto 30px; max-width: 500px; }

/* ---------- Embedded video (YouTube) ---------- */
.video-section { padding-top: clamp(44px, 6vw, 72px); text-align: center; }
.video-embed {
  position: relative;
  width: 100%;
  max-width: 880px;
  margin: 48px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Click-to-play facade (loads the YouTube player only on click) */
.yt-facade {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 0; border: 0; margin: 0;
  background: #000; cursor: pointer; display: block;
}
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-facade::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.25));
  transition: background 0.3s;
}
.yt-facade:hover::after { background: rgba(0,0,0,0.12); }
.yt-play {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 58px;
  border-radius: 15px;
  background: rgba(18,18,18,0.80);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: background 0.2s, transform 0.2s;
}
.yt-facade:hover .yt-play { background: #ff0000; transform: translate(-50%, -50%) scale(1.07); }
.yt-play::before {
  content: "";
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 22px;
  font-size: 0.82rem;
  color: var(--text-tertiary);
}
.footer-inner {
  max-width: var(--maxw-wide);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Scroll reveal (progressive enhancement) ---------- */
/* Hidden only when JS is active; without JS everything stays visible. */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Blog page ---------- */
.blog-list { display: flex; flex-direction: column; gap: 22px; max-width: 760px; margin: 0 auto; }

.post-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .post-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  font-weight: 600;
}
.post-card h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; margin: 8px 0 12px; }
.post-card p { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.6; }
.post-card .post-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }

.blog-empty {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 34px;
}
.blog-empty h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.blog-empty p { color: var(--text-secondary); font-size: 1.02rem; }

.signup-section { padding: 10px 0 84px; }
