/* ═══════════════════════════════════════════════════════════════════════════
   Page-specific styles — MOBILE FIRST
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── HOME — quote + manifesto split ─────────────────────────────────────── */
.home-quote-split {
  display: grid; grid-template-columns: 1fr; min-height: auto;
}
@media (min-width: 768px) {
  .home-quote-split { grid-template-columns: 1fr 1fr; min-height: 50vh; }
}
.home-quote-split__quote {
  padding: var(--sp-6) var(--container-pad); background: #fff;
  display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 768px) { .home-quote-split__quote { padding: var(--sp-7) var(--sp-5); } }
.home-quote-split__quote h2 { font-weight: 300; max-width: 25ch; text-wrap: pretty; }
.home-quote-split__author { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); }
.home-quote-split__author img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.home-quote-split__manifesto {
  padding: var(--sp-6) var(--container-pad); background: var(--color-dark); color: var(--color-text-inv);
  display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 768px) { .home-quote-split__manifesto { padding: var(--sp-7) var(--sp-5); } }
.home-quote-split__manifesto p { color: #ddd; max-width: 60ch; }

/* ─── HOME — mission band ────────────────────────────────────────────────── */
.mission-band {
  background: var(--grad-mission); padding: var(--sp-6) var(--container-pad);
  text-align: center; color: var(--color-text-inv);
  min-height: 320px; display: grid; place-items: center;
}
@media (min-width: 768px) { .mission-band { padding: var(--sp-7) var(--container-pad); min-height: 380px; } }
.mission-band h2 {
  font-weight: 300; max-width: 38ch; margin-inline: auto;
  text-transform: uppercase; letter-spacing: 0.01em; text-wrap: balance;
}

/* ─── STORIES PREVIEW (Home grid) ────────────────────────────────────────── */
.stories-preview { padding: var(--sp-6) var(--container-pad); }
@media (min-width: 768px) { .stories-preview { padding: var(--sp-7) var(--container-pad); } }
.stories-preview__title {
  text-align: center; letter-spacing: 0.04em; margin-bottom: var(--sp-5);
  text-transform: uppercase; font-weight: 300;
}
/* Netflix-style carousel: big arrows overlaid on the artwork row, revealed on hover.
   --media-h is set by JS to the artwork height so the arrows hug the images,
   not the text below them. */
.carousel { position: relative; max-width: var(--container-max); margin-inline: auto; }
.carousel-btn {
  position: absolute; top: 0; z-index: 5;
  width: 56px; height: var(--media-h, 100%);
  border: 0; padding: 0;
  background: rgba(0, 0, 0, 0.5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease), background var(--t-fast) var(--ease);
}
.carousel-btn--prev { left: 0; }
.carousel-btn--next { right: 0; }
.carousel-btn svg { width: 30px; height: 30px; transition: transform var(--t-fast) var(--ease); }
.carousel:hover .carousel-btn:not(:disabled),
.carousel-btn:focus-visible { opacity: 1; }
.carousel-btn:hover:not(:disabled) { background: rgba(0, 0, 0, 0.75); }
.carousel-btn:hover:not(:disabled) svg { transform: scale(1.25); }
.carousel-btn:disabled { opacity: 0 !important; pointer-events: none; }
/* Touch devices have no hover: keep the arrows visible but discreet */
@media (hover: none) {
  .carousel-btn { opacity: 1; width: 44px; background: rgba(0, 0, 0, 0.4); }
}

/* Track: horizontal carousel — 4 cards per view, snap to card starts */
.stories-preview__grid {
  display: grid; gap: var(--sp-3);
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  max-width: var(--container-max); margin-inline: auto;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.stories-preview__grid::-webkit-scrollbar { display: none; }
@media (min-width: 540px) { .stories-preview__grid { grid-auto-columns: calc((100% - var(--sp-3)) / 2); } }
@media (min-width: 960px) { .stories-preview__grid { grid-auto-columns: calc((100% - 3 * var(--sp-3)) / 4); } }
@media (prefers-reduced-motion: reduce) { .stories-preview__grid { scroll-behavior: auto; } }

.story-card { display: block; color: inherit; scroll-snap-align: start; }
/* Keep every card the same height so a row of 4 lines up */
.story-card__tag {
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
/* 4:3 to match the project images exactly — these key-arts have text baked in,
   so any cropping slices the lettering. Same ratio = nothing cut. */
.story-card__media { aspect-ratio: 4/3; overflow: hidden; background: #eee; }
.story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-base) var(--ease); }
.story-card:hover .story-card__media img { transform: scale(1.04); }
.story-card__meta { font-size: 0.85rem; color: var(--color-text-soft); margin-top: var(--sp-2); }
.story-card__title { font-size: 1.25rem; font-weight: 400; margin-top: var(--sp-1); }
.story-card__tag { font-size: 0.85rem; color: var(--color-text-soft); }

/* ─── FLOW — 7 service cards: 2-col grid with image on top ──────────────────── */
.services-grid {
  display: grid; gap: var(--sp-5);
  grid-template-columns: 1fr;
  padding: var(--sp-6) var(--container-pad);
  max-width: var(--container-max); margin-inline: auto;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); padding: var(--sp-7) var(--container-pad); }
  .service-card--full { grid-column: 1 / -1; max-width: 50%; margin-inline: auto; }
}
.service-card {
  display: flex; flex-direction: column; gap: var(--sp-3);
  background: transparent;
}
.service-card__media {
  aspect-ratio: 3/2; overflow: hidden; background: #f5f5f5;
}
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-base) var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.02); }
.service-card__title { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 400; }
.service-card__desc { color: var(--color-text-soft); margin: 0; max-width: 55ch; }

