/* ilterra.com — visual language of the original WordPress/Elementor site, rebuilt by hand. */

:root {
  --c-topbar: #de3333;
  --c-nav: #2f2f2f;
  --c-nav-active: #e9161c;
  --c-nav-hover: #ec4343;
  --c-heading: #dd7133;
  --c-text: #7a7a7a;
  --c-body: #333;
  --c-secondary: #54595f;
  --c-accent: #dd3333;
  --c-link: #cc3366;
  --c-tags-bg: #f27171;
  --c-tags-link: #fcd5d5;
  --c-footer: #424242;
  --c-footer-text: #bab8b8;
  --c-muted: #adadad;
  --c-border: rgba(31, 35, 40, .14);
  --tl-accent: #ff2a00;
  --container: 1140px;
  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-hand: "Coming Soon", "Comic Sans MS", cursive;
  --font-script: "WindSong", "Brush Script MT", cursive;
  --font-slab: "Roboto Slab", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-body);
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
a { color: var(--c-link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { margin: .5rem 0 1rem; font-weight: 500; line-height: 1.2; }
p { margin: 0 0 .9rem; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
.skip-link:focus { left: 8px; top: 8px; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.125em; flex: none; }
.nowrap { white-space: nowrap; }
.muted { color: var(--c-muted); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 10px; }

/* ------------------------------------------------------------------ header */
.topbar {
  background: var(--c-topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
  padding: 0 10px;
}
.topbar-slogan {
  margin: 0;
  font-family: var(--font-script);
  font-size: 1.1rem;
  line-height: 1.5;
  color: #fff;
  white-space: nowrap;
}
.social { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }
.social-link {
  display: grid; place-items: center;
  width: 45px; height: 45px;
  color: #fff; font-size: 22.4px;
  transition: opacity .2s;
}
.social-link:hover { opacity: .85; text-decoration: none; }

.navbar {
  background: var(--c-nav);
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  padding: 0 26px;
  position: relative;
}
.logo { flex: none; display: block; width: 8rem; }
.logo img { display: block; width: 100%; height: auto; }
.main-nav { flex: 1 1 auto; min-width: 0; }
.menu { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.menu-item { position: relative; display: flex; align-items: center; }
.menu-link {
  display: block;
  padding: 13px 20px;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  text-transform: uppercase;
  color: #fff;
  transition: color .3s, transform .3s;
}
.menu-link:hover, .menu-link:focus-visible { color: var(--c-nav-hover); text-decoration: none; transform: scale(1.1); }
.menu-link.is-active { color: var(--c-nav-active); }
.has-children > .menu-link { padding-right: 4px; }
.submenu-toggle {
  display: grid; place-items: center;
  width: 26px; height: 46px; margin-right: 10px;
  padding: 0; border: 0; background: none; color: #fff; cursor: pointer; font-size: 16px;
}
.submenu {
  position: absolute; top: 100%; left: 0; z-index: 30;
  min-width: 220px;
  margin: 0; padding: 0; list-style: none;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.has-children:hover > .submenu,
.has-children:focus-within > .submenu,
.has-children.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu-link { display: block; padding: 13px 20px; color: #33373d; font-size: 15px; font-weight: 500; }
.submenu-link:hover, .submenu-link:focus-visible, .submenu-link.is-active { background: #55595c; color: #fff; text-decoration: none; }
.nav-toggle {
  display: none; margin-left: auto;
  padding: .45em; border: 0; border-radius: 3px; background: rgba(0, 0, 0, .05);
  color: #c3c3c3; font-size: 22px; cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline-block; }

@media (max-width: 1024px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
    background: #fff; box-shadow: 0 12px 24px rgba(0, 0, 0, .18);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .menu { flex-direction: column; }
  .menu-item { flex-wrap: wrap; border-top: 1px solid #eee; }
  .menu-link { flex: 1; color: #33373d; padding: 14px 20px; }
  .menu-link:hover, .menu-link:focus-visible { transform: none; background: #55595c; color: #fff; }
  .menu-link.is-active { color: var(--c-nav-active); }
  .submenu-toggle { color: #33373d; height: 48px; width: 48px; margin: 0; }
  .submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .submenu {
    position: static; flex-basis: 100%;
    display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: #f6f6f6;
  }
  .has-children:hover > .submenu, .has-children:focus-within > .submenu { display: none; }
  .has-children.is-open > .submenu { display: block; }
  .submenu-link { padding-left: 40px; }
}
@media (max-width: 767px) {
  .topbar { justify-content: center; }
  .topbar-slogan { display: none; }
  .navbar { padding: 0 16px; }
}

/* ------------------------------------------------------------------ home: hero */
.hero {
  display: flex;
  padding-top: 2rem;
}
.hero-text {
  flex: 0 0 66.666%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
}
.hero-intro {
  padding: 0 2vw;
  font-family: var(--font-hand);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--c-text);
  text-align: center;
}
.hero-intro strong, .hero-signature strong { font-weight: 700; color: #555; }
.hero-signature {
  margin: 20px 0 0;
  font-family: var(--font-hand);
  font-size: .9rem;
  line-height: 1.5;
  color: var(--c-text);
  text-align: right;
}
.hero-photo {
  flex: 0 0 33.333%;
  display: flex;
  align-items: flex-end;
}
.hero-photo img { display: block; width: 100%; height: auto; }

@media (max-width: 767px) {
  .hero { flex-direction: column; }
  .hero-text { padding: 0 1rem; }
  .hero-intro { font-size: 1.15rem; padding: 0; }
  .hero-photo { margin: 1.5rem auto 0; max-width: 420px; }
}

/* ------------------------------------------------------------------ tag cloud */
.tags-band { background: var(--c-tags-bg); }
.tag-cloud ul {
  margin: 0; padding: max(14px, 1vw);
  list-style: none; text-align: center; line-height: 1.5;
}
.tag-cloud li { display: inline; }
.tag-cloud li + li::before { content: " "; }
.tag-cloud a { color: var(--c-tags-link); text-decoration: none; transition: color .15s; }
.tag-cloud a:hover, .tag-cloud a:focus-visible { color: #fff; }
.tags-band-boxed { border-radius: 4px; }

/* ------------------------------------------------------------------ sections */
.section { padding: max(14px, 1vw) 0; }
.section-title {
  margin: .4rem 0 1.2rem;
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
  color: var(--c-heading);
}
.section-title.center { text-align: center; }
.section-title a { color: inherit; }
.section-title a:hover { text-decoration: none; opacity: .85; }
.articles-section { background: linear-gradient(158deg, #fcfcfc 0%, #f3f3f3 100%); }

/* ------------------------------------------------------------------ timeline */
.timeline {
  --slot: 130px;
  --card: 220px;
  --line: 44px;
  position: relative;
  padding: 0 24px;
}
.tl-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 42, 0, .35) transparent;
  padding: 12px 0 16px;
}
.tl-viewport:focus-visible { outline-offset: -2px; }
.timeline.is-overflowing .tl-viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.tl-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), var(--slot));
  grid-template-rows: auto var(--line) auto;
  width: max-content;
  margin: 0 auto;
  padding: 0 calc((var(--card) - var(--slot)) / 2 + 8px);
  list-style: none;
}
/* the line: absolutely positioned inside grid row 2, so it never affects placement */
.tl-track::before {
  content: "";
  position: absolute;
  grid-row: 2;
  grid-column: 1 / -1;
  top: 50%;
  left: calc((var(--slot) - var(--card)) / 2);
  right: calc((var(--slot) - var(--card)) / 2);
  height: 4px;
  transform: translateY(-50%);
  background: rgba(255, 42, 0, .35);
  border-radius: 999px;
}
.tl-item {
  grid-row: 1 / 4;
  display: grid;
  grid-template-rows: subgrid;
  grid-template-columns: 100%;
  position: relative;
}
.tl-item > *, .tl-item::after { grid-column: 1; }
.tl-card {
  width: var(--card);
  margin: 0 calc((var(--slot) - var(--card)) / 2);
  padding: 10px 10px 9px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
  position: relative;
  z-index: 1;
  transition: box-shadow .2s, transform .2s;
}
.tl-card:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .1); transform: translateY(-2px); }
.tl-up .tl-card { grid-row: 1; align-self: end; }
.tl-down .tl-card { grid-row: 3; align-self: start; }
.tl-company { margin: 0; font-weight: 800; font-size: 14px; line-height: 1.2; color: #1f2328; }
.tl-company a { color: inherit; }
.tl-company a:hover { color: var(--tl-accent); text-decoration: none; }
.tl-role { margin: 6px 0 0; font-weight: 600; font-size: 13px; line-height: 1.3; color: #1f2328; }
.tl-period { margin: 6px 0 0; color: #6b7280; font-size: 12.5px; line-height: 1.3; }
.tl-node {
  grid-row: 2;
  align-self: center;
  justify-self: center;
  width: 12px; height: 12px;
  background: var(--tl-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 42, 0, .12);
  position: relative;
  z-index: 2;
}
/* stem from the card to its node */
.tl-item::after {
  content: "";
  grid-row: 2;
  grid-column: 1;
  justify-self: center;
  width: 2px;
  height: calc(var(--line) / 2);
  background: rgba(255, 42, 0, .25);
}
.tl-up::after { align-self: start; }
.tl-down::after { align-self: end; }
.tl-year {
  grid-row: 2;
  justify-self: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: #b9b9b9;
  letter-spacing: .02em;
}
.tl-up .tl-year { align-self: end; }
.tl-down .tl-year { align-self: start; }
.tl-nav {
  position: absolute; top: 50%; z-index: 5;
  display: grid; place-items: center;
  width: 36px; height: 36px; margin-top: -18px;
  border: 1px solid var(--c-border); border-radius: 50%;
  background: #fff; color: var(--tl-accent);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
  font-size: 20px; cursor: pointer;
}
.tl-nav[hidden] { display: none; }
.tl-nav:disabled { opacity: .35; cursor: default; }
.tl-prev { left: 4px; }
.tl-next { right: 4px; }

@media (max-width: 820px) {
  .timeline { padding: 0 16px; }
  .tl-nav { display: none; }
  .timeline.is-overflowing .tl-viewport { -webkit-mask-image: none; mask-image: none; }
  .tl-viewport { overflow: visible; padding: 6px 0 0; }
  .tl-track {
    display: flex;
    flex-direction: column-reverse;
    width: auto; max-width: 720px;
    padding: 0;
  }
  .tl-track::before {
    left: 14px; right: auto; top: 0; bottom: 0;
    width: 4px; height: auto; transform: none;
    background: rgba(255, 42, 0, .30);
  }
  .tl-item { display: block; padding: 0 0 14px 36px; }
  .tl-item::after, .tl-year { display: none; }
  .tl-card { width: auto; margin: 0; }
  .tl-node { position: absolute; left: 16px; top: 22px; transform: translate(-50%, -50%); }
}

/* ------------------------------------------------------------------ cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 35px 3.5rem;
}
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media {
  display: block;
  aspect-ratio: 16 / 10;
  margin-bottom: 14px;
  overflow: hidden;
  border-radius: 6px;
  background: #f1f1f1;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-placeholder {
  display: grid; place-items: center; height: 100%;
  font-size: 64px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--c-tags-bg), var(--c-heading));
}
.card-title { margin: 0; font-weight: 600; font-size: 18px; line-height: 1.2; }
.card-title a { color: var(--c-secondary); }
.card-title a:hover { color: var(--c-accent); text-decoration: none; }
.card-date { margin: 2px 0 0; font-family: var(--font-slab); font-size: 12px; line-height: 1.3; color: var(--c-muted); }
.card-excerpt { margin: 14px 0 0; font-size: 14px; line-height: 1.5; color: #777; }
.card-more { margin-top: 14px; align-self: flex-start; font-size: 12px; font-weight: 500; color: var(--c-accent); }
.card-more:hover { text-decoration: none; opacity: .8; }

@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 2rem; } }
@media (max-width: 767px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* ================================================================== INNER PAGES
   One layout for every page except the home page:
   page-hero (breadcrumbs, eyebrow, title, lead, meta, actions, cover)
   -> page-body (prose column + sticky aside with "On this page")
   -> related cards. Header and footer stay exactly as on the home page. */

:root {
  --ink: #1f2328;
  --ink-2: #3d4148;
  --ink-3: #6b7280;
  --line: #ececec;
  --soft: #faf7f5;
  --radius: 14px;
}

/* ------------------------------------------------------------------ page hero */
.page-hero {
  background: linear-gradient(180deg, #fbf4f0 0%, #fff 100%);
  border-bottom: 1px solid #f2e8e3;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 40px;
}
@media (min-width: 900px) {
  .page-hero.has-cover .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; }
}
.crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  margin: 0 0 22px; padding: 0; list-style: none;
  font-size: 13px; color: #9aa0a8;
}
.crumbs li { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.crumbs li + li::before { content: "/"; color: #d0d3d8; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--c-accent); text-decoration: none; }
.crumbs [aria-current] { color: #9aa0a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.eyebrow {
  margin: 0 0 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--c-heading);
}
.hero-title {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700; line-height: 1.12; letter-spacing: -.015em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.hero-lead { margin: 16px 0 0; max-width: 680px; font-size: 19px; line-height: 1.55; color: #555b63; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  margin: 20px 0 0; padding: 0; list-style: none;
  font-size: 14px; color: #7b818a;
}
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta .icon { color: var(--c-heading); font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-cover img {
  display: block; width: 100%; height: auto; max-height: 380px; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 22px 44px rgba(31, 35, 40, .14), 0 2px 6px rgba(31, 35, 40, .06);
}
.hero-cover.fit-contain img { aspect-ratio: 16 / 10; object-fit: contain; background: #fff; padding: 28px; }

/* buttons (also used inside content) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  border: 1.5px solid var(--c-accent); border-radius: 999px;
  background: var(--c-accent); color: #fff;
  font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { background: #c22a2a; border-color: #c22a2a; color: #fff; text-decoration: none; box-shadow: 0 8px 20px rgba(221, 51, 51, .25); }
.btn .icon { font-size: 17px; }
.btn-primary { background: var(--ink); border-color: var(--ink); }
.btn-primary:hover { background: #000; border-color: #000; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.btn-ghost, .btn-outline { background: #fff; color: var(--ink); border-color: #d9dce0; }
.btn-ghost:hover, .btn-outline:hover { background: #fff; color: var(--c-accent); border-color: var(--c-accent); box-shadow: none; }

/* ------------------------------------------------------------------ page body */
.page-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  padding-top: 44px;
  padding-bottom: 72px;
}
.page-main { min-width: 0; max-width: 820px; }
.page-aside { display: none; }
@media (min-width: 1100px) {
  .page-body.has-aside { grid-template-columns: minmax(0, 1fr) 250px; }
  .page-aside { display: block; }
  .toc-mobile { display: none; }
}
.aside-sticky {
  position: sticky; top: 24px;
  display: flex; flex-direction: column; gap: 22px;
  max-height: calc(100vh - 48px); overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.aside-title { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #9aa0a8; }
.aside-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.aside-card > * + * { margin-top: 14px; }
.aside-back, .aside-policy { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.aside-back:hover, .aside-policy:hover { color: var(--c-accent); text-decoration: none; }
.aside-policy .icon { color: var(--c-heading); }
.aside-links { margin: 0; padding: 0; list-style: none; }
.aside-links li + li { margin-top: 8px; }
.aside-links a { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.aside-links a:hover { color: var(--c-accent); text-decoration: none; }
.aside-links .icon { margin-top: 2px; color: var(--c-heading); }

/* table of contents (aside + mobile) */
.toc-nav ol { margin: 0; padding: 0; list-style: none; }
.toc-nav > ol { border-left: 2px solid var(--line); }
.toc-nav a {
  display: block; margin-left: -2px; padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  font-size: 14px; line-height: 1.4; color: var(--ink-3);
  transition: color .15s, border-color .15s;
}
.toc-nav ol ol a { padding-left: 28px; font-size: 13px; }
.toc-nav a:hover { color: var(--ink); text-decoration: none; }
.toc-nav a.is-active { color: var(--c-heading); border-left-color: var(--c-heading); font-weight: 500; }
.toc-mobile { margin: 0 0 32px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.toc-mobile > summary { padding: 14px 18px; font-weight: 600; color: var(--ink); cursor: pointer; }
.toc-mobile .toc-nav { padding: 0 18px 14px; }

/* ------------------------------------------------------------------ prose */
.prose {
  font-size: 17px; line-height: 1.72;
  color: var(--ink-2);
  overflow-wrap: break-word;
}
.prose > :first-child, .prose .col > :first-child, .prose .cover > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); scroll-margin-top: 24px; }
.prose h2 { margin: 2.2em 0 .75em; font-size: 28px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.prose h2::before {
  content: ""; display: block; width: 36px; height: 3px; margin-bottom: 16px;
  border-radius: 3px; background: var(--c-heading);
}
.prose .col h2::before, .prose .cover h2::before { display: none; }
.prose h3 { margin: 1.9em 0 .6em; font-size: 21px; font-weight: 600; line-height: 1.3; }
.prose h4 { margin: 1.6em 0 .5em; font-size: 18px; font-weight: 600; }
.prose a { color: #c73b3b; text-decoration: underline; text-decoration-color: rgba(199, 59, 59, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose li::marker { color: var(--c-heading); }
.prose ol > li::marker { font-weight: 600; }
.prose hr { height: 1px; margin: 3em 0; border: 0; background: var(--line); }
.prose hr.dots { height: auto; background: none; text-align: center; line-height: 1; }
.prose hr.dots::before { content: "• • •"; color: #d3c6bf; letter-spacing: .6em; }
.prose blockquote {
  margin: 1.6em 0; padding: 16px 22px;
  border-left: 3px solid var(--c-heading); border-radius: 0 12px 12px 0;
  background: var(--soft); color: #4a4f57;
}
.prose blockquote > :last-child { margin-bottom: 0; }
.prose blockquote:empty { display: none; }
.prose blockquote:has(> .buttons:only-child) { padding: 0; border: 0; background: none; }
.prose cite { font-style: normal; font-size: 14px; color: #8b9098; }
.prose code {
  padding: .12em .4em; border-radius: 5px;
  background: #f3efed; color: #b42f3a;
  font-family: var(--font-mono); font-size: .86em;
}
.prose pre {
  position: relative;
  margin: 1.4em 0; padding: 18px 76px 18px 20px;
  overflow-x: auto; border-radius: 12px;
  background: #1f2328; color: #e8eaed;
  font-size: 14px; line-height: 1.6;
}
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; white-space: pre; }
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 7px;
  background: rgba(255, 255, 255, .08); color: #cfd3d8;
  font: 500 12px/1 var(--font); cursor: pointer; opacity: 0; transition: opacity .15s, background .15s;
}
.prose pre:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
@media (hover: none) { .copy-btn { opacity: 1; } }

/* tables */
.table-wrap { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: #f8f6f5; color: var(--ink); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

/* images */
.prose img { border-radius: 10px; }
.prose .figure { margin: 1.8em 0; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: #8b9098; text-align: center; }
.prose .figure.text-center { text-align: center; }
.prose .figure.text-center img { margin-inline: auto; }
.prose img.is-portrait {
  display: block; width: auto; max-width: min(100%, 290px); max-height: 600px;
  margin-inline: auto; border-radius: 26px;
  box-shadow: 0 24px 48px rgba(31, 35, 40, .18), 0 2px 8px rgba(31, 35, 40, .08);
}
.prose img.is-badge { width: auto; height: 54px; border-radius: 0; box-shadow: none; }
.prose .figure:has(img.is-badge) { margin: 1.2em 0; }
.prose .figure a:has(img.is-badge) { display: inline-block; transition: transform .2s; }
.prose .figure a:has(img.is-badge):hover { transform: translateY(-2px); }
.prose img[data-zoom] { cursor: zoom-in; }

/* feature rows: migrated WordPress columns become image + text blocks */
.prose .cols {
  display: flex; align-items: center; gap: 48px;
  margin: 2.6em 0;
}
.prose .cols > .col { flex: 1 1 0 !important; min-width: 0; }
.prose .cols > .col:has(> .figure:only-child img.is-portrait) { flex: 0 0 auto !important; }
.prose .cols > .col > .figure:only-child { margin: 0; }
.prose .text-right, .prose .text-center:not(.callout):not(.figure):not(.buttons) { text-align: left; }
.prose .cols.callout { align-items: flex-start; }
.prose .media-text { align-items: stretch; }
.prose .media-text .col-media { flex: 0 0 42% !important; position: relative; min-height: 360px; }
.prose .media-text .col-media .figure { position: absolute; inset: 0; margin: 0; }
.prose .media-text .col-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 25%; }

.prose .gallery { display: grid; gap: 14px; margin: 1.8em 0; }
.prose .gallery.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .gallery.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .gallery figure { margin: 0; }
.prose .gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); }
.prose .gallery img.is-badge { aspect-ratio: auto; object-fit: contain; border: 0; }

.prose .cover {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  min-height: 360px; margin: 2.4em 0; padding: 40px;
  border-radius: 18px; overflow: hidden;
  background: #333 center / cover no-repeat; color: #fff;
}
.prose .cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .65) 100%); }
.prose .cover h2, .prose .cover h3, .prose .cover p { margin: 0 0 .5em; color: #fff; text-align: left; }
.prose .cover h2 { font-size: 30px; }
.prose .cover .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.prose .cover .btn-outline:hover { background: #fff; color: var(--ink); }

.prose .buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }
.prose .buttons a { text-decoration: none; }
.prose .buttons .btn { color: #fff; }
.prose .buttons .btn-outline { color: var(--ink); }

.prose .callout { margin: 1.6em 0; padding: 18px 22px; border-radius: 12px; border: 1px solid transparent; }
.prose .callout-red { background: #fdf0ef; border-color: #f6d3d0; color: #5e2420; }
.prose .callout-blue { background: #eef6fd; border-color: #cfe5f8; color: #173a57; }
.prose .callout-red strong, .prose .callout-red a { color: #8e1f1a; }
.prose .callout-blue strong, .prose .callout-blue a { color: #0b4f86; }
.prose .callout-dark { background: var(--ink); color: #e8eaed; }
.prose .callout-ocean { background: linear-gradient(135deg, #fff9e3 0%, #e3f4ee 55%, #d5eef1 100%); border-color: #d6ebe6; color: var(--ink-2); }
.prose .callout-ocean h4 { margin-top: 0; }
.prose .text-large { font-size: 26px; line-height: 1.3; color: var(--ink); }
.prose .text-small { font-size: 15px; }
.prose .text-accent { color: var(--c-accent); }
.prose .drop-cap::first-letter {
  float: left; margin: .08em .12em 0 0;
  font-size: 4.2em; line-height: .78; font-weight: 700; color: var(--c-heading);
}
.prose .file-link a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-weight: 500; text-decoration: none;
}
.prose .file-link a::before { content: "↓"; color: var(--c-heading); font-weight: 700; }
.prose .file-link a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.prose details {
  margin: 0 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.prose details > summary {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 18px; cursor: pointer; list-style: none;
  font-weight: 600; color: var(--ink);
}
.prose details > summary::-webkit-details-marker { display: none; }
.prose details > summary::after { content: "+"; color: var(--c-heading); font-size: 20px; line-height: 1; }
.prose details[open] > summary::after { content: "−"; }
.prose details > :not(summary) { margin-left: 18px; margin-right: 18px; }
.prose details > :last-child { margin-bottom: 16px; }

@media (max-width: 860px) {
  .prose .cols, .prose .media-text { flex-direction: column; align-items: stretch; gap: 20px; }
  .prose .cols > .col { flex: none !important; width: 100%; }
  .prose .media-text .col-media { min-height: 0; }
  .prose .media-text .col-media .figure { position: static; }
  .prose .media-text .col-media img { height: 320px; }
}
@media (max-width: 767px) {
  .hero-grid { padding-top: 20px; padding-bottom: 28px; gap: 24px; }
  .hero-lead { font-size: 17px; }
  .page-body { padding-top: 28px; padding-bottom: 48px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 24px; }
  .prose h3 { font-size: 19px; }
  .prose .gallery.g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose .cover { padding: 24px; min-height: 280px; }
  .prose pre { margin-inline: -10px; border-radius: 0; }
}

/* docs box, tags, meta */
.docs-box { margin: 48px 0 0; padding: 22px 24px; border-radius: var(--radius); background: var(--soft); border: 1px solid #f1e6e0; }
.box-title { margin: 0 0 12px; font-size: 18px; font-weight: 700; color: var(--ink); }
.doc-list { margin: 0; padding: 0; list-style: none; }
.doc-list li + li { margin-top: 8px; }
.doc-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.doc-list a:hover { border-color: #e7c9bd; box-shadow: 0 8px 20px rgba(0, 0, 0, .05); text-decoration: none; }
.doc-list a > .icon:first-child { color: var(--c-heading); font-size: 20px; }
.doc-list span { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-list small { color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.doc-list .go { color: #b9bec5; }
.doc-list a:hover .go { color: var(--c-accent); }

.page-meta { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.page-cats { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }
.page-cats a { color: var(--ink-2); font-weight: 500; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag-list a {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: #f6efeb; color: #9a4b2a; font-size: 13px; font-weight: 500; line-height: 1.4;
  transition: background .15s, color .15s;
}
.tag-list a:hover { background: var(--c-tags-bg); color: #fff; text-decoration: none; }

/* related */
.related { padding: 56px 0 64px; background: var(--soft); border-top: 1px solid #f1e6e0; }
.related-title { margin: 0 0 24px; font-size: 24px; font-weight: 700; color: var(--ink); }

/* ------------------------------------------------------------------ boxed cards (inner pages) */
.cards.is-boxed { gap: 28px; }
.cards.is-boxed .card {
  overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.cards.is-boxed .card:hover { transform: translateY(-3px); border-color: #eadbd3; box-shadow: 0 18px 36px rgba(31, 35, 40, .08); }
.cards.is-boxed .card-media { margin: 0; border-radius: 0; aspect-ratio: 16 / 9; background: #f4f1ef; }
.cards.is-boxed .card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-heading); }
.cards.is-boxed .card-title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.cards.is-boxed .card-title a { color: var(--ink); }
.cards.is-boxed .card-title a:hover { color: var(--c-accent); }
.cards.is-boxed .card-excerpt { margin-top: 10px; font-size: 14.5px; line-height: 1.55; color: #5b6068; }
.cards.is-boxed .card-more {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 16px;
  font-size: 14px; font-weight: 600; color: var(--c-accent);
}
.cards.is-boxed .card-more .icon { transition: transform .2s; }
.cards.is-boxed .card:hover .card-more .icon { transform: translateX(3px); }
.cards.is-boxed.cards-text .card-body { padding: 20px 22px; }
.cards.is-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.is-wide .card-media { aspect-ratio: 2 / 1; }
.card-placeholder {
  display: grid; place-items: center; height: 100%;
  font-size: 56px; font-weight: 700; color: rgba(255, 255, 255, .92);
  background: radial-gradient(120% 120% at 0% 0%, #f39a7a 0%, var(--c-tags-bg) 45%, var(--c-heading) 100%);
}
@media (max-width: 767px) { .cards.is-wide { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ lists, products, experience */
.list-body { padding-top: 40px; padding-bottom: 72px; }
.list-group + .list-group { margin-top: 56px; }
.group-title { margin: 0 0 22px; font-size: 24px; font-weight: 700; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: var(--ink-2); font-size: 14px; font-weight: 500;
}
.chip span { color: #9aa0a8; font-weight: 400; }
.chip:hover { border-color: var(--c-accent); color: var(--c-accent); text-decoration: none; }
.empty { color: var(--ink-3); }
.exp-mini { margin: 0; padding-left: 20px; color: var(--ink-2); }
.exp-mini li { margin: 6px 0; }

.exp-list { position: relative; margin: 0; padding: 0; list-style: none; max-width: 860px; }
.exp-list::before {
  content: ""; position: absolute; left: 176px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 3px; background: rgba(255, 42, 0, .2);
}
.exp-item { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 0 52px; padding: 0 0 30px; }
.exp-item::before {
  content: ""; position: absolute; left: 172px; top: 7px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--tl-accent); box-shadow: 0 0 0 5px rgba(255, 42, 0, .12);
}
.exp-when { padding-top: 2px; text-align: right; font-size: 14px; color: var(--ink-3); }
.exp-company { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.exp-company a { color: inherit; }
.exp-company a:hover { color: var(--tl-accent); text-decoration: none; }
.exp-role { margin: 4px 0 0; font-weight: 500; color: var(--ink-2); }
.exp-summary { margin: 8px 0 0; color: var(--ink-3); }
.exp-case { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--c-accent); }
.exp-what .tag-list { margin-top: 10px; }
.tags-band-boxed { border-radius: var(--radius); }
@media (max-width: 600px) {
  .exp-list::before { left: 5px; }
  .exp-item { grid-template-columns: 1fr; padding-left: 30px; }
  .exp-item::before { left: 1px; }
  .exp-when { text-align: left; margin-bottom: 2px; }
}

/* ------------------------------------------------------------------ search */
.search-form {
  display: flex; min-height: 50px; width: 100%;
  border-radius: 3px; overflow: hidden; background: #f1f2f3;
}
.search-input {
  flex: 1 1 auto; min-width: 0;
  padding: 0 16px; border: 0; background: transparent;
  font: 15px/1 var(--font); color: #555;
}
.search-input:focus { outline: none; }
.search-form:focus-within { box-shadow: 0 0 0 2px var(--c-accent); }
.search-submit {
  flex: 0 0 50px; display: grid; place-items: center;
  border: 0; background: var(--c-secondary); color: #fff; font-size: 16px; cursor: pointer;
}
.search-submit:hover { background: #3f4347; }
.search-form-page { max-width: 680px; margin-bottom: 14px; border: 1px solid #e3e3e3; border-radius: 12px; background: #fff; }
.search-form-page .search-submit { background: var(--ink); }
.search-status { margin-bottom: 28px; color: var(--ink-3); }
.card mark { background: #ffe1a8; color: inherit; padding: 0 1px; border-radius: 2px; }

/* ------------------------------------------------------------------ lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 24px; border: 0;
  background: rgba(15, 17, 20, .92);
  display: grid; place-items: center;
}
.lightbox:not([open]) { display: none; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 48px); border-radius: 8px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.lightbox-close {
  position: fixed; top: 16px; right: 16px;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }

/* ------------------------------------------------------------------ footer */
.footer-main {
  background: var(--c-footer);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 20px;
  padding: 16px 10px;
}
.footer-col { padding: 0; min-width: 0; }
.footer-text { font-size: .7rem; line-height: 1.5; color: var(--c-footer-text); text-align: center; }
.footer-text p { margin: 0; }
.footer-text a { color: var(--c-link); }
.footer-text .nowrap + .nowrap { margin-left: 2.2em; }
.footer-nav { background: var(--c-nav); padding: 10px; }
.footer-menu { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.footer-item { position: relative; display: flex; align-items: center; }
.footer-item > a {
  display: block; padding: 13px 20px;
  font-weight: 600; font-size: .8rem; line-height: 20px; color: var(--c-text);
}
.footer-item > a:hover, .footer-item > a:focus-visible { color: var(--c-accent); text-decoration: none; }
.footer-item .caret { color: var(--c-text); margin-left: -16px; margin-right: 8px; font-size: 14px; }
.footer-submenu {
  position: absolute; bottom: 100%; left: 0; z-index: 10;
  min-width: 180px; margin: 0; padding: 0; list-style: none;
  background: #fff; box-shadow: 0 -8px 24px rgba(0, 0, 0, .2);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.footer-item:hover .footer-submenu, .footer-item:focus-within .footer-submenu { opacity: 1; visibility: visible; }
.footer-submenu a { display: block; padding: 10px 18px; color: #33373d; font-size: 14px; }
.footer-submenu a:hover { background: #55595c; color: #fff; text-decoration: none; }

@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr; padding: 20px 16px; }
  .footer-col:first-child { max-width: 480px; width: 100%; margin: 0 auto; }
  .footer-text { font-size: .75rem; }
}
@media (max-width: 767px) {
  .footer-item > a { padding: 8px 12px; }
  .footer-item .caret { margin-left: -8px; }
}

@media (prefers-reduced-motion: reduce) {
  html, .tl-viewport { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header .topbar, .nav-toggle, .main-nav, .site-footer .footer-nav, .search-form, .tl-nav { display: none !important; }
}
