/* === V30 Structured Authority — Award-Site Editorial === */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --navy: #1e293b;
  --navy-90: rgba(30,41,59,0.9);
  --navy-75: rgba(30,41,59,0.75);
  --bg: #ffffff;
  --surface: #f1f5f9;
  --text: #334155;
  --text-light: #64748b;
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-light: rgba(217,119,6,0.1);
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 4px;
  --max-width: 1200px;
  --nav-height: 72px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--navy); }
.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem; border-radius: var(--radius); font-family: var(--font-body); font-weight: 600; font-size: 1rem; cursor: pointer; border: none; transition: all 0.3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 8px 24px rgba(217,119,6,0.3); }
.btn--outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.3); }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); z-index: 100; transition: all 0.4s var(--ease); background: transparent; }
.nav--scrolled { background: var(--navy-90); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; width: 90%; max-width: var(--max-width); margin: 0 auto; }
.nav__logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; color: #fff; }
.nav__links { display: flex; gap: 2.5rem; }
.nav__links a { color: rgba(255,255,255,0.8); font-weight: 500; font-size: 0.9375rem; position: relative; transition: color 0.3s; }
.nav__links a:hover, .nav__links a.active { color: #fff; }
.nav__links a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--accent); }
.nav__cta { display: flex; }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: 0.3s; }

