/* Innovista Digital. One living field behind everything (WebGL2, site.js), in the logo's blues; the page is type
   laid over it. Every floating chunk of text sits in a tight black box (.hl): the background of an inline span
   covers only the letters' own height, and box-decoration-break repeats it on each line, like a printed byline.
   Instrument Serif for headings, Space Grotesk to read, IBM Plex Mono for labels. Self-hosted fonts. */
:root {
  --ink: #070a14; --paper: #eef1f6; --soft: #c3cad6; --dim: #8a93a6; --line: rgba(238, 241, 246, .18);
  --royal: #3d5fc4; --sky: #55b0f0; --box: #000;
  --serif: 'Instrument Serif', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4.5vw, 72px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--ink); color: var(--paper); font: 400 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
#field { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; }
/* without WebGL the page still has its night */
.no-gl #field { background: radial-gradient(120% 90% at 70% 30%, #1b2f6e 0%, #070a14 62%), #070a14; }
/* main makes no stacking context of its own, so the navy veils below can multiply with the canvas behind */
main { position: relative; }
.top { position: relative; z-index: 1; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }

/* the tight black box */
.hl { background: var(--box); padding: .04em .32em .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.label { font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
h1, .plate__name, .mail, .contact__lead { font-family: var(--serif); font-weight: 400; }
h3 { font: 600 19px/1.3 var(--sans); letter-spacing: -.005em; }
section { padding-inline: var(--gutter); }
.row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.row-head--gap { margin-top: 12vh; }

/* ---------- top ---------- */
.top { position: fixed; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) 28px; pointer-events: none; z-index: 5; background: linear-gradient(rgba(7,10,20,.85) 25%, rgba(7,10,20,0)); }
.top > * { pointer-events: auto; }
.mark { display: block; line-height: 0; flex: none; }
.mark img { height: clamp(24px, 3vw, 34px); width: auto; }
.top nav { display: flex; gap: clamp(4px, 1.6vw, 20px); font: 400 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.top nav a { text-decoration: none; color: var(--soft); }
.top nav a:hover { color: var(--sky); }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--gutter) clamp(36px, 7vh, 80px); }
.hero h1 { font-size: clamp(50px, 8.6vw, 156px); line-height: .92; letter-spacing: -.025em; max-width: 19ch; margin-top: 22px; text-wrap: balance; text-shadow: 0 2px 40px rgba(7, 10, 20, .6); }
.hero h1 em { color: var(--sky); }
.hero__lead { max-width: 60ch; margin-top: 28px; font-size: 18px; line-height: 1.95; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 24px; border-radius: 3px; font: 500 13px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.btn--solid { background: var(--royal); color: #fff; }
.btn--solid:hover { background: var(--sky); color: #04101c; }
.btn--line { background: var(--box); color: var(--paper); border: 1px solid var(--line); }
.btn--line:hover { border-color: var(--sky); color: var(--sky); }
.hint { margin-top: 30px; font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }

/* ---------- capabilities ---------- */
/* Capabilities and How we deliver: a navy sheet over the field, edge to edge, multiplied, so the motion stays
   visible but quiet and the text reads; a rest for the eye */
.caps, .delivery { position: relative; }
.caps::before, .delivery::before { content: ''; position: absolute; inset: 0; z-index: 0; background: #172150; mix-blend-mode: multiply; pointer-events: none; }
.caps > *, .delivery > * { position: relative; z-index: 1; }
.caps { padding-top: 12vh; padding-bottom: 12vh; margin-top: 10vh; }
.intro { font: 400 clamp(20px, 2vw, 26px)/1.75 var(--sans); max-width: 40ch; margin-top: 30px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); margin-top: 40px; }
.cap { border-top: 1px solid var(--line); padding: 22px 0 36px; }
.cap h3 { margin-top: 14px; font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; }
.cap p { margin-top: 12px; line-height: 1.95; }
.tags { font: 400 11.5px/1.9 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--sky); }

/* ---------- the plates ---------- */
.work { padding-top: 16vh; padding-bottom: 14vh; }
.plates { list-style: none; }
.plate { border-bottom: 1px solid var(--line); }
.plate > a { display: grid; grid-template-columns: 4.5em minmax(0, 1fr) auto; align-items: baseline; gap: 18px; padding: clamp(18px, 3vh, 34px) 0 14px; text-decoration: none; }
.plate__no { font: italic 400 22px/1 var(--serif); color: var(--soft); }
.plate__name { font-size: clamp(44px, 7.4vw, 128px); line-height: .95; letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(7, 10, 20, .7); transition: color .25s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.plate__kind { font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.plate > a:hover .plate__name, .plate > a:focus-visible .plate__name { color: var(--sky); transform: translateX(.12em); }
.plate__text { max-width: 64ch; margin: 0 0 clamp(18px, 3vh, 30px) calc(4.5em + 18px); line-height: 1.95; }
.plate__img { display: none; } /* desktop: the floating peek shows it; phones: inline, below */
.also { margin-top: 48px; max-width: 76ch; line-height: 1.95; }
.also .label { margin-right: 10px; color: var(--dim); }
.also a { color: var(--sky); }

/* the floating preview: a full page glides top to bottom inside a 16:10 window; the artwork shows whole */
.peek { position: fixed; left: 0; top: 0; width: min(36vw, 520px); aspect-ratio: 16 / 10; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .25s ease; border-radius: 3px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55); will-change: transform; background: #000; }
.peek.tall { width: min(22vw, 320px); }
.peek.on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: contain; display: block; }
.peek.scroll img { height: auto; object-fit: initial; animation: glide var(--glide-t, 14s) ease-in-out .5s infinite alternate; }
@keyframes glide { to { transform: translateY(var(--glide, 0px)); } }

/* ---------- delivery and engagement ---------- */
.delivery { padding-top: 12vh; padding-bottom: 14vh; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 40px); margin-top: 30px; }
.steps p { margin-top: 14px; line-height: 1.95; }
.engage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); margin-top: 30px; }
.engage p { margin-top: 12px; line-height: 1.95; }

