/* Home — young editorial / image-first */

body.is-home {
  background: #f3f1ec;
}

body.is-home .site-header {
  background: rgba(243, 241, 236, 0.78);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* —— Hero —— */
.hero--young {
  min-height: min(92svh, 820px);
  align-items: end;
}
.hero--young .hero__shade {
  background:
    linear-gradient(100deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.2) 52%, rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, transparent 48%);
}
.hero--young .hero-inner {
  padding: clamp(4rem, 14vh, 6.5rem) 0 2.6rem;
}
.hero--young h1 {
  max-width: 14ch;
  font-size: clamp(2.2rem, 6.8vw, 3.85rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-stretch: normal;
  margin: 0 0 0.75rem;
}
.hero--young .lead {
  max-width: 22rem;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
.hero--young .hero-cta { margin-top: 1.35rem; }
.hero.hero--young .btn-primary {
  background: #1abc9c;
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.1;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— Marquee (seamless head-to-tail loop) —— */
.marquee {
  overflow: hidden;
  background: #111;
  color: #fff;
  padding: 0.6rem 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: c8-marquee var(--marquee-duration, 28s) linear infinite;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 1.75rem;
  /* Trailing gap equals item gap so group boundaries join without a jump */
  padding-right: 1.75rem;
}
.marquee__group span {
  white-space: nowrap;
  opacity: 0.88;
}
.marquee__group span::after {
  content: "●";
  margin-left: 1.75rem;
  color: var(--accent);
  font-size: 0.45rem;
  vertical-align: middle;
}
@keyframes c8-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); }
}

/* —— Look rail (image-first, young) —— */
.home-look {
  padding: 0.85rem 0 0.35rem;
}
.home-look__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(58vw, 220px);
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0 1rem 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-look__rail::-webkit-scrollbar { display: none; }
.home-look__shot {
  position: relative;
  display: block;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 3 / 4;
  background: #1a1a1a;
  color: #fff;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 10px 28px rgba(20, 18, 14, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.home-look__shot:link,
.home-look__shot:visited,
.home-look__shot:hover,
.home-look__shot:active,
.home-look__shot:focus {
  color: #fff;
  text-decoration: none;
}
.home-look__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.7s ease;
}
.home-look__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 32%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.72) 100%);
  transition: background 0.35s ease;
}
.home-look__copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 0.28rem;
  padding: 1.15rem 0.95rem 0.95rem;
}
.home-look__mark {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--volt, #c8f54a);
}
.home-look__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}
.home-look__shot:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 18px 36px rgba(20, 18, 14, 0.18);
}
.home-look__shot:hover img { transform: scale(1.07); }
.home-look__shot:hover .home-look__shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, transparent 30%, rgba(0, 0, 0, 0.28) 56%, rgba(0, 0, 0, 0.8) 100%);
}
.home-look__shot:focus-visible {
  outline: 2px solid var(--volt, #c8f54a);
  outline-offset: 3px;
}
}

/* —— Shop —— */
.home-shop { padding-top: 1.75rem; }
.home-shop .section-head h2,
.home-work .section-head h2 {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  letter-spacing: -0.035em;
  margin: 0;
}
.shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(66%, 1fr);
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.shelf__item { scroll-snap-align: start; }
.shelf .product-card {
  height: 100%;
  border-radius: var(--radius);
  border: 0;
  background: #fff;
  box-shadow: none;
}

