/* =========================================================================
   CHA3EL — Ottawa website design studio
   Sharp, editorial, high-contrast. White canvas / ink type / fire accents.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --ink: #0A0A0A;
  --white: #FFFFFF;
  --off: #FFF6EE;            /* warm white (no gray) */
  --orange: #FF5A1F;
  --yellow: #FFB020;
  --red: #E8291C;
  --gray: #0A0A0A;           /* secondary text is now black, not gray */
  --line: #FADAC8;           /* soft peach hairline (orange family) */
  --line-strong: #0A0A0A;    /* black hairline where structure is needed */

  --fire: linear-gradient(135deg, #FFB020 0%, #FF5A1F 55%, #E8291C 100%);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --container: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
  --section-y: clamp(38px, 4.2vw, 64px);

  --radius-pill: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(34px, 4.5vw, 58px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--orange);
  display: inline-block;
}
.eyebrow--center::before { display: none; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-top: 18px;
}
.section-head p {
  margin-top: 18px;
  color: var(--gray);
  font-size: 1.08rem;
  max-width: 60ch;
}

.text-fire {
  background: var(--fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 30px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn--primary {
  background: var(--fire);
  color: var(--white);
  box-shadow: 0 6px 20px -6px rgba(232, 41, 28, 0.5);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -6px rgba(232, 41, 28, 0.65);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.btn--on-dark { color: var(--white); border-color: rgba(255,255,255,0.25); }
.btn--on-dark:hover { border-color: var(--white); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease), backdrop-filter 0.3s var(--ease),
    -webkit-backdrop-filter 0.3s var(--ease);
}

/* Every page except the home hero: always show the frosted bar */
.nav:not(.nav--hero) {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
}

.nav:not(.nav--hero).is-scrolled,
.nav.nav--hero.is-scrolled {
  border-bottom-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.brand img { width: 34px; height: 34px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav__link {
  position: relative;
  font-size: 0.98rem;
  font-weight: 500;
  padding: 6px 0;
  color: var(--ink);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--fire);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__cta { margin-left: 4px; }
.nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 3;
}

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav__toggle span {
  position: relative;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: background 0.2s var(--ease);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform 0.28s var(--ease);
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }
.nav.is-open .nav__toggle {
  border-color: var(--line);
  background: var(--white);
}
.nav.is-open .nav__toggle span::before,
.nav.is-open .nav__toggle span::after {
  background: var(--ink);
}

/* Mobile overlay menu */
.nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding: calc(72px + 12px) var(--pad-x) max(36px, env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.nav.is-open .nav__overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav__overlay a:not(.btn) {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 5.5vw, 1.85rem);
  line-height: 1.25;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.nav__overlay a:not(.btn).is-current {
  color: var(--orange);
}
.nav__overlay a:not(.btn):active {
  opacity: 0.65;
}
.nav__overlay-cta {
  margin-top: 32px;
  padding-top: 0;
}
.nav__overlay .btn {
  display: flex;
  width: 100%;
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 17px 30px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius-pill);
  text-align: center;
  justify-content: center;
  align-self: stretch;
  white-space: normal;
}

/* Give body content room under the fixed nav */
.page { padding-top: 72px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(60px, 10vw, 120px) var(--section-y); }
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -140px;
  width: 520px; height: 520px;
  background: var(--fire);
  filter: blur(120px);
  opacity: 0.14;
  z-index: -1;
  pointer-events: none;
}
.hero__eyebrow { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(2.7rem, 8.5vw, 5.25rem);
  max-width: 15ch;
}
.hero__sub {
  margin-top: 26px;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--gray);
  max-width: 54ch;
}
.hero__cta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cred-strip {
  margin-top: 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 48px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.cred-strip li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cred-strip b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
}
.cred-strip span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--white);
  padding: 38px 34px 42px;
  transition: background 0.3s var(--ease);
  position: relative;
}
.service:hover { background: var(--off); }
.service__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--orange);
}
.service__icon {
  margin: 22px 0 20px;
  width: 42px; height: 42px;
  color: var(--ink);
}
.service__icon svg { width: 100%; height: 100%; }
.service h3 { font-size: 1.4rem; }
.service p { margin-top: 12px; color: var(--gray); font-size: 1rem; }

