/* Oneflow LLC — "two paths, one flow".
   Navy ribbon = IT services (Path A), teal ribbon = fintech consulting (Path B); they merge into one flow. */

:root {
  /* Palette (wave identity v2) */
  --paper: #F8F7F3;
  --paper-2: #EFEDE6;
  --white: #FFFFFF;
  --ink: #08283D;
  --ink-2: #0F3550;
  --muted: #52636D;
  --flow: #00AEA7;
  --flow-hover: #39C8C1;
  --flow-ink: #007973;          /* teal for text/links on light backgrounds */
  --line: rgba(8, 40, 61, .14);
  --line-strong: rgba(8, 40, 61, .28);
  --on-dark: #F8F7F3;
  --on-dark-muted: #A9BAC3;
  --line-dark: rgba(248, 247, 243, .16);
  --danger: #A3271F;
  --scrim: 8, 40, 61;           /* --ink as an rgb triplet */

  /* Lanes */
  --lane-a: var(--ink);
  --lane-b: var(--flow);

  /* Type */
  --font: "Albert Sans", "Segoe UI", Arial, sans-serif;
  --t-hero: clamp(42px, 5.7vw, 86px);
  --t-h2: clamp(34px, 4.1vw, 58px);
  --t-h3: clamp(23px, 2.1vw, 30px);
  --t-h4: 19px;
  --t-slogan: clamp(19px, 1.6vw, 22px);
  --t-lead: clamp(18px, 1.45vw, 21px);
  --t-body: 17px;
  --t-small: 15px;
  --t-xs: 13.5px;
  --t-label: 12.5px;

  /* Layout */
  --pad-x: clamp(20px, 5.5vw, 80px);
  --section-py: clamp(72px, 9vw, 128px);
  --nav-h: 78px;
  --radius: 4px;
  --ribbon-radius: 3px 999px 999px 3px;  /* square start, rounded end — like the logo ribbons */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  max-width: 1440px;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html { background: var(--paper); }
img, svg { display: block; max-width: 100%; }
a { color: var(--flow-ink); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--flow-ink); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--on-dark); text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.wrap { padding-inline: var(--pad-x); }
.section { padding-block: var(--section-py); }

/* ---------- Labels & headings ---------- */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--t-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.label-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 22px; padding: 0 8px;
  border-radius: var(--ribbon-radius);
  background: var(--ink); color: var(--on-dark);
  font-size: 11px; letter-spacing: .08em;
}
.label-light { color: var(--on-dark-muted); }
.label-light .label-num { background: var(--flow); color: var(--ink); }

.section-head { max-width: 760px; margin-bottom: clamp(44px, 5vw, 72px); }
.section-head h2 { margin: 18px 0 20px; }
.section-head-split {
  max-width: none; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 96px); align-items: end;
}
.section-head-split h2 { margin-bottom: 0; }

h2 {
  font-size: var(--t-h2); font-weight: 500; line-height: 1.04; letter-spacing: -.03em;
}
h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
h4 { font-size: var(--t-h4); font-weight: 600; line-height: 1.3; }
.section-intro { font-size: var(--t-lead); line-height: 1.6; color: var(--muted); max-width: 620px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 50px; padding: 13px 26px 13px 22px;
  border: 1.5px solid transparent; border-radius: var(--ribbon-radius);
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--flow); color: var(--ink); }
.btn-primary:hover { background: var(--flow-hover); }
.btn-primary:focus-visible { outline-color: var(--ink); }
.btn-primary:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; min-height: 44px; padding: 9px 20px 9px 18px; font-size: 15px; }
.btn-outline:hover { background: var(--ink); color: var(--on-dark); }
.btn-arrow { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--ink); text-decoration: none;
  padding: 6px 0; border-bottom: 1.5px solid var(--flow);
  transition: color .2s, border-color .2s;
}
.text-link::after { content: "→"; transition: transform .25s var(--ease); }
.text-link:hover { color: var(--flow-ink); }
.text-link:hover::after { transform: translateX(4px); }
.text-link-light { color: var(--on-dark); }
.text-link-light:hover { color: var(--flow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 247, 243, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  height: var(--nav-h); padding-inline: var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: block; flex-shrink: 0; border-radius: 2px; }
.brand img { width: 210px; height: auto; }

.main-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.main-nav a:not(.btn) {
  position: relative; color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 500;
  padding: 6px 0;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--flow); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 8px; }
