/* =========================================================================
   Crude HR Consulting — Field First Digital
   Corporate monochrome with burnt-orange accent.
   ========================================================================= */

:root {
  /* Palette */
  --ink: #0a0a0b;
  --ink-2: #15161a;
  --charcoal: #2a2c33;
  --slate: #4a4d56;
  --muted: #8a8d96;
  --line: #e6e6e8;
  --line-2: #d8d8dc;
  --paper: #fafaf7;
  --paper-2: #f3f1ec;
  --white: #ffffff;

  --accent: #c2410c; /* burnt orange */
  --accent-hover: #9a3309;
  --accent-soft: #f8e7dc;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.5rem, 2.2vw, 2rem);
  --text-2xl: clamp(2rem, 4vw, 3.25rem);
  --text-hero: clamp(2.75rem, 7.5vw, 6rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 12px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: inherit;
}
p {
  margin: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* =====================
   HEADER
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover {
  color: var(--ink);
  background: var(--paper-2);
}
.nav a.nav-cta {
  background: var(--ink);
  color: var(--white);
  margin-left: 0.5rem;
}
.nav a.nav-cta:hover {
  background: var(--accent);
}
.header-mobile-cta {
  display: none;
  margin-left: auto;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 700;
}

/* Mobile nav */
.mobile-menu[hidden] {
  display: none !important;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 0.5rem var(--gutter) 1rem;
  display: flex;
  flex-direction: column;
}
.mobile-menu a {
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  color: var(--charcoal);
}
.mobile-menu a:last-child {
  border-bottom: 0;
}
.mobile-menu a.mobile-menu-cta {
  margin-top: 0.65rem;
  padding: 0.9rem 1rem;
  border-bottom: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--white);
  text-align: center;
  font-weight: 700;
}

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  filter: saturate(0.9) contrast(1.05) brightness(0.85);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.55) 0%, rgba(10, 10, 11, 0.65) 60%, rgba(10, 10, 11, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 10, 11, 0.5) 0%, rgba(10, 10, 11, 0) 60%);
}
.hero-content {
  position: relative;
  min-height: clamp(460px, 48vw, 560px);
  max-width: var(--container);
  padding-top: clamp(4rem, 9vw, 7rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: minmax(430px, 0.88fr) minmax(520px, 1.12fr);
  grid-template-rows: auto auto auto;
  align-content: center;
  align-items: center;
  column-gap: clamp(1rem, 2vw, 2.5rem);
}
.hero-content > :not(.hero-mockup) {
  grid-column: 1;
}
.hero-mockup {
  grid-column: 2;
  grid-row: 1 / span 3;
  position: static;
  width: min(100%, 780px);
  margin: 0;
  justify-self: end;
  pointer-events: none;
}
.hero-mockup img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 32px 40px rgba(0, 0, 0, 0.5));
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--light {
  color: rgba(255, 255, 255, 0.7);
}
.hero-title {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}
.accent-text {
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 56ch;
  margin-bottom: 2.25rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: transform 0.15s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-block {
  width: 100%;
}

/* Hero strip */
.hero-strip {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.3);
}
.strip-grid {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.strip-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.strip-num {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.strip-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.78);
}
.strip-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.14);
}

/* =====================
   SECTIONS (shared)
   ===================== */
.section {
  padding-top: clamp(3.5rem, 7vw, 5.75rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.75rem);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-title {
  font-size: var(--text-2xl);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--ink);
}
.section-lede {
  font-size: var(--text-lg);
  color: var(--slate);
  max-width: 60ch;
  line-height: 1.55;
}

/* =====================
   SERVICES
   ===================== */
.services {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.service-card {
  padding: clamp(1.5rem, 2.35vw, 2.15rem);
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.25s var(--ease);
}
.service-card:last-child {
  border-right: 0;
}
.service-card:hover {
  background: var(--paper);
}
.service-card--featured {
  background: var(--ink);
  color: var(--white);
}
.service-card.service-card--featured h3 {
  color: var(--white);
}
.service-card--featured .service-num {
  color: var(--accent);
}
.service-card--featured:hover {
  background: var(--ink-2);
}
.service-num {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-size: var(--text-xl);
  margin-bottom: 0.85rem;
  color: var(--ink);
}
.service-card p {
  color: var(--slate);
  margin-bottom: 1.25rem;
  font-size: var(--text-base);
  line-height: 1.6;
}
.service-card--featured p {
  color: rgba(255, 255, 255, 0.78);
}
.service-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.service-bullets li {
  position: relative;
  padding-left: 1.4rem;
  font-size: var(--text-sm);
  color: var(--charcoal);
  line-height: 1.5;
}
.service-card--featured .service-bullets li {
  color: rgba(255, 255, 255, 0.78);
}
.service-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 2px;
  background: var(--accent);
}

