/*
Theme Name: Frame Media Partners
Theme URI: https://framemediapartners.com
Author: Frame Media Partners
Description: Bespoke single-page WordPress theme for Frame Media Partners.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: frame-media-partners
*/

:root {
  --navy: #071a2f;
  --navy-soft: #102c49;
  --blue: #008fce;
  --blue-bright: #12a9eb;
  --blue-pale: #eaf7fc;
  --ink: #102235;
  --muted: #596a79;
  --line: #dbe4ea;
  --surface: #f5f8fa;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(7, 26, 47, 0.1);
  --radius: 20px;
  --container: 1180px;
  --header-height: 82px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(18, 169, 235, 0.45);
  outline-offset: 3px;
}

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

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100%, 790px);
}

.section {
  position: relative;
  padding: 112px 0;
}

.section--soft {
  background: var(--surface);
}

.section--dark {
  color: var(--white);
  background: var(--navy);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  content: "";
  background: currentColor;
}

.eyebrow--light {
  color: #75d4f6;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 800px;
  margin-bottom: 28px;
  font-size: clamp(3.25rem, 6.2vw, 6.8rem);
}

h2 {
  max-width: 830px;
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 4vw, 4.35rem);
}

h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 750px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.75;
}

.section-heading {
  margin-bottom: 56px;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 64px;
}

.section-heading--split .lead {
  margin-bottom: 4px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: var(--white);
  background: var(--blue);
}

.button--primary:hover {
  background: #007db5;
}

.button--secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
}

.button--secondary:hover {
  border-color: var(--blue);
}

.button__arrow {
  font-size: 1.1rem;
  line-height: 0;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(219, 228, 234, 0.85);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.site-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
}

.site-brand img,
.site-brand .custom-logo {
  width: 54px;
  height: 44px;
  object-fit: contain;
}

.site-brand__type {
  display: grid;
  color: var(--navy);
  line-height: 1;
}

.site-brand__type strong {
  font-size: 1.18rem;
  letter-spacing: 0.25em;
}

.site-brand__type small {
  margin-top: 6px;
  color: var(--blue);
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  padding: 12px 0;
  color: #294052;
  font-size: 0.82rem;
  font-weight: 700;
}

