/* NOVIQ — printed proof sheet. Ultramarine field, cool paper, navy-black ink. */
:root {
  --field: #2B35FF; --field-deep: #1A22C9; --field-soft: #D7DAFF;
  --ink: #0A0F2C; --ink-2: #3A4160; --paper: #F5F6FB; --white: #fff; --tint: #E4E6FF;
  --line: rgba(10, 15, 44, .16); --line-on-field: rgba(255, 255, 255, .28);
  --error: #B3261E; --focus: var(--field);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(1.25rem, 4vw, 3rem); --max: 1240px; --r: 4px;
  --section: clamp(4rem, 8vw, 7.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; scrollbar-color: var(--field) var(--paper); }
body { margin: 0; font: 400 clamp(1rem, .96rem + .2vw, 1.0625rem)/1.6 var(--body); color: var(--ink); background: var(--paper); accent-color: var(--field); caret-color: var(--field); -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: var(--white); }
.on-field ::selection { background: var(--white); color: var(--field); }
h1, h2, h3 { font-family: var(--display); font-optical-sizing: auto; font-weight: 700; line-height: 1.04; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.2rem + 6vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.on-field { --focus: var(--white); }
.skip { position: absolute; left: var(--pad); top: -4rem; background: var(--white); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { top: .75rem; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.section > .wrap > h2 { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.lede { font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem); line-height: 1.5; color: inherit; max-width: 52ch; }
.on-field .lede { color: var(--field-soft); }
.muted { color: var(--ink-2); }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .02em; padding: .2rem .55rem; border: 1px solid currentColor; border-radius: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .65rem; font: 600 1rem/1 var(--body); padding: 1.05rem 1.5rem; border: 1.5px solid transparent; border-radius: var(--r); background: var(--field); color: var(--white); text-decoration: none; cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn svg { width: 1.1em; height: 1.1em; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { background: var(--field-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--ink); color: var(--white); }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.btn--line:hover { background: var(--white); color: var(--field); border-color: var(--white); }
.btn--ink { background: var(--ink); } .btn--ink:hover { background: var(--field); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--field); color: var(--white); border-bottom: 1px solid var(--line-on-field); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font: 800 1.35rem/1 var(--display); letter-spacing: .02em; text-decoration: none; }
.logo svg { width: 1.7rem; height: 1.7rem; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; padding-block: .4rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { background-size: 100% 1.5px; }
.nav .btn { padding: .8rem 1.2rem; font-size: .95rem; }
.menu-btn { display: none; background: none; border: 1.5px solid var(--white); color: var(--white); border-radius: var(--r); width: 2.75rem; height: 2.75rem; cursor: pointer; padding: 0; position: relative; }
.menu-btn i { position: absolute; left: .7rem; right: .7rem; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn i:first-child { top: 1rem; } .menu-btn i:last-child { top: 1.55rem; }
.menu-btn[aria-expanded="true"] i:first-child { top: 1.28rem; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { top: 1.28rem; transform: rotate(-45deg); }

/* Hero + page heads */
.hero, .page-head { background: var(--field); color: var(--white); position: relative; overflow: hidden; }
.hero { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 5rem); }
.hero-copy { position: relative; z-index: 2; max-width: 46rem; }
.hero h1 { margin-bottom: 1.75rem; }
.hero .lede { margin-bottom: 2.25rem; }
.proof { position: relative; z-index: 1; margin-top: 3rem; width: min(100%, 34rem); margin-inline: auto 0; }
.proof figcaption { font-size: .85rem; color: var(--field-soft); margin-top: .75rem; }
.proof svg { width: 100%; height: auto; overflow: visible; }
.sheet { filter: drop-shadow(0 16px 22px rgba(5, 8, 40, .32)); animation: register 1.2s var(--ease) both; }
.sheet.s2 { animation-delay: .1s; } .sheet.s3 { animation-delay: .2s; }
@keyframes register { from { opacity: 0; transform: translate(var(--dx), var(--dy)); } to { opacity: 1; transform: none; } }
.s1 { --dx: 30px; --dy: -22px; } .s2 { --dx: -20px; --dy: 28px; } .s3 { --dx: -36px; --dy: 16px; }
@media (min-width: 62em) {
  .hero { min-height: min(46rem, calc(100svh - 4.25rem)); display: flex; align-items: center; }
  .proof { position: absolute; right: calc(var(--pad) * -.6); bottom: -3.5rem; width: min(42vw, 36rem); margin: 0; }
  .hero-copy { max-width: 52rem; }
  .hero h1 { max-width: 14ch; }
}
.page-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4.5rem); }
.page-head h1 { margin-bottom: 1.5rem; max-width: 16ch; }

/* Services index (rows, not cards) */
.rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1.5rem; align-items: center; padding-block: clamp(1.25rem, 2.4vw, 1.9rem); border-top: 1px solid var(--line); text-decoration: none; transition: background-color .3s var(--ease), padding .3s var(--ease); }
.row h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); }
.row p { grid-column: 1; color: var(--ink-2); }
.row svg { grid-column: 2; grid-row: 1 / span 2; width: 1.75rem; height: 1.75rem; color: var(--field); transition: transform .35s var(--ease); }
.row:hover { background: var(--tint); padding-inline: 1.25rem; }
.row:hover svg { transform: translateX(6px); }
@media (min-width: 52em) {
  .row { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) 3rem; }
  .row p { grid-column: 2; } .row svg { grid-column: 3; justify-self: end; }
}

