/* centennialdig.com — "The Spark" identity.
 *
 * Built from the DIG wordmark: heavy black letters, one chartreuse burst. The
 * whole system is that split. Everything is disciplined and professional except
 * a single green flash of insight, which is also a fair description of a
 * student consultancy doing real client work.
 *
 * #D4DF38 is Centennial's own green, measured from centennialcollege.ca, and
 * the DIG logo has carried it from the start. It never carries text: ink sits
 * on it, it sits behind. One spark per surface.
 *
 * Archivo Black doubles as the wordmark face, so the logo and the headlines are
 * literally one voice. No Inter, Sora or Plex — those belong to the other
 * properties.
 */

@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/archivo-black.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/archivo-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/archivo-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/hanken-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/hanken-600.woff2') format('woff2');
}

:root {
  --ink: #121417;
  --charcoal: #414142;
  --grey: #5f6265;
  --grey-2: #85888b;
  --paper: #fafafa;
  --surface: #ffffff;
  --spark: #d4df38;
  /* Fixed in every theme. The spark is always chartreuse, so text on it is
     always dark ink; flipping this would make it unreadable. */
  --on-spark: #121417;
  --rule: rgba(18, 20, 23, 0.13);
  --measure: 36rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f0f1f1;
    --charcoal: #c9cbcc;
    --grey: #a4a7aa;
    --grey-2: #7d8083;
    --paper: #131416;
    --surface: #1a1c1e;
    --rule: rgba(240, 241, 241, 0.15);
  }
}

:root[data-theme="dark"] {
  --ink: #f0f1f1;
  --charcoal: #c9cbcc;
  --grey: #a4a7aa;
  --grey-2: #7d8083;
  --paper: #131416;
  --surface: #1a1c1e;
  --rule: rgba(240, 241, 241, 0.15);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Hanken', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: 58rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 8vh, 5rem);
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--grey-2); }

/* The spark underline: the accent's one job in running text. Sits behind the
   words rather than colouring them. */
.spark-u { box-shadow: inset 0 -0.26em 0 var(--spark); }

/* ---- masthead ---- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

.logo { display: block; height: 2.75rem; width: auto; }
.logo .letters {
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-size: 92px;
  letter-spacing: -0.01em;
  fill: var(--ink);
}
.logo .ray { stroke: var(--spark); stroke-width: 11; stroke-linecap: round; }

.masthead-tag {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey-2);
  text-align: right;
}

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

.logo-link { display: block; line-height: 0; }

.nav {
  display: flex;
  gap: 1.4rem;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.nav a {
  color: var(--grey-2);
  text-decoration: none;
  padding-bottom: 0.2rem;
  transition: color 130ms ease;
}
.nav a:hover { color: var(--ink); }

/* The spark marks the page you are on, the same job it does in the mark. */
.nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -0.3em 0 var(--spark);
}

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

.pull-quote {
  margin: 1.5rem 0;
  padding-left: clamp(1rem, 3vw, 1.5rem);
  border-left: 3px solid var(--spark);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: -0.014em;
  color: var(--ink);
  max-width: 30rem;
}

.person { margin-bottom: 1.25rem; }

.person-name {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.person-role {
  margin-bottom: 0.7rem;
  font-family: 'Archivo', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.note { font-size: 0.9375rem; color: var(--grey-2); max-width: var(--measure); margin-top: 1rem; }

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

.hero { margin-top: clamp(3rem, 9vh, 5.5rem); }

h1 {
  margin: 0;
  font-family: 'Archivo Black', 'Archivo', sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 15ch;
  text-wrap: balance;
}

.deck {
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 2.4vw, 1.1875rem);
  line-height: 1.6;
  color: var(--grey);
  max-width: var(--measure);
}

/* The second deck paragraph carries the "what this is not" framing, so it sits
   a step quieter than the first without dropping to caption size. */
.deck-2 { margin-top: 1rem; font-size: 1rem; color: var(--grey-2); }

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

section { margin-top: clamp(3rem, 8vh, 4.5rem); }

.section-label {
  /* Also an h2, so it inherits that rule's 20ch measure — which at 0.7rem is
     about 100px and wraps the label while stopping its rule short. */
  max-width: none;
  margin: 0 0 1.25rem;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-2);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}

h2 {
  margin: 0 0 1rem;
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.018em;
  max-width: 20ch;
}

.body { color: var(--grey); max-width: var(--measure); }
.body + .body { margin-top: 0.9rem; }

/* ---- work ---- */

.case {
  border-left: 3px solid var(--spark);
  padding-left: clamp(1rem, 3vw, 1.5rem);
}

.case-client {
  font-family: 'Archivo', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.case-title {
  margin: 0.4rem 0 0.9rem;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  letter-spacing: -0.018em;
  line-height: 1.15;
}

.case-list { list-style: none; margin: 1.25rem 0 0; padding: 0; }

.case-list li {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--grey);
  max-width: var(--measure);
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
}
.case-list li + li { margin-top: 0.85rem; }
.case-list strong { color: var(--ink); font-weight: 600; }

.case-term {
  display: block;
  margin-bottom: 0.3rem;
  font-family: 'Archivo', sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--grey-2);
}

.case-note {
  margin-top: 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--grey-2);
  max-width: var(--measure);
}

/* ---- how it works ---- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.steps li {
  background: var(--surface);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Numbered because the terms genuinely run in sequence: selection, then
   engagement, then delivery. Not decoration. */
.steps .n {
  font-family: 'Archivo', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--grey-2);
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  margin: 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

.steps p { font-size: 0.9375rem; line-height: 1.55; color: var(--grey); }

/* ---- two columns ---- */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}

.col h3 {
  margin: 0 0 0.7rem;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.012em;
}

.col ul { list-style: none; margin: 0.9rem 0 0; padding: 0; }

.col li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--grey);
}
.col li + li { margin-top: 0.6rem; }

.col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--spark);
}

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

.cta {
  margin-top: 1.5rem;
  display: inline-block;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 0.85rem 1.6rem;
  text-decoration: none;
  transition: background 130ms ease;
}
.cta:hover { background: var(--charcoal); color: var(--paper); }

.contact-row { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; }

.contact-plain { font-size: 0.9375rem; color: var(--grey); }
.contact-plain a { color: var(--ink); text-decoration-color: var(--spark); text-decoration-thickness: 2px; }

/* ---- foot ---- */

.foot {
  margin-top: clamp(3.5rem, 9vh, 5rem);
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.foot p { font-size: 0.8125rem; color: var(--grey-2); }

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

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- copy button ---- */

.contact-plain { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }

.copy-btn {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--grey);
  cursor: pointer;
  transition: color 130ms ease, border-color 130ms ease;
}
.copy-btn:hover { color: var(--ink); border-color: var(--grey-2); }

.copy-btn svg { width: 0.85rem; height: 0.85rem; }

/* One button, two glyphs: the check replaces the copy mark on success rather
   than appearing beside it, so the control never changes size. */
.copy-btn .i-check { display: none; }
.copy-btn.copied .i-copy { display: none; }
.copy-btn.copied .i-check { display: block; }
.copy-btn.copied { color: var(--on-spark); background: var(--spark); border-color: var(--spark); }

.copy-status {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-2);
}
