/* The Digital Day Dream — design tokens */
:root {
  --bg-page: #faf8f5;
  --text-primary: var(--hero-ink);
  --accent-sage: #5c7a6b;
  --accent-sage-soft: #708a7d;
  --accent-amber: #c17a3a;
  --hero-ink: #454643;
  --browser-frame: var(--container-bg);
  --browser-screen: #e6dfd4;
  --container-bg: #4a6580;
  --container-border: rgba(255, 255, 255, 0.15);
  --container-border-hover: rgba(255, 255, 255, 0.3);
  --tint-sage: rgba(92, 122, 107, 0.08);
  --text-on-slate: #faf8f5;
  --font-heading: "Cormorant Garamond", serif;
  --font-hero: "Plus Jakarta Sans", "DM Sans", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-logo-script: "Pacifico", cursive;
  --header-height: 70px;
  --container-max: 1200px;
  --shadow-nav: 0 1px 0 rgba(26, 28, 26, 0.06), 0 8px 24px rgba(26, 28, 26, 0.08);
  /* Hero loop: 7s = build + hold + 1s fade-out + 1s gap (figure only), then repeat. */
  --hero-loop-duration: 7s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

@media (max-width: 767px) {
  html {
    font-size: 17px;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-page);
  overflow-wrap: break-word;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  /* Progress bar (3px) + header */
  padding-top: calc(3px + var(--header-height));
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  margin: 0 0 0.75em;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.4em;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.3;
}

p {
  max-width: 65ch;
}

small,
.caption {
  font-size: 0.85rem;
}

img,
video,
canvas,
svg,
iframe {
  max-width: 100%;
}

img {
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent-sage);
  z-index: 1000;
  pointer-events: none;
}

/* Header & nav */
.site-header {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--bg-page);
  animation: navSlideDown 0.55s ease-out 0.3s both;
}

main section[id] {
  scroll-margin-top: calc(3px + var(--header-height) + 0.75rem);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-nav);
}

/* Slide only — no header opacity fade (avoids logo looking hazy or washed out) */
@keyframes navSlideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: none;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0.75rem 0;
  gap: 1rem;
  min-width: 0;
  overflow: visible;
}

.container {
  width: 100%;
  max-width: min(var(--container-max), 100%);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 1.5rem);
  padding-right: clamp(1rem, 4vw, 1.5rem);
  min-width: 0;
}

.logo {
  text-decoration: none;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  line-height: 0;
  min-width: 0;
  flex: 0 1 auto;
}

.logo-img {
  display: block;
  height: 69px;
  width: auto;
  max-width: min(375px, 60vw);
  object-fit: contain;
  opacity: 1;
  filter: none;
}

@media (max-width: 767px) {
  .logo-img {
    height: auto;
    max-height: 60px;
    max-width: 100%;
  }
}

.site-nav .nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(0.9rem, 1.5vw, 1.75rem);
}

.site-nav a {
  font-weight: 500;
  color: var(--accent-sage);
  text-decoration: none;
  position: relative;
  padding: 0.35rem 0;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-amber);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header.is-menu-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-header.is-menu-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
  display: none;
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: flex;
    z-index: 950;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    background: var(--container-bg);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0.75rem 1.5rem 1rem;
    overflow: visible;
    transform: translateY(-0.75rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    z-index: 940;
    box-shadow: 0 12px 24px rgba(69, 70, 67, 0.12);
  }

  .site-header.is-menu-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav .nav-list {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.15rem;
    text-align: center;
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
    padding: 0;
  }

  .site-nav a {
    color: var(--text-on-slate);
    font-size: 0.8rem;
    line-height: 1.15;
    min-height: 0;
    padding: 0.35rem 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .site-nav a::after {
    background: currentColor;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 60px;
  }
}

/* Hero */
.hero {
  min-height: unset;
  display: flex;
  align-items: center;
  padding: 46px 0 37px;
  overflow-x: hidden;
  max-width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem 2.5rem;
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.hero-visual {
  position: relative;
  width: 100%;
}

.hero-ink-filter {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 1456 / 816;
}

.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: url(#heroInk);
}

/*
  Hero stack order (bottom → top, matching HTML):
  z1  figure.png       — always visible, no animation
  z2  dots.png         — thought bubble dots
  z3  bubble.png       — bubble outline
  z4  browser.png      — browser frame
  z5  menu.png         — menu bar
  z6  image_1.png      — first image block
  z7  image_2.png      — second image block
  z8  text_image_1.png — first text block
  z9  text_image_2.png — second text block

  Timings: staggered fade-in (same as brief), hold, group fade-out 71.43%–85.71% (5s–6s),
  then 1s gap 85.71%–100% (6s–7s) with only the figure visible; loop.
  Percentages use --hero-loop-duration (7s).
*/

.hero-layer--base {
  opacity: 1;
  z-index: 1;
}

.hero-laptop-sticker {
  position: absolute;
  left: 48.1%;
  top: 80.0%;
  width: 7.2%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
  transform: translate(-50%, -50%) rotate(5.5deg);
  background: #faf8f5;
  border-radius: 0.18em;
  padding: 0.1em 0.08em 0.08em;
  box-shadow:
    0 1px 2px rgba(69, 70, 67, 0.2),
    0 0 0 0.5px rgba(69, 70, 67, 0.08);
}

.hero-laptop-sticker img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
}

