/* Anchor Dance Studio — site styles */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fraunces-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/fraunces-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/josefin-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/josefin-sans-latin-600-normal.woff2") format("woff2"); }
:root {
  --cream: #F7F3EE;
  --sand: #EDE4D8;
  --sand-deep: #D9CBB8;
  --navy: #1F3A5F;
  --navy-deep: #152A46;
  --sky: #83CDD4;
  --ink: #2B2A2E;
  --ink-soft: #55525A;
  --white: #FFFFFF;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mark: "Josefin Sans", "Futura", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-soft); }
.eyebrow {
  display: block;
  font-family: var(--font-mark);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1rem;
}
em.accent { font-style: italic; color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 243, 238, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 8px; padding-bottom: 8px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.site-nav a {
  text-decoration: none; color: var(--ink);
  font-size: .95rem; font-weight: 500;
  display: inline-flex; align-items: center; min-height: 44px;
}
.logo { display: inline-flex; align-items: center; }
.site-header .logo img { width: 68px; height: 68px; }
.site-footer .logo img { width: 112px; height: 112px; margin-bottom: 14px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--navy); }

@media (max-width: 760px) {
  .site-header { position: relative; }
  .site-header .wrap { flex-direction: column; gap: 0; padding-top: 10px; padding-bottom: 2px; }
  .site-header .logo img { width: 60px; height: 60px; }
  .site-nav ul { gap: 4px 18px; flex-wrap: wrap; justify-content: center; }
  .site-nav a { font-size: .95rem; padding: 0 2px; }
}
@media (max-width: 340px) {
  .site-nav ul { gap: 0 12px; }
  .site-nav a { font-size: .9rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); }
.hero img {
  width: 100%;
  height: min(88vh, 820px);
  height: min(88svh, 820px);
  min-height: 480px;
  object-fit: cover;
  object-position: center 40%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(21, 42, 70, .55) 0%, rgba(21, 42, 70, 0) 55%),
    linear-gradient(to top, rgba(21, 42, 70, .75) 0%, rgba(21, 42, 70, .25) 40%, rgba(21, 42, 70, 0) 65%);
  pointer-events: none;
}
.hero-content {
  position: absolute; left: 0; right: 0; bottom: clamp(32px, 7vh, 72px);
  z-index: 2;
}
.hero h1 { color: var(--white); max-width: 15ch; margin-bottom: .35em; }
.hero p { max-width: 560px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,.92); margin-bottom: 1.5em; }

.page-hero { position: relative; }
.page-hero img { width: 100%; height: clamp(320px, 52vh, 560px); object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(21,42,70,.7), rgba(21,42,70,0) 60%);
}
.page-hero .hero-content { bottom: clamp(24px, 5vh, 48px); }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero .eyebrow { color: var(--white); opacity: .9; }
.team-hero img { object-position: 50% 46%; }
.approach-hero img { object-position: 50% 22%; }
@media (max-width: 760px) { .team-hero img { object-position: 48% 50%; } }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 10vw, 120px) 0; }
section.tight { padding: clamp(48px, 7vw, 80px) 0; }
.bg-sand { background: var(--sand); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy .eyebrow { color: var(--sky); }
.bg-navy .lead { color: rgba(255,255,255,.85); }
.center { text-align: center; }
.center .narrow { margin-left: auto; margin-right: auto; }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; height: auto; border-radius: var(--radius); }
.split-media::before {
  content: ""; position: absolute; z-index: -1;
  inset: 28px -22px -22px 28px;
  background: var(--sand); border-radius: var(--radius);
}
.bg-sand .split-media::before { background: var(--sand-deep); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media::before { inset: 16px -10px -10px 16px; }
}

/* Statement band */
.statement {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  line-height: 1.3;
  font-weight: 400;
  max-width: 900px; margin: 0 auto;
}

/* Pillars */
.pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 20px; margin-top: 48px;
}
.pillar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border-top: 4px solid var(--navy);
}
.pillar h3 { margin-bottom: .4em; }
.pillar p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.pillar .num {
  font-family: var(--font-mark); font-weight: 600; font-size: .8rem;
  letter-spacing: .2em; color: var(--navy); display: block; margin-bottom: 14px;
}

/* Checklist */
.checks { list-style: none; padding: 0; margin: 1.5em 0 0; }
.checks li {
  position: relative; padding-left: 34px; margin-bottom: .9em;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 18px; height: 10px;
  border-left: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy);
  transform: rotate(-45deg);
}
.bg-navy .checks li::before { border-color: var(--sky); }

/* Photo strip */
.strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
}
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 760px) {
  .strip { grid-template-columns: repeat(3, 1fr); }
}

