/* ============================================================
   Master CMS — Classic structural family
   Ported from the proven Newedge design system: soft/bouncy,
   pill-shaped buttons, rounded cards, decorative background
   circles, spring cubic-bezier hover lifts. Driven entirely by
   the CSS custom properties theme.php outputs per active theme —
   this file contains no hardcoded colors itself.
   ============================================================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-background);
  line-height: 1.6;
  overflow-x: hidden; /* required for full-bleed circles to never cause horizontal scroll */
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
p { margin: 0 0 1em; }
a { color: inherit; }

/* ---- Decorative background circles (Classic's signature motif) ---- */
.theme-classic .block {
  position: relative;
  overflow: hidden;
}
.theme-classic .bg-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--color-highlight);
  opacity: .12;
  pointer-events: none;
  z-index: 0;
}
/* KNOWN RECURRING RULE (carried over from the proven build): any
   ">*{position:relative;z-index:1}" lifting block content above
   circles must exclude circles themselves. */
.theme-classic .block > *:not(.bg-circle) { position: relative; z-index: 1; }

/* ---- Header ---- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  background: var(--color-background);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.logo { font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--color-dark); }
.logo img { height: 36px; display: block; }
.main-nav { display: flex; gap: 2rem; }
.main-nav a { text-decoration: none; color: var(--color-dark); font-weight: 600; transition: color .2s var(--motion-easing); }
.main-nav a:hover { color: var(--color-primary); }

/* ---- Buttons (pill-shaped per radius-sm token) ---- */
.btn {
  display: inline-block;
  padding: .85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform .35s var(--motion-easing), box-shadow .35s var(--motion-easing);
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { transform: var(--hover-btn); box-shadow: var(--shadow-card); }
.btn-secondary { background: transparent; color: var(--color-dark); border: 2px solid var(--color-line); }

/* ---- Blocks: shared spacing ---- */
.block { padding: 4.5rem 3rem; }

/* Banner (Home's hero, built as an ordinary block) */
.block-banner {
  display: flex;
  align-items: center;
  gap: 3rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
}
.block-banner h1 { color: #fff; }
.block-banner .btn-primary { background: #fff; color: var(--color-primary); }
.banner-copy { flex: 1; }
.banner-media { flex: 1; }
.banner-media img { width: 100%; display: block; }

/* Text / Image+Text / Twin Text */
.block-text, .block-image-text, .block-twin-text { max-width: 1100px; margin: 0 auto; }
.block-image-text { display: flex; gap: 3rem; align-items: center; }
.block-image-text.reverse { flex-direction: row-reverse; }
.block-image-text img, .block-image-image img { width: 100%; box-shadow: var(--shadow-card); }
.block-image-image { display: flex; gap: 2rem; max-width: 1100px; margin: 0 auto; }
.block-twin-text { display: flex; gap: 3rem; }
.block-twin-text > div { flex: 1; }

/* Stats band */
.block-stats-band {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4rem;
  background: var(--color-dark);
  color: #fff;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.stat-badge {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}
.stat-value { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: #fff; }
.stat-label { opacity: .8; }

/* Testimonial */
.block-testimonial { max-width: 700px; margin: 0 auto; text-align: center; }
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem; left: 1.5rem;
  font-family: Georgia, serif;
  font-size: 5rem;
  color: var(--color-primary);
  opacity: .15;
  line-height: 1;
}
.block-testimonial blockquote { font-size: 1.4rem; font-style: italic; margin: 0 0 1rem; position: relative; }
.block-testimonial cite { display: flex; flex-direction: column; font-style: normal; font-weight: 700; color: var(--color-primary); }
.block-testimonial cite span { font-weight: 400; opacity: .7; color: var(--color-dark); }

/* CTA scroller / Single CTA — big rounded pill banner, like a
   newsletter-signup band, per the reference design */
.block-cta-scroller, .block-single-cta {
  text-align: center;
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  padding: 3rem 4rem;
  position: relative;
  overflow: hidden;
}
.block-cta-scroller h2, .block-single-cta h2 { color: #fff; }
/* Guards against themes where highlight and primary are the same
   color (both Corporate themes do this) — a colored button on a
   colored section can silently vanish, so this block always uses
   the same safe white-button pattern as the Banner block. */
.block-cta-scroller .btn.btn-primary, .block-single-cta .btn.btn-primary {
  background: #fff;
  color: var(--color-dark);
}

/* FAQs */
.block-faqs { max-width: 820px; margin: 0 auto; }
.block-faqs .faq-heading { margin-bottom: 2rem; }
.faq-list { display: flex; flex-direction: column; gap: .85rem; }
.block-faqs details.faq-item {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.block-faqs details.faq-item:hover { border-color: var(--color-primary); }
.block-faqs details.faq-item[open] { border-color: var(--color-primary); box-shadow: 0 6px 20px rgba(0,0,0,.07); }
.block-faqs summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  list-style: none; cursor: pointer;
  padding: 1.15rem 1.5rem;
  font-weight: 700; font-size: 1.05rem; line-height: 1.4;
}
.block-faqs summary::-webkit-details-marker { display: none; }
.block-faqs summary:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; }
.faq-chevron {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--color-primary); position: relative;
  transition: transform .25s;
}
.faq-chevron::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: translate(-50%, -70%) rotate(45deg);
}
.block-faqs details[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 1.5rem 1.35rem; line-height: 1.7; color: var(--color-muted, #4b5563); }
@media (max-width: 600px) {
  .block-faqs summary { padding: 1rem 1.1rem; font-size: 1rem; }
  .faq-answer { padding: 0 1.1rem 1.1rem; }
}

/* Contact form */
.block-contact-form { max-width: 600px; margin: 0 auto; }
.block-contact-form form { display: flex; flex-direction: column; gap: 1rem; }
.block-contact-form input, .block-contact-form textarea {
  padding: .9rem 1.1rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
}
.block-contact-form textarea { min-height: 120px; }

/* Logo strip */
.block-logo-strip { display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; opacity: .7; }
.block-logo-strip img { max-height: 40px; }

/* Pricing table */
.block-pricing-table { display: grid; gap: 2rem; max-width: 1100px; margin: 0 auto; }
.block-pricing-table[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.block-pricing-table[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.block-pricing-table[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.pricing-col ul { display: flex; flex-direction: column; gap: .2rem; }
.pricing-col li { display: flex; align-items: center; gap: .5rem; }
.pricing-col li svg { color: var(--color-primary); flex-shrink: 0; }

/* ---- Gallery ---- */
.block-gallery { max-width: 1200px; margin: 0 auto; }
.gallery-grid { display: grid; gap: 1.5rem; }
.gallery-grid[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.gallery-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.gallery-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; height: 240px; object-fit: cover; display: block; box-shadow: var(--shadow-card); transition: transform .3s var(--motion-easing); }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption { margin-top: .5rem; font-size: .85rem; opacity: .7; text-align: center; }
@media (max-width: 900px) {
  .block-pricing-table[data-columns="3"], .block-pricing-table[data-columns="4"] { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid[data-columns="3"], .gallery-grid[data-columns="4"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .block-pricing-table[data-columns="2"], .block-pricing-table[data-columns="3"], .block-pricing-table[data-columns="4"] { grid-template-columns: 1fr; }
  .gallery-grid[data-columns="2"], .gallery-grid[data-columns="3"], .gallery-grid[data-columns="4"] { grid-template-columns: 1fr; }
}
.pricing-col {
  flex: 1;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--motion-easing);
}
.pricing-col:hover { transform: var(--hover-card); }
.pricing-col .price { font-size: 2rem; font-weight: 800; color: var(--color-primary); }
.pricing-col ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.pricing-col li { padding: .4rem 0; border-bottom: 1px solid var(--color-line); }

/* Video embed */
.block-video-embed { max-width: 900px; margin: 0 auto; }
.video-wrap { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius-md); overflow: hidden; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* Team grid */
.block-team-grid { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.team-member { display: flex; flex-direction: column; align-items: center; text-align: center; width: 180px; }
.team-member img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: .75rem; box-shadow: var(--shadow-card); }
.team-name { font-weight: 700; }
.team-role { opacity: .7; font-size: .9rem; }

/* ---- Footer ---- */
.site-footer {
  padding: 0 3rem 2rem;
  text-align: left;
  border-top: 1px solid var(--color-line);
  background: var(--color-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.footer-bg-circle { opacity: .06; background: #fff; position: absolute; z-index: 0; pointer-events: none; }
.footer-newsletter-wrap { padding: 3rem 0 2.5rem; position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.footer-newsletter {
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  background-size: cover;
  background-position: center;
  border-radius: 999px;
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.footer-newsletter-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,.55), var(--color-primary) 140%);
  z-index: 0;
}
.footer-newsletter > div:not(.footer-newsletter-overlay), .footer-newsletter > form { position: relative; z-index: 1; }
.footer-newsletter h3 { margin: 0; color: #fff; }
.newsletter-form { display: flex; gap: .75rem; flex-wrap: wrap; }
.newsletter-form input[type=email] {
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: none;
  min-width: 240px;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.footer-col-heading {
  display: block;
  color: #fff;
  font-weight: 700;
  margin-bottom: .5rem;
}
.footer-col-heading::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-primary);
  margin-top: .5rem;
  margin-bottom: 1rem;
}
.footer-nav { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a { color: #fff; text-decoration: none; opacity: .85; }
.footer-nav a:hover { opacity: 1; }
.footer-nav a::before { content: '\2192'; margin-right: .4rem; opacity: .6; }
.footer-contact-line { display: block; color: var(--color-highlight); text-decoration: none; margin-bottom: .5rem; }
.footer-tagline { opacity: .75; font-size: .9rem; }
.footer-post { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: #fff; margin-bottom: 1rem; opacity: .9; }
.footer-post:hover { opacity: 1; }
.footer-post img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.footer-post span { font-size: .88rem; font-weight: 600; }
.footer-copyright { opacity: .6; font-size: .85rem; margin-top: 1.5rem; text-align: center; position: relative; z-index: 1; }

@media (max-width: 720px) {
  .footer-columns { grid-template-columns: 1fr; }
  .footer-newsletter { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .block-banner, .block-image-text, .block-image-image, .block-twin-text { flex-direction: column; }
  .block { padding: 3rem 1.5rem; }
  .site-header { padding: 1rem 1.5rem; }
  .hero-slide { flex-direction: column; padding: 2.5rem 1.5rem; gap: 1.5rem; text-align: center; }
  .hero-slide .banner-media, .hero-slide .banner-copy { flex: none; width: 100%; }
  .block-hero-slider { min-height: auto; }
}

/* ============================================================
   Editorial structural family
   Sharp/flat/minimal, serif headlines, masthead motif (thick
   two-tone top border on hero + colored dash before section
   text), folded-page-corner shapes via clip-path instead of
   circles.
   ============================================================ */
.theme-editorial body { letter-spacing: .01em; }
.theme-editorial h1, .theme-editorial h2, .theme-editorial h3 { font-weight: 700; letter-spacing: -.01em; }

.theme-editorial .block-banner {
  border-radius: 0;
  border-top: 10px solid var(--color-accent);
  box-shadow: inset 0 6px 0 -2px var(--color-dark);
  background: var(--color-dark);
}
.theme-editorial .btn { border-radius: var(--radius-xs); }
.theme-editorial .btn-primary { background: var(--color-accent); color: #fff; }

/* Masthead dash before section headings */
.theme-editorial .block h2::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 4px;
  background: var(--color-accent);
  margin-right: .75rem;
  vertical-align: middle;
}

/* Folded-page-corner shape, replacing circles as the signature motif */
.theme-editorial .block { position: relative; }
.theme-editorial .pricing-col,
.theme-editorial .block-testimonial,
.theme-editorial .block-image-text img,
.theme-editorial .block-image-image img {
  border-radius: 0 0 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}
.theme-editorial .pricing-col { border: 2px solid var(--color-dark); box-shadow: none; }
.theme-editorial .pricing-col:hover { transform: none; }
.theme-editorial .block-stats-band { border-radius: 0; }
.theme-editorial .block-cta-scroller, .theme-editorial .block-single-cta {
  border-radius: 0;
  background: var(--color-dark);
  color: #fff;
}
.theme-editorial .block-cta-scroller h2, .theme-editorial .block-single-cta h2 { color: #fff; }
.theme-editorial .block-faqs details.faq-item { border-radius: 0; border: 2px solid var(--color-dark); }
.theme-editorial .faq-chevron { border-radius: 0; }

/* ============================================================
   Corporate structural family
   Confident/restrained, moderate rounding, solid left-aligned
   CTAs, diagonal-cut-corner-with-triangle motif on major panels
   plus large background triangles replacing circles.
   ============================================================ */
.theme-corporate .block-banner {
  clip-path: polygon(0 0, 100% 0, 100% 92%, 96% 100%, 0 100%);
  text-align: left;
}
.theme-corporate .block-banner .btn-primary { border-radius: var(--radius-sm); }
.theme-corporate .btn { border-radius: var(--radius-sm); }

/* Large background triangle, Corporate's signature motif replacing circles */
.theme-corporate .block { position: relative; overflow: hidden; }
.theme-corporate .block::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  background: var(--color-accent);
  opacity: .06;
  clip-path: polygon(100% 0, 0 100%, 100% 100%);
  pointer-events: none;
  z-index: 0;
}
.theme-corporate .block > *:not(.bg-circle) { position: relative; z-index: 1; }

.theme-corporate .pricing-col {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 20px, 20px 0);
  border-radius: 0;
}
.theme-corporate .block-cta-scroller, .theme-corporate .block-single-cta { text-align: left; }

/* ============================================================
   Bold structural family
   Maximalist/playful, very round corners, hard offset "sticker"
   shadows (not soft blurs), permanently-tilted alternating cards,
   sparkle-star shapes replacing circles.
   ============================================================ */
.theme-bold .block-banner, .theme-bold .block-stats-band,
.theme-bold .block-cta-scroller, .theme-bold .block-single-cta {
  box-shadow: 8px 8px 0 var(--color-dark);
  border: 3px solid var(--color-dark);
}
.theme-bold .pricing-col {
  box-shadow: 6px 6px 0 var(--color-dark);
  border: 3px solid var(--color-dark);
  transform: rotate(-2deg);
}
.theme-bold .pricing-col:nth-child(even) { transform: rotate(2deg); }
.theme-bold .pricing-col:hover { transform: var(--hover-tilt); }
.theme-bold .btn { box-shadow: 4px 4px 0 var(--color-dark); border: 2px solid var(--color-dark); }
.theme-bold .btn:hover { transform: var(--hover-btn); box-shadow: 6px 6px 0 var(--color-dark); }

/* Sparkle-star shape, Bold's signature motif replacing circles */
.theme-bold .block { position: relative; overflow: hidden; }
.theme-bold .bg-circle {
  border-radius: 0;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: var(--color-highlight);
  opacity: .5;
}
.theme-bold .block > *:not(.bg-circle) { position: relative; z-index: 1; }

/* ---- Projects (case studies) ---- */
.block-projects-listing { max-width: 1200px; margin: 0 auto; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--motion-easing);
}
.project-card:hover { transform: var(--hover-card); }
.project-card-media { position: relative; }
.project-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.project-card h3, .project-card .project-client, .project-card p { padding: 0 1.25rem; }
.project-card h3 { margin-top: 1rem; }
.project-client { display: block; opacity: .6; font-size: .85rem; margin-bottom: .5rem; }
.project-card p { padding-bottom: 1.25rem; }

.block-project-detail { max-width: 800px; margin: 0 auto; padding: 3rem; }
.project-client-line { opacity: .7; margin-top: -.5rem; }
.project-hero-image { width: 100%; border-radius: var(--radius-md); margin: 1.5rem 0; }
.block-project-detail section { margin-bottom: 2rem; }

/* ---- Mega menu ---- */
.main-nav { display: flex; gap: 2rem; align-items: center; }
.nav-item-has-children { position: relative; }
.nav-parent-link::after { content: ' \25BE'; font-size: .7em; }
.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: .75rem;
  min-width: 200px;
  z-index: 50;
  flex-direction: column;
}
.nav-item-has-children:hover .mega-menu,
.nav-item-has-children:focus-within .mega-menu {
  display: flex;
}
.mega-menu-item {
  padding: .6rem .75rem;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}
.mega-menu-item:hover { background: var(--color-background); }

/* ---- Footer social links ---- */
.footer-social { display: flex; justify-content: center; gap: 1.25rem; margin-bottom: 1rem; }
.footer-social a { color: #fff; opacity: .85; text-decoration: none; }

/* Honeypot field — invisible to real visitors, catches simple bots */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- Blog ---- */
.block-blog-listing { max-width: 1200px; margin: 0 auto; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.blog-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-card); transition: transform .35s var(--motion-easing);
}
.blog-card:hover { transform: var(--hover-card); }
.blog-card-media { position: relative; }
.blog-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.blog-card h3, .blog-card p { padding: 0 1.25rem; }
.blog-card h3 { margin-top: 1rem; }
.blog-card p { padding-bottom: 1.25rem; }

.block-post-detail { max-width: 1200px; margin: 0 auto; padding: 3rem; }
.post-hero-image { width: 100%; border-radius: var(--radius-md); margin: 1.5rem 0; }

/* ---- Services ---- */
.section-heading-center { text-align: center; max-width: 700px; margin: 3rem auto 0; position: relative; }
.block-services-listing { max-width: 1200px; margin: 0 auto 3rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; margin-top: 2rem; }
.service-card {
  display: block; text-decoration: none; color: inherit; position: relative;
  background: #fff; border-radius: var(--radius-md); padding: 2rem;
  box-shadow: var(--shadow-card); transition: transform .35s var(--motion-easing);
}
.service-card:hover { transform: var(--hover-card); }
.service-card h3 { margin-bottom: .5rem; }
.service-card h3 a { color: inherit; text-decoration: none; }
.service-card h3 a:hover { color: var(--color-primary); }
/* Grouped services: a parent service lists its children under it */
.service-card-children { list-style: none; margin: 1rem 0; padding: 0; border-top: 1px solid var(--color-line); }
.service-card-children li { border-bottom: 1px solid var(--color-line); }
.service-card-children a { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem 0; color: inherit; text-decoration: none; font-weight: 600; }
.service-card-children a:hover { color: var(--color-primary); }

/* ---- Hero Slider (Home's default rotating hero) ---- */
.block-hero-slider {
  position: relative;
  min-height: clamp(420px, 65vh, 640px);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
}
.block-hero-slider::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 30%;
  background: rgba(0,0,0,.12);
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  gap: 3rem;
  padding: 4rem;
  color: #fff;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero-slide.active { display: flex; opacity: 1; position: relative; }
.hero-slide h1 { color: #fff; }
.hero-slide .btn-primary { background: #fff; color: var(--color-primary); }
.hero-slide .banner-copy { flex: 1; }
.hero-slide .banner-media { flex: 1; }
.hero-slide .banner-media img { width: 100%; display: block; border-radius: var(--radius-md); }
.hero-slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .6rem;
  z-index: 5;
}
.hero-slider-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none; cursor: pointer; padding: 0;
}
.hero-slider-dot.active { background: #fff; }

/* ============================================================
   Premium visual layer — ghost-text watermarks, diagonal accent
   cuts, dotted-ring decorations, corner-badge cards, dash-underline
   footer headings, and scroll-reveal animation. Everything here
   reads its color from the existing theme CSS variables, so it
   still respects brand colours and theme switching.
   ============================================================ */

/* Ghost-text: an oversized, near-invisible outline of a heading's
   own text sitting behind it, for section headers with real weight */
[data-ghost] { position: relative; z-index: 1; }
[data-ghost]::before {
  content: attr(data-ghost);
  position: absolute;
  top: -0.4em;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3.4em;
  font-weight: 800;
  white-space: nowrap;
  color: var(--color-dark);
  opacity: .05;
  -webkit-text-stroke: 1px var(--color-dark);
  z-index: -1;
  pointer-events: none;
}
.block-image-text [data-ghost]::before,
.block-image-image [data-ghost]::before { left: 0; transform: none; }

/* Dotted-ring decoration — a partial ring of dots, CSS-only */
.dotted-ring {
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background-image: radial-gradient(circle, currentColor 1.5px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask: radial-gradient(circle, transparent 55%, #000 56%);
  mask: radial-gradient(circle, transparent 55%, #000 56%);
  opacity: .35;
  color: var(--color-highlight);
  pointer-events: none;
}
.dotted-ring-1 { bottom: -30px; right: 8%; }
.dotted-ring-light { color: #fff; }

/* Diagonal accent cut — the recurring red-diagonal motif, applied
   to the Banner block (used as the internal-page title header) */
.block-banner {
  position: relative;
  overflow: hidden;
}
.block-banner::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 45%;
  background: linear-gradient(160deg, var(--color-accent), var(--color-primary));
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: .85;
  z-index: 0;
}
.block-banner > *:not(.bg-circle):not(.dotted-ring) { position: relative; z-index: 1; }

/* Corner-badge photo cards — Projects/Blog cards with a dark
   gradient scrim and a small floating badge over the image */
.project-card, .blog-card { position: relative; }
.project-card img, .blog-card img { position: relative; }
.card-corner-badge {
  position: absolute;
  top: .75rem; right: .75rem;
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  font-size: .8rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  z-index: 2;
}

/* Footer — dash-underline column headings, per the reference design
   (rules consolidated into the main Footer section above) */

/* Scroll-reveal animation — fade + rise, applied to every block.
   Only activates once JS confirms it can run the reveal, via the
   .js-scroll-anim class added at runtime — this guarantees content
   is never hidden if JavaScript is blocked or fails. */
.js-scroll-anim .block { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js-scroll-anim .block.in-view { opacity: 1; transform: translateY(0); }

/* ---- Feature Grid (icon + divider-line layout) ---- */
.feature-grid-heading { text-align: center; max-width: 700px; margin: 0 auto 3rem; position: relative; }
.eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--color-line);
  border-left: 1px solid var(--color-line);
}
.feature-item {
  padding: 2rem;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.feature-icon { color: var(--color-primary); margin-bottom: .5rem; }
.feature-item h3 { margin: 0; font-size: 1.1rem; }
.feature-item p { margin: 0; opacity: .75; font-size: .92rem; }
.feature-readmore {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .5rem;
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
}
.feature-readmore svg { background: var(--color-background); border: 1px solid var(--color-line); border-radius: 50%; padding: 6px; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* Italic accent word support — wrap a word in *asterisks* in any
   heading/subheading field to render it as an italic accent, e.g.
   "Launch *Ultra Modern* Effective Business" */
.accent-word { font-style: italic; color: var(--color-primary); font-weight: 600; }

/* Eyebrow label variant for use on colored banner/hero backgrounds */
.eyebrow-on-banner { color: #fff; background: rgba(255,255,255,.15); padding: .3rem .9rem; border-radius: 999px; }
.hero-slide .accent-word, .block-banner .accent-word { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); }

/* Full-bleed photo CTA band variant */
.cta-photo-band {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 0;
  overflow: hidden;
}
.cta-photo-overlay {
  background: linear-gradient(120deg, rgba(0,0,0,.55), var(--color-primary) 140%);
  padding: 3.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.cta-photo-overlay h2 { color: #fff; margin: 0; max-width: 600px; }

/* Testimonial with photo */
.testimonial-card.has-photo { display: flex; align-items: center; gap: 2rem; text-align: left; }
.testimonial-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial-card.has-photo blockquote { margin: 0 0 .75rem; }

/* Team grid — hover overlay with a "+" icon */
.team-member { position: relative; overflow: hidden; border-radius: var(--radius-md); }
.team-member img { border-radius: var(--radius-md); transition: transform .4s ease; }
.team-member:hover img { transform: scale(1.06); }
.team-hover-icon {
  position: absolute;
  bottom: 12px; right: 12px;
  width: 34px; height: 34px;
  background: #fff;
  color: var(--color-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.team-member:hover .team-hover-icon { opacity: 1; transform: translateY(0); }

/* Blog/Project cards — image-overlay badge style (badge sits ON the
   photo, no separate white panel needed beneath it for the badge) */
.card-corner-badge { box-shadow: 0 2px 6px rgba(0,0,0,.15); }

/* ---- Page-title banner (Services/Blog/Projects listing+detail) ---- */
.page-title-banner {
  min-height: auto;
  padding: 3.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-title-banner .banner-copy { flex: 0 1 auto; }
.page-title-banner h1 { margin: 0; }
.breadcrumb-pill {
  background: #fff;
  color: var(--color-dark);
  padding: .6rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  position: relative;
  z-index: 1;
}
.breadcrumb-pill span { font-weight: 700; }

/* ---- Numbered corner badge (Services holder cards) ---- */
.numbered-badge {
  position: absolute;
  top: .75rem; right: .75rem;
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  font-size: .8rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  z-index: 2;
}

/* ---- Two-column layout with sidebar (Blog listing/detail) ---- */
.content-with-sidebar { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; max-width: 1200px; margin: 0 auto; align-items: start; }
.sidebar-box { background: var(--color-background); border: 1px solid var(--color-line); border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-box h3 { margin: 0 0 1rem; font-size: 1.05rem; }
.sidebar-search { display: flex; gap: .5rem; }
.sidebar-search input { flex: 1; padding: .7rem 1rem; border-radius: 999px; border: 1px solid var(--color-line); }
.sidebar-search button { background: var(--color-primary); color: #fff; border: none; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.sidebar-cat-list { list-style: none; padding: 0; margin: 0; }
.sidebar-cat-list li { border-bottom: 1px solid var(--color-line); }
.sidebar-cat-list a { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; text-decoration: none; color: var(--color-dark); font-weight: 600; font-size: .92rem; }
.sidebar-recent-post { display: flex; gap: .75rem; align-items: center; margin-bottom: 1rem; text-decoration: none; color: var(--color-dark); }
.sidebar-recent-post img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.sidebar-recent-post span { font-size: .85rem; font-weight: 600; }

/* Blog card meta bar (author/category icons under the image) */
.blog-card-meta { display: flex; gap: 1rem; padding: .75rem 1.25rem 0; font-size: .78rem; opacity: .65; }
.blog-card-meta span { display: flex; align-items: center; gap: .3rem; }
.blog-card-meta svg { width: 13px; height: 13px; }

/* Blog post detail meta row + pull-quote */
.post-meta-row { display: flex; gap: 1.5rem; opacity: .7; font-size: .9rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.post-meta-row span { display: flex; align-items: center; gap: .4rem; }
.post-body blockquote {
  background: var(--color-background);
  border-left: 4px solid var(--color-primary);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  font-style: italic;
  font-size: 1.1rem;
  margin: 2rem 0;
}

/* Hero Slider — full-bleed background image mode */
.hero-slide-full-bg {
  background-size: cover;
  background-position: center;
}
/* The active slide normally switches to position:relative so its
   own content can grow the parent's height — but full-bg mode needs
   the image to cover the ENTIRE parent box edge-to-edge regardless
   of content length, so it stays absolute+inset:0 even when active.
   !important is deliberate here: this must never lose to any other
   rule touching position/inset for this specific element. */
.hero-slide-full-bg.active {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}
.hero-slide-full-bg .banner-copy { padding: 4rem; }
.hero-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.35) 55%, transparent 100%);
  z-index: 0;
}
.hero-slide-full-bg .banner-copy { position: relative; z-index: 1; max-width: 600px; }

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 200;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { filter: brightness(1.1); }

.form-status { padding: .8rem 1.2rem; border-radius: 8px; font-size: .9rem; font-weight: 600; margin-bottom: 1rem; }
.form-status-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---- Mobile navigation (hamburger toggle) ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--color-dark); transition: transform .2s, opacity .2s; }
.nav-toggle-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-active span:nth-child(2) { opacity: 0; }
.nav-toggle-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; z-index: 101; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-background);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 8px 16px rgba(0,0,0,.08);
    max-height: 80vh;
    overflow-y: auto;
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a { display: block; padding: .9rem 1.5rem; }
  .nav-item-has-children { width: 100%; }
  .nav-item-has-children > .nav-parent-link { display: flex; justify-content: space-between; align-items: center; }
  .nav-item-has-children > .nav-parent-link::after { content: '\25BC'; font-size: .6rem; opacity: .5; margin-left: 1rem; }
  .mega-menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
    min-width: 0;
  }
  .nav-item-has-children.mega-menu-open .mega-menu { display: block; }
  .nav-item-has-children:hover .mega-menu,
  .nav-item-has-children:focus-within .mega-menu { display: none; } /* hover no longer applies on mobile */
  .nav-item-has-children.mega-menu-open:hover .mega-menu,
  .nav-item-has-children.mega-menu-open:focus-within .mega-menu { display: block; }
  .site-header { position: relative; }
}

/* These must come after the base rules above in source order to
   correctly win the cascade at narrow widths. */
@media (max-width: 900px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-newsletter { border-radius: 24px; padding: 1.5rem; text-align: center; }
  .footer-newsletter-overlay { border-radius: 24px; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input[type=email] { width: 100%; box-sizing: border-box; }
}

.service-card-image { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 1rem; }

/* Banner — full-width image layout (option on the Banner block) */
.block-banner.block-banner-full-bg { min-height: 380px; padding: 5rem 3rem; background: var(--color-dark); }
.block-banner.block-banner-full-bg::after { display: none; }
.block-banner.block-banner-full-bg > .banner-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.block-banner.block-banner-full-bg > .banner-bg-scrim {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.4) 55%, rgba(0,0,0,.15) 100%);
}
.block-banner-full-bg .banner-copy { flex: 0 1 640px; }
@media (max-width: 700px) {
  .block-banner.block-banner-full-bg { padding: 3.5rem 1.5rem; min-height: 300px; }
  .block-banner-full-bg .banner-bg-scrim { background: rgba(0,0,0,.55); }
}


/* Pricing table: one-off cost line + PayPal button inside a plan */
.price-one-off { font-size: .85rem; opacity: .7; margin-top: -1rem; margin-bottom: 1.5rem; font-weight: 600; }

/* ============================================================
   Phase 1b additions — shared by every theme. Colours come from
   the theme variables, so these blocks match whichever theme is
   active; the Studio theme (theme-studio.css) refines them further.
   ============================================================ */

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

/* Header button (Settings -> Header Button) */
.site-header > .header-cta { margin-left: 1.5rem; white-space: nowrap; }
.header-cta-mobile { display: none; }
@media (max-width: 900px) {
  .site-header > .header-cta { display: none; }
  .main-nav .header-cta-mobile { display: inline-block; margin: 1rem 1.5rem; text-align: center; }
}

/* Banner: buttons row, second button, video */
.banner-ctas { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.banner-video { width: 100%; display: block; border-radius: var(--radius-md); background: rgba(0,0,0,.25); }

/* Banner — Bold layout */
.block-banner.block-banner-bold {
  display: block; background: var(--color-dark); color: #fff;
  padding: 5rem max(1.5rem, calc((100% - 1280px) / 2)) 4.5rem;
}
.block-banner.block-banner-bold::after { display: none; }
.block-banner-bold .bold-orb {
  position: absolute; right: -140px; top: -120px; width: 560px; height: 560px; border-radius: 50%;
  background: var(--color-primary); opacity: .16; pointer-events: none; z-index: 0;
}
.block-banner-bold .bold-inner { position: relative; z-index: 1; }
.block-banner-bold .bold-eyebrow {
  display: block; font-size: .9rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-highlight); margin-bottom: 1.5rem;
}
.block-banner-bold h1 {
  color: #fff; font-size: clamp(3rem, 9.5vw, 9rem); line-height: .93; letter-spacing: -.045em; margin: 0; max-width: 14ch;
}
.block-banner-bold.bold-compact h1 { font-size: clamp(2.6rem, 7vw, 6.5rem); max-width: 18ch; }
.block-banner-bold .accent-word,
.block-banner .accent-word.accent-highlight {
  font-style: normal; color: #fff; text-decoration: none; display: inline-block;
  background: var(--color-primary); padding: 0 .12em; border-radius: .12em; transform: rotate(-2deg);
}
.block-banner-bold .bold-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-top: 2.75rem;
}
.block-banner-bold .bold-sub { margin: 0; max-width: 34rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; opacity: .82; }
.block-banner-bold .btn-primary { background: var(--color-primary); color: #fff; }
.block-banner-bold .bold-media {
  position: relative; z-index: 1; margin-top: 3.5rem; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 21 / 9; background: rgba(255,255,255,.06);
}
.block-banner-bold .bold-media img, .block-banner-bold .bold-media video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
@media (max-width: 720px) {
  .block-banner.block-banner-bold { padding: 3.5rem 1.25rem 3rem; }
  .block-banner-bold .bold-media { aspect-ratio: 4 / 3; margin-top: 2.5rem; }
  .block-banner-bold .bold-orb { width: 320px; height: 320px; right: -120px; top: -80px; }
}

/* Section heading row used by the list blocks */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 2.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.section-head h2 { margin: 0; max-width: 22ch; }
.section-head-side { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; max-width: 26rem; }
.section-intro { margin: 0; opacity: .78; }
.section-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; color: var(--color-dark); border-bottom: 2px solid currentColor; padding-bottom: 2px; }
.section-link:hover { color: var(--color-primary); }
.block-empty-note { border: 2px dashed var(--color-line); border-radius: var(--radius-md); padding: 1.5rem; text-align: center; opacity: .7; margin: 0; }

.block-services-list, .block-projects-list, .block-latest-posts, .block-steps {
  padding-left: max(1.5rem, calc((100% - 1200px) / 2));
  padding-right: max(1.5rem, calc((100% - 1200px) / 2));
}

/* Ticker band */
.block.block-ticker { padding: 0; overflow: hidden; }
.block-ticker.is-slanted { padding: 2.25rem 0; }
.ticker-band { padding: 1.3rem 0; }
.ticker-accent .ticker-band { background: var(--color-primary); color: #fff; }
.ticker-dark .ticker-band { background: var(--color-dark); color: #fff; }
.ticker-light .ticker-band { border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); padding: 1.4rem max(1.5rem, calc((100% - 1200px) / 2)); }
.block-ticker.is-slanted .ticker-band { transform: rotate(-1.5deg); width: calc(100% + 6rem); margin-left: -3rem; }
.ticker-track { display: flex; }
.ticker-set { display: flex; align-items: center; gap: 2.25rem; flex-shrink: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.3rem, 2.8vw, 2.5rem); letter-spacing: -.02em; white-space: nowrap; }
.block-ticker:not(.is-scrolling) .ticker-track { justify-content: center; }
.block-ticker:not(.is-scrolling) .ticker-set { flex-wrap: wrap; justify-content: center; white-space: normal; gap: .5rem 2.25rem; padding: 0 1.5rem; }
.ticker-sep { opacity: .85; font-size: .8em; }
.is-scrolling .ticker-track { width: max-content; animation: ticker-scroll 38s linear infinite; }
.is-scrolling .ticker-set { padding-right: 2.25rem; }
.is-scrolling:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { to { transform: translateX(-50%); } }
.ticker-light .ticker-set { font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: 0; opacity: .8; }
.block-ticker.ticker-light:not(.is-scrolling) .ticker-set { justify-content: space-between; width: 100%; padding: 0; }
.ticker-light .ticker-sep { display: none; }
@media (prefers-reduced-motion: reduce) {
  .is-scrolling .ticker-track { animation: none; }
}

/* Services List */
.svc-layout-cards .svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.svc-group { background: rgba(0,0,0,.04); border-radius: var(--radius-lg); padding: 2.25rem; display: flex; flex-direction: column; gap: 1rem; }
.svc-layout-cards .svc-group:first-child { background: var(--color-dark); color: #fff; }
.svc-group-num { font-weight: 800; color: var(--color-primary); font-size: .95rem; }
.svc-layout-cards .svc-group:first-child .svc-group-num { color: var(--color-highlight); }
.svc-group h3 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; }
.svc-group h3 a { color: inherit; text-decoration: none; }
.svc-group p { margin: 0; opacity: .8; }
.svc-group-links { list-style: none; margin: .25rem 0 0; padding: 0; border-top: 1px solid rgba(127,127,127,.25); }
.svc-group-links li { border-bottom: 1px solid rgba(127,127,127,.25); }
.svc-group-links a { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; color: inherit; text-decoration: none; font-weight: 600; }
.svc-group-links a:hover { color: var(--color-primary); }
.svc-layout-cards .svc-group:first-child .svc-group-links a:hover { color: var(--color-highlight); }

.svc-layout-grid .svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.svc-card { display: flex; flex-direction: column; gap: .85rem; padding: 2rem; border: 1.5px solid var(--color-line); border-radius: var(--radius-lg); text-decoration: none; color: inherit; transition: border-color .2s, transform .3s var(--motion-easing); }
.svc-card:hover { border-color: var(--color-dark); transform: var(--hover-card); }
.svc-card-num { font-weight: 800; color: var(--color-primary); }
.svc-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-md); }
.svc-card-title { font-family: var(--font-heading); font-weight: 800; font-size: 1.45rem; letter-spacing: -.015em; line-height: 1.15; }
.svc-card-text { opacity: .78; }
.svc-card-more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--color-primary); text-decoration: none; }

.svc-layout-rows .svc-list { border-top: 1px solid var(--color-line); }
.svc-row { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid var(--color-line); text-decoration: none; color: inherit; }
.svc-row-num { font-weight: 700; color: var(--color-primary); font-size: 1.2rem; }
.svc-row-text { display: flex; flex-direction: column; gap: .35rem; }
.svc-row-title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.8rem, 4vw, 3.2rem); letter-spacing: -.03em; line-height: 1.05; }
.svc-row-sub { opacity: .65; }
.svc-row-arrow { width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 1.5px solid currentColor; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, transform .3s var(--motion-easing); }
.svc-row:hover .svc-row-arrow { background: var(--color-primary); border-color: var(--color-primary); color: #fff; transform: rotate(-45deg); }
@media (max-width: 600px) { .svc-row { grid-template-columns: 2.5rem minmax(0, 1fr); } .svc-row-arrow { display: none; } }

/* Projects List */
.proj-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
.proj-layout-strip .proj-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.proj-card { display: flex; flex-direction: column; gap: 1rem; text-decoration: none; color: inherit; }
.proj-media { display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: rgba(0,0,0,.05); }
.proj-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--motion-easing); }
.proj-card:hover .proj-media img { transform: scale(1.04); }
.proj-img-empty { display: block; width: 100%; height: 100%; }
.proj-body { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.proj-title { font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; }
.proj-tag { font-size: .9rem; opacity: .65; }
.proj-excerpt { flex-basis: 100%; opacity: .8; }
.proj-layout-showcase .proj-lead { grid-column: 1 / -1; }
.proj-layout-showcase .proj-lead .proj-media { aspect-ratio: 21 / 9; }
.proj-layout-showcase .proj-lead .proj-title { font-size: clamp(2rem, 4vw, 3rem); }
.proj-layout-strip .proj-media { aspect-ratio: 4 / 3; border-radius: var(--radius-md); }
.proj-layout-strip .proj-title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.proj-layout-strip .proj-tag { display: none; }
@media (max-width: 900px) { .proj-layout-strip .proj-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .proj-list { grid-template-columns: 1fr; } .proj-layout-showcase .proj-lead .proj-media { aspect-ratio: 16 / 10; } }

/* Latest Posts */
.post-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.5rem; }
.post-card { display: flex; flex-direction: column; gap: .7rem; text-decoration: none; color: inherit; }
.post-card-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-md); overflow: hidden; background: rgba(0,0,0,.05); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--motion-easing); }
.post-card:hover .post-card-media img { transform: scale(1.04); }
.post-img-empty { display: block; width: 100%; height: 100%; }
.post-chip { position: absolute; top: .85rem; left: .85rem; font-size: .78rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: #fff; }
.post-card-date { font-size: .85rem; opacity: .65; }
.post-card-title { font-family: var(--font-heading); font-weight: 800; font-size: 1.4rem; line-height: 1.18; letter-spacing: -.015em; }
.post-card:hover .post-card-title { color: var(--color-primary); }

/* Steps */
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.step { display: flex; flex-direction: column; gap: .5rem; padding: 1.9rem; border-radius: var(--radius-md); }
.step-num { font-family: var(--font-heading); font-weight: 800; color: var(--color-primary); font-size: 1.1rem; }
.step-title { font-weight: 700; font-size: 1.2rem; }
.step-text { opacity: .75; font-size: .97rem; }
.steps-light .step { background: rgba(0,0,0,.04); }
.block-steps.steps-dark { background: var(--color-dark); color: #fff; }
.steps-dark .section-head h2, .steps-dark .eyebrow { color: #fff; }
.steps-dark .eyebrow { color: var(--color-highlight); }
.steps-dark .steps-list { gap: 0; border-top: 1px solid rgba(255,255,255,.12); border-left: 1px solid rgba(255,255,255,.12); }
.steps-dark .step { border-radius: 0; border-right: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.steps-dark .step-num { color: var(--color-highlight); }
