/* ============================================================
   HOME PAGE — Specific styles
   Mobile-first. All sections defined here.
============================================================ */

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--c-black);
  padding-top: var(--nav-h);
}

/* YouTube iframe video background */
/* YouTube iframe video background */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
  opacity: 0.9;
  border: none;
  pointer-events: none;
}

/* Static poster / fallback image (shows if video file is missing) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/hero/banner-Main_01.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.35;
  z-index: 0;                  /* video renders on top of this when present */
}

/* ---- CSS animated background ---- */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Animated blue glow orbs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: floatGlow 12s ease-in-out infinite alternate;
}
.hero-glow--a {
  width: clamp(300px, 50vw, 700px);
  height: clamp(300px, 50vw, 700px);
  background: radial-gradient(circle, rgba(26,127,212,0.22) 0%, transparent 70%);
  top: -10%;
  left: -5%;
  animation-duration: 14s;
}
.hero-glow--b {
  width: clamp(200px, 35vw, 500px);
  height: clamp(200px, 35vw, 500px);
  background: radial-gradient(circle, rgba(26,127,212,0.12) 0%, transparent 70%);
  bottom: 10%;
  right: 5%;
  animation-duration: 10s;
  animation-delay: -5s;
}

@keyframes floatGlow {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -40px) scale(1.1); }
}

/* Subtle dot grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Horizontal scan line */
.hero-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(26,127,212,0.4) 30%, rgba(26,127,212,0.4) 70%, transparent 100%);
  animation: scanDown 8s linear infinite;
  top: 0;
}
@keyframes scanDown {
  from { top: -2px; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  to   { top: 100%; opacity: 0; }
}

/* ---- Hero content ---- */
.hero-body {
  position: relative;
  z-index: 5;
  padding: var(--space-5) var(--space-3);
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 768px) {
  .hero-body { padding: var(--space-6) var(--space-5); }
}
@media (min-width: 1280px) {
  .hero-body { padding: var(--space-6) var(--space-6); margin: 0 0 0 clamp(0px, 4vw, 80px); }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;          /* SIZE 4 — Label */
  font-weight: var(--fw-600);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--space-4);
}
.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-headline {
  margin-bottom: var(--space-3);
}
.line--primary {
  display: block;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);  /* Sized to keep each line on one row at 1280px+ */
  font-weight: var(--fw-700);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-white);
}

/* .line--primary em removed — headline is now a single unified span, no em subline */

.hero-sub {
  font-size: 1.125rem;          /* SIZE 3 — Body */
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--c-text-muted);
  max-width: 560px;
  margin-bottom: var(--space-4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

/* Hero stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-n {
  font-size: clamp(2rem, 3vw, 2.5rem);   /* SIZE 2 range — stats should feel impactful */
  font-weight: var(--fw-700);
  color: var(--c-white);
  line-height: 1;
}
.stat-l {
  font-size: 0.875rem;          /* SIZE 4 — Label */
  font-weight: var(--fw-500);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--c-border);
  flex-shrink: 0;
}

/* ---- Ribbon wave canvas — background texture, sits behind all hero content ---- */
.hero-dna-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;         /* above poster bg (0), below glow/grid (0) and content (5) */
  pointer-events: none;
  opacity: 0.38;      /* atmospheric — readable content always wins */
}
@media (max-width: 767px) {
  .hero-dna-canvas { opacity: 0.16; }
}

/* Keyframes still used by .process-spiral */
@keyframes spiralFloat1 {
  from { transform: translate(0, 0) rotate(0deg) scale(1); }
  to   { transform: translate(18px, -24px) rotate(15deg) scale(1.06); }
}
@keyframes spiralFloat2 {
  from { transform: translate(0, 0) rotate(0deg) scale(1); }
  to   { transform: translate(-14px, 20px) rotate(-12deg) scale(1.04); }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
}
.hero-scroll span {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-white);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-white), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.4; }
  50% { transform: scaleY(0.6); opacity: 0.8; }
}
@media (max-width: 767px) { .hero-scroll { display: none; } }

/* ── CLIENT MARQUEE ─────────────────────────────────────── */
.clients-strip {
  overflow: hidden;
  padding: var(--space-5) 0;
  background: var(--c-dark);
  position: relative;
}
.clients-strip::before,
.clients-strip::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}
.clients-strip::before { left: 0; background: linear-gradient(to right, var(--c-dark), transparent); }
.clients-strip::after  { right: 0; background: linear-gradient(to left, var(--c-dark), transparent); }

.marquee-track {
  display: flex;
  gap: 90px;
  animation: marquee 36s linear infinite;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;  /* prevent GPU layer flicker */
  transform: translateZ(0);     /* force GPU compositing */
  align-items: center;
}
@keyframes marquee {
  0%   { transform: translateZ(0) translateX(0); }
  100% { transform: translateZ(0) translateX(-50%); }
}
.marquee-track:hover { animation-play-state: paused; }

