/* ==========================================================================
   Loquinar — site stylesheet
   Brand palette derived from the original site: #0C3C60 / #39729B / #6EA4CA
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  /* Brand navy scale */
  --navy-900: #061f30;
  --navy-800: #082b45;
  --navy-700: #0c3c60; /* primary brand colour */
  --navy-600: #16507c;
  --navy-500: #39729b; /* secondary */
  --sky-400:  #6ea4ca; /* accent */
  --sky-100:  #d1e0eb; /* light accent */

  /* Hover green — dark enough to carry white label text at AA */
  --green-600: #2e7d5b;
  --green-700: #256849;

  /* Neutrals */
  --paper:     #ffffff;
  --paper-alt: #f4f7f9;
  --ink:       #16202a;
  --ink-soft:  #4d5f70;
  --rule:      #dfe6ec;

  /* Type */
  --font-head: "Raleway", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  /* Layout */
  --container: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(6, 31, 48, .06), 0 2px 8px rgba(6, 31, 48, .05);
  --shadow-md: 0 6px 16px rgba(6, 31, 48, .09), 0 2px 4px rgba(6, 31, 48, .06);
  --shadow-lg: 0 18px 40px rgba(6, 31, 48, .14);

  --header-h: 74px;
}

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

html {
  scroll-behavior: smooth;
  /* Stop sticky header covering anchor targets */
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1rem, .97rem + .16vw, 1.075rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy-700);
  margin: 0 0 .6em;
  letter-spacing: -.015em;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-600); }
a:hover { color: var(--navy-700); }

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

/* --- Layout primitives -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--alt { background: var(--paper-alt); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* Section headings and ledes run the full container width. The 62ch measure
   this used to carry wrapped them around halfway across the page. */
.section__head { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Small uppercase eyebrow label above headings */
.eyebrow {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin: 0 0 .75rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--sky-100);
  max-width: 5rem;
}

h2 { font-size: clamp(1.65rem, 1.25rem + 1.75vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }

.lede {
  font-size: clamp(1.075rem, 1rem + .35vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.65;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy-700);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(110, 164, 202, .18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}
.brand img { width: 38px; height: 38px; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .17em;
  color: #fff;
}
.brand__tag {
  display: block;
  font-family: var(--font-body);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky-400);
  font-weight: 600;
  margin-top: 1px;
}

/* Navigation */
.nav { display: flex; align-items: center; gap: clamp(.4rem, 1.6vw, 1.6rem); }
.nav a {
  color: var(--sky-100);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .87rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .5rem .25rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: #fff; border-bottom-color: var(--sky-400); }
.nav a[aria-current] { color: #fff; border-bottom-color: var(--sky-400); }

.nav__cta {
  background: var(--sky-400);
  color: var(--navy-900) !important;
  border-radius: 6px;
  padding: .5rem 1.1rem !important;
  border-bottom: none !important;
}
.nav__cta:hover { background: #fff; }

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1000px 520px at 78% -10%, rgba(57, 114, 155, .55), transparent 60%),
    linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 58%, #04141f 100%);
  padding-block: clamp(4rem, 11vw, 8rem);
  overflow: hidden;
}

/* Faint grid texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(110, 164, 202, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 164, 202, .06) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 72% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 72% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 1.5rem + 4.2vw, 4.4rem);
  letter-spacing: .04em;
  margin: 0 0 .35em;
}
.hero__sub {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 1rem + .7vw, 1.6rem);
  font-weight: 600;
  color: var(--sky-400);
  line-height: 1.4;
  margin: 0 0 1.4rem;
  max-width: 22ch;
}
.hero__blurb { color: var(--sky-100); max-width: 52ch; margin-bottom: 2rem; }

.hero__mark {
  width: clamp(140px, 20vw, 220px);
  height: auto;
  filter: drop-shadow(0 12px 34px rgba(0, 0, 0, .5));
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(110, 164, 202, .13);
  border: 1px solid rgba(110, 164, 202, .35);
  color: var(--sky-100);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ec9a8;
  box-shadow: 0 0 0 3px rgba(78, 201, 168, .22);
}

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
  text-decoration: none;
  padding: .8rem 1.6rem;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--sky-400); color: var(--navy-900); }
.btn--primary:hover { background: #fff; color: var(--navy-900); }

.btn--ghost { border-color: rgba(209, 224, 235, .45); color: var(--sky-100); }
.btn--ghost:hover { border-color: var(--sky-400); color: #fff; }

.btn--solid { background: var(--navy-700); color: #fff; }
.btn--solid:hover { background: var(--navy-600); color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* --- Stat strip --------------------------------------------------------- */
.stats {
  background: var(--navy-700);
  color: #fff;
  padding-block: clamp(2rem, 4vw, 3rem);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.stat__num {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  display: block;
}
.stat__label {
  display: block;
  margin-top: .6rem;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sky-400);
  font-weight: 600;
}

/* --- Cards -------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--sky-400);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-top-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--navy-700);
}
.card h3 { margin-bottom: .7rem; }
.card p { color: var(--ink-soft); }
.card ul { color: var(--ink-soft); }
.card__link {
  margin-top: auto;
  padding-top: 1.3rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy-600);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.card__link::after { content: "→"; transition: transform .18s ease; }
.card__link:hover::after { transform: translateX(4px); }

/* Ticked list */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .5rem;
}

/* Two ticked lists stacked in one card get a hairline divider between them
   (the Citrix card on the home page). Adjacent-sibling only, so a single
   list is never given a stray rule. */
.ticks + .ticks {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky-400);
}

