/* Randy Techs
   ---------------------------------------------------------------------------
   Single stylesheet for the whole site. Ordered: tokens, base, layout,
   components, page sections, responsive. Class names are flat and descriptive
   rather than utility based, since there are only four pages to keep in sync.
   --------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------------- */

:root {
  /* Neutrals. Paper is the default page ground, ink is the dark band ground. */
  --paper:      #F4F5F7;
  --paper-2:    #E9EBEF;
  --paper-3:    #DDE1E8;
  --white:      #FFFFFF;

  --ink:        #0B0C10;
  --ink-2:      #15171E;
  --ink-3:      #22252F;

  --muted:      #5F6470;
  --muted-2:    #767B87;

  --border:     #DCE0E6;
  --border-dark:#262933;

  /* Accent. Two values because one blue cannot carry both grounds:
     --accent clears 5.7:1 on paper, --accent-light clears 6.9:1 on ink. */
  --accent:       #2549F5;
  --accent-hover: #1B3AD1;
  --accent-light: #7B95FF;

  /* Live status. Two greens for the same reason as the accent: the deep one
     clears 4.6:1 on paper, the light one clears 11:1 on ink. */
  --live:       #15803D;
  --live-light: #4ADE80;

  /* Type */
  --display: 'Fraunces', Georgia, serif;
  --body:    'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Rhythm */
  --gutter:     56px;
  --gutter-sm:  20px;
  --band:       120px;
  --band-sm:    80px;
  --max:        1312px;
  --nav-h:      68px;
  --radius:     20px;
  --radius-sm:  10px;
}

/* ---------------------------------------------------------------------------
   2. Base
   --------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

::selection { background: var(--accent); color: var(--white); }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter-sm);
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------------------------------------------------------------------------
   3. Layout
   --------------------------------------------------------------------------- */

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

.band { padding: var(--band) 0; }
.band--surface { background: var(--paper-2); }
.band--dark    { background: var(--ink); }
.band--accent  { background: var(--accent); }

/* ---------------------------------------------------------------------------
   4. Type
   --------------------------------------------------------------------------- */

.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.band--dark .label { color: rgba(255,255,255,.5); }

.h2 {
  font-family: var(--display);
  font-size: clamp(40px, 4.5vw, 68px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 24px;
}
.h2 em { font-style: italic; color: var(--muted-2); }
.band--dark .h2 { color: var(--white); }
.band--dark .h2 em { color: rgba(255,255,255,.28); }

.body-lg {
  font-size: 18px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--muted);
  max-width: 560px;
}
.band--dark .body-lg { color: rgba(255,255,255,.5); }

/* ---------------------------------------------------------------------------
   5. Buttons
   --------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 100px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }

.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-hover); color: var(--white); }

.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-2); color: var(--white); }

.btn--ghost-light {
  border-color: rgba(255,255,255,.22);
  color: rgba(255,255,255,.75);
  font-weight: 500;
  background: transparent;
}
.btn--ghost-light:hover {
  border-color: rgba(255,255,255,.55);
  color: var(--white);
  background: transparent;
}

/* Inline text link with a nudging arrow. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  color: var(--accent);
  transition: gap .2s;
}
.arrow-link:hover { gap: 18px; color: var(--accent); }
.arrow-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------------------------------------------------------------------------
   6. Icons
   Single line set, 1.5 stroke throughout. Size is set per context.
   --------------------------------------------------------------------------- */

