@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@500;700;800&family=Figtree:wght@400;500;600;700&display=swap");

/* ==========================================================================
   Enterprise Excellence Foundation
   Brand stylesheet v0.1
   entexfoundation.org
   --------------------------------------------------------------------------
   1. Design tokens
   2. Reset and base
   3. Typography
   4. Layout
   5. Colour and surface helpers
   6. Decorative graphics
   7. Header and navigation
   8. Buttons
   9. Cards
   10. Tags, chips and labels
   11. Events, quotes and stats
   12. Forms
   13. FAQ
   14. Call to action
   15. Footer
   16. Brand guide
   17. Responsive
   18. Accessibility and motion
   ========================================================================== */

/* 1. Design tokens
   ========================================================================== */

:root {
  /* Core palette */
  --color-ink: #030207;
  --color-white: #ffffff;
  --color-cream: #faf9f5;
  --color-orange: #ff5a3c;
  --color-yellow: #ffc83d;
  --color-cyan: #19c3e6;
  --color-violet: #6a4dff;

  /* Supporting colours */
  --color-line-soft: rgba(3, 2, 7, 0.12);
  --color-shadow-soft: rgba(3, 2, 7, 0.08);

  /* Typography */
  --font-display: "Bricolage Grotesque", "Figtree", sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 24px);
  --section-space: clamp(64px, 8vw, 96px);
  --card-gap: 20px;

  /* Radii */
  --radius-xs: 14px;
  --radius-sm: 16px;
  --radius-md: 28px;
  --radius-lg: 32px;
  --radius-xl: 40px;
  --radius-pill: 999px;

  /* Border */
  --border-strong: 3px solid var(--color-ink);
  --border-field: 2px solid var(--color-ink);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --speed: 200ms;
}

/* 2. Reset and base
   ========================================================================== */

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

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

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: clamp(17px, 1.15vw, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.guide-page {
  background: var(--color-cream);
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.16em;
}

a:hover {
  text-decoration-color: var(--color-orange);
}

p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding-left: 1.25em;
}

::selection {
  background: var(--color-yellow);
  color: var(--color-ink);
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--color-violet);
  outline-offset: 3px;
}

:where(.bg-ink, .bg-violet, .site-footer, .on-dark)
  :where(a, button, input, textarea, select, summary):focus-visible {
  outline-color: var(--color-yellow);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 3. Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.06;
}

h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.15;
}

h4 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.lede {
  max-width: 620px;
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.45;
}

.body-lg {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.55;
}

.measure {
  max-width: 760px;
}

.measure-narrow {
  max-width: 620px;
}

.text-soft {
  opacity: 0.82;
}

.text-small {
  font-size: 15px;
  line-height: 1.5;
}

.text-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.type-h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.type-h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.type-h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.type-lede {
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 500;
  line-height: 1.45;
}