/* --- Prose blocks ------------------------------------------------------- */
.prose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.8rem, 4vw, 3.2rem);
}

.block { max-width: 68ch; }
.block h3 {
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--sky-100);
  margin-bottom: 1rem;
}

.pull {
  border-left: 4px solid var(--sky-400);
  background: var(--paper-alt);
  padding: clamp(1.3rem, 3vw, 1.9rem) clamp(1.4rem, 3vw, 2rem);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1rem + .4vw, 1.28rem);
  font-weight: 600;
  line-height: 1.55;
  color: var(--navy-700);
  margin: 0;
}
.section--alt .pull { background: #fff; }

/* --- Customer chips ----------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.chips li {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .42rem 1rem;
  font-size: .87rem;
  color: var(--ink-soft);
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.chips li:hover {
  background: var(--green-600);
  border-color: var(--green-700);
  color: #fff;
}

/* --- Tech columns (products page) --------------------------------------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}
.tech {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.tech h3 {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.1rem;
  font-size: 1.15rem;
}
.tech h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--sky-400);
  flex-shrink: 0;
}

/* --- Contact ------------------------------------------------------------ */
.contact {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(57, 114, 155, .5), transparent 62%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff;
}
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--sky-400); }
.contact .eyebrow::after { background: rgba(110, 164, 202, .3); }
.contact p { color: var(--sky-100); }

.contact__card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(110, 164, 202, .28);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 620px;
}
.contact__label {
  font-size: .74rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--sky-400);
  font-weight: 700;
  margin: 0 0 .5rem;
}
.contact__email {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 1rem + 1vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  word-break: break-word;
  border-bottom: 2px solid var(--sky-400);
  padding-bottom: 2px;
}
.contact__email:hover { color: var(--sky-400); }
.contact__note {
  margin-top: 1.4rem;
  font-size: .95rem;
  color: var(--sky-100);
  opacity: .85;
}

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: #04141f;
  color: var(--sky-100);
  padding-block: 2.75rem;
  font-size: .89rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}