.nav-overlay { position: fixed; inset: 0; background: var(--navy); z-index: 99; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; opacity: 0; pointer-events: none; transition: opacity 0.4s; }
.nav-overlay--open { opacity: 1; pointer-events: auto; }
.nav-overlay a { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: #fff; opacity: 0; transform: translateX(30px); transition: opacity 0.4s, transform 0.4s; }
.nav-overlay--open a { opacity: 1; transform: translateX(0); }
.nav-overlay--open a:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay--open a:nth-child(2) { transition-delay: 0.15s; }
.nav-overlay--open a:nth-child(3) { transition-delay: 0.2s; }
.nav-overlay--open a:nth-child(4) { transition-delay: 0.25s; }
.nav-overlay--open a:nth-child(5) { transition-delay: 0.3s; }

.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--navy); border-top: 1px solid rgba(255,255,255,0.08); z-index: 100; padding: 0.5rem 0 env(safe-area-inset-bottom); justify-content: space-around; }
.mobile-nav__item { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.5rem; color: rgba(255,255,255,0.5); font-size: 0.6875rem; text-decoration: none; transition: color 0.3s; }
.mobile-nav__item--active { color: var(--accent); }
.mobile-nav__item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero { position: relative; min-height: 100vh; overflow: hidden; display: flex; align-items: center; background-size: cover; background-position: center; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,41,59,0.85) 0%, rgba(30,41,59,0.65) 100%); z-index: 1; }
.hero__content { position: relative; z-index: 2; color: #fff; width: 90%; max-width: var(--max-width); margin: 0 auto; padding: calc(var(--nav-height) + 5rem) 0 6rem; }
.hero__eyebrow { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem; }
.hero__title { font-size: clamp(2.75rem, 5.5vw, 4rem); font-weight: 700; line-height: 1.15; margin-bottom: 1.5rem; max-width: 700px; }
.hero__title .word { display: inline-block; opacity: 0; transform: translateY(40px); }
.hero__rule { border: none; border-top: 3px solid var(--accent); width: 0; margin: 1.5rem 0; }
.hero__rule--animate { width: 80px; transition: width 1s var(--ease-out); }
.hero__subtitle { font-size: 1.1875rem; font-weight: 300; opacity: 0.85; margin-bottom: 2.5rem; max-width: 560px; line-height: 1.7; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero__scroll-line { width: 1px; height: 40px; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; top: -100%; left: 0; width: 1px; height: 100%; background: var(--accent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0% { top: -100%; } 50% { top: 100%; } 100% { top: 100%; } }

/* Credentials */
.credentials { background: var(--surface); padding: 2rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.credentials__inner { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; align-items: center; }
.credentials__item { display: flex; align-items: center; gap: 0.625rem; font-weight: 600; font-size: 0.9375rem; color: var(--navy); }
.credentials__item svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }

/* Sections */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__header { margin-bottom: 3.5rem; }
.section__header--center { text-align: center; }
.section__eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.section__title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.section__subtitle { font-size: 1.0625rem; color: var(--text-light); font-weight: 300; max-width: 600px; line-height: 1.7; }
.section__header--center .section__subtitle { margin: 0 auto; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.service-card { border-bottom: 1px solid rgba(0,0,0,0.08); padding-bottom: 2.5rem; }
.service-card__image { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.5rem; }
.service-card__title { font-size: 1.375rem; font-weight: 700; margin-bottom: 0.625rem; }
.service-card__desc { font-size: 0.9375rem; color: var(--text-light); line-height: 1.7; margin-bottom: 0.75rem; }
.service-card__link { font-weight: 600; font-size: 0.875rem; display: inline-flex; align-items: center; gap: 0.375rem; transition: gap 0.3s; }
.service-card__link:hover { gap: 0.625rem; }

/* Approach */
.approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; position: relative; }
.approach-step { text-align: center; }
.approach-step__image { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.5rem; }
.approach-step__number { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--accent); opacity: 0.3; margin-bottom: 1rem; }
.approach-step__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.approach-step__desc { font-size: 0.9375rem; color: var(--text-light); line-height: 1.7; }

/* Testimonial */
.testimonial { max-width: 700px; margin: 0 auto; text-align: center; }
.testimonial__quote { font-family: var(--font-heading); font-size: 1.375rem; font-style: italic; line-height: 1.8; margin-bottom: 2rem; }
.testimonial__author { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.testimonial__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.testimonial__info { text-align: left; }
.testimonial__name { font-weight: 700; }
.testimonial__role { font-size: 0.875rem; color: var(--text-light); }

/* CTA */
.cta { background: var(--navy); color: #fff; padding: 5rem 0; text-align: center; }
.cta h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; color: #fff; margin-bottom: 1rem; }
.cta p { font-size: 1.0625rem; opacity: 0.75; margin-bottom: 2.5rem; max-width: 500px; margin-left: auto; margin-right: auto; font-weight: 300; }

/* Page Hero */
.page-hero { background: var(--navy); color: #fff; padding: calc(var(--nav-height) + 3.5rem) 0 3.5rem; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.0625rem; opacity: 0.8; max-width: 560px; font-weight: 300; line-height: 1.7; }
.page-hero__rule { border: none; border-top: 3px solid var(--accent); width: 60px; margin: 1.25rem 0; }

/* About Hero */
.about-hero { position: relative; min-height: 60vh; display: flex; align-items: center; background-size: cover; background-position: center; }
.about-hero__overlay { position: absolute; inset: 0; background: var(--navy-75); z-index: 1; }
.about-hero__content { position: relative; z-index: 2; color: #fff; width: 90%; max-width: var(--max-width); margin: 0 auto; padding: calc(var(--nav-height) + 4rem) 0 4rem; }

.founder { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: center; }
.founder__image { width: 100%; border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; }
.founder__quote { font-family: var(--font-heading); font-size: 1.5rem; font-style: italic; line-height: 1.6; color: var(--navy); margin-bottom: 1.5rem; }
.founder__name { font-weight: 700; }
.founder__role { color: var(--text-light); font-size: 0.875rem; }

.timeline { position: relative; padding: 2rem 0; max-width: 800px; margin: 0 auto; }
.timeline__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(0,0,0,0.08); transform: translateX(-50%); }
.timeline__item { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; margin-bottom: 2.5rem; }
.timeline__content { padding: 0 1.5rem; }
.timeline__item:nth-child(odd) .timeline__content { text-align: right; }
.timeline__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--accent); justify-self: center; }
.timeline__year { font-family: var(--font-heading); font-weight: 700; color: var(--accent); font-size: 1.125rem; }
.timeline__desc { font-size: 0.9375rem; color: var(--text-light); }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.team-card { text-align: center; }
.team-card__avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 3px solid var(--surface); }
.team-card__name { font-weight: 700; }
.team-card__role { font-size: 0.8125rem; color: var(--text-light); }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.value-card { padding: 2rem; background: var(--bg); border-radius: var(--radius); border: 1px solid rgba(0,0,0,0.06); }
.value-card__number { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--accent); opacity: 0.3; margin-bottom: 0.75rem; }
.value-card__title { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.value-card__desc { font-size: 0.9375rem; color: var(--text-light); line-height: 1.7; }

/* Portfolio */
.portfolio-horizontal { overflow: hidden; position: relative; height: 100vh; }
.portfolio-horizontal__track { display: flex; gap: 2rem; height: 100%; align-items: center; padding: 0 5%; will-change: transform; }
.portfolio-horizontal__card { flex: 0 0 45vw; height: 70vh; position: relative; border-radius: var(--radius); overflow: hidden; }
.portfolio-horizontal__card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.portfolio-horizontal__card:hover img { transform: scale(1.05); }
.portfolio-horizontal__info { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; background: linear-gradient(to top, var(--navy) 0%, transparent 100%); color: #fff; transform: translateY(20px); opacity: 0; transition: all 0.4s var(--ease-out); }
.portfolio-horizontal__card:hover .portfolio-horizontal__info { transform: translateY(0); opacity: 1; }
.portfolio-horizontal__category { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.portfolio-horizontal__title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.portfolio-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.portfolio-card:hover img { transform: scale(1.05); }
.portfolio-card__overlay { position: absolute; inset: 0; background: var(--navy-75); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; opacity: 0; transition: opacity 0.4s; }
.portfolio-card:hover .portfolio-card__overlay { opacity: 1; }
.portfolio-card__category { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.25rem; }
.portfolio-card__title { font-family: var(--font-heading); color: #fff; font-size: 1.125rem; font-weight: 700; }

.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; padding: 0.5rem 1.25rem; border-radius: 100px; border: 1px solid rgba(0,0,0,0.1); background: transparent; color: var(--text-light); cursor: pointer; transition: all 0.3s; }
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.case-studies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 3rem; }
.case-study { border-radius: var(--radius); overflow: hidden; background: var(--surface); padding: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.case-study__image { width: 100%; border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; }
.case-study__category { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.case-study__title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.case-study__desc { font-size: 0.875rem; color: var(--text-light); line-height: 1.7; margin-bottom: 1rem; }
.case-study__stats { display: flex; gap: 1.5rem; }
.case-study__stat-value { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.case-study__stat-label { font-size: 0.6875rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.form-card { background: var(--bg); padding: 2.5rem; border-radius: var(--radius); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 0.5rem; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem 1rem; border: 1px solid rgba(0,0,0,0.12); border-radius: 2px; font-family: var(--font-body); font-size: 1rem; transition: border-color 0.3s, box-shadow 0.3s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.form-group textarea { min-height: 120px; resize: vertical; }
.info-card { padding: 2.5rem; background: var(--surface); border-radius: var(--radius); border-left: 4px solid var(--navy); }
.info-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.info-card__item { margin-bottom: 1.5rem; }
.info-card__item strong { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); margin-bottom: 0.25rem; }
.info-card__item a { color: var(--accent); font-weight: 600; }
.trust-signals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.trust-signal { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.trust-signal svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }

/* Service detail page */
.service-blocks { padding: 4rem 0; }
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 3rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.service-block:nth-child(even) { direction: rtl; }
.service-block:nth-child(even) > * { direction: ltr; }
.service-block__image { width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius); }
.service-block__title { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; }
.service-block__desc { font-size: 1rem; color: var(--text-light); line-height: 1.7; margin-bottom: 1.5rem; }
.service-block__list li { padding: 0.375rem 0 0.375rem 1.5rem; font-size: 0.9375rem; position: relative; }
.service-block__list li::before { content: ''; position: absolute; left: 0; top: 0.7rem; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 3rem 0; margin-bottom: 60px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; }
.footer__logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.125rem; color: #fff; }
.footer__copy { font-size: 0.875rem; }
.footer__links { display: flex; gap: 1.5rem; }
.footer__links a { color: rgba(255,255,255,0.6); font-size: 0.875rem; transition: color 0.3s; }
.footer__links a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 1024px) {
  .portfolio-horizontal__card { flex: 0 0 70vw; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .case-studies { grid-template-columns: 1fr; }
  .case-study { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .mobile-nav { display: flex; }
  .services-grid, .approach-grid, .contact-grid, .portfolio-grid, .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .portfolio-horizontal__card { flex: 0 0 85vw; }
  .founder { grid-template-columns: 1fr; }
  .founder__image { max-width: 200px; margin: 0 auto; }
  .service-block { grid-template-columns: 1fr; }
  .service-block:nth-child(even) { direction: ltr; }
  .timeline__item { grid-template-columns: 20px 1fr; }
  .timeline__line { left: 10px; }
  .timeline__content { padding: 0 0 0 1.5rem; }
  .timeline__item:nth-child(odd) .timeline__content { text-align: left; }
  .timeline__spacer { display: none; }
  .trust-signals { grid-template-columns: 1fr; }
  .footer { margin-bottom: 72px; }
  .footer__inner { flex-direction: column; gap: 1rem; text-align: center; }
  .footer__links { justify-content: center; }
  .approach-grid { gap: 2rem; }
}
@media (min-width: 769px) { .mobile-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* === V32 Medical Authority Editorial Overrides === */
:root {
  --navy: #16303a;
  --navy-90: rgba(22, 48, 58, 0.9);
  --navy-75: rgba(22, 48, 58, 0.74);
  --bg: #f6f1e9;
  --surface: #ebe2d4;
  --text: #203740;
  --text-light: #5a6f76;
  --accent: #8f6a3c;
  --accent-hover: #6f502b;
  --accent-light: rgba(143, 106, 60, 0.12);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --radius: 8px;
}

body {
  background: linear-gradient(180deg, #faf6ef 0%, #f6f1e9 100%);
}

.nav {
  background: rgba(246, 241, 233, 0.9);
}

.nav__logo,
.nav__links a,
.mobile-nav__item {
  color: var(--text);
}

.mobile-nav {
  background: rgba(246, 241, 233, 0.97);
}

.editorial-hero {
  min-height: 92vh;
}

.editorial-hero .hero__overlay {
  background:
    linear-gradient(90deg, rgba(246, 241, 233, 0.95) 0%, rgba(246, 241, 233, 0.88) 52%, rgba(22, 48, 58, 0.24) 100%);
}

.editorial-hero__content {
  max-width: 1260px;
}

.editorial-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.editorial-hero .hero__title,
.editorial-hero .hero__subtitle {
  color: var(--text);
}

.editorial-hero .hero__title {
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.95;
  max-width: 10ch;
}

.editorial-hero .hero__eyebrow,
.section__eyebrow {
  color: var(--accent);
}

.editorial-hero .btn--outline {
  color: var(--navy);
  border-color: rgba(22, 48, 58, 0.24);
}

.editorial-hero .btn--outline:hover {
  background: rgba(22, 48, 58, 0.06);
}

.editorial-proof {
  position: relative;
  min-height: 34rem;
}

.editorial-proof__card {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(32, 55, 64, 0.08);
  box-shadow: 0 30px 70px rgba(32, 55, 64, 0.12);
}

.editorial-proof__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.editorial-proof__card h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.editorial-proof__card p {
  color: var(--text-light);
}

.editorial-proof__stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.editorial-proof__stats strong,
.bio-case__stats strong {
  display: block;
  font-size: 1.8rem;
  color: var(--navy);
}

.editorial-proof__stats span,
.bio-case__stats span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.editorial-proof__portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(48%, 19rem);
  aspect-ratio: 1;
  object-fit: cover;
  border: 12px solid #f6f1e9;
  box-shadow: 0 20px 50px rgba(32, 55, 64, 0.14);
}

.editorial-services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.editorial-services-grid .service-card,
.editorial-sectors__grid .approach-step {
  background: #fff;
  border: 1px solid rgba(32, 55, 64, 0.08);
}

.editorial-services-grid .service-card__title,
.editorial-sectors__grid .approach-step__title {
  color: var(--navy);
}

.editorial-sectors__grid .approach-step {
  padding: 2rem;
  text-align: left;
}

.editorial-sectors__grid .approach-step__number {
  color: rgba(143, 106, 60, 0.25);
}

.editorial-feature .bio-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(32, 55, 64, 0.08);
  padding: 2rem;
  margin-bottom: 3rem;
}

.editorial-feature .bio-case__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.testimonial {
  max-width: 760px;
}

.cta {
  background: var(--navy);
}

@media (max-width: 1024px) {
  .editorial-hero__grid,
  .editorial-services-grid,
  .editorial-sectors__grid,
  .editorial-feature .bio-case {
    grid-template-columns: 1fr;
  }

  .editorial-proof {
    min-height: auto;
  }

  .editorial-proof__portrait {
    position: static;
    width: 12rem;
    margin-top: 1rem;
  }
}

/* === Modern 2026 Layer === */
@view-transition {
  navigation: auto;
}

:root {
  --hwy-modern-ring: var(--accent, #7c3aed);
  --hwy-modern-glow: var(--accent-light, rgba(124, 58, 237, 0.16));
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
}

:where(h1, h2, h3, .hero__title, .section__title, .page-hero h1) {
  text-wrap: balance;
}

:where(p, li, .hero__subtitle, .section__subtitle, .service-card__desc, .approach-step__desc) {
  text-wrap: pretty;
}

:where(.nav__logo, .page-nav__brand) {
  view-transition-name: hwy-brand;
}

:where(.hero__title, .page-hero h1) {
  view-transition-name: hwy-title;
}

::selection {
  background: var(--hwy-modern-glow);
}

:focus-visible {
  outline: 2px solid var(--hwy-modern-ring);
  outline-offset: 3px;
}

img,
video,
canvas,
svg {
  backface-visibility: hidden;
  transform: translateZ(0);
}

video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@supports (content-visibility: auto) {
  :where(
    .service-block,
    .case-study,
    .timeline,
    .portfolio-horizontal,
    .contact-grid,
    .portfolio-grid,
    .team-grid,
    .values-grid,
    .case-studies,
    .comparison__table-wrap
  ) {
    content-visibility: auto;
    contain-intrinsic-size: auto 920px;
  }
}

:where(
  .service-card,
  .approach-step,
  .portfolio-card,
  .value-card,
  .team-card,
  .case-study,
  .testimonial,
  .bio-case,
  .operator-results__card,
  .comparison__faq,
  .comparison__table-wrap,
  .why__card,
  .dd-summary__item
) {
  position: relative;
  isolation: isolate;
}

:where(
  .service-card,
  .approach-step,
  .portfolio-card,
  .value-card,
  .team-card,
  .case-study,
  .testimonial,
  .bio-case,
  .operator-results__card,
  .comparison__faq,
  .comparison__table-wrap,
  .why__card,
  .dd-summary__item
)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.24s ease;
  background:
    radial-gradient(
      320px circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
      var(--hwy-modern-glow),
      transparent 70%
    );
}

@media (hover: hover) and (pointer: fine) {
  :where(
    .service-card,
    .approach-step,
    .portfolio-card,
    .value-card,
    .team-card,
    .case-study,
    .testimonial,
    .bio-case,
    .operator-results__card,
    .comparison__faq,
    .comparison__table-wrap,
    .why__card,
    .dd-summary__item
  ):hover::after {
    opacity: 1;
  }
}

@supports (animation-timeline: view()) {
  :where(
    .service-card,
    .approach-step,
    .portfolio-card,
    .value-card,
    .team-card,
    .case-study,
    .testimonial,
    .bio-case,
    .operator-results__card,
    .comparison__faq,
    .comparison__table-wrap,
    .why__card,
    .dd-summary__item
  ) {
    animation: hwy-rise-in both cubic-bezier(0.16, 1, 0.3, 1);
    animation-timeline: view();
    animation-range: entry 12% cover 28%;
  }
}

@keyframes hwy-rise-in {
  from {
    opacity: 0.001;
    transform: translateY(28px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

::view-transition-old(hwy-brand),
::view-transition-new(hwy-brand),
::view-transition-old(hwy-title),
::view-transition-new(hwy-title) {
  animation-duration: 420ms;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

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

  :where(
    .service-card,
    .approach-step,
    .portfolio-card,
    .value-card,
    .team-card,
    .case-study,
    .testimonial,
    .bio-case,
    .operator-results__card,
    .comparison__faq,
    .comparison__table-wrap,
    .why__card,
    .dd-summary__item
  ) {
    animation: none !important;
  }
}
/* === End Modern 2026 Layer === */


/* === Shared Website Modules === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shared-site-suite {
  padding: 5rem 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(180deg, var(--surface, #f5f5f7), color-mix(in srgb, var(--bg, #ffffff) 88%, black 12%));
}

.shared-site-suite__eyebrow,
.shared-proof-card__eyebrow,
.shared-module-card__kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary, #2563eb);
  font-weight: 700;
}

.shared-site-suite__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.shared-module-card,
.shared-proof-card,
.shared-a11y-panel,
.shared-chat-panel,
.shared-cookie-banner {
  background: color-mix(in srgb, var(--bg, #ffffff) 88%, var(--surface, #f3f4f6) 12%);
  border: 1px solid rgba(127, 127, 127, 0.18);
  border-radius: calc(var(--radius, 18px) * 1.15);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

.shared-module-card {
  padding: 1.5rem;
}

.shared-module-card h3 {
  margin: 0.75rem 0 0.55rem;
  font-size: 1.25rem;
  line-height: 1.2;
}

.shared-module-card p,
.shared-proof-card p,
.shared-review-item p,
.shared-cookie-banner p {
  color: color-mix(in srgb, var(--text, #111827) 72%, transparent);
}

.shared-module-card__list {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
}

.shared-module-card__list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.95rem;
}

.shared-module-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--primary, #2563eb);
}

.shared-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: start;
}

.shared-proof-stack {
  display: grid;
  gap: 1.5rem;
}

.shared-proof-card {
  padding: 1.5rem;
}

.shared-proof-card__header {
  margin-bottom: 1rem;
}

.shared-proof-card h3 {
  margin-top: 0.5rem;
  font-size: 1.3rem;
  line-height: 1.2;
}

.shared-before-after {
  --after-width: 52%;
}

.shared-before-after__frame {
  position: relative;
  min-height: 420px;
  border-radius: calc(var(--radius, 18px) * 0.9);
  overflow: hidden;
  background: #0f172a;
}

.shared-before-after__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shared-before-after__overlay {
  position: absolute;
  inset: 0;
  width: var(--after-width);
  overflow: hidden;
}

.shared-before-after__overlay .shared-before-after__image {
  min-width: 100%;
}

.shared-before-after__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--after-width);
  width: 2px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 999px rgba(255, 255, 255, 0.02);
}

.shared-before-after__label {
  position: absolute;
  top: 1rem;
  z-index: 2;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shared-before-after__label--before { left: 1rem; }
.shared-before-after__label--after { right: 1rem; }

.shared-before-after__range {
  display: block;
  margin-top: 1rem;
}

.shared-before-after__range input {
  width: 100%;
}

.shared-review-summary {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.shared-review-summary strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.shared-review-summary span {
  font-size: 0.95rem;
}

.shared-review-summary__stars {
  color: var(--accent, #f59e0b);
  letter-spacing: 0.2em;
  font-size: 1rem;
}

.shared-review-list {
  display: grid;
  gap: 0.85rem;
}

.shared-review-item {
  padding: 1rem;
  border-radius: calc(var(--radius, 18px) * 0.75);
  background: rgba(127, 127, 127, 0.08);
}

.shared-review-item cite {
  display: block;
  margin-top: 0.65rem;
  font-style: normal;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--text, #111827) 62%, transparent);
}

.shared-video-embed,
.shared-map-embed {
  border-radius: calc(var(--radius, 18px) * 0.85);
  overflow: hidden;
  background: #0f172a;
}

.shared-video-embed iframe,
.shared-map-embed iframe {
  width: 100%;
  border: 0;
}

.shared-video-embed iframe {
  aspect-ratio: 16 / 9;
  min-height: 260px;
}

.shared-map-embed iframe {
  min-height: 260px;
}

.shared-utility-dock {
  position: fixed;
  right: 1rem;
  bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  display: grid;
  gap: 0.75rem;
  z-index: 120;
}

.shared-utility-button {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--text, #111827);
  color: var(--bg, #ffffff);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

.shared-utility-button--chat {
  background: var(--primary, #2563eb);
  color: #fff;
}

.shared-a11y-panel,
.shared-chat-panel {
  position: fixed;
  right: 1rem;
  bottom: calc(10.5rem + env(safe-area-inset-bottom, 0px));
  width: min(24rem, calc(100vw - 2rem));
  padding: 1rem;
  z-index: 130;
}

.shared-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.shared-panel__header h2 {
  font-size: 1rem;
}

.shared-panel__close,
.shared-panel__action,
.shared-chat-prompt,
.shared-cookie-banner__btn {
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  font: inherit;
  cursor: pointer;
}

.shared-panel__close,
.shared-panel__action,
.shared-chat-prompt,
.shared-cookie-banner__btn--ghost {
  background: rgba(127, 127, 127, 0.12);
  color: var(--text, #111827);
}

.shared-a11y-panel__actions,
.shared-chat-prompts {
  display: grid;
  gap: 0.75rem;
}

.shared-panel__action--reset,
.shared-cookie-banner__btn {
  background: var(--primary, #2563eb);
  color: #fff;
}

.shared-chat-thread {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.shared-chat-message {
  padding: 0.85rem 1rem;
  border-radius: 1rem 1rem 1rem 0.35rem;
  background: rgba(127, 127, 127, 0.08);
}

.shared-chat-message--user {
  margin-left: auto;
  border-radius: 1rem 1rem 0.35rem 1rem;
  background: var(--primary, #2563eb);
  color: #fff;
}

.shared-chat-panel__cta {
  width: 100%;
  margin-top: 1rem;
  text-align: center;
}

.shared-cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  z-index: 140;
}

.shared-cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

body.a11y-large-text {
  font-size: 112.5%;
}

body.a11y-high-contrast {
  filter: contrast(1.12);
}

body.a11y-reduce-motion *,
body.a11y-reduce-motion *::before,
body.a11y-reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

@media (max-width: 900px) {
  .shared-site-suite__cards,
  .shared-proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .shared-cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .shared-cookie-banner__actions {
    width: 100%;
  }

  .shared-cookie-banner__actions .shared-cookie-banner__btn {
    flex: 1;
  }

  .shared-utility-dock {
    right: 0.75rem;
    left: 0.75rem;
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shared-utility-button {
    width: 100%;
  }
}
/* === End Shared Website Modules === */