/* Base logo size */
.marquee-logo {
  flex-shrink: 0;
  height: 72px;
  width: 72px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.78);
  transition: filter 0.3s var(--ease);
}
.marquee-logo:hover { filter: grayscale(0%) brightness(1); }

/* Per-logo overrides — wider designs need more horizontal room */
.marquee-logo[alt="ST Engineering"]  { height: 64px; width: 165px; }
.marquee-logo[alt="Samsung"]         { height: 50px; width: 165px; }
.marquee-logo[alt="P&G"]             { height: 82px; width: 82px; }
.marquee-logo[alt="Airbus"]          { height: 56px; width: 180px; }
.marquee-logo[alt="OCBC"]            { height: 72px; width: 140px; }
.marquee-logo[alt="Tetra Pak"]       { height: 90px; width: 90px; }
.marquee-logo[alt="Kimberly-Clark"]  { height: 76px; width: 210px; }
.marquee-logo[alt="SK-II"]           { height: 72px; width: 110px; }
.marquee-logo[alt="Bayer"]           { height: 82px; width: 82px; }
.marquee-logo[alt="Gilead"]          { height: 56px; width: 155px; }
.marquee-logo[alt="NHG"]             { height: 72px; width: 140px; }
.marquee-logo[alt="Rakuten"]         { height: 56px; width: 165px; }
.marquee-logo[alt="Corning"]         { height: 60px; width: 155px; }
.marquee-logo[alt="Elmwood"]         { height: 84px; width: 88px; }

/* ── POSITIONING STATEMENT ──────────────────────────────── */
.positioning {
  background: var(--c-dark);
  position: relative;
  overflow: hidden;
}

/* Ribbon canvas — absolute background behind all copy */
.pos-ribbon-canvas {
  position: absolute;
  right: -4%;
  top: 0;
  bottom: 0;
  width: 82%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}
@media (max-width: 767px) {
  /* On mobile the canvas renders as a dark block over the text — hide it.
     The section background colour provides sufficient depth without it. */
  .pos-ribbon-canvas { display: none; }
}

/* Content sits above the ribbon */
.positioning .container {
  position: relative;
  z-index: 1;
}

.positioning-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  /* No max-width — let the headline run to full container width so SIZE 2 fits in 2 lines */
}
@media (min-width: 1024px) {
  .positioning-inner { gap: var(--space-4); }
}

.pos-label {
  display: flex;
  flex-direction: row;          /* line always beside text */
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
  font-weight: var(--fw-700);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: var(--space-3);
  white-space: nowrap;
}
.label-line {
  display: block;
  height: 2px;
  width: 40px;
  background: var(--c-accent);
  flex-shrink: 0;
  border-radius: 1px;
}

.pos-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);    /* SIZE 2 — locked standard, same as all section headings */
  font-weight: var(--fw-700);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--c-white);
  margin-bottom: var(--space-3);
  text-wrap: balance;
}
.pos-body {
  font-size: 1.125rem;          /* SIZE 3 — Body */
  line-height: 1.8;
  color: var(--c-text-muted);
  max-width: 680px;             /* Body prose stays narrow for readability; headline runs full width */
  margin-bottom: var(--space-3);
}

/* ── SERVICES ───────────────────────────────────────────── */
.services { background: var(--c-black); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
}
@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: var(--c-black);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background var(--dur) var(--ease);
}
.service-card:hover { background: var(--c-dark); }

.service-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.7));
}

.service-card-body {
  padding: var(--space-3) var(--space-3) var(--space-4);
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 2px solid var(--c-accent);
}
.service-name {
  font-size: 1.125rem;
  font-weight: var(--fw-700);
  color: var(--c-accent-hi);
  margin-bottom: var(--space-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.service-desc {
  font-size: 1.125rem;          /* SIZE 3 — Body */
  line-height: 1.75;
  color: var(--c-text-muted);
  flex: 1;
  margin-bottom: var(--space-3);
}
.service-link {
  align-self: flex-end;
  font-size: 0.875rem;          /* SIZE 4 — Label */
  font-weight: var(--fw-600);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--dur) var(--ease);
}
.service-link:hover { gap: 10px; }

/* ── PORTFOLIO / WORKS ──────────────────────────────────── */
.works { background: #080d18; padding-top: var(--space-5); padding-bottom: 0; }
.works .section-heading { color: var(--c-white); }
.works .section-eyebrow { color: var(--c-accent); }
.works-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding: 0 var(--space-3);
}
.works-header > div { width: 100%; }
.works-header .btn  { align-self: center; }
@media (min-width: 768px)  { .works-header { padding: 0 var(--space-5); } }
@media (min-width: 1280px) { .works-header { padding: 0 var(--space-6); } }

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  background: #080d18;                    /* gap colour matches bg — no white border */
}
@media (min-width: 600px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
  /* 2×2 featured first card */
  .portfolio-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
  /* First card's aspect-ratio is set by surrounding 16/9 cells — no override needed */
  .portfolio-card:first-child { aspect-ratio: unset; }
}

