/*
 * NTI Clarity — Illustrated Blocks V2.1
 * Visual hierarchy based on the approved reference:
 * large blocks = relevant background scenes
 * medium blocks = editorial image + explanation
 * small blocks = concise line icon + copy
 * The palette remains anchored to the NTI corporate identity.
 */

:root {
  --v2-canvas: #e9eef4;
  --v2-paper: #f7f5f1;
  --v2-panel: #ffffff;
  --v2-card: #eef3f7;
  --v2-card-strong: #dfe8ee;
  --v2-navy: #07192c;
  --v2-navy-2: #0a223b;
  --v2-blue: #1764d8;
  --v2-teal: #0c9fa6;
  --v2-teal-text: #08767d;
  --v2-gold: #c99543;
  --v2-gold-text: #8a6327;
  --v2-ink: #0d1b2b;
  --v2-muted: #536170;
  --v2-line: rgba(7, 25, 44, .16);
  --v2-radius-lg: 18px;
  --v2-radius-md: 12px;
  --v2-shadow: 0 16px 45px rgba(31, 62, 111, .10);
  --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  --icon-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-8 9-4.5-1.5-8-4-8-9V5l8-3 8 3z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  --icon-network: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='16' y='16' width='6' height='6' rx='1'/%3E%3Crect x='2' y='16' width='6' height='6' rx='1'/%3E%3Crect x='9' y='2' width='6' height='6' rx='1'/%3E%3Cpath d='M5 16v-3h14v3M12 8v5'/%3E%3C/svg%3E");
  --icon-bulb: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M8.5 14.5A7 7 0 1 1 15.5 14.5C14.5 15.3 14 16.2 14 18h-4c0-1.8-.5-2.7-1.5-3.5z'/%3E%3C/svg%3E");
  --icon-server: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='7' rx='2'/%3E%3Crect x='2' y='14' width='20' height='7' rx='2'/%3E%3Cpath d='M6 7h.01M6 18h.01'/%3E%3C/svg%3E");
  --icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E");
  --icon-briefcase: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 12h18M10 12v2h4v-2'/%3E%3C/svg%3E");
  --icon-route: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='19' r='3'/%3E%3Cpath d='M9 19h3.5a3.5 3.5 0 0 0 0-7h-1a3.5 3.5 0 0 1 0-7H18'/%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3C/svg%3E");
}

html,
body {
  background: var(--v2-canvas);
}

body {
  color: var(--v2-ink);
  background-image:
    linear-gradient(rgba(255,255,255,.20) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.20) 1px, transparent 1px);
  background-size: 40px 40px;
}

.site-header {
  border-radius: 12px;
  border: 1px solid rgba(16, 47, 120, .10);
  box-shadow: 0 9px 28px rgba(30, 60, 108, .08);
}

main > section,
body > .hero,
body > .section,
body > .content,
body > .policy,
footer {
  border-radius: var(--v2-radius-lg);
  border: 1px solid rgba(16, 47, 120, .12);
  box-shadow: var(--v2-shadow);
}

.section {
  padding: 100px 0;
}

.section-title {
  color: var(--v2-ink);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.15;
}

.section-lead {
  color: var(--v2-muted);
}

.eyebrow {
  border-radius: 4px;
  border-color: rgba(12, 159, 166, .66);
  color: var(--v2-teal-text);
  background: rgba(255, 255, 255, .86);
}

.btn,
.submit,
.header-cta,
.head-cta {
  border-radius: 6px;
}

/* LARGE BLOCKS — each key page receives a matching editorial background */
.hero {
  min-height: min(760px, calc(100svh - 130px));
  border-radius: var(--v2-radius-lg);
  background-color: #071a35;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(4, 18, 40, .94) 0%, rgba(4, 18, 40, .82) 44%, rgba(4, 18, 40, .24) 72%, rgba(4, 18, 40, .08) 100%);
  pointer-events: none;
}