.type-body {
  font-size: 17px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.price {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.person__portrait {
  height: 220px;
  border-radius: var(--radius-md);
}

.person__name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.person__role {
  font-size: 16px;
  line-height: 1.45;
}

.research-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.research-item {
  padding: 22px 26px;
  border-radius: 24px;
  background: var(--color-orange);
  color: var(--color-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.research-item--yellow {
  background: var(--color-yellow);
}

.research-item--cyan {
  background: var(--color-cyan);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-white);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--speed) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

section[id] {
  scroll-margin-top: 24px;
}

/* 4. Layout
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-space);
}

.section--sm {
  padding-block: clamp(48px, 6vw, 72px);
}

.section--flush-top {
  padding-top: 0;
}

.section--flush-bottom {
  padding-bottom: 0;
}

.section--art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.section--art > .container {
  position: relative;
  z-index: 1;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 32px);
}

.stack--sm {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack--lg {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 48px);
  align-items: flex-start;
}

.split > * {
  flex: 1 1 360px;
  min-width: 0;
}

.split--wide > * {
  flex-basis: 440px;
}

.split--center {
  align-items: center;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}

.section-head--wide {
  max-width: 900px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: var(--card-gap);
}

.card-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.card-grid--feature {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

/* 5. Colour and surface helpers
   ========================================================================== */

.bg-ink {
  background-color: var(--color-ink);
  color: var(--color-white);
}

.bg-white {
  background-color: var(--color-white);
  color: var(--color-ink);
}

.bg-cream {
  background-color: var(--color-cream);
  color: var(--color-ink);
}

.bg-orange {
  background-color: var(--color-orange);
  color: var(--color-ink);
}

.bg-yellow {
  background-color: var(--color-yellow);
  color: var(--color-ink);
}

.bg-cyan {
  background-color: var(--color-cyan);
  color: var(--color-ink);
}

.bg-violet {
  background-color: var(--color-violet);
  color: var(--color-white);
}

/* 6. Decorative graphics
   ========================================================================== */

.burst {
  border-radius: 50%;
  background: repeating-conic-gradient(
    var(--color-orange) 0deg 15deg,
    var(--color-yellow) 15deg 30deg,
    var(--color-cyan) 30deg 45deg,
    var(--color-violet) 45deg 60deg
  );
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
  padding-block: clamp(72px, 10vw, 120px);
}

.hero h1 {
  max-width: 800px;
}

.hero__lede {
  max-width: 620px;
  font-size: clamp(20px, 1.8vw, 22px);
  font-weight: 500;
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}

.hero__art {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  pointer-events: none;
}

.hero__burst {
  width: min(760px, 70vw);
  aspect-ratio: 1;
  opacity: 0.95;
}

.hero__burst--tr {
  top: -22%;
  right: -16%;
}

.hero__burst--br {
  right: -16%;
  bottom: -40%;
}

.hero__dot {
  width: clamp(72px, 10vw, 150px);
  aspect-ratio: 1;
}

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

.hero__dot--yellow {
  background: var(--color-yellow);
}

.hero__dot--orange {
  background: var(--color-orange);
}

.hero__dot--cyan {
  background: var(--color-cyan);
}

.hero__dot--tr {
  top: 20px;
  right: 20px;
}

.hero__dot--bl {
  bottom: -80px;
  left: -60px;
}

.hero__dot--br {
  right: 22%;
  bottom: 32px;
}

.burst-ring {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}

.burst-ring__fill {
  position: absolute;
  inset: 0;
}

.burst-ring__mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56%;
  aspect-ratio: 1;
  border: 6px solid var(--color-yellow);
  border-radius: var(--radius-md);
  object-fit: cover;
  transform: translate(-50%, -50%);
}

/* 7. Header and navigation
   ========================================================================== */

.site-header {
  background: var(--color-white);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 20px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand__mark {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xs);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 26px;
}

.site-nav__link {
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  text-decoration-color: var(--color-orange);
}

/* 8. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--speed) var(--ease),
    background-color var(--speed) var(--ease),
    color var(--speed) var(--ease),
    border-color var(--speed) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--ink {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-white);
}

.btn--yellow {
  border-color: var(--color-ink);
  background: var(--color-yellow);
  color: var(--color-ink);
}

.btn--white {
  border-color: var(--color-ink);
  background: var(--color-white);
  color: var(--color-ink);
}

.btn--orange {
  border-color: var(--color-ink);
  background: var(--color-orange);
  color: var(--color-ink);
}

.btn--ghost {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.btn--ghost:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.btn--lg {
  min-height: 56px;
  padding-inline: 32px;
  font-size: 18px;
}

.btn--sm {
  min-height: 44px;
  padding-inline: 20px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

/* 9. Cards
   ========================================================================== */

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-ink);
}

.card--pad-lg {
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
}

.card--bordered {
  border: var(--border-strong);
}

.card--ink {
  background: var(--color-ink);
  color: var(--color-white);
}

.card--orange {
  background: var(--color-orange);
  color: var(--color-ink);
}

.card--yellow {
  background: var(--color-yellow);
  color: var(--color-ink);
}

.card--cyan {
  background: var(--color-cyan);
  color: var(--color-ink);
}

.card--violet {
  background: var(--color-violet);
  color: var(--color-white);
}

.card--min {
  min-height: 200px;
}

.card h3 {
  font-size: clamp(24px, 2.2vw, 28px);
}

.card p {
  font-size: 17px;
  line-height: 1.5;
}