.site-footer a { color: var(--sky-100); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__meta { display: flex; flex-wrap: wrap; gap: 1.5rem; opacity: .8; }

/* --- Motion ------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* --- Responsive --------------------------------------------------------- */
/* The brand tagline is the widest part of the brand block. With six nav
   items alongside it, brand + nav needs ~1036px, so retire the tagline
   before the two can collide. */
@media (max-width: 1140px) {
  .brand__tag { display: none; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mark { display: none; }

  /* Even with the tagline gone, six nav items will not sit on one row
     beside the brand. Stack them onto their own wrapping row. */
  :root { --header-h: 112px; }
  .site-header__inner {
    flex-direction: column;
    gap: .4rem;
    padding-block: .7rem;
  }
  .nav { flex-wrap: wrap; justify-content: center; gap: .35rem .9rem; }
}

@media (max-width: 620px) {
  :root { --header-h: 64px; }

  /* The nav wraps to two lines here, making a sticky header ~140px tall —
     roughly a fifth of a phone screen. Let it scroll away instead. */
  .site-header { position: static; }
  html { scroll-padding-top: 1rem; }

  .nav a { font-size: .78rem; padding: .35rem .2rem; }
  .nav__cta { padding: .4rem .85rem !important; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-header, .nav, .btn, .hero::after { display: none !important; }
  body { color: #000; }
  .hero, .contact, .stats { background: none !important; color: #000 !important; }
  .hero h1, .contact h2, .stat__num { color: #000 !important; }
}

/* --- Interior page variants --------------------------------------------- */
/* Smaller hero heading for pages below the home page.
   Qualified with `.hero h1` so it outranks the `.hero h1` base rule. */
.hero h1.hero__title--page {
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.4rem);
  letter-spacing: -.01em;
}

/* Eyebrow sitting on a dark background */
.eyebrow--light { color: var(--sky-400); }
.eyebrow--light::after { background: rgba(110, 164, 202, .3); }

/* Closing note after a prose grid */
.section__head--footnote {
  margin-top: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0;
}

/* Vertical breathing room between stacked prose grids in one section */
.prose-grid--gap-below { margin-bottom: clamp(2rem, 4vw, 3rem); }
.prose-grid--gap-above { margin-top: clamp(2rem, 4vw, 3rem); }

/* Four-column variant — narrower minimum so four columns fit the container */
.tech-grid--four {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr));
}
/* Lead-in line above a ticked list inside a card */
.card__lead,
.tech__lead {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy-600);
  margin-bottom: .75rem;
}
/* Links inside ticked lists need to read as links against the body text */
.ticks a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 2px; }
.ticks a:hover { color: var(--navy-700); }

/* --- Image credit ------------------------------------------------------- */
.site-footer__credit {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(110, 164, 202, .18);
  font-size: .78rem;
  opacity: .7;
  width: 100%;
}

/* --- Content figures ---------------------------------------------------- */
.figure { margin: 0 0 clamp(1.5rem, 3vw, 2.25rem); }
.figure:last-child { margin-bottom: 0; }
.figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.figure figcaption {
  margin-top: .7rem;
  font-size: .85rem;
  color: var(--ink-soft);
}
/* Diagram-style figures shouldn't blow up past their natural size */
.figure--contain img { max-width: 860px; margin-inline: auto; }

/* Two-column card grid for longer prose blocks */
.card-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}
/* Vertical rhythm for stacked blocks within one section */
.flow > * + * { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* The ERS mark is a 100x100 original, so cap its display size — upscaling it to
   the default 220px is what made it look soft. Placed at the end of the file and
   double-classed so it beats .hero__mark on both specificity and source order. */
.hero__mark.hero__mark--compact { width: clamp(84px, 10vw, 116px); }

/* --- Home page hero photo ------------------------------------------------
   Sydney at dusk, colour-graded toward blue to sit in the navy palette.
   The graded photo averages 76/255 (the NYC one on the ERS page averages 152),
   so it carries a noticeably lighter wash and shows far more of the skyline.
   Double-classed and placed last so it beats .hero on specificity and order. */
.hero.hero--sydney {
  background:
    linear-gradient(100deg,
      rgba(6, 31, 48, .88) 0%,
      rgba(6, 31, 48, .74) 42%,
      rgba(6, 31, 48, .36) 72%,
      rgba(6, 31, 48, .16) 100%),
    url("/assets/images/hero-sydney.jpg") center 52% / cover no-repeat;
  background-color: var(--navy-900);
}

/* Below 860px the logo is hidden and the copy runs full width, so the thinned
   right-hand side would sit behind text. Uniform wash, smaller file. */
@media (max-width: 860px) {
  .hero.hero--sydney {
    background:
      linear-gradient(165deg,
        rgba(6, 31, 48, .84) 0%,
        rgba(6, 31, 48, .80) 55%,
        rgba(4, 20, 31, .86) 100%),
      url("/assets/images/hero-sydney-960.jpg") center 52% / cover no-repeat;
    background-color: var(--navy-900);
  }
}

/* ==========================================================================
   Rick Tony Software — brand layer
   Appended to the shared stylesheet. Colours are sampled from the company
   logo: a brass diving helmet on a deep navy disc inside a brass ring.
   ========================================================================== */

:root {
  /* Navy taken from the logo disc — deeper and bluer than the base palette. */
  --rt-navy:      #142744;
  --rt-navy-deep: #0d1b31;

  /* Antique brass, light through to shadow. */
  --brass-pale:  #efdba4;
  --brass-light: #dcc079;
  --brass:       #c0a050;
  --brass-dark:  #8a6e2f;
  --brass-deep:  #6b5423;

  /* The band itself, defined once and reused by every framed element and by
     the hero heading, so every piece of brass on the page matches exactly. */
  --brass-band: linear-gradient(
      135deg,
      var(--brass-dark)  0%,
      var(--brass-pale)  10%,
      var(--brass)       22%,
      var(--brass-deep)  36%,
      var(--brass-light) 52%,
      var(--brass)       66%,
      var(--brass-pale)  82%,
      var(--brass-dark) 100%);

  /* Bevel: a dark line on each edge of the band with a pale highlight just
     inside, so it reads dark | brass | dark | light | interior — the way a
     turned metal ring catches light. */
  --brass-bevel:
    0 0 0 1px rgba(46, 34, 10, .90),
    0 3px 10px rgba(0, 0, 0, .32),
    inset 0 0 0 1px rgba(46, 34, 10, .78),
    inset 0 0 0 2px rgba(255, 244, 214, .26);
}

/* Antique brass frame. border-image cannot do rounded corners, so the band is
   painted as a border-box gradient with the interior on the padding-box. */
.site-header,
.site-footer,
.contact {
  border: 9px solid transparent;
  border-radius: 18px;
  background-origin: border-box;
  box-shadow: var(--brass-bevel);
}

.site-header {
  background-image: linear-gradient(var(--rt-navy), var(--rt-navy)), var(--brass-band);
  background-clip: padding-box, border-box;
  background-color: var(--rt-navy);
}

.site-footer {
  background-image: linear-gradient(var(--rt-navy-deep), var(--rt-navy-deep)), var(--brass-band);
  background-clip: padding-box, border-box;
  background-color: var(--rt-navy-deep);
}

/* "Get in touch" keeps its own navy wash on the padding box; the brass band
   is added as the final border-box layer. */
.contact {
  background-image:
    radial-gradient(800px 400px at 20% 0%, rgba(57, 114, 155, .5), transparent 62%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900)),
    var(--brass-band);
  background-clip: padding-box, padding-box, border-box;
  background-color: var(--navy-900);
  /* Inset it slightly so the frame reads as a plaque rather than a full band. */
  margin-inline: clamp(0px, 2vw, 28px);
}