/* =====================
   WHY
   ===================== */
.why {
  background: var(--paper-2);
  padding-bottom: 0;
}
.why-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.why-intro {
  max-width: 68ch;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.why-pull {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
}
.why-intro p:not(.why-pull) {
  font-size: var(--text-lg);
  line-height: 1.65;
  color: var(--charcoal);
  max-width: 65ch;
}
.why-friction {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 2rem;
  max-width: 900px;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: 1.75rem 0;
  margin: 0 0 clamp(2.25rem, 4vw, 3.5rem);
}
.why-friction li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--text-base);
  color: var(--charcoal);
  line-height: 1.5;
}
.why-friction li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 12px;
  height: 2px;
  background: var(--accent);
}
.why-image-bleed {
  margin: 0 0 clamp(2.25rem, 4vw, 3.5rem);
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}
.why-image-bleed img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.why-image-bleed figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}
.why-body {
  max-width: 68ch;
  padding-bottom: clamp(3.25rem, 6vw, 5rem);
}
.why-body p {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}
.why-subhead {
  font-size: var(--text-xl);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2.25rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-2);
}
.why-focus {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 2rem;
  margin: 0 0 1.5rem;
}
.why-focus li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--text-base);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
}
.why-focus li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.why-closer {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem) !important;
  line-height: 1.5 !important;
  color: var(--ink) !important;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-top: 2rem !important;
}

/* =====================
   WARNING SIGNS
   ===================== */
.warning-section {
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.warning-section .section-title {
  color: var(--white);
}
.warning-section .section-lede {
  color: rgba(255, 255, 255, 0.72);
}
.warning-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
}
.warning-card {
  min-height: 150px;
  padding: 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}
