/* =========================================================
   IQ Brands, LLC
   Palette: ink on cool paper, petrol-teal accent.
   Type: Archivo (display) / Source Serif 4 (body) / IBM Plex Mono (record data)
   ========================================================= */

:root {
  --ink:        #0F1219;
  --ink-2:      #2A3040;
  --muted:      #5C6475;
  --paper:      #FCFCFD;
  --surface:    #F4F5F8;
  --rule:       #E2E5EC;
  --accent:     #0F5B63;
  --accent-ink: #0B4349;
  --brand:      var(--accent);

  --display: "Archivo", ui-sans-serif, "Helvetica Neue", Arial, sans-serif;
  --body:    "Source Serif 4", ui-serif, Georgia, "Times New Roman", serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap:  1120px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --radius: 8px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:        #ECEEF3;
    --ink-2:      #C3C8D4;
    --muted:      #8E96A8;
    --paper:      #0D1016;
    --surface:    #141922;
    --rule:       #242B37;
    --accent:     #4FC3CE;
    --accent-ink: #7FD7E0;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}

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

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

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

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

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1rem; font-family: var(--display); font-size: 0.9rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

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

/* ---------- shared type devices ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--ink-2);
  max-width: 56ch;
}

.head { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.head h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }

.head__note {
  margin: 0.85rem 0 0;
  color: var(--muted);
  max-width: 48ch;
}

/* ---------- logo mark ---------- */

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.mark__badge {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 88;
}

.mark__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 96;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.9rem var(--gutter);
}

.nav__links { display: none; gap: 2rem; }

.nav__links a {
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 0.25rem;
  border-bottom: 1.5px solid transparent;
}

.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  padding: 0;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
}

.nav__toggle-bars { display: grid; gap: 4px; width: 15px; }
.nav__toggle-bars i {
  display: block; height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars i:last-child  { transform: translateY(-2.75px) rotate(-45deg); }

.menu { display: grid; }
.menu[hidden] { display: none; }

.menu {
  border-top: 1px solid var(--rule);
  padding: 0.5rem var(--gutter) 1rem;
}

.menu a {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.menu a:last-child { border-bottom: 0; }

@media (min-width: 720px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .menu { display: none !important; }
}

/* ---------- sections ---------- */

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }

.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--rule);
}

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(4rem, 9vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.038em;
  font-variation-settings: "wdth" 92;
  max-width: 24ch;
  margin-bottom: 1.75rem;
}

.hero__title span { display: block; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin: 2.25rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  transition: background 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }

.btn--quiet {
  background: none;
  color: var(--ink-2);
  border-color: transparent;
  padding-inline: 0;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--rule);
}
.btn--quiet:hover {
  background: none;
  color: var(--accent-ink);
  text-decoration-color: currentColor;
}

/* ---------- the register (signature element) ---------- */

.register {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .register { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .register .record:first-child { grid-column: 1 / -1; }
}

.record {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  padding-left: clamp(1.5rem, 3vw, 2.25rem);
  overflow: hidden;
}

.record::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--brand);
}

.section--alt .record { background: var(--paper); }

.record--empty {
  background: none;
  border-style: dashed;
  --brand: var(--rule);
}

.record__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.9rem;
}

.record__name {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  letter-spacing: -0.022em;
}

.record--empty .record__name { color: var(--muted); }

.record__link {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  white-space: nowrap;
}
.record__link:hover { border-bottom-color: currentColor; }

.record__link--muted {
  color: var(--muted);
  border-bottom-color: transparent;
}

.record__desc {
  color: var(--ink-2);
  max-width: 58ch;
  margin-bottom: 1.5rem;
}

.record--empty .record__desc { color: var(--muted); }

/* ---------- metadata rows ---------- */