/* Why NOVIQ */
.points { display: grid; gap: 2.5rem 4rem; }
.point { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.point h3 { margin-bottom: .75rem; }
.point p { color: var(--ink-2); }
@media (min-width: 52em) { .points { grid-template-columns: 1fr 1fr; } .point:nth-child(even) { margin-top: 3.5rem; } }

/* Work grid */
.work { display: grid; gap: 2.5rem 1.5rem; grid-template-columns: repeat(12, 1fr); }
.work > * { grid-column: span 12; }
@media (min-width: 52em) {
  .work > * { grid-column: span 6; }
  .work > :nth-child(4n+1), .work > :nth-child(4n) { grid-column: span 7; }
  .work > :nth-child(4n+2), .work > :nth-child(4n+3) { grid-column: span 5; }
}
.case { display: block; text-decoration: none; }
.case .thumb { aspect-ratio: 4 / 3; background: var(--tint); border-radius: var(--r); overflow: hidden; transition: transform .5s var(--ease); }
.case:hover .thumb { transform: translateY(-6px); }
.thumb svg { width: 100%; height: 100%; }
.case h3 { margin-top: 1rem; }
.case-meta { display: flex; flex-wrap: wrap; gap: .5rem .9rem; align-items: center; margin-top: .5rem; color: var(--ink-2); font-size: .95rem; }
.more { margin-top: 3rem; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: s; }
.step { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; font: 700 clamp(2.5rem, 2rem + 2vw, 3.5rem)/1 var(--display); letter-spacing: -.04em; color: var(--field); margin-bottom: 1rem; }
.step h3 { margin-bottom: .6rem; } .step p { color: var(--ink-2); font-size: .98rem; }
@media (min-width: 52em) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }

/* Testimonials (placeholder) */
.tint { background: var(--tint); }
.quotes { display: grid; gap: 2.5rem; }
@media (min-width: 52em) { .quotes { grid-template-columns: 1fr 1fr; gap: 4rem; } }
blockquote { margin: 0; }
blockquote p { font: 600 clamp(1.35rem, 1.1rem + 1vw, 1.9rem)/1.25 var(--display); letter-spacing: -.02em; max-width: 28ch; }
blockquote footer { margin-top: 1.25rem; font-size: .95rem; color: var(--ink-2); }
.note { margin-top: 2.5rem; font-size: .9rem; color: var(--ink-2); }

/* CTA band */
.cta { background: var(--field); color: var(--white); padding-block: clamp(4rem, 9vw, 7.5rem); }
.cta h2 { max-width: 18ch; margin-bottom: 1.5rem; } .cta .lede { margin-bottom: 2rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--white); padding-block: clamp(3rem, 6vw, 5rem) 2rem; --focus: var(--white); }
.foot { display: grid; gap: 2.5rem; }
@media (min-width: 52em) { .foot { grid-template-columns: 1.4fr 1fr 1fr; gap: 4rem; } }
.foot h2 { font: 600 .95rem/1.2 var(--body); letter-spacing: 0; margin-bottom: 1rem; color: var(--field-soft); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot a { text-decoration: none; } .foot a:hover { text-decoration: underline; }
.foot p { color: var(--field-soft); font-size: .98rem; }
.news { margin-top: 1.5rem; max-width: 26rem; }
.news .field-row { display: flex; gap: .5rem; }
.news input { flex: 1; min-width: 0; background: transparent; color: var(--white); border-color: var(--line-on-field); }
.news input::placeholder { color: var(--field-soft); }
.news .btn { padding-inline: 1.1rem; }
.news [role="status"] { margin-top: .6rem; min-height: 1.4em; font-size: .92rem; }
.colophon { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-on-field); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; font-size: .88rem; color: var(--field-soft); }