/* Hero heading in brass. The gradient is clipped to the glyphs; the solid
   fallback applies wherever background-clip: text is unsupported. */
.hero h1 {
  color: var(--brass-light);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 {
    background-image: var(--brass-band);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Lifts the brass off the photograph behind it. */
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .55));
  }
}

/* The brand mark is circular, so let it sit as a disc in the header. */
.brand img {
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(239, 219, 164, .45);
}

/* Gold call-to-action buttons in the header nav. */
.nav__cta {
  background: linear-gradient(180deg, var(--brass-light), var(--brass));
  color: #23180a !important;
  /* !important is required on all four sides: the base rule carries
     `border-bottom: none !important` to cancel the underline that .nav a
     applies, which would otherwise strip this button's bottom edge. */
  border: 1px solid var(--brass-dark) !important;
  font-weight: 700;
}
.nav__cta:hover,
.nav__cta:focus-visible {
  background: linear-gradient(180deg, var(--brass-pale), var(--brass-light));
  color: #23180a !important;
}

/* Secondary actions: same button shape so the row reads as a set, but outlined
   in brass rather than filled, so the gold buttons stay the primary path. */
.nav__cta.nav__cta--ghost {
  background: transparent;
  color: var(--sky-100) !important;
  border: 1px solid rgba(239, 219, 164, .45) !important;
  font-weight: 600;
}
.nav__cta.nav__cta--ghost:hover,
.nav__cta.nav__cta--ghost:focus-visible {
  background: rgba(239, 219, 164, .14);
  border-color: var(--brass-light) !important;
  color: #fff !important;
}

