:root {
  --bg: #f4efe8;
  --bg-soft: #fbf8f2;
  --surface: rgba(255, 252, 247, 0.78);
  --surface-strong: #fffdf9;
  --surface-accent: #f0e4d6;
  --text: #24180f;
  --text-soft: #5c4d42;
  --line: rgba(60, 37, 19, 0.12);
  --line-strong: rgba(60, 37, 19, 0.22);
  --accent: #a54f2d;
  --accent-dark: #7d3b20;
  --shadow: 0 24px 80px rgba(51, 31, 17, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: min(1120px, calc(100vw - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Lato", sans-serif;
  color: var(--text);
  background: #f4efe8;
  line-height: 1.6;
  overflow-x: clip;
}

a {
  color: inherit;
}

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

.site-shell {
  width: var(--content-width);
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.site-header,
.site-footer,
.hero,
.section,
.page-hero,
.content-card,
.project-card {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.95rem 1.25rem;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 244, 0.72);
  box-shadow: var(--shadow);
}

.brand {
  font-family: "Lato", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text-soft);
}

.brand-mark {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 0.45rem;
  flex: 0 0 auto;
}

.brand[aria-current="page"] {
  color: var(--accent-dark);
  font-weight: 700;
}

.site-nav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav a,
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 400;
  transition: color 160ms ease, font-weight 160ms ease;
}

.site-nav a[aria-current="page"] {
  color: var(--accent-dark);
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-dark);
  font-weight: 700;
}

.hero,
.page-hero,
.section,
.content-card,
.project-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  padding: clamp(1.5rem, 2vw, 2rem);
  border-radius: var(--radius-xl);
}

.hero-rail {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero-copy h1,
.page-hero h1,
.section h2,
.content-card h2,
.card h3,
.feature-card h3,
.project-card h2 {
  font-family: "Lato", sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  max-width: 12ch;
}

.hero-text,
.lede {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 62ch;
}

.eyebrow,
.card-label,
.panel-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fffaf6;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 249, 0.78);
  color: var(--text);
}

.hero-panel,
.card,
.feature-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.7);
  padding: 1.25rem;
}

.path-grid > .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.path-grid > .card .text-link {
  margin-top: auto;
}

.avatar-card,
.about-avatar {
  margin: 0;
}

.avatar-card {
  display: flex;
  justify-content: center;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.82);
}

.about-avatar {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.home-avatar {
  margin-top: 0;
  width: 100%;
  align-self: center;
  justify-content: center;
}

.about-avatar.media-shell {
  width: min(100%, 240px);
  aspect-ratio: 1 / 1;
  justify-self: center;
  align-items: center;
}

.avatar-image {
  width: min(100%, 240px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 6px solid rgba(255, 252, 247, 0.95);
  box-shadow: 0 18px 48px rgba(51, 31, 17, 0.16);
}

.about-avatar .avatar-image {
  width: 180px;
}

.fact-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-soft);
}

.fact-list li + li {
  margin-top: 0.9rem;
}

.section,
.page-hero {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
}

.split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
  gap: 1.5rem;
  align-items: center;
}

.split-hero-copy {
  min-width: 0;
}

.products-hero {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.88fr);
}

.products-hero .split-hero-copy {
  align-self: start;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-self: center;
}

.product-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.85rem 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.85);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-chip img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  display: block;
}

.product-chip figcaption {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.2;
}

.product-chip:hover,
.product-chip:focus-within {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 34px rgba(26, 16, 10, 0.12);
  border-color: var(--line-strong);
}

.page-hero .speaking-hero-title {
  font-size: clamp(2.35rem, 4vw, 3.3rem);
  font-weight: 900;
  line-height: 1.04;
  max-width: none;
}

.page-hero .products-hero-title {
  font-size: clamp(2.35rem, 4vw, 3.3rem);
  font-weight: 900;
  line-height: 1.04;
  max-width: none;
}

.speaking-logo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-self: center;
}

.split-hero .split-hero-copy {
  align-self: start;
}

.speaking-logo-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 7.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.88);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.speaking-logo-card img {
  display: block;
  max-width: 100%;
  max-height: 3.4rem;
  width: auto;
  height: auto;
  object-fit: contain;
}

.speaking-logo-card figcaption {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.2;
}

.speaking-logo-card:hover,
.speaking-logo-card:focus-within {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 34px rgba(26, 16, 10, 0.12);
  border-color: var(--line-strong);
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.contact-links .text-link {
  display: block;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  gap: 1.5rem;
  align-items: center;
}

.home-hero-copy {
  min-width: 0;
}

.section-accent {
  background:
    linear-gradient(135deg, rgba(240, 228, 214, 0.92), rgba(255, 249, 243, 0.9)),
    var(--surface);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 1.4rem;
}

.path-grid,
.feature-grid,
.content-grid,
.topic-grid {
  display: grid;
  gap: 1rem;
}

.path-grid,
.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.5rem;
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
}

.prose p {
  margin: 0;
  color: var(--text-soft);
}

.prose p + p {
  margin-top: 1rem;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.page-main {
  padding-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  max-width: 13ch;
}

.page-cover {
  margin: 0;
  display: flex;
  justify-content: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(26, 16, 10, 0.12);
  background: rgba(255, 252, 247, 0.98);
}

.page-cover img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 42rem);
  object-fit: contain;
  object-position: center;
}

.js-media .media-shell {
  position: relative;
}

.js-media .media-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(255, 250, 244, 0.96) 8%, rgba(246, 235, 220, 0.96) 18%, rgba(255, 250, 244, 0.96) 33%),
    #fbf7f1;
  background-size: 220% 100%;
  animation: preview-shimmer 1.8s linear infinite;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 1;
  pointer-events: none;
}