/* ---------- Process (dark band) ---------- */
.process { background: var(--ink); color: var(--white); }
.process .section-head h2 { color: var(--white); }
.process .section-head p { color: var(--white); }

.process__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.badge-14 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 12px 20px;
  border: 1px solid var(--orange);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.badge-14 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fire); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 90, 31, 0.32);
  border: 1px solid rgba(255, 90, 31, 0.32);
}
.step {
  background: var(--ink);
  padding: 34px 28px 40px;
  position: relative;
}
.step__flame {
  width: 44px; height: 52px;
  margin-bottom: 26px;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.step.is-lit .step__flame { opacity: 1; transform: none; }
.step__flame svg { width: 100%; height: 100%; }
.step__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}
.step h3 { font-size: 1.35rem; margin-top: 6px; color: var(--white); }
.step p { margin-top: 12px; color: var(--white); font-size: 0.97rem; }

/* ---------- Portfolio slider ---------- */
.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track {
  display: flex;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.slide {
  min-width: 100%;
  padding: 4px;
}
.slide__card {
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--off);
}
.slide__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--off);
}
.slide__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.slide__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 22px 26px 26px;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.slide__meta h3 { font-size: 1.35rem; }
.slide__domain {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--orange);
}
.slide__meta p { flex-basis: 100%; color: var(--gray); font-size: 0.98rem; }

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  gap: 20px;
}
.slider__dots { display: flex; gap: 10px; }
.slider__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  padding: 0;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.slider__dot.is-active { background: var(--fire); transform: scale(1.25); }
.slider__arrows { display: flex; gap: 10px; }
.slider__arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.slider__arrow:hover { border-color: var(--ink); transform: translateY(-2px); }
.slider__arrow svg { width: 18px; height: 18px; }

/* ---------- Why / differentiator ---------- */
.why { background: var(--off); }
.why__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.why__list { margin-top: 28px; display: grid; gap: 2px; }
.why__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.why__list .flame-bullet { flex: none; width: 22px; height: 26px; margin-top: 2px; }
.why__list b { font-family: var(--font-display); font-weight: 600; }
.why__list span { color: var(--gray); display: block; margin-top: 2px; font-size: 0.97rem; }

.menu-trio { display: grid; gap: 16px; }
.menu-trio__item {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 26px 28px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.menu-trio__item svg { width: 34px; height: 34px; flex: none; color: var(--orange); }
.menu-trio__item b { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.menu-trio__item p { color: var(--gray); font-size: 0.92rem; margin-top: 2px; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 860px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 26px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--ink);
}
.faq-q__icon {
  flex: none;
  width: 24px; height: 24px;
  position: relative;
}
.faq-q__icon::before,
.faq-q__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2px;
  background: var(--orange);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.faq-q__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-q__icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.faq-a__inner { padding: 0 4px 28px; color: var(--gray); max-width: 68ch; }

/* ---------- Contact band ---------- */
.cta-band {
  background: var(--fire);
  color: var(--white);
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  max-width: 18ch;
  margin-inline: auto;
}
.cta-band p { margin: 20px auto 0; max-width: 46ch; font-size: 1.1rem; opacity: 0.95; }
.cta-band__pills {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--ink);
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(0,0,0,0.35); }
.pill svg { width: 18px; height: 18px; }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 80px);
}
.contact-info dl { margin: 28px 0 0; display: grid; gap: 22px; }
.contact-info dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}
.contact-info dd { margin: 6px 0 0; font-size: 1.15rem; font-weight: 500; }
.contact-info dd a:hover { color: var(--orange); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--orange); }
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: 0.85rem; color: var(--gray); }
.form__status { font-size: 0.95rem; font-weight: 500; min-height: 1.2em; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(44px, 5.5vw, 72px) 30px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}
.footer .brand { color: var(--white); }
.footer__tag { margin-top: 18px; max-width: 34ch; color: var(--white); font-size: 0.97rem; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}
.footer__col a { display: block; padding: 5px 0; color: var(--white); }
.footer__col a:hover { color: var(--white); }
.footer address { font-style: normal; line-height: 1.9; }
.footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 90, 31, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--white);
}