/* No duplicate opacity at adjacent % (e.g. 0% + 5.714% both 0) — that freezes the fade. */
@keyframes heroL2 {
  0% {
    opacity: 0;
  }
  5.714% {
    opacity: 1;
  }
  71.429% {
    opacity: 1;
  }
  85.714% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes heroL3 {
  0%,
  12.857% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  71.429% {
    opacity: 1;
  }
  85.714% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes heroL4 {
  0%,
  20% {
    opacity: 0;
  }
  27.143% {
    opacity: 1;
  }
  71.429% {
    opacity: 1;
  }
  85.714% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes heroL5 {
  0%,
  25.714% {
    opacity: 0;
  }
  31.429% {
    opacity: 1;
  }
  71.429% {
    opacity: 1;
  }
  85.714% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes heroL6 {
  0%,
  30% {
    opacity: 0;
  }
  35.714% {
    opacity: 1;
  }
  71.429% {
    opacity: 1;
  }
  85.714% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes heroL7 {
  0%,
  34.286% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  71.429% {
    opacity: 1;
  }
  85.714% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes heroL8 {
  0%,
  38.571% {
    opacity: 0;
  }
  44.286% {
    opacity: 1;
  }
  71.429% {
    opacity: 1;
  }
  85.714% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes heroL9 {
  0%,
  42.857% {
    opacity: 0;
  }
  48.571% {
    opacity: 1;
  }
  71.429% {
    opacity: 1;
  }
  85.714% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.hero-layer--l2,
.hero-layer--l3,
.hero-layer--l4,
.hero-layer--l5,
.hero-layer--l6,
.hero-layer--l7,
.hero-layer--l8,
.hero-layer--l9 {
  filter: url(#heroInkStrong);
}

.hero-layer--l2 {
  z-index: 2;
  opacity: 0;
  animation: heroL2 var(--hero-loop-duration) linear infinite;
}

.hero-layer--l3 {
  z-index: 3;
  opacity: 0;
  animation: heroL3 var(--hero-loop-duration) linear infinite;
}

.hero-layer--l4 {
  z-index: 4;
  opacity: 0;
  animation: heroL4 var(--hero-loop-duration) linear infinite;
}

.hero-layer--l5 {
  z-index: 5;
  opacity: 0;
  animation: heroL5 var(--hero-loop-duration) linear infinite;
}

.hero-layer--l6 {
  z-index: 6;
  opacity: 0;
  animation: heroL6 var(--hero-loop-duration) linear infinite;
}

.hero-layer--l7 {
  z-index: 7;
  opacity: 0;
  animation: heroL7 var(--hero-loop-duration) linear infinite;
}

.hero-layer--l8 {
  z-index: 8;
  opacity: 0;
  animation: heroL8 var(--hero-loop-duration) linear infinite;
}

.hero-layer--l9 {
  z-index: 9;
  opacity: 0;
  animation: heroL9 var(--hero-loop-duration) linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-layer--l2,
  .hero-layer--l3,
  .hero-layer--l4,
  .hero-layer--l5,
  .hero-layer--l6,
  .hero-layer--l7,
  .hero-layer--l8,
  .hero-layer--l9 {
    animation: none;
    opacity: 1;
  }
}

.hero-content {
  padding: 0;
  min-width: 0;
}

.hero-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-sage);
  margin: 0 0 1rem;
}

.hero-title {
  margin: 0 0 1.25rem;
  color: var(--container-bg);
  overflow: visible;
  max-width: 100%;
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: clamp(2.2rem, 0.8rem + 5vw, 2.65rem);
  line-height: 1.34;
  letter-spacing: -0.035em;
  padding-bottom: 0.08em;
}

.hero-title-inner {
  display: block;
  max-width: 100%;
  overflow: visible;
  overflow-wrap: break-word;
  padding-bottom: 0.12em;
  animation: clipReveal 0.8s ease-out 0.5s both;
}

.hero-accent-sage {
  color: var(--accent-sage);
}

.hero-accent-amber {
  color: var(--accent-amber);
}

.hero-title-line {
  display: block;
}

@keyframes clipReveal {
  from {
    -webkit-clip-path: inset(-0.2em 100% -0.35em 0);
    clip-path: inset(-0.2em 100% -0.35em 0);
    opacity: 0.95;
  }
  to {
    -webkit-clip-path: none;
    clip-path: none;
    opacity: 1;
  }
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(69, 70, 67, 0.82);
  margin: 0 0 1.75rem;
  max-width: min(38ch, 100%);
  overflow-wrap: break-word;
  line-height: 1.65;
}

.animate-hero {
  opacity: 0;
  animation: fadeInHero 0.65s ease forwards;
  animation-delay: var(--hero-delay, 0s);
}

@keyframes fadeInHero {
  to {
    opacity: 1;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem 1.75rem;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 1rem 2.2rem;
  border-radius: 4px;
  max-width: 100%;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent-amber);
  color: var(--text-on-slate);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #a8682f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 28, 26, 0.15);
}

.hero-link {
  font-weight: 500;
  color: var(--accent-sage);
  text-decoration: none;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.hero-link:hover,
.hero-link:focus-visible {
  border-bottom-color: var(--accent-sage);
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-visual {
    max-width: 36rem;
    width: 100%;
    margin-inline: auto;
  }

  .hero {
    min-height: unset;
    padding: 1.5rem 0 1.5rem;
  }

  .hero-sub {
    font-size: 1.05rem;
    max-width: 100%;
  }
}

@media (min-width: 1025px) and (max-width: 1366px) {
  .hero-grid {
    gap: 1.75rem 2rem;
  }

  .hero-sub {
    font-size: 1.02rem;
    max-width: 100%;
  }

  .hero-actions {
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  h1 {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
  }

  h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
  }
}

/* Sections */
.section {
  padding: 5rem 0;
}

#services {
  padding-top: 2.5rem;
  padding-bottom: 0;
  perspective: 1000px;
  position: relative;
  overflow-x: hidden;
  max-width: 100%;
}

.things {
  --things-wave: clamp(3.25rem, 7vw, 5.75rem);
  position: relative;
  background: var(--accent-sage);
  padding: calc(1.35rem + var(--things-wave)) 0 calc(4.25rem + var(--things-wave));
  overflow-x: clip;
  max-width: 100%;
}

.things--blue {
  background: var(--container-bg);
  margin-top: 1.5rem;
}

.things--spaced {
  margin-top: 1.5rem;
}

section.services-plans {
  padding: 0;
  position: relative;
  overflow-x: hidden;
  max-width: 100%;
}

.services-plans > .things--blue:first-child {
  margin-top: 0;
}

.things-edge {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--things-wave);
  color: var(--bg-page);
  pointer-events: none;
  line-height: 0;
  z-index: 1;
}

.things-edge svg {
  display: block;
  width: 100%;
  height: 100%;
}

.things-edge path {
  fill: currentColor;
}

.things-edge--top {
  top: -1px;
}

.things-edge--bottom {
  bottom: -1px;
  transform: scaleY(-1);
}

.things-title {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-size: clamp(1.35rem, 8vw, 50px);
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--bg-page);
  text-align: center;
  margin: 0 0 2.25rem;
  max-width: 100%;
  overflow: visible;
  padding: 0.12em 0 0.28em;
}

.things-title-br {
  display: none;
}

.things-title--long {
  font-size: clamp(1.45rem, 5.2vw, 2.65rem);
  max-width: 16ch;
  margin-inline: auto;
  margin-bottom: 1.1rem;
}

.things-lead {
  margin: 0 auto 2.25rem;
  max-width: 42rem;
  text-align: center;
  color: rgba(250, 248, 245, 0.92);
  font-size: 1.05rem;
  line-height: 1.65;
}

.things-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.things-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 68rem;
  margin-inline: auto;
}

.things .container {
  position: relative;
  z-index: 2;
}

.things-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 2rem;
  padding: 0.25rem 0 1.25rem;
  position: relative;
  z-index: 3;
}

.things-actions .btn {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.things-card {
  background: var(--bg-page);
  border-radius: 18px;
  padding: 1.75rem 1.15rem 1.4rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 28rem;
  height: 100%;
}

.things-card-icon {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  color: var(--accent-amber);
  margin: 0 auto 0.85rem;
  display: block;
}

.things-card h3 {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  letter-spacing: -0.03em;
  color: var(--hero-ink);
  margin: 0 0 0.75rem;
  line-height: 1.2;
  text-align: center;
}

.things-card > p {
  margin: 0;
  color: rgba(69, 70, 67, 0.82);
  max-width: none;
  overflow-wrap: break-word;
}

.things-card-price {
  margin: 0 0 0.85rem !important;
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent-sage);
}

.things-card-label {
  display: block;
  margin: 0.15rem 0 0.15rem;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-sage);
}

.things-card > .things-card-label {
  margin-top: 1.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-amber);
}

.things-card-best {
  margin-top: auto !important;
  padding-top: 0.35rem;
}

.things-card-best .things-card-label {
  display: block;
  margin-right: 0;
}

.things-plans,
#web-design-plans {
  scroll-margin-top: calc(3px + var(--header-height) + 2.25rem);
}