/* Mobile: first 4 only */
@media (max-width: 599px) {
  .portfolio-card:nth-child(n+5) { display: none; }
}
/* Tablet: first 6 (3 rows of 2) */
@media (min-width: 600px) and (max-width: 1023px) {
  .portfolio-card:nth-child(n+7) { display: none; }
}

.portfolio-card {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  display: block;
  background: var(--c-dark);
}
.portfolio-card:first-child { aspect-ratio: 16/9; }
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
  filter: brightness(0.7);
}
.portfolio-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.55);
}
.portfolio-card-info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-2) var(--space-3);
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 55%);
  opacity: 1;
  transition: opacity var(--dur) var(--ease);
}
.portfolio-card-type {
  font-size: 0.875rem;          /* SIZE 4 — Label */
  font-weight: var(--fw-600);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 4px;
}
.portfolio-card-title {
  font-size: 1.125rem;          /* SIZE 3 — Body */
  font-weight: var(--fw-600);
  color: var(--c-white);
  line-height: 1.3;
}
.portfolio-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(26,127,212,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.portfolio-card:hover .portfolio-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ── PROCESS ────────────────────────────────────────────── */
.process {
  background: var(--c-dark);
  position: relative;
  overflow: hidden;
}

/* Decorative spiral background accent */
.process-spiral {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(260px, 30vw, 480px);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  animation: spiralFloat1 18s ease-in-out infinite alternate;
}
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 1024px) {
  .process-steps { flex-direction: row; align-items: flex-start; }
}
.process-step {
  flex: 1;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
@media (min-width: 1024px) {
  .process-step { padding: 0 var(--space-4) 0 0; border-top: none; border-left: 1px solid var(--c-border); padding-left: var(--space-4); }
  .process-step:first-child { border-left: none; padding-left: 0; }
}
.process-connector { display: none; }

/* Number + title sit on the same row */
.step-header {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.step-num {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: var(--fw-700);
  letter-spacing: -0.02em;
  line-height: 1;
  color: rgba(26, 127, 212, 0.28);
  flex-shrink: 0;
}

/* Accent line now lives as a border on the content block below */
.step-num::after { display: none; }

.step-title {
  font-size: 2.25rem;
  font-weight: var(--fw-700);
  color: var(--c-white);
  letter-spacing: -0.02em;
  margin-bottom: 0;
  line-height: 1.1;
}
@media (min-width: 1024px) {
  .step-title { white-space: nowrap; }
}

/* Blue accent rule separating header from copy */
.step-content {
  border-top: 2px solid rgba(26,127,212,0.45);
  padding-top: var(--space-2);
  margin-top: var(--space-1);
}
.step-body {
  font-size: 1.125rem;          /* SIZE 3 — Body */
  line-height: 1.8;
  color: var(--c-text-muted);
}

/* Icon-style tags beneath each step body */
.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-3);
}
.step-tag {
  font-size: 0.75rem;
  font-weight: var(--fw-600);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: rgba(26,127,212,0.08);
  border: 1px solid rgba(26,127,212,0.2);
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
/* On desktop the 3-column layout constrains each step — keep tags on one line */
@media (min-width: 1024px) {
  .step-tags { flex-wrap: nowrap; }
}

/* ── BRAND STATEMENT ────────────────────────────────────── */
.brand-statement {
  background: var(--c-black);
  position: relative;
  overflow: hidden;
}

/* Ribbon canvas — full-section background texture */
.brand-ribbon-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
}

.brand-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
@media (min-width: 1024px) {
  .brand-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-7);
    align-items: center;     /* vertical centre — logo box aligned to copy */
  }
}

/* Visual / wordmark side */
.brand-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 1024px) {
  .brand-visual { justify-content: flex-start; }
}

/* Full wordmark display — anchored by bottom accent rule */
.brand-wordmark-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

/* Standalone brandmark icon — sits above the wordmark */
.brand-mark-icon {
  width: 72px;
  height: auto;
  opacity: 0.88;
  filter: drop-shadow(0 0 18px rgba(26,127,212,0.5));
  animation: markPulse 4s ease-in-out infinite alternate;
  margin-bottom: var(--space-3);
}
@media (max-width: 1023px) {
  .brand-mark-icon { width: 56px; }
}

.brand-wordmark-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 0 28px rgba(26,127,212,0.25));
}
@media (max-width: 1023px) {
  .brand-wordmark-img { max-width: 280px; }
}

.brand-wordmark-rule {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-accent);
  border-radius: 0;
}