/* ---------- Inner page header ---------- */
.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px); }
.page-head h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin-top: 18px; max-width: 18ch; }
.page-head p { margin-top: 20px; color: var(--gray); font-size: 1.15rem; max-width: 60ch; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-bottom: 6px;
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { color: var(--line); margin: 0 8px; }

/* ---------- Service detail (services page) ---------- */
.svc-detail { border-top: 1px solid var(--line); padding-block: clamp(44px, 5vw, 64px); }
.svc-detail__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); }
.svc-detail__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--orange);
  letter-spacing: 0.1em;
}
.svc-detail h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-top: 10px; }
.svc-detail__icon { width: 44px; height: 44px; margin-top: 22px; color: var(--ink); }
.svc-detail__body p { color: var(--gray); font-size: 1.05rem; }
.svc-detail__body p + p { margin-top: 16px; }
.svc-detail__includes { margin-top: 24px; display: grid; gap: 10px; }
.svc-detail__includes li { display: flex; gap: 12px; align-items: flex-start; }
.svc-detail__includes .flame-bullet { flex: none; width: 18px; height: 22px; margin-top: 3px; }

/* ---------- Case blocks (work page) ---------- */
.case { border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 80px); }
.case__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.case:nth-child(even) .case__media { order: 2; }
.case__media { border: 1px solid var(--line); overflow: hidden; }
.case__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.case__domain { font-family: var(--font-mono); font-size: 0.82rem; color: var(--orange); }
.case h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-top: 10px; }
.case__block { margin-top: 22px; }
.case__block h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}
.case__block p { color: var(--gray); }
.case__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 600; color: var(--ink); }
.case__link svg { width: 16px; height: 16px; }
.case__link:hover { color: var(--orange); }

/* ---------- Positioning note (two-layer offering) ---------- */
.tagline-note {
  margin-top: 22px;
  padding: 14px 20px;
  border-left: 3px solid var(--orange);
  background: var(--off);
  font-size: 1.02rem;
  color: var(--ink);
  max-width: 64ch;
}
.tagline-note b { font-weight: 600; }

/* Small "who it's for" tags on service cards / details */
.service__badge,
.svc-detail__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
}
.service__badge { position: absolute; top: 30px; right: 30px; }
.svc-detail__badge { margin-top: 14px; }

/* ---------- Mascot feature sections ---------- */
.mascot-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
}
.mascot-section--reverse .mascot-section__media { order: 2; }

.mascot-figure {
  position: relative;
  background: var(--off);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mascot-figure::before {
  content: "";
  position: absolute;
  width: 62%;
  height: 62%;
  background: var(--fire);
  filter: blur(90px);
  opacity: 0.12;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.mascot-figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  height: auto;
}

.mascot-section__body .eyebrow { margin-bottom: 4px; }
.mascot-section__body h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  margin-top: 16px;
}
.mascot-section__body > p {
  margin-top: 18px;
  color: var(--gray);
  font-size: 1.08rem;
  max-width: 56ch;
}

/* Benefit list (Section A) — reuses the flame bullet */
.benefit-list { margin-top: 26px; display: grid; gap: 0; }
.benefit-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.benefit-list li:first-child { border-top: 1px solid var(--line); }
.benefit-list .flame-bullet { flex: none; width: 20px; height: 24px; margin-top: 2px; }
.benefit-list b { font-family: var(--font-display); font-weight: 600; }
.benefit-list span { display: block; color: var(--gray); margin-top: 3px; font-size: 0.97rem; }

/* ---------- Process mascot anchor (Section C, on the dark band) ---------- */
.process__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}
.mascot-figure--sm { padding: 16px; border-radius: 22px; }
.mascot-figure--sm img { max-width: 170px; }
.mascot-figure--on-dark {
  background: var(--white);
  border-color: rgba(255, 255, 255, 0.16);
}
.mascot-figure--on-dark::before { opacity: 0.18; }