.things-plans + .things-plans {
  margin-top: 3rem;
}

.things-card > .things-card-note {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6e6f6b;
}

.things-card .things-card-more {
  display: inline-block;
  margin-top: 0.15rem;
  max-width: 100%;
  min-height: 44px;
  color: var(--accent-sage);
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 1px solid transparent;
}

.things-card .things-card-more:hover,
.things-card .things-card-more:focus-visible {
  border-bottom-color: var(--accent-sage);
  text-decoration: none;
}

.things-grid--two .things-card {
  min-height: 0;
  padding: 1.75rem 1.35rem 1.5rem;
}

.things-grid--two .things-card ul {
  margin: 0.35rem 0 1.15rem;
}

@supports (grid-template-rows: subgrid) {
  @media (min-width: 768px) {
    .things-grid--two .things-card {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 8;
      row-gap: 0;
      align-items: start;
    }

    .things-grid--two .things-card-best {
      margin-top: 0 !important;
      padding-top: 0.85rem;
    }
  }
}

.things-card ul {
  list-style: none;
  margin: 1.1rem 0 1.5rem;
  padding: 0;
}

.things-card li {
  position: relative;
  padding: 0.28rem 0 0.28rem 1.15rem;
  color: var(--hero-ink);
  font-size: 0.95rem;
}

.things-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent-sage);
}

.things-card a {
  margin-top: auto;
  color: var(--accent-sage);
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow-wrap: break-word;
}

.things-card a:hover,
.things-card a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .things {
    padding: calc(0.7rem + var(--things-wave)) 0 calc(2.75rem + var(--things-wave));
  }

  .things-title {
    font-size: clamp(1.5rem, 8.5vw, 32px);
    white-space: normal;
    line-height: 1.55;
  }

  .things-title--long {
    font-size: clamp(1.45rem, 7.5vw, 1.85rem);
    max-width: 14ch;
  }

  .things-lead {
    font-size: 0.98rem;
    margin-bottom: 1.75rem;
    padding: 0 0.25rem;
  }

  .things-title-br {
    display: block;
  }

  .things-grid,
  .things-grid--two {
    grid-template-columns: minmax(0, 1fr);
    max-width: min(24rem, 100%);
    margin-inline: auto;
  }

  .things-card {
    min-height: 0;
    width: 100%;
    height: auto;
  }

  .things-actions {
    margin-top: 1.75rem;
    margin-inline: auto;
    padding: 0.25rem 0 1.5rem;
    max-width: min(24rem, 100%);
  }

  .things-actions .btn {
    width: 100%;
    max-width: min(24rem, 100%);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .things {
    padding: calc(0.85rem + var(--things-wave)) 0 calc(2.75rem + var(--things-wave));
  }

  .things-title {
    font-size: clamp(1.75rem, 5.2vw, 42px);
    margin-bottom: 1.75rem;
  }

  .things-title--long {
    font-size: clamp(1.65rem, 4.2vw, 2.15rem);
  }

  .things-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    width: 100%;
    max-width: 100%;
  }

  .things-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    width: 100%;
    max-width: 100%;
  }

  .things-card {
    min-height: 0;
    padding: 1.2rem 0.8rem 1rem;
  }

  .things-card-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.65rem;
  }

  .things-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.45rem;
  }

  .things-card > p,
  .things-card li {
    font-size: 0.85rem;
    line-height: 1.45;
  }

  .things-card > .things-card-note {
    font-size: 0.78rem;
  }

  .things-card ul {
    margin: 0.75rem 0 1rem;
  }

  .things-card a {
    font-size: 0.85rem;
    min-height: 40px;
    align-items: flex-start;
  }
}