.warning-card:nth-child(4n) {
  border-right: 0;
}
.warning-card:nth-last-child(-n + 4) {
  border-bottom: 0;
}
.warning-card span {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.warning-card p {
  font-size: var(--text-base);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

/* =====================
   PROCESS
   ===================== */
.process {
  background: var(--white);
  border-top: 1px solid var(--line);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  counter-reset: step;
}
.process-step {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.process-step:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.process-num {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.process-step h3 {
  font-size: var(--text-xl);
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.process-step p {
  color: var(--slate);
  font-size: var(--text-base);
  line-height: 1.6;
}

/* =====================
   ABOUT
   ===================== */
.about {
  background: var(--ink);
  color: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}
.about .eyebrow {
  grid-column: 1 / -1;
}
.about-title.section-title,
.about-title {
  color: var(--white);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}
.about-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--text-lg);
  line-height: 1.6;
  max-width: 56ch;
}

/* =====================
   CONTACT
   ===================== */
.contact {
  background: var(--ink-2);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-title.section-title,
.contact-title {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.contact-lede {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-lg);
  line-height: 1.55;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
  max-width: 50ch;
}
.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}
.contact-direct li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  align-items: baseline;
  color: var(--white);
  font-size: var(--text-base);
}
.contact-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-direct a {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: border-color 0.2s, color 0.2s;
}
.contact-direct a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Form */
.contact-form {
  background: var(--white);
  color: var(--ink);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.5);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.field .optional {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.25rem;
}
.field input,
.field textarea {
  font: inherit;
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.form-note {
  font-size: var(--text-sm);
  color: var(--slate);
  min-height: 1.2em;
}
.form-note.is-success {
  color: #1f7a3a;
}
.form-note.is-error {
  color: #b00020;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand p {
  margin-top: 1rem;
  max-width: 36ch;
  font-size: var(--text-sm);
  line-height: 1.55;
}
.footer-logo {
  height: 40px;
  width: auto;
  display: block;
  margin-bottom: 0.5rem;
  image-rendering: -webkit-optimize-contrast;
}
.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-grid {
  color: rgba(255, 255, 255, 0.7);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: var(--text-sm);
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-tag {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* =====================
   REVEAL ANIM
   ===================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .why-copy,
  .why-image,
  .why-head,
  .why-intro,
  .why-friction,
  .why-image-bleed,
  .why-body {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 960px) {
  .hero-content {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 4rem;
  }
  .hero-sub {
    max-width: 56ch;
  }
  .hero-mockup {
    position: static;
    width: 100%;
    max-width: 760px;
    margin-top: clamp(1.5rem, 5vw, 2.5rem);
    align-self: center;
  }
  .nav {
    display: none;
  }
  .header-mobile-cta {
    display: inline-flex;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .service-card:last-child {
    border-bottom: 0;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .why-friction,
  .why-focus {
    grid-template-columns: 1fr;
  }
  .warning-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .warning-card:nth-child(4n) {
    border-right: 1px solid rgba(255, 255, 255, 0.09);
  }
  .warning-card:nth-child(2n) {
    border-right: 0;
  }
  .warning-card:nth-last-child(-n + 4) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
  .warning-card:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .m365-grid,
  .trust-comparison {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .strip-grid {
    flex-wrap: wrap;
  }
  .strip-divider {
    display: none;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1.03rem;
  }
  .hero-content {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .hero-ctas {
    width: 100%;
  }
  .hero-ctas .btn {
    width: 100%;
  }
  .warning-grid {
    grid-template-columns: 1fr;
  }
  .warning-card,
  .warning-card:nth-child(2n),
  .warning-card:nth-child(4n) {
    border-right: 0;
  }
  .warning-card:nth-last-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }
  .warning-card:last-child {
    border-bottom: 0;
  }
  .demo-frame-shell iframe {
    height: 980px;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    justify-content: flex-start;
  }
  .contact-direct li {
    grid-template-columns: 70px 1fr;
  }
}

/* =====================
   DEMO SECTION
   ===================== */
.demo-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.demo-frame-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.18);
}
.demo-frame-shell iframe {
  border: none;
  display: block;
}
.demo-caption {
  margin-top: 1rem;
  font-size: var(--text-sm);
  color: var(--muted);
  text-align: center;
}
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

/* Panel headers */
.demo-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.demo-panel-head {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.demo-panel-head h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.demo-panel-head p {
  font-size: var(--text-sm);
  color: var(--slate);
  line-height: 1.5;
}
.demo-panel-body { padding: 1.5rem 1.75rem; }

/* Service toggle */
.demo-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--paper);
}
.demo-toggle-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--slate);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.01em;
}
.demo-toggle-btn.active {
  background: var(--ink);
  color: var(--white);
}
.demo-toggle-btn:not(.active):hover {
  background: var(--paper-2);
  color: var(--ink);
}

/* Demo form fields */
.demo-field-group {
  margin-bottom: 1rem;
}
.demo-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.demo-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}
.demo-label .req { color: var(--accent); margin-left: 2px; }
.demo-input, .demo-select {
  width: 100%;
  font: inherit;
  font-size: var(--text-sm);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.demo-input:focus, .demo-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--white);
}
.demo-input::placeholder { color: var(--muted); }
.demo-select { cursor: pointer; }

/* Dynamic field groups */
.demo-fields-wireline { }
.demo-fields-fishing  { display: none; }

/* Email routing field */
.demo-email-row {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.demo-email-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

/* Submit button */
.demo-submit {
  width: 100%;
  margin-top: 1.25rem;
  padding: 0.95rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: background 0.2s, transform 0.15s var(--ease);
}
.demo-submit:hover:not(:disabled) {
  background: var(--accent);
  transform: translateY(-1px);
}
.demo-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.demo-submit .demo-spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: demoSpin 0.7s linear infinite;
  display: none;
  flex-shrink: 0;
}
.demo-submit.loading .demo-spinner { display: block; }
.demo-submit.loading .demo-btn-text { display: none; }
@keyframes demoSpin { to { transform: rotate(360deg); } }

/* Monitor panel */
.demo-tab-row {
  display: flex;
  border-bottom: 1px solid var(--line);
}
.demo-tab {
  padding: 0.9rem 1.25rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  letter-spacing: 0.01em;
}
.demo-tab.active { color: var(--ink); border-bottom-color: var(--accent); }
.demo-tab:not(.active):hover { color: var(--ink); }

.demo-table-wrap {
  overflow-x: auto;
  min-height: 240px;
}
.demo-tab-panel { display: none; }
.demo-tab-panel.active { display: block; }

.demo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  min-width: 460px;
}
.demo-table th {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: var(--paper-2);
}
.demo-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--charcoal);
  white-space: nowrap;
}
.demo-table td:first-child { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.demo-table tr:last-child td { border-bottom: 0; }
.demo-table tr:hover td { background: var(--paper); }
.demo-row-new { animation: demoSlideIn 0.4s var(--ease) forwards; }
@keyframes demoSlideIn {
  from { opacity: 0; background: var(--accent-soft); transform: translateX(-6px); }
  to   { opacity: 1; background: transparent; transform: translateX(0); }
}

.demo-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}
.demo-sync-badge.injected {
  background: #dcfce7;
  color: #15803d;
}
.demo-sync-badge.processed {
  background: #dbeafe;
  color: #1d4ed8;
}
.demo-sync-badge.pending {
  background: #fef9c3;
  color: #854d0e;
}

