/* HoldFast — mainstream agency stylesheet. No JavaScript. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --ink: #111827;
  --muted: #5b6573;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --navy: #0f172a;
  --white: #fff;
  --sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 4.25rem;
  --radius: 14px;
  --shadow: 0 10px 30px rgb(15 23 42 / 0.06);
}

@view-transition { navigation: auto; }
::view-transition-old(root) {
  animation: page-out 220ms ease-out both;
}
::view-transition-new(root) {
  animation: page-in 320ms ease-out both;
}
@keyframes page-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, .nav-toggle-label:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 0.9rem;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.15rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.15rem; }
.wrap {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.65rem;
}
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; max-width: 38rem; color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.78rem 1.2rem;
  font: 700 0.84rem/1 var(--sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--navy); color: var(--white); padding: 0.45rem 0.7rem; z-index: 80;
}
.skip:focus { top: 0.7rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.logo {
  font-size: 1.12rem; font-weight: 800; color: var(--navy);
  text-decoration: none; letter-spacing: -0.03em;
}
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-toggle-label {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center; cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block; width: 1.15rem; height: 2px; background: var(--navy); position: relative;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after { content: ""; position: absolute; left: 0; }
.nav-toggle-label span::before { top: -6px; }
.nav-toggle-label span::after { top: 6px; }
.site-nav {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 0.4rem 1.1rem 1.1rem; flex-direction: column;
}
.nav-toggle:checked ~ .site-nav { display: flex; }
.site-nav a {
  color: var(--navy); text-decoration: none; padding: 0.85rem 0.2rem;
  font-size: 1rem; font-weight: 600; min-height: 2.75rem;
  display: flex; align-items: center;
}
.site-nav a[aria-current="page"] { color: var(--blue); }
.nav-cta { margin-top: 0.35rem; justify-content: center; }

.hero { padding: 2.4rem 0 2.2rem; }
.hero-grid { display: grid; gap: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.25rem; }
.hero-panel {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 58%, #2563eb 100%);
  color: #fff;
  border-radius: 22px;
  min-height: 18rem;
  padding: 2rem;
  display: grid;
  align-content: end;
  box-shadow: var(--shadow);
}
.hero-panel strong { font-size: 1.35rem; letter-spacing: -0.03em; }
.hero-panel p { margin: 0.4rem 0 0; color: rgb(255 255 255 / 0.78); }

.section { padding: 2.6rem 0; }
.section-cream { background: var(--bg-soft); }
.section-head { max-width: 38rem; margin-bottom: 1.8rem; }
.split { display: grid; gap: 1.75rem; }
.page-intro { padding: 2.2rem 0 1.4rem; }

.card-grid, .gallery, .review-column { display: grid; gap: 1.2rem; }
.card, .review, .plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.45rem;
  box-shadow: var(--shadow);
}
.num {
  display: block; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); font-weight: 700; margin-bottom: 0.4rem;
}

.work-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.work-card figure { margin: 0; background: var(--bg-soft); }
.work-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.work-card .work-body { padding: 1.05rem 1.15rem 1.2rem; }
.work-card a.card-link { text-decoration: none; color: inherit; display: block; }
.work-meta { display: flex; justify-content: space-between; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; }
.work-meta strong { font-size: 1.12rem; color: var(--navy); }
.tag {
  color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 0.68rem; font-weight: 700;
}

blockquote { margin: 0; font-size: 1.02rem; color: var(--navy); }
.review footer { margin-top: 0.75rem; font-size: 0.88rem; color: var(--muted); }

.plans { display: grid; gap: 1.15rem; }
.plan.featured { background: var(--navy); color: rgb(255 255 255 / 0.86); border-color: var(--navy); }
.plan.featured h3, .plan.featured .price { color: var(--white); }
.price { font-size: 2rem; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.price small { font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.plan.featured .price small { color: rgb(255 255 255 / 0.55); }
.plan ul { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.4rem; }
.plan.featured .btn-ghost { color: var(--white); border-color: rgb(255 255 255 / 0.28); }

.form { display: grid; gap: 0.9rem; }
.form-row { display: grid; gap: 0.9rem; }
.field { display: grid; gap: 0.3rem; }
.field label, .field legend { font-size: 0.88rem; font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 0.85rem;
  width: 100%; min-height: 2.75rem; max-width: 100%;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.choice-row { display: flex; gap: 1.25rem; padding-top: 0.35rem; }
.choice { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; cursor: pointer; }
.choice input { width: auto; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-aside { display: grid; gap: 1.2rem; }
.register-band { background: var(--bg-soft); border-top: 1px solid var(--line); }
.register-layout { display: grid; gap: 1.5rem; }

.site-footer { background: var(--navy); color: rgb(255 255 255 / 0.72); padding: 3rem 0 2rem; }
.footer-grid { display: grid; gap: 1.5rem; margin-bottom: 2rem; }
.site-footer .logo { color: var(--white); }
.site-footer h2 {
  color: var(--white); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 0.6rem;
}
.site-footer a { color: rgb(255 255 255 / 0.72); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-nav, .footer-meta { display: grid; gap: 0.35rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.7rem;
  border-top: 1px solid rgb(255 255 255 / 0.1); padding-top: 1.2rem; font-size: 0.88rem;
}
.page-404 { min-height: calc(100vh - var(--header-h) - 16rem); display: grid; align-content: center; padding: 4rem 0; }

/* Scroll-driven motion
   view()  — progress as the element crosses the viewport
   scroll() — progress of the page (or a named scroller)
   animation-range — which slice of that timeline plays the keyframes
   Ranges used: entry, cover, contain, exit
*/

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  background: var(--blue);
  z-index: 80;
  pointer-events: none;
  animation: progress-grow linear both;
  animation-timeline: scroll(root);
}
@keyframes progress-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.reveal {
  animation: slide-up linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 28%;
}
.reveal-late {
  animation: slide-up linear both;
  animation-timeline: view();
  animation-range: entry 12% entry 42%;
}
.reveal-right {
  animation: slide-right linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 32%;
}
.reveal-scale {
  animation: rise-scale linear both;
  animation-timeline: view();
  animation-range: entry 0% cover 18%;
}