section.course {
  background: var(--bg-page);
}

.course-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 68rem;
  margin: 1.35rem auto 0;
}

.course-stack .things-card {
  min-height: 0;
  height: auto;
  padding: 1.75rem 1.35rem 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(92, 122, 107, 0.18);
}

.course-stack .things-card .btn {
  margin-top: 1.25rem;
  align-self: center;
  color: var(--text-on-slate);
  text-decoration: none;
}

.course-stack .things-card .btn:hover,
.course-stack .things-card .btn:focus-visible {
  text-decoration: none;
}

.course-page {
  min-height: 50vh;
}

.course-page-title {
  text-align: center;
  max-width: 18ch;
  margin-inline: auto;
}

@media (max-width: 767px) {
  .section {
    padding: 2.5rem 0;
  }
}

.section-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 20ch;
}

.kinetic-heading {
  font-family: "Pacifico", cursive;
  font-size: 50px;
  font-weight: 400;
  color: var(--accent-primary, #5c7a6b);
  display: block;
  text-align: center;
  line-height: 1.55;
  margin-bottom: 0.95rem;
  max-width: 100%;
  overflow: visible;
  padding: 0.12em 0 0.28em;
  overflow-wrap: normal;
}

@media (max-width: 767px) {
  .kinetic-heading {
    font-size: clamp(1.5rem, 8vw, 32px);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .kinetic-heading {
    font-size: 42px;
  }
}

.section-intro {
  text-align: center;
  margin: 0 auto 3rem;
  max-width: 50ch;
  color: var(--text-primary);
  opacity: 0.9;
}

/* ============================================
   BENTO VIDEO GRID — COMPLETE REPLACEMENT
   ============================================ */

/* Container */
.bento-icon-sprite {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bento-showcase {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.bento-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 16px;
  contain: paint;
}

.bento-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  align-self: flex-end;
  margin-top: 0.75rem;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border: none;
  border-radius: 4px;
  background: var(--accent-amber);
  color: var(--text-on-slate);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-pause:hover {
  background: #a8682f;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 28, 26, 0.15);
}

.bento-pause:focus-visible {
  outline: none;
  background: #a8682f;
  box-shadow: 0 0 0 3px rgba(193, 122, 58, 0.28);
}

.bento-pause-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  display: block;
}

.bento-pause-icon--play {
  display: none;
}

.bento-pause.is-paused .bento-pause-icon--pause {
  display: none;
}

.bento-pause.is-paused .bento-pause-icon--play {
  display: block;
}

/* Each row is a window showing exactly 3 cells */
.bento-row {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.bento-row + .bento-row {
  margin-top: 8px;
}

/* Track holds 6 cells in a row, but only 3 are visible at a time */
.bento-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

/* Each cell is square */
.bento-cell {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

a.bento-cell {
  text-decoration: none;
  cursor: pointer;
}

a.bento-cell:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(193, 122, 58, 0.28);
  z-index: 1;
}

.bento-cell--sage {
  background: var(--accent-sage);
  color: var(--text-on-slate);
}

.bento-cell--soft {
  background: var(--accent-sage-soft);
  color: var(--text-on-slate);
}

.bento-cell--amber {
  background: var(--accent-amber);
  color: var(--text-on-slate);
}

.bento-cell--slate {
  background: var(--container-bg);
  color: var(--text-on-slate);
}

.bento-cell--cream {
  background: #fff;
  color: var(--accent-sage);
  box-shadow: inset 0 0 0 1px rgba(92, 122, 107, 0.18);
}

.bento-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.85rem;
  text-align: center;
  transition: transform 0.25s ease;
}

.bento-icon {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
}

.bento-label {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.55rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.bento-cell:hover .bento-face {
  transform: translateY(-2px);
}

/* The track is twice as wide as the visible area (6 columns, show 3).
   We use negative margin to make only 3 columns worth of width visible,
   then translate to show different sets. */

.bento-track {
  width: calc(200% + 8px);
}

.bento-col-right {
  position: absolute;
  right: 0;
  top: -100%;
  width: calc((100% - 16px) / 3);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  animation: colSlideDown 14s ease-in-out infinite;
}

.bento-col-right .bento-cell {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  position: relative;
  flex: none;
  aspect-ratio: auto;
}

.bento-col-right .bento-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@keyframes colSlideDown {
  0%,
  60% {
    top: -100%;
  }
  70%,
  90% {
    top: 0;
  }
  95%,
  100% {
    top: -100%;
  }
}

/* ============================================
   SLIDING ANIMATIONS
   ============================================ */

/* Top row: starts showing cells 1-3, slides left so cells 4-6 appear */
@keyframes slideTopRow {
  0%,
  5% {
    transform: translateX(0);
  }
  15%,
  55% {
    transform: translateX(calc(-50% - 4px));
  }
  65%,
  100% {
    transform: translateX(0);
  }
}

/* Bottom row: starts showing cells 1-3, slides left so cells 4-6 appear */
@keyframes slideBottomRow {
  0%,
  5% {
    transform: translateX(calc(-50% - 4px));
  }
  15%,
  55% {
    transform: translateX(0);
  }
  65%,
  100% {
    transform: translateX(calc(-50% - 4px));
  }
}

.bento-track-right {
  animation: slideTopRow 14s ease-in-out infinite;
}

.bento-track-left {
  animation: slideBottomRow 14s ease-in-out infinite;
}

/* Pause when off screen */
.bento-slider.paused .bento-track-right,
.bento-slider.paused .bento-track-left,
.bento-slider.paused .bento-col-right {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .bento-track-right,
  .bento-track-left,
  .bento-col-right {
    animation: none;
  }

  .bento-pause {
    display: none;
  }
}

/* ============================================
   MOBILE — 2x2 visible grid
   ============================================ */
@media (max-width: 767px) {
  .bento-track {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    width: calc(300% + 10px);
  }

  .bento-row + .bento-row {
    margin-top: 6px;
  }

  .bento-cell {
    border-radius: 12px;
  }

  .bento-label {
    font-size: clamp(0.95rem, 3.8vw, 1.25rem);
  }

  /* On mobile show 2 cells at a time, track has 6 so it's 3x wider */
  @keyframes slideTopRow {
    0%,
    5% {
      transform: translateX(0);
    }
    15%,
    40% {
      transform: translateX(calc(-33.33% - 2px));
    }
    50%,
    75% {
      transform: translateX(calc(-66.66% - 4px));
    }
    85%,
    100% {
      transform: translateX(0);
    }
  }

  @keyframes slideBottomRow {
    0%,
    5% {
      transform: translateX(calc(-66.66% - 4px));
    }
    15%,
    40% {
      transform: translateX(calc(-33.33% - 2px));
    }
    50%,
    75% {
      transform: translateX(0);
    }
    85%,
    100% {
      transform: translateX(calc(-66.66% - 4px));
    }
  }

  .bento-col-right {
    width: calc((100% - 6px) / 2);
  }
}

/* ============================================
   TABLET
   ============================================ */
@media (min-width: 768px) and (max-width: 1366px) {
  html,
  body {
    overflow-x: hidden;
  }

  #services > .container {
    max-width: none;
    width: 100%;
    padding-left: clamp(1.5rem, 4vw, 2.5rem);
    padding-right: clamp(1.5rem, 4vw, 2.5rem);
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .bento-showcase,
  .bento-slider {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .bento-icon {
    width: clamp(1.9rem, 3.2vw, 2.35rem);
    height: clamp(1.9rem, 3.2vw, 2.35rem);
  }

  .bento-label {
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  }
}

@media (min-width: 1367px) {
  .bento-showcase {
    width: 78%;
    max-width: 860px;
    margin-inline: auto;
  }

  .bento-slider {
    width: 100%;
    max-width: none;
  }

  .bento-icon {
    width: 2.1rem;
    height: 2.1rem;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .bento-cell {
    border-radius: 14px;
  }
}

#portfolio {
  overflow-x: hidden;
}

.how-we-work-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

section.how-we-work {
  --things-wave: clamp(3.25rem, 7vw, 5.75rem);
  position: relative;
  background: var(--container-bg);
  padding: calc(1.35rem + var(--things-wave)) 0 calc(4.25rem + var(--things-wave));
  overflow-x: clip;
  max-width: 100%;
}

section.how-we-work .kinetic-heading {
  color: var(--bg-page);
}

.how-we-work-heading {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  color: var(--bg-page);
  margin: 0 auto 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 22ch;
}

.how-we-work-lead {
  margin: 0 auto;
  max-width: 42ch;
  color: rgba(250, 248, 245, 0.88);
}

.how-we-work-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 2.75rem;
  text-align: left;
  background: var(--bg-page);
  border-radius: 18px;
  overflow: hidden;
}

.how-step {
  background: var(--bg-page);
  padding: 1.5rem 1.25rem 1.4rem;
  min-width: 0;
}

@media (min-width: 768px) {
  .how-step + .how-step {
    position: relative;
  }

  .how-step + .how-step::before {
    content: "";
    position: absolute;
    top: 1.35rem;
    bottom: 1.35rem;
    left: 0;
    width: 1px;
    background: rgba(69, 70, 67, 0.16);
    pointer-events: none;
  }
}

.how-step-num {
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--accent-amber);
}

.how-step-title {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  color: var(--hero-ink);
  margin: 0 0 0.65rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.how-step-copy {
  margin: 0;
  max-width: none;
  color: rgba(69, 70, 67, 0.82);
  font-size: 0.95rem;
}

@media (max-width: 767px) {
  section.how-we-work {
    padding: calc(0.7rem + var(--things-wave)) 0 calc(2.75rem + var(--things-wave));
  }

  .how-we-work-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 2rem;
  }

  .how-step {
    padding: 1.25rem 1rem 1.15rem;
  }

  .how-step-copy {
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  section.how-we-work {
    padding: calc(0.85rem + var(--things-wave)) 0 calc(2.75rem + var(--things-wave));
  }

  .how-step {
    padding: 1.2rem 0.9rem 1.1rem;
  }

  .how-step-copy {
    font-size: 0.88rem;
    line-height: 1.5;
  }
}

.portfolio-showcase {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.portfolio-item {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem 3rem;
  align-items: center;
  width: 100%;
}

.portfolio-device {
  margin: 0;
  width: 100%;
  min-width: 0;
}

.portfolio-laptop {
  background: var(--browser-frame);
  border-radius: 12px;
  overflow: hidden;
  padding-bottom: 0.7rem;
}

.portfolio-laptop-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.35rem;
  padding: 0 0.95rem;
}

.portfolio-laptop-chrome span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(250, 248, 245, 0.4);
}

.portfolio-screen {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--browser-screen);
  margin: 0 0.7rem;
  border-radius: 2px;
}

.portfolio-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.portfolio-screen--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hero-ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.portfolio-story {
  min-width: 0;
}

.portfolio-kicker {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-sage);
}