.icon {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* ---------------------------------------------------------------------------
   7. Navigation
   --------------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(244,245,247,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, border-color .3s;
}

/* Inverted state, applied by JS while the dark hero is in view. */
.nav.is-dark {
  background: rgba(11,12,16,.95);
  border-bottom-color: var(--border-dark);
}

.nav-logo {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav.is-dark .nav-logo { color: var(--white); }

.nav-logo sup {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .5px;
  background: var(--accent);
  color: var(--white);
  padding: 2px 5px;
  border-radius: 4px;
  vertical-align: super;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .2px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav.is-dark .nav-links a { color: rgba(255,255,255,.6); }
.nav.is-dark .nav-links a:hover,
.nav.is-dark .nav-links a[aria-current="page"] { color: var(--white); }

.nav-btn {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 24px;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s, color .25s, transform .25s;
}
.nav-btn:hover { background: var(--accent); color: var(--white); transform: translateY(-1px); }
.nav.is-dark .nav-btn { background: var(--white); color: var(--ink); }
.nav.is-dark .nav-btn:hover { background: var(--accent-light); color: var(--ink); }

/* Mobile toggle, revealed by JS so it never shows without working. */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
}
.nav.is-dark .nav-toggle { color: var(--white); }
.nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; fill: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------------------------------------------------------------------------
   8. Hero
   --------------------------------------------------------------------------- */

.hero {
  background: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) 80px;
  position: relative;
  overflow: hidden;
}

/* Flat dot grid. Solid dots on solid ground, no colour ramp. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-marquee {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--display);
  font-size: 220px;
  font-weight: 900;
  letter-spacing: -4px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.05);
  pointer-events: none;
  animation: marquee 24s linear infinite;
}
@keyframes marquee {
  from { transform: translateY(-50%) translateX(0); }
  to   { transform: translateY(-50%) translateX(-50%); }
}

.hero-topbar {
  position: absolute;
  top: 100px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  z-index: 1;
}
.hero-topbar span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-topbar span::before {
  content: '';
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,.3);
}
.hero-topbar em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(255,255,255,.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  animation: fade-up .9s ease both;
}
.hero-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(58px, 8.5vw, 130px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -3px;
  color: var(--white);
  animation: fade-up .9s .1s ease both;
}
.hero h1 em { font-style: italic; color: var(--accent-light); }

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 60px;
  animation: fade-up .9s .2s ease both;
}
.hero-desc {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 300;
  color: rgba(255,255,255,.55);
  max-width: 440px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.scroll-hint {
  position: absolute;
  bottom: 40px;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  animation: fade-up .9s .4s ease both;
}
.scroll-hint::before {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
  position: relative;
  overflow: hidden;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------------
   9. Ticker
   --------------------------------------------------------------------------- */

.ticker {
  background: var(--accent);
  padding: 14px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
}
.ticker-track span::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------------
   10. Services
   --------------------------------------------------------------------------- */

.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}

/* 1px background showing through the grid gap gives hairline rules without
   doubling borders between cards. */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.service {
  background: var(--paper);
  padding: 44px 36px;
  transition: background .3s;
}
.service:hover { background: var(--ink); }

.service-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 28px;
  transition: color .3s;
}
.service:hover .service-num { color: rgba(255,255,255,.3); }

.service .icon {
  color: var(--accent);
  margin-bottom: 20px;
  transition: color .3s;
}
.service:hover .icon { color: var(--accent-light); }

.service h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--ink);
  margin-bottom: 14px;
  transition: color .3s;
}
.service:hover h3 { color: var(--white); }

.service p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  transition: color .3s;
}
.service:hover p { color: rgba(255,255,255,.55); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
  list-style: none;
}
.tags li {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--paper-3);
  color: var(--muted);
  transition: background .3s, color .3s;
}
.service:hover .tags li { background: rgba(255,255,255,.1); color: rgba(255,255,255,.6); }

/* ---------------------------------------------------------------------------
   11. Process
   --------------------------------------------------------------------------- */

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 64px;
}
.step {
  padding: 48px 36px;
  border-right: 1px solid var(--border-dark);
  transition: background .3s;
}
.step:last-child { border-right: none; }
.step:hover { background: rgba(255,255,255,.03); }

.step-num {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  color: rgba(255,255,255,.07);
  margin-bottom: 24px;
}
.step h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--white);
  margin-bottom: 12px;
}
.step p {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 300;
  color: rgba(255,255,255,.5);
}

/* ---------------------------------------------------------------------------
   12. Products
   --------------------------------------------------------------------------- */

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
}

.product {
  border-radius: var(--radius);
  padding: 52px;
  transition: transform .3s;
}
.product:hover { transform: translateY(-4px); }
.product--dark  { background: var(--ink-2);  border: 1px solid var(--border-dark); }
.product--light { background: var(--paper-3); border: 1px solid var(--border); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 36px;
}
.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
/* Default is the light-ground version, used on Work. The dark product card on
   Home overrides it below. */
.status--live {
  background: rgba(22,163,74,.12);
  color: var(--live);
  border: 1px solid rgba(22,163,74,.30);
}
.product--dark .status--live {
  background: rgba(74,222,128,.14);
  color: var(--live-light);
  border-color: rgba(74,222,128,.28);
}
.status--dev {
  background: rgba(0,0,0,.05);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* App icon sitting beside the product name, the way a store listing reads. */
.product-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.product-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  flex-shrink: 0;
}
.product-head h3 { margin-bottom: 4px; }
.product-head .product-cat { margin-bottom: 0; }

.product h3 {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
}
.product--dark h3  { color: var(--white); }
.product--light h3 { color: var(--ink); }

.product-cat {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  margin-bottom: 24px;
}
.product--dark .product-cat  { color: rgba(255,255,255,.42); }
.product--light .product-cat { color: var(--muted); }

.product p {
  font-size: 15px;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 36px;
}
.product--dark p  { color: rgba(255,255,255,.55); }
.product--light p { color: var(--muted); }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  list-style: none;
}
/* eRegister has no link under its pills, so the trailing space would hang. */
.pills:last-child { margin-bottom: 0; }
.pills li {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
}
.product--dark .pills li  { background: rgba(255,255,255,.07); color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.08); }
.product--light .pills li { background: var(--paper); color: var(--muted); border: 1px solid var(--border); }