.nav-contacts { display: none; }

.menu-toggle {
  display: none; width: 46px; height: 46px; margin-right: -8px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; border-radius: var(--radius);
}
.menu-toggle-bars { display: grid; gap: 7px; width: 26px; margin: auto; }
.menu-toggle-bars i { display: block; height: 3px; border-radius: 1px 3px 3px 1px; transition: transform .3s var(--ease), width .3s var(--ease); }
.menu-toggle-bars i:first-child { background: var(--ink); width: 26px; }
.menu-toggle-bars i:last-child { background: var(--flow); width: 18px; }
.menu-toggle[aria-expanded="true"] i:first-child { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:last-child { width: 26px; transform: translateY(-5px) rotate(-45deg); }

.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: var(--flow); transform: scaleX(0); transform-origin: left; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 5.5vw, 84px); }
.hero-top {
  padding-inline: var(--pad-x);
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 32px clamp(40px, 6vw, 96px); align-items: end;
  padding-bottom: clamp(40px, 4.6vw, 68px);
}
.hero-label { margin-bottom: 26px; color: var(--ink); }
.lane-key { display: inline-grid; gap: 4px; }
.lane-key i { display: block; height: 5px; border-radius: 1px 5px 5px 1px; }
.lane-key i:first-child { width: 26px; background: var(--lane-a); }
.lane-key i:last-child { width: 18px; background: var(--lane-b); }
.hero-title {
  font-size: var(--t-hero); font-weight: 500; line-height: 1.02; letter-spacing: -.035em;
  max-width: 13.5em;
}
.hero-side { padding-bottom: 6px; }
.lead { font-size: var(--t-lead); line-height: 1.6; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 30px; margin-top: 32px; }