/* —— Work mosaic —— */
.home-work { padding-top: 0.5rem; }
.mosaic--young {
  display: grid;
  gap: 0.85rem;
}
.mosaic--young .mosaic__feature {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background: #111;
  color: #fff;
}
.mosaic--young .mosaic__feature img,
.mosaic--young .mosaic__tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease, width 0.55s ease;
}
.mosaic--young .mosaic__feature img {
  left: 50%;
  right: auto;
  width: 128%;
  max-width: none;
  transform: translateX(-50%);
}
.mosaic--young .mosaic__feature:hover img {
  width: 136%;
  transform: translateX(-50%);
}
.mosaic--young .mosaic__tile:hover img { transform: scale(1.04); }
.mosaic--young .mosaic__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.2rem 1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent);
  display: grid;
  gap: 0.25rem;
}
.mosaic--young .mosaic__overlay strong {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.mosaic--young .mosaic__overlay p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.88;
}
.mosaic--young .mosaic__stack {
  display: grid;
  gap: 0.85rem;
}
.mosaic--young .mosaic__tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background: #111;
  color: #fff;
}
.mosaic--young .mosaic__tile strong {
  position: absolute;
  left: 0.75rem;
  bottom: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

/* —— Order paths (photo lanes, not SaaS cards) —— */
.home-paths {
  padding: 2.5rem 0 1.5rem;
}
.home-paths__title {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}
.path-lanes {
  display: grid;
  gap: 0.85rem;
}
.path-lane {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 200px;
  color: #fff;
  background: #111;
}
.path-lane img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.path-lane:hover img { transform: scale(1.05); }
.path-lane::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.12) 52%, transparent 78%),
    rgba(0, 0, 0, 0.08);
}
.path-lane--team::after {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.12) 52%, transparent 78%),
    rgba(201, 148, 64, 0.26);
}
.path-lane--group::after {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.12) 52%, transparent 78%),
    rgba(36, 128, 124, 0.24);
}
.path-lane--quote::after {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.12) 52%, transparent 78%),
    rgba(176, 78, 62, 0.22);
}
.path-lane__copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.25rem;
  align-content: end;
  min-height: 200px;
  padding: 1.15rem 1.05rem;
}
.path-lane__copy strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.path-lane__copy span {
  font-size: 0.88rem;
  opacity: 0.9;
}
.home-paths__note {
  margin: 1rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-muted);
  max-width: 36rem;
}

/* —— Voices —— */
.home-voices { padding-top: 1rem; }
.home-voices__title {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.45rem;
}
.home-voices__lead {
  margin: 0 0 1rem;
  max-width: 40rem;
  color: var(--ink-muted, #5c5854);
  font-size: 0.98rem;
  line-height: 1.5;
}
.voice-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(78%, 1fr);
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}
.voice-card {
  margin: 0;
  scroll-snap-align: start;
  padding: 1.2rem 1.1rem;
  background: #fff;
  border-radius: var(--radius);
}
.voice-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.voice-card footer {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.voice-card cite {
  font-style: normal;
  font-weight: inherit;
}

/* —— Local close —— */
.home-local {
  margin-top: 1.5rem;
  background: #111;
  color: #fff;
  padding: 3.25rem 0;
  position: relative;
  overflow: hidden;
}
.home-local::before {
  content: "";
  position: absolute;
  width: 55%;
  height: 140%;
  right: -12%;
  top: -20%;
  background: radial-gradient(circle, rgba(184, 242, 61, 0.18), transparent 65%);
  pointer-events: none;
}
.home-local__inner { position: relative; z-index: 1; }
.home-local__place {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--volt);
}
.home-local h2 {
  color: #fff;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  letter-spacing: -0.035em;
  margin: 0 0 0.55rem;
}
.home-local__line {
  display: block;
  white-space: nowrap;
}
.home-local p {
  margin: 0;
  color: #a8a8a8;
  font-size: 0.92rem;
  max-width: 28rem;
}
.home-local .hero-cta { margin-top: 1.25rem; }
.home-local .btn-primary {
  background: #1abc9c;
  color: #fff;
  border-color: transparent;
}

.text-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
}

@media (min-width: 768px) {
  .home-look__rail {
    grid-auto-columns: minmax(200px, 1fr);
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: unset;
    overflow: visible;
    padding-inline: max(1rem, calc((100vw - var(--max)) / 2));
  }
  .shelf {
    grid-auto-flow: unset;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }
  .mosaic--young {
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
    height: auto;
  }
  .mosaic--young .mosaic__feature {
    aspect-ratio: 3 / 4;
    height: auto;
    min-height: 0;
  }
  .mosaic--young .mosaic__stack {
    height: 0;
    min-height: 100%;
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }
  .mosaic--young .mosaic__tile {
    aspect-ratio: auto;
    min-height: 0;
    height: 100%;
  }
  .path-lanes {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }
  .path-lane,
  .path-lane__copy { min-height: 320px; }
  .voice-rail {
    grid-auto-flow: unset;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; transform: none !important; }
  .home-look__shot,
  .home-look__shot img,
  .path-lane img,
  .mosaic--young img { transition: none !important; }
}