/* Team */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: 32px; margin-top: 48px;
}
.member .photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: var(--sand); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.member .photo img { width: 100%; height: 100%; object-fit: cover; }
.bg-sand .member .photo { background: var(--sand-deep); }
.member .photo .initials {
  font-family: var(--font-mark); font-size: 2.6rem; letter-spacing: .12em;
  color: var(--navy); opacity: .55;
}
.member h3 { margin-bottom: .15em; }
.member .role {
  font-family: var(--font-mark); font-size: .82rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--navy);
  display: block; margin-bottom: .8em;
}
.member p { font-size: 1rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); padding: 64px 0 40px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer .footer-h {
  font-family: var(--font-mark); font-size: .75rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--sky); margin: 0 0 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0; }
.site-footer li a { display: inline-block; padding: 10px 0; line-height: 1.5; }
.site-footer li:not(:has(a)) { padding: 10px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 48px; padding-top: 24px; font-size: .85rem; color: rgba(255,255,255,.6); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Small-screen refinements ---------- */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .pillar { padding: 26px 22px; }
    .team-grid { gap: 28px; }
  .member { display: grid; grid-template-columns: 112px 1fr; gap: 0 18px; align-items: start; }
  .member .photo { grid-row: span 3; aspect-ratio: 4 / 5; margin-bottom: 0; }
  .member .photo .initials { font-size: 1.5rem; }
  .member h3 { font-size: 1.2rem; }
  .member .role { font-size: .74rem; margin-bottom: .5em; }
  .member p { font-size: .95rem; margin: 0; }
  .page-hero::after { background: linear-gradient(to top, rgba(21,42,70,.82), rgba(21,42,70,.15) 75%); }
}
@media (max-width: 760px) and (orientation: landscape) {
  .hero img { min-height: 360px; height: 100svh; }
}
/* Very large screens: keep photos from getting oversized */
@media (min-width: 1600px) {
  :root { --wrap: 1280px; }
  body { font-size: 19px; }
  .hero img { height: min(82vh, 900px); }
}
@supports (padding: max(0px)) {
  .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
}

/* Classes page */
.class-day { margin: 40px 0 0; font-size: 1.45rem; }
.class-day:first-of-type { margin-top: 32px; }
.class-list { display: grid; gap: 10px; margin-top: 14px; }
.class-row {
  background: var(--white); border-radius: var(--radius);
  padding: 20px 26px;
  display: grid; grid-template-columns: 1.5fr .8fr 1.2fr 1fr; gap: 6px 24px; align-items: center;
  border-left: 4px solid var(--sky);
}
.class-row h4 { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 1.2rem; }
.spots { font-size: .95rem; font-weight: 600; color: var(--navy); text-align: right; }
.spots.full { color: var(--ink-soft); font-weight: 500; }
.class-meta { color: var(--ink-soft); font-size: 1rem; }
.class-meta b {
  font-family: var(--font-mark); font-weight: 600; font-size: .74rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--navy); margin-right: 8px;
}
@media (max-width: 700px) {
  .class-row { grid-template-columns: auto 1fr; padding: 16px 18px; gap: 4px 20px; }
  .class-meta { white-space: nowrap; }
  .class-row h4 { grid-column: 1 / -1; }
  .spots { grid-column: 1 / -1; text-align: left; }
}
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; margin-top: 36px; }
.info-card { background: var(--sand); border-radius: var(--radius); padding: 28px 26px; }
.info-card h3 { margin-bottom: .35em; }
.info-card p { color: var(--ink-soft); font-size: 1rem; margin-bottom: .8em; }
.info-card a, .split a, .lead a { font-weight: 600; }
.info-card a { display: inline-flex; min-height: 44px; align-items: center; }
@media (max-width: 380px) { .class-row { grid-template-columns: 1fr; } }

/* Pictures behave like the image inside them */
picture { display: contents; }
picture > source { display: none; }

/* Accessibility */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }
a:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
.site-footer a:focus-visible { outline-color: var(--white); }
main:focus { outline: none; }
.site-footer address { font-style: normal; }

/* 404 */
.notfound { min-height: 50vh; display: flex; align-items: center; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); }
.notfound-links { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.notfound-links a { font-weight: 600; display: inline-block; padding: 10px 0; }

@media print {
  .site-header, .strip, .hero::after, .page-hero::after { display: none; }
  .hero-content { position: static; }
  .hero h1, .hero p, .page-hero h1, .page-hero .eyebrow { color: var(--ink); }
  body { background: #fff; }
}

/* =========================================================
   Motion & interaction (kept subtle; all off for reduced motion)
   ========================================================= */
:root { --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1); }

/* Cross-fade between pages in browsers that support it */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 280ms; }