/* Keep the gold buttons together as a group at the right of the nav. They
   stay on one line as a unit even when the text links above them wrap. */
.nav__actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding-left: clamp(.2rem, 1vw, .8rem);
  /* Four buttons will not fit one line on a phone; without wrapping they push
     the whole page into a horizontal scroll. */
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: .45rem;
  min-width: 0;
}

/* Five text links plus three buttons need ~1233px, more than the 1120px site
   container allows, which pushed the nav past the viewport. Give the header
   alone a wider container so it stays on one line on a laptop; page content
   keeps the original measure. Below that width the nav wraps cleanly. */
.site-header .container { max-width: 1420px; }
.site-header__inner { flex-wrap: wrap; }

.nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: clamp(.35rem, .9vw, .85rem);
  row-gap: .4rem;
  min-width: 0;
}

.nav a { letter-spacing: .035em; }

/* Five text links plus four buttons is a lot of horizontal load; tighten the
   button padding so the row survives on a laptop before it has to wrap. */
.nav__cta { padding: .5rem .85rem !important; }

/* Footer links share the surrounding text colour, so without an underline the
   company names would not read as links at all. A brass rule keeps them
   discoverable without shouting; hover promotes it to white. */
.site-footer a {
  text-decoration: underline;
  text-decoration-color: rgba(239, 219, 164, .45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  text-decoration-color: var(--brass-light);
}

/* Footer trading-name line: the legal entity sits under the trading name. */
.site-footer__legal {
  width: 100%;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(239, 219, 164, .18);
  font-size: .84rem;
  opacity: .85;
}

/* Pages without a hero (the licence page) still need the sticky header to
   clear the first section. */
.page--no-hero #main { padding-top: 1.5rem; }

@media (max-width: 700px) {
  /* A 9px frame eats real estate on a narrow screen; keep it substantial but
     proportionate, and tighten the radius to match the thinner band. */
  .site-header, .site-footer, .contact { border-width: 5px; border-radius: 12px; }
  .nav__actions { margin-left: 0; padding-left: 0; }
}

/* --- Brass rivets --------------------------------------------------------
   Domed bullet: the radial highlight sits up and left of centre so it reads
   as a struck rivet catching the light, not a flat gold disc.             */

.rivets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rivets li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: .7rem;
  line-height: 1.6;
}

.rivets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%,
      var(--brass-pale)  0%,
      var(--brass-light) 28%,
      var(--brass)       52%,
      var(--brass-dark)  82%,
      var(--brass-deep) 100%);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, .30),
    inset 0 0 0 1px rgba(46, 34, 10, .45);
}

/* Two columns of bullets, collapsing to one when there is no room. */
.rivet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3rem);
  margin-top: 1.75rem;
}

