/* ==========================================================================
   Shift Consulting — design system
   The recruitment and technology consulting division of GoodShift Private Limited.
   Deliberately its own language: Archivo, sharp corners, diagonal motion.
   ========================================================================== */

/* 1 ── TOKENS ============================================================== */

:root {
  --blue:        #2A1DE9;
  --blue-ink:    #2A1DE9;
  --blue-soft:   #ECEBFD;
  --blue-line:   rgba(42, 29, 233, .24);

  --bg:          #FFFFFF;
  --surface:     #F4F4F7;
  --surface-2:   #EAEAF0;
  --ink:         #0B0B0F;
  --ink-2:       #40404E;
  --ink-3:       #6E6E80;

  --dark:        #0B0B0F;
  --dark-2:      #16161D;
  --on-dark:     #F6F6F9;
  --on-dark-2:   #ADADBE;
  --on-dark-3:   #76768A;

  --line:        rgba(11, 11, 15, .13);
  --line-2:      rgba(11, 11, 15, .24);
  --line-inv:    rgba(255, 255, 255, .15);
  --line-inv-2:  rgba(255, 255, 255, .26);

  --f: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--2: clamp(.70rem, .68rem + .08vw, .75rem);
  --step--1: clamp(.81rem, .79rem + .10vw, .87rem);
  --step-0:  clamp(.95rem, .92rem + .14vw, 1.02rem);
  --step-1:  clamp(1.10rem, 1.03rem + .30vw, 1.28rem);
  --step-2:  clamp(1.34rem, 1.20rem + .60vw, 1.74rem);
  --step-3:  clamp(1.66rem, 1.40rem + 1.10vw, 2.45rem);
  --step-4:  clamp(2.05rem, 1.58rem + 2.00vw, 3.45rem);
  --step-5:  clamp(2.45rem, 1.66rem + 3.30vw, 4.70rem);

  --gut: clamp(1.15rem, .75rem + 1.7vw, 2.4rem);
  --max: 1200px;
  --r: 6px;
  --r-l: 10px;
  --shadow: 0 1px 2px rgba(11,11,15,.06), 0 10px 30px -12px rgba(11,11,15,.18);
  --shadow-lg: 0 2px 6px rgba(11,11,15,.07), 0 28px 64px -24px rgba(11,11,15,.32);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --blue:      #6F62FF;
    --blue-ink:  #9A90FF;
    --blue-soft: #17143A;
    --blue-line: rgba(111, 98, 255, .36);
    --bg:        #08080C;
    --surface:   #101017;
    --surface-2: #181822;
    --ink:       #F4F4F8;
    --ink-2:     #B3B3C4;
    --ink-3:     #808095;
    --dark:      #14141C;
    --dark-2:    #1D1D28;
    --line:      rgba(255,255,255,.13);
    --line-2:    rgba(255,255,255,.24);
    --shadow:    0 1px 2px rgba(0,0,0,.55), 0 10px 30px -12px rgba(0,0,0,.75);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.55), 0 28px 64px -24px rgba(0,0,0,.85);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --blue:      #6F62FF;
  --blue-ink:  #9A90FF;
  --blue-soft: #17143A;
  --blue-line: rgba(111, 98, 255, .36);
  --bg:        #08080C;
  --surface:   #101017;
  --surface-2: #181822;
  --ink:       #F4F4F8;
  --ink-2:     #B3B3C4;
  --ink-3:     #808095;
  --dark:      #14141C;
  --dark-2:    #1D1D28;
  --line:      rgba(255,255,255,.13);
  --line-2:    rgba(255,255,255,.24);
  --shadow:    0 1px 2px rgba(0,0,0,.55), 0 10px 30px -12px rgba(0,0,0,.75);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.55), 0 28px 64px -24px rgba(0,0,0,.85);
  color-scheme: dark;
}


/* 2 ── RESET =============================================================== */

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
:where(h1,h2,h3,h4,h5) { font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--blue); color: #fff; padding: .7rem 1.1rem; }
.skip:focus { left: 0; }


/* 3 ── TYPE ================================================================ */

.d1 { font-size: var(--step-5); font-weight: 800; letter-spacing: -.04em; line-height: 1.0; }
.d2 { font-size: var(--step-4); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; }
.d3 { font-size: var(--step-3); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.d4 { font-size: var(--step-2); font-weight: 700; letter-spacing: -.025em; line-height: 1.18; }
.d5 { font-size: var(--step-1); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }

/* the logo leans; so do our accents */
.lean { font-style: italic; }

.lead  { font-size: var(--step-1); line-height: 1.56; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: var(--step--1); }

.label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: var(--step--2); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-ink);
}
.label::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.label--plain::before { display: none; }

.measure { max-width: 62ch; }
.measure-sm { max-width: 46ch; }

.link-u {
  color: var(--blue-ink); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: var(--blue-line); transition: text-decoration-color .18s;
}
.link-u:hover { text-decoration-color: currentColor; }


