/* Chivalrous Productions — front page
   Palette carried over from the live site (Neve): #2f5aae accent, #121212 ink,
   #f4f5f7 mist. Body type stays Ubuntu; Archivo Black is the display face and
   Ubuntu Mono carries the small utility labels. */

:root {
  --ink: #121212;
  --ink-soft: #1b1b1c;
  --text: #272626;
  --muted: #5d5c5c;
  --paper: #ffffff;
  --mist: #f4f5f7;
  --line: #e2e5ea;
  --accent: #2f5aae;
  --accent-deep: #24468a;
  --accent-lift: #6d97e0;

  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --body: Ubuntu, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Ubuntu Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 5vw, 48px);
  --band: clamp(64px, 9vw, 128px);
  --radius: 3px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.62;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 100;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- header -- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark { width: 46px; height: auto; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

/* Brand name: Ubuntu bold italic, matching the logo lockup.
   House rule — the name is always Capital Case, never uppercased. */
.brand-name {
  font-family: var(--body);
  font-weight: 700;
  font-style: italic;
  font-size: 1.12rem;
  letter-spacing: -0.012em;
  text-transform: none;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); }

.nav a {
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.nav .nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: var(--radius);
  border-bottom: 0;
}

.nav .nav-cta:hover { background: var(--accent-deep); color: #fff; }

/* ------------------------------------------------------------------ hero -- */

.hero {
  position: relative;
  min-height: min(86vh, 780px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background: var(--ink);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  z-index: -2;
}

/* The live site washed this photo in flat purple. A bottom-anchored scrim
   keeps the type legible while letting the photograph read. */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(9, 10, 12, 0.96) 0%, rgba(9, 10, 12, 0.84) 28%,
                    rgba(9, 10, 12, 0.46) 54%, rgba(9, 10, 12, 0.14) 78%, transparent 100%),
    linear-gradient(to right, rgba(9, 10, 12, 0.78) 0%, rgba(9, 10, 12, 0.34) 44%,
                    transparent 72%);
}

.hero-inner { padding-block: clamp(40px, 7vw, 92px); }

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.028em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
  text-wrap: balance;
}

.hero-lede {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  max-width: 56ch;
  margin: 0 0 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-solid { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.btn-block { width: 100%; }

/* ----------------------------------------------------------------- bands -- */

.band { padding-block: var(--band); }
.band-paper { background: var(--paper); }
.band-mist { background: var(--mist); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

/* On photography the accent blue loses too much contrast — lift it well clear. */
.eyebrow-light { color: #b9cef1; }

/* Any eyebrow carrying the company name keeps its capitalisation. */
.eyebrow-brand { text-transform: none; letter-spacing: 0.1em; }

.band-title {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.1vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 clamp(32px, 4vw, 54px);
}

/* ----------------------------------------------------------------- cards -- */

.grid {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }

/* Cards are flex columns so copy of different lengths still leaves the
   bottoms aligned — the live grid went ragged here. */
.card, .vcard { display: flex; flex-direction: column; margin: 0; }

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist);
  margin-bottom: 20px;
}

.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-title {
  font-family: var(--display);
  font-size: 1.16rem;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 8px;
}

.card-copy { margin: 0; color: var(--muted); }

/* ------------------------------------------------------- video (no iframe
   until the visitor asks for one: keeps the page light and stops YouTube
   chrome from dictating the art direction) -------------------------------- */

.grid-video { row-gap: clamp(34px, 4vw, 52px); }

.vplayer {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  margin-bottom: 18px;
}

.vposter {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.25s ease;
}

.vplay {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: linear-gradient(to top, rgba(9, 10, 12, 0.55), rgba(9, 10, 12, 0.04) 60%);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.vplay-glyph {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(47, 90, 174, 0.94);
  border: 2px solid rgba(255, 255, 255, 0.9);
  display: block;
  position: relative;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.vplay-glyph::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-left: 17px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.vplay-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.vplayer:hover .vposter { transform: scale(1.035); }
.vplayer:hover .vplay-glyph { transform: scale(1.08); background: var(--accent-deep); }

.vplayer iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --------------------------------------------------------------- feature -- */

.feature {
  position: relative;
  padding-block: clamp(88px, 12vw, 168px);
  isolation: isolate;
  background: var(--ink);
  overflow: hidden;
}

.feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* The live page ran white type straight over this photograph. */
.feature-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(9, 10, 12, 0.9) 0%, rgba(9, 10, 12, 0.74) 46%,
                              rgba(9, 10, 12, 0.36) 100%);
}

.feature-inner { max-width: 60ch; }

.feature-title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5.4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}

.feature-copy { color: rgba(255, 255, 255, 0.9); margin: 0 0 30px; }

/* The monogram is the one flourish — used big, quiet and only twice. */
.watermark {
  position: absolute;
  right: -6%;
  bottom: -14%;
  width: min(46vw, 520px);
  opacity: 0.07;
  z-index: -1;
  filter: invert(1);
  pointer-events: none;
}

.watermark-dark { filter: invert(1); opacity: 0.05; right: -10%; bottom: -18%; }

/* --------------------------------------------------------------- contact -- */

.contact {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding-block: var(--band);
  overflow: hidden;
}

.contact-inner {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  grid-template-columns: 1fr;
}

/* No form any more — a single left-aligned column. The width goes on the inner
   block, not on .contact-inner: that element also carries .wrap, whose
   margin-inline:auto would centre it away from the site's gutter. */
.contact-intro { max-width: 40rem; }

.contact-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.024em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
}