.js-media .media-shell.is-loaded::after {
  opacity: 0;
  visibility: hidden;
}

.js-media .media-image {
  opacity: 0.01;
  transform: scale(0.985);
  transition: opacity 260ms ease, transform 260ms ease;
}

.js-media .media-shell.is-loaded .media-image {
  opacity: 1;
  transform: scale(1);
}

.contact-cover {
  max-width: 18rem;
  justify-self: end;
}

.contact-cover img {
  width: 100%;
  height: auto;
  max-width: 18rem;
  max-height: min(56vh, 28rem);
  object-fit: contain;
}

.about-avatar::after,
.page-cover::after,
.product-chip::after,
.speaking-logo-card::after,
.phone-shot::after,
.photo-slide::after {
  border-radius: inherit;
}

.about-avatar.media-shell::after {
  inset: 50%;
  width: min(100%, 240px);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.content-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.project-stack {
  display: grid;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.project-card > * {
  min-width: 0;
}

.project-meta h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.link-stack {
  display: grid;
  gap: 0.9rem;
}

.resource-feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.78);
}

.resource-feature .prose {
  max-width: 42rem;
}

.embed-card {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.94);
  overflow: hidden;
}

.embed-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(240, 228, 214, 0.45);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-soft);
}

.video-frame,
.site-frame {
  position: relative;
  width: 100%;
  background: #f7f1e8;
}

.video-frame {
  aspect-ratio: 16 / 9;
}

.site-frame {
  aspect-ratio: 16 / 8.5;
}

.video-frame iframe,
.site-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
}

.video-frame-loading,
.site-frame-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    linear-gradient(110deg, rgba(255, 250, 244, 0.96) 8%, rgba(246, 235, 220, 0.96) 18%, rgba(255, 250, 244, 0.96) 33%),
    #fbf7f1;
  background-size: 220% 100%;
  animation: preview-shimmer 1.8s linear infinite;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 1;
}

.site-frame-loading-inner {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
}

.site-frame-loading-inner img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  opacity: 0.92;
}

.site-frame-loading-inner p {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-soft);
}

.video-frame.is-ready .video-frame-loading,
.site-frame.is-ready .site-frame-loading {
  opacity: 0;
  visibility: hidden;
}

.photo-gallery-shell {
  position: relative;
}

.gallery-frame-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    linear-gradient(110deg, rgba(255, 250, 244, 0.96) 8%, rgba(246, 235, 220, 0.96) 18%, rgba(255, 250, 244, 0.96) 33%),
    #fbf7f1;
  background-size: 220% 100%;
  animation: preview-shimmer 1.8s linear infinite;
  transition: opacity 220ms ease, visibility 220ms ease;
  z-index: 2;
}

.photo-gallery-shell.is-ready .gallery-frame-loading {
  opacity: 0;
  visibility: hidden;
}

.mobile-preview-card {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1.4rem 1rem 1.25rem;
  text-align: center;
  background: rgba(255, 252, 247, 0.98);
}

.mobile-preview-card img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
}

.mobile-preview-card p {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.phone-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 280px);
  gap: 1rem;
  padding: 1rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1rem;
  scrollbar-width: thin;
}

.phone-carousel::before {
  content: "";
  display: block;
  width: 1rem;
}

.phone-shot {
  margin: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 16px 36px rgba(26, 16, 10, 0.12);
  scroll-snap-align: start;
}

.phone-shot img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

.photo-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0;
  aspect-ratio: 16 / 9;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  background: rgba(255, 252, 247, 0.98);
}

.photo-slide {
  margin: 0;
  min-width: 0;
  height: 100%;
  scroll-snap-align: start;
}

.photo-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(255, 252, 247, 0.98);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem 1rem;
}

.carousel-dots span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(92, 77, 66, 0.28);
}

.carousel-dots span.is-active {
  background: rgba(92, 77, 66, 0.62);
}

.resource-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.75);
  text-decoration: none;
}

.resource-link span:last-child {
  color: var(--text-soft);
}

.topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-pill {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.9);
  text-align: center;
  font-weight: 600;
}

@keyframes preview-shimmer {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -20% 0;
  }
}

@media (max-width: 960px) {
  .hero,
  .path-grid,
  .feature-grid,
  .content-grid,
  .split-section,
  .project-card,
  .home-hero,
  .split-hero,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer,
  .cta-band,
  .resource-link {
    border-radius: var(--radius-lg);
  }

  .hero-copy h1,
  .page-hero h1 {
    max-width: none;
  }

  .home-avatar {
    margin-top: 1rem;
    justify-content: center;
  }

  .split-hero-cover {
    margin-top: 1rem;
  }

  .products-hero .split-hero-copy {
    align-self: start;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .speaking-logo-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100vw - 1rem, 1120px);
    padding-top: 0.5rem;
  }

  .site-header,
  .site-footer {
    align-items: center;
    flex-direction: column;
  }

  .site-nav {
    gap: 0.75rem;
    justify-content: center;
  }

  .site-nav a {
    font-size: 0.98rem;
  }

  .hero,
  .section,
  .page-hero,
  .content-card,
  .project-card {
    padding: 1.2rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.4rem, 14vw, 3.6rem);
  }

  .button,
  .topic-pill {
    width: 100%;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .embed-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-preview-card {
    display: flex;
  }

  .site-frame {
    display: none;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .speaking-logo-row {
    grid-template-columns: 1fr;
  }

  .phone-carousel {
    grid-auto-columns: minmax(220px, 78vw);
    padding: 0.85rem;
    scroll-padding-left: 1.25rem;
  }

  .phone-carousel::before {
    width: 0.5rem;
  }

  .contact-cover {
    justify-self: center;
  }

}
