/*
Theme Name: KV Communications Overprint 2
Theme URI: https://kvcommunications.com
Author: BAAR Consulting
Description: A two-screen continuous-scroll site for KV Communications. Night hero with the full lockup and the "Where Story Meets Strategy" line, scrolling into a white "Who we are" screen. One ribbon runs unbroken across the seam: warm grey on the hero, #ffc6c3 below. Every string, link and colour is editable under Appearance, Customize, Overprint 2.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kv-overprint2
Tags: one-column, custom-logo, custom-colors, editor-style, full-width-template
*/

:root {
  --kv-night: #141414;
  --kv-paper: #ffffff;
  --kv-ink: #141414;
  --kv-muted: #55565a;
  --kv-pink: #ffc6c3;
  --kv-pink-ink: #d98d86;
  --kv-hairline: rgba(20, 20, 20, 0.28);
  --kv-ease: cubic-bezier(.22,.61,.36,1);
}

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

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

body {
  margin: 0;
  background: var(--kv-night);
  color: var(--kv-ink);
  font-family: 'Jost', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; transition: color 140ms var(--kv-ease); }
a:hover { color: var(--kv-pink-ink); }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kv-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #fff; color: #141414; padding: 12px 18px;
  font-size: 14px; letter-spacing: 0.04em;
}
.kv-skip:focus { left: 16px; top: 16px; }

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

/* ---------- Screen one: the night hero ---------- */

.kv-hero {
  position: relative;
  min-height: 100svh;
  background: var(--kv-night);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.4vw, 52px);
  padding: 96px 24px 120px;
}

.kv-ribbon {
  /* The artwork is 1280x2100. It is sized by one width variable and its
     height is derived from that ratio, so it never stretches. The width
     is whichever is larger: the viewport, or enough to keep the swirl
     about two screens tall on short, narrow devices. */
  --kv-rw: max(100vw, 96svh);
  --kv-ribbon-top: calc(var(--kv-rw) * -0.46875);
  position: absolute;
  left: 50%;
  margin-left: calc(var(--kv-rw) / -2);
  width: var(--kv-rw);
  height: calc(var(--kv-rw) * 2100 / 1280);
  aspect-ratio: 1280 / 2100;
  object-fit: contain;
  max-width: none;
  min-width: 0;
  pointer-events: none;
  user-select: none;
  animation: kvflow 112s ease-in-out infinite;
  will-change: transform;
}

.kv-hero .kv-ribbon {
  top: var(--kv-ribbon-top);
  opacity: 1;
}

.kv-lockup {
  position: relative;
  width: min(620px, 68vw);
  max-height: min(36svh, 46vw);
  object-fit: contain;
  height: auto;
}

.kv-lockup img {
  max-height: min(36svh, 46vw);
  width: auto;
  margin: 0 auto;
}

.kv-tagline {
  position: relative;
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(21px, 3.3vw, 42px);
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: #ffffff;
  text-align: center;
  text-wrap: balance;
}

.kv-tagline em { font-style: normal; color: var(--kv-pink); }

.kv-scroll {
  position: absolute;
  left: 0; right: 0; bottom: 40px;
  display: flex;
  justify-content: center;
}

.kv-scroll span {
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent);
}

/* ---------- Screen two: who we are ---------- */

.kv-about {
  position: relative;
  background: var(--kv-paper);
  overflow: hidden;
  padding: clamp(72px, 9vw, 126px) clamp(24px, 6vw, 80px) clamp(64px, 7vw, 96px);
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 5.5vw, 68px);
}

.kv-about .kv-ribbon {
  top: calc(var(--kv-ribbon-top) - var(--kv-seam-offset, 100svh));
  opacity: 0.35;
  mix-blend-mode: multiply;
}

.kv-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
}

.kv-row--lead { align-items: end; }
.kv-row--tail { align-items: start; }

.kv-heading {
  margin: 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(46px, 7vw, 90px);
  line-height: 0.84;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--kv-ink);
}

.kv-lead {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.74;
  color: var(--kv-ink);
  text-wrap: pretty;
}

.kv-body {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 17px);
  line-height: 1.95;
  color: var(--kv-muted);
  text-wrap: pretty;
}

/* ---------- Contact ---------- */

.kv-contact {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.kv-eyebrow {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--kv-pink-ink);
}

.kv-email {
  display: inline-block;
  padding: 6px 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 20px);
  text-transform: uppercase;
  color: var(--kv-ink);
  word-break: break-word;
}

.kv-phone {
  display: inline-block;
  padding: 6px 0;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--kv-ink);
}

.kv-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--kv-hairline);
  transition: border-color 140ms var(--kv-ease);
}
.kv-social:hover { border-color: var(--kv-ink); }
.kv-social svg {
  width: 19px; height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kv-places {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kv-pink-ink);
}

/* ---------- Interior pages ---------- */

.kv-page {
  background: var(--kv-paper);
  padding: clamp(72px, 9vw, 126px) clamp(24px, 6vw, 80px);
}
.kv-page-inner { max-width: 780px; margin: 0 auto; }
.kv-page h1, .kv-page h2, .kv-page h3 {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--kv-ink);
}
.kv-page h1 { font-size: clamp(38px, 5vw, 62px); margin: 0 0 32px; }
.kv-page h2 { font-size: clamp(26px, 3vw, 34px); margin: 48px 0 18px; }
.kv-page p, .kv-page li { font-size: 17px; line-height: 1.95; color: var(--kv-muted); }
.kv-page a { color: var(--kv-ink); border-bottom: 1px solid var(--kv-pink-ink); }
.kv-back {
  display: inline-block;
  margin-top: 56px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--kv-pink-ink);
  border: 0;
}

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

.kv-footer {
  background: var(--kv-paper);
  padding: 0 clamp(24px, 6vw, 80px) 56px;
}
.kv-footer-inner {
  border-top: 1px solid rgba(20,20,20,0.12);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a9298;
}

/* ---------- Motion ---------- */

@keyframes kvflow {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(-1.6%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes kvrise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: none; }
}

body:not(.kv-no-motion) .kv-lockup,
body:not(.kv-no-motion) .kv-tagline,
body:not(.kv-no-motion) .kv-scroll {
  opacity: 0;
  animation: kvrise 620ms var(--kv-ease) forwards;
}
body:not(.kv-no-motion) .kv-lockup  { animation-delay: 120ms; }
body:not(.kv-no-motion) .kv-tagline { animation-delay: 320ms; }
body:not(.kv-no-motion) .kv-scroll  { animation-delay: 620ms; }

body.kv-no-motion .kv-ribbon { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .kv-ribbon { animation: none !important; }
  .kv-lockup, .kv-tagline, .kv-scroll {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
}

/* ---------- Narrow screens ---------- */

@media (max-width: 860px) {
  .kv-row { grid-template-columns: minmax(0, 1fr); }
  .kv-row--lead { align-items: start; }
  .kv-hero { padding-bottom: 132px; }
}