/* ─── STORIES — Full grid with details ────────────────────────────────────── */
.stories-intro {
  padding: var(--sp-6) var(--container-pad);
  max-width: 70ch; margin-inline: auto; text-align: center;
}
.stories-intro p { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--color-text-soft); }

.projects-list {
  padding: var(--sp-4) var(--container-pad);
  max-width: var(--container-max); margin-inline: auto;
  display: grid; gap: var(--sp-6);
}
@media (min-width: 768px) { .projects-list { padding: var(--sp-6) var(--container-pad); gap: var(--sp-7); } }
.project {
  display: grid; gap: var(--sp-4);
  grid-template-columns: 1fr;
  scroll-margin-top: 80px;
}
@media (min-width: 768px) {
  .project { grid-template-columns: 5fr 7fr; gap: var(--sp-5); align-items: start; }
  /* Alternating rows: flip the columns too, so the media column is always 5fr
     and every project image renders at exactly the same size. */
  .project:nth-child(even) { grid-template-columns: 7fr 5fr; }
  .project:nth-child(even) .project__media { order: 2; }
}
.project__media {
  aspect-ratio: 4/3; overflow: hidden; background: #f5f5f5;
}
.project__media img { width: 100%; height: 100%; object-fit: cover; }
.project__body { display: flex; flex-direction: column; gap: var(--sp-2); }
.project__meta {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  font-size: 0.85rem; color: var(--color-text-soft); letter-spacing: 0.05em; text-transform: uppercase;
}
.project__badge {
  display: inline-block; padding: 2px 10px; border: 1px solid currentColor;
  font-size: 0.7rem; letter-spacing: 0.15em;
}
.project__badge--future { color: var(--color-accent); }
.project__title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 400; margin-bottom: var(--sp-3); }
.project__tagline { font-size: 1.1rem; color: var(--color-text); font-style: italic; }
.project__desc { color: var(--color-text); max-width: 62ch; text-wrap: pretty; }
/* Justify only from tablet up: in narrow columns justified text opens ugly
   word-gaps, so phones keep a ragged right edge. Auto hyphenation is what
   makes justification look clean rather than gappy. */
@media (min-width: 768px) {
  .project__desc { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
}
.project__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-2); }
.btn {
  display: inline-block; padding: var(--sp-2) var(--sp-4);
  background: var(--color-dark); color: var(--color-text-inv);
  font-size: 0.95rem; letter-spacing: 0.02em;
  border: 1px solid var(--color-dark);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--color-dark); }
