/* Torc Systems — torc-systems.com
   Brand: light grey ground, black Urbanist display type, Calibri body,
   orange italic accents (see ../branding/README.md). */

:root {
  --bg: #e7e6e6;            /* grey-*-bg logo ground */
  --ink: #0b0b0b;
  --ink-soft: #3a3a3a;
  --muted: #6b6a6a;
  --rule: #cfcdcd;
  --orange: #e97b35;        /* logo accent */
  --orange-ink: #c85f1c;    /* accent text on grey (contrast) */
  --card: #161616;
  --card-ink: #f2f1f1;
  --card-muted: #b9b7b7;

  --display: "Urbanist", system-ui, sans-serif;
  --body: Calibri, "Carlito", "Segoe UI", system-ui, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 0.98rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  overflow-x: hidden;
}

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

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
}
.bar {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex; align-items: center; gap: 1rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex; align-items: center; gap: .55rem;
  text-decoration: none; flex-shrink: 0;
}
.brand img { width: 36px; height: 36px; }
.brand-name {
  font-family: var(--display); font-weight: 700;
  font-size: 1.25rem; letter-spacing: .02em;
}

.nav {
  display: flex; gap: clamp(.9rem, 3vw, 2rem);
  margin: 0 auto;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
}
.nav a {
  text-decoration: none; padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav a:hover { color: var(--orange-ink); }
.nav a[aria-current="true"] { border-bottom-color: var(--orange); }

.signin {
  font-family: var(--display); font-weight: 700;
  color: var(--orange-ink); text-decoration: none; flex-shrink: 0;
}
.signin:hover { text-decoration: underline; text-underline-offset: 4px; }

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

@media (max-width: 560px) {
  .brand-long { display: none; }       /* "Can go to TORC for short" */
  .brand img { width: 30px; height: 30px; }
  .nav { font-size: .95rem; }
  .signin { font-size: .95rem; }
}
@media (max-width: 380px) {
  .brand-name { display: none; }
  .nav { gap: .75rem; }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.5rem, 9vw, 7.5rem) 0;
  min-height: calc(100svh - var(--header-h));
}
.section + .section { border-top: 1px solid var(--rule); }

.display {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.25rem, 1.4rem + 4vw, 4.5rem);
  line-height: 1; letter-spacing: .01em;
  margin: 0 0 .9rem;
}
.tagline {
  font-style: italic;
  color: var(--orange-ink);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem);
  line-height: 1.3;
  margin: 0 0 2.5rem;
}

p { margin: 0 0 1.1rem; max-width: 38rem; }
.lead { font-size: 1.15em; font-weight: 700; }

/* ---------- Home ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

.list-title {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  margin: 2rem 0 .75rem;
}
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative; padding: .45rem 0 .45rem 1.6rem;
  border-top: 1px solid var(--rule);
}
.ticks li:last-child { border-bottom: 1px solid var(--rule); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: .65rem; height: .65rem; border-radius: 50%;
  border: 2px solid var(--orange);
}

.hero-shots { position: relative; display: grid; gap: 1.25rem; }
.shot {
  margin: 0; background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 18px 40px -18px rgb(0 0 0 / .35);
}
@media (min-width: 960px) {
  .hero-shots { padding-top: 4.5rem; }
  .shot-b { margin-left: 12%; margin-top: -14%; }
  .shot-a { margin-right: 12%; }
}

/* ---------- Model ---------- */

.cycle {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 860px) {
  .cycle { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
}

.ring { margin: 0 auto; width: min(100%, 26rem); }
.ring svg { width: 100%; height: auto; overflow: visible; }
.seg { filter: drop-shadow(0 3px 4px rgb(0 0 0 / .18)); }
.s1 { fill: #cdcbcb; } .s2 { fill: #f7dc94; } .s3 { fill: #f3c27a; }
.s4 { fill: #ef9a3d; } .s5 { fill: #e07344; }
.seg-num text {
  font-family: var(--display); font-weight: 800; font-size: 22px;
  text-anchor: middle; dominant-baseline: central; fill: var(--ink);
}
.core { fill: var(--bg); stroke: var(--ink-soft); stroke-width: 1.25; }
.core-text {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  text-anchor: middle; fill: var(--ink);
}

.stages { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.stages li {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--rule);
}
.stages li:last-child { border-bottom: 1px solid var(--rule); }
.stages .n {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; color: var(--ink);
  background: var(--c, #ccc);
}
.n.s1 { background: #cdcbcb; } .n.s2 { background: #f7dc94; } .n.s3 { background: #f3c27a; }
.n.s4 { background: #ef9a3d; } .n.s5 { background: #e07344; }
.stages h3 {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem;
  margin: .2rem 0 .15rem;
}
.stages p { margin: 0; color: var(--ink-soft); }

.stats {
  margin: clamp(3rem, 7vw, 5rem) 0;
  display: grid; gap: 1.5rem 3rem;
  grid-template-columns: repeat(2, minmax(0, max-content));
  align-items: end;
}
.stats-label {
  grid-column: 1 / -1; margin: 0;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.5rem, 1.5rem + 5vw, 5rem); line-height: 1;
}
.stat-unit { color: var(--orange-ink); font-style: italic; font-size: 1.15rem; }

.sub {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.2;
  margin: 0 0 1.75rem; max-width: 30ch;
}
.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card {
  background: var(--card); color: var(--card-ink);
  padding: 1.75rem 1.5rem 2rem; border-radius: 6px;
  border-top: 4px solid transparent;
  display: flex; flex-direction: column;
}
.card-featured { border-top-color: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.card h4 {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin: 0 0 .25rem;
}
.card-kicker { color: var(--orange); font-style: italic; margin: 0 0 1.5rem; }
.card p:last-child { color: var(--card-muted); margin: 0; font-size: .98em; }
.engage-foot { margin-top: 1.75rem; font-weight: 700; }

/* ---------- Contact ---------- */

.contact { min-height: calc(80svh - var(--header-h)); }
.accent-para {
  font-style: italic; color: var(--orange-ink);
  font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.45;
  max-width: 46rem; margin-bottom: 2.5rem;
}
.cta { font-size: 1.2em; }
.cta a {
  color: var(--ink); font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--orange);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.cta a:hover { color: var(--orange-ink); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); }
.foot {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
  font-size: .9rem; color: var(--muted);
}
.foot a { color: var(--muted); }

/* ---------- Wide screens ---------- */

@media (min-width: 1600px) {
  :root { --wrap: 84rem; }
}