.portfolio-story h3 {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  color: var(--hero-ink);
  margin: 0 0 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.portfolio-story > p {
  margin: 0 0 1.15rem;
  max-width: 42ch;
  color: rgba(69, 70, 67, 0.82);
}

.portfolio-facts {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.portfolio-facts li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.15rem;
  font-size: 0.95rem;
}

.portfolio-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-sage);
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.tag {
  background: rgba(92, 122, 107, 0.1);
  color: var(--accent-sage);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.portfolio-more {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 500;
  color: var(--accent-sage);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.portfolio-more:hover,
.portfolio-more:focus-visible {
  border-bottom-color: var(--accent-sage);
}

@media (max-width: 1024px) {
  .portfolio-showcase {
    gap: 3.25rem;
  }

  .portfolio-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-device {
    max-width: 36rem;
    width: 100%;
    margin-inline: auto;
  }

  .portfolio-story > p {
    max-width: none;
  }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
  gap: 3rem;
  align-items: start;
}

.about-text h2 {
  margin-bottom: 0.85rem;
}

.about-text p {
  margin: 0 0 1.25rem;
}

.about-photo-wrap {
  min-width: 0;
}

.about-photo {
  margin: 0;
}

.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: var(--container-bg);
}

.about-photo figcaption {
  margin-top: 0.75rem;
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--hero-ink);
  letter-spacing: -0.02em;
}