.hero .hero-grid {
  position: relative;
  z-index: 2;
}

.hero .hero-grid > :first-child {
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(46px, 5vw, 64px);
  color: #fff;
}

.hero p {
  color: #d2dce7;
}

.hero .eyebrow {
  color: #79d7dc;
  border-color: rgba(121, 215, 220, .72);
  background: rgba(4, 18, 40, .52);
}

.page-home .hero {
  background-image: url("home-hero.webp");
}

.page-about .hero {
  background-image: url("about-hero.webp");
  background-position: center right;
}

.page-about .hero::before {
  background: linear-gradient(90deg, rgba(244, 249, 255, .98) 0%, rgba(235, 245, 255, .91) 43%, rgba(231, 242, 252, .28) 70%, rgba(231, 242, 252, .07) 100%);
}

.page-about .hero h1,
.page-about .hero p {
  color: #10233e;
}

.page-about .hero .eyebrow {
  color: var(--v2-teal);
  border-color: var(--v2-teal);
  background: rgba(255, 255, 255, .82);
}

.page-it-consulting .hero,
.page-contact .hero,
.page-partners .hero {
  background-image: url("home-hero.webp");
}

.page-mobile .hero {
  background-image: url("mobile-hero.webp");
}

.page-legacy .hero {
  background-image: url("legacy-hero.webp");
}

.page-imorker .hero {
  background-image: url("imorker-hero.webp");
}

.page-experience .hero {
  background-image: url("case-collaboration.webp");
}

.page-home .clarity,
.page-about .hero-visual,
.page-it-consulting .consult-visual,
.page-mobile .flow,
.page-legacy .legacy-visual {
  align-self: end;
  opacity: .72;
  mix-blend-mode: screen;
}

.page-about .hero-visual {
  mix-blend-mode: multiply;
  opacity: .38;
}

.page-home .trust {
  min-height: 420px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(234,244,254,.34), rgba(232,241,253,.93)),
    url("about-hero.webp") center 55% / cover no-repeat;
}

.page-home .trust-grid {
  width: min(1260px, calc(100% - 64px));
  padding: 48px 0;
}

.trust-item,
.band-item,
.strip-item {
  color: var(--v2-ink) !important;
  background: rgba(247, 245, 241, .94) !important;
  border-radius: 8px !important;
  border-color: rgba(16, 47, 120, .20) !important;
  backdrop-filter: blur(10px);
}

/* SMALL BLOCKS — line icons matched to each idea */
.service-visual,
.remain-no,
.fit-icon,
.bridge-icon,
.value-en,
.pain-no,
.method-tag,
.cap-tag,
.principle-no,
.route-no,
.why-no {
  position: relative;
}

.service-visual {
  width: 58px;
  height: 58px;
  margin: 14px 0 24px;
  border: 0;
  border-radius: 50% !important;
  background: var(--v2-navy) !important;
  overflow: visible;
}

.service-visual > * {
  display: none !important;
}

.service-visual::after,
.remain-card::before,
.value-card::before,
.pov-card::before,
.fit-item::before,
.promise::before,
.use::before,
.cap::before,
.method::before,
.scenario::before,
.risk::before {
  content: "";
  display: block;
  width: 29px;
  height: 29px;
  background: #fff;
  -webkit-mask: var(--icon-search) center / contain no-repeat;
  mask: var(--icon-search) center / contain no-repeat;
}

.service-visual::after {
  position: absolute;
  inset: 14px;
}

.service:nth-child(1) .service-visual::after { -webkit-mask-image: var(--icon-shield); mask-image: var(--icon-shield); }
.service:nth-child(2) .service-visual::after { -webkit-mask-image: var(--icon-server); mask-image: var(--icon-server); }
.service:nth-child(3) .service-visual::after { -webkit-mask-image: var(--icon-network); mask-image: var(--icon-network); }