/* ---------- contact ---------- */
.contact { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 14vh; padding-bottom: 8vh; }
.contact__lead { font-size: clamp(28px, 3.4vw, 52px); line-height: 1.1; margin-top: 22px; text-shadow: 0 2px 30px rgba(7, 10, 20, .8); }
.mail { font-size: clamp(30px, 6.4vw, 112px); line-height: 1.15; letter-spacing: -.02em; margin-top: 18px; overflow-wrap: anywhere; }
.mail a { text-decoration: none; }
.mail .hl { padding: 0 .16em .04em; transition: color .25s ease; }
.mail a:hover .hl { color: var(--sky); }
.copy { align-self: flex-start; margin-top: 26px; background: var(--box); color: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 12px 20px; font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.copy:hover { border-color: var(--sky); color: var(--sky); }
.contact__foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: auto; padding-top: 14vh; color: var(--soft); font: 400 13px/1.9 var(--mono); }
.contact__foot address { font-style: normal; }
.contact__foot p:last-child { text-align: right; }

/* ---------- tablets and phones ---------- */
@media (max-width: 1000px) {
  .grid, .engage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
}
@media (max-width: 760px) {
  .top nav a:nth-child(3) { display: none; }
  .grid, .engage, .steps, .contact__foot { grid-template-columns: minmax(0, 1fr); }
  .plate > a { grid-template-columns: 2.2em minmax(0, 1fr); }
  .plate__kind { grid-column: 2; }
  .plate__text { margin-left: calc(2.2em + 18px); }
  .plate__img { display: block; width: calc(100% - 2.2em - 18px); aspect-ratio: 16 / 10; margin: 0 0 26px calc(2.2em + 18px); border-radius: 3px; overflow: hidden; background: #000; }
  .plate__img img { display: block; width: 100%; height: auto; animation: glide var(--glide-t, 14s) ease-in-out .5s infinite alternate; }
  .plate__img--still { aspect-ratio: auto; }
  .plate__img--still img { animation: none; }
  .peek { display: none; }
  .contact__foot p:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } .plate__name { transition: none; }
  .peek.scroll img, .plate__img img { animation: none; }
}

/* project names are real headings (h3) for search engines; they keep the plate look */
h3.plate__name { font: 400 clamp(44px, 7.4vw, 128px)/.95 var(--serif); letter-spacing: -.02em; }
.plate__more { margin: -8px 0 clamp(18px, 3vh, 30px) calc(4.5em + 18px); font: 400 12px/1.9 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.plate__more a { color: var(--sky); text-decoration: none; }
.plate__more a:hover { text-decoration: underline; }
@media (max-width: 760px) { .plate__more { margin-left: calc(2.2em + 18px); } }
