/* vortexdominioncorp.com — Ismael Tremblay Desgagnés */

@font-face { font-family: "Inter"; src: url(../fonts/inter-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(../fonts/plexmono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(../fonts/plexmono-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #04060b;
  --bg-2: #090d17;
  --bg-3: #0d1220;
  --line: rgba(150, 170, 230, .12);
  --line-2: rgba(150, 170, 230, .22);
  --ink: #eef1f7;
  --grey: #8b93a7;
  --grey-2: #5c6478;
  --blue: #3b63ff;
  --blue-hi: #7d9bff;
  --signal: #8dff6a;
  --warn: #ff8a5c;
  --gut: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --top: 68px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --notch: 2px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, p, ol, ul, figure, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, canvas { display: block; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--top) + 8px); }

.wrap { width: min(var(--max), 100% - 2 * var(--gut)); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--bg); padding: 10px 14px; text-decoration: none; font-weight: 500;
}
.skip:focus { top: 12px; }

.label {
  font: 400 12px/1.2 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--grey);
}
.ico { width: 16px; height: 16px; flex: none; }

/* small mono tags, as on a spec sheet */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 10px;
  border: 1px solid var(--line-2); background: rgba(13, 18, 32, .6);
  font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--grey);
}
.tag b { font-weight: 400; color: var(--ink); }
.sq { display: inline-block; width: 7px; height: 7px; background: var(--signal); }
@media (prefers-reduced-motion: no-preference) { .sq { animation: pulse 2.4s steps(2, jump-none) infinite; } }
@keyframes pulse { 50% { opacity: .35; } }

