/* ═══════════════════════════════════════════════════════════════════════════
   Intwasa Technologies — corporate site

   Palette and type from intwasa-brand/identity-src.html. The rendering is
   deliberately spare and continuous: one ground from the top of the page to the
   bottom, no colour blocks, no boxes, no rules dividing sections. Hierarchy is
   carried by type scale and vertical rhythm alone; gold is reserved for the
   things you can click and for one hairline signature under each page's opening.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ink:      #121A2C;   /* deep navy */
  --gold:     #D4A017;   /* Intwasa gold */
  --sand:     #EEF1F5;   /* cool paper */
  --cream:    #E3E3B9;   /* sampled off the bloom */
  --sunrise:  #CE5B4C;

  --ground:   #FBFBFC;
  --text:     #121A2C;
  --muted:    #56606E;
  /* --faint carries the mono eyebrows, meta lines and table labels at ~11px, so
     it has to clear 4.5:1 on the ground. A lighter grey looks more refined and
     fails AA — this is as light as it can honestly go. */
  --faint:    #667080;
  --rule:     #E2E6EB;
  --hairline: #EDEFF2;
  --goldtext: #8F6A10;   /* gold that passes contrast on paper */
  --emphasis: #8F6A10;   /* the italic phrase in a heading */
  --ambient:  rgba(212, 160, 23, .05);

  --display: "DM Serif Display", "Bodoni MT", Didot, "Playfair Display", Georgia, serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --measure: 62ch;
  --pad: clamp(1.5rem, 6vw, 5rem);
  --maxw: 1080px;
  --gap: clamp(2.25rem, 4.5vw, 4rem);
  --band: clamp(4.5rem, 10vw, 8.5rem);
  --ease: cubic-bezier(.2, .6, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:   #0B1018;
    --text:     #EDF0F4;
    --muted:    #9BA6B5;
    --faint:    #7A8698;
    --rule:     #1E2634;
    --hairline: #161D28;
    --goldtext: #E0B23A;
    --emphasis: var(--cream);
    --ambient:  rgba(212, 160, 23, .07);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.09rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}

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

a { color: inherit; transition: color .28s var(--ease), border-color .28s var(--ease); }
a:focus-visible, label:focus-visible { outline: 1px solid var(--gold); outline-offset: 5px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--sand); padding: .7rem 1rem; font-size: .9rem; }
.skip:focus { left: 0; }

/* ── type ─────────────────────────────────────────────────────────────────── */

h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -.012em;
}
h3 { font-size: 1.28rem; line-height: 1.3; }

p { margin: 0 0 1.1rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: .69rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
}

