:root {
  /* sampled from Red Rock sky top + desert floor */
  --sky: #859fc1;
  --sky-deep: #6e8bb0;
  --sand: #e8dcc8;
  --sand-deep: #d4c4a8;
  --floor: #c4ae8d;
  --blue: #5e7fa9;
  --blue-link: #5e7fa9;
  --ink: #111111;
  --muted: #161616;
  --footer: #161616;
  --footer-text: #f7f7f7;
  --font: "Karla", system-ui, sans-serif;
  --serif: "Old Standard TT", Georgia, serif;
  --script: "Great Vibes", cursive;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--blue); /* Safari status / address bar tint */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  /* button blue — Safari samples this for top + bottom chrome */
  background-color: var(--blue);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}

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

a { color: var(--blue-link); }

.sky-cap { display: none; }

.hero {
  position: relative;
  min-height: 560px;
  min-height: calc(560px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* Red Rock under the iPhone status bar */
  padding: calc(3.25rem + env(safe-area-inset-top, 0px)) 1.25rem 7rem;
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  top: -6%;
  right: -8%;
  bottom: -28%;
  left: -8%;
  height: auto;
  background:
    linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.2)),
    url("https://img1.wsimg.com/isteam/ip/162dadd0-a0a7-4ed4-aad0-5ee5ae11464e/758D3388-9690-4FCC-8776-20F1BBA89F14.jpeg/:/rs=w:1920,m")
      center 78% / cover no-repeat;
  transform: scale(1.08);
  transform-origin: center 85%;
  will-change: transform;
  z-index: -1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding-top: 0.5rem;
}

.hero-title {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.6rem, 10vw, 3rem);
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: min(100%, 220px);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 2px solid transparent;
}

.pill-solid {
  background: #fff;
  color: #222;
}

.pill-solid:hover,
.pill-solid:focus-visible {
  background: #f0f0f0;
}

.pill-outline {
  background: var(--blue);
  border: 2px solid #111;
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.15);
}

.pill-outline:hover,
.pill-outline:focus-visible {
  background: #4e6d94;
  border-color: #111;
  color: #fff;
}




.bio {
  position: relative;
  z-index: 2;
  background: var(--sand);
  padding: 0 1.25rem 3rem;
  margin-top: -230px;
  /* soft fade from canyon into desert floor */
  box-shadow: 0 -40px 50px -20px var(--sand);
}