.btn--ghost { background: transparent; color: var(--color-dark); }
.btn--ghost:hover { background: var(--color-dark); color: var(--color-text-inv); }

/* Project gallery (sub-grid of small images) */
.project__gallery {
  display: grid; gap: var(--sp-2); margin-top: var(--sp-3);
  grid-template-columns: repeat(3, 1fr);
}
.project__gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }

/* ─── ABOUT — sections ───────────────────────────────────────────────────── */
/* About hero band (thin gradient strip) */
.about-hero-band {
  background: url("/img/about/hero-bg.jpg") center/100% 100% no-repeat;
  padding: var(--sp-5) var(--container-pad);
  color: #fff; text-align: center;
  height: 380px;
  display: grid; place-items: center;
}
@media (min-width: 768px) { .about-hero-band { height: 460px; padding: var(--sp-6) var(--container-pad); } }
.about-hero-band__inner { max-width: 60ch; margin-inline: auto; }
.about-hero-band .hero__overline { display: block; font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: var(--sp-2); opacity: 0.9; }
.about-hero-band h1 { text-transform: uppercase; font-weight: 300; letter-spacing: 0; margin-bottom: var(--sp-3); font-size: clamp(1.75rem, 4vw, 3.25rem); }
@media (min-width: 1100px) { .about-hero-band h1 { font-size: clamp(2rem, 3.2vw, 3rem); } }
.about-hero-band__sub { font-size: clamp(1.15rem, 2.2vw, 1.875rem); line-height: 1.4; opacity: 0.96; margin: var(--sp-2) auto 0; max-width: 46ch; }

/* Split sections: GIVE+Mission / Vision+photo */
.about-split {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  max-width: 100%;
}
@media (min-width: 768px) {
  .about-split { grid-template-columns: 1fr 1fr; }
}

.about-split__text {
  background: #fff; color: var(--color-text);
  padding: var(--sp-7) var(--sp-6);
  display: flex; flex-direction: column; justify-content: center;
}
.about-split__text h2 { font-weight: 400; margin-bottom: var(--sp-3); }
.about-split__text p { color: var(--color-text); max-width: 68ch; }

.about-split {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .about-split { grid-template-columns: 1fr 1fr; min-height: 520px; align-items: stretch; }
}
.about-split__give {
  background: #0a0a0a url("/img/about/hero.jpg") center/cover no-repeat;
  min-height: 360px;
}

.about-split__media {
  overflow: hidden; min-height: 480px;
  background: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
}
.about-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-vision {
  background: #fff; color: var(--color-text);
  display: grid; grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 768px) {
  .about-vision { grid-template-columns: 1fr 1fr; height: 520px; align-items: stretch; }
}
.about-vision__text {
  padding: var(--sp-6) var(--container-pad);
  display: flex; flex-direction: column; justify-content: center;
}
.about-vision__text h2 { font-weight: 400; margin-bottom: var(--sp-3); }
.about-vision__text p { color: var(--color-text); max-width: 50ch; margin: 0; }
.about-vision__media { overflow: hidden; min-height: 360px; }
.about-vision__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bio {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  background: #fff;
  color: var(--color-text);
}
.bio--fullwidth { margin: 0; max-width: 100%; width: 100%; }
@media (min-width: 768px) {
  .bio { grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 560px; }
}
.bio__media { display: flex; overflow: hidden; min-height: 380px; height: 100%; }
.bio__media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 25%; }
.bio__body { display: flex; flex-direction: column; justify-content: center; padding: var(--sp-6) var(--sp-6); }
.bio__body p { max-width: 52ch; }
.bio__name { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 400; margin-bottom: var(--sp-1); }
.bio__role { font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; margin-bottom: var(--sp-3); }
.bio__social { list-style: none; padding: 0; margin: var(--sp-3) 0 0; display: flex; gap: var(--sp-2); }
.bio__social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--color-line); border-radius: 50%; color: var(--color-text); transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.bio__social a:hover { color: var(--color-accent); border-color: var(--color-accent); }
.bio__name { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 400; margin-bottom: var(--sp-1); }
.bio__role { font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin-bottom: var(--sp-4); }
.bio__body p { color: var(--color-text); max-width: 65ch; }
.bio__body p strong { color: var(--color-text); font-weight: 600; }