/* 4 ── LAYOUT ============================================================== */

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.wrap-n { max-width: 860px; }

.section   { padding-block: clamp(3.4rem, 2.1rem + 5.2vw, 7rem); }
.section-s { padding-block: clamp(2.4rem, 1.7rem + 3.2vw, 4.6rem); }

.on-surface { background: var(--surface); }
.on-dark {
  background: var(--dark); color: var(--on-dark);
  --ink: var(--on-dark); --ink-2: var(--on-dark-2); --ink-3: var(--on-dark-3);
  --line: var(--line-inv); --line-2: var(--line-inv-2);
  --surface: var(--dark-2); --bg: var(--dark-2);
  --blue-ink: #9A90FF;
}

.grid { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.7rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 940px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } }

.split {
  display: grid; gap: clamp(1.8rem, 1rem + 3vw, 4rem);
  grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start;
}
.split--head { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); align-items: end; }
@media (max-width: 880px) { .split, .split--head { grid-template-columns: 1fr; } }

.stack   > * + * { margin-top: 1rem; }
.stack-l > * + * { margin-top: 1.8rem; }
.head { margin-bottom: clamp(2rem, 1.3rem + 2.2vw, 3.2rem); }
.head .d2, .head .d3 { margin-top: .8rem; }
.head p { margin-top: 1rem; }
.row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }


/* 5 ── COMPONENTS ========================================================== */

/* buttons — squared off, unlike GoodShift's pills */
.btn {
  --btn-bg: var(--blue); --btn-fg: #fff; --btn-bd: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-size: var(--step--1); font-weight: 700; letter-spacing: .01em;
  padding: .85rem 1.5rem; border-radius: var(--r);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  transition: transform .15s, box-shadow .2s, background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--btn-bg) 80%, transparent); }
.btn:active { transform: none; }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bd: var(--ink); box-shadow: none; }
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--bg); --btn-bd: var(--ink); }
.btn--light { --btn-bg: #fff; --btn-fg: #0B0B0F; --btn-bd: #fff; }
.btn--sm { padding: .6rem 1.1rem; font-size: var(--step--2); }

/* header */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.site-head.is-stuck { border-bottom-color: var(--line); }
.site-head__in { display: flex; align-items: center; gap: 1.4rem; height: 72px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 36px; width: auto; }

.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
.on-dark .logo-light, .cta-band .logo-light { display: none; }
.on-dark .logo-dark,  .cta-band .logo-dark  { display: block; }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: .15rem; }
.nav a {
  display: block; padding: .5rem .75rem; border-radius: var(--r);
  font-size: var(--step--1); font-weight: 600; color: var(--ink-2);
  transition: color .16s, background .16s;
}
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--blue-ink); }

.head-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: var(--r); border: 1.5px solid var(--line); color: var(--ink-2);
  transition: border-color .16s, color .16s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 17px; height: 17px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: block; }
}

.burger { display: none; }
.only-mobile { display: none; }
@media (max-width: 940px) {
  .burger { display: grid; }
  .only-mobile { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.3rem;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
    max-height: calc(100dvh - 72px); overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: .85rem .2rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: var(--step-0); }
  .nav li:last-child a { border-bottom: 0; }
}
@media (max-width: 560px) { .hide-sm { display: none; } }

/* hero with a diagonal motion field */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 2rem + 4.6vw, 6rem) clamp(2.8rem, 1.9rem + 4vw, 5.2rem); }
.hero__in { position: relative; z-index: 2; }
.hero .d1 { margin-top: 1.2rem; }
.hero .lead { margin-top: 1.4rem; max-width: 54ch; }
.hero .row { margin-top: 2.1rem; }

.slashes {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .6;
  -webkit-mask-image: radial-gradient(105% 80% at 92% 12%, #000 2%, transparent 60%);
  mask-image: radial-gradient(105% 80% at 92% 12%, #000 2%, transparent 60%);
}
.slashes path { stroke: var(--blue); stroke-width: 1.2; fill: none; opacity: .32; }

/* cards */
.card {
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-l);
  padding: clamp(1.3rem, 1rem + .9vw, 1.9rem);
  transition: border-color .2s, transform .2s, box-shadow .25s;
}
.card--pad-l { padding: clamp(1.6rem, 1.1rem + 1.4vw, 2.4rem); }
.card--flat { background: var(--surface); border-color: transparent; }
a.card:hover, .card--hover:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow); }
.card :is(h2,h3,h4) { font-size: var(--step-1); }
.card p { color: var(--ink-2); margin-top: .6rem; }

.card__n {
  display: block; margin-bottom: .9rem;
  font-size: var(--step--2); font-weight: 800; letter-spacing: .16em;
  color: var(--blue-ink); font-style: italic;
}

/* icon tile */
.tile {
  width: 42px; height: 42px; border-radius: var(--r); flex: none;
  display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-ink);
  border: 1.5px solid var(--blue-line);
}
.tile svg { width: 19px; height: 19px; }

