/* INTERSAFE — corporate site in the Datum format: white pages, one blue, Manrope, dark-blue heroes. */
:root {
  --blue: #2a56d6;
  --blue-2: #3f7af0;
  --blue-deep: #1f44b8;
  --navy: #050d2b;
  --soft: #dbe7fa;
  --soft-2: #f3f6fc;
  --ink: #0b1220;
  --text: #2b3445;
  --muted: #5b6577;
  --line: #d7deea;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 6vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.7 var(--font); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 14px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background-color 300ms ease, color 300ms ease, box-shadow 300ms ease; }
.hdr__in { display: flex; align-items: center; justify-content: space-between; height: 76px; max-width: none; padding-left: clamp(20px, 3vw, 48px); padding-right: clamp(20px, 3vw, 48px); }
.hdr.is-solid, .hero-light .hdr { background: #fff; color: var(--ink); box-shadow: 0 1px 0 rgba(11, 18, 32, 0.06), 0 8px 24px rgba(11, 18, 32, 0.04); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.logo__mark { width: 40px; height: 28px; }
.hdr.is-solid .logo__mark, .logo--dark .logo__mark { color: var(--blue); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text b { font-weight: 800; font-size: 1.25rem; letter-spacing: 0.02em; }
.logo__text small { font-size: 0.625rem; font-weight: 600; letter-spacing: 0.08em; opacity: 0.75; margin-top: 3px; }
.hdr.is-solid .logo__text b { color: var(--blue); }
.menu { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.menu__item { position: relative; }
.menu__link { display: inline-block; padding: 26px 0; font-weight: 600; font-size: 0.9375rem; text-decoration: none; position: relative; }
.menu__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 20px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease); }
.menu__link.is-current::after { transform: scaleX(1); }
.has-sub > .menu__link { padding-right: 16px; }
.has-sub > .menu__link::before { content: ''; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); }
.sub { position: absolute; top: 100%; left: -18px; min-width: 220px; background: #fff; color: var(--ink); padding: 10px; border-radius: 10px; box-shadow: 0 18px 40px rgba(11, 18, 32, 0.14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 200ms ease, transform 200ms var(--ease), visibility 0s 200ms; }
.sub a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 0.9375rem; transition: background-color 150ms ease, color 150ms ease; }
.sub a:hover { background: var(--soft-2); color: var(--blue); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms ease, transform 200ms var(--ease), visibility 0s; }
@media (hover: hover) and (pointer: fine) { .menu__link:hover::after { transform: scaleX(1); } }
.hdr__toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__in { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; }
.hero--home { height: 100svh; min-height: 620px; }
.hero--home .hero__in { height: 100%; }
.hero--page { height: clamp(420px, 62svh, 600px); }
.hero--page .hero__in { height: 100%; padding-top: 76px; }
.hero--short { height: clamp(360px, 48svh, 460px); }
.hero__title { font-weight: 600; font-size: clamp(2.25rem, 1.2rem + 2.6vw, 3.75rem); line-height: 1.2; letter-spacing: -0.015em; }
.hero__title > span { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title > span > span { display: inline-block; }
.hero--home .hero__title { font-size: clamp(2.75rem, 1rem + 4.6vw, 5.25rem); line-height: 1.16; max-width: 12em; }
.hero__title--steps > span:nth-child(2) { padding-left: 1.4em; }
.hero__title--steps > span:nth-child(3) { padding-left: 0.5em; }
.hero__title--sm { font-size: clamp(2rem, 1.1rem + 2.2vw, 3.25rem); max-width: 16em; }
.crumb { display: flex; gap: 10px; font-size: 0.8125rem; font-weight: 600; margin-bottom: 16px; opacity: 0.9; }
.crumb a { text-decoration: none; }
.crumb span::before { content: '•'; margin-right: 10px; opacity: 0.7; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title > span > span { transform: translateY(110%); animation: rise 1100ms var(--ease) forwards; }
  .js .hero__title > span:nth-child(2) > span { animation-delay: 140ms; }
  .js .hero__title > span:nth-child(3) > span { animation-delay: 280ms; }
  .js .crumb { opacity: 0; animation: fade 800ms ease 300ms forwards; }
  .js .hero__fx { opacity: 0; animation: fade 1600ms ease 100ms forwards; }
}
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- shared ---------- */
.section { padding-top: clamp(80px, 9vw, 140px); padding-bottom: clamp(40px, 4vw, 60px); }
.h2 { font-weight: 700; font-size: clamp(1.75rem, 1.2rem + 1.3vw, 2.5rem); line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
.statement { font-weight: 500; font-size: clamp(1.375rem, 1rem + 1vw, 2rem); line-height: 1.55; color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border: 0; background: linear-gradient(90deg, var(--blue-2), var(--blue-deep)); color: #fff; font: 600 0.9375rem/1 var(--font); text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease), box-shadow 250ms ease, filter 250ms ease; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { box-shadow: 0 10px 24px rgba(42, 86, 214, 0.32); filter: brightness(1.06); } }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; text-decoration: none; }
.more::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform 250ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .more:hover::after, a:hover .more::after { transform: translateX(4px) rotate(45deg); } }
.contours { width: 100%; height: auto; color: var(--blue-2); }

/* intro: statement + line art */
.intro { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 96px); align-items: center; padding-top: clamp(80px, 9vw, 140px); }
.intro .btn { margin-top: 40px; }
.intro__art { max-width: 440px; justify-self: center; width: 100%; }
@media (prefers-reduced-motion: no-preference) { .intro__art .contours { animation: breathe 9s ease-in-out infinite; } }
@keyframes breathe { 50% { transform: scale(1.04); } }

/* product tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.tile { position: relative; display: block; min-height: 420px; overflow: hidden; background: var(--navy); color: #fff; text-decoration: none; }
.tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0.34; filter: grayscale(0.4) contrast(1.1); transition: transform 1200ms var(--ease), opacity 600ms ease; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, rgba(5, 13, 43, 0.55), rgba(31, 68, 184, 0.78)); }
.tile__body { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; min-height: 420px; padding: clamp(28px, 3vw, 44px); }
.tile__title { font-weight: 700; font-size: 1.625rem; line-height: 1.3; }
.tile__text { margin-top: auto; max-width: 34ch; color: rgba(255, 255, 255, 0.88); }
.tile .more { color: #fff; margin-top: 20px; }
@media (hover: hover) and (pointer: fine) { .tile:hover .tile__bg { transform: scale(1.05); opacity: 0.45; } }

/* why choose + facts panel */
.why { margin-top: clamp(80px, 9vw, 140px); }
.why__in { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 96px); align-items: center; }
.why__text .h2 { margin-bottom: 36px; }
.why__item + .why__item { margin-top: 28px; }
.why__item h3 { color: var(--blue); font-weight: 700; font-size: 1.1875rem; margin-bottom: 6px; }
.why__item p { max-width: 52ch; }
.facts { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--blue-2), var(--blue-deep)); color: #fff; padding: clamp(32px, 4vw, 56px); display: grid; gap: 36px; }
.facts::after { content: ''; position: absolute; right: -30%; top: -20%; width: 90%; aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 50%; box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.04), 0 0 0 80px rgba(255, 255, 255, 0.03); }
.fact { position: relative; z-index: 1; }
.fact b { display: block; font-weight: 700; font-size: clamp(2.5rem, 1.6rem + 2vw, 3.5rem); line-height: 1.1; }
.fact span { font-weight: 500; opacity: 0.9; }