.demo-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: var(--text-sm);
  font-style: italic;
}

.demo-live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.6rem 1.75rem;
  border-top: 1px solid var(--line);
}
.demo-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
  transition: background 0.3s;
}
.demo-live-dot.live { background: #16a34a; animation: demoBlink 1.5s ease-in-out infinite; }
@keyframes demoBlink { 0%,100%{opacity:1} 50%{opacity:0.35} }

/* Demo toast */
.demo-toast {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--ink);
  color: var(--white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  max-width: 320px;
  z-index: 200;
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.35s var(--ease);
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.45);
  border-left: 3px solid var(--accent);
}
.demo-toast.show { transform: translateY(0); opacity: 1; }
.demo-toast-title { font-weight: 700; margin-bottom: 0.2rem; }
.demo-toast-msg { color: rgba(255,255,255,0.75); line-height: 1.4; }

/* EmailJS setup note */
.demo-setup-note {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}
.demo-setup-note a { color: var(--accent); text-decoration: underline; }

@media (max-width: 960px) {
  .demo-layout { grid-template-columns: 1fr; }
  .demo-field-row { grid-template-columns: 1fr; }
}

/* =====================
   PORTFOLIO / WORK SAMPLES
   ===================== */
.portfolio-section {
  background: var(--white);
  border-top: 1px solid var(--line);
}
.portfolio-intro {
  max-width: 640px;
  margin-bottom: 3rem;
}
.portfolio-intro p {
  font-size: var(--text-base);
  color: var(--slate);
  line-height: 1.75;
}

/* Featured piece */
.portfolio-featured {
  background: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}
.portfolio-featured-img {
  overflow: hidden;
  max-height: 420px;
}
.portfolio-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portfolio-featured-img--workflow {
  display: grid;
  place-items: center;
  background: #000;
  max-height: none;
  aspect-ratio: 16 / 9;
}
.portfolio-featured-img--workflow img {
  object-fit: contain;
}
.portfolio-featured-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.portfolio-featured-body .eyebrow { color: var(--accent); margin-bottom: 1rem; }
.portfolio-featured-body h3 {
  font-family: 'Newsreader', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.portfolio-featured-body p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.portfolio-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  color: rgba(255,255,255,0.6);
}

/* Grid of 3 */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.portfolio-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}
.portfolio-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px -10px rgba(0,0,0,0.12);
}
.portfolio-card-img {
  overflow: hidden;
  height: 220px;
  background: var(--paper);
}
.portfolio-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s var(--ease);
}
.portfolio-card:hover .portfolio-card-img img {
  transform: scale(1.03);
}
.portfolio-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.portfolio-card-body .eyebrow {
  font-size: 0.65rem;
  margin-bottom: 0.5rem;
}
.portfolio-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.portfolio-card-body p {
  font-size: var(--text-sm);
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.2s;
}
.portfolio-link:hover { gap: 0.65rem; }

/* =====================
   M365 ADVANTAGE
   ===================== */
.m365-section {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.m365-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.m365-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.4vw, 2rem);
}
.m365-card span {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.m365-card h3 {
  font-size: var(--text-xl);
  color: var(--ink);
  margin-bottom: 0.65rem;
}
.m365-card p {
  color: var(--slate);
  font-size: var(--text-base);
  line-height: 1.6;
}
.trust-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.comparison-panel {
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border: 1px solid var(--line);
}
.comparison-panel--muted {
  background: var(--white);
}
.comparison-panel--strong {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.comparison-panel .eyebrow {
  margin-bottom: 1rem;
}
.comparison-panel ul {
  display: grid;
  gap: 0.75rem;
}
.comparison-panel li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--charcoal);
  line-height: 1.5;
}
.comparison-panel--strong li {
  color: rgba(255, 255, 255, 0.78);
}
.comparison-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

/* Lightbox overlay */
.portfolio-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.portfolio-lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.portfolio-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8);
  object-fit: contain;
}
.portfolio-lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.portfolio-lightbox-close:hover { background: rgba(255,255,255,0.2); }

@media (max-width: 960px) {
  .portfolio-featured { grid-template-columns: 1fr; }
  .portfolio-featured-img { max-height: 260px; }
  .portfolio-featured-img--workflow { max-height: none; }
  .portfolio-grid { grid-template-columns: 1fr; }
}