/* ---------- Scroll reveal ---------- */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal:not(.is-in) { opacity: 0; transform: translateY(22px); }
.reveal.is-in { opacity: 1; transform: none; }
[data-stagger] > * { transition-delay: var(--d, 0s); }

/* ---------- Flame bullet (shared inline) ---------- */
.flame-bullet { color: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why__grid,
  .contact-grid,
  .svc-detail__grid,
  .case__grid,
  .mascot-section__grid { grid-template-columns: 1fr; }
  .case:nth-child(even) .case__media { order: 0; }
  .mascot-section--reverse .mascot-section__media { order: 0; }
  .mascot-figure img { max-width: 340px; }
  .process__aside { align-items: flex-start; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brandcol { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }

  /* Solid header + visible X on every page when menu is open */
  .nav.is-open {
    background: var(--white);
    -webkit-backdrop-filter: none;
            backdrop-filter: none;
    border-bottom-color: var(--line);
  }
  .nav.is-open .brand {
    color: var(--ink);
  }
  .nav.is-open .nav__toggle {
    border-color: var(--line);
    background: var(--white);
  }
  .nav.is-open .nav__toggle span::before,
  .nav.is-open .nav__toggle span::after {
    background: var(--ink);
  }

  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .step__flame { opacity: 1; transform: none; }
}

/* =========================================================================
   HOMEPAGE v2 — density, futuristic texture, geometric markers, marquee
   Appended overrides (later rules win). Colours/fonts unchanged.
   ========================================================================= */

/* ---------- Geometric list marker (replaces flame-style bullets) ---------- */
.flame-bullet {
  position: relative;
  flex: none;
  width: 14px !important;
  height: 14px !important;
}
.flame-bullet svg { display: none !important; }
.flame-bullet::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--fire);
  border-radius: 2px;
}

/* ---------- Tighter section-head rhythm (less dead space) ---------- */
.section-head { margin-bottom: clamp(26px, 3.4vw, 42px); }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 12px; }
.section-head .tagline-note { margin-top: 16px; }

/* ---------- Hero: asymmetric two-column, real visual, texture ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(40px, 6vw, 88px) var(--section-y);
}
.hero::before { /* fine diagonal grid, masked to the top-right (asymmetric) */
  content: "";
  position: absolute;
  inset: 0;
  top: 0; right: auto; left: 0;
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, rgba(10, 10, 10, 0.05) 0 1px, transparent 1px 46px);
  filter: none;
  opacity: 1;
  -webkit-mask-image: radial-gradient(120% 92% at 90% 6%, #000 0%, transparent 58%);
          mask-image: radial-gradient(120% 92% at 90% 6%, #000 0%, transparent 58%);
  z-index: -2;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  top: -170px; right: -130px;
  width: 560px; height: 560px;
  background: var(--fire);
  filter: blur(130px);
  opacity: 0.16;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero__content { position: relative; z-index: 1; }
.hero__eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); line-height: 1.02; max-width: 16ch; }
.hero__sub { margin-top: 20px; }
.hero__cta { margin-top: 28px; }
.hero .cred-strip { margin-top: 30px; padding-top: 22px; gap: 12px 34px; }