/* --- Brass separator ----------------------------------------------------- */
.brass-rule {
  border: 0;
  height: 6px;
  margin: 0;
  background-image: var(--brass-band);
  border-radius: 3px;
  box-shadow:
    0 0 0 1px rgba(46, 34, 10, .75),
    inset 0 1px 0 rgba(255, 244, 214, .35),
    0 2px 5px rgba(0, 0, 0, .22);
}

/* --- Product listings ----------------------------------------------------
   Screenshot left, summary right; the detail spans full width underneath.  */

.product__head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 3.5rem);
  /* Top-aligned: the right column now carries a full benefits list, so
     centring would float the screenshot awkwardly low beside it. */
  align-items: start;
}

.product__shot {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-lg);
  background: var(--navy-900);
}

.product__shot img { width: 100%; height: auto; display: block; }

.product__intro h2 { margin-bottom: .35em; }

.product__tag {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
  font-weight: 600;
  color: var(--navy-500);
  margin: 0 0 1rem;
}

/* Full-width detail column below the screenshot and summary. */
.product__detail {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
}

.product__detail h3 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin: 0 0 1rem;
}

/* Platform / licensing facts, the way a store lists them under a product. */
.product__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .9rem 1.5rem;
  margin: 1.75rem 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.product__meta > div { margin: 0; }

.product__meta dt {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin-bottom: .2rem;
}

.product__meta dd {
  margin: 0;
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

@media (max-width: 860px) {
  .product__head { grid-template-columns: minmax(0, 1fr); }
}

/* --- Nested rivets, lead-ins --------------------------------------------- */

/* Second-level bullets: a smaller, flatter rivet so the hierarchy is legible
   without the sub-points competing with the points they sit under. */
.rivets ul {
  list-style: none;
  margin: .55rem 0 .95rem;
  padding-left: 0;
}

.rivets ul li {
  padding-left: 1.4rem;
  margin-bottom: .38rem;
  font-size: .95rem;
  color: var(--ink-soft);
}

.rivets ul li::before {
  width: 7px;
  height: 7px;
  top: .68em;
  background:
    radial-gradient(circle at 34% 28%,
      var(--brass-light) 0%,
      var(--brass)      48%,
      var(--brass-dark) 100%);
  box-shadow: inset 0 0 0 1px rgba(46, 34, 10, .40);
}

/* Bold run-in line introducing a list, where a real heading would be too loud. */
.lead-in {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-700);
  margin: 1.5rem 0 .65rem;
}

/* Closing remark under the principles grid. */
.principles-note {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
}

/* The product summary column runs longer now, so tighten its rhythm. */
.product__intro .rivets li { margin-bottom: .5rem; }
.product__intro p { margin-bottom: .9rem; }

/* Placeholder standing in for content that has not been written yet. */
.tbd {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
}

/* --- FAQ -----------------------------------------------------------------
   Native <details>/<summary> accordion: works with no JavaScript, is
   keyboard operable and announces its open state to screen readers.       */

.product__FAQ {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
}

.faq__title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin: 0 0 .75rem;
}

.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item:first-of-type { border-top: 1px solid var(--rule); }

.faq__item summary {
  cursor: pointer;
  list-style: none;              /* hide the default disclosure triangle */
  position: relative;
  padding: .95rem 0 .95rem 1.9rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy-700);
}

.faq__item summary::-webkit-details-marker { display: none; }

/* Brass chevron, pointing right when closed and down when open. */
.faq__item summary::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 1.35em;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: rotate(-45deg);
  transition: transform .18s ease;
}

.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--navy-600); }

.faq__answer {
  padding: 0 0 1.1rem 1.9rem;
  color: var(--ink-soft);
}

/* --- Data table ----------------------------------------------------------
   Wrapped in its own scroller so a six-column table never forces the page
   itself to scroll sideways on a narrow screen.                           */

.table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.data-table caption {
  caption-side: top;
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-500);
  padding: .9rem 1rem .6rem;
}

.data-table th {
  background: var(--navy-700);
  color: #fff;
  text-align: left;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .7rem .9rem;
  white-space: nowrap;
}

.data-table td {
  padding: .75rem .9rem;
  border-top: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink-soft);
}