.lede {
  font-size: clamp(1.09rem, 1rem + .45vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: var(--measure);
}

.dot { color: var(--rule); margin: 0 .6em; }
.pending { font-family: var(--mono); font-size: .85em; color: var(--goldtext); }

/* ── layout ───────────────────────────────────────────────────────────────── */

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

/* sections are separated by space, never by a line */
.band { padding: var(--band) 0; }
.band + .band { padding-top: 0; }

/* mono section label in a left rail — carried over from the identity document,
   which is most of what makes the site and that document read as one system */
.spine { display: grid; grid-template-columns: 8.5rem 1fr; gap: var(--gap); }
.spine__label { padding-top: .55rem; }
.spine__body { min-width: 0; display: grid; gap: 2.5rem; }
@media (max-width: 900px) {
  .spine { grid-template-columns: 1fr; gap: 1.4rem; }
  .spine__label { padding-top: 0; }
}

/* ── shell ────────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem var(--pad);
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
}

.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand__mark { width: 28px; height: 28px; flex: none; }
.brand__text { display: flex; align-items: baseline; gap: .6rem; }
.brand__word { font-family: var(--display); font-size: 1.26rem; line-height: 1; letter-spacing: .005em; }
.brand__desc {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--faint);
}

.nav { display: flex; gap: 1.9rem; align-items: center; }
.nav__link {
  text-decoration: none; font-size: .91rem; color: var(--muted);
  position: relative; padding: .15rem 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: scaleX(1); }

.navtoggle, .navburger { display: none; }

@media (max-width: 800px) {
  .navburger { display: grid; place-items: center; width: 34px; height: 34px; flex: none; cursor: pointer; }
  .navburger span, .navburger span::before, .navburger span::after {
    display: block; width: 17px; height: 1px; background: var(--text); content: "";
  }
  .navburger span::before { transform: translateY(-5.5px); }
  .navburger span::after  { transform: translateY(4.5px); }
  .topbar { flex-wrap: wrap; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: .5rem; }
  .navtoggle:checked ~ .nav { display: flex; }
  .nav__link { padding: .9rem 0; border-top: 1px solid var(--hairline); }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--goldtext); }
  .brand__desc { display: none; }
}

/* ── opening (was the hero) ───────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  isolation: isolate;
}
/* a single wide, very faint gold wash — the only thing on the page that isn't
   type, space or a hairline. It reads as light rather than as a panel. */
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 150%; z-index: -1;
  background: radial-gradient(70% 60% at 22% 0%, var(--ambient), transparent 70%);
  pointer-events: none;
}
.hero__in { display: grid; grid-template-columns: 1fr; }
.hero__mark {
  order: -1;
  width: clamp(56px, 7vw, 72px);
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}
.hero__eyebrow { margin-bottom: 1.75rem; }
.hero h1 {
  font-size: clamp(2.3rem, 1.3rem + 4.6vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -.018em;
  margin-bottom: 1.8rem;
  max-width: 21ch;
}
.hero h1 em { font-style: italic; color: var(--emphasis); }
.hero__lede {
  font-size: clamp(1.07rem, 1rem + .5vw, 1.28rem);
  line-height: 1.62;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 2.6rem;
}

/* the flower's colour rotation as a hairline, aligned to the content column —
   a signature under each page's opening rather than a divider across it */
.gradrule {
  height: 1px; border: 0;
  width: min(100% - 2 * var(--pad), var(--maxw));
  margin: 0 auto;
  background: linear-gradient(90deg, var(--cream), var(--gold) 45%, var(--sunrise) 78%, transparent);
  opacity: .8;
}

/* ── links in place of buttons ────────────────────────────────────────────── */

.cta { display: flex; flex-wrap: wrap; gap: 1.1rem 2.4rem; }

.btn {
  display: inline-block;
  font-size: .94rem;
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule);
}
.btn::after {
  content: "\2192"; display: inline-block; margin-left: .5em;
  transition: transform .3s var(--ease);
}
.btn:hover::after { transform: translateX(3px); }

.btn--gold, .btn--ink, .btn--outline { color: var(--goldtext); border-bottom-color: var(--rule); }
.btn--gold:hover, .btn--ink:hover, .btn--outline:hover { border-bottom-color: var(--goldtext); }
.btn--ghost { color: var(--muted); }
.btn--ghost:hover { color: var(--text); border-bottom-color: var(--text); }

/* ── stats ────────────────────────────────────────────────────────────────── */

.stats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2.75rem var(--gap);
}
.stats li { padding: 0; }
.stats b {
  display: block;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.2rem, 1.7rem + 1.4vw, 3rem); line-height: 1;
  letter-spacing: -.015em;
}
.stats span {
  display: block; margin-top: .8rem;
  font-size: .85rem; line-height: 1.5; color: var(--muted);
  max-width: 21ch;
}

/* ── division briefs (home) ───────────────────────────────────────────────── */

.briefs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.75rem var(--gap);
}
.brief__name { font-size: 1.13rem; }
.brief__line { margin: .5rem 0 .85rem; font-size: .91rem; color: var(--muted); }
.brief__prods { font-family: var(--mono); font-size: .74rem; line-height: 1.7; color: var(--faint); margin: 0; }

/* ── portfolio ────────────────────────────────────────────────────────────── */

.division + .division { margin-top: clamp(3.5rem, 8vw, 6.5rem); }
.division__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.division__name { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.95rem); letter-spacing: -.01em; }
.division__line { margin: 0; color: var(--muted); font-size: .92rem; }
.division__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 3rem var(--gap);
}

.prod { display: flex; flex-direction: column; }
.prod__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.prod__name { font-size: 1.3rem; }
.prod__name a { text-decoration: none; }
.prod__name a:hover { color: var(--goldtext); }
.prod__name .ext { width: .55em; height: .55em; margin-left: .34em; opacity: .45; }
.prod__blurb { font-size: .98rem; }
.prod__detail { font-size: .89rem; color: var(--muted); }
.prod__meta {
  font-family: var(--mono); font-size: .71rem; letter-spacing: .06em;
  color: var(--faint); margin: auto 0 0; padding-top: 1.2rem;
}