.service,
.pain,
.promise,
.role,
.use,
.cap,
.method,
.exp,
.principle,
.step,
.route,
.why-item,
.value-card,
.remain-card,
.skill,
.scenario,
.fit-item,
.risk {
  border-radius: 8px !important;
  border: 1px solid var(--v2-line) !important;
  box-shadow: none;
}

.service {
  min-height: 390px;
}

.service::after,
.page-home .case::after {
  display: none;
}

.service-no,
.pain-no,
.page-home .case-no,
.n,
.no {
  color: var(--v2-navy) !important;
}

.remain-card::before,
.value-card::before,
.pov-card::before,
.fit-item::before,
.promise::before,
.use::before,
.cap::before,
.method::before,
.scenario::before,
.risk::before {
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  background: var(--v2-navy);
}

.remain-card:nth-child(2)::before,
.value-card:nth-child(2)::before,
.pov-card:nth-child(2)::before,
.fit-item:nth-child(2)::before,
.promise:nth-child(2)::before,
.use:nth-child(2)::before,
.cap:nth-child(2)::before,
.method:nth-child(2)::before,
.scenario:nth-child(2)::before,
.risk:nth-child(2)::before { -webkit-mask-image: var(--icon-network); mask-image: var(--icon-network); }

.remain-card:nth-child(3)::before,
.value-card:nth-child(3)::before,
.pov-card:nth-child(3)::before,
.fit-item:nth-child(3)::before,
.promise:nth-child(3)::before,
.use:nth-child(3)::before,
.cap:nth-child(3)::before,
.method:nth-child(3)::before,
.scenario:nth-child(3)::before,
.risk:nth-child(3)::before { -webkit-mask-image: var(--icon-bulb); mask-image: var(--icon-bulb); }

.remain-card:nth-child(4)::before,
.value-card:nth-child(4)::before,
.fit-item:nth-child(4)::before,
.promise:nth-child(4)::before,
.use:nth-child(4)::before,
.cap:nth-child(4)::before,
.method:nth-child(4)::before,
.scenario:nth-child(4)::before,
.risk:nth-child(4)::before { -webkit-mask-image: var(--icon-route); mask-image: var(--icon-route); }

.value-card::before { -webkit-mask-image: var(--icon-shield); mask-image: var(--icon-shield); }
.fit-item::before { -webkit-mask-image: var(--icon-briefcase); mask-image: var(--icon-briefcase); }
.promise::before { -webkit-mask-image: var(--icon-shield); mask-image: var(--icon-shield); }
.use::before { -webkit-mask-image: var(--icon-phone); mask-image: var(--icon-phone); }
.cap::before { -webkit-mask-image: var(--icon-server); mask-image: var(--icon-server); }
.method::before { -webkit-mask-image: var(--icon-route); mask-image: var(--icon-route); }
.scenario::before { -webkit-mask-image: var(--icon-shield); mask-image: var(--icon-shield); }

/* MEDIUM BLOCK — image and written explanation live together */
.pov {
  color: var(--v2-ink) !important;
  background: var(--v2-paper) !important;
}

.pov-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr);
  grid-template-areas:
    "copy image"
    "steps image";
  gap: 28px 52px;
  align-items: start;
}

.pov-copy { grid-area: copy; }
.pov-words { grid-area: steps; }
.pov-illustration { grid-area: image; }

.pov .section-lead {
  color: var(--v2-muted);
}

.pov-words {
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--v2-line);
  border: 1px solid var(--v2-line);
}

.pov-word {
  min-height: 0;
  padding: 22px 24px 22px 88px;
  color: var(--v2-ink);
  background: var(--v2-panel);
  position: relative;
}

.pov-word::before {
  content: counter(v2step);
  counter-increment: v2step;
  position: absolute;
  inset: 0 auto 0 0;
  width: 64px;
  display: grid;
  place-items: center;
  color: var(--v2-navy);
  background: var(--v2-card-strong);
  font-size: 22px;
  font-weight: 850;
}

