/* ============================================================
   Chinook Technologies — production stylesheet
   Glacier palette · Fraunces + Inter + JetBrains Mono
   ============================================================ */

:root {
  color-scheme: light;

  /* Glacier palette */
  --color-ink: #16181C;
  --color-paper: #F0F1ED;
  --color-white: #FFFFFF;
  --color-teal: #2D7A85;
  --color-teal-bg: rgba(45, 122, 133, 0.08);
  --color-teal-border: rgba(45, 122, 133, 0.25);
  --color-mist: #71757A;
  --color-mist-light: #8A8E92;
  --color-text-secondary: #4F5358;
  --color-text-on-dark: #B5B7B5;
  --color-border-light: rgba(22, 24, 28, 0.08);
  --color-border-dark: rgba(240, 241, 237, 0.12);

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --max-width: 1200px;
  --section-pad-y: 96px;
  --section-pad-x: 80px;
  --radius-md: 6px;
  --radius-lg: 10px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
}

@media (max-width: 1024px) {
  :root {
    --section-pad-y: 80px;
    --section-pad-x: 48px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-pad-y: 64px;
    --section-pad-x: 24px;
  }
}

/* ============================================================
   Reset & base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--color-paper);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 20px;
  background: var(--color-ink);
  color: var(--color-paper);
  font-size: 14px;
  z-index: 100;
}

.skip-link:focus {
  top: 16px;
}

/* ============================================================
   Layout primitives
   ============================================================ */

.section {
  width: 100%;
  padding: var(--section-pad-y) var(--section-pad-x);
}

.section__inner {
  max-width: var(--max-width);
  margin-inline: auto;
}

.section--ink {
  background: var(--color-ink);
  color: var(--color-paper);
}

.section--paper {
  background: var(--color-paper);
  color: var(--color-ink);
}

/* ============================================================
   Header / navigation
   ============================================================ */

.header {
  background: var(--color-paper);
  border-bottom: 0.5px solid var(--color-border-light);
}

.header__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 20px var(--section-pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo svg {
  height: 38px;
  width: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 14px;
}

.nav a {
  color: var(--color-ink);
  transition: color 0.15s var(--ease);
  padding: 4px 0;
}

.nav a:hover {
  color: var(--color-teal);
}

.nav a[aria-current='page'] {
  color: var(--color-teal);
  font-weight: 500;
}

.nav__cta {
  color: var(--color-teal) !important;
  font-weight: 500;
}

@media (max-width: 480px) {
  .header__inner {
    padding: 16px 24px;
  }

  .nav {
    gap: 10px 18px;
    font-size: 13px;
    width: 100%;
  }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  background: var(--color-paper);
  color: var(--color-ink);
  padding: 112px var(--section-pad-x) 120px;
  position: relative;
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  inset: 0;
  background-image: url('hero-moraine.jpg');
  background-size: cover;
  background-position: center right;
  z-index: 0;
}

.hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--color-paper) 0%,
    var(--color-paper) 38%,
    rgba(240, 241, 237, 0.85) 50%,
    rgba(240, 241, 237, 0.4) 70%,
    rgba(240, 241, 237, 0.15) 100%
  );
}

@media (max-width: 1024px) {
  .hero__photo {
    background-image: url('hero-moraine-mobile.jpg');
  }
  .hero__photo::after {
    background: linear-gradient(
      to right,
      var(--color-paper) 0%,
      var(--color-paper) 30%,
      rgba(240, 241, 237, 0.92) 55%,
      rgba(240, 241, 237, 0.7) 100%
    );
  }
}

@media (max-width: 640px) {
  .hero__photo::after {
    background: linear-gradient(
      to bottom,
      var(--color-paper) 0%,
      rgba(240, 241, 237, 0.9) 65%,
      rgba(240, 241, 237, 0.7) 100%
    );
  }
}

.hero__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--color-mist);
  margin-bottom: 28px;
  font-weight: 500;
}

.section--ink .eyebrow {
  color: var(--color-mist-light);
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin: 0 0 32px;
  max-width: 920px;
}

.hero__subhead {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0 0 40px;
}