.feat { display: flex; gap: 1rem; align-items: flex-start; }
.feat :is(h3,h4) { font-size: var(--step-0); font-weight: 700; }
.feat p { color: var(--ink-2); font-size: var(--step--1); margin-top: .3rem; line-height: 1.58; }

/* process — numbered, echoing the logo's slant */
.proc { counter-reset: s; }
.proc > li {
  counter-increment: s; position: relative;
  padding: 1.6rem 0 1.6rem 4.2rem; border-bottom: 1.5px solid var(--line);
}
.proc > li:last-child { border-bottom: 0; }
.proc > li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 1.6rem;
  font-size: var(--step-0); font-weight: 800; font-style: italic;
  letter-spacing: .02em; color: var(--blue-ink);
}
.proc :is(h2,h3) { font-size: var(--step-1); }
.proc p { color: var(--ink-2); margin-top: .4rem; }

/* fact list */
.facts { border-top: 1.5px solid var(--line); }
.facts div {
  display: grid; grid-template-columns: minmax(150px,.42fr) 1fr; gap: 1rem;
  padding: .9rem 0; border-bottom: 1.5px solid var(--line);
}
.facts dt { font-size: var(--step--1); color: var(--ink-3); }
.facts dd { font-weight: 600; word-break: break-word; }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: .2rem; } }

/* tag chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font-size: var(--step--1); font-weight: 600;
  padding: .42rem .85rem; border-radius: 100px;
  border: 1.5px solid var(--line); color: var(--ink-2);
  transition: border-color .16s, color .16s;
}
.chip:hover { border-color: var(--blue); color: var(--ink); }

/* callout */
.note {
  border-left: 3px solid var(--blue); background: var(--surface);
  padding: 1.1rem 1.3rem; border-radius: 0 var(--r) var(--r) 0;
}
.note p { margin-top: 0; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--dark); color: var(--on-dark);
  border-radius: var(--r-l);
  padding: clamp(2.2rem, 1.4rem + 3.2vw, 4.2rem) clamp(1.4rem, .8rem + 3vw, 3.4rem);
  text-align: center;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(72% 130% at 50% -12%, color-mix(in srgb, var(--blue) 40%, transparent), transparent 60%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .d3 { color: #fff; }
.cta-band p { color: var(--on-dark-2); margin: 1rem auto 0; max-width: 50ch; }
.cta-band .row { justify-content: center; margin-top: 1.9rem; }
.cta-band .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.3); }
.cta-band .btn--ghost:hover { --btn-bd: #fff; }

/* page head */
.page-head { padding-block: clamp(2.4rem, 1.7rem + 3.2vw, 4.4rem) clamp(1.6rem, 1.1rem + 2vw, 2.8rem); }
.crumb { display: flex; gap: .5rem; align-items: center; font-size: var(--step--1); color: var(--ink-3); margin-bottom: 1rem; }
.crumb a:hover { color: var(--ink); }
.crumb svg { width: 13px; height: 13px; opacity: .5; }

/* footer */
.site-foot { background: var(--dark); color: var(--on-dark); padding-block: clamp(2.8rem, 2rem + 2.6vw, 4.4rem) 1.9rem; }
.site-foot { --ink: var(--on-dark); --ink-2: var(--on-dark-2); --ink-3: var(--on-dark-3); --line: var(--line-inv); }
.foot-grid { display: grid; gap: clamp(1.8rem,1rem + 3vw,3.2rem); grid-template-columns: minmax(0,1.6fr) repeat(3, minmax(0,1fr)); }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-logo { height: 30px; width: auto; }
.site-foot :is(h2,h4) {
  font-size: var(--step--2); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 1rem;
}
.site-foot ul { display: grid; gap: .58rem; }
.site-foot a { color: var(--on-dark-2); font-size: var(--step--1); transition: color .16s; }
.site-foot a:hover { color: #fff; }
.foot-base {
  margin-top: clamp(2.2rem,1.6rem + 2vw,3.2rem); padding-top: 1.5rem;
  border-top: 1px solid var(--line-inv);
  display: flex; flex-wrap: wrap; gap: .9rem 1.6rem; justify-content: space-between; align-items: center;
}
.foot-base p { font-size: var(--step--1); color: var(--on-dark-3); }

/* prose */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2.6rem; }
.prose h3 { font-size: var(--step-1); margin-top: 1.9rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin-top: 1rem; }
.prose ul { margin-top: 1rem; display: grid; gap: .55rem; }
.prose ul li { position: relative; padding-left: 1.35rem; }
.prose ul li::before { content: ""; position: absolute; left: .2rem; top: .72em; width: 6px; height: 2px; background: var(--blue); }
.prose a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--blue-line); }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); font-weight: 700; }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* hard line breaks in display headings — dropped on narrow screens */
@media (max-width: 700px) { br.brk { display: none; } }


/* 6 ── MOTION ============================================================== */

.js [data-reveal] {
  opacity: 0; transform: translateY(15px);
  transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-head, .site-foot, .slashes, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}