.pov-words { counter-reset: v2step; }
.pov-word span { margin: 0 0 4px; color: var(--v2-navy); }
.pov-word p { color: var(--v2-muted); margin-top: 4px; }

.pov-illustration {
  margin: 0;
  min-height: 570px;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--v2-line);
  background: #d9e4f4;
}

.pov-illustration img {
  width: 100%;
  height: 100%;
  min-height: 570px;
  display: block;
  object-fit: cover;
}

.page-home .case-grid {
  align-items: stretch;
}

.page-home .case {
  min-height: 0;
  color: var(--v2-ink);
  background: var(--v2-panel) !important;
  border-radius: 8px !important;
  border: 1px solid var(--v2-line);
  display: grid;
  grid-template-rows: 205px 1fr;
}

.page-home .case-image {
  width: 100%;
  height: 205px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--v2-line);
}

.page-home .case-inner {
  height: auto;
  padding: 25px;
}

.page-home .case h3 { color: var(--v2-ink); }
.page-home .case p { color: var(--v2-muted); }
.page-home .case-tag { color: var(--v2-navy); }
.page-home .case a { color: var(--v2-blue); }

.heritage-proof {
  background:
    linear-gradient(90deg, rgba(6,20,39,.96), rgba(6,20,39,.82)),
    url("case-integration.webp") center / cover no-repeat !important;
}

/* Keep every dark brand block readable after the illustrated-card overrides. */
.heritage-proof,
.final,
.dark {
  color: #fff !important;
}

.heritage-proof .section-title,
.final .section-title,
.dark .section-title,
.heritage-proof h2,
.final h2,
.dark h2 {
  color: #fff !important;
}

.heritage-proof .section-lead,
.heritage-proof p,
.final p,
.dark p {
  color: #b8c5d4 !important;
}

.heritage-proof .eyebrow,
.final .eyebrow,
.dark .eyebrow {
  color: #79d7dc;
  border-color: rgba(121, 215, 220, .72);
  background: rgba(4, 18, 40, .52);
}

/* Original NTI dark sections retain their navy identity and light typography. */
.page-about .remain,
.page-contact .process,
.page-experience .principle,
.page-it-consulting .pov,
.page-it-consulting .scope,
.page-legacy .direction,
.page-legacy .experience,
.page-mobile .dark,
.page-mobile .integration,
.page-partners .principles,
.page-imorker .dark {
  color: #fff !important;
  background:
    radial-gradient(circle at 88% 14%, rgba(23,100,216,.18), transparent 27rem),
    linear-gradient(135deg, var(--v2-navy), var(--v2-navy-2)) !important;
}

.page-about .remain .section-title,
.page-contact .process .section-title,
.page-experience .principle .section-title,
.page-it-consulting .pov .section-title,
.page-it-consulting .scope .section-title,
.page-legacy .direction .section-title,
.page-legacy .experience .section-title,
.page-mobile .integration .section-title,
.page-partners .principles .section-title {
  color: #fff !important;
}

.page-about .remain .section-lead,
.page-contact .process .section-lead,
.page-experience .principle .section-lead,
.page-it-consulting .pov .section-lead,
.page-it-consulting .scope .section-lead,
.page-legacy .direction .section-lead,
.page-legacy .experience .section-lead,
.page-mobile .integration .section-lead,
.page-partners .principles .section-lead {
  color: #b8c5d4 !important;
}

.page-about .remain-card,
.page-contact .process .step,
.page-it-consulting .pov-card,
.page-mobile .dark .promise,
.page-partners .principle {
  color: #fff !important;
  background: var(--v2-navy-2) !important;
  border-color: rgba(121, 215, 220, .18) !important;
}