/* Services page */
.svc { display: grid; gap: 1.5rem 4rem; padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; }
.svc h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.svc ul { list-style: none; margin: 1.25rem 0 1.75rem; padding: 0; display: grid; gap: .5rem; }
.svc li { padding-left: 1.5rem; position: relative; } .svc li::before { content: ""; position: absolute; left: 0; top: .78em; width: .8rem; height: 2px; background: var(--field); }
@media (min-width: 52em) { .svc { grid-template-columns: 5fr 6fr; } }

/* About */
.split { display: grid; gap: 2rem 4rem; }
@media (min-width: 52em) { .split { grid-template-columns: 5fr 6fr; } .split > h2 { position: sticky; top: 6rem; align-self: start; } }
.split .prose { display: grid; gap: 1.1rem; font-size: 1.08rem; }
.values { display: grid; gap: 2rem 3rem; margin-top: 2.5rem; }
@media (min-width: 40em) { .values { grid-template-columns: 1fr 1fr; } }

/* Portfolio */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filters button { font: 600 .95rem/1 var(--body); padding: .8rem 1.1rem; border-radius: var(--r); border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .25s var(--ease), color .25s var(--ease); }
.filters button:hover { background: var(--tint); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.case[hidden] { display: none; }
.detail { display: none; }
.detail:target { display: block; }
main:has(.detail:target) .gallery { display: none; }
.back { display: inline-flex; gap: .5rem; align-items: center; margin-bottom: 2rem; font-weight: 600; }
.back svg { width: 1.1rem; height: 1.1rem; transform: rotate(180deg); }
.detail h1 { font-size: clamp(2.2rem, 1.2rem + 4vw, 4rem); margin-bottom: 1rem; }
.detail .hero-thumb { aspect-ratio: 16 / 9; margin-block: 2rem 3rem; background: var(--tint); border-radius: var(--r); overflow: hidden; }
.facts { display: grid; gap: 1.5rem 3rem; margin-bottom: 3rem; }
@media (min-width: 40em) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts dt { font-weight: 700; margin-bottom: .25rem; } .facts dd { margin: 0; color: var(--ink-2); }

/* Forms */
.form { display: grid; gap: 1.4rem; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form legend, .form label.l { display: block; font-weight: 600; margin-bottom: .5rem; padding: 0; }
.opt { font-weight: 400; color: var(--ink-2); }
input, select, textarea { width: 100%; font: inherit; color: inherit; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; transition: border-color .2s; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--field); outline-offset: 1px; border-color: var(--field); }
.news input:focus-visible { outline-color: var(--white); border-color: var(--white); }
textarea { min-height: 9rem; resize: vertical; }
[aria-invalid="true"] { border-color: var(--error); }
.err { color: var(--error); font-size: .9rem; margin-top: .4rem; min-height: 0; }
.err:empty { display: none; }
.pair { display: grid; gap: 1.4rem; } @media (min-width: 40em) { .pair { grid-template-columns: 1fr 1fr; } }
.choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.choices span { display: inline-block; padding: .75rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--white); font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.choices input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.choices input:focus-visible + span { outline: 3px solid var(--field); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 1rem 1.25rem; border-radius: var(--r); font-weight: 500; }
.status:empty { display: none; }
.status.ok { background: var(--tint); border: 1.5px solid var(--field); }
.status.bad { background: #FDECEA; border: 1.5px solid var(--error); color: #7A1710; }
.contact-grid { display: grid; gap: 3rem 5rem; }
@media (min-width: 62em) { .contact-grid { grid-template-columns: 4fr 7fr; } }
.next { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: n; }
.next li { counter-increment: n; padding-left: 2.6rem; position: relative; }
.next li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; background: var(--field); color: var(--white); font-weight: 700; border-radius: 2px; }
.loading { display: inline-block; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notfound { min-height: 60vh; display: grid; align-content: center; gap: 1.5rem; }

/* Small utilities (no inline styles: the CSP forbids them) */
.foot-tag { margin-top: 1rem; max-width: 30ch; }
.work-note { margin: -1.5rem 0 3rem; }
.section--tight { padding-top: clamp(2rem, 4vw, 3rem); }
.h-sm { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.small { font-size: .92rem; }
.plain { padding-left: 1.1rem; margin: 0; display: grid; gap: .4rem; }
main:has(.detail:target) .page-head { display: none; }

/* Mobile nav */
@media (max-width: 51.99em) {
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--field); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--pad) 1.5rem; border-bottom: 1px solid var(--line-on-field); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding-block: 1rem; font-size: 1.25rem; font-family: var(--display); border-bottom: 1px solid var(--line-on-field); background: none; }
  .nav .btn { margin-top: 1.25rem; justify-content: center; padding-block: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}