.site-nav a::after {
  position: absolute;
  right: 100%;
  bottom: 5px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  transition: right 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after {
  right: 0;
}

.header-cta {
  min-height: 44px;
  padding: 12px 16px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding: 104px 0 92px;
  background:
    linear-gradient(90deg, rgba(7, 26, 47, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(7, 26, 47, 0.035) 1px, transparent 1px),
    linear-gradient(140deg, #fff 58%, #f1f8fb 100%);
  background-size: 64px 64px, 64px 64px, auto;
}

.hero::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 24%;
  height: 5px;
  content: "";
  background: var(--blue);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: 70px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy .lead {
  max-width: 730px;
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
}

.hero-device {
  position: relative;
  aspect-ratio: 0.92;
  max-width: 460px;
  justify-self: end;
}

.hero-frame {
  position: absolute;
  inset: 8% 7% 8% 5%;
  border: 2px solid var(--navy);
  animation: frame-shift 8s ease-in-out infinite;
}

.hero-frame::before,
.hero-frame::after {
  position: absolute;
  content: "";
  background: var(--blue);
}

.hero-frame::before {
  top: -2px;
  right: 12%;
  width: 30%;
  height: 6px;
}

.hero-frame::after {
  bottom: 12%;
  left: -2px;
  width: 6px;
  height: 33%;
}

.hero-window {
  position: absolute;
  inset: 19% 18% 17% 16%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--shadow);
}

.hero-window::after {
  position: absolute;
  top: 24px;
  right: -24px;
  width: 48px;
  height: 48px;
  content: "";
  border-top: 4px solid var(--blue);
  border-right: 4px solid var(--blue);
}

.hero-window__index {
  color: #80d8f8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero-window__statement {
  max-width: 250px;
  margin: auto 0;
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.hero-window__meta {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #bcd0dd;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crop-mark {
  position: absolute;
  width: 44px;
  height: 44px;
  border-color: var(--blue);
}

.crop-mark--top {
  top: 0;
  left: 0;
  border-top: 4px solid var(--blue);
  border-left: 4px solid var(--blue);
}

.crop-mark--bottom {
  right: 0;
  bottom: 0;
  border-right: 4px solid var(--blue);
  border-bottom: 4px solid var(--blue);
}

@keyframes frame-shift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(12px, -10px); }
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  position: relative;
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.service-card::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 46px;
  height: 46px;
  content: "";
  border-top: 3px solid var(--blue);
  border-left: 3px solid var(--blue);
}

.service-card:hover {
  z-index: 1;
  border-color: rgba(0, 143, 206, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.service-card__number {
  display: block;
  margin-bottom: 64px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.service-card > p {
  color: var(--muted);
}

.clean-list {
  display: grid;
  gap: 8px;
  padding: 20px 0 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 18px;
  color: #31495b;
  font-size: 0.92rem;
}

.clean-list li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--blue);
}

/* Expertise */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.expertise-item {
  min-height: 250px;
  padding: 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.expertise-item__line {
  display: block;
  width: 36px;
  height: 3px;
  margin-bottom: 70px;
  background: var(--blue);
}

.expertise-item p {
  margin-bottom: 0;
  color: var(--muted);
}

/* Approach */
.process-wrap {
  position: relative;
}

.process-wrap::before {
  position: absolute;
  top: 33px;
  right: 7%;
  left: 7%;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.25);
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.process-step__number {
  display: flex;
  width: 66px;
  height: 66px;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid rgba(117, 212, 246, 0.55);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.process-step h3 {
  color: var(--white);
}

.process-step p {
  margin-bottom: 0;
  color: #afc4d3;
  font-size: 0.92rem;
}

.approach-statement {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 900px;
  padding: 28px 32px;
  margin: 68px 0 0 auto;
  background: rgba(255, 255, 255, 0.055);
  border-left: 3px solid var(--blue);
}

.approach-statement__mark {
  color: var(--blue-bright);
  font-size: 2.5rem;
  line-height: 1;
}

.approach-statement p {
  margin: 0;
  color: var(--white);
  font-size: 1.15rem;
}

/* Partnerships */
.partnership-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(390px, 1.05fr);
  align-items: center;
  gap: 92px;
}

.statement-large {
  margin: 18px 0 30px;
  color: var(--navy);
  font-size: clamp(1.7rem, 2.8vw, 2.75rem);
  font-weight: 550;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.contribution-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  margin: 25px 0 0;
  list-style: none;
}

.contribution-list li {
  padding: 8px 12px;
  color: #244157;
  background: var(--blue-pale);
  font-size: 0.82rem;
  font-weight: 700;
}

.media-flow {
  position: relative;
  padding: 46px;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.media-flow::before,
.media-flow::after {
  position: absolute;
  width: 58px;
  height: 58px;
  content: "";
}

.media-flow::before {
  top: -12px;
  right: -12px;
  border-top: 4px solid var(--blue);
  border-right: 4px solid var(--blue);
}

.media-flow::after {
  bottom: -12px;
  left: -12px;
  border-bottom: 4px solid var(--blue);
  border-left: 4px solid var(--blue);
}

.media-flow__title {
  margin-bottom: 28px;
  color: #75d4f6;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.media-flow__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.media-flow__step {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 96px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.media-flow__step:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -11px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  content: "›";
  color: var(--navy);
  background: var(--blue-bright);
  border-radius: 50%;
  font-size: 1rem;
  transform: translateY(-50%);
}

.media-flow p {
  margin: 28px 0 0;
  color: #b7cad7;
}

/* Audiences */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.audience-card {
  padding: 46px;
  background: var(--white);
  border: 1px solid var(--line);
}

.audience-card__label {
  display: block;
  margin-bottom: 60px;
  color: var(--blue);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.audience-card h3 {
  font-size: 1.8rem;
}

.audience-card > p {
  color: var(--muted);
}

/* Principles */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.principle {
  min-height: 250px;
  padding: 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.principle__index {
  display: block;
  margin-bottom: 72px;
  color: #75d4f6;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.principle p {
  margin-bottom: 0;
  color: #b7cad7;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(440px, 1.22fr);
  gap: 92px;
}

.contact-copy {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  align-self: start;
}

.contact-copy h2 {
  max-width: 500px;
}

.contact-person {
  display: grid;
  gap: 3px;
  padding: 26px 0 0 24px;
  margin-top: 42px;
  border-top: 1px solid var(--line);
  border-left: 3px solid var(--blue);
}

.contact-person strong {
  color: var(--navy);
  font-size: 1.08rem;
}

.contact-person span {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-person a {
  width: fit-content;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 750;
}

.contact-form {
  padding: 46px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid transparent;
  border-bottom-color: #becbd3;
  border-radius: 0;
  outline: none;
  transition: border 180ms ease, background 180ms ease;
}

.form-field input,
.form-field select {
  height: 54px;
  padding: 0 15px;
}

.form-field textarea {
  min-height: 160px;
  padding: 15px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background: var(--white);
  border-color: var(--blue);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
}

.form-consent {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.form-notice {
  padding: 14px 16px;
  margin-bottom: 24px;
  border-left: 3px solid var(--blue);
  background: var(--blue-pale);
}

.form-notice--error {
  border-left-color: #bd3c3c;
  background: #fff0f0;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
}

/* Footer */
.site-footer {
  color: var(--white);
  background: #041426;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(230px, 1.1fr) minmax(0, 0.9fr) minmax(0, 0.8fr);
  gap: 70px;
  padding: 74px 0 62px;
}

.footer-brand-card {
  width: 220px;
  padding: 14px;
  background: var(--white);
}

.footer-tagline {
  max-width: 330px;
  margin: 20px 0 0;
  color: #adc2d1;
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-heading {
  display: block;
  margin-bottom: 22px;
  color: #75d4f6;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links a {
  color: #d6e1e8;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact p {
  margin: 0 0 4px;
  color: #adc2d1;
  font-size: 0.9rem;
}

.footer-contact a {
  display: inline-block;
  margin-top: 12px;
  color: var(--white);
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 22px 0;
  color: #829dad;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.76rem;
}

.legal-links {
  display: flex;
  gap: 20px;
}

/* Legal pages */
.legal-hero {
  padding: 100px 0 58px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.legal-content {
  width: min(calc(100% - 40px), 820px);
  padding: 76px 0 110px;
  margin-inline: auto;
}

.legal-review {
  padding: 18px 20px;
  margin-bottom: 42px;
  color: #6b4c0d;
  background: #fff8dd;
  border-left: 3px solid #dba51c;
}

.legal-content h2 {
  margin: 42px 0 15px;
  font-size: 1.6rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

/* Cookie notice */
.cookie-notice {
  position: fixed;
  z-index: 1100;
  right: 22px;
  bottom: 22px;
  width: min(calc(100% - 44px), 420px);
  padding: 22px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 60px rgba(7, 26, 47, 0.25);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice p {
  margin-bottom: 16px;
  color: #c7d6df;
  font-size: 0.84rem;
}

.cookie-notice a {
  color: #75d4f6;
  text-decoration: underline;
}

.cookie-notice .button {
  min-height: 42px;
  padding: 10px 15px;
}

/* WordPress content fallback */
.content-page {
  min-height: 65vh;
  padding: 90px 0;
}

.entry-content {
  max-width: 800px;
}

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .site-nav ul { gap: 18px; }
  .header-actions { gap: 18px; }
  .header-cta { display: none; }
  .hero-grid { gap: 32px; }
  .hero-device { max-width: 390px; }
  .process-grid { gap: 14px; }
  .process-step p { font-size: 0.86rem; }
  .principle { padding: 28px; }
}

@media (max-width: 900px) {
  :root { --header-height: 72px; }
  .section { padding: 88px 0; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    z-index: -1;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    padding: 26px 20px 40px;
    background: var(--white);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .site-nav ul {
    display: grid;
    gap: 0;
    max-width: var(--container);
    margin: 0 auto;
  }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 4px;
    font-size: 1.15rem;
  }
  .site-nav a::before { content: "↗"; order: 2; color: var(--blue); }
  .site-nav a::after { display: none; }
  .hero { min-height: auto; padding: 82px 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-device {
    width: min(100%, 440px);
    justify-self: start;
    margin-top: 24px;
  }
  .section-heading--split,
  .partnership-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .process-wrap::before { display: none; }
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 24px;
  }
  .process-step:last-child { grid-column: 1 / -1; max-width: 50%; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-copy { position: static; }
  .footer-main { grid-template-columns: 1.2fr 0.8fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .section { padding: 72px 0; }
  h1 { font-size: clamp(2.7rem, 14vw, 4.5rem); }
  h2 { font-size: clamp(2.05rem, 10vw, 3.3rem); }
  .site-brand { gap: 7px; }
  .site-brand img,
  .site-brand .custom-logo { width: 44px; height: 38px; }
  .site-brand__type strong { font-size: 0.95rem; }
  .site-brand__type small { font-size: 0.44rem; }
  .hero { padding: 66px 0 58px; }
  .hero-device { aspect-ratio: 1.05; margin-top: 12px; }
  .hero-window { inset: 17% 14% 15% 12%; padding: 24px; }
  .hero-window__statement { font-size: 1.3rem; }
  .hero-window__meta { font-size: 0.62rem; }
  .button-row { display: grid; grid-template-columns: 1fr; }
  .button-row .button { width: 100%; }
  .section-heading { margin-bottom: 38px; }
  .service-grid,
  .expertise-grid,
  .audience-grid,
  .principles-grid,
  .form-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }
  .service-card,
  .audience-card,
  .contact-form { padding: 28px; }
  .service-card__number,
  .audience-card__label { margin-bottom: 42px; }
  .expertise-item { min-height: 220px; padding: 28px; }
  .expertise-item__line { margin-bottom: 48px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step:last-child { grid-column: auto; max-width: none; }
  .process-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 20px;
  }
  .process-step__number { width: 56px; height: 56px; grid-row: 1 / 3; }
  .approach-statement { grid-template-columns: 1fr; padding: 24px; }
  .partnership-layout { gap: 54px; }
  .media-flow { padding: 30px 24px; }
  .media-flow__steps { grid-template-columns: 1fr; }
  .media-flow__step { min-height: 68px; }
  .media-flow__step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -11px;
    transform: translateX(50%) rotate(90deg);
  }
  .principle { min-height: auto; padding: 28px; }
  .principle__index { margin-bottom: 40px; }
  .contact-layout { gap: 38px; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer .button { width: 100%; }
  .footer-main { gap: 40px; padding: 58px 0 44px; }
  .footer-contact { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 10px; }
  .cookie-notice { right: 15px; bottom: 15px; width: calc(100% - 30px); }
}