.product--dark .arrow-link { color: var(--accent-light); }
.product--dark .arrow-link:hover { color: var(--accent-light); }

/* ---------------------------------------------------------------------------
   13. CTA band
   --------------------------------------------------------------------------- */

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 48px;
}
.band--accent .h2 { color: var(--white); }
.band--accent .h2 em { color: rgba(255,255,255,.65); }
.cta-inner p {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 300;
  color: rgba(255,255,255,.85);
  max-width: 480px;
}

/* ---------------------------------------------------------------------------
   14. Footer
   --------------------------------------------------------------------------- */

.footer {
  background: var(--ink);
  border-top: 1px solid var(--border-dark);
  padding: 72px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-logo {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--white);
  text-decoration: none;
}
.footer-logo sup {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 700;
  background: var(--accent);
  color: var(--white);
  padding: 2px 5px;
  border-radius: 4px;
  vertical-align: super;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, auto));
  gap: 64px;
}
.footer-cols h2 {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 18px;
}
.footer-cols ul { list-style: none; }
.footer-cols li + li { margin-top: 10px; }
.footer-cols a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}
.footer-cols a:hover { color: var(--white); }

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 32px;
}
.footer-legal p {
  font-size: 13px;
  line-height: 1.7;
  font-weight: 300;
  color: rgba(255,255,255,.5);
  max-width: 640px;
}

/* ---------------------------------------------------------------------------
   15. Page head
   Dark banner under the fixed nav on every page except Home, which has the
   hero instead. Carries the same dot grid so the two read as one family.
   --------------------------------------------------------------------------- */

.page-head {
  background: var(--ink);
  padding: calc(var(--nav-h) + 104px) 0 104px;
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }

.page-head h1 {
  font-family: var(--display);
  font-size: clamp(46px, 6.5vw, 92px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2.5px;
  color: var(--white);
  margin-bottom: 28px;
}
.page-head h1 em { font-style: italic; color: var(--accent-light); }

.page-head .lead {
  font-size: 18px;
  line-height: 1.8;
  font-weight: 300;
  color: rgba(255,255,255,.6);
  max-width: 620px;
}

/* ---------------------------------------------------------------------------
   16. Projects (Work)
   --------------------------------------------------------------------------- */

.project {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.project:first-child { border-top: none; padding-top: 0; }
.project:last-child { padding-bottom: 0; }

.project-aside h2 {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 8px;
  word-break: break-word;
}

.project-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.project-head h2 { margin-bottom: 0; }
.project-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  flex-shrink: 0;
}
.project-cat {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--muted);
  margin-bottom: 32px;
}

.project-meta { margin-bottom: 32px; }
.project-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.project-meta dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.project-meta dd {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.project-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.project-links .btn { width: 100%; }

.project-body > p {
  font-size: 18px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--muted);
  max-width: 640px;
}
.project-body > p + p { margin-top: 20px; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
  list-style: none;
}
.feature-grid li { background: var(--paper); padding: 32px 28px; }
.feature-grid h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--ink);
  margin-bottom: 10px;
}
.feature-grid p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* Flags a feature that is not shipped yet, so a Live project cannot imply it. */
.soon-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  margin-left: 8px;
  vertical-align: 2px;
}

/* ---------------------------------------------------------------------------
   17. Mission and vision (About)
   --------------------------------------------------------------------------- */

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
}
.mv-card {
  padding: 56px 48px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.mv-card--mission { background: var(--ink); border-color: var(--border-dark); }
.mv-card--vision  { background: var(--paper-2); }

.mv-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.mv-card--mission .mv-label { color: var(--accent-light); }
.mv-card--vision .mv-label  { color: var(--muted); }

.mv-card h3 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.mv-card--mission h3 { color: var(--white); }
.mv-card--vision h3  { color: var(--ink); }

.mv-card p { font-size: 16px; line-height: 1.8; font-weight: 300; }
.mv-card--mission p { color: rgba(255,255,255,.6); }
.mv-card--vision p  { color: var(--muted); }

/* ---------------------------------------------------------------------------
   18. Values (About)
   --------------------------------------------------------------------------- */

.values-list {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  list-style: none;
}
.value-row {
  display: grid;
  grid-template-columns: 40px 44px 240px 1fr;
  align-items: center;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left .3s;
}
.value-row:hover { padding-left: 16px; }

.value-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
}
.value-row .icon { width: 26px; height: 26px; color: var(--accent); }
.value-row h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.5px;
  color: var(--ink);
}
.value-row p {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
   19. Contact
   --------------------------------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-intro {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 40px;
}

.contact-details { list-style: none; }
.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-details li:first-child { border-top: 1px solid var(--border); }
.detail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-value { font-size: 16px; font-weight: 500; color: var(--ink); }
.detail-value a { color: var(--ink); text-decoration: none; transition: color .2s; }
.detail-value a:hover { color: var(--accent); }

.contact-form {
  background: var(--ink);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 48px;
}
.contact-form h2 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--white);
  margin-bottom: 6px;
}
.form-sub {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,.5);
  margin-bottom: 36px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--body);
  font-size: 15px;
  color: var(--white);
  outline: none;
  resize: vertical;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,.32); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent-light); outline: none; }
