/* =========================================================
   NUVO YTH page — builds on styles.css
   Accent = the royal blue from the "God Is In Columbus" merch.
   ========================================================= */
:root {
  --y-blue: #1B5FC1;
  --y-blue-dark: #134A99;
  --y-blue-soft: #DCE6F5;
}

.yblue { color: var(--y-blue); }
.ybig {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 8vw, 7.6rem); line-height: .86; letter-spacing: -.045em;
}
.ybig--md { font-size: clamp(2.6rem, 6vw, 5.6rem); }
.ybig--sm { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: .92; }
.ybig--light { color: var(--white); }

.ybtn--white { background: var(--white); color: var(--y-blue); }
.ybtn--white:hover { background: var(--y-blue-soft); }
.ybtn--blue { background: var(--y-blue); color: #fff; }
.ybtn--blue:hover { background: var(--y-blue-dark); }


/* ---------- Hero ---------- */
.yhero { --overlap: clamp(110px, 15vw, 230px); background: var(--y-blue); color: var(--white); padding: clamp(130px, 15vw, 180px) 0 0; display: flow-root; position: relative; z-index: 2; }
.yhero__kicker {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 22px;
  font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
}
.yhero__kicker span + span::before { content: "/"; margin-right: 22px; opacity: .55; }
.yhero__kicker--dark { color: var(--charcoal); margin: 0; }
.yhero__title {
  margin: 0; font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(4rem, 15.5vw, 15rem); line-height: .8; letter-spacing: -.055em;
}
.yline { display: block; }
.js .yline { opacity: 0; transform: translateY(40px); filter: blur(12px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.js .yhero.is-in .yline { opacity: 1; transform: none; filter: none; }
.js .yhero.is-in .yline + .yline { transition-delay: .15s; }

.yhero__badge { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin: clamp(26px, 3vw, 40px) 0 16px; }
.yoval {
  display: inline-block; padding: 8px 34px; border: 2.5px solid currentColor; border-radius: 50%;
  font-family: var(--font-serif); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1;
}
.yglobes { display: inline-flex; gap: 2px; }
.yglobes svg { width: clamp(40px, 4vw, 54px); height: auto; fill: none; stroke: currentColor; stroke-width: 1.6; }
.yglobes svg { animation: kspin-y 24s linear infinite; }
.yscript { font-family: var(--font-serif); font-style: italic; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1; }
.yhero__verse { margin: 0 0 32px; font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; opacity: .92; }
.yhero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@keyframes kspin-y { to { transform: rotate(360deg); } }

.yhero__photos {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 18px);
  max-width: var(--max); margin: clamp(48px, 6vw, 80px) auto 0; padding: 0 var(--gutter);
  position: relative; z-index: 1; margin-bottom: calc(-1 * var(--overlap));
}
.yhero__photos figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; box-shadow: 0 30px 60px rgba(10, 30, 70, .25); }
.yhero__photos figure:nth-child(2) { transform: translateY(-36px); }
.yhero__photos img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Intro ---------- */
.yintro { padding-top: calc(clamp(110px, 15vw, 230px) + clamp(70px, 8vw, 110px)); }
.yintro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: end; }
.yintro__lede { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 20px; }
.yintro__copy p:not(.yintro__lede):not(.yintro__kicker) { color: var(--ink-soft); }
.yintro__kicker { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.2; margin: 24px 0 0; color: var(--y-blue); }

/* ---------- Marquee ---------- */
.ymarquee { background: var(--charcoal); color: var(--white); overflow: hidden; padding: 20px 0; }
.ymarquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: kmarq-y 32s linear infinite; }
.ymarquee span { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -.02em; white-space: nowrap; }
.ymarquee b { color: #7FA6E6; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: .1em; }
@keyframes kmarq-y { to { transform: translateX(-50%); } }

/* ---------- Gather ---------- */
.ygather__head { margin-bottom: clamp(40px, 5vw, 64px); }
.ysteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--charcoal); }
.ystep { padding: 28px clamp(18px, 2.4vw, 34px) 10px 0; }
.ystep + .ystep { padding-left: clamp(18px, 2.4vw, 34px); border-left: 1px solid var(--line); }
.ystep__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--y-blue); margin-bottom: 20px; }
.ystep h3 { font-weight: 900; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1; letter-spacing: -.03em; margin-bottom: 14px; }
.ystep p { margin: 0; color: var(--ink-soft); }