.data-table tbody tr:nth-child(even) { background: var(--paper-alt); }
.data-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }

/* Hashes are long; let them wrap inside their own column rather than
   stretching the table. */
/* The installation cell carries the download link, hash and package names, so
   it needs roughly twice a normal column. Monospace and break-all are applied
   to the identifiers inside it, not the whole cell — otherwise the labels are
   set in monospace and broken mid-word. */
.data-table .hash {
  width: 30%;
  min-width: 22rem;
  line-height: 1.55;
}

/* Run-in labels inside the installation cell. */
.data-table .hash strong {
  display: inline-block;
  margin-top: .55rem;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy-500);
}

.data-table .hash > strong:first-child { margin-top: 0; }

/* Hashes and package identifiers: fixed width, and allowed to break anywhere
   because they are single unbroken tokens. */
.data-table .hashval {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: .74rem;
  word-break: break-all;
  color: var(--ink-soft);
}

.data-table .cost { white-space: nowrap; }

/* --- Setup steps ---------------------------------------------------------
   Borderless three-column table. Deliberately NOT wrapped in .table-wrap:
   that container scrolls on overflow, which would clip the hover preview.
   It stays readable narrow instead, because only the description wraps.   */

.setup-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 .5rem;
}

.setup-table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
}

.setup-table th {
  text-align: left;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy-500);
  padding: .5rem .9rem .5rem 0;
  border: 0;
}

.setup-table td {
  border: 0;                      /* no lines, as asked */
  padding: .7rem .9rem .7rem 0;
  vertical-align: top;
  color: var(--ink-soft);
}

.setup-table td:first-child {
  width: 3.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brass-dark);
  white-space: nowrap;
}

.setup-table td:nth-child(2) { width: 112px; }

/* Thumbnail button ------------------------------------------------------- */
.shot {
  position: relative;
  display: block;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--navy-900);
  cursor: zoom-in;
  overflow: visible;
}

.shot img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  transition: box-shadow .15s ease;
}

.shot:hover { border-color: var(--brass); }
.shot:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 2px; }

/* Hover preview: the same image promoted to its native 500px, pulled out of
   flow so the row does not move. Pointer devices and wide screens only —
   there is no hover on touch, and 500px will not fit a phone. */
@media (hover: hover) and (min-width: 900px) {
  .shot:hover { z-index: 30; }

  .shot:hover img {
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    max-width: none;
    border: 1px solid var(--brass-dark);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(6, 31, 48, .38);
  }
}

/* Lightbox --------------------------------------------------------------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 560px);
  max-height: 92vh;
  overflow: visible;
}

.lightbox::backdrop { background: rgba(6, 20, 31, .78); }

.lightbox__inner {
  position: relative;
  background: var(--navy-900);
  border: 6px solid transparent;
  border-radius: 14px;
  background-image: linear-gradient(var(--navy-900), var(--navy-900)), var(--brass-band);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: var(--brass-bevel);
  padding: 10px;
}

.lightbox img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.lightbox figcaption {
  color: var(--sky-100);
  font-size: .85rem;
  padding: .7rem .3rem .2rem;
  margin: 0;
}

.lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--brass-dark);
  background: linear-gradient(180deg, var(--brass-light), var(--brass));
  color: #23180a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover { background: linear-gradient(180deg, var(--brass-pale), var(--brass-light)); }

@media (max-width: 620px) {
  .setup-table td:nth-child(2) { width: 88px; }
  .shot, .shot img { width: 72px; height: 72px; }
}

/* --- Footnote under a table ---------------------------------------------
   Sits outside .table-wrap so it does not scroll sideways with the table. */

.table-note {
  font-size: .78rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: -.9rem 0 1.75rem;
  /* Full container width. A measure cap is right for body prose, but at this
     size it wrapped the note around halfway across the table above it. */
}

.table-note strong { color: var(--navy-700); }

.table-note code,
p code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;
  font-size: .92em;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: .08em .38em;
  white-space: nowrap;
}