/* photo + overlapping card */
.feature { position: relative; display: grid; grid-template-columns: 7fr 5fr; align-items: center; }
.feature__pic { grid-column: 1 / 2; grid-row: 1; overflow: hidden; }
.feature__pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.feature__card { grid-column: 1 / -1; grid-row: 1; justify-self: end; width: min(560px, 48%); background: #fff; padding: clamp(32px, 4vw, 60px); box-shadow: 0 24px 60px rgba(11, 18, 32, 0.1); }
.feature__card .h2 { margin-bottom: 20px; }
.feature__card p { margin-bottom: 24px; }

/* call to action */
.cta { position: relative; overflow: hidden; margin-top: clamp(80px, 9vw, 140px); padding: clamp(80px, 9vw, 140px) 0; text-align: center; }
.cta__art { position: absolute; top: 50%; width: 520px; opacity: 0.55; pointer-events: none; }
.cta__art--l { left: -300px; transform: translateY(-50%) rotate(90deg); }
.cta__art--r { right: -300px; transform: translateY(-50%) rotate(90deg); }
.cta__in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta__title { font-weight: 700; font-size: clamp(1.875rem, 1.2rem + 1.6vw, 2.75rem); color: var(--blue); }
.cta p { max-width: 46ch; color: var(--ink); font-weight: 500; }
.cta .btn { margin-top: 8px; }

/* text rows (title left, text right) */
.rows .h2 { margin-bottom: 24px; }
.row { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); padding: 36px 0; border-bottom: 1px solid var(--line); }
.row h3 { color: var(--blue); font-weight: 400; font-size: clamp(1.375rem, 1.1rem + 0.6vw, 1.75rem); line-height: 1.35; }
.row p { max-width: 58ch; }