/* ---------- Student Impact ---------- */
.yimpact { background: var(--cream); padding: clamp(70px, 10vw, 140px) 0; }
.yimpact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.yimpact__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.4; }
.yimpact__photo img { width: 100%; height: 100%; object-fit: cover; }
.yimpact__tag { display: inline-block; background: var(--y-blue); color: #fff; padding: 9px 18px; border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 22px; }
.yimpact__copy h2 { margin-bottom: 22px; }
.yimpact__copy p:not(.yimpact__tag):not(.yimpact__kicker) { color: var(--ink-soft); font-size: 1.1rem; max-width: 46ch; }
.yimpact__kicker { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 2vw, 1.8rem); color: var(--y-blue); margin: 22px 0 0; }

/* ---------- Verse ---------- */
.yverse { background: var(--y-blue); color: var(--white); padding: clamp(90px, 12vw, 170px) 0; text-align: center; }
.yverse__ref { margin: 0 0 24px; font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.yverse__text { margin: 0 auto; max-width: 18ch; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 5.6rem); line-height: .92; letter-spacing: -.04em; }
.yverse__text .w--accent { color: var(--white); font-family: var(--font-serif); font-style: italic; text-transform: none; font-weight: 400; letter-spacing: -.01em; }

/* ---------- Photo grid ---------- */
.ygrid__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: clamp(32px, 4vw, 52px); }
.ygrid__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.ygrid__photos figure { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--cream); }
.ygrid__photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ygrid__photos figure:hover img { transform: scale(1.05); }
.ygrid__photos figcaption {
  position: absolute; left: 14px; top: 14px; background: var(--white); color: var(--charcoal); padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .12em;
}
.ygrid__photos figure:nth-child(2), .ygrid__photos figure:nth-child(5) { transform: translateY(28px); }

/* ---------- Parents ---------- */
.yparents { background: var(--charcoal); color: var(--white); }
.yparents__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.yparents__copy h2 { margin-bottom: 26px; }
.yparents__copy p:not(.eyebrow) { color: rgba(244, 240, 231, .8); max-width: 50ch; }
.yparents__copy .btn { margin-top: 14px; }
.yparents__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 4.6; }
.yparents__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Team + serve ---------- */
.yteam__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(16px, 2vw, 26px); }
.yteam__card { display: grid; grid-template-columns: .75fr 1fr; gap: 30px; align-items: center; background: var(--cream); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.yteam__card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 18px; }
.yteam__card h2 { margin-bottom: 6px; }
.yteam__role { font-family: var(--font-display); font-weight: 700; color: var(--y-blue); margin: 0 0 14px; }
.yteam__card p:not(.eyebrow):not(.yteam__role) { color: var(--ink-soft); margin: 0 0 22px; }
.yserve { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 620px; display: flex; align-items: flex-end; color: var(--white); background: var(--y-blue); }
.yserve__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 1.2s var(--ease); }
.yserve::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(19, 74, 153, .97) 30%, rgba(19, 74, 153, .05) 70%); }
.yserve:hover .yserve__bg { transform: scale(1.04); }
.yserve__content { position: relative; z-index: 1; padding: clamp(26px, 3.6vw, 48px); }
.yserve__content h2 { margin-bottom: 14px; }
.yserve__content p:not(.eyebrow) { color: rgba(255, 255, 255, .88); margin: 0 0 24px; max-width: 40ch; }
.yserve .eyebrow--sage { color: var(--y-blue-soft); }

