/* Conectum website. One family (Manrope), cool neutrals, one accent (orange). */

@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* Colour. Neutrals lean cool. Orange is the only accent.
     --accent is the brand tone on light surfaces. --accent-tint is the word highlight.
     --accent-on-dark is the same accent on the ink band. --on-accent is the text colour on the accent. */
  --paper: oklch(0.988 0.002 260);
  --wash: oklch(0.962 0.004 260);
  --tile: oklch(0.925 0.005 260);
  --line: oklch(0.895 0.006 260);
  --mute: oklch(0.48 0.012 260);
  --ink: oklch(0.155 0.005 270);
  --accent: #F16A00;
  --accent-tint: rgb(241 106 0 / 0.22);
  --accent-on-dark: #F7A96B;
  --on-accent: var(--ink);
  --on-ink-dim: oklch(0.72 0.01 260);

  /* Type. Ratio 1.33 or more between steps. */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-lg: 1.375rem;
  --t-xl: clamp(1.75rem, 2.2vw + 1rem, 2.625rem);
  --t-2xl: clamp(2.125rem, 3.4vw + 1rem, 3.75rem);
  --t-hero: clamp(2.5rem, 4.6vw + 0.7rem, 4.875rem);

  /* Space. 4 pt base. */
  --gutter: clamp(20px, 4vw, 56px);
  --sec: clamp(96px, 13vw, 184px);
  --nav-h: 80px;

  /* Motion. */
  --out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--t-base);
  font-weight: 450;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol { margin: 0; padding: 0; }
ol { list-style: none; }
img, svg, canvas { display: block; }
a { color: inherit; }
em { font-style: normal; }
strong { font-weight: 650; color: var(--ink); }
::selection { background: var(--accent-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* The word highlight. The background grows from the left. */
.hl {
  background: linear-gradient(var(--accent-tint), var(--accent-tint)) no-repeat 0 62% / 0% 78%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding-inline: 0.08em; margin-inline: -0.08em;
  transition: background-size 900ms var(--out-expo);
}
.hl.on, html:not(.js) .hl { background-size: 100% 78%; }

/* Button */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 24px 0 26px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: var(--t-sm); font-weight: 650; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  transition: color 300ms var(--out-quart), transform 150ms var(--out-quart);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); transition: transform 450ms var(--out-expo);
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 450ms var(--out-expo); }
.btn:hover { color: var(--on-accent); }
.btn--mark:hover { color: var(--ink); }
.btn:hover::before { transform: none; }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn__short { display: none; }
@media (max-width: 1240px) { .nav .btn__long { display: none; } .nav .btn__short { display: inline; } }
.btn--sm { height: 46px; padding: 0 22px; font-size: var(--t-sm); }
.btn--mark { background: var(--accent-on-dark); color: var(--ink); }
.btn--mark::before { background: var(--paper); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; height: var(--nav-h); transition: background-color 300ms var(--out-quart), box-shadow 300ms var(--out-quart); }
.nav.stuck { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__logo { margin-right: auto; display: block; padding-block: 10px; }
.nav__logo svg { height: 32px; width: auto; display: block; }
.logo__dot { fill: var(--accent); }
.nav__links { display: flex; gap: 32px; font-size: var(--t-base); font-weight: 600; }
.nav__links a { text-decoration: none; padding-block: 12px; background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 8px) / 0% 1.5px; transition: background-size 400ms var(--out-expo); }
.nav__links a:hover { background-size: 100% 1.5px; }
.nav__lang { font-size: var(--t-base); font-weight: 650; text-decoration: none; padding: 12px 6px; margin-inline: -8px -12px; color: var(--mute); transition: color 200ms var(--out-quart); }
.nav__lang:hover { color: var(--ink); }
.nav__toggle { display: none; }
.nav__lang--menu { display: none; }

