/* SpArc Associates website. The firm pages read like a drawing sheet: lime-plaster paper, charcoal line work (the
   brand's structure colour) and SPARC maroon as the one accent. The Sparchitect page switches to the app's blueprint. */
:root {
  --paper: #eef0ea; --paper2: #e3e6df; --ink: #24292d; --mid: #6a7176; --rule: #c9cdc5; --blue: #8e1b1b; --line: #5f6566;
  --title: Bahnschrift, "DIN Alternate", "DIN Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --gut: clamp(18px, 4vw, 56px); --max: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 6px 10px; z-index: 9; }
h1, h2, h3 { font-family: var(--title); font-weight: 600; font-stretch: condensed; line-height: 1.12; margin: 0; }
h2 { font-size: 15px; font-weight: 600; color: var(--mid); letter-spacing: .04em; margin-bottom: 18px;
  padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
h3 { font-size: 21px; }
p { margin: 0 0 12px; }
ul.plain { list-style: none; margin: 0; padding: 0; }
main > section:not(.sheet), main > article > section:not(.sheet), .back { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) clamp(48px, 7vw, 96px); }

/* header */
.bar { max-width: var(--max); margin: 0 auto; padding: 20px var(--gut); display: flex; align-items: center; gap: 24px; }
.mark { flex: 1; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.mark img { width: 44px; height: auto; flex: none; }
.mark .mt { display: flex; flex-direction: column; }
.mark b { font: 600 22px/1 var(--title); font-stretch: condensed; letter-spacing: .02em; }
.mark span { font-size: 13px; color: var(--mid); margin-top: 3px; }
nav.wide { display: flex; gap: 26px; font-size: 15px; }
nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current] { border-color: var(--blue); }
nav .team { color: var(--blue); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: 15px; padding: 6px 12px; border: 1px solid var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; right: 0; top: 44px; z-index: 5; background: var(--paper); border: 1px solid var(--ink);
  display: flex; flex-direction: column; padding: 8px 18px; min-width: 190px; }
.menu nav a { padding: 10px 0; }
@media (max-width: 760px) { nav.wide { display: none; } .menu { display: block; } }

/* the drawing sheet: a framed drawing with a title block in its corner */
.sheet { position: relative; border: 1.5px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 6px;
  margin: 10px max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut))) clamp(56px, 8vw, 104px); background: var(--paper); }
.sheet .draw { color: var(--line); padding: clamp(18px, 4vw, 48px) clamp(14px, 4vw, 48px) clamp(120px, 14vw, 150px); }
.elev { width: 100%; height: auto; }
.herolink { display: block; }
.heroimg { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
@media (max-width: 640px) { .heroimg { aspect-ratio: 4 / 3; } }
.titleblock { position: absolute; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, auto));
  border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); background: var(--paper); max-width: 100%; }
.titleblock div { padding: 8px 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.titleblock span { display: block; font-size: 11px; color: var(--mid); }
.titleblock b { display: block; font: 600 15px/1.25 var(--title); font-stretch: condensed; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .titleblock { position: static; grid-template-columns: 1fr 1fr; border-left: 0; }
  .sheet .draw { padding-bottom: 18px; }
}

/* text */
.lede h1 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 400; max-width: 30ch; }
.lede p { margin-top: 26px; display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.head h1 { font-size: clamp(40px, 6vw, 76px); margin: clamp(24px, 4vw, 48px) 0 14px; }
.summary { font-size: 20px; line-height: 1.55; max-width: 62ch; color: var(--ink); }
.head p { color: var(--mid); }
.btn { display: inline-block; background: var(--blue); color: #fff; text-decoration: none; padding: 13px 22px; font-size: 16px; }
.btn:hover { background: #6e1414; }
.link { color: var(--blue); text-underline-offset: 4px; }

/* projects */
.grid { display: grid; gap: clamp(24px, 3vw, 40px) clamp(18px, 2.4vw, 32px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.card { text-decoration: none; display: block; }
.card .cover { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border: 1px solid var(--ink); }
.card h3 { margin-top: 14px; }
.card:hover h3 { color: var(--blue); }
.meta { color: var(--mid); font-size: 15px; margin-top: 4px; }
.cover.none { display: grid; place-items: center; background: var(--paper2); color: var(--line); }
.cover.none .sketch { width: 78%; height: auto; }
.cover.big { width: 100%; max-height: 74vh; object-fit: cover; aspect-ratio: 16 / 9; border: 0; }
.project .sheet .cover.none { aspect-ratio: 16 / 9; }
.gallery { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.gallery img { width: 100%; height: auto; border: 1px solid var(--ink); }

/* services, steps, contact */
.cols { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.cols p, .steps p { color: var(--mid); margin-top: 8px; max-width: 42ch; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 28px 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.steps li { counter-increment: s; border-top: 1.5px solid var(--ink); padding-top: 12px; }
.steps li::before { content: "Stage " counter(s); display: block; font-size: 13px; color: var(--blue); margin-bottom: 6px; }
.contact { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.big li { font: 600 clamp(22px, 2.6vw, 30px)/1.3 var(--title); font-stretch: condensed; margin-bottom: 14px; }
.big a { text-decoration-color: var(--blue); text-underline-offset: 5px; }

/* team sign-in and the access request form */
.form { display: grid; gap: 16px; max-width: 520px; }
.form label { display: grid; gap: 6px; font-size: 15px; color: var(--mid); }
.form input { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--ink); padding: 11px 12px; }
.form input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.form button { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.form .trap { position: absolute; left: -9999px; }
.note { padding: 12px 14px; border-left: 3px solid var(--blue); background: var(--paper2); max-width: 60ch; }
.note.err { border-color: #b3261e; }

/* footer */
.foot { border-top: 1.5px solid var(--ink); max-width: var(--max); margin: 0 auto; padding: 28px var(--gut) 44px;
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; font-size: 15px; color: var(--mid); }
.foot b { color: var(--ink); font: 600 18px var(--title); font-stretch: condensed; }
.foot p { margin: 4px 0 0; }
.foot li { margin-bottom: 4px; }

/* Sparchitect page: the app's blueprint */
body.dark { --paper: #081a2e; --paper2: #0b2440; --ink: #e6f1ff; --mid: #8aa4c2; --rule: rgba(140,200,255,.26); --blue: #36d6ff;
  background-color: var(--paper);
  background-image: linear-gradient(rgba(120,190,255,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(120,190,255,.10) 1px, transparent 1px),
    linear-gradient(rgba(120,190,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(120,190,255,.045) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px; }
body.dark .mark img { filter: invert(1) brightness(1.6); }
body.dark .btn { color: #04121f; } body.dark .btn:hover { background: #8be8ff; }
main > .sp-hero { padding-top: clamp(30px, 6vw, 80px); }
.sp-hero h1 { font-size: clamp(54px, 10vw, 132px); letter-spacing: .14em; color: var(--blue); font-weight: 700; margin-bottom: 18px; }
.orb { position: relative; width: 92px; height: 92px; margin-bottom: 28px; }
.orb i { position: absolute; inset: 0; border: 1.5px solid var(--blue); border-radius: 50%; }
.orb i:nth-child(2) { inset: 16px; opacity: .7; } .orb i:nth-child(3) { inset: 34px; background: var(--blue); box-shadow: 0 0 30px var(--blue); }
@media (prefers-reduced-motion: no-preference) {
  .orb i:nth-child(1) { animation: breathe 4.5s ease-in-out infinite; }
  @keyframes breathe { 50% { transform: scale(1.08); opacity: .55; } }
}
body.dark .cols li { border-top: 1px solid var(--rule); padding-top: 14px; }