.page-about .remain-card h3,
.page-contact .process .step h3,
.page-it-consulting .pov-card h3,
.page-mobile .dark .promise h3,
.page-partners .principle h3 {
  color: #fff !important;
}

.page-about .remain-card p,
.page-contact .process .step p,
.page-it-consulting .pov-card p,
.page-mobile .dark .promise p,
.page-partners .principle p {
  color: #aebdcd !important;
}

.page-about .remain-card::before,
.page-it-consulting .pov-card::before,
.page-mobile .dark .promise::before {
  background: #79d7dc;
}

/* Contact and assessment areas remain light, as in the NTI master. */
.cta {
  color: var(--v2-ink) !important;
  background: var(--v2-paper) !important;
}

.cta .section-title,
.cta h2,
.cta h3,
.cta label {
  color: var(--v2-ink) !important;
}

.cta .section-lead,
.cta p {
  color: var(--v2-muted) !important;
}

.cta .eyebrow {
  color: var(--v2-teal-text);
  border-color: rgba(12, 159, 166, .66);
  background: rgba(255, 255, 255, .88);
}

/* Teal remains a brand accent; a darker text value preserves accessible contrast. */
.service:nth-child(2) .service-link,
.scenario small,
.use small,
.tag,
.route:nth-child(2) .route-tag {
  color: var(--v2-teal-text) !important;
}

.service:nth-child(3) .service-link {
  color: var(--v2-gold-text) !important;
}

.mobile-item small,
.mitem small {
  color: var(--v2-muted) !important;
  font-size: max(11px, .72em);
}

.page-it-consulting .exp p,
.page-imorker .process .step p,
.page-mobile .use p,
.page-partners .form-side p {
  color: var(--v2-muted) !important;
}

.form-card label,
.form label {
  color: var(--v2-ink) !important;
}

.form-card label a,
.form label a {
  color: var(--v2-blue) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-note {
  color: var(--v2-muted) !important;
}

.form-note a {
  color: var(--v2-blue) !important;
}

.award-card,
.archive-figure,
.award-figure,
.callout,
.form-card,
.side-card,
.form-side,
.partner-box,
.cta-box,
.result-box,
.not-fit,
.boundary-note,
.matrix-note,
.transition-quote,
.notice,
.toc,
.policy {
  border-radius: 8px !important;
}

.final,
.cta,
.dark {
  border-radius: var(--v2-radius-lg) !important;
}

@media (max-width: 980px) {
  .section { padding: 82px 0; }

  .hero {
    min-height: auto;
    background-position: 64% center;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(4,18,40,.96), rgba(4,18,40,.82));
  }

  .page-about .hero::before {
    background: rgba(239,247,255,.90);
  }

  .page-home .clarity,
  .page-about .hero-visual,
  .page-it-consulting .consult-visual,
  .page-mobile .flow,
  .page-legacy .legacy-visual {
    display: none;
  }

  .pov-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "copy" "image" "steps";
  }

  .pov-illustration,
  .pov-illustration img {
    min-height: 430px;
    max-height: 580px;
  }
}

@media (max-width: 620px) {
  .section { padding: 62px 0; }

  .hero h1 {
    font-size: clamp(40px, 12vw, 52px);
    line-height: 1.08;
  }

  .section-title {
    font-size: clamp(34px, 9vw, 46px);
    line-height: 1.12;
  }

  .hero {
    background-position: 72% center;
  }

  .hero::before {
    background: rgba(4, 18, 40, .86);
  }

  .page-about .hero::before {
    background: rgba(239,247,255,.88);
  }

  .page-home .trust-grid {
    width: min(100% - 32px, 1260px);
  }

  .pov-word {
    padding-left: 76px;
  }

  .pov-word::before {
    width: 56px;
  }

  .pov-illustration,
  .pov-illustration img {
    min-height: 340px;
  }

  .page-home .case {
    grid-template-rows: 180px 1fr;
  }

  .page-home .case-image {
    height: 180px;
  }
}