@media (max-width: 767px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.blog-card {
  background: var(--container-bg);
  border: 1px solid var(--container-border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-date {
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.6);
}

.blog-card h3 {
  color: var(--text-on-slate);
}

.blog-card p {
  color: var(--text-on-slate);
  opacity: 0.85;
  margin: 0;
  flex-grow: 1;
  max-width: none;
}

.blog-more {
  color: var(--accent-amber);
  text-decoration: none;
  font-weight: 500;
  margin-top: 0.5rem;
  align-self: flex-start;
}

.blog-more:hover,
.blog-more:focus-visible {
  text-decoration: underline;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact */
section.contact {
  --things-wave: clamp(3.25rem, 7vw, 5.75rem);
  position: relative;
  background: var(--container-bg);
  padding: calc(1.35rem + var(--things-wave)) 0 calc(4.25rem + var(--things-wave));
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
  overflow-x: clip;
  max-width: 100%;
}

.contact-inner {
  position: relative;
  z-index: 2;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-title {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-size: clamp(1.35rem, 8vw, 50px);
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--bg-page);
  text-align: center;
  margin: 0 0 0.5rem;
  max-width: 100%;
  overflow: visible;
  padding: 0.12em 0 0.28em;
}

.contact-lead {
  margin: 0 0 2rem;
  margin-left: auto;
  margin-right: auto;
  color: rgba(250, 248, 245, 0.88);
}

.contact-form {
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-page);
  border: 1px solid rgba(69, 70, 67, 0.12);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--hero-ink);
  resize: vertical;
  min-height: 0;
}

.quiz-progress {
  margin: 0 0 1.5rem;
}

.quiz-progress-label {
  margin: 0 0 0.45rem;
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.88);
}

.quiz-progress-steps {
  display: grid;
  grid-template-columns: repeat(var(--quiz-steps, 4), minmax(0, 1fr));
  gap: 0.4rem;
  max-width: 16rem;
  margin: 0 auto;
}

.quiz-step {
  appearance: none;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.quiz-step-bar {
  display: block;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(250, 248, 245, 0.22);
  transition: background 0.2s ease, height 0.2s ease;
}

.quiz-step.is-complete .quiz-step-bar,
.quiz-step.is-current .quiz-step-bar {
  background: var(--accent-amber);
}

.quiz-step.is-current .quiz-step-bar {
  height: 8px;
}

.quiz-step:not([disabled]):hover .quiz-step-bar,
.quiz-step:not([disabled]):focus-visible .quiz-step-bar {
  background: var(--accent-amber);
}

.quiz-step:focus-visible {
  outline: 2px solid var(--accent-amber);
  outline-offset: 4px;
  border-radius: 4px;
}

.quiz-step[disabled] {
  cursor: default;
}

.quiz-question {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  letter-spacing: -0.03em;
  line-height: 1.3;
  color: var(--bg-page);
  margin: 0 0 1.15rem;
  text-align: center;
}

.quiz-topic {
  margin: 0 0 0.4rem;
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.88);
}

.quiz-field-label {
  display: block;
  margin: 0.15rem 0 0.4rem;
  color: var(--bg-page);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
}

.quiz-options + .quiz-field-label {
  margin-top: 1.15rem;
}

.quiz-required {
  color: var(--accent-amber);
  font-weight: 700;
}

.quiz-note {
  min-height: 6.5rem;
}

.quiz-booking {
  margin: 0 auto;
  max-width: 42rem;
}