.meta,
.facts { margin: 0; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.meta div { display: grid; gap: 0.3rem; }

.meta dt,
.facts dt {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 500;
}

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

.dot--live {
  background: #17925C;
  box-shadow: 0 0 0 0 rgba(23, 146, 92, 0.5);
  animation: pulse 2.6s ease-out infinite;
}
.dot--soon {
  background: none;
  border: 1.5px solid var(--brand);
  width: 9px; height: 9px;
}
.dot--dev { background: none; border: 1.5px dashed var(--muted); width: 9px; height: 9px; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(23, 146, 92, 0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(23, 146, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 146, 92, 0); }
}

/* ---------- about ---------- */

.about__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 860px) {
  .about__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

.about__body { font-size: 1.125rem; color: var(--ink-2); max-width: 60ch; }

.facts {
  display: grid;
  gap: 0;
  align-self: start;
  border-top: 1px solid var(--rule);
}

.facts div {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.facts dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
}

/* ---------- contact ---------- */

.contact h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  margin-bottom: 1.25rem;
}

.contact__mail {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 90;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15em;
  word-break: break-word;
}
.contact__mail:hover { color: var(--accent-ink); }

.contact__note {
  margin-top: 2.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 52ch;
}

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--rule);
  padding-block: 2.5rem;
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.foot__legal {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.foot__links { display: flex; gap: 1.5rem; }

.foot__links a {
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.foot__links a:hover { color: var(--ink); }

.mark--foot .mark__badge { width: 26px; height: 26px; font-size: 0.75rem; }
.mark--foot .mark__name { font-size: 0.9375rem; }

/* ---------- entrance motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in { opacity: 1; transform: none; }

.hero .reveal { transition-delay: calc(var(--i, 0) * 90ms); }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- anchor offset for the sticky header ---------- */

#brands, #about, #contact { scroll-margin-top: 5rem; }

/* =========================================================
   Legal documents (privacy.html)
   ========================================================= */

.doc__wrap { max-width: 44rem; }

.doc__title {
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  letter-spacing: -0.035em;
  font-variation-settings: "wdth" 92;
  margin-bottom: 1.5rem;
}

.doc__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  margin: 0 0 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.doc__dates div { display: grid; gap: 0.25rem; }

.doc__dates dt {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc__dates dd {
  margin: 0;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 500;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 3rem;
}

.callout__title {
  font-size: 1rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.callout p { margin: 0; color: var(--ink-2); }

.toc {
  margin-bottom: 3.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.toc__title {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.5rem;
  display: grid;
  gap: 0.45rem;
}

.toc li { color: var(--muted); font-size: 0.9375rem; }

.toc a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.toc a:hover { color: var(--accent-ink); border-bottom-color: currentColor; }

.doc__section { margin-bottom: 3.25rem; scroll-margin-top: 5.5rem; }

.doc__section h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.doc__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  flex: none;
}

.doc__section h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.012em;
  margin: 2rem 0 0.75rem;
}

.doc__section p,
.doc__section li { color: var(--ink-2); }

.doc__section ul { margin: 0 0 1.1em; padding-left: 1.25rem; }
.doc__section li { margin-bottom: 0.5rem; }

.doc__section strong { color: var(--ink); font-weight: 600; }

.table-scroll { overflow-x: auto; margin: 0 0 1.25em; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  min-width: 30rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  color: var(--ink-2);
}

.table th {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--ink-2);
}

.table th:first-child,
.table td:first-child { width: 26%; }

.table td:first-child {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ink);
  padding-right: 1.5rem;
}

.doc__address {
  font-style: normal;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.8;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  margin-bottom: 1.25em;
}

.doc__back {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 500;
}

.doc__back a { text-decoration: none; }
.doc__back a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- contact: note beside the mailing address ---------- */

.contact__grid {
  display: grid;
  gap: 2.25rem;
  margin-top: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 720px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4rem;
    align-items: start;
  }
}

.contact__grid .contact__note { margin-top: 0; }

.contact__address {
  font-style: normal;
  font-family: var(--display);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--ink-2);
}

.contact__label {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