.bio-inner {
  width: min(100%, 920px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.bio-photo {
  margin-top: 0;
  width: min(60vw, 240px);
  height: min(60vw, 240px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 12px 36px rgba(0,0,0,0.22);
  border: 4px solid rgba(255,255,255,0.85);
  will-change: transform;
  background: var(--sand-deep);
}

.bio-copy {
  background: rgba(232, 220, 200, 0.72);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 1.25rem 1.1rem 1.5rem;
  width: min(100%, 36rem);
}

.bio-copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font);
  font-size: 1.65rem;
  font-weight: 700;
}

.bio-copy p {
  margin: 0 auto 1.4rem;
  max-width: 36rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.values {
  background: var(--blue);
  padding: 2.5rem 0 2rem;
}

.values-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(85%, 1fr);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 1rem 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.values-track::-webkit-scrollbar { display: none; }

.value-card {
  scroll-snap-align: center;
  position: relative;
  min-height: 280px;
  border-radius: 4px;
  perspective: 1200px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: #1a2433;
  outline: none;
  -webkit-user-select: none;
  user-select: none;
}

.value-card-inner {
  position: relative;
  width: 100%;
  min-height: 280px;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  background: #1a2433;
  border-radius: 4px;
}

.value-card.is-flipped .value-card-inner {
  transform: rotateY(-180deg);
}

.value-face {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.value-front {
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transform: rotateY(0deg) translateZ(1px);
  -webkit-transform: rotateY(0deg) translateZ(1px);
}

.value-front::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 22, 22, 0.35);
}

.value-front .value-label {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(2rem, 8vw, 2.6rem);
  color: #fff;
  letter-spacing: 0.02em;
  /* leave room under the word for the tap hand */
  transform: translateY(-0.65rem);
}

.tap-hint {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  opacity: 0.62;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.tap-hint svg {
  width: 56px;
  height: 56px;
  display: block;
}
.tap-hint-label {
  margin-top: 0.05rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: inherit;
  line-height: 1;
  opacity: 1;
}


.value-back {
  background: linear-gradient(160deg, #1a2433 0%, #243447 55%, #2c3e50 100%);
  color: #fff;
  transform: rotateY(-180deg) translateZ(1px);
  -webkit-transform: rotateY(-180deg) translateZ(1px);
  text-align: center;
  gap: 0.75rem;
  justify-content: center;
}

.value-back blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(0.95rem, 3.6vw, 1.08rem);
  font-style: italic;
  line-height: 1.55;
  max-width: 28rem;
}

.value-back cite {
  font-family: var(--font);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
}

.carousel-dots button[aria-current="true"] {
  background: #fff;
  width: 18px;
}

.record .carousel-dots { padding-inline: 1.25rem; }
.record .carousel-dots button { background: #c9b89a; }
.record .carousel-dots button[aria-current="true"] { background: var(--blue); }

.record {
  background: var(--sand);
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}

.record-inner {
  width: 100%;
  margin: 0 auto;
}

.record h2 {
  margin: 0 auto 1.25rem;
  padding: 0 1.25rem;
  max-width: 920px;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.3rem);
  font-weight: 400;
}

.record-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 0.75rem;
  padding: 0 1.25rem;
  max-width: 920px;
}

.ctrl {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #c9b89a;
  background: rgba(255,255,255,0.55);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.record-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(88vw, 1fr);
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6vw;
  scroll-behavior: smooth;
  /* full-bleed — peek neighbors, no beige side gutters */
  padding: 0.35rem 6vw 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
}

.record-track::-webkit-scrollbar { display: none; }

.quote-card {
  scroll-snap-align: center;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(26, 31, 43, 0.1);
  padding: 1.35rem 1.15rem 1.5rem;
  min-height: 100%;
}

.outlet-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.95rem;
}

.outlet-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  background: #f4f1ea;
  padding: 6px;
}

.outlet {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quote-card blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.7;
  color: #222;
}

.site-footer {
  /* solid color so Safari can tint the address bar (not white) */
  background-color: var(--blue);
  color: var(--footer-text);
  padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
  position: relative;
}

/* Extra paint under Safari's bottom chrome / home indicator */
.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: max(env(safe-area-inset-bottom, 0px), 48px);
  background-color: var(--blue);
  pointer-events: none;
}

.site-footer p { margin: 0; }

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {

  .hero {
    min-height: 640px;
    padding-bottom: 8rem;
  }

  .hero-actions {
    flex-direction: row;
    width: auto;
  }

  .bio {
    margin-top: -260px;
  }

  .bio-inner {
    flex-direction: row;
    text-align: left;
    gap: 2.5rem;
    align-items: flex-end;
  }

  .bio-copy {
    text-align: left;
    width: auto;
    flex: 1;
  }

  .bio-copy p { margin-left: 0; }

  .values-track {
    grid-auto-flow: initial;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  .values .carousel-dots { display: none; }
  .value-card,
  .value-card-inner { min-height: 320px; }

  .record-track {
    grid-auto-columns: minmax(42vw, 420px);
    scroll-padding-inline: 29vw;
    padding-inline: 29vw;
  }
}

@media (min-width: 1024px) {
  .record-track {
    grid-auto-columns: minmax(36vw, 440px);
    scroll-padding-inline: 32vw;
    padding-inline: 32vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .bio-photo {
    transform: none !important;
  }
}
