.home-main { --section-gap: clamp(4rem,8vw,7rem); padding-bottom: var(--section-gap); }
.home-intro { display: grid; justify-items: center; align-content: center; gap: 1.35rem; min-height: 65vh; min-height: 65svh; padding: 2.5rem 0; text-align: center; }
.home-intro h1 { font-size: clamp(2rem,6.4vw,5.75rem); font-weight: 820; margin: 0; line-height: 1.08; letter-spacing: -.065em; }
.home-intro p { margin: 0; color: var(--muted); line-height: 1.5; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.section-heading h2 { margin: 0; font-size: 1.35rem; letter-spacing: -.045em; }
.section-heading a { color: var(--muted); font-size: .9rem; }
.featured-grid { display: grid; gap: clamp(1.5rem,3vw,2.25rem) clamp(.65rem,1.6vw,1.25rem); }
.feature-tile { text-decoration: none; }
.cover { overflow: hidden; aspect-ratio: var(--work-frame-ratio); border-radius: .8rem; background: #ebebeb; box-shadow: inset 0 0 0 1px var(--line); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.field-copy { margin-top: .8rem; min-width: 0; word-break: keep-all; }
.field-copy h3 { margin: 0; font-size: clamp(1.12rem,1.8vw,1.55rem); line-height: 1.3; letter-spacing: -.035em; }
.field-copy p { margin: .25rem 0 0; font-size: .95rem; color: #555; line-height: 1.5; }
a.feature-tile:hover h3 { text-decoration: underline; }
@media (min-width: 741px) {
  .featured-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(4, clamp(9rem, 12vw, 10.5rem));
    grid-template-areas:
      "video video video video video video video brand brand brand brand brand"
      "video video video video video video video website website website website website"
      "blog blog blog software software software software software software ads ads ads"
      "blog blog blog software software software software software software ads ads ads";
    gap: clamp(.75rem, 1.5vw, 1.25rem);
  }
  .featured-grid .feature-tile {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    border: 1px solid var(--line);
    border-radius: .8rem;
    min-width: 0;
    overflow: hidden;
  }
  .featured-grid .cover { aspect-ratio: auto; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
  .featured-grid .field-copy { margin: 0; padding: .65rem clamp(.65rem, 1.1vw, 1rem) .85rem; }
  .feature-video { grid-area: video; }
  .feature-brand { grid-area: brand; }
  .feature-website { grid-area: website; }
  .feature-blog { grid-area: blog; }
  .feature-software { grid-area: software; }
  .feature-ads { grid-area: ads; }
  .featured-grid .feature-website .cover { background: #0b0b0b; }
  .featured-grid .feature-blog .cover { background: #f1f2f3; }
  .feature-website .cover img, .feature-blog .cover img { object-fit: contain; }
  .feature-ads .credential-title { font-size: clamp(1rem, 2vw, 1.65rem); }
}
@media (min-width: 1024px) {
  .featured-grid {
    grid-template-areas:
      "video video video video video video video brand brand brand brand brand"
      "video video video video video video video website website website ads ads"
      "blog blog blog blog software software software software software software software software"
      "blog blog blog blog software software software software software software software software";
  }
  .feature-ads .credential-title { display: none; }
}
.recent { margin-top: var(--section-gap); }
@media (min-width: 851px) {
  .marketing-note + .recent { margin-top: 4rem; }
}
.marketing-note {
  margin-top: var(--section-gap);
  padding: clamp(2.75rem,7vw,6rem) 1rem;
  border-block: 1px solid var(--line);
  text-align: center;
}
.quote-mark { display: block; height: .67em; font: bold clamp(4.5rem,8vw,7rem)/1 Georgia,serif; }
.marketing-note p { max-width: 18ch; margin: .25em auto 0; font-size: clamp(2.15rem,5.4vw,4.75rem); font-weight: 720; letter-spacing: -.055em; line-height: 1.07; }
.marketing-note .accessible-text { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.type-tail { visibility: hidden; }
.is-typing::after { content: ''; position: absolute; width: .042em; height: .88em; margin: .1em 0 0 .035em; background: currentColor; }
.work-marquee { margin: clamp(1.75rem,4vw,3rem) -1rem 0; }
.marquee-window { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: work-flow 72s linear infinite; }
.marquee-group {
  --tile-gap: clamp(.6rem,1.2vw,1rem);
  display: flex; gap: var(--tile-gap); padding: 0 var(--tile-gap) 0 0; margin: 0; list-style: none;
}
.marquee-group li { width: clamp(10.75rem,20vw,15.75rem); }
.marquee-control { display: block; margin: .55rem 0 0 auto; padding: .55rem .75rem; min-height: 44px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .875rem; cursor: pointer; }
.marquee-control:hover { text-decoration: underline; }
.work-marquee.paused .marquee-track { animation-play-state: paused; }
@keyframes work-flow { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee-group[aria-hidden],.marquee-control { display: none; }
  .marquee-window { overflow-x: auto; }
}
.recent-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.75rem clamp(.75rem,1.6vw,1.25rem); }
.recent-card { display: block; text-decoration: none; }
.recent-card:hover h3 { text-decoration: underline; }
.recent-card time,.recent-card > span { font-size: .875rem; color: var(--muted); }
.recent-card time { display: block; margin-top: .8rem; font-variant-numeric: tabular-nums; }
.recent-card h3 { margin: .3rem 0; line-height: 1.3; font-size: clamp(1.03rem,1.4vw,1.25rem); letter-spacing: -.035em; }
@media (max-width: 850px) { .recent-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 740px) {
  .home-intro { gap: .9rem; min-height: 60vh; min-height: 60svh; padding-block: 2rem; }
  .featured-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .feature-tile { display: grid; grid-template-columns: minmax(0, 30%) 1fr; align-items: center; gap: .85rem; }
  .cover { border-radius: .5rem; }
  .feature-tile h3 { font-size: 1.08rem; }
  .field-copy { margin-top: 0; }
}
.portfolio-hero { padding-top: clamp(1.35rem,3.4vw,2.8rem); }
.title-slot { position: relative; display: inline-block; width: 1.55em; height: .75em; vertical-align: .01em; border-radius: .17em; overflow: hidden; }
.title-slot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.title-slot img + img { opacity: 0; }
.home-intro p { display: block; margin: .85rem 0; font-size: 1rem; }
.feature-tile .cover { background: #eee; border: 1px solid #ddd; }
.feature-tile .talk-cover {
  position: relative;
  container-type: inline-size;
  background: linear-gradient(115deg, #edf7f3, #d6e8e3);
}
.talk-wordmark {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 7.5%;
  display: grid;
  justify-items: start;
  gap: clamp(3px, 1.6cqi, .7rem);
  transform: translateY(-50%);
  color: #152c39;
}
.talk-wordmark img { width: clamp(16px, 9cqi, 64px); height: auto; }
.talk-wordmark strong { font-size: clamp(.58rem, 6.1cqi, 3rem); line-height: 1.13; letter-spacing: -.055em; }
.talk-cover .talk-window, .talk-cover .talk-popup {
  position: absolute;
  display: block;
  height: auto;
  border-radius: clamp(3px, 1.5cqi, .8rem);
}
.talk-cover .talk-window {
  width: 38%;
  top: 11%;
  right: 13%;
  box-shadow: 0 10px 36px #193f4333;
}
.talk-cover .talk-popup {
  z-index: 1;
  width: 34%;
  max-width: 290px;
  bottom: 12%;
  right: 5%;
  box-shadow: 0 8px 22px #112c4352;
}
.feature-tile .cgss-brand-cover { display: grid; place-items: center; background: #fff; }
.cgss-brand-mark { position: relative; width: 78%; aspect-ratio: 370/100; overflow: hidden; }
/* Frame the blue-on-white wordmark at the top of the presentation slide. */
.cgss-brand-mark img { position: absolute; width: 261%; height: auto; max-width: none; left: -82%; top: -51%; }
.feature-tile .credential-cover { display: grid; place-content: center; justify-items: center; gap: clamp(.6rem, 1vw, 1rem); background: white; }
.credential-title { font-size: clamp(1.35rem, 2.45vw, 2.15rem); line-height: 1.2; letter-spacing: -.045em; }
.credential-cover img { width: clamp(4rem, 6.5vw, 5.5rem); height: auto; }
@media (max-width: 740px) {
  .feature-tile .credential-cover { place-content: center stretch; }
  .credential-title { display: none; }
  .credential-cover img { width: min(75px, 100%); }
}
.home-main + footer { margin-top: 0; }
.promotion-chat {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: var(--section-gap);
  padding-top: var(--section-gap);
  border-top: 1px solid var(--line);
}
.chat-intro h2 { margin: 0; font-size: clamp(2.25rem, 4vw, 3.75rem); letter-spacing: -.065em; line-height: 1.13; }
.chat-intro > p { max-width: 24em; margin: 1.25rem 0 1.5rem; color: var(--muted); line-height: 1.65; }
.chat-panel { min-width: 0; border: 1px solid #dedede; border-radius: 1.5rem; background: #fff; box-shadow: 0 10px 36px #00000009; }
.chat-heading { display: flex; align-items: baseline; justify-content: space-between; padding: 1rem 1.4rem; border-bottom: 1px solid #e7e7e7; }
.chat-heading b { font-size: 1.15rem; letter-spacing: -.05em; }
.chat-heading span,.chat-thread span { color: var(--muted); font-size: .8rem; }
.chat-thread { display: grid; gap: 1rem; padding: clamp(1rem, 2.3vw, 1.75rem); margin: 0; list-style: none; }
.chat-thread li { max-width: 89%; justify-self: start; }
.chat-thread span { display: block; margin: 0 .25rem .3rem; }
.chat-thread p { background: #f2f2f2; border-radius: 1.05rem 1.05rem 1.05rem .25rem; margin: 0; padding: .65rem .9rem; line-height: 1.55; }
.chat-thread .work-prompt { justify-self: end; }
.work-prompt p { background: #222; color: #fff; border-radius: 1.05rem 1.05rem .25rem 1.05rem; }
@media (max-width: 800px) {
  .promotion-chat { grid-template-columns: minmax(0,1fr); }
  .chat-intro { text-align: center; }
  .chat-intro > p { margin-inline: auto; }
  .chat-panel { width: min(100%, 34rem); justify-self: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .chat-thread.is-sequenced li { transition: opacity 460ms ease-in-out; }
  .chat-thread.is-sequenced li:not(.has-arrived) { opacity: 0; }
}
@media (max-width:355px) { .portfolio-hero .home-intro h1 { font-size: 1.8rem; } }
@media (max-width:740px) {
  .home-intro p { max-width: 22rem; margin: .7rem auto; }
}