.hero__visual {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  transform: perspective(1500px) rotateY(-15deg) rotateX(4deg) rotate(-1deg);
}
.hero__browser {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 44px 90px -34px rgba(10, 10, 10, 0.45);
}
.hero__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--off);
  border-bottom: 1px solid var(--line);
}
.hero__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.hero__bar i:first-child { background: var(--orange); }
.hero__browser img { display: block; width: 100%; height: auto; }
.hero__chip {
  position: absolute;
  left: -26px;
  bottom: 22px;
  background: var(--ink);
  border-radius: 16px;
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: 0 22px 44px -16px rgba(10, 10, 10, 0.55);
  z-index: 2;
}
.hero__chip b {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  background: var(--fire);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__chip span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  line-height: 1.3;
}
.hero__ticks {
  position: absolute;
  top: -16px;
  right: -8px;
  width: 82px;
  height: 82px;
  background: repeating-linear-gradient(45deg, var(--orange) 0 2px, transparent 2px 11px);
  opacity: 0.55;
  z-index: 1;
  -webkit-mask-image: linear-gradient(45deg, #000, transparent 82%);
          mask-image: linear-gradient(45deg, #000, transparent 82%);
  pointer-events: none;
}

/* ---------- Services: asymmetric glow + weightier numbered cards ---------- */
#services { position: relative; }
#services::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 12%;
  left: -150px;
  width: 420px;
  height: 420px;
  background: var(--fire);
  filter: blur(150px);
  opacity: 0.07;
  border-radius: 50%;
  pointer-events: none;
}
.service {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 34px;
}
.service::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: var(--fire);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service__num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  transition: -webkit-text-stroke-color 0.3s var(--ease);
}
.service:hover .service__num {
  -webkit-text-stroke-color: transparent;
  background: var(--fire);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.service__icon { margin: 18px 0 16px; }
.service__badge { top: 26px; right: 26px; }

/* ---------- Process head: tighter ---------- */
.process__head { margin-bottom: clamp(28px, 4vw, 46px); }

/* ---------- Mascot "people" slide-in animation ---------- */
.mascot-section__media.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .mascot-section__media.reveal:not(.is-in) { opacity: 0; transform: translateX(-46px); }
html.js .mascot-section--reverse .mascot-section__media.reveal:not(.is-in) { transform: translateX(46px); }
.mascot-section__media.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Work marquee (small auto-scrolling boxes) ---------- */
.work-marquee {
  position: relative;
  overflow: hidden;
  margin-top: clamp(18px, 3vw, 30px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.work-marquee__track {
  display: flex;
  width: max-content;
  animation: cha3el-marquee 34s linear infinite;
}
.work-marquee:hover .work-marquee__track { animation-play-state: paused; }
@keyframes cha3el-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.work-card {
  flex: none;
  width: 282px;
  margin-right: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.work-card:hover {
  transform: translateY(-5px);
  border-color: var(--ink);
  box-shadow: 0 22px 38px -20px rgba(10, 10, 10, 0.4);
}
.work-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--off);
}
.work-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.work-card__meta { display: flex; flex-direction: column; gap: 2px; padding: 12px 15px 14px; }
.work-card__meta b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.work-card__domain { font-family: var(--font-mono); font-size: 0.72rem; color: var(--orange); }

/* ---------- Responsive: tablet / phone ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__visual { order: 2; min-height: 0; margin-top: 6px; }
  .hero__panel { transform: none; max-width: 460px; margin-inline: auto; }
  .hero__chip { left: 6px; bottom: 12px; padding: 11px 15px; }
  .hero__chip b { font-size: 1.7rem; }
  .hero::before { -webkit-mask-image: radial-gradient(140% 60% at 92% 4%, #000 0%, transparent 60%); mask-image: radial-gradient(140% 60% at 92% 4%, #000 0%, transparent 60%); }
}

@media (max-width: 560px) {
  .hero__panel { max-width: 340px; }
  .hero__ticks { width: 58px; height: 58px; }
  .work-card__meta { padding: 10px 13px 12px; }
  .cred-strip { gap: 12px 22px; }
  .cred-strip b { font-size: 1.4rem; }
  .service__badge { position: static; display: inline-flex; margin-bottom: 10px; }
  .work-marquee__track { animation-duration: 24s; }
}

/* ---------- Reduced motion: no marquee scroll, allow manual scroll ---------- */
@media (prefers-reduced-motion: reduce) {
  .work-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .work-marquee__track { animation: none !important; }
  .mascot-section__media.reveal { transform: none; }
}

/* ---------- Overflow hardening (prevents grid/image blowout on phones) ---- */
html, body { max-width: 100%; overflow-x: hidden; }
.hero__grid > *,
.why__grid > *,
.contact-grid > *,
.svc-detail__grid > *,
.case__grid > *,
.mascot-section__grid > *,
.process__head > * { min-width: 0; }
.hero__visual, .hero__panel, .hero__browser, .mascot-figure { min-width: 0; max-width: 100%; }
.hero__browser img, .mascot-figure img { min-width: 0; }

/* Use minmax(0,…) tracks so a wide image never forces a column past the
   viewport (1fr === minmax(auto,1fr), and auto resolves to min-content). */
.mascot-section__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.why__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.contact-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.svc-detail__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.case__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 960px) {
  .why__grid,
  .contact-grid,
  .svc-detail__grid,
  .case__grid,
  .mascot-section__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Final density trim ---------- */
.hero { padding-block: clamp(28px, 3.4vw, 52px) clamp(36px, 4vw, 60px); }
.mascot-section { padding-block: clamp(32px, 3.6vw, 54px); }
.why, .process { padding-block: clamp(38px, 4.2vw, 64px); }

/* =========================================================================
   DARK HERO (black + orange gradient) & BLACK BUTTON-STYLE SERVICES
   Palette only: white / black / orange / yellow-orange. No gray.
   ========================================================================= */

/* ---------- Hero: black canvas with orange gradient ---------- */
.hero {
  background:
    radial-gradient(115% 92% at 82% -8%, rgba(255, 90, 31, 0.42) 0%, rgba(255, 90, 31, 0) 56%),
    radial-gradient(92% 80% at 4% 112%, rgba(255, 176, 32, 0.20) 0%, rgba(255, 176, 32, 0) 55%),
    var(--ink);
  color: var(--white);
}
.hero::before { /* faint white diagonal grid on black */
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 46px);
  -webkit-mask-image: radial-gradient(120% 92% at 90% 6%, #000 0%, transparent 60%);
          mask-image: radial-gradient(120% 92% at 90% 6%, #000 0%, transparent 60%);
}
.hero__glow {
  top: 50%; right: 5%; left: auto;
  transform: translateY(-50%);
  width: 480px; height: 480px;
  opacity: 0.42;
}
.hero h1 { color: var(--white); }
.hero__sub { color: var(--white); }
.hero .cred-strip { border-top-color: rgba(255, 255, 255, 0.2); }
.hero .cred-strip b { color: var(--white); }
.hero .cred-strip span { color: var(--yellow); }
.hero .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, 0.34); }
.hero .btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }

.hero__figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.hero__figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 24px 50px rgba(255, 90, 31, 0.35));
}

/* ---------- Services: black section, cards styled as buttons ---------- */
#services {
  background: var(--ink);
  color: var(--white);
}
#services::before { opacity: 0.16; }
#services .section-head h2 { color: var(--white); }
#services .tagline-note {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--orange);
  color: var(--white);
}
.services-grid {
  background: transparent;
  border: 0;
  gap: 14px;
}
.service {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  color: var(--white);
  padding: 26px 24px 30px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.service::before { display: none; }
.service:hover {
  background: var(--fire);
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -16px rgba(255, 90, 31, 0.55);
}
.service h3 { color: var(--white); }
.service p { color: var(--white); }
.service__icon { color: var(--white); }
.service__num {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45);
}
.service:hover .service__num {
  -webkit-text-stroke-color: transparent;
  background: none;
  -webkit-text-fill-color: var(--white);
  color: var(--white);
}
.service__badge {
  color: var(--yellow);
  border-color: rgba(255, 255, 255, 0.32);
  background: transparent;
}

/* ---------- Dead hero-mockup rules: neutralise stray gray ---------- */
.hero__chip span { color: var(--yellow); }

/* ---------- Mobile: hero image below copy, sized down ---------- */
@media (max-width: 900px) {
  .hero__figure img { max-width: 380px; }
}

/* =========================================================================
   Brand accent + transparent header over the dark hero
   ========================================================================= */

/* The "3" in Cha3el is always orange, in every header/footer state. */
.brand__accent { color: var(--orange); }

/* ---------- Work: static small boxes (no slider/marquee) ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(18px, 3vw, 30px);
}
.work-grid .work-card {
  width: auto;
  margin: 0;
  flex: initial;
}
@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Blog — index grid, cards, single post, related, pagination, search.
   Reuses the site's tokens, card treatment, and contact band. No new
   colours or fonts are introduced here.
   ========================================================================= */

