/* Ryplex Softwares site styles. The site itself stays plain (paper, ink, one blue)
   so that the colour on the page comes from the systems being shown. */

@font-face { font-family: Archivo; src: url(../assets/fonts/archivo-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(../assets/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(../assets/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(../assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f1f1ec;
  --paper-2: #e6e6df;
  --ink: #0d1217;
  --ink-2: #4a5259;
  --line: rgba(13, 18, 23, .16);
  --line-light: rgba(255, 255, 255, .18);
  --blue: #0d8be6;
  --blue-deep: #0862ad;
  --gutter: clamp(20px, 3.4vw, 56px);
  --edge: max(var(--gutter), calc((100vw - 1648px) / 2));
  --sec: clamp(72px, 10vw, 160px);
  --head: Archivo, "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h2, h3, h4 { font-family: var(--head); font-weight: 600; letter-spacing: -.022em; line-height: 1.04; }
h2 { font-size: clamp(2.3rem, 5.4vw, 5.2rem); letter-spacing: -.032em; line-height: 1; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.wrap { padding-inline: var(--edge); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: #fff; color: var(--ink); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* Word-split headings */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wi { display: inline-block; will-change: transform; }

/* Buttons */
.btn { display: inline-block; padding: 15px 24px; font: 600 16px/1 var(--head); text-decoration: none; border-radius: 3px; transition: background-color .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blue); color: #fff; }
.btn-blue { background: var(--blue-deep); color: #fff; }
.btn-blue:hover { background: var(--blue); }
.link-arrow { display: inline-block; padding-block: 10px; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; transition: text-underline-offset .2s; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-underline-offset: 8px; }
.link-arrow--light { color: #fff; }

/* -------------------------------- NAV -------------------------------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; padding-inline: var(--edge); color: #fff; transition: transform .35s ease, background-color .25s, color .25s, box-shadow .25s, height .25s; }
.nav-logo { display: block; width: 176px; position: relative; flex: none; }
.nav-logo img { width: 100%; transition: opacity .2s; }
.logo-light { position: absolute; inset: 0; opacity: 0; }
.nav-menu { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); font-size: 15px; font-weight: 500; }
.nav-menu a { text-decoration: none; position: relative; }
.nav-menu a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav-menu a:not(.nav-cta):hover::after, .nav-menu a.is-here::after { transform: scaleX(1); }
.nav-cta { background: #fff; color: var(--ink); padding: 9px 15px; border-radius: 3px; font-family: var(--head); font-weight: 600; }
.nav.is-solid { background: var(--paper); color: var(--ink); height: 64px; box-shadow: 0 1px 0 var(--line); }
.nav.is-solid .logo-dark { opacity: 0; }
.nav.is-solid .logo-light { opacity: 1; }
.nav.is-solid .nav-cta { background: var(--ink); color: #fff; }
.nav.is-away { transform: translateY(-100%); }
.nav-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 2; margin-right: -8px; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 26px; }

@media (min-width: 1101px) {
  .nav.on-bright:not(.is-solid) .nav-menu { color: var(--ink); }
  .nav.on-bright:not(.is-solid) .nav-cta { background: var(--ink); color: #fff; }
}

/* -------------------------------- HERO ------------------------------- */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); min-height: max(100svh, 700px); background: var(--ink); color: #fff; overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; padding: calc(var(--nav-h) + clamp(20px, 5vh, 56px)) clamp(24px, 3vw, 48px) 24px var(--edge); min-width: 0; }
.hero-head { font: 600 clamp(2.5rem, 4.3vw, 5rem)/1.01 var(--head); letter-spacing: -.034em; }
.hero-fixed { display: block; color: rgba(255, 255, 255, .55); }
.hero-lines, .hero-bodies { display: grid; }
.hero-line, .hero-body { grid-area: 1 / 1; visibility: hidden; }
.hero-line.is-on, .hero-body.is-on { visibility: visible; }
.hero-bodies { margin-top: clamp(16px, 3vh, 28px); max-width: 34em; color: rgba(255, 255, 255, .76); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: clamp(18px, 3.2vh, 32px); }
.hero-tabs { margin-top: auto; padding-top: 26px; }
.hero-tab { position: relative; display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0 10px; text-align: left; color: rgba(255, 255, 255, .55); transition: color .2s; }
.hero-tab span { font: 600 16px/1.2 var(--head); }
.hero-tab small { font-size: 13px; }
.hero-tab:hover, .hero-tab.is-on { color: #fff; }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-light); display: block; }
.bar i { position: absolute; inset: -1px 0 0; background: #fff; transform: scaleX(0); transform-origin: left; display: block; }
.hero-tab.is-on .bar i { transform: scaleX(1); }
html.js:not(.still) .hero-tab.is-on .bar i { transform: scaleX(0); }

.hero-visual { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 300px; padding: calc(var(--nav-h) + 8px) clamp(20px, 3.4vw, 60px) clamp(20px, 3.4vw, 50px); }
.hero-plate, .hero-wipe { position: absolute; inset: 0; background: #0d6fc4; }
.hero-wipe { clip-path: inset(0 0 0 100%); }
.hero-scenes { position: relative; width: 100%; max-width: 1020px; display: grid; }
.hero-scene { grid-area: 1 / 1; visibility: hidden; }
.hero-scene.is-on { visibility: visible; }
.hero-scene .screen { border-radius: 5px; box-shadow: 0 2px 0 rgba(0, 0, 0, .12), 0 28px 60px -12px rgba(0, 0, 0, .45); }

/* -------------------------------- ABOUT ------------------------------ */
.about { padding-block: var(--sec); }
.about-lead { font: 500 clamp(1.8rem, 4.1vw, 4rem)/1.1 var(--head); letter-spacing: -.028em; max-width: 21em; }
.about-lead .sw { transition: none; }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 110px); margin-top: clamp(48px, 7vw, 110px); align-items: start; }
.about-numbers > div { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.about-numbers > div:last-child { border-bottom: 1px solid var(--line); }
.about-numbers b { font: 600 clamp(2.4rem, 4.2vw, 4rem)/1 var(--head); letter-spacing: -.03em; min-width: 2.6em; }
.about-numbers span { color: var(--ink-2); }
.about-text { max-width: 40em; }
.about-text p + p { margin-top: 1em; }
.about-ind { padding-top: 1em; border-top: 1px solid var(--line); margin-top: 1.4em !important; color: var(--ink-2); }
.about-ind strong { color: var(--ink); font-weight: 600; }

/* ------------------------------ SERVICES ----------------------------- */
.services { background: #fff; padding-top: var(--sec); }
.sec-head { margin-bottom: clamp(36px, 5vw, 72px); }
.sec-head h2 { max-width: 13em; }
.svc { display: grid; grid-template-columns: 5fr 5fr 2fr; gap: clamp(20px, 3vw, 56px); padding: clamp(24px, 3vw, 42px) 0; border-top: 1px solid var(--line); align-items: start; transition: padding-left .3s ease; }
.svc h3, .cloud h3 { font-size: clamp(1.9rem, 3.4vw, 3.3rem); font-weight: 500; letter-spacing: -.028em; }
.svc h3 span, .cloud h3 span { font-weight: 700; }
.svc:hover { padding-left: 14px; }
.svc:hover h3 span { color: var(--blue-deep); }
.svc p { color: var(--ink-2); max-width: 36em; }
.svc-stack { font-size: 14px; color: var(--ink-2); font-family: "IBM Plex Mono", monospace; line-height: 1.7; }

.cloud { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 4vw, 72px); align-items: center; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(40px, 5.5vw, 88px) var(--edge); margin-block: clamp(8px, 2vw, 24px) 0; }
.cloud-sub { font: 500 18px/1.3 var(--head); color: #6bbcf7; margin-top: 8px; }
.cloud-copy > p:not(.cloud-sub) { margin-top: 18px; color: rgba(255, 255, 255, .78); max-width: 34em; }
.cloud-list { margin: 22px 0 28px; }
.cloud-list li { padding: 9px 0; border-top: 1px solid var(--line-light); font-size: 15.5px; }
.cloud-list li:last-child { border-bottom: 1px solid var(--line-light); }
.cloud-visual { min-width: 0; }
.cloud-visual .screen { border-radius: 5px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .13), 0 30px 70px -18px #000; }

.svc-extra { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 56px); padding-block: clamp(36px, 5vw, 64px) var(--sec); }
.svc-extra h3 { font-size: 21px; margin-bottom: 8px; }
.svc-extra p { color: var(--ink-2); font-size: 16px; }

/* -------------------------------- WORK ------------------------------- */
.work { padding-block: var(--sec); background: var(--paper); }
.work-head { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(20px, 3vw, 56px); align-items: end; }
.work-head p { color: var(--ink-2); max-width: 26em; }
.work-note { display: block; font-size: 14px; margin-top: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: clamp(28px, 4vw, 52px) 0 clamp(24px, 3vw, 40px); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.filter { font: 500 17px/1.3 var(--head); padding: 4px 0; min-width: 44px; text-align: left; color: var(--ink-2); position: relative; }
.filter::after { content: ""; position: absolute; left: 0; right: 0; bottom: -13px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.filter:hover { color: var(--ink); }
.filter.is-on { color: var(--ink); font-weight: 700; }
.filter.is-on::after { transform: scaleX(1); }

.cases { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(44px, 5.4vw, 90px) clamp(16px, 2vw, 32px); }
.case { grid-column: span 12; min-width: 0; }
.case--7 { grid-column: span 7; }
.case--5 { grid-column: span 5; }
.case[hidden] { display: none; }
.case--wide { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(20px, 2.6vw, 44px); align-items: end; }
.case--flip { grid-template-columns: 4fr 8fr; }
.case--flip .plate { order: 2; }
.cases.is-filtered .case { grid-column: span 6; display: block; }
.cases.is-filtered .case[hidden] { display: none; }
.plate { background: var(--plate); padding: clamp(14px, 3.2%, 44px); overflow: hidden; }
.plate .screen { border-radius: 4px; box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .5); }
.case-text { padding-top: 18px; }
.case--wide .case-text { padding-top: 0; }
.case h3 { font-size: clamp(1.5rem, 2.3vw, 2.3rem); }
.case-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; font-size: 14.5px; font-weight: 600; }
.case-brand img { height: 42px; width: auto; background: #fff; padding: 6px 9px; border-radius: 3px; box-shadow: 0 0 0 1px var(--line); }
.case-brand img.is-dark { background: #02050f; box-shadow: none; }
.case-brand img.is-square { padding: 0; background: none; box-shadow: none; border-radius: 0; }
.case-link { display: inline-block; margin-top: 4px; padding-block: 10px; min-height: 44px; font-weight: 500; font-size: 15.5px; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.case-link::after { content: " \2197"; }
.case-link:hover { color: var(--blue-deep); }
.case-text > p { margin-top: 9px; color: var(--ink-2); max-width: 36em; }
.case-tags { display: flex; flex-wrap: wrap; gap: 3px 16px; margin-top: 12px; font-size: 14px; font-family: "IBM Plex Mono", monospace; color: var(--ink-2); }

/* ------------------------------ PROCESS ------------------------------ */
.process { background: var(--blue-deep); color: #fff; overflow: hidden; }
.process-pin { padding-block: clamp(72px, 9vw, 120px); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 5vh, 60px); }
.process-head { padding-inline: var(--edge); display: grid; grid-template-columns: 7fr 5fr; column-gap: clamp(20px, 3vw, 56px); align-items: end; }
.process-head p { max-width: 24em; color: rgba(255, 255, 255, .85); font-size: 18px; }
.process-progress { grid-column: 1 / -1; height: 2px; margin-top: clamp(24px, 3vw, 40px); background: rgba(255, 255, 255, .25); position: relative; }
.process-progress i { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.process-track { display: flex; gap: 0; padding-inline: var(--edge); width: max-content; }
.process-track li { width: clamp(320px, 31vw, 500px); flex: none; padding-right: clamp(28px, 3.6vw, 64px); }
.process-track span { display: block; font: 700 clamp(4rem, 8vw, 8rem)/.95 var(--head); letter-spacing: -.05em; color: rgba(255, 255, 255, .64); margin-bottom: 18px; }
.process-track h3 { font-size: clamp(1.55rem, 2.4vw, 2.5rem); margin-bottom: 12px; }
.process-track p { color: rgba(255, 255, 255, .88); font-size: clamp(17px, 1.3vw, 20px); }
html.no-pin .process-track { width: auto; flex-direction: column; gap: 36px; }
html.no-pin .process-track li { width: auto; max-width: 36em; padding: 0; }
html.no-pin .process-track span { font-size: 3rem; margin-bottom: 8px; }
html.no-pin .process-progress { display: none; }

/* -------------------------------- WHY -------------------------------- */
.why { padding-block: var(--sec); }
.why-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 90px); align-items: start; }
.why h2 { font-size: clamp(2.2rem, 4.2vw, 4.2rem); position: sticky; top: 100px; }
.why-list > div { display: grid; grid-template-columns: 5fr 7fr; gap: 8px clamp(16px, 3vw, 48px); padding: 22px 0; border-top: 1px solid var(--line); }
.why-list > div:last-child { border-bottom: 1px solid var(--line); }
.why-list dt { font: 600 21px/1.2 var(--head); letter-spacing: -.012em; }
.why-list dd { color: var(--ink-2); }

/* ------------------------------- STACK ------------------------------- */
.stack { padding-block: 0 var(--sec); }
.stack-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 90px); align-items: start; }
.stack h2 { font-size: clamp(2.2rem, 4.2vw, 4.2rem); }
.stack-note { margin-top: 16px; color: var(--ink-2); max-width: 20em; }
.stack-table { width: 100%; border-collapse: collapse; }
.stack-table tr { border-top: 1px solid var(--line); }
.stack-table tr:last-child { border-bottom: 1px solid var(--line); }
.stack-table th { text-align: left; font: 600 16px/1.3 var(--head); padding: 15px 18px 15px 0; width: 30%; vertical-align: top; }
.stack-table td { padding: 15px 0; color: var(--ink-2); font-family: "IBM Plex Mono", monospace; font-size: 15px; line-height: 1.6; }

/* ----------------------------- TESTIMONIALS -------------------------- */
.clients { background: #0d6fc4; color: #fff; padding-block: clamp(64px, 8vw, 120px); }
.clients-title { font-size: clamp(1.2rem, 1.6vw, 1.5rem); font-weight: 500; letter-spacing: -.01em; margin-bottom: clamp(24px, 3.4vw, 48px); }
.clients-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 72px); align-items: center; }
.quotes { display: grid; }
.quote { grid-area: 1 / 1; visibility: hidden; align-self: start; }
.quote.is-on { visibility: visible; }
.quote blockquote { font: 500 clamp(1.4rem, 2.35vw, 2.45rem)/1.18 var(--head); letter-spacing: -.02em; }
.quote figcaption { display: flex; align-items: center; gap: 16px; margin-top: clamp(20px, 2.4vw, 32px); }
.quote-logo { flex: none; height: 56px; width: auto; max-width: 180px; object-fit: contain; background: #fff; padding: 7px 10px; border-radius: 3px; }
.quote-logo.is-dark { background: #02050f; }
.quote-logo.is-square { padding: 0; background: none; border-radius: 0; }
.quote figcaption b { display: block; font: 700 19px/1.25 var(--head); }
.quote figcaption span { color: rgba(255, 255, 255, .92); font-size: 15.5px; }
.quote-visual { display: grid; }
.quote-scene { grid-area: 1 / 1; visibility: hidden; }
.quote-scene.is-on { visibility: visible; }
.quote-scene .screen { border-radius: 4px; box-shadow: 0 24px 54px -16px rgba(0, 0, 0, .55); }
.quote-tabs { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: clamp(28px, 3.6vw, 52px); border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 14px; }
.quote-tab { font: 500 16px/1.4 var(--head); color: rgba(255, 255, 255, .92); padding: 4px 0; }
.quote-tab:hover { color: #fff; }
.quote-tab.is-on { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; }
.quote-tab:focus-visible, .filter:focus-visible { outline-color: currentColor; }

/* -------------------------------- FAQ -------------------------------- */
.faq { padding-block: var(--sec); }
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 5vw, 90px); align-items: start; }
.faq h2 { font-size: clamp(2.2rem, 4.2vw, 4.2rem); position: sticky; top: 100px; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; width: 100%; justify-content: space-between; gap: 18px; align-items: baseline; padding: 20px 0; text-align: left; font: 600 clamp(19px, 1.6vw, 23px)/1.22 var(--head); letter-spacing: -.012em; }
.faq-q { padding-right: 9px; }
.faq-q::after { content: "+"; width: 1em; text-align: center; font-weight: 400; font-size: 1.3em; line-height: 1; transition: transform .25s; flex: none; }
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-a > div { overflow: hidden; visibility: hidden; transition: visibility .3s; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a > div { visibility: visible; }
.faq-a p { padding-bottom: 22px; color: var(--ink-2); max-width: 44em; }

/* ------------------------------ CONTACT ------------------------------ */
.contact { background: var(--ink); color: #fff; padding-block: var(--sec); }
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(36px, 6vw, 110px); align-items: start; }
.contact h2 { font-size: clamp(2.5rem, 5.2vw, 5.2rem); }
.contact-intro > p { margin-top: 22px; color: rgba(255, 255, 255, .78); max-width: 30em; }
.contact-details { margin-top: clamp(28px, 4vw, 52px); }
.contact-details > div { display: grid; grid-template-columns: 96px 1fr; padding: 10px 0; border-top: 1px solid var(--line-light); font-size: 16px; }
.contact-details > div:last-child { border-bottom: 1px solid var(--line-light); }
.contact-details dt { color: rgba(255, 255, 255, .6); }
.contact-details a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
.contact-details a:hover { color: #6bbcf7; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; background: var(--paper); color: var(--ink); padding: clamp(22px, 3vw, 44px); border-radius: 3px; }
.field--full, .form-end { grid-column: 1 / -1; }
.field label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.field small { color: var(--ink-2); font-size: 13px; font-weight: 400; margin-left: 4px; }
.field input, .field select, .field textarea { width: 100%; font: 400 16.5px/1.4 var(--body); color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid rgba(13, 18, 23, .4); border-radius: 0; padding: 8px 0 9px; transition: border-color .2s; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, #0d1217 50%), linear-gradient(135deg, #0d1217 50%, transparent 50%); background-position: calc(100% - 13px) 55%, calc(100% - 8px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--blue-deep); box-shadow: 0 1.5px 0 var(--blue-deep); }
.field.has-err input, .field.has-err select, .field.has-err textarea { border-bottom-color: #b42318; }
.err { color: #b42318; font-size: 14px; margin-top: 5px; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-note { font-size: 14.5px; color: var(--ink-2); flex: 1 1 240px; }
.form-note a { color: inherit; }

/* ------------------------------- FOOTER ------------------------------ */
.footer { background: #080b0f; color: #fff; }
.footer-main { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 2fr) minmax(0, 3fr); gap: 40px clamp(24px, 4vw, 72px); padding-block: clamp(52px, 6vw, 88px); }
.footer-brand img { width: 196px; }
.footer-brand p { margin-top: 20px; max-width: 26em; color: rgba(255, 255, 255, .68); font-size: 15.5px; line-height: 1.55; }
h2.footer-heading { font: 600 15px/1.3 var(--head); letter-spacing: 0; color: #fff; margin-bottom: 14px; }
.footer-col li { font-size: 15.5px; line-height: 1.45; color: rgba(255, 255, 255, .68); }
.footer-col li + li { margin-top: 3px; }
.footer-col li.plain { padding-block: 5px; }
.footer-col a { display: inline-block; padding-block: 5px; color: rgba(255, 255, 255, .8); text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.footer-col a:hover { color: #6bbcf7; }
.footer-end { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px clamp(20px, 3vw, 48px); padding-block: 18px; border-top: 1px solid var(--line-light); font-size: 14px; color: rgba(255, 255, 255, .68); }
.footer-end .footer-legal { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.footer-legal button { padding-block: 6px; color: rgba(255, 255, 255, .78); transition: color .2s; }
.footer-legal button:hover { color: #6bbcf7; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-light); border-radius: 3px; color: rgba(255, 255, 255, .85); transition: background-color .2s, color .2s, border-color .2s; }
.footer-social a:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* Legal dialog */
.legal { width: min(680px, calc(100vw - 32px)); max-height: 84vh; border: 0; padding: 0; background: var(--paper); color: var(--ink); border-radius: 4px; }
.legal::backdrop { background: rgba(13, 18, 23, .72); }
.legal-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; background: var(--paper); padding: 20px 26px 14px; border-bottom: 1px solid var(--line); }
.legal-head h2 { font-size: 26px; letter-spacing: -.02em; }
.legal-head button { font-size: 28px; line-height: 1; width: 40px; height: 40px; margin-right: -10px; }
.legal-body { padding: 18px 26px 28px; font-size: 16px; }
.legal-body p { margin-bottom: 12px; }
.legal-body h3 { font-size: 18px; margin: 20px 0 6px; letter-spacing: -.01em; }

/* WhatsApp */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 50px; height: 50px; display: grid; place-items: center; background: #128c4b; color: #fff; border-radius: 50%; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); transition: transform .2s; }
.wa:hover { transform: translateY(-3px); }
.wa { transition: transform .2s, opacity .2s, visibility .2s; }
.wa.is-off { opacity: 0; visibility: hidden; }

/* ------------------------------ JUSTIFY ------------------------------ */
/* Full paragraphs are justified, with hyphenation to avoid gaps. Headings, labels, quotes, lists and short blurbs stay left aligned. */
.about-text p:not(.about-ind), .svc > p, .cloud-copy > p:not(.cloud-sub), .faq-a p, .contact-intro > p, .legal-body p {
  text-align: justify; hyphens: auto; -webkit-hyphens: auto;
}

/* ---------------------------- RESPONSIVE ----------------------------- */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-menu { position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding-inline: var(--gutter); background: var(--ink); color: #fff; font: 600 clamp(32px, 7vw, 44px)/1.15 var(--head); letter-spacing: -.025em; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
  .nav-cta { font-size: 18px; padding: 13px 18px; margin-top: 14px; letter-spacing: 0; }
  .nav.is-solid .nav-cta { background: #fff; color: var(--ink); }
  .nav.is-open { background: transparent; color: #fff; box-shadow: none; }
  .nav.is-open .logo-dark { opacity: 1; }
  .nav.is-open .logo-light { opacity: 0; }
  .nav.is-open .nav-logo { z-index: 2; }
  .nav.is-open .nav-menu { visibility: visible; opacity: 1; }
  .nav.is-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
  .nav.is-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: calc(var(--nav-h) + 24px) var(--gutter) 28px; }
  .hero-head { font-size: clamp(2.6rem, 8.6vw, 4.6rem); }
  .hero-tabs { margin-top: 28px; padding-top: 0; }
  .hero-visual { padding: 24px var(--gutter); min-height: 0; }
  .hero-scenes { max-width: 720px; }

  .about-grid, .work-head, .why-grid, .stack-grid, .faq-grid, .contact-grid, .clients-grid, .process-head, .cloud { grid-template-columns: 1fr; }
  .why h2, .faq h2 { position: static; }
  .svc { grid-template-columns: 1fr 1fr; }
  .svc h3 { grid-column: 1 / -1; }
  .quote-visual { max-width: 560px; }
  .case--wide, .case--flip { grid-template-columns: 1fr; }
  .case--flip .plate { order: 0; }
  .case--wide .case-text { padding-top: 18px; }
}

@media (max-width: 1100px) {
  .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col a { padding-block: 9px; min-width: 44px; }
  .footer-legal button { padding-block: 10px; }
  .filter, .quote-tab { padding-block: 10px; }
  .filter::after { bottom: -3px; }
  .filters { padding-bottom: 2px; }
}

@media (max-width: 720px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-column: 1 / -1; }
  .footer-end { grid-template-columns: 1fr; }
  .footer-end .footer-legal { gap: 0 20px; }
  body { font-size: 16px; }
  .cases, .cases.is-filtered { display: flex; flex-direction: column; }
  .plate { margin-inline: calc(var(--gutter) * -1); padding: 12px; }
  .case-text { padding-top: 14px; }
  .svc { grid-template-columns: 1fr; gap: 12px; }
  .svc-stack { display: flex; flex-wrap: wrap; gap: 0 14px; }
  .svc-extra { grid-template-columns: 1fr; }
  .why-list > div { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .stack-table th, .stack-table td { display: block; width: auto; }
  .stack-table th { padding-bottom: 2px; }
  .stack-table td { padding-top: 0; font-size: 14px; }
  .hero-tab small { display: none; }
  .hero-tabs { display: flex; gap: 0 14px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .hero-tab { flex: none; width: auto; }
  .hero-tab span { white-space: nowrap; font-size: 15px; }
  .quote-tabs { gap: 4px 18px; }
}

/* Narrow columns would open wide gaps between words, so they return to left aligned */
@media (max-width: 1100px) {
  .svc > p { text-align: left; }
}

@media (max-width: 600px) {
  .about-text p:not(.about-ind), .svc > p, .cloud-copy > p:not(.cloud-sub), .faq-a p, .contact-intro > p, .legal-body p { text-align: left; }
  .quote figcaption { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Without JavaScript every testimonial and FAQ answer stays readable */
html:not(.js) .quote { grid-area: auto; visibility: visible; margin-bottom: 40px; }
html:not(.js) .quote-visual, html:not(.js) .quote-tabs, html:not(.js) .hero-tabs { display: none; }
html:not(.js) .clients-grid { grid-template-columns: 1fr; }
html:not(.js) .faq-a { grid-template-rows: 1fr; }
html:not(.js) .faq-a > div { visibility: visible; }