/* ---------- Closing ---------- */
.yclosing .closing__title { text-transform: uppercase; letter-spacing: -.05em; max-width: 14ch; }
.yclosing .closing__title .w--accent { color: var(--y-blue); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .yintro__grid, .yimpact__grid, .yparents__grid, .yteam__grid { grid-template-columns: 1fr; }
  .ysteps { grid-template-columns: 1fr; }
  .ystep + .ystep { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .ygrid__photos { grid-template-columns: 1fr 1fr; }
  .ygrid__photos figure:nth-child(2), .ygrid__photos figure:nth-child(5) { transform: none; }
  .ygrid__photos figure:nth-child(even) { transform: translateY(20px); }
  .yimpact__photo, .yparents__photo { max-width: 520px; }
}
@media (max-width: 760px) {
  .yhero { --overlap: 110px; }
  .yhero__photos { grid-template-columns: 1fr 1fr; }
  .yhero__photos figure:nth-child(3) { display: none; }
  .yhero__photos figure:nth-child(2) { transform: translateY(-24px); }
  .yintro { padding-top: 180px; }
  .yteam__card { grid-template-columns: 1fr; }
  .yteam__card img { max-width: 240px; }
  .yhero__actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ymarquee__track, .yglobes svg { animation: none; }
  .js .yline { opacity: 1; transform: none; filter: none; }
}

/* ---------- YTH page only: nav accents turn YTH blue ---------- */
.theme-yth .nav, .theme-yth .menu { --forest: var(--y-blue); --forest-dark: var(--y-blue-dark); }

/* ---------- "This is YTH" as flash-lit polaroids ---------- */
.ypolaroids { gap: clamp(18px, 2.6vw, 38px); padding: 10px 6px 30px; }
.ypolaroids figure {
  aspect-ratio: auto; overflow: visible; border-radius: 3px; position: relative;
  background: #FBFAF6; padding: 10px 10px 0;     /* label sits in the polaroid bottom */
  align-self: start;
  box-shadow: 0 1px 2px rgba(0,0,0,.14), 0 14px 30px rgba(37, 39, 35, .18);
  transform: rotate(var(--tilt, 0deg)) !important;
  transition: transform .9s cubic-bezier(.2, .9, .25, 1.15) var(--delay, 0ms), box-shadow .5s;
}
.ypolaroids figure.is-piled {
  transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--pile-tilt, 0deg)) scale(.92) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,.16), 0 20px 40px rgba(37, 39, 35, .25);
}
.ypolaroids figure:nth-child(1) { --tilt: -3deg; z-index: 6; }
.ypolaroids figure:nth-child(2) { --tilt: 2.5deg; margin-top: 26px; z-index: 5; }
.ypolaroids figure:nth-child(3) { --tilt: -1.5deg; z-index: 4; }
.ypolaroids figure:nth-child(4) { --tilt: 2deg; z-index: 3; }
.ypolaroids figure:nth-child(5) { --tilt: -2.5deg; margin-top: 26px; z-index: 2; }
.ypolaroids figure:nth-child(6) { --tilt: 3deg; z-index: 1; }
.ypolaroids.is-spread figure:hover { --tilt: 0deg; --delay: 0ms; box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 26px 50px rgba(37, 39, 35, .24); z-index: 10; }

/* high-flash look: blown-out center, hard falloff to dark edges */
.ypolaroids .yflash { position: relative; display: block; overflow: hidden; }
.ypolaroids img {
  aspect-ratio: 1; height: auto; display: block; width: 100%;
  filter: contrast(1.28) brightness(1.1) saturate(1.12);
}
.ypolaroids .yflash::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 42%, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(130% 120% at 50% 45%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .55) 100%);
}
.ypolaroids .yflash::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(45% 40% at 50% 40%, rgba(255, 252, 245, .22), rgba(255, 252, 245, 0) 70%);
}
.ypolaroids figcaption {
  position: static; height: 36px; display: flex; align-items: center; padding: 0 2px;
  background: none; border-radius: 0;
  font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--charcoal); white-space: nowrap;
}
.ygrid__photos.ypolaroids { row-gap: clamp(26px, 3vw, 40px); align-items: start; }
@media (max-width: 1000px) {
  .ypolaroids figure:nth-child(n) { margin-top: 0; }
  .ypolaroids figure:nth-child(even) { margin-top: 22px; }
}
@media (max-width: 760px) {
  .ypolaroids { gap: 14px; }
  .ygrid__photos.ypolaroids { row-gap: 20px; }
  .ypolaroids figure { padding: 7px 7px 0; }
  .ypolaroids figcaption { font-size: 9.5px; height: 28px; letter-spacing: .05em; }
}