/* Narrower reading measure for single posts. */
.container--narrow { max-width: 760px; }

/* ---------- Post grid + cards (shared by index / archives / search / related) ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.post-card:hover {
  transform: translateY(-5px);
  border-color: var(--ink);
  box-shadow: 0 22px 38px -20px rgba(10, 10, 10, 0.4);
}
.post-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--off);
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.post-card__ph { display: block; width: 100%; height: 100%; background: var(--fire); opacity: 0.12; }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.post-card__cat {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}
.post-card__title { font-size: 1.28rem; line-height: 1.25; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--orange); }
.post-card__excerpt { color: var(--gray); font-size: 0.98rem; line-height: 1.55; }
.post-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--gray);
}
.post-card__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--orange); flex: none; }

/* ---------- Single post ---------- */
.single__head { padding-block: clamp(40px, 6vw, 72px) clamp(20px, 3vw, 34px); }
.single__cat {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
}
.single__title { font-size: clamp(2rem, 5.5vw, 3.2rem); line-height: 1.1; max-width: 20ch; }
.single__meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--gray);
}
.single__author { color: var(--ink); font-weight: 500; }
.single__hero { margin-block: clamp(20px, 3vw, 36px); }
.single__hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.single__body { padding-bottom: clamp(40px, 6vw, 72px); }
.single__tags { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.8rem; }
.single__tags-label { color: var(--gray); letter-spacing: 0.08em; text-transform: uppercase; margin-right: 8px; }
.single__tags a { color: var(--orange); margin-right: 10px; }

/* ---------- Long-form content (entry-content) ---------- */
.entry-content { font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.2; margin-top: 1.8em; }
.entry-content h3 { font-size: clamp(1.25rem, 2.8vw, 1.5rem); line-height: 1.25; margin-top: 1.6em; }
.entry-content h4 { font-size: 1.15rem; margin-top: 1.4em; }
.entry-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--red); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: 0.5em; }
.entry-content img, .entry-content .wp-block-image img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.entry-content figure { margin-top: 1.5em; }
.entry-content figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--gray); text-align: center; }
.entry-content blockquote {
  margin-top: 1.5em;
  padding: 8px 0 8px 26px;
  border-left: 3px solid var(--orange);
  background: var(--off);
  padding-block: 18px;
  padding-right: 22px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.5;
}
.entry-content blockquote cite { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 0.8rem; font-style: normal; color: var(--gray); }
.entry-content code, .entry-content kbd { font-family: var(--font-mono); font-size: 0.9em; background: var(--off); padding: 2px 6px; border-radius: 6px; }
.entry-content pre { background: var(--ink); color: var(--white); padding: 20px 22px; border-radius: 12px; overflow-x: auto; }
.entry-content pre code { background: none; color: inherit; padding: 0; }
.entry-content hr { border: none; border-top: 1px solid var(--line); margin-block: 2em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }

/* ---------- Related posts ---------- */
.related { background: var(--off); }

/* ---------- Pagination ---------- */
.blog-pagination { margin-top: clamp(40px, 5vw, 64px); }
.blog-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.blog-pagination .page-numbers:hover { border-color: var(--ink); }
.blog-pagination .page-numbers.current { background: var(--fire); color: var(--white); border-color: transparent; }
.blog-pagination .page-numbers.dots { border: none; }

/* ---------- Search form + empty state ---------- */
.blog-search { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(32px, 4vw, 48px); }
.blog-search input[type="search"] {
  flex: 1 1 260px;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}
.blog-search input[type="search"]:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.blog-empty { text-align: center; color: var(--gray); font-size: 1.1rem; padding-block: 40px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Blog responsive ---------- */
@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Homepage — transparent nav at top, white bar on scroll (PC + phone)
   ========================================================================= */

/* Let the dark hero run to the very top, behind the fixed nav. */
.cha3el-home .page,
.nav--hero + .page { padding-top: 0; }

.nav--hero + .page > .hero:first-child,
.cha3el-home .hero {
  margin-top: -72px;
  padding-top: calc(72px + clamp(16px, 4vw, 28px));
  padding-bottom: clamp(32px, 5vw, 56px);
}

/* At top: fully transparent — no frost, no white tint */
.nav.nav--hero:not(.is-scrolled):not(.is-open),
.cha3el-home .nav:not(.is-scrolled):not(.is-open) {
  background: transparent;
  background-color: transparent;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  border-bottom-color: transparent;
  box-shadow: none;
}

/* After scroll: solid frosted white bar */
.nav.nav--hero.is-scrolled,
.cha3el-home .nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
          backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}