@keyframes markPulse {
  from { filter: drop-shadow(0 0 18px rgba(26,127,212,0.25)); opacity: 0.88; }
  to   { filter: drop-shadow(0 0 40px rgba(26,127,212,0.5));  opacity: 1; }
}

/* Copy side */
.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.brand-copy .btn { margin-top: var(--space-4); align-self: flex-start; }

/* Ensure brand-inner sits above ribbon */
.brand-statement .container { position: relative; z-index: 1; }

.brand-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);    /* SIZE 2 — Heading */
  font-weight: var(--fw-700);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--c-white);
  margin-bottom: var(--space-3);
  text-wrap: balance;
}
.brand-body {
  font-size: 1.125rem;          /* SIZE 3 — Body */
  line-height: 1.8;
  color: var(--c-text-muted);
  max-width: 560px;
  margin-bottom: var(--space-2);
}
.brand-copy .btn { margin-top: var(--space-3); }

/* ── CONTACT COMBINED (CTA header + form — single section) ─ */
.contact-combined {
  background: linear-gradient(160deg, #050a14 0%, #000814 45%, #000 100%);
  border-top: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
}
.contact-combined::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(26,127,212,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.contact-combined .cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-form-divider {
  margin: var(--space-6) 0 var(--space-7);
}

.contact-form-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 1024px) {
  .contact-form-inner { grid-template-columns: 1fr 1.6fr; align-items: start; gap: var(--space-7); }
}
.contact-form-sub {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  margin-top: var(--space-2);
  line-height: 1.7;
}

.contact-form { display: flex; flex-direction: column; gap: var(--space-3); }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.875rem;
  font-weight: var(--fw-600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent-hi);
}
.form-optional { font-weight: var(--fw-400); opacity: 0.6; text-transform: none; letter-spacing: 0; }

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--c-border);
  border-radius: 2px;
  padding: 0.875rem 1rem;
  font-size: 1.125rem;
  font-family: var(--font);
  color: var(--c-text);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--c-text-muted); opacity: 0.5; }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  background: rgba(26,127,212,0.04);
}
.contact-form .btn { align-self: flex-start; margin-top: var(--space-1); }

/* Honeypot — off-screen, invisible, pointer events blocked. Real users never see it. */
.contact-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Desktop: stretch textarea so Send Message button lines up with Submit A Brief */
@media (min-width: 1024px) {
  #cf-message { min-height: 200px; }
}

/* Production request brief block — sits below the form intro copy */
.contact-brief-block {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.contact-brief-title {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);   /* Archived statement heading — mid-size between SIZE 2 and SIZE 3 */
  font-weight: var(--fw-700);
  color: var(--c-white);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.contact-brief-sub {
  font-size: 1.125rem;          /* SIZE 3 — Body */
  line-height: 1.7;
  color: var(--c-text-muted);
}
.contact-brief-block .btn { align-self: flex-start; margin-top: var(--space-1); }

/* ── CTA SECTION ────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #050a14 0%, #000 50%, #050a14 100%);
  border-top: 1px solid var(--c-border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,127,212,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);    /* SIZE 2 — Heading */
  font-weight: var(--fw-700);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--c-white);
  margin-bottom: var(--space-3);
  text-wrap: balance;
}
.cta-body {
  font-size: 1.125rem;          /* SIZE 3 — Body */
  line-height: 1.75;
  color: var(--c-text-muted);
  max-width: 500px;
  margin: 0 auto var(--space-4);
}

/* ============================================================
   MOBILE LAYOUT — ≤1023px
   Desktop is locked. All rules below affect mobile/tablet only.
============================================================ */
@media (max-width: 1023px) {

  /* — Positioning section ————————————————————————————— */
  .pos-label { justify-content: center; }
  .pos-label .label-line { display: none; }
  .pos-headline,
  .pos-body { text-align: center; }
  .pos-body { max-width: 100%; }
  .pos-content .text-link { display: block; text-align: right; }

  /* — Section headers (Services, Process) ————————————— */
  .section-header { text-align: center; }

  /* — Service cards ——————————————————————————————————— */
  .service-card-body { align-items: center; }
  .service-name,
  .service-desc { text-align: center; }

  /* — Process steps ——————————————————————————————————— */
  .step-header { justify-content: center; }
  .step-body { text-align: center; }
  .step-tags { justify-content: center; }

  /* — Brand statement ————————————————————————————————— */
  .brand-copy { align-items: center; }
  .brand-headline,
  .brand-body { text-align: center; }
  .brand-copy .btn { align-self: center; }

  /* — Contact form header ————————————————————————————— */
  .contact-form-header { text-align: center; }
  .contact-brief-block { align-items: center; }
  .contact-brief-title,
  .contact-brief-sub { text-align: center; }
  .contact-brief-block .btn { align-self: center; }
  .contact-form .btn { align-self: center; }
}