.quiz-calendly {
  margin: 1.5rem auto 0;
  min-width: 320px;
  min-height: 700px;
  height: 700px;
  background: var(--bg-page);
  border-radius: 18px;
  overflow: hidden;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.quiz-option {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 6.75rem;
  padding: 1.35rem 1.1rem;
  background: var(--bg-page);
  border: 2px solid transparent;
  border-radius: 18px;
  color: var(--hero-ink);
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, border-width 0.2s ease, padding 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.quiz-option-icon {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  color: var(--accent-amber);
  display: block;
  overflow: hidden;
}

.quiz-option:hover,
.quiz-option:focus-visible {
  border-color: var(--accent-amber);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 28, 26, 0.12);
  outline: none;
}

.quiz-option.is-selected {
  border-width: 4px;
  border-color: var(--accent-amber);
  padding: calc(1.35rem - 2px) calc(1.1rem - 2px);
  transform: none;
  box-shadow: none;
  outline: none;
}

.quiz-hint {
  margin: 0.85rem 0 0;
  color: rgba(250, 248, 245, 0.75);
  font-size: 0.9rem;
  max-width: none;
}

.quiz-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-top: 1.15rem;
}

.quiz-nav .quiz-back {
  margin-top: 0.45rem;
}

.quiz-continue[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.quiz-continue[disabled]:hover,
.quiz-continue[disabled]:focus-visible {
  background: var(--accent-amber);
  transform: none;
  box-shadow: none;
}

.quiz-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  margin: 0 auto;
  padding: 0;
  background: none;
  border: none;
  color: var(--bg-page);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.quiz-back:hover,
.quiz-back:focus-visible {
  color: var(--accent-amber);
  outline: none;
}

.quiz-confirm {
  margin: 0 auto 1rem;
  max-width: 42ch;
  color: var(--bg-page);
  font-size: 1.05rem;
  line-height: 1.65;
}

@media (min-width: 640px) {
  .quiz-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz-options:not(.quiz-options--two) > .quiz-option:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.425rem);
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-option {
    transition: none;
  }

  .quiz-option:hover,
  .quiz-option:focus-visible {
    transform: none;
  }
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(69, 70, 67, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-amber);
  box-shadow: 0 0 0 3px rgba(193, 122, 58, 0.28);
}

.contact-honeypot {
  display: none !important;
}

.contact-count {
  margin: -0.35rem 0 1rem;
  text-align: right;
  font-size: 0.8rem;
  color: rgba(250, 248, 245, 0.7);
}

.contact-captcha {
  display: flex;
  justify-content: center;
  margin: 0 0 1.25rem;
}

.contact-status {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-status.is-success {
  background: rgba(250, 248, 245, 0.18);
  color: var(--bg-page);
}

.contact-status.is-error {
  background: rgba(193, 122, 58, 0.22);
  color: var(--bg-page);
}

.contact-submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-send {
  min-width: min(200px, 100%);
  max-width: 100%;
}

@media (max-width: 767px) {
  section.contact {
    padding: calc(0.7rem + var(--things-wave)) 0 calc(2.75rem + var(--things-wave));
  }

  .contact-title {
    font-size: clamp(1.5rem, 8.5vw, 32px);
    white-space: normal;
    line-height: 1.55;
  }

  .btn-send {
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  section.contact {
    padding: calc(0.85rem + var(--things-wave)) 0 calc(2.75rem + var(--things-wave));
  }

  .contact-title {
    font-size: clamp(1.75rem, 5.2vw, 42px);
  }
}

.contact-alt {
  margin-top: 2rem;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  color: rgba(250, 248, 245, 0.88);
}

.contact-alt a {
  color: var(--bg-page);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-follow {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(250, 248, 245, 0.22);
}

.contact-follow-title {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--bg-page);
  margin: 0 0 1rem;
}

.contact-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--bg-page);
  border: 1px solid rgba(250, 248, 245, 0.35);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-social svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.contact-social a:hover {
  background: rgba(250, 248, 245, 0.12);
  border-color: var(--bg-page);
}

.contact-social a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(193, 122, 58, 0.28);
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease calc(var(--stagger, 0) * 0.1s),
    transform 0.6s ease calc(var(--stagger, 0) * 0.1s);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  background: #1a1c1a;
  color: var(--text-on-slate);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
  padding-bottom: 2.5rem;
}

.logo--footer {
  color: var(--text-on-slate);
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15em;
}

.logo--footer .logo-digital {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  color: inherit;
}

.logo--footer .logo-daydream {
  font-family: var(--font-logo-script);
  font-weight: 400;
  font-size: 1.5rem;
  color: inherit;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: center;
}

.footer-nav a {
  color: rgba(250, 248, 245, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--text-on-slate);
}

.footer-contact {
  text-align: right;
}

.footer-contact p {
  margin: 0 0 0.35rem;
  max-width: none;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 1.5rem 2rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0 auto;
  font-size: 0.85rem;
  color: rgba(250, 248, 245, 0.75);
  max-width: none;
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-nav ul {
    align-items: center;
  }

  .footer-contact {
    text-align: center;
  }
}

/* ——— Services page ——— */
.page-services {
  --service-border: rgba(28, 31, 29, 0.14);
  --service-warm: rgba(40, 36, 32, 0.18);
  --text-muted: rgba(69, 70, 67, 0.55);
  --slate-tag: #4a6580;
}

.service-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.service-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-services .services-page-hero {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--service-border);
}

.page-services .services-page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.page-services .services-page-hero__title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 20ch;
  color: var(--accent-amber);
}

.page-services .services-page-hero__title-em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-sage);
}

.page-services .services-page-hero__lead {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.7;
  margin: 0 0 1.5rem;
  color: var(--text-primary);
  max-width: 42ch;
}

.page-services .services-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.page-services .services-anchor-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.45rem 0.9rem 0.45rem 0.75rem;
  font-size: 0.88rem;
  line-height: 1.3;
  text-decoration: none;
  color: var(--text-primary);
  background: #fff;
  border: 1px solid var(--service-warm);
  border-radius: 9999px;
  box-shadow: 0 1px 0 rgba(26, 28, 26, 0.04);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.page-services .services-anchor-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.page-services .services-anchor-pill:hover,