/* Top state: white logo + links (all breakpoints) */
.nav.nav--hero:not(.is-scrolled):not(.is-open) .brand,
.nav.nav--hero:not(.is-scrolled):not(.is-open) .nav__link,
.cha3el-home .nav:not(.is-scrolled):not(.is-open) .brand,
.cha3el-home .nav:not(.is-scrolled):not(.is-open) .nav__link {
  color: var(--white);
}

/* Scrolled state: back to dark text */
.nav.nav--hero.is-scrolled .brand,
.nav.nav--hero.is-scrolled .nav__link,
.cha3el-home .nav.is-scrolled .brand,
.cha3el-home .nav.is-scrolled .nav__link {
  color: var(--ink);
}

/* Mobile menu button on transparent hero */
.nav.nav--hero:not(.is-scrolled):not(.is-open) .nav__toggle,
.cha3el-home .nav:not(.is-scrolled):not(.is-open) .nav__toggle {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}
.nav.nav--hero:not(.is-scrolled):not(.is-open) .nav__toggle span,
.nav.nav--hero:not(.is-scrolled):not(.is-open) .nav__toggle span::before,
.nav.nav--hero:not(.is-scrolled):not(.is-open) .nav__toggle span::after,
.cha3el-home .nav:not(.is-scrolled):not(.is-open) .nav__toggle span,
.cha3el-home .nav:not(.is-scrolled):not(.is-open) .nav__toggle span::before,
.cha3el-home .nav:not(.is-scrolled):not(.is-open) .nav__toggle span::after {
  background: var(--white);
}

/* Scrolled: default dark hamburger */
.nav.nav--hero.is-scrolled .nav__toggle,
.cha3el-home .nav.is-scrolled .nav__toggle {
  border-color: var(--line);
  background: var(--white);
}
.nav.nav--hero.is-scrolled .nav__toggle span,
.nav.nav--hero.is-scrolled .nav__toggle span::before,
.nav.nav--hero.is-scrolled .nav__toggle span::after,
.cha3el-home .nav.is-scrolled .nav__toggle span,
.cha3el-home .nav.is-scrolled .nav__toggle span::before,
.cha3el-home .nav.is-scrolled .nav__toggle span::after {
  background: var(--ink);
}

/* Open mobile overlay: solid white header (home hero) */
.nav.nav--hero.is-open,
.cha3el-home .nav.is-open {
  background: var(--white);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  border-bottom-color: var(--line);
}
.nav.nav--hero.is-open .brand,
.nav.nav--hero.is-open .nav__link,
.cha3el-home .nav.is-open .brand,
.cha3el-home .nav.is-open .nav__link {
  color: var(--ink);
}

.hero { overflow: hidden; }
.hero__glow {
  pointer-events: none;
  max-width: 100vw;
}

@media (max-width: 560px) {
  .hero__glow {
    width: 300px;
    height: 300px;
    right: -50px;
    opacity: 0.28;
  }
  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
    max-width: none;
  }
  .hero__figure img {
    max-width: min(100%, 300px);
    margin-inline: auto;
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .cred-strip {
    flex-direction: column;
    gap: 14px;
  }
  .cred-strip li {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }
  .process__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .process__aside {
    flex-direction: column;
    align-items: flex-start;
  }
  .badge-14 {
    white-space: normal;
  }
  .cta-band__pills {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-band__pills .pill {
    justify-content: center;
  }
  #services::before {
    left: -80px;
    width: 260px;
    height: 260px;
  }
  .mascot-figure img {
    max-width: min(100%, 280px);
    margin-inline: auto;
  }
  .section-head h2 {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }
}