/* buttons: square, with a two-pixel notch at the corners */
.btn {
  display: inline-flex; align-items: stretch;
  min-height: 44px;
  font: 500 14px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  color: var(--ink); background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2);
  cursor: pointer;
  clip-path: polygon(var(--notch) 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% calc(100% - var(--notch)),
    calc(100% - var(--notch)) 100%, var(--notch) 100%, 0 calc(100% - var(--notch)), 0 var(--notch));
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn > span { display: inline-flex; align-items: center; gap: 10px; padding: 0 16px; }
.btn > .seg { padding: 0 13px; border-left: 1px solid rgba(255, 255, 255, .14); }
.btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(190, 205, 255, .35); }
.btn .ico { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.btn:hover .ico-move { transform: translateX(3px); }
.btn:hover .ico-ne { transform: translate(2px, -2px); }
.btn-primary {
  color: #fff; border-color: transparent;
  background: linear-gradient(180deg, #5b7dff 0%, #3459f5 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary > .seg { border-left-color: rgba(255, 255, 255, .22); background: rgba(10, 25, 120, .22); }
.btn-primary:hover { background: linear-gradient(180deg, #6d8bff 0%, #4065ff 100%); border-color: transparent; }
.btn-light { color: var(--bg); background: var(--ink); border-color: var(--ink); }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn-sm { min-height: 36px; font-size: 13px; }
.btn-sm > span { padding: 0 12px; }
.btn[aria-disabled="true"] { cursor: default; }

/* content still to come: a fine dithered bar */
.redact {
  display: inline-block; vertical-align: -.08em;
  width: var(--w, 12ch); max-width: 100%; height: .82em;
  background: repeating-conic-gradient(rgba(150, 170, 230, .26) 0 25%, rgba(150, 170, 230, .1) 0 50%) 0 0 / 2px 2px;
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(4, 6, 11, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.top-in { display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; height: var(--top); }
.brand { display: flex; align-items: center; gap: 12px; padding-right: 24px; text-decoration: none; border-right: 1px solid var(--line); }
.brand svg { width: 30px; height: 14px; color: var(--ink); shape-rendering: crispEdges; }
.brand span { font: 500 14px/1 var(--sans); letter-spacing: -.01em; }
.nav { display: flex; align-items: center; justify-content: center; gap: 32px; }
.nav a { font: 400 14px/1 var(--sans); color: var(--grey); text-decoration: none; padding: 8px 0; transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.top-cta { display: flex; align-items: center; gap: 8px; padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 899px) {
  .top-in { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .brand { border-right: 0; }
  .top-cta { border-left: 0; padding-left: 0; }
}
@media (max-width: 479px) {
  .brand span { display: none; }
  .top-cta .btn-ghost-top { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .glow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px;
  min-height: min(860px, calc(100svh - var(--top)));
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 96px);
}
.hero-copy { grid-column: 1 / span 8; grid-row: 1; align-self: center; display: grid; gap: 28px; position: relative; z-index: 2; }
.hero h1 {
  font: 500 clamp(44px, 6vw, 80px)/.98 var(--sans);
  letter-spacing: -.048em;
  padding-bottom: .04em;
}
.hero h1 .l2 {
  display: block;
  /* room for the descenders, which background-clip:text would cut */
  padding-bottom: .14em; margin-bottom: -.14em;
  background: linear-gradient(180deg, #c9d0de 0%, #7f889c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--grey); max-width: 34ch; letter-spacing: -.015em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { grid-column: 8 / -1; grid-row: 1; position: relative; align-self: stretch; min-height: 520px; margin-right: calc(-1 * var(--gut)); }
.hero-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; justify-content: space-between; gap: 16px; padding: 0 0 22px;
}
@media (max-width: 899px) {
  .hero-in { min-height: 0; row-gap: 8px; padding-bottom: 72px; }
  .hero-copy, .hero-art { grid-column: 1 / -1; grid-row: auto; }
  .hero-art { min-height: 0; height: clamp(300px, 80vw, 440px); margin: 8px calc(-1 * var(--gut)) 0; }
}

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 11vw, 152px) 0; border-bottom: 1px solid var(--line); position: relative; }
.sec-intro { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(48px, 6vw, 80px); }
.sec h2 {
  font: 500 clamp(34px, 4.4vw, 58px)/1.04 var(--sans);
  letter-spacing: -.04em;
}
.sec h2 .l2 { display: block; color: var(--grey); }
.sec h2 .blue {
  padding-bottom: .14em; margin-bottom: -.14em;
  background: linear-gradient(90deg, #9fb4ff 0%, #4f74ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec .lead { font-size: 17px; color: var(--grey); max-width: 52ch; }
.idx { display: flex; align-items: center; gap: 10px; }
.idx::before { content: ""; width: 18px; height: 1px; background: var(--line-2); }

/* focus: three fields */
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.field { position: relative; padding: 24px 28px 36px; display: grid; grid-template-rows: auto 220px auto auto; gap: 14px; outline: none; }
.field + .field { border-left: 1px solid var(--line); }
.field:first-child { padding-left: 0; }
.field canvas { width: 100%; height: 220px; }
.field h3 { font: 500 18px/1.3 var(--sans); letter-spacing: -.02em; margin-top: 8px; }
.field p { color: var(--grey); font-size: 15px; line-height: 1.55; max-width: 34ch; }
@media (max-width: 899px) {
  .fields { grid-template-columns: 1fr; }
  .field { padding: 24px 0 32px; grid-template-rows: auto 200px auto auto; }
  .field canvas { height: 200px; }
  .field + .field { border-left: 0; border-top: 1px solid var(--line); }
}

/* confidential */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.split .sec-intro { margin-bottom: 0; }
.points { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.points li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; }
.points .label { min-width: 3ch; }
.brief {
  position: relative;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(20, 28, 52, .55), rgba(9, 13, 23, .75));
  box-shadow: 0 40px 120px -40px rgba(59, 99, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.brief-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.brief-head h3 { font: 500 15px/1.3 var(--sans); letter-spacing: -.01em; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; font: 400 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.chip-warn { color: var(--warn); background: rgba(255, 138, 92, .1); border: 1px solid rgba(255, 138, 92, .25); }
.chip-ok { color: var(--blue-hi); background: rgba(91, 125, 255, .1); border: 1px solid rgba(91, 125, 255, .28); }
.brief-rows { padding: 6px 22px; }
.brief-rows div { display: grid; grid-template-columns: 12ch minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.brief-rows div:last-child { border-bottom: 0; }
.brief-rows dd { font-size: 14px; color: var(--ink); }
.brief-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
.faq-grid .sec-intro { margin-bottom: 0; align-self: start; position: sticky; top: calc(var(--top) + 40px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 4.5ch minmax(0, 1fr) 18px; gap: 14px; align-items: baseline;
  padding: 22px 0; font: 500 17px/1.4 var(--sans); letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { align-self: center; color: var(--grey); transition: color .2s, transform .3s cubic-bezier(.2, .7, .2, 1); }
.faq summary:hover .ico { color: var(--ink); }
.faq details[open] summary .ico { transform: rotate(45deg); color: var(--blue-hi); }
.faq .a { padding: 0 32px 24px calc(4.5ch + 14px); color: var(--grey); max-width: 62ch; }
@media (max-width: 899px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .sec-intro { position: static; }
}
@media (max-width: 479px) {
  .faq summary { grid-template-columns: minmax(0, 1fr) 18px; }
  .faq summary .label { display: none; }
  .faq .a { padding-left: 0; padding-right: 0; }
}

/* contact: the closing light */
.close { position: relative; overflow: hidden; padding: clamp(96px, 13vw, 176px) 0 clamp(96px, 12vw, 160px); border-bottom: 1px solid var(--line); }
.close .glow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.close-in { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 24px; }
.close h2 { font: 500 clamp(40px, 6vw, 80px)/1 var(--sans); letter-spacing: -.048em; }
.close h2 .l2 { display: block; color: var(--grey); }
.close .lead { font-size: 18px; color: var(--grey); max-width: 46ch; }
.mail {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 12px; padding: 14px 14px 14px 20px;
  border: 1px solid var(--line-2); background: rgba(4, 6, 11, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mail .addr { font: 400 clamp(16px, 2vw, 22px)/1.2 var(--mono); letter-spacing: -.01em; }
.close .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.close .btn:not(.btn-primary) { background: rgba(4, 6, 11, .6); }
.close .btn:not(.btn-primary):hover { background: rgba(4, 6, 11, .8); }
.btn.is-done { border-color: var(--signal); color: var(--signal); }
.btn .when-done, .btn.is-done .when-idle { display: none; }
.btn.is-done .when-done { display: inline-flex; }

/* footer */
.foot { padding: 28px 0 40px; color: var(--grey-2); font-size: 13px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.foot a { text-decoration: none; color: var(--grey); }
.foot a:hover { color: var(--ink); }

/* reveal: set by the script only for what starts below the fold */
@media (prefers-reduced-motion: no-preference) {
  .is-out { opacity: 0; transform: translateY(14px); }
  .is-in { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
}
