/* SoftSystems Labs: colour fields in navy, indigo and periwinkle. No orange anywhere in the UI.
   Theme tokens only change the page ground and ink; the brand fields stay the same in both themes. */
:root {
  --navy: #0b0739; --indigo: #4b4fd6; --sky: #a9c2ff; --sky2: #7f9cf5; --accent: #4b4fd6;
  --bg: #eef0f6; --ink: #0b0739; --muted: #4b4f73; --line: #0b073929; --ribbon-filter: none; --logo-filter: invert(1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0a0a12; --ink: #eef0f6; --muted: #a2a5c0; --line: #eef0f61f; --ribbon-filter: brightness(1.25); --logo-filter: none; --accent: #a9c2ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 "Figtree", system-ui, "Segoe UI", sans-serif; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.muted { color: var(--muted); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }

h1, h2, .row strong { font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; font-weight: 600; letter-spacing: -.035em; line-height: .98; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); max-width: 16ch; }

/* header */
.top { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1280px; margin: 0 auto; padding: 28px clamp(20px, 4vw, 48px); font-size: .95rem; font-weight: 500; }
.top nav a { text-decoration: none; margin: 0 14px; padding: 8px 0; border-bottom: 2px solid transparent; }
.top nav a:hover { border-color: var(--accent); }
.top [data-ctl] { justify-self: end; }
.logo { display: flex; align-items: center; gap: 10px; width: fit-content; text-decoration: none; font: 600 1.35rem/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.03em; }
.logo img { height: 26px; width: auto; filter: var(--logo-filter); }
.logo b { color: #e8701a; font-weight: 600; }

/* theme + language controls (injected by app.js) */
.ctl { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.ctl button { height: 36px; min-width: 44px; padding: 0 12px; display: grid; place-items: center; font: 600 .8rem/1 "Figtree", sans-serif; color: var(--ink); background: none; border: 0; border-radius: 999px; cursor: pointer; transition: background .15s; }
.ctl button:hover { background: var(--line); }
.ctl svg { width: 16px; height: 16px; }

/* hero: the ribbon is the page's one big gesture, cropped by the right edge */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.ribbon { position: absolute; z-index: 0; right: -3vw; top: 13%; height: min(96svh, 1100px); width: auto; filter: var(--ribbon-filter);
  animation: sweep 1.5s cubic-bezier(.2, .7, .1, 1) both; }
@keyframes sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero-body { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px) 9vh; }
h1 { font-size: clamp(3rem, 7.2vw, 8.5rem); max-width: 7.5em; }
.hero-body > p { margin: 32px 0 40px; max-width: 40ch; font-size: 1.2rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; background: var(--ink); color: var(--bg); text-decoration: none; font: 500 1rem/1 "Figtree", sans-serif; border: 2px solid var(--ink); border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.btn.ghost { background: none; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
button.btn:disabled { opacity: .5; cursor: default; }

/* products: two full-bleed colour fields, one per product */
.products { padding-top: clamp(72px, 12vh, 140px); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: clamp(40px, 7vh, 72px); }
.head p { max-width: 30ch; margin: 0 0 6px; color: var(--muted); }
.row { display: block; color: #fff; text-decoration: none; background: var(--navy); }
.row.konute { background: var(--indigo); }
.row .wrap { display: grid; grid-template-columns: 1fr minmax(0, 420px); grid-template-areas: "tile ." "name desc" "name foot"; align-items: end; gap: 12px 64px; min-height: clamp(380px, 56vh, 560px); padding-top: 48px; padding-bottom: 48px; }
.tile { grid-area: tile; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; }
.konute .tile { background: #fff2; }
.tile svg { width: 32px; height: 32px; }
.row strong { grid-area: name; align-self: end; font-size: clamp(3.6rem, 13vw, 11rem); line-height: .85; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.row:hover strong { transform: translateX(14px); }
.row p { grid-area: desc; align-self: end; margin: 0; font-size: 1.1rem; max-width: 36ch; color: #ffffffd9; }
.foot { grid-area: foot; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.chips { display: flex; gap: 8px; }
.chips span { border: 1px solid #ffffff59; border-radius: 999px; padding: 4px 14px; font-size: .9rem; }
.go { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.arrow { width: 48px; height: 48px; border: 1px solid #ffffff80; border-radius: 50%; display: grid; place-items: center; transition: transform .25s, background .25s, color .25s; }
.arrow svg { width: 18px; height: 18px; }
.row:hover .arrow { transform: rotate(45deg); background: #fff; color: var(--navy); }

/* services + contact share a 5/7 split */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.services { padding: clamp(80px, 14vh, 160px) 0; }
.side { position: sticky; top: 40px; }
.side p { margin: 24px 0 0; max-width: 34ch; }
.services ul { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.services li { padding: 32px 0; border-top: 1px solid var(--line); }
.services strong { display: block; font: 600 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 "Bricolage Grotesque", sans-serif; letter-spacing: -.03em; margin-bottom: 8px; }
.services li span { display: block; max-width: 48ch; color: var(--muted); }

/* contact + footer follow the page background (theme tokens) */
.contact { padding: clamp(80px, 14vh, 160px) 0; background: var(--bg); color: var(--ink); }
.contact h2 { max-width: 12ch; }
.contact .side p { font-size: 1.15rem; }
.form { display: grid; gap: 28px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.form input, .form textarea { font: inherit; font-size: 1.15rem; color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); border: 0; border-bottom: 2px solid var(--ink); border-radius: 8px 8px 0 0; padding: 12px 14px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid var(--accent); outline-offset: 2px; background: color-mix(in srgb, var(--ink) 11%, transparent); }
.form .trap { position: absolute; left: -9999px; }
#status { margin: 0; font-size: .95rem; font-weight: 500; }

footer { background: var(--bg); color: var(--ink); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: .9rem; }
footer .logo { font-size: .8rem; letter-spacing: .24em; }
footer .logo img { height: 22px; }

@media (max-width: 860px) {
  .top { grid-template-columns: 1fr auto; padding-top: 20px; }
  .top nav { display: flex; grid-column: 1 / -1; order: 3; gap: 22px; margin-top: 6px; font-size: .95rem; }
  .top nav a { margin: 0; padding: 12px 0; }
  .ctl button { height: 40px; }
  body { font-size: 1.125rem; }
  .hero-body { justify-content: center; padding-top: 2svh; padding-bottom: 18svh; }
  .hero-body > p { font-size: 1.3rem; margin: 28px 0 36px; max-width: none; }
  .hero .actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .hero .btn { min-height: 58px; font-size: 1.1rem; }
  .ribbon { right: -24vw; top: auto; bottom: -10svh; height: 58svh; opacity: .35; }
  h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .head { flex-direction: column; align-items: start; }
  .row .wrap { grid-template-columns: 1fr; grid-template-areas: "tile" "name" "desc" "foot"; min-height: 0; gap: 20px; }
  .split { grid-template-columns: 1fr; }
  .side { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ribbon { animation: none; }
  .row strong, .arrow { transition: none; }
}

/* ---- product pages (OneFact, Konute): one colour field per product ---- */
.phero { --accent: #a9c2ff; --field: var(--navy); --ink: #fff; --bg: var(--field); --line: #ffffff59; --muted: #ffffffd1; --logo-filter: none; background: var(--field); color: #fff; }
.konute-page .phero { --field: var(--indigo); }
.phero .logo { color: #fff; }
.phero .tile-sm { width: 30px; height: 30px; border-radius: 8px; background: #ffffff33; display: grid; place-items: center; }
.phero .tile-sm svg { width: 17px; height: 17px; }
.phero .logo > img.app { height: 30px; width: 30px; border-radius: 8px; filter: none; }
.top .tag { justify-self: center; font-weight: 500; }
.top .rt { display: flex; align-items: center; justify-self: end; gap: 20px; }
.top .back { text-decoration: none; border-bottom: 2px solid transparent; padding: 8px 0; white-space: nowrap; }
.top .back:hover { border-color: var(--accent); }
.phero h1 { font-size: clamp(2.6rem, 5.8vw, 6.4rem); max-width: 13ch; }
.phero .hero-body > p { color: var(--muted); }
.phero .btn:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.phero .btn.ghost { color: #fff; }
.phero .btn.ghost:hover { background: #fff; border-color: #fff; color: var(--field); }
.phero .btn svg { width: 20px; height: 20px; margin-right: 10px; }
.mark { position: absolute; z-index: 0; right: -4vw; top: 50%; translate: 0 -50%; width: min(44vw, 640px); aspect-ratio: 1; animation: sweep 1.3s cubic-bezier(.2, .7, .1, 1) both; }
.mark svg { width: 100%; height: 100%; fill: #fff; fill-opacity: .13; }
.mark img { width: 100%; height: 100%; border-radius: 22%; }
.dl { display: grid; gap: 14px; justify-items: start; }
.dl small { font-size: .85rem; color: var(--muted); max-width: 52ch; word-break: break-all; }
.dl small a { color: #fff; }
.hint { margin: 28px 0 0; max-width: 54ch; font-size: .95rem; color: var(--muted); }

.shot { padding: clamp(72px, 12vh, 140px) 0 0; }
.shot figure { margin: 40px auto 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.shot img { width: 100%; height: auto; }
.shot .head { padding-bottom: 0; }

.band { padding: clamp(72px, 12vh, 140px) 0; background: var(--navy); color: #fff; }
.band.blue { background: #2e58a8; }
.band .wrap { display: flex; align-items: end; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; }
.band .big { font: 700 clamp(6rem, 22vw, 18rem)/.8 "Bricolage Grotesque", sans-serif; letter-spacing: -.05em; }
.band .big + div { font: 600 clamp(1.4rem, 2.4vw, 2rem)/1.1 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; margin-top: 16px; }
.band p { max-width: 34ch; margin: 0; font-size: 1.15rem; color: #ffffffd9; }

.contact .panel { background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 16px; padding: 32px; }
.contact .panel h3 { margin: 0 0 16px; font: 600 1.4rem/1.1 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; }
.contact .panel ul { margin: 0 0 24px; padding-left: 20px; }
.contact .panel p { margin: 0; }
.contact .panel .q { font-weight: 500; }
.contact .side .btn { margin-top: 32px; }

@media (max-width: 860px) {
  .top .tag { display: none; }
  .mark { width: 72vw; right: -22vw; top: auto; bottom: -6svh; translate: none; opacity: .4; }
  .top .back { display: none; }
  .shot figure { overflow-x: auto; }
  .shot img { min-width: 760px; }
  .phero h1 { font-size: clamp(2.8rem, 13vw, 4.6rem); max-width: none; }
}

/* hero title typewriter (assets/app.js) */
.w { display: inline-block; white-space: nowrap; }
.c { opacity: 0; }
.c.on { opacity: 1; }
.caret { display: inline-block; position: relative; width: 0; height: 0; }
.caret::after { content: ""; position: absolute; left: .04em; bottom: -.12em; width: .07em; height: .95em; background: currentColor; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret::after { animation: none; } }

/* heading reveal masks (assets/scroll.js); padding keeps descenders from being clipped */
.rv { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.rv > span { display: inline-block; }

/* footer links between pages */
.foot-nav { display: flex; gap: 24px; }
.foot-nav a { text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.foot-nav a:hover, .foot-nav a[aria-current] { border-color: var(--accent); }
@media (max-width: 860px) { footer .wrap { flex-wrap: wrap; } }