.contact-copy { color: rgba(255, 255, 255, 0.82); margin: 0 0 26px; max-width: 46ch; }

/* The primary route in. Sized to sit on one line at 390px without shrinking
   into the body copy — an email address is a lot longer than a phone number. */
.contact-phone {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(0.98rem, 2.1vw, 1.5rem);
  line-height: 1.25;
  color: #fff;
  text-decoration: none;
  border-bottom: 3px solid var(--accent-lift);
  padding-bottom: 4px;
  overflow-wrap: anywhere;
}

.contact-phone:hover { color: var(--accent-lift); }

/* ---------------------------------------------------------------- footer -- */

.site-foot {
  background: var(--ink-soft);
  color: rgba(255, 255, 255, 0.72);
  padding-block: clamp(44px, 6vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.foot-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }

.foot-mark { width: 58px; height: auto; filter: invert(1); opacity: 0.85; margin-bottom: 10px; }

.foot-name {
  font-family: var(--body);
  font-weight: 700;
  font-style: italic;
  font-size: 1.3rem;
  text-transform: none;
  color: #fff;
  margin: 0;
  letter-spacing: -0.012em;
}

.foot-sub, .foot-legal {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: none;
  margin: 0;
}

.foot-legal { opacity: 0.6; margin-top: 12px; }

/* ----------------------------------------------------------- small print -- */

@media (max-width: 620px) {
  .nav { gap: 12px; }
  .nav a:not(.nav-cta) { display: none; }
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .vplayer:hover .vposter { transform: none; }
}

/* ============================================================ inner pages ==
   Content pages ported from WordPress: a compact page head, then a prose
   column that inherits the same type scale as the front page. */

.page-head {
  background: var(--ink);
  color: #fff;
  padding-block: clamp(48px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}

.page-head .watermark { opacity: 0.05; }

.page-title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.page-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.62);
  margin: 16px 0 0;
}

.prose-wrap { padding-block: clamp(52px, 7vw, 96px); }

.prose { max-width: 68ch; }

.prose > * + * { margin-top: 1.15em; }

.prose h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 1.9em;
}

.prose h3 {
  font-family: var(--display);
  font-size: 1.12rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 1.7em;
}

.prose p { margin-bottom: 0; }

.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-deep); }

.prose ul, .prose ol { padding-left: 1.3em; margin-top: 1.1em; }
.prose li + li { margin-top: 0.6em; }

.prose img { border-radius: var(--radius); margin-block: 1.6em; }

.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 26px;
  border-left: 4px solid var(--accent);
  font-size: 1.12rem;
}

.prose blockquote p { margin: 0; }

/* video grid reused on inner pages */
.prose-videos { margin-top: clamp(30px, 4vw, 48px); }

/* preserved WordPress comments — kept as a record, the form is gone */
.comments {
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
  padding-top: 34px;
  max-width: 68ch;
}

.comments-title {
  font-family: var(--display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 24px;
}

.comment { border-left: 3px solid var(--line); padding-left: 20px; margin-bottom: 26px; }

.comment-who {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 6px;
}

.comment p { margin: 0; }

/* end-of-page call to action */
.cta-strip { background: var(--mist); padding-block: clamp(48px, 6vw, 80px); }

.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

.cta-text {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  text-transform: uppercase;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
}