.page-services .services-anchor-pill:focus-visible {
  color: #fff;
  background: var(--accent-sage);
  border-color: var(--accent-sage);
  box-shadow: 0 2px 12px rgba(92, 122, 107, 0.35);
  outline: none;
}

.page-services .services-anchor-pill:hover .services-anchor-pill__dot,
.page-services .services-anchor-pill:focus-visible .services-anchor-pill__dot {
  background: #fff;
}

/* Service sections */
.page-services .service-detail {
  border-top: 1px solid var(--service-border);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.page-services .service-detail__inner {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.page-services .service-detail__num {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  font-family: var(--font-body);
}

.page-services .service-detail__name {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.page-services .service-tag {
  display: inline-block;
  margin: 0;
  padding: 0.22rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-body);
  border-radius: 9999px;
  line-height: 1.2;
  width: max-content;
  max-width: 100%;
}

.page-services .service-tag--sage {
  color: #fff;
  background: var(--accent-sage);
}

.page-services .service-tag--slate {
  color: #fff;
  background: var(--slate-tag);
}

.page-services .service-tag--amber {
  color: #fff;
  background: var(--accent-amber);
}

.page-services .service-detail__sticky {
  position: sticky;
  top: 7rem;
  align-self: start;
  padding-top: 0.25rem;
}

.page-services .service-intro {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  line-height: 1.7;
  margin: 0 0 1.75rem;
  color: var(--text-primary);
  max-width: 60ch;
}

/* Bento grids */
.page-services .service-bento {
  display: grid;
  gap: 1rem;
}

.page-services .service-bento--2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-services .service-bento--seo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-services .service-bento--seo > :first-child {
  grid-column: 1 / -1;
}

.page-services .service-bento--3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-services .service-bento--google {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-services .service-bento--google > :first-child,
.page-services .bento-service-card--span-full {
  grid-column: 1 / -1;
}

.page-services .bento-service-card--span-2-cols {
  grid-column: 1 / -1;
}

.page-services .bento-service-card {
  background: #fff;
  border: 1px solid var(--service-warm);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: 0 0 0 rgba(26, 28, 26, 0);
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.page-services .bento-service-card:hover {
  box-shadow: 0 6px 24px rgba(26, 28, 26, 0.1);
  border-color: rgba(40, 36, 32, 0.28);
}

.page-services .bento-service-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4em;
  font-weight: 600;
}

.page-services .bento-service-card p {
  margin: 0;
  max-width: none;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(69, 70, 67, 0.88);
}

.page-services .bento-service-card--highlight {
  border-color: transparent;
  box-shadow: none;
  color: #fff;
}

.page-services .bento-service-card--highlight:hover {
  box-shadow: 0 8px 28px rgba(26, 28, 26, 0.15);
  filter: brightness(1.04);
  border-color: transparent;
}

.page-services .bento-service-card--highlight--sage {
  background: var(--accent-sage);
}

.page-services .bento-service-card--highlight--slate {
  background: var(--slate-tag);
}

.page-services .bento-service-card--highlight--amber {
  background: var(--accent-amber);
}

.page-services .bento-service-card--highlight h3,
.page-services .bento-service-card--highlight p {
  color: #fff;
}

/* CTA */
.page-services .services-cta {
  background: #1c1f1d;
  color: #faf8f5;
  padding: clamp(3rem, 8vw, 4.5rem) 0;
  margin-top: 0;
}

.page-services .services-cta__inner {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.page-services .services-cta__title {
  color: #faf8f5;
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 0.75em;
  font-weight: 500;
}

.page-services .services-cta__lead {
  color: rgba(250, 248, 245, 0.82);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 auto 1.75rem;
  max-width: 44ch;
}

.page-services .services-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-body);
  text-decoration: none;
  color: var(--hero-ink);
  background: var(--accent-amber);
  border-radius: 9999px;
  border: none;
  box-shadow: 0 2px 12px rgba(193, 122, 58, 0.35);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.page-services .services-cta__btn:hover,
.page-services .services-cta__btn:focus-visible {
  background: #d18a4a;
  color: var(--hero-ink);
  box-shadow: 0 4px 20px rgba(193, 122, 58, 0.45);
  transform: translateY(-1px);
  outline: none;
}

/* Services — medium screens */
@media (max-width: 1024px) {
  .page-services .service-bento--3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Services — mobile: stack, static labels, single-column bento */
@media (max-width: 767px) {
  .page-services .services-page-hero__grid {
    grid-template-columns: 1fr;
  }

  .page-services .services-page-hero__title {
    max-width: none;
  }

  .page-services .service-detail__inner {
    grid-template-columns: 1fr;
  }

  .page-services .service-detail__sticky {
    position: static;
    top: auto;
  }

  .page-services .service-bento--2x2,
  .page-services .service-bento--seo,
  .page-services .service-bento--3col,
  .page-services .service-bento--google {
    grid-template-columns: 1fr;
  }

  .page-services .service-bento--seo > :first-child,
  .page-services .service-bento--google > :first-child,
  .page-services .bento-service-card--span-full,
  .page-services .bento-service-card--span-2-cols {
    grid-column: auto;
  }

  .page-services .service-intro {
    max-width: none;
  }

  .page-services .services-page-hero__lead {
    max-width: none;
  }
}

/* Very narrow: comfortable tap and text */
@media (max-width: 380px) {
  .page-services .services-anchor-pill {
    font-size: 0.82rem;
    padding-left: 0.65rem;
    padding-right: 0.75rem;
  }
}
