/* Light Role Systems - landing page.
   Calm, structured, premium. Editorial serif headings, system sans body,
   monospace meta labels (the "systems" signature), deep-green accent thread. */

:root {
  --bg:        #faf9f6;   /* clean off-white, cool side of warm */
  --bg-2:      #f3f2ec;   /* recessed panels */
  --surface:   #ffffff;
  --ink:       #18191a;   /* near-black, faintly warm */
  --ink-2:     #555049;   /* body muted */
  --ink-3:     #8c877e;   /* meta */
  --line:      #e4e1d8;   /* hairlines */
  --line-2:    #d9d5ca;
  --accent:    #2c5a4c;   /* deep green - the thread across the suite */
  --accent-2:  #214538;
  --accent-soft: #e8efeb;   /* pale green icon tile */

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans:  system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:  ui-monospace, 'SFMono-Regular', 'Cascadia Code', 'Consolas', monospace;

  --container: 1080px;
  --gut: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
em { font-style: normal; }

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

/* ---- Meta label (monospace) ---- */
.label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- Header ---- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; }
.mark { width: 22px; height: 22px; flex: none; display: block; }
.wordmark-text { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.wordmark-text em { font-weight: 400; color: var(--ink-2); }
.nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); }
.nav a { font-size: 0.93rem; color: var(--ink-2); transition: color 0.15s; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta {
  color: var(--accent); font-weight: 500;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 16px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.nav .nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.96rem; font-weight: 500; letter-spacing: 0.005em;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

/* ---- Hero ---- */
.hero { padding: clamp(64px, 12vh, 132px) 0 0; position: relative; overflow: hidden; }
#heroBg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  /* fade to nothing at top and bottom so it reads as atmosphere, no hard edges */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 76%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 76%, transparent);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 22px 0 0;
}
.hero h1 .accent { color: var(--accent); }
.lede {
  max-width: 38ch;
  font-size: clamp(1.06rem, 1.7vw, 1.28rem);
  color: var(--ink-2);
  line-height: 1.55;
  margin-top: 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-rule { margin-top: clamp(56px, 11vh, 104px); }
.hero-rule span { display: block; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

/* ---- Section heads ---- */
.section-head { padding-block: clamp(56px, 9vh, 96px) 0; position: relative; }
.idx {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em;
  color: var(--accent); display: inline-block; margin-bottom: 14px;
}
.section-head h2, .contact h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -0.02em; line-height: 1.08;
}
.section-sub { color: var(--ink-2); margin-top: 16px; max-width: 46ch; font-size: 1.04rem; }

/* ---- Approach ---- */
.approach { padding-bottom: clamp(40px, 7vh, 80px); }
.principles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 52px);
  margin-top: clamp(40px, 6vh, 64px);
}
.principle { border-top: 1px solid var(--line-2); padding-top: 20px; }
.principle .label { color: var(--ink); display: block; margin-bottom: 12px; line-height: 1.5; }
.principle p { color: var(--ink-2); font-size: 0.99rem; }
.pr-ico { display: inline-flex; color: var(--accent); margin-bottom: 14px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pr-ico .ico { width: 24px; height: 24px; stroke-width: 1.5; }

/* ---- Products catalogue ---- */
.products { padding-bottom: clamp(56px, 9vh, 100px); }
.catalogue {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(30px, 4vw, 54px) clamp(40px, 7vw, 84px);
  margin-top: clamp(40px, 6vh, 64px);
}
.cat-title {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.cat-list { list-style: none; }
.cat-list li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.cat-list li:last-child { border-bottom: 0; }
.p-name {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 9px;
}
.p-name .ico { color: var(--accent); width: 18px; height: 18px; flex: none; stroke-width: 1.5; }
.p-name .tag { margin-left: auto; }
.p-desc { margin-top: 5px; padding-left: 27px; color: var(--ink-2); font-size: 0.94rem; line-height: 1.5; }
.tag {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff);
  padding: 2px 8px; border-radius: 999px; transform: translateY(-2px);
  font-weight: 400;
}

/* ---- Contact ---- */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-inner { padding-block: clamp(64px, 11vh, 120px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .idx { margin-bottom: 18px; }
.contact .lede { margin-inline: auto; max-width: 44ch; }
.contact .btn { margin-top: 34px; }

/* ---- Footer ---- */
.site-foot { padding-block: 40px; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot-mark { font-family: var(--serif); font-size: 1rem; }
.foot-meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-3); }

/* ---- Reveal animation (progressive enhancement - visible without JS) ---- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .principles { grid-template-columns: 1fr; gap: 28px; }
  .catalogue { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .head-inner { height: 60px; }
}