/* The header button shows after the hero button leaves the screen. */
.js .nav .btn { opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.94); transition: opacity 250ms var(--out-quart), transform 500ms var(--out-expo), color 300ms var(--out-quart), visibility 0s linear 250ms; }
.js .nav.docked .btn { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.js .nav.docked .btn:active { transform: scale(0.98); }

/* Phone: the section links move into a menu under the header. */
@media (max-width: 820px) {
  .nav__in { gap: 12px; }
  :root { --nav-h: 68px; }
  .nav__logo svg { height: 22px; }
  .nav.open { background: var(--paper); }
  .nav .btn--sm { height: 42px; padding: 0 13px; font-size: 0.875rem; }
  .nav__lang--bar { display: none; }
  .nav__toggle { order: 5; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .nav__toggle span { grid-area: 1 / 1; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 350ms var(--out-expo); }
  .nav__toggle span:first-child { transform: translateY(-4px); }
  .nav__toggle span:last-child { transform: translateY(4px); }
  .nav.open .nav__toggle span:first-child { transform: rotate(45deg); }
  .nav.open .nav__toggle span:last-child { transform: rotate(-45deg); }
  .nav__links {
    position: absolute; inset: var(--nav-h) 0 auto; display: grid; gap: 0; padding: 4px var(--gutter) 20px;
    background: var(--paper); box-shadow: 0 1px 0 var(--line); font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.02em;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 200ms var(--out-quart), transform 350ms var(--out-expo), visibility 0s linear 200ms;
  }
  .nav.open .nav__links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__links a { padding-block: 16px; background: none; border-top: 1px solid var(--line); }
  .nav__links a:first-child { border-top: 0; }
  .nav__links .nav__lang--menu { display: block; margin: 0; padding-inline: 0; font-size: var(--t-base); font-weight: 600; }
}

/* 1. Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__in { position: relative; padding-block: calc(var(--nav-h) + 24px) 48px; }
.hero__title { font-size: var(--t-hero); font-weight: 600; line-height: 1.03; letter-spacing: -0.04em; }
.hero__title .beat { display: block; text-wrap: balance; }
.hero__title .beat + .beat { margin-top: 0.14em; }
.hero__eyebrow { margin-bottom: clamp(16px, 2vw, 24px); }
.hero__sub { margin-top: clamp(24px, 3vw, 36px); font-size: var(--t-lg); line-height: 1.4; color: var(--mute); letter-spacing: -0.01em; max-width: 44ch; }
.hero__note { margin-top: 14px; font-weight: 550; max-width: 52ch; }
.hero__cta { margin-top: clamp(28px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero__more { font-size: var(--t-sm); font-weight: 650; text-decoration: none; padding-block: 12px; background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 8px) / 100% 1.5px; transition: background-size 400ms var(--out-expo); }
.hero__more:hover { background-size: 0% 1.5px; background-position: 100% calc(100% - 8px); }
@media (min-width: 821px) { .hero__in > * { max-width: 61%; } }
@media (max-width: 820px) {
  .hero { align-items: start; }
  .hero__in { padding-bottom: 40svh; }
  .hero__sub { font-size: 1.1875rem; }
}

/* Words that rise from a mask. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.wi { display: inline-block; }
.js .wi { transform: translateY(110%); transition: transform 1000ms var(--out-expo); transition-delay: calc(var(--i, 0) * 45ms); }
.js .in .wi, .js .in.wi { transform: none; }
.js [data-hero-late] { opacity: 0; transform: translateY(14px); transition: opacity 800ms var(--out-quart), transform 900ms var(--out-expo); }
.js [data-hero-late].in { opacity: 1; transform: none; }
.js .hero__note[data-hero-late] { transition-delay: 80ms; }
.js .hero__cta[data-hero-late] { transition-delay: 160ms; }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 900ms var(--out-quart), transform 1000ms var(--out-expo); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Section heads */
.eyebrow { font-size: var(--t-xs); font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; color: var(--mute); }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px); }
.title { font-size: var(--t-2xl); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.head__note { font-size: var(--t-lg); color: var(--mute); letter-spacing: -0.01em; }

/* 2. Problem */
.problem { padding-block: var(--sec) calc(var(--sec) * 0.9); }
.problem__list { list-style: none; margin: 0; padding: 0; max-width: 62rem; }
.problem__list li { display: grid; grid-template-columns: 0.42em minmax(0, 1fr); gap: 0.7em; align-items: baseline; padding-block: 0.55em; border-top: 1px solid var(--line); font-size: var(--t-xl); font-weight: 550; line-height: 1.2; letter-spacing: -0.028em; }
.problem__list li:first-child { border-top-color: var(--ink); }
.problem__list li::before { content: ""; width: 0.42em; height: 0.42em; border-radius: 0.09em; background: var(--accent); position: relative; top: -0.1em; }
.problem__close { margin-top: 1.4em; font-size: var(--t-lg); line-height: 1.45; letter-spacing: -0.01em; color: var(--mute); max-width: 38em; }

/* 3. How we work */
.how { padding-block: calc(var(--sec) * 0.6) var(--sec); }
/* The journey: the implementation steps on one path. The line fills as the visitor scrolls. */
.journey__label { margin-bottom: 28px; }
.path { --node: 44px; position: relative; }
.path ol { display: grid; gap: clamp(36px, 5vw, 60px); }
.path__rail { position: absolute; left: calc(var(--node) / 2 - 1px); top: calc(var(--node) / 2); bottom: calc(var(--node) / 2); width: 2px; background: var(--line); }
.path__fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
.stop { position: relative; display: grid; grid-template-columns: var(--node) minmax(0, 1fr); gap: 10px 24px; align-items: start; }
.stop__node {
  grid-row: 1 / span 2; position: relative; width: var(--node); height: var(--node); border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-size: var(--t-sm); font-weight: 650; font-variant-numeric: tabular-nums;
  transition: background-color 400ms var(--out-quart), color 400ms var(--out-quart);
}
.stop.on .stop__node { background: var(--accent); color: var(--on-accent); }
.stop__head { grid-column: 2; padding-top: 0.2em; }
.stop__phase { margin-bottom: 8px; }
.stop__t { font-size: var(--t-xl); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.stop__b { grid-column: 2; color: var(--mute); max-width: 52ch; }
/* The last stop hides the end of the line under it. */
.stop:last-child { background: var(--paper); }
@media (min-width: 980px) {
  .path { --node: 52px; }
  .stop { grid-template-columns: var(--node) minmax(0, 4fr) minmax(0, 6fr); gap: 10px 40px; }
  .stop__node { grid-row: auto; }
  .stop__b { grid-column: 3; padding-top: 0.55em; }
}

/* After implementation: a separate block, drawn as a cycle. */
.after { margin-top: clamp(56px, 8vw, 104px); background: var(--wash); border-radius: 24px; padding: clamp(24px, 4vw, 56px); }
.after__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.after .eyebrow { margin-bottom: 10px; }
.after__list { margin: 0; display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.after__list > div { padding-top: 18px; border-top: 1px solid var(--ink); }
.after__list dt { font-size: var(--t-lg); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.after__list dd { margin: 8px 0 0; color: var(--mute); }
.loop { flex: none; width: clamp(84px, 11vw, 132px); height: auto; }
.loop__spin { transform-origin: 60px 60px; animation: loop-turn 40s linear infinite; }
.loop__arc { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.loop__head { fill: var(--ink); }
.loop__dot { fill: var(--accent); }
@keyframes loop-turn { to { transform: rotate(360deg); } }

/* Facts: a ruled list of term and description. */
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); column-gap: 48px; }
.facts > div { padding-block: 22px 30px; border-top: 1px solid var(--ink); }
.facts dt { font-size: var(--t-lg); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.facts dd { margin: 8px 0 0; color: var(--mute); max-width: 38ch; }
.gains { padding-block: calc(var(--sec) * 0.2) calc(var(--sec) * 0.8); }


/* 5. Who we are */
.who { padding-block: calc(var(--sec) * 0.4) var(--sec); }
.who__intro { font-size: var(--t-lg); line-height: 1.45; letter-spacing: -0.01em; color: var(--mute); max-width: 38em; }
.people { display: grid; gap: clamp(32px, 4vw, 56px); margin-top: clamp(40px, 5vw, 72px); }
.person { display: grid; grid-template-columns: clamp(112px, 16vw, 200px) minmax(0, 1fr); gap: clamp(20px, 2.4vw, 36px); align-items: start; }
.person__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; background: var(--wash); display: grid; place-items: end start; padding: 0.3em 0.45em; font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
img.person__photo { padding: 0; display: block; }
.person__name { font-size: var(--t-xl); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.person__role { margin-top: 6px; font-size: var(--t-sm); font-weight: 650; color: var(--mute); }
.person__bio { margin-top: 14px; color: var(--mute); max-width: 40ch; }
.person__closing { margin-top: 14px; font-size: var(--t-sm); font-weight: 650; }
@media (min-width: 900px) { .people { grid-template-columns: 1fr 1fr; } .js .person + .person { transition-delay: 140ms; } }
.subtitle { font-size: var(--t-xl); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.why { margin-top: clamp(56px, 8vw, 112px); display: grid; gap: 24px; }
.why .eyebrow { margin-bottom: 12px; }
.why .subtitle { max-width: 12em; text-wrap: balance; }
.why__story p { font-size: var(--t-lg); line-height: 1.45; letter-spacing: -0.01em; max-width: 34em; color: var(--mute); }
.why__story p:first-child { color: var(--ink); }
.why__story p + p { margin-top: 1em; }
@media (min-width: 980px) { .why { grid-template-columns: 5fr 6fr; gap: 72px; } }

/* Closing action. One ink band: the inverse of the logo. */
.close { background: var(--ink); color: var(--paper); overflow: hidden; }
.close :focus-visible { outline-color: var(--accent-on-dark); }
.close__in { position: relative; padding-block: clamp(96px, 13vw, 184px) clamp(72px, 9vw, 128px); display: grid; gap: clamp(32px, 4vw, 56px); }
.close__t { font-size: var(--t-hero); font-weight: 600; line-height: 1.03; letter-spacing: -0.04em; max-width: 9.5em; position: relative; z-index: 1; }
.close__in > p { position: relative; z-index: 1; }
.close__p { font-size: var(--t-lg); line-height: 1.45; letter-spacing: -0.01em; color: var(--on-ink-dim); max-width: 30em; }
.close__mark { position: absolute; right: var(--gutter); top: 50%; width: clamp(220px, 27vw, 420px); height: auto; margin-top: calc(clamp(220px, 27vw, 420px) / -2); }
.close__mark path { fill: none; stroke: var(--paper); stroke-width: 12; stroke-dasharray: 1; }
.close__mark circle { fill: var(--accent); transform-box: fill-box; transform-origin: center; }
.js .close__mark[data-reveal] { opacity: 1; transform: none; }
.js .close__mark path { stroke-dashoffset: 1; transition: stroke-dashoffset 1800ms var(--out-expo) 200ms; }
.js .close__mark circle { transform: scale(0); transition: transform 900ms var(--out-expo) 1100ms; }
.js .close__mark.in path { stroke-dashoffset: 0; }
.js .close__mark.in circle { transform: none; }
@media (max-width: 820px) { .close__mark { position: static; margin: 16px 0 0; width: 180px; } }
/* Contact form: a paper panel on the ink band. */
.close__in:has(.contact) { align-items: start; }
@media (min-width: 980px) { .close__in:has(.contact) { grid-template-columns: 5fr 6fr; gap: 72px; } }
.close__copy { display: grid; gap: clamp(20px, 3vw, 32px); align-content: start; }
/* Next to the form, the large mark sits under the text. */
.close__copy .close__mark { position: static; margin: clamp(16px, 3vw, 48px) 0 0; width: clamp(128px, 19vw, 280px); }
.contact { position: relative; z-index: 1; background: var(--paper); color: var(--ink); border-radius: 20px; padding: clamp(20px, 3vw, 36px); }
.form { display: grid; gap: 16px 20px; }
@media (min-width: 620px) { .form { grid-template-columns: 1fr 1fr; } .field--wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 6px; font-size: var(--t-sm); font-weight: 650; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink);
  font: inherit; font-size: 1rem; font-weight: 450; transition: border-color 150ms var(--out-quart), box-shadow 150ms var(--out-quart);
}
.field textarea { resize: vertical; min-height: 112px; line-height: 1.45; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--mute); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-tint); }
.form.checked :invalid { border-color: oklch(0.55 0.19 27); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form__status { font-size: var(--t-sm); color: var(--mute); }
.form__status a { color: var(--ink); }
.form button[disabled] { opacity: 0.6; pointer-events: none; }
.form__done:focus { outline: 0; }
.form__done h3 { font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.03em; margin: 0 0 8px; }
.form__done p { color: var(--mute); }
.close .contact :focus-visible { outline-color: var(--ink); }
.close__foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; border-top: 1px solid oklch(1 0 0 / 0.14); font-size: var(--t-xs); color: var(--on-ink-dim); }
.close__foot svg { height: 20px; width: auto; color: var(--paper); }

/* Reduced motion: show the final state. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loop__spin { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; transition-delay: 0s !important; animation-duration: 0.01ms !important; }
}