/* ─── CONTACT ────────────────────────────────────────────────────────────── */
/* Contact split — photo left (full bleed) / info + form right */
.contact-split {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .contact-split { grid-template-columns: 1fr 1fr; min-height: 600px; align-items: stretch; }
}
.contact-split__photo { overflow: hidden; align-self: stretch; min-height: 360px; background: #f5f5f5; }
.contact-split__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.contact-split__right { padding-bottom: var(--sp-7); }
.contact-split__right {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: var(--sp-6) var(--container-pad);
  justify-content: center;
}
.contact-info p { margin: 0 0 var(--sp-1); font-size: 1rem; color: var(--color-text); }
.contact-info a { color: var(--color-text); }
.contact-info a:hover { color: var(--color-accent); }

.contact-card {
  background: #fff; border: 1px solid var(--color-line); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.contact-card__sticker {
  display: inline-grid; place-items: center;
  background: #e91e1e; color: #fff;
  width: 130px; height: 130px; border-radius: 50%;
  font-weight: 700; font-size: 1rem; line-height: 1.1; text-align: center;
  letter-spacing: 0.05em; text-transform: uppercase;
  margin-bottom: var(--sp-2);
  transform: rotate(-6deg);
}
.contact-card__photo { width: 100%; aspect-ratio: 3/4; max-height: 380px; overflow: hidden; margin-bottom: var(--sp-3); }
.contact-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.contact-card h2 { font-weight: 400; }
.contact-card address {
  font-style: normal; display: grid; gap: var(--sp-1);
}
.contact-card a { color: var(--color-accent); }

.contact-form { display: grid; gap: var(--sp-3); background: transparent; padding: 0; }
.contact-form__row { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 540px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }
.contact-form label { display: grid; gap: var(--sp-1); font-size: 0.9rem; font-weight: 400; color: var(--color-text); }
.contact-form input,
.contact-form textarea {
  font: inherit; padding: var(--sp-2) 0;
  border: 0; border-bottom: 1px solid #ccc; background: transparent;
  width: 100%; box-sizing: border-box;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-bottom-color: var(--color-accent);
}
.contact-form textarea { min-height: 100px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: transparent;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form button {
  background: var(--color-dark); color: var(--color-text-inv);
  border: 0; padding: var(--sp-3) var(--sp-5);
  font-weight: 500; letter-spacing: 0.05em;
  cursor: pointer; justify-self: start;
  transition: background var(--t-fast) var(--ease);
}
.contact-form button:hover { background: var(--color-accent); }

.contact-grid__cols {
  display: grid; gap: var(--sp-3);
  grid-template-columns: 1fr;
}
@media (min-width: 540px) { .contact-grid__cols { grid-template-columns: 1fr 1fr; } }

.map-embed {
  width: 100%; aspect-ratio: 16/6;
  margin: 0; padding: 0; overflow: hidden;
}
.map-embed iframe {
  width: 100%; height: 100%; border: 0; display: block;
  filter: grayscale(100%) contrast(1.05) brightness(1.08);
}

/* ─── Legal pages (privacy / cookies) ─────────────────────────────────────── */
.legal { padding: var(--sp-8) var(--container-pad); }
.legal__inner { max-width: 70ch; margin-inline: auto; }
.legal__inner h1 { margin-bottom: var(--sp-2); }
.legal__updated { color: var(--color-text-soft); font-size: 0.9rem; margin-bottom: var(--sp-6); }
.legal__inner h2 { margin-top: var(--sp-6); margin-bottom: var(--sp-2); font-size: clamp(1.2rem, 2vw, 1.5rem); }
.legal__inner p, .legal__inner li { color: var(--color-text); line-height: 1.7; }
.legal__inner ul { padding-left: 1.2em; margin: 0 0 1em; display: flex; flex-direction: column; gap: var(--sp-2); }
.legal__inner a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }

/* Contact form status message */
.contact-form__status { margin-top: var(--sp-3); font-size: 0.95rem; color: #1a7f37; }
.contact-form__status.is-error { color: #c0392b; }