.lead2 { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(32px, 5vw, 96px); }
.lead2__body p + p { margin-top: 16px; }

/* blue band (vision & mission) */
.band { position: relative; overflow: hidden; margin-top: clamp(80px, 9vw, 140px); background: linear-gradient(120deg, var(--blue-2), var(--blue-deep)); color: #fff; }
.band__art { position: absolute; right: -120px; top: 50%; width: 560px; transform: translateY(-50%) rotate(90deg); opacity: 0.4; }
.band__art .contours { color: #fff; }
.band__in { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 96px); padding-top: clamp(64px, 7vw, 110px); padding-bottom: clamp(64px, 7vw, 110px); }
.band h3 { font-weight: 700; font-size: 1.5rem; margin-bottom: 12px; }
.band p { font-size: 1.125rem; max-width: 40ch; color: rgba(255, 255, 255, 0.92); }

/* values: picture + accordion panel */
.values { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(80px, 9vw, 140px); }
.values__pic img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.values__panel { background: var(--soft); padding: clamp(36px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.values__panel .h2 { margin-bottom: 20px; }
.acc { border-bottom: 1px solid rgba(42, 86, 214, 0.22); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; color: var(--blue); font-weight: 600; font-size: 1.125rem; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: '+'; font-weight: 400; font-size: 1.5rem; line-height: 1; transition: transform 250ms var(--ease); }
.acc[open] summary::after { transform: rotate(45deg); }
.acc p { padding: 0 0 20px; color: var(--text); }
.acc--q summary { font-size: 1rem; }
.acc--q summary::after { content: '→'; font-size: 1.125rem; }
.acc--q[open] summary::after { transform: rotate(90deg); }
.faq .h2 { margin-bottom: 20px; }
.faq .acc { max-width: 860px; }

/* company info */
.info { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.info div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info dt { color: var(--muted); font-weight: 500; }
.info dd { color: var(--ink); font-weight: 600; }

/* product screenshot block */
.shot { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.shot__text .h2 { margin-bottom: 16px; }
.frame { background: var(--soft-2); padding: clamp(16px, 2.4vw, 32px); padding-bottom: 0; overflow: hidden; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; box-shadow: 0 -2px 30px rgba(11, 18, 32, 0.08); }

/* contact */
.contact { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
.contact .h2 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); margin-bottom: 32px; max-width: 24em; }
.contact__art { max-width: 420px; justify-self: center; width: 100%; padding-top: 40px; }
.form { display: grid; gap: 14px; }
.form__two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; font: 400 0.9375rem/1.5 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 13px 14px; border-radius: 0; transition: border-color 200ms ease, box-shadow 200ms ease; }
.form :is(input, select, textarea):focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42, 86, 214, 0.12); }
.form ::placeholder { color: #8a93a3; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--muted); }
.consent input { margin-top: 4px; accent-color: var(--blue); }
.consent a { color: var(--blue); }
.form .btn { justify-self: start; margin-top: 8px; }

/* policy */
.doc { max-width: 860px; }
.doc__part { margin-top: 72px; }
.doc__meta { color: var(--muted); margin-bottom: 32px; }
.doc h2 { font-weight: 700; font-size: 1.25rem; color: var(--ink); margin: 32px 0 8px; }
.doc a { color: var(--blue); }

/* footer */
.ftr { margin-top: clamp(80px, 9vw, 140px); padding: 72px 0 32px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.ftr__top { display: flex; align-items: center; gap: 48px; margin-bottom: 48px; }
.ftr__tag { font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.logo--dark .logo__text b { color: var(--blue); }
.logo--dark .logo__text small { color: var(--blue); }
.ftr__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 900px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.ftr__cols div { display: flex; flex-direction: column; gap: 10px; }
.ftr__cols a { text-decoration: none; font-weight: 600; color: var(--ink); }
.ftr__cols a:hover { color: var(--blue); }
.ftr__h { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ftr__office { padding: 32px 0; max-width: 900px; display: grid; gap: 4px; }
.ftr__office b { color: var(--ink); }
.ftr__office a { color: var(--blue); text-decoration: none; }
.ftr__place { color: var(--blue); font-weight: 600; margin: 8px 0 4px; }
.ftr__legal { margin-top: 12px; color: var(--muted); max-width: 70ch; }
.ftr__bottom { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 24px; color: var(--muted); }
.ftr__bottom a { color: var(--ink); text-decoration: none; font-weight: 600; }

.totop { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); text-decoration: none; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 300ms ease, transform 300ms var(--ease), visibility 0s 300ms; }
.totop svg { width: 34px; height: 34px; padding: 8px; color: #fff; background: var(--blue); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.totop.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 300ms ease, transform 300ms var(--ease), visibility 0s; }

/* reveal on scroll */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: var(--rd, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* photos wipe in from the left; the clip sits on the img so the observed figure keeps its full box */
  .js .feature__pic[data-reveal], .js .values__pic[data-reveal] { opacity: 1; transform: none; }
  .js .feature__pic[data-reveal] img, .js .values__pic[data-reveal] img { clip-path: inset(0 100% 0 0); transition: clip-path 1300ms cubic-bezier(0.77, 0, 0.175, 1); transition-delay: var(--rd, 0ms); }
  .js .feature__pic[data-reveal].is-in img, .js .values__pic[data-reveal].is-in img { clip-path: inset(0 0 0 0); }
}

/* ---------- tablet & phone ---------- */
@media (max-width: 960px) {
  .intro, .why__in, .shot, .contact, .lead2, .band__in { grid-template-columns: 1fr; }
  .intro__art { max-width: 300px; justify-self: start; }
  .contact__art { display: none; }
  .tiles { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature__card { grid-column: 1; grid-row: 2; width: auto; margin: -64px 20px 0; position: relative; }
  .values { grid-template-columns: 1fr; }
  .values__pic img { min-height: 260px; aspect-ratio: 16 / 9; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .info { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hdr__toggle { display: inline-flex; flex-direction: column; gap: 6px; background: none; border: 0; padding: 10px; color: inherit; cursor: pointer; }
  .hdr__toggle i { width: 22px; height: 2px; background: currentColor; transition: transform 250ms var(--ease); }
  .hdr.is-open .hdr__toggle i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .hdr.is-open .hdr__toggle i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .menu { position: fixed; inset: 76px 0 auto; background: #fff; color: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; box-shadow: 0 20px 40px rgba(11, 18, 32, 0.12); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 200ms ease, transform 200ms var(--ease), visibility 0s 200ms; }
  .hdr.is-open { background: #fff; color: var(--ink); }
  .hdr.is-open .menu { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms ease, transform 200ms var(--ease), visibility 0s; }
  .menu__link { padding: 14px 0; display: block; }
  .menu__link::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 8px 12px; min-width: 0; }
  .has-sub > .menu__link::before { display: none; }
  .hero__title--steps > span:nth-child(2), .hero__title--steps > span:nth-child(3) { padding-left: 0; }
  .hero--home .hero__title { font-size: clamp(1.75rem, 9vw, 2.75rem); }
  .hero--home .hero__title > span { white-space: nowrap; }
  .form__two { grid-template-columns: 1fr; }
  .info div { grid-template-columns: 1fr; gap: 2px; }
  .ftr__top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
  .totop span { display: none; }
  .cta__art { display: none; }
}