.hero__cta {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid var(--color-teal);
  color: var(--color-teal);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.hero__cta:hover {
  background: var(--color-teal);
  color: var(--color-paper);
}

@media (max-width: 640px) {
  .hero {
    padding: 80px var(--section-pad-x) 88px;
  }
}

/* ============================================================
   Section headings
   ============================================================ */

.section__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 48px;
  max-width: 600px;
}

.section--ink .section__heading {
  color: var(--color-paper);
}

.section--paper .section__heading {
  color: var(--color-ink);
}

/* ============================================================
   Practice grid / Recent products grid
   ============================================================ */

.practice-grid,
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.practice-card {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 0.5px solid var(--color-border-light);
}

.product-card {
  background: var(--color-teal-bg);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 0.5px solid var(--color-teal-border);
}

.card-rule {
  width: 28px;
  height: 2px;
  background: var(--color-teal);
  margin-bottom: 22px;
}

.practice-card__title,
.product-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 12px;
}

.practice-card__title {
  color: var(--color-ink);
}

.product-card__title {
  color: var(--color-paper);
  font-size: 22px;
}

.practice-card__body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
}

.product-card__body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-on-dark);
  margin: 0 0 20px;
}

.product-card__stack {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-teal);
  letter-spacing: 0.04em;
  margin: 0;
}

/* ============================================================
   How we engage homepage card
   ============================================================ */

.engage-card {
  max-width: 720px;
}

.engage-card__lede {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: 0 0 20px;
}

.engage-card__body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin: 0 0 28px;
}

.text-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-teal);
  border-bottom: 1px solid var(--color-teal);
  padding-bottom: 2px;
  transition: opacity 0.15s var(--ease);
}

.text-link:hover {
  opacity: 0.7;
}

/* ============================================================
   Track record / Where our team has worked
   ============================================================ */

.track-record__past {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
  padding-bottom: 36px;
  border-bottom: 0.5px solid var(--color-border-dark);
}

.track-record__current {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
  margin-top: 36px;
}

@media (min-width: 640px) {
  .track-record__past {
    grid-template-columns: repeat(2, 1fr);
  }

  .track-record__current {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .track-record__past {
    grid-template-columns: repeat(3, 1fr);
  }
}

.client__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
  color: var(--color-paper);
  margin: 0 0 6px;
}

.client__name--anon {
  font-style: italic;
  font-size: 17px;
}

.client__scope {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-mist-light);
  margin: 0;
}

/* ============================================================
   Two-paths cards (How we engage page)
   ============================================================ */

.paths-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .paths-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.path-card {
  background: var(--color-white);
  padding: 36px;
  border-radius: var(--radius-md);
  border: 0.5px solid var(--color-border-light);
}

.path-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  color: var(--color-ink);
  margin: 0 0 24px;
}

.path-card__field {
  margin-bottom: 20px;
}

.path-card__field:last-child {
  margin-bottom: 0;
}

.path-card__label {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--color-mist);
  margin: 0 0 6px;
  font-weight: 500;
}

.path-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ============================================================
   Consistent pillars (How we engage page)
   ============================================================ */

.pillars {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pillar {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
}

.pillar__number {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-teal);
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.pillar__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-paper);
  margin: 0 0 10px;
}

.pillar__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-on-dark);
  max-width: 560px;
  margin: 0;
}

@media (max-width: 640px) {
  .pillar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pillar__number {
    padding-top: 0;
  }
}

/* ============================================================
   CTA section
   ============================================================ */

.cta {
  text-align: center;
  padding-block: calc(var(--section-pad-y) + 16px);
}

.cta__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  max-width: 540px;
  margin: 0 auto 22px;
}

.cta__body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto 40px;
}

.cta__button {
  display: inline-block;
  padding: 16px 32px;
  background: var(--color-ink);
  color: var(--color-paper);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s var(--ease);
}

.cta__button:hover {
  background: var(--color-teal);
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--color-ink);
  color: var(--color-mist);
  padding: 32px var(--section-pad-x);
}

.footer__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* ============================================================
   Subtle hero entrance
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow,
  .hero__headline,
  .hero__subhead,
  .hero__cta {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.7s var(--ease) forwards;
  }

  .hero__eyebrow { animation-delay: 0.05s; }
  .hero__headline { animation-delay: 0.15s; }
  .hero__subhead { animation-delay: 0.3s; }
  .hero__cta { animation-delay: 0.45s; }

  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
