/* Flocking Ostrich — first local draft. One stylesheet, mobile-first. */

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

:root {
  --bg: #f3ebdd;
  --bg-alt: #e8dcc8;
  --paper: #fbf6ee;
  --ink: #1c1612;
  --ink-soft: #3f342c;
  --clay: #8c3d24;
  --clay-dark: #6a2b16;
  --straw: #c4a056;
  --straw-soft: #e8d4a0;
  --pine: #2c4a3a;
  --rule: #c9b89a;
  --need-bg: #f3e4b0;
  --need-ink: #3a2e08;
  --need-border: #8a6e1f;
  --focus: #6a2b16;
  --header-h: 4.25rem;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Segoe UI", Candara, "Gill Sans", "Gill Sans MT", Calibri, system-ui, sans-serif;
  --wide: 72rem;
  --prose: 42rem;
  --radius: 0.35rem;
  --shadow: 0 0.75rem 1.8rem rgba(28, 22, 18, 0.14);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

picture {
  display: block;
}

h1,
h2,
h3,
.brand-name,
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.15rem, 7vw, 3.6rem);
  margin: 0 0 0.6rem;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--clay-dark);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--clay);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -5rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1rem;
  min-height: 44px;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 235, 221, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0.5rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}

.brand img,
.brand svg {
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  color: var(--clay-dark);
}

.brand-mascot {
  border-radius: 50%;
  object-fit: cover;
  background: var(--paper);
}

.brand-name {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav-desktop {
  display: none;
}

.nav-toggle {
  position: relative;
}

.nav-toggle > summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--clay-dark);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--clay-dark);
  font-weight: 600;
}

.nav-toggle > summary::-webkit-details-marker {
  display: none;
}

.site-nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.4rem;
  min-width: 16rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  text-decoration: none;
  color: var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--bg-alt);
  color: var(--clay-dark);
}

/* Hero
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  color: var(--paper);
  background: #1c1612;
  min-height: min(86vh, 46rem);
  display: flex;
  align-items: flex-end;
}

.hero-media,
.hero-media.media-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1c1612 url("../images/video/hero-pasture.jpg") center 45% / cover no-repeat;
}

.hero-media .media-poster,
.hero-media .media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero-media .media-video {
  z-index: 1;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(28, 22, 18, 0.15) 0%, rgba(28, 22, 18, 0.2) 40%, rgba(28, 22, 18, 0.78) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 4.5rem 1.15rem 2.4rem;
  width: 100%;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
  color: var(--straw-soft);
  font-weight: 600;
}

.hero h1 {
  color: var(--paper);
  text-shadow: 0 1px 2px rgba(28, 22, 18, 0.35);
  max-width: 14ch;
}

.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  max-width: 32rem;
  color: #f3ebdd;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  background: var(--clay-dark);
  color: #fbf6ee;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  border: 2px solid var(--clay-dark);
}

.btn:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: #fff8f0;
}

.btn-ghost {
  background: transparent;
  color: #fbf6ee;
  border-color: rgba(251, 246, 238, 0.7);
}

.btn-ghost:hover {
  background: rgba(251, 246, 238, 0.12);
  color: #fff;
  border-color: #fff;
}

/* Media player (video + poster + toggle)
   ------------------------------------------------------------------ */
.media-player {
  position: relative;
}

.media-player .media-poster,
.media-player .media-video {
  width: 100%;
}

.hero .media-toggle {
  top: 0.85rem;
  bottom: auto;
}

.media-toggle {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.9rem;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 22, 18, 0.72);
  color: #fbf6ee;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.media-toggle:hover {
  background: rgba(28, 22, 18, 0.88);
}

.clip {
  position: relative;
  border-radius: 0.45rem;
  overflow: hidden;
  background: #1c1612;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.clip .media-poster,
.clip .media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.clip img,
.clip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-player .media-video {
  opacity: 0;
  visibility: hidden;
}

.media-player .media-video.is-ready {
  opacity: 1;
  visibility: visible;
}

/* Layout / sections
   ------------------------------------------------------------------ */
.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.15rem;
}

.section {
  padding: clamp(3rem, 7vw, 5.25rem) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-intro {
  max-width: var(--prose);
  margin-bottom: 2rem;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clay);
  margin: 0 0 0.45rem;
}

