/* Navortec — navortec.com
   Site version 2.0.0 */

@font-face {
  font-family: "Saira";
  src: url("fonts/saira.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 50% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --frost: #e8eef3;
  --snow: #f6f8fa;
  --ink: #0c1a28;
  --steel: #4a6276;
  --rule: #c8d4de;
  --link: #1f5684;
  --ice: #8fd0f2;
  --ice-deep: #3a8fca;

  --night-text: #e8eef3;
  --night-muted: #9db2c4;
  --night-rule: #22364a;

  --display: "Saira", "Arial Narrow", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --measure: 34rem;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--frost);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; }

a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--ice-deep); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--ink); color: var(--frost); padding: 10px 16px; z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */

.site-header { position: relative; z-index: 2; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 22px; padding-bottom: 22px;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 650; font-stretch: 100%;
  font-size: 1.375rem; letter-spacing: 0.01em; line-height: 1;
}
.brand-mark { width: 22px; height: auto; }

.site-nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.site-nav a {
  color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: 1rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--ice-deep); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; }
.hero .wrap {
  position: relative; z-index: 1;
  min-height: min(78vh, 760px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(72px, 12vh, 140px);
}

.hero h1 {
  margin: 0; max-width: 11.5em;
  font-family: var(--display);
  font-weight: 700; font-stretch: 84%;
  font-size: clamp(2.75rem, 6.1vw, 5.75rem);
  line-height: 0.94; letter-spacing: -0.012em;
  text-wrap: balance;
}

.lede {
  margin: clamp(24px, 3.5vw, 40px) 0 0;
  max-width: var(--measure);
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  line-height: 1.55; color: var(--steel);
}

.hero-mark {
  position: absolute; z-index: 0;
  height: 114%; width: auto;
  top: -7%; right: -11%;
  pointer-events: none;
}
.hero h1, .lede { position: relative; }

@media (min-width: 961px) {
  .hero h1 { max-width: 7.6em; }
  .lede { max-width: min(var(--measure), 40vw); }
}

/* Small screens: the N sits above the headline instead of behind it. */
@media (max-width: 960px) {
  .hero .wrap {
    min-height: min(92svh, 860px);
    justify-content: flex-end;
    padding-top: 0; padding-bottom: clamp(48px, 9vh, 80px);
  }
  .hero-mark { height: 50%; top: -6%; right: -14%; }
}
@media (max-width: 560px) {
  .hero-mark { height: 46%; right: -22%; }
}

/* The one moment of motion: the N assembles once on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark .nl, .hero-mark .nr, .hero-mark .nd { transform-box: fill-box; }
  .hero-mark .nl { animation: from-above 1.1s cubic-bezier(.16,.84,.28,1) both; }
  .hero-mark .nr { animation: from-below 1.1s cubic-bezier(.16,.84,.28,1) both; }
  .hero-mark .nd { animation: settle 1.2s cubic-bezier(.16,.84,.28,1) .28s both; }
}
@keyframes from-above { from { transform: translateY(-22%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes from-below { from { transform: translateY(22%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes settle { from { opacity: 0; transform: translate(-4%, -6%); } to { opacity: 1; transform: none; } }

/* ---------- Buttons ---------- */

/* Corner cut at the same slant as the N's bars. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px 12px 30px;
  font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  background: var(--ink); color: var(--frost);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 26px));
  transition: background-color .15s ease;
}
.button:hover { background: #1b3350; }
.button:focus-visible { clip-path: none; outline-offset: 4px; }

.night .button { background: var(--frost); color: var(--ink); }
.night .button:hover { background: #ffffff; }
.night .button:focus-visible { outline-color: var(--ice); }

/* ---------- Products ---------- */

.product { padding: clamp(72px, 10vw, 132px) 0; border-top: 1px solid var(--rule); }
.product.night { background: var(--ink); color: var(--night-text); border-top: 0; }

.product .wrap {
  display: grid; gap: clamp(32px, 5vw, 80px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: start;
}

.product-head { display: flex; flex-direction: column; gap: 28px; }
.product-mark { width: clamp(56px, 6vw, 76px); height: auto; }

.product-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 700; font-stretch: 84%;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.86; letter-spacing: -0.015em;
}

.product-body { max-width: var(--measure); padding-top: 6px; }
.product-body > p { margin: 0 0 32px; font-size: 1.1875rem; line-height: 1.6; }

.facts {
  margin: 0 0 40px; display: grid;
  grid-template-columns: max-content 1fr; column-gap: 32px;
}
.facts dt, .facts dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--rule); }
.facts dt { color: var(--steel); font-size: 0.9375rem; padding-top: 14px; }
.facts dd { font-weight: 500; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 1px solid var(--rule); }

.night .facts dt, .night .facts dd { border-color: var(--night-rule); }
.night .facts dt { color: var(--night-muted); }
.night a:not(.button) { color: var(--ice); }

.status-dot {
  display: inline-block; width: 8px; height: 8px; margin-right: 8px;
  vertical-align: 0.08em; background: var(--ice-deep);
  transform: skewX(-28deg);
}
.status-dot.pending { background: transparent; box-shadow: inset 0 0 0 1.5px var(--night-muted); }

@media (max-width: 860px) {
  .product .wrap { grid-template-columns: 1fr; }
}

/* ---------- Next ---------- */

.next { padding: clamp(80px, 11vw, 144px) 0; }
.next .wrap {
  display: grid; gap: clamp(32px, 5vw, 80px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}
.next h2 {
  margin: 0;
  font-family: var(--display); font-weight: 700; font-stretch: 84%;
  font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 0.98; letter-spacing: -0.01em;
}
.next-body { max-width: var(--measure); }
.next-body p { margin: 0 0 20px; font-size: 1.1875rem; }
.next-body p:last-child { margin-bottom: 0; color: var(--steel); }
.next-body strong { font-weight: 650; }

@media (max-width: 860px) { .next .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: 0.9375rem; color: var(--steel); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.footer-top .brand { font-size: 1.125rem; }
.footer-top .brand-mark { width: 18px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.legal { margin: 28px 0 0; max-width: 46rem; font-size: 0.8125rem; line-height: 1.55; }
.copyright { margin: 8px 0 0; font-size: 0.8125rem; }

/* ---------- 404 ---------- */

.lost { min-height: 70vh; display: flex; align-items: center; }
.lost h1 {
  margin: 0 0 20px; font-family: var(--display); font-weight: 700; font-stretch: 84%;
  font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 0.96;
}
.lost p { margin: 0 0 32px; color: var(--steel); max-width: var(--measure); font-size: 1.1875rem; }

@media print {
  .hero-mark, .site-nav, .skip { display: none; }
  .product.night { background: none; color: #000; }
}

code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em; padding: 0.08em 0.32em; border-radius: 3px;
  background: rgba(12, 26, 40, 0.07);
}