/* status as a word, not a badge */
.prod__status {
  flex: none;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase;
}
.prod__status--ok   { color: var(--goldtext); }
.prod__status--beta { color: var(--muted); }
.prod__status--dev  { color: var(--faint); }

/* ── advisory ─────────────────────────────────────────────────────────────── */

.svcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 3rem var(--gap); }
.svc__name { font-size: 1.2rem; }
.svc__blurb { margin: .6rem 0 1.2rem; color: var(--muted); font-size: .94rem; }
.svc__eng { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.svc__eng p { font-size: .88rem; margin: .5rem 0 0; color: var(--muted); }
.svc__client { font-family: var(--mono); font-size: .75rem; color: var(--faint); }

/* ── capabilities ─────────────────────────────────────────────────────────── */

.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 2.75rem var(--gap); }
.cap__name { font-size: 1.11rem; margin-bottom: .6rem; }
.cap p { font-size: .91rem; color: var(--muted); }

/* ── prose, notes, lists ──────────────────────────────────────────────────── */

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.15rem; }
.prose strong { font-weight: 600; }
.prose em { font-family: var(--display); font-style: italic; font-size: 1.07em; }

.note { max-width: var(--measure); padding-left: 1.35rem; border-left: 1px solid var(--rule); }
.note .eyebrow { margin-bottom: .6rem; }
.note p { font-size: .92rem; color: var(--muted); }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem; max-width: var(--measure); }
.checks li { font-size: .96rem; }
.checks strong { font-weight: 600; }
.checks small { display: block; color: var(--muted); font-size: .88rem; margin-top: .3rem; }

/* ── particulars ──────────────────────────────────────────────────────────── */

.particulars { width: 100%; max-width: 600px; border-collapse: collapse; font-size: .93rem; }
.particulars th, .particulars td { text-align: left; padding: .95rem 0; vertical-align: top; }
.particulars th {
  width: 40%; padding-right: 1.75rem; font-weight: 400;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint);
}
.particulars tr + tr th, .particulars tr + tr td { border-top: 1px solid var(--hairline); }
.particulars a { color: var(--goldtext); text-decoration: none; border-bottom: 1px solid var(--rule); }
.particulars a:hover { border-bottom-color: var(--goldtext); }

/* ── contact ──────────────────────────────────────────────────────────────── */

.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2.75rem var(--gap); }
.contact h3 { font-size: 1.06rem; margin-bottom: .55rem; }
.contact p { font-size: .91rem; color: var(--muted); }
.contact a {
  color: var(--goldtext); text-decoration: none; word-break: break-word;
  border-bottom: 1px solid var(--rule);
}
.contact a:hover { border-bottom-color: var(--goldtext); }

/* ── footer ───────────────────────────────────────────────────────────────── */
/* same ground as the page — the seam is a hairline and a drop in type size */

.foot { padding: var(--band) 0 3rem; }
.foot__in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: grid; gap: 2.5rem;
}
.foot__brand { display: flex; align-items: center; gap: .65rem; }
.foot__brand img { width: 26px; height: 26px; }
.foot__word { font-family: var(--display); font-size: 1.18rem; line-height: 1; }
.foot__desc {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--faint); margin-top: .32rem;
}
.foot__nav { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.foot__link { font-size: .9rem; text-decoration: none; color: var(--muted); }
.foot__link:hover { color: var(--text); }
.foot__link.is-active { color: var(--text); }

.foot__brands {
  font-family: var(--mono); font-size: .71rem; letter-spacing: .05em;
  color: var(--faint);
  display: flex; flex-wrap: wrap; align-items: center; row-gap: .35rem;
}

.foot__particulars {
  font-size: .79rem; color: var(--muted);
  padding-top: 2.25rem; border-top: 1px solid var(--hairline);
}
.foot__line { display: flex; flex-wrap: wrap; align-items: center; row-gap: .35rem; }
.foot__legal { color: var(--text); }
.foot__particulars a { color: var(--muted); }
.foot__particulars a:hover { color: var(--text); }
.foot__copy { margin-top: .8rem; color: var(--faint); font-size: .75rem; }