.card__link {
  margin-top: auto;
  padding-top: 4px;
  font-size: 17px;
  font-weight: 700;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step__number {
  display: grid;
  place-items: center;
  width: clamp(56px, 6vw, 72px);
  height: clamp(56px, 6vw, 72px);
  border-radius: 50%;
  background: var(--color-orange);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 800;
  line-height: 1;
}

.step__number--yellow {
  background: var(--color-yellow);
}

.step__number--cyan {
  background: var(--color-cyan);
}

.step__number--violet {
  background: var(--color-violet);
  color: var(--color-white);
}

.badge-number {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-orange);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.badge-number--yellow {
  background: var(--color-yellow);
}

.badge-number--cyan {
  background: var(--color-cyan);
}

.badge-number--violet {
  background: var(--color-violet);
  color: var(--color-white);
}

/* 10. Tags, chips and labels
   ========================================================================== */

.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.tag--yellow {
  background: var(--color-yellow);
  color: var(--color-ink);
}

.tag--cyan {
  background: var(--color-cyan);
  color: var(--color-ink);
}

.tag--orange {
  background: var(--color-orange);
  color: var(--color-ink);
}

.tag--violet {
  background: var(--color-violet);
  color: var(--color-white);
}

.tag--white {
  background: var(--color-white);
  color: var(--color-ink);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: var(--border-field);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--color-ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.chip:hover {
  background: var(--color-cream);
}

.chip--active {
  background: var(--color-ink);
  color: var(--color-white);
}

/* 11. Events, quotes and stats
   ========================================================================== */

.event-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.event-card__title {
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.15;
}

.event-card__meta {
  font-size: 17px;
  line-height: 1.5;
}

.event-card__link {
  margin-top: auto;
  font-size: 17px;
  font-weight: 700;
}

.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  min-height: 220px;
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--color-orange);
  color: var(--color-ink);
}

.quote--cyan {
  background: var(--color-cyan);
}

.quote--yellow {
  background: var(--color-yellow);
}

.quote--violet {
  background: var(--color-violet);
  color: var(--color-white);
}

.quote__text {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.35;
}

.quote__cite {
  font-size: 16px;
  font-weight: 600;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat__value {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 64px);
  font-weight: 800;
  line-height: 1;
}

.stat__label {
  font-size: 18px;
  line-height: 1.4;
}

/* 12. Forms
   ========================================================================== */

.form-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--color-yellow);
  color: var(--color-ink);
}

.form-panel h2 {
  font-size: clamp(28px, 3vw, 32px);
}

.form-panel .btn {
  align-self: flex-start;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.field {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: var(--border-field);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
  font-size: 17px;
}

.field:focus-visible {
  outline: 3px solid var(--color-violet);
  outline-offset: 2px;
}

textarea.field {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.8;
}

/* 13. FAQ
   ========================================================================== */

.faq {
  display: flex;
  flex-direction: column;
}

.faq__item {
  padding-block: 16px;
  border-bottom: var(--border-strong);
}

.faq__item:first-child {
  padding-top: 0;
}

.faq__question {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.faq__answer {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.5;
}

/* 14. Call to action
   ========================================================================== */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: var(--color-yellow);
  color: var(--color-ink);
}

.cta h2 {
  flex: 1 1 420px;
  max-width: 780px;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.04;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta--orange {
  background: var(--color-orange);
  color: var(--color-ink);
}

.cta--violet {
  background: var(--color-violet);
  color: var(--color-white);
}

.cta--ink {
  background: var(--color-ink);
  color: var(--color-white);
}

/* 15. Footer
   ========================================================================== */

.site-footer {
  background: var(--color-ink);
  color: var(--color-white);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-block: 56px;
  padding-inline: var(--gutter);
}

.site-footer__brand {
  display: flex;
  flex: 1 1 300px;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.site-footer__wordmark {
  width: 240px;
  max-width: 100%;
  border-radius: var(--radius-sm);
}

.site-footer__tagline {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.85;
}

.site-footer__nav {
  display: flex;
  flex: 1 1 200px;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  font-size: 17px;
}

.site-footer__meta {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.85;
}

.site-footer a {
  text-decoration: none;
  opacity: 0.9;
}

.site-footer__nav a,
.site-footer__meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer a:hover {
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* 16. Brand guide
   ========================================================================== */

.guide-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-white);
}

.guide-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  padding-block: clamp(64px, 9vw, 112px);
}

.guide-hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1;
}