.card-grid .reveal:nth-child(2),
.gallery .work-card:nth-child(2) {
  animation-range: entry 8% entry 36%;
}
.card-grid .reveal:nth-child(3),
.gallery .work-card:nth-child(3) {
  animation-range: entry 16% entry 44%;
}

.hero-panel {
  animation: panel-parallax linear both;
  animation-timeline: view();
  animation-range: contain 0% exit 100%;
}

.work-card img {
  animation: image-drift linear both;
  animation-timeline: view();
  animation-range: cover 0% cover 100%;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(2.6rem); }
  to { opacity: 1; transform: none; }
}
@keyframes slide-right {
  from { opacity: 0; transform: translateX(1.8rem); }
  to { opacity: 1; transform: none; }
}
@keyframes rise-scale {
  from { opacity: 0; transform: translateY(1.6rem) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes panel-parallax {
  from { transform: translateY(0); }
  to { transform: translateY(-1.6rem); }
}
@keyframes image-drift {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

@media (max-width: 719px) {
  h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .lead { font-size: 1.02rem; }
  .hero-actions .btn,
  .form .btn { width: 100%; }
  .hero-panel { min-height: 10.5rem; padding: 1.35rem; border-radius: 16px; }
  .work-card img { aspect-ratio: 4 / 3; }
  .choice-row { flex-wrap: wrap; }
  .site-footer { padding-bottom: calc(1.6rem + env(safe-area-inset-bottom)); }
}
@media (min-width: 720px) {
  .wrap { width: min(100% - 2.2rem, var(--max)); }
  .hero { padding: 4.2rem 0 3.4rem; }
  .section { padding: 4rem 0; }
  .page-intro { padding: 3.4rem 0 2rem; }
  .hero-panel { min-height: 18rem; padding: 2rem; border-radius: 22px; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 3rem; }
  .card-grid, .gallery, .plans { grid-template-columns: repeat(2, 1fr); }
  .split, .reviews-layout, .register-layout, .contact-layout, .form-row { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav-toggle, .nav-toggle-label { display: none; }
  .site-nav {
    position: static; display: flex; flex-direction: row; align-items: center;
    gap: 0 1.35rem; padding: 0; border: 0; background: transparent;
  }
  .site-nav > a { padding: 0.35rem 0; }
  .nav-cta { margin: 0 0 0 0.2rem; padding: 0.62rem 1.05rem; color: var(--white); }
  .nav-cta:hover { color: var(--white); }
  .card-grid.three, .gallery.three, .plans { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-progress,
  .reveal,
  .reveal-late,
  .reveal-right,
  .reveal-scale,
  .hero-panel,
  .work-card img { animation: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