.hero-media {
  position: relative; margin: 0 0 0 var(--pad-x);
  height: clamp(320px, 39vw, 560px);
  overflow: hidden; border-radius: var(--radius) 0 0 var(--radius);
  background: var(--paper-2);
}
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 66% 46%; }
.hero-tag {
  position: absolute; left: clamp(20px, 3.4vw, 48px); bottom: clamp(20px, 3.4vw, 48px);
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(18px, 2vw, 26px) clamp(20px, 2.4vw, 32px);
  background: var(--ink); color: var(--on-dark);
  border-radius: 3px 28px 28px 3px;
}
.hero-tag span { font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.hero-tag i { display: block; width: 56px; height: 3px; background: var(--flow); border-radius: 1px 3px 3px 1px; }

/* ---------- Paths (merge diagram) ---------- */
.merge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(90px, 13vw, 200px) minmax(0, 1.05fr);
  grid-template-rows: 1fr 1fr;
  row-gap: 18px;
}
.lane {
  position: relative; padding: clamp(26px, 2.6vw, 38px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.lane::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 5px;
  border-radius: var(--radius) 0 0 var(--radius);
}
.lane-a { grid-column: 1; grid-row: 1; }
.lane-b { grid-column: 1; grid-row: 2; }
.lane-a::before { background: var(--lane-a); }
.lane-b::before { background: var(--lane-b); }
.lane-tag { font-size: var(--t-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.lane h3 { margin-bottom: 12px; }
.lane > p:not(.lane-tag) { color: var(--muted); }
.lane-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.lane-list li {
  font-size: var(--t-xs); font-weight: 500; padding: 5px 13px 5px 11px;
  border: 1px solid var(--line); border-radius: var(--ribbon-radius); background: var(--paper);
}

.merge-art { grid-column: 2; grid-row: 1 / span 2; position: relative; }
.merge-svg-h { width: 100%; height: 100%; }
.merge-svg-v { display: none; }
.ribbon-a { fill: var(--lane-a); }
.ribbon-b { fill: var(--lane-b); }

.lane-one {
  grid-column: 3; grid-row: 1 / span 2; align-self: center;
  background: var(--ink); border-color: var(--ink); color: var(--on-dark);
  padding: clamp(30px, 3.4vw, 52px); border-radius: var(--radius) 40px 40px var(--radius);
}
.lane-one::before { display: none; }
.lane-one .lane-tag { color: var(--flow); }
.lane-one h3 { color: var(--on-dark); font-size: clamp(26px, 2.5vw, 36px); line-height: 1.12; }
.lane-one > p:not(.lane-tag) { color: var(--on-dark-muted); margin-bottom: 28px; }

/* ---------- Services (vertical tabs) ---------- */
.services { background: var(--paper-2); }
.svc { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 56px); align-items: start; }
.svc-tabs { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--nav-h) + 24px); }
.svc-group {
  display: flex; align-items: center; gap: 10px; margin: 0 0 8px;
  font-size: var(--t-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.svc-group::before { content: ""; width: 22px; height: 5px; border-radius: 1px 5px 5px 1px; }
.svc-group-a::before { background: var(--lane-a); }
.svc-group-b { margin-top: 26px; }
.svc-group-b::before { background: var(--lane-b); }
.svc-tab {
  position: relative; display: flex; align-items: baseline; gap: 14px; width: 100%;
  padding: 15px 18px; border: 1px solid transparent; border-radius: var(--radius);
  background: transparent; color: var(--ink); text-align: left; cursor: pointer;
  font: 500 16.5px/1.35 var(--font);
  transition: background-color .2s, border-color .2s;
}
.svc-tab::before {
  content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 4px;
  border-radius: 0 3px 3px 0; background: transparent; transition: background-color .2s;
}
.svc-tab:hover { background: rgba(255, 255, 255, .6); }
.svc-tab[aria-selected="true"] { background: var(--white); border-color: var(--line); font-weight: 600; }
.svc-tab[data-lane="a"][aria-selected="true"]::before { background: var(--lane-a); }
.svc-tab[data-lane="b"][aria-selected="true"]::before { background: var(--lane-b); }
.svc-tab-num { flex-shrink: 0; width: 24px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }

.svc-panels { display: grid; gap: 20px; }
.svc-panel {
  position: relative; padding: clamp(28px, 4vw, 56px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.svc-panel::before {
  content: ""; position: absolute; left: clamp(28px, 4vw, 56px); top: -1px; width: 72px; height: 5px;
  border-radius: 0 0 3px 3px;
}
.svc-panel[data-lane="a"]::before { background: var(--lane-a); }
.svc-panel[data-lane="b"]::before { background: var(--lane-b); }
.svc-panel:focus-visible { outline-offset: 4px; }
.svc-path { font-size: var(--t-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.svc-panel h3 { font-size: clamp(28px, 2.8vw, 40px); font-weight: 500; letter-spacing: -.025em; line-height: 1.08; }
.svc-slogan { font-size: var(--t-slogan); font-weight: 500; letter-spacing: -.01em; line-height: 1.3; color: var(--flow-ink); margin: 14px 0 22px; }
.svc-panel > p:not(.svc-path):not(.svc-slogan) { color: var(--muted); max-width: 680px; }
.svc-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px;
  margin: 30px 0 34px; border-top: 1px solid var(--line);
}
.svc-list li {
  position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line);
  font-size: var(--t-small); line-height: 1.5;
}
.svc-list li::before {
  content: ""; position: absolute; left: 0; top: 23px; width: 16px; height: 4px; border-radius: 1px 4px 4px 1px;
}
.svc-panel[data-lane="a"] .svc-list li::before { background: var(--lane-a); }
.svc-panel[data-lane="b"] .svc-list li::before { background: var(--lane-b); }

/* Tabs only when JS is running; otherwise every panel is visible */
html:not(.js) .svc { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .svc-tabs { display: none; }
.js .svc-panel:not(.is-active) { display: none; }
.js .svc-panel.is-active { animation: panel-in .45s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Process ---------- */
.flow { position: relative; }
.flow-line { position: absolute; left: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.flow-path { fill: none; stroke-width: 4; stroke-linecap: round; }
.flow-path-bg { stroke: var(--line); }
.flow-path-fg { stroke: url(#flow-grad); }
.flow-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: none; }
.flow-step { position: relative; padding: 150px clamp(14px, 1.8vw, 28px) 0; text-align: center; }
.flow-num {
  position: absolute; left: 50%; top: 18px; transform: translateX(-50%);
  display: grid; place-items: center; width: 44px; height: 44px;
  background: var(--ink); color: var(--on-dark); border: 4px solid var(--paper);
  border-radius: 50%; font-size: 13px; font-weight: 700; letter-spacing: .04em;
}
/* the path passes y=40 at steps 1 and 4, y=60 at steps 2 and 3 */
.flow-step:nth-child(2) .flow-num, .flow-step:nth-child(3) .flow-num { top: 38px; }
.flow-step:nth-child(4) .flow-num { background: var(--flow); color: var(--ink); }
.flow-step h3 { font-size: 21px; margin-bottom: 12px; }
.flow-step p { font-size: var(--t-small); color: var(--muted); max-width: 290px; margin-inline: auto; }

/* ---------- Fit (midnight band) ---------- */
.fit { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.fit h2, .fit h3, .fit h4 { color: var(--on-dark); }
.fit-ribbons {
  position: absolute; right: -10%; bottom: -26%; width: min(66vw, 920px); height: auto;
  opacity: .06; pointer-events: none;
}
.fit-ribbon-a { fill: var(--on-dark); }
.fit-ribbon-b { fill: var(--flow); }
.fit-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px clamp(48px, 7vw, 120px); }
.fit-intro h2 { margin: 18px 0 24px; }
.fit-intro > p:not(.label) { color: var(--on-dark-muted); font-size: var(--t-lead); max-width: 560px; }
.sectors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.sectors li {
  padding: 8px 18px 8px 15px; border: 1px solid var(--line-dark); border-radius: var(--ribbon-radius);
  font-size: var(--t-small); font-weight: 500; color: var(--on-dark);
}
.sectors li:nth-child(3n+2) { border-color: rgba(0, 174, 167, .55); }
.fit-commit-title { font-size: var(--t-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); margin: 8px 0 18px; }
.commit-list { counter-reset: commit; border-top: 1px solid var(--line-dark); }
.commit-list li {
  counter-increment: commit; display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 8px;
  padding: 24px 0; border-bottom: 1px solid var(--line-dark);
}
.commit-list li::before {
  content: counter(commit, decimal-leading-zero); grid-row: span 2;
  padding-top: 3px; font-size: 14px; font-weight: 700; letter-spacing: .08em; line-height: 1.3; color: var(--flow);
}
.commit-list h4 { margin-bottom: 6px; }
.commit-list p { color: var(--on-dark-muted); font-size: var(--t-small); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px clamp(40px, 6vw, 104px); align-items: start; }
.contact-intro h2 { margin: 18px 0 22px; }
.contact-intro > p:not(.label) { color: var(--muted); font-size: var(--t-lead); max-width: 480px; }
.contact-list { margin: 40px 0 0; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: var(--t-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact-list dd { margin: 0; font-size: var(--t-body); line-height: 1.55; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--flow); }
.contact-list a:hover { color: var(--flow-ink); }

.form-card {
  position: relative; padding: clamp(26px, 3.4vw, 48px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius) 40px var(--radius) var(--radius);
}
.form-card::before {
  content: ""; position: absolute; left: clamp(26px, 3.4vw, 48px); top: -1px; width: 72px; height: 5px;
  background: linear-gradient(90deg, var(--lane-a) 0 58%, var(--lane-b) 58% 100%); border-radius: 0 0 3px 3px;
}
.contact-form { display: grid; gap: 22px; }
.topic { margin: 0; padding: 0; border: 0; min-width: 0; }
.topic legend { padding: 0; margin-bottom: 12px; font-size: var(--t-small); font-weight: 600; }
.topic-options { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-options label { position: relative; cursor: pointer; }
.topic-options input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.topic-options span {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 17px 9px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--ribbon-radius);
  font-size: var(--t-small); font-weight: 500; transition: background-color .2s, border-color .2s, color .2s;
}
.topic-options label:hover span { border-color: var(--ink); }
.topic-options input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.topic-options input:focus-visible + span { outline: 3px solid var(--flow-ink); outline-offset: 3px; }
.dot { display: inline-block; width: 14px; height: 5px; border-radius: 1px 5px 5px 1px; }
.dot-a { background: var(--lane-a); }
.dot-b { background: var(--lane-b); }
.dot-ab { background: linear-gradient(90deg, var(--lane-a) 0 50%, var(--lane-b) 50% 100%); }
.topic-options input:checked + span .dot-a, .topic-options input:checked + span .dot-ab { background: var(--on-dark); }
.topic-options input:checked + span .dot-ab { background: linear-gradient(90deg, var(--on-dark) 0 50%, var(--lane-b) 50% 100%); }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--t-small); font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--font);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #5F6F78; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--flow-ink); background: var(--white); box-shadow: 0 0 0 3px rgba(0, 121, 115, .22); }
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(163, 39, 31, .14); }

.turnstile-wrap { display: grid; gap: 8px; }
.cf-turnstile:empty { display: none; }
.form-status { font-size: var(--t-xs); color: var(--muted); }
.form-status a { font-weight: 600; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-note { flex: 1 1 220px; font-size: var(--t-xs); color: var(--muted); }
.form-msg { padding: 16px 18px; border-radius: var(--radius); font-size: var(--t-small); }
.form-msg strong { display: block; margin-bottom: 2px; }
.form-msg-ok { background: rgba(0, 174, 167, .12); border-left: 4px solid var(--flow); }
.form-msg-err { background: rgba(163, 39, 31, .08); border-left: 4px solid var(--danger); color: var(--ink); }
.form-msg:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: clamp(56px, 6vw, 88px) 0 32px; font-size: var(--t-small); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--flow); text-decoration: underline; }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px clamp(28px, 4vw, 64px); padding-bottom: 48px; border-bottom: 1px solid var(--line-dark);
}
.footer-brand img { width: 220px; height: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 320px; }
.footer-title { font-size: var(--t-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--flow); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col address { font-style: normal; line-height: 1.7; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 26px; font-size: var(--t-xs); }
.footer-legal { display: flex; gap: 24px; }

/* ---------- Secondary pages ---------- */
.page-hero { padding: clamp(56px, 7vw, 104px) var(--pad-x) clamp(32px, 4vw, 56px); max-width: 980px; }
.page-hero h1 { font-size: var(--t-h2); font-weight: 500; line-height: 1.04; letter-spacing: -.03em; margin: 18px 0 20px; }
.page-hero > p:not(.label) { font-size: var(--t-lead); color: var(--muted); max-width: 680px; }
.legal { padding: 0 var(--pad-x) var(--section-py); }
.legal-body { max-width: 760px; padding-top: 40px; border-top: 1px solid var(--line); }
.legal-body h2 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin: 40px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--muted); margin-bottom: 14px; }
.legal-body a { font-weight: 600; }
.error-page { min-height: calc(100vh - var(--nav-h) - 86px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.error-page .btn { margin-top: 32px; }
.site-footer-compact { padding-top: 32px; }
.site-footer-compact .footer-bottom { padding-top: 0; }
.header-simple .btn { display: inline-flex; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(40px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.js .reveal-stagger.in > *:nth-child(2) { transition-delay: .1s; }
.js .reveal-stagger.in > *:nth-child(3) { transition-delay: .25s; }
.js .reveal-stagger.in > *:nth-child(4) { transition-delay: .4s; }

/* ribbons and the process line draw themselves left to right once revealed */
.js .merge .merge-svg-h, .js .flow .flow-path-fg { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s .25s var(--ease); }
.js .flow .flow-path-fg { transition-duration: 1.8s; }
.js .merge.in .merge-svg-h, .js .flow.in .flow-path-fg { clip-path: inset(0 0 0 0); }

/* Hero intro */
.motion .hero-copy, .motion .hero-side, .motion .hero-media { animation: rise .9s var(--ease) both; }
.motion .hero-side { animation-delay: .12s; }
.motion .hero-media { animation-delay: .22s; }
.motion .hero-tag { animation: rise .8s .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  :root { --nav-h: 70px; }
  .main-nav ul { gap: 20px; }
  .main-nav li:nth-child(4) { display: none; }
  .hero-top { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hero-title { max-width: 14em; }
  .hero-media { height: clamp(300px, 46vw, 460px); }
  .section-head-split { grid-template-columns: minmax(0, 1fr); }
  .merge { grid-template-columns: minmax(0, 1fr) clamp(70px, 10vw, 120px) minmax(0, 1fr); }
  .svc { grid-template-columns: minmax(230px, 280px) minmax(0, 1fr); }
  .svc-list { grid-template-columns: minmax(0, 1fr); }
  .flow-step { padding-inline: 10px; }
  .fit-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --nav-h: 64px; --t-body: 16px; }
  /* backdrop-filter would turn the header into the containing block of the fixed menu panel */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
  .brand img { width: 180px; }
  .menu-toggle { display: grid; place-items: center; }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0; z-index: 49;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 28px var(--pad-x) calc(28px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
    overflow-y: auto;
  }
  .main-nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li:nth-child(4) { display: block; }
  .main-nav a:not(.btn) { display: block; padding: 16px 0; font-size: 26px; font-weight: 500; letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin: 28px 0 0; }
  .nav-cta .btn { width: 100%; min-height: 52px; font-size: 16px; }
  .nav-contacts { display: grid; gap: 8px; padding-top: 28px; }
  .main-nav .nav-contacts a { padding: 2px 0; border: 0; font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--flow-ink); }
  .header-simple .btn { display: none; }

  .hero { padding-top: 32px; }
  .hero-label { margin-bottom: 20px; letter-spacing: .12em; }
  .hero-actions { margin-top: 26px; }
  .hero-actions .btn { width: 100%; }
  .hero-media { margin: 0; height: clamp(380px, 112vw, 520px); border-radius: 0; }
  .hero-media img { object-position: 50% 40%; }
  .hero-tag { left: 16px; bottom: 16px; padding: 16px 20px; gap: 12px; }
  .hero-tag span { font-size: 18px; }
  .hero-tag i { width: 40px; }

  .merge { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 14px; }
  .lane-a, .lane-b, .lane-one, .merge-art { grid-column: 1; grid-row: auto; }
  .merge-art { height: 64px; margin: -2px 0 -14px; }
  .merge-svg-h { display: none; }
  .merge-svg-v { display: block; width: 200px; height: 64px; margin: 0 auto; }
  .lane-one { border-radius: var(--radius) var(--radius) 32px 32px; }

  .svc { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .svc-tabs {
    position: static; flex-direction: row; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad-x);
    margin-inline: calc(-1 * var(--pad-x)); padding: 2px var(--pad-x) 10px; scrollbar-width: none;
  }
  .svc-tabs::-webkit-scrollbar { display: none; }
  .svc-group { display: none; }
  .svc-tab {
    flex: 0 0 auto; width: auto; scroll-snap-align: start; padding: 10px 16px 10px 14px;
    border: 1px solid var(--line-strong); border-radius: var(--ribbon-radius); font-size: 15px; white-space: nowrap;
  }
  .svc-tab::before { display: none; }
  .svc-tab-num { width: auto; }
  .svc-tab[aria-selected="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
  .svc-tab[aria-selected="true"] .svc-tab-num { color: var(--flow); }
  .svc-panel { padding: 30px 22px; }
  .svc-panel::before { left: 22px; }

  .flow-line { display: none; }
  .flow-steps { grid-template-columns: minmax(0, 1fr); position: relative; }
  .flow-steps::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 30px; width: 3px; background: linear-gradient(var(--ink), var(--flow)); border-radius: 2px; }
  .flow-step { padding: 0 0 36px 68px; text-align: left; }
  .flow-step:last-child { padding-bottom: 0; }
  .flow-num, .flow-step:nth-child(2) .flow-num, .flow-step:nth-child(3) .flow-num { left: 0; top: 0; transform: none; }
  .flow-step h3 { padding-top: 8px; }
  .flow-step p { margin: 0; max-width: none; }

  .fit-ribbons { width: 120vw; right: -30%; bottom: -6%; }
  .commit-list li { grid-template-columns: 44px minmax(0, 1fr); }

  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .form-card { border-radius: var(--radius) 28px var(--radius) var(--radius); }
  .form-foot .btn { width: 100%; }

  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer-top > .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal-stagger > *, .js .reveal, .js .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .merge-svg-h, .flow-path-fg { clip-path: none !important; }
  .btn:hover, .btn:active { transform: none; }
}