.guide-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  opacity: 0.9;
}

.guide-hero__art {
  position: absolute;
  top: -20%;
  right: -14%;
  z-index: 0;
  width: min(520px, 55vw);
  aspect-ratio: 1;
  opacity: 0.5;
}

.guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.guide-nav {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 16px;
}

.guide-nav__title {
  margin-bottom: 8px;
  padding-inline: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

.guide-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.guide-nav a:hover {
  background: var(--color-white);
}

.guide-main {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 96px);
  min-width: 0;
  padding-block: clamp(48px, 7vw, 80px);
}

.guide-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  scroll-margin-top: 24px;
}

.guide-section__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.guide-section__head h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.guide-label {
  color: var(--color-violet);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 16px;
}

.swatch {
  overflow: hidden;
  border: 1px solid var(--color-line-soft);
  border-radius: 20px;
  background: var(--color-white);
}

.swatch__color {
  height: 120px;
}

.swatch__info {
  padding: 16px;
}

.swatch__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.swatch__hex {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.swatch__use {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.75;
}

.specimen {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.specimen--ink {
  background: var(--color-ink);
  color: var(--color-white);
}

.specimen__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

.type-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  padding-block: 18px;
  border-bottom: 1px solid var(--color-line-soft);
}

.type-row:last-child {
  border-bottom: 0;
}

.type-row__meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
  opacity: 0.6;
}

.logo-stage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 32px;
  border-radius: var(--radius-md);
}

.logo-tile--ink {
  background: var(--color-ink);
}

.logo-tile--paper {
  border: 1px solid var(--color-line-soft);
  background: var(--color-white);
}

.logo-tile--orange {
  background: var(--color-orange);
}

.logo-tile--yellow {
  background: var(--color-yellow);
}

.logo-tile--violet {
  background: var(--color-violet);
}

.logo-tile__mark {
  width: 120px;
  border-radius: 24px;
}

.logo-tile__wordmark {
  width: 220px;
  border-radius: var(--radius-sm);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.rule {
  padding: 24px;
  border-radius: 20px;
  background: var(--color-white);
}

.rule--do {
  border-top: 6px solid var(--color-cyan);
}

.rule--dont {
  border-top: 6px solid var(--color-orange);
}

.rule h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.rule ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  line-height: 1.55;
}

.demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.demo--ink {
  background: var(--color-ink);
  color: var(--color-white);
}

.demo--cream {
  background: var(--color-cream);
}

.demo--yellow {
  background: var(--color-yellow);
  color: var(--color-ink);
}

.demo__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.demo__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-line-soft);
  border-radius: var(--radius-sm);
  background: var(--color-white);
}

.token-table {
  width: 100%;
  border-collapse: collapse;
}

.token-table th,
.token-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-line-soft);
  font-size: 15px;
  text-align: left;
  vertical-align: top;
}

.token-table tr:last-child td {
  border-bottom: 0;
}

.token-table th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.token-table code {
  font-size: 14px;
}

/* 17. Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .hero__burst {
    opacity: 0.4;
  }
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-nav {
    position: static;
    flex-flow: row wrap;
    gap: 6px;
    padding-block: 16px 0;
    border-bottom: 1px solid var(--color-line-soft);
  }

  .guide-nav__title {
    display: none;
  }

  .guide-nav a {
    padding: 8px 10px;
  }

  .guide-main {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .site-header__inner {
    padding-block: 16px;
  }

  .site-nav {
    gap: 0 18px;
  }

  .site-nav__link {
    padding: 10px 2px;
  }

  .hero__inner {
    padding-block: 64px 80px;
  }

  .hero__dot--tr {
    top: 12px;
    right: 12px;
    width: 72px;
  }

  .type-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .cta,
  .card--pad-lg {
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 520px) {
  .brand__name {
    font-size: 18px;
  }

  .brand__mark {
    width: 46px;
    height: 46px;
  }

  .site-nav {
    width: 100%;
    gap: 0 16px;
  }

  .site-nav .btn {
    margin-top: 6px;
  }

  .hero__burst {
    width: 86vw;
  }

  .hero__dot--bl {
    bottom: -50px;
    left: -40px;
  }

  .quote {
    min-height: 0;
  }
}

/* 18. Accessibility and motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