/* ---------- Moving YTH brand elements (globes, +++, est. 2026, circular badge) ---------- */
.has-yd { position: relative; overflow: hidden; }
.has-yd > .container { position: relative; z-index: 1; }
.yimpact.has-yd, .yparents.has-yd { overflow: hidden; }
.yd { position: absolute; z-index: 0; pointer-events: none; color: var(--y-blue); }
.yd svg { display: block; width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1.4; }
.yd-globe { width: clamp(70px, 8vw, 120px); animation: yspin 22s linear infinite; opacity: .55; }
.yd-globe--light { color: var(--y-blue-soft); opacity: .22; }
.yd-plus { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: .14em; animation: ydrift 6s ease-in-out infinite; }
.yd-plus--light { color: #7FA6E6; }
.yd-oval {
  font-family: var(--font-serif); font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1; padding: 8px 30px;
  border: 2px solid currentColor; border-radius: 50%; animation: yrock 7s ease-in-out infinite;
}
.yd-script { font-family: var(--font-serif); font-style: italic; font-size: clamp(2.2rem, 4vw, 3.6rem); opacity: .9; animation: ydrift 8s ease-in-out infinite reverse; }
.yd-badge { width: clamp(120px, 13vw, 180px); animation: yspin 30s linear infinite; }
.yd-badge text { fill: currentColor; stroke: none; font-family: var(--font-display); font-weight: 800; font-size: 12.5px; letter-spacing: 1px; }
.yd-badge .ybadge__globe { stroke-width: 1.2; }
@keyframes yspin { to { transform: rotate(360deg); } }
@keyframes ydrift { 50% { transform: translate(14px, -10px); } }
@keyframes yrock { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(6deg) translateY(-6px); } }

.yd-pos-intro { bottom: 6%; right: 6%; }
.yd-pos-intro .ybadge__globe { }
.yd-pos-intro2 { bottom: 10%; left: 46%; }
.yd-pos-gather { top: 9%; right: 6%; }
.yd-pos-gather2 { bottom: 6%; left: 3%; }
.yd-pos-impact { top: 10%; right: 6%; }
.yd-pos-impact2 { bottom: 8%; right: 18%; }
.yd-pos-grid { top: 4%; right: 30%; }
.yd-pos-grid2 { bottom: 3%; left: 6%; }
.yd-pos-parents { top: 10%; left: 44%; width: clamp(110px, 12vw, 170px); }
.yd-pos-parents2 { bottom: 10%; left: 4%; }
.yd-pos-close { top: 16%; left: 9%; }
.yd-pos-close2 { top: 20%; right: 9%; }
.yd-pos-close3 { bottom: 16%; left: 30%; }
@media (max-width: 1000px) {
  .yd-pos-grid { top: 1%; right: 4%; }
  .yd-pos-intro { bottom: 3%; right: 4%; }
}
@media (max-width: 760px) {
  .yd { transform-origin: center; }
  .yd-badge { width: 96px; }
  .yd-globe { width: 56px; }
  .yd-oval { font-size: 1rem; padding: 6px 18px; }
  .yd-pos-gather { top: 2%; right: -12px; }
  .yd-pos-intro2, .yd-pos-impact2, .yd-pos-close3 { display: none; }
  .yd-pos-close { top: 8%; left: 4%; } .yd-pos-close2 { top: 10%; right: 4%; }
  .yd-pos-grid2 { display: none; }
}
@media (prefers-reduced-motion: reduce) { .yd { animation: none !important; } }

/* Sunday photos under the 01/02/03 steps */
.ygather__photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); margin-top: clamp(40px, 5vw, 64px); }
.ygather__photos figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; }
.ygather__photos figure:nth-child(2) { transform: translateY(28px); }
.ygather__photos img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
@media (max-width: 760px) { .ygather__photos figure { aspect-ratio: 4 / 5; } .ygather__photos figure:nth-child(2) { transform: translateY(16px); } }