.split {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.prose {
  max-width: var(--prose);
}

.shot {
  margin: 0;
}

.shot img {
  width: 100%;
  border-radius: 0.45rem;
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}

.shot figcaption {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Stages
   ------------------------------------------------------------------ */
.stages {
  display: grid;
  gap: 1.5rem;
}

.stage {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  padding: 1.25rem 1.2rem 1.4rem;
  display: grid;
  gap: 1rem;
}

.stage-head {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.stage-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--clay);
  line-height: 1;
  min-width: 2.2rem;
}

.stage .shot {
  margin-top: 0.25rem;
}

/* Flock log
   ------------------------------------------------------------------ */
.log {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.log li {
  display: grid;
  gap: 0.35rem 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}

.log time,
.log .log-when {
  font-weight: 700;
  color: var(--clay-dark);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.count-note {
  display: inline;
}

/* Gallery
   ------------------------------------------------------------------ */
.gallery {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.gallery .shot img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.gallery .shot.portrait img {
  aspect-ratio: 3 / 4;
  object-position: center 30%;
}

@media (min-width: 800px) {
  .gallery .shot.portrait {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
  }

  .gallery .shot.portrait img {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }
}

/* FAQ
   ------------------------------------------------------------------ */
.faq {
  max-width: 48rem;
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 0.15rem 0;
}

.faq summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0;
  padding: 0.7rem 0;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--clay);
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1;
  padding-left: 1rem;
}

.faq details[open] summary::after {
  content: "–";
}

.faq .answer {
  padding: 0 0 1.1rem;
  color: var(--ink-soft);
}

/* Contact / need markers
   ------------------------------------------------------------------ */
.need,
.need-block {
  background: var(--need-bg);
  color: var(--need-ink);
  border: 1px dashed var(--need-border);
  font-weight: 700;
}

.need {
  display: inline;
  padding: 0.05em 0.4em;
  border-radius: 0.2rem;
  white-space: nowrap;
}

.need-block {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  margin: 0.75rem 0 0;
  font-weight: 600;
}

.contact-box {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  padding: 1.4rem 1.25rem;
  max-width: 36rem;
}

.email-line {
  font-size: 1.15rem;
  margin: 0.4rem 0 1rem;
}

/* Footer
   ------------------------------------------------------------------ */
.site-footer {
  background: #1c1612;
  color: #e8dcc8;
  padding: 2.4rem 0 2.6rem;
  font-size: 0.95rem;
}

.site-footer a {
  color: #f3e4b0;
}

.site-footer .wrap {
  display: grid;
  gap: 0.7rem;
}

.site-footer .draft-note {
  color: #c9b89a;
  margin: 0;
}

/* Utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Desktop
   ------------------------------------------------------------------ */
@media (min-width: 800px) {

  .nav-toggle {
    display: none;
  }

  .site-nav-desktop {
    display: block;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    top: auto;
    right: auto;
  }

  .site-nav-desktop ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .site-nav-desktop a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.4rem 0.7rem;
    text-decoration: none;
    color: var(--ink);
    border-radius: var(--radius);
    font-weight: 600;
  }

  .site-nav-desktop a:hover,
  .site-nav-desktop a:focus-visible {
    background: var(--bg-alt);
    color: var(--clay-dark);
  }

  .hero-copy {
    padding: 6rem 1.5rem 3.2rem;
  }

  .wrap {
    padding: 0 1.5rem;
  }

  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }

  .split.split-reverse {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .split.split-reverse .shot {
    order: -1;
  }

  .stages {
    grid-template-columns: 1fr 1fr;
  }

  .stage-wide {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .log li {
    grid-template-columns: 14rem 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery .shot.wide {
    grid-column: span 2;
  }

  .gallery .shot.wide img {
    aspect-ratio: 16 / 9;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .media-player .media-video,
  .media-toggle {
    display: none;
  }

  .media-player .media-poster {
    display: block;
  }
}


.prose::after {
  content: "";
  display: table;
  clear: both;
}


/* Flock clips
   ------------------------------------------------------------------ */
.clip-grid {
  display: grid;
  gap: 2.25rem;
}

.dance-feature {
  margin: 0;
}

.dance-feature h3 {
  margin: 0 0 0.75rem;
}

.dance-feature figcaption {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

@media (min-width: 1100px) {
  .clip-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.75rem 1.25rem;
    align-items: start;
  }
}

/* Job posting page
   ------------------------------------------------------------------ */
.job-page .header-inner {
  justify-content: flex-start;
}

.job-main {
  padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(3.5rem, 8vw, 5.75rem);
}

.job-posting {
  max-width: 40.5rem;
}

.job-intro {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--rule);
}

.job-posting h1 {
  font-size: clamp(1.85rem, 5.4vw, 2.7rem);
  margin: 0 0 0.85rem;
  letter-spacing: -0.025em;
}

.job-type {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
}

.job-posted {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--clay);
}

.job-posting section {
  margin: 0 0 2.15rem;
}

.job-posting section:last-child {
  margin-bottom: 0;
}

.job-posting h2 {
  font-size: clamp(1.3rem, 3vw, 1.55rem);
  margin: 0 0 0.75rem;
}

.job-posting p,
.job-posting li {
  font-size: 1.0625rem;
  line-height: 1.7;
}

.job-posting ul {
  margin: 0;
  padding: 0 0 0 1.2rem;
}

.job-posting li {
  margin: 0 0 0.7rem;
  padding-left: 0.25rem;
}

.job-posting li:last-child {
  margin-bottom: 0;
}

.job-posting li::marker {
  color: var(--clay);
}

.job-posting li strong {
  color: var(--clay-dark);
  font-weight: 700;
}