/* Header gains a soft shadow once the page scrolls */
.site-header { transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px -14px rgba(21, 42, 70, .35); background: rgba(247, 243, 238, .97); }

/* Nav: underline slides in on hover */
.site-nav a { position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
  background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { box-shadow: none; }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.logo img { transition: transform .4s var(--ease-out); }
.logo:hover img { transform: rotate(-6deg); }

/* Hero: slow settle on load */
@keyframes heroSettle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero, .page-hero { overflow: hidden; }
.hero img, .page-hero img { animation: heroSettle 2.2s var(--ease-out) both; transform-origin: 50% 60%; }
.hero-content .eyebrow, .hero-content h1, .hero-content p { animation: riseIn .9s var(--ease-out) both; }
.hero-content h1 { animation-delay: .12s; }
.hero-content p { animation-delay: .28s; }

/* Text links: arrow nudges on hover */
main a { text-underline-offset: .18em; text-decoration-thickness: 1px; transition: color .2s, text-decoration-color .2s; }
main a:hover { text-decoration-thickness: 2px; }
a[href].arrow-link, main p > a:only-child, .info-card a { display: inline-flex; align-items: center; gap: .1em; }
main a .arr, .info-card a .arr { display: inline-block; transition: transform .25s var(--ease-out); }
main a:hover .arr { transform: translateX(4px); }

/* Cards lift slightly on hover */
.pillar, .info-card, .class-row {
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
}
@media (hover: hover) {
  .pillar:hover, .info-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -22px rgba(21, 42, 70, .45); }
  .class-row:hover { transform: translateX(4px); box-shadow: 0 10px 26px -20px rgba(21, 42, 70, .4); }
}

/* Split photos: gentle zoom inside the frame on hover */
.split-media img { transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out); }
.split-media::before { transition: transform .8s var(--ease-out); }
@media (hover: hover) {
  .split-media:hover img { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(21, 42, 70, .55); }
  .split-media:hover::before { transform: translate(6px, 6px); }
}

/* Photo strip: soften on hover */
.strip img { transition: filter .5s ease, opacity .5s ease; }
@media (hover: hover) {
  .strip:hover img { filter: saturate(.85); opacity: .85; }
  .strip:hover img:hover { filter: none; opacity: 1; }
}

/* Scroll reveal (classes are added by site.js only to content below the fold) */
.rv { opacity: 0; transform: translateY(18px); }
.rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.split-media.rv { transform: translateY(26px); }

/* ---------- Testimonials marquee ---------- */
.testimonials { padding-bottom: clamp(56px, 8vw, 96px); }
.tm {
  position: relative; overflow: hidden; margin-top: clamp(28px, 4vw, 44px); padding-block: 8px 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tm-track { display: flex; gap: 20px; width: max-content; padding-inline: 10px; }
.tm.ready { touch-action: pan-y; cursor: grab; }
.tm.ready .tm-track { will-change: transform; -webkit-user-select: none; user-select: none; }
.tm.dragging { cursor: grabbing; }
.tm-card {
  flex: 0 0 auto; width: clamp(290px, 30vw, 400px); margin: 0;
  background: var(--white); border-radius: 14px; padding: 26px 26px 22px;
  box-shadow: 0 14px 34px -26px rgba(21, 42, 70, .5);
  display: flex; flex-direction: column; gap: 18px; text-align: left;
}
.tm-card blockquote { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--ink); flex: 1 1 auto; }
.tm-card blockquote::before {
  content: "\201C"; display: block; font-family: var(--font-head); font-size: 3rem; line-height: .7;
  height: 22px; color: var(--sky); margin-bottom: 8px;
}
.tm-who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--sand); }
.tm-av {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto; background: var(--navy); color: var(--white);
  display: grid; place-items: center; font-family: var(--font-mark); font-weight: 600; font-size: .85rem; letter-spacing: .08em;
}
.tm-id { display: flex; flex-direction: column; gap: 1px; }
.tm-id b { font-weight: 600; color: var(--ink); font-size: .98rem; }
.tm-id span { font-size: .85rem; color: var(--ink-soft); }
.tm-placeholder blockquote { color: var(--ink-soft); font-style: italic; }
.tm-placeholder .tm-av { background: var(--sand-deep); color: var(--navy); }
@media (max-width: 640px) {
  .tm-card { width: min(84vw, 340px); padding: 22px 20px 18px; }
  .tm-card blockquote { font-size: .97rem; }
}

/* Reduced motion: no animation anywhere; testimonials become a swipeable row */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tm { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .tm-track { padding-inline: var(--gutter); }
  .tm-card { scroll-snap-align: start; }
  .tm-card[data-clone] { display: none; }
  .rv { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