.field select option { background: var(--ink-2); color: var(--white); }

/* Native validation styling, only after the user has tried to submit. */
.contact-form.is-validated .field input:invalid,
.contact-form.is-validated .field select:invalid,
.contact-form.is-validated .field textarea:invalid { border-color: #FF8B8B; }

.form-submit {
  width: 100%;
  margin-top: 8px;
  border-radius: var(--radius-sm);
  padding: 16px;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--accent-light);
}
.form-status:empty { margin-top: 0; }

.form-alt {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-dark);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 300;
  color: rgba(255,255,255,.55);
}
.form-alt a { color: var(--accent-light); }

/* ---------------------------------------------------------------------------
   20. Not found
   --------------------------------------------------------------------------- */

.notfound {
  min-height: 72vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 80px) 0 80px;
}
.notfound .code {
  font-family: var(--display);
  font-size: clamp(80px, 14vw, 180px);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -6px;
  color: var(--accent);
  margin-bottom: 24px;
}
.notfound h1 {
  font-family: var(--display);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: 20px;
}
.notfound p {
  font-size: 18px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 36px;
}

/* ---------------------------------------------------------------------------
   21. Scroll reveal
   --------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------------
   22. Responsive
   --------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  :root { --band: 96px; }
  .services-head  { grid-template-columns: 1fr; gap: 32px; }
  .project        { grid-template-columns: 1fr; gap: 40px; }
  .project-links  { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 24px; }
  .project-links .btn { width: auto; }
  .mv-grid        { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .value-row      { grid-template-columns: 32px 36px 1fr; row-gap: 12px; gap: 20px; }
  .value-row p    { grid-column: 3; }
  .services-grid  { grid-template-columns: 1fr 1fr; }
  .process-steps  { grid-template-columns: 1fr 1fr; }
  .step           { border-right: none; border-bottom: 1px solid var(--border-dark); }
  .step:nth-child(odd) { border-right: 1px solid var(--border-dark); }
  .step:nth-last-child(-n+2) { border-bottom: none; }
  .products-grid  { grid-template-columns: 1fr; }
  .footer-top     { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root {
    --gutter: var(--gutter-sm);
    --band: var(--band-sm);
  }

  .nav-links { display: none; }
  .nav-btn   { display: none; }
  .nav-toggle.is-ready { display: block; }

  /* Panel drops from under the fixed bar when toggled open. */
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter-sm) 20px;
  }
  .nav.is-dark .nav-links.is-open {
    background: var(--ink);
    border-bottom-color: var(--border-dark);
  }
  .nav-links.is-open li { border-top: 1px solid var(--border); }
  .nav.is-dark .nav-links.is-open li { border-top-color: var(--border-dark); }
  .nav-links.is-open a { display: block; padding: 16px 0; font-size: 16px; }

  .hero { min-height: 88vh; padding-bottom: 64px; }
  .hero-marquee { font-size: 110px; }
  .hero-topbar { top: 88px; }
  .hero-topbar em { display: none; }
  .hero-bottom { margin-top: 40px; gap: 28px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
  .scroll-hint { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .step { border-right: none !important; }
  .step:last-child { border-bottom: none; }

  .product { padding: 36px 28px; }
  .product h3 { font-size: 34px; }

  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }

  .page-head { padding: calc(var(--nav-h) + 64px) 0 64px; }
  .project-aside h2 { font-size: 34px; }
  .feature-grid { grid-template-columns: 1fr; }
  .mv-card { padding: 36px 28px; }
  .mv-card h3 { font-size: 26px; }

  /* The icon column is dropped on phones; the number alone carries the order. */
  .value-row { grid-template-columns: 32px 1fr; gap: 8px 16px; }
  .value-row .icon { display: none; }
  .value-row h3 { grid-column: 2; font-size: 21px; }
  .value-row p { grid-column: 2; }
  .value-row:hover { padding-left: 0; }

  .contact-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   23. Motion and print
   --------------------------------------------------------------------------- */

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

@media print {
  .nav, .ticker, .scroll-hint, .hero-marquee { display: none; }
  body { background: #fff; color: #000; }
}
