/* google case study styles */


  :root {
    --ink: #0C0C14;
    --cream: #F2F0EC;
    --light-bg: #F0EEF8;
    --indigo: #7B6EF6;
    --indigo-light: #9B91F8;
    --indigo-mid: #5549C0;
    --indigo-deep: #3d3480;
    --indigo-ink: #2a2060;
    --text-primary: #0C0C14;
    --text-secondary: #4a4760;
    --text-tertiary: #7a789a;
    --border: rgba(12,12,20,0.10);
    --border-strong: rgba(12,12,20,0.18);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    background: var(--cream);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }

  /* ── Nav ── */
  nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(242,240,236,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .wordmark {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    letter-spacing: -0.025em;
    text-decoration: none;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .wordmark-logo-wrap { display: inline-flex; align-items: center; flex-shrink: 0; }
  .wordmark-logo { width: 28px; height: 28px; object-fit: contain; display: block; transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
  .wordmark:hover .wordmark-logo { transform: rotate(-8deg) scale(1.1); }
  .wordmark .first { font-weight: 400; }
  .wordmark .last  { font-style: italic; font-weight: 300; color: var(--indigo); }
  nav a.back {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
  }
  nav a.back:hover { color: var(--indigo); }

  /* ── Layout ── */
  .page-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 2.5rem);
  }

  /* ── Breadcrumb ── */
  .hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
  }
  .hero-breadcrumb a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.15s;
  }
  .hero-breadcrumb a:hover { color: var(--indigo); }

  /* ── Hero ── */
  .hero {
    padding: 5rem 0 3.5rem;
    border-bottom: 1px solid var(--border);
  }
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--indigo);
    margin-bottom: 1.25rem;
  }
  .hero-eyebrow span {
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--indigo);
  }
  h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1.25rem;
  }
  h1 em { font-style: italic; font-weight: 300; }
  .hero-sub {
    font-size: 19px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.6;
    margin-bottom: 2rem;
  }
  .meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .meta-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-tertiary);
  }
  .meta-value {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
  }

  /* ── Hero video/image ── */
  .hero-image {
    margin-top: 3rem;
    width: 100%;
    position: relative;
    background: var(--cream);
  }
  .hero-image video,
  .hero-image img {
    width: 100%;
    height: auto;
    display: block;
  }
  /* ── Constraint map artifact ── */
  .constraint-map {
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    overflow: hidden;
    font-size: 13px;
  }
  .constraint-map-header {
    background: var(--light-bg);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }
  .constraint-map-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--indigo);
  }
  .constraint-map-grid {
    display: grid;
    grid-template-columns: 160px 1fr 1fr 1fr;
    background: var(--border);
    gap: 1px;
  }
  .cm-header {
    background: var(--cream);
    padding: 11px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
  }
  .cm-row-head { background: var(--light-bg); }
  .cm-row-label {
    background: var(--light-bg);
    padding: 11px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
  }
  .cm-cell {
    background: var(--cream);
    padding: 11px 14px;
    font-size: 12px;
    display: flex;
    align-items: center;
  }
  .cm-supported  { color: #1a7a4a; }
  .cm-workaround { color: #7a5a10; font-style: italic; }
  .cm-v2         { color: var(--indigo-mid); font-style: italic; }
  .cm-excluded   { color: var(--text-tertiary); font-style: italic; }
  .constraint-map-caption {
    padding: 10px 16px;
    font-size: 12px;
    color: var(--text-tertiary);
    border-top: 1px solid var(--border);
    background: var(--cream);
    margin: 0;
  }

  /* ── Alignment map artifact ── */
  .alignment-map {
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    overflow: hidden;
    font-size: 13px;
  }
  .alignment-map-header {
    background: var(--light-bg);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
  }
  .alignment-map-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--indigo);
  }
  .alignment-map-body {
    display: flex;
    align-items: stretch;
    background: var(--border);
    gap: 1px;
  }
  .am-col {
    flex: 1;
    background: var(--cream);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .am-unified { background: var(--light-bg); }
  .am-org-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
  }
  .am-org-unified { color: var(--indigo); }
  .am-term {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
  }
  .am-term:last-child { border-bottom: none; }
  .am-term em { font-style: normal; color: var(--text-primary); font-weight: 500; }
  .am-term-unified { color: var(--indigo-mid); font-weight: 500; }
  .am-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    background: var(--cream);
    gap: 6px;
    min-width: 56px;
  }
  .am-arrow-line {
    flex: 1;
    width: 1px;
    background: var(--border-strong);
  }
  .am-arrow-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
  }
  .alignment-map-caption {
    padding: 10px 16px;
    font-size: 12px;
    color: var(--text-tertiary);
    border-top: 1px solid var(--border);
    background: var(--cream);
    margin: 0;
  }
  @media (max-width: 600px) {
    .constraint-map-grid { grid-template-columns: 1fr; }
    .cm-header, .cm-row-head { display: none; }
    .alignment-map-body { flex-direction: column; }
    .am-arrow { flex-direction: row; min-width: unset; padding: 8px 16px; }
    .am-arrow-label { writing-mode: horizontal-tb; }
  }

  .placeholder-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--indigo-light);
  }
  .placeholder-desc {
    font-size: 13px;
    color: var(--text-tertiary);
    text-align: center;
    max-width: 320px;
  }

  /* ── Body sections ── */
  .section {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border);
  }
  .section:last-child { border-bottom: none; }
  .main-col .section:first-child { padding-top: 0; }

  .section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--indigo);
    margin-bottom: 1rem;
  }

  h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 1.25rem;
  }

  h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin-bottom: 0.5rem;
  }

  p { margin-bottom: 1.1rem; color: var(--text-secondary); }
  p:last-child { margin-bottom: 0; }
  strong { font-weight: 500; color: var(--text-primary); }

  /* ── Pull quote ── */
  .pull-quote {
    border-left: 3px solid var(--indigo);
    padding: 1rem 0 1rem 1.5rem;
    margin: 2rem 0;
  }
  .pull-quote p {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    color: var(--ink);
    margin: 0;
  }

  /* ── Card grid ── */
  .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
  }
  .card {
    background: var(--cream);
    padding: 1.5rem;
  }
  .card-num {
    font-family: 'Fraunces', serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--indigo-light);
    line-height: 1;
    margin-bottom: 0.75rem;
  }
  .card h3 { margin-bottom: 0.4rem; }
  .card p { font-size: 14px; margin: 0; }

  /* ── Two-col ── */
  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin: 2rem 0;
  }
  @media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }

  /* ── Image placeholder (inline) ── */
  .img-placeholder {
    width: 100%;
    background: var(--light-bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 2rem 1rem;
  }
  .img-placeholder.tall   { aspect-ratio: 4/3; }
  .img-placeholder.medium { aspect-ratio: 16/9; }
  .img-placeholder.short  { aspect-ratio: 21/9; }

  /* ── Role callout ── */
  .role-block {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
  }
  .role-block h3 { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--indigo); margin-bottom: 1rem; }
  .role-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }
  .role-item { display: flex; flex-direction: column; gap: 3px; }
  .role-item .ri-label { font-size: 12px; color: var(--text-tertiary); }
  .role-item .ri-value { font-size: 14px; font-weight: 500; color: var(--text-primary); }

  /* ── Principles ── */
  .principle-list { list-style: none; padding: 0; margin: 1.5rem 0; }
  .principle-list li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
  }
  .principle-list li:last-child { border-bottom: none; }
  .principle-num {
    font-family: 'Fraunces', serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--indigo);
    padding-top: 2px;
  }
  .principle-content h3 { margin-bottom: 0.3rem; font-size: 15px; }
  .principle-content p  { font-size: 14px; margin: 0; }

  /* ── Caption ── */
  .caption {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 0.6rem;
    padding-left: 2px;
  }

  /* ── Divider ── */
  .section-divider {
    width: 32px;
    height: 2px;
    background: var(--indigo-light);
    margin: 1.5rem 0;
  }

  /* ── Tag flow diagram ── */
  .tag-diagram {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    margin: 2rem 0;
  }
  .tag-panel {
    padding: 24px 22px;
  }
  .tag-panel--before { background: #fff; border-right: 1px solid var(--border); }
  .tag-panel--after  { background: var(--indigo-ink); }

  .tag-panel-eyebrow {
    font-size: 10px; font-weight: 500;
    letter-spacing: 0.10em; text-transform: uppercase;
    margin-bottom: 4px;
  }
  .tag-panel--before .tag-panel-eyebrow { color: var(--text-tertiary); }
  .tag-panel--after  .tag-panel-eyebrow { color: rgba(155,145,248,0.7); }

  .tag-panel-title {
    font-family: 'Fraunces', serif;
    font-size: 17px; font-weight: 400; line-height: 1.2;
    margin-bottom: 18px;
  }
  .tag-panel--before .tag-panel-title { color: var(--ink); }
  .tag-panel--after  .tag-panel-title { color: #fff; }

  .tag-flow { display: flex; flex-direction: column; gap: 5px; }
  .tag-row  { display: flex; align-items: center; gap: 8px; }
  .tag-node {
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 12px; font-weight: 500;
    white-space: nowrap;
  }
  .tag-panel--before .tag-node.site   { background: rgba(12,12,20,0.06); color: var(--text-secondary); }
  .tag-panel--before .tag-node.google { background: var(--light-bg); color: var(--indigo-deep); }
  .tag-panel--before .tag-node.code   { background: rgba(192,57,43,0.07); color: #a0392b; border: 1px solid rgba(192,57,43,0.13); font-family: monospace; font-size: 11px; }

  .tag-panel--after .tag-node.site    { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }
  .tag-panel--after .tag-node.onetag  { background: rgba(123,110,246,0.25); color: #c8c3ff; border: 1px solid rgba(123,110,246,0.35); }
  .tag-panel--after .tag-node.google  { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); }

  .tag-arrow {
    font-size: 11px;
    padding-left: 2px;
  }
  .tag-panel--before .tag-arrow { color: rgba(12,12,20,0.25); }
  .tag-panel--after  .tag-arrow { color: rgba(255,255,255,0.2); }

  .tag-indent { padding-left: 20px; }

  .tag-result {
    margin-top: 16px; padding: 8px 12px;
    border-radius: 8px; font-size: 12px; font-weight: 500;
    display: flex; align-items: center; gap: 7px;
  }
  .tag-result-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
  .tag-result--bad {
    background: rgba(192,57,43,0.06); color: #a0392b;
    border: 1px solid rgba(192,57,43,0.13);
  }
  .tag-result--bad .tag-result-dot { background: #c0392b; }
  .tag-result--good {
    background: rgba(0,168,90,0.14); color: #00d46a;
    border: 1px solid rgba(0,168,90,0.25);
  }
  .tag-result--good .tag-result-dot { background: #00d46a; }

  /* ── Stat callout ── */
  .stat-callout {
    background: var(--light-bg);
    border: 1px solid rgba(123,110,246,0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    display: flex;
    align-items: baseline;
    gap: 1.25rem;
    flex-wrap: wrap;
  }
  .stat-callout-num {
    font-family: 'Fraunces', serif;
    font-size: 2.8rem;
    font-weight: 300;
    color: var(--indigo);
    line-height: 1;
    flex-shrink: 0;
  }
  .stat-callout-body {}
  .stat-callout-label { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
  .stat-callout-desc  { font-size: 13.5px; color: var(--text-secondary); }

  /* ── Page body: main + sidebar grid ── */
  .page-body {
    max-width: 1060px;
    margin: 0 auto;
    padding: 56px clamp(1.5rem, 5vw, 2.5rem) 80px;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 56px;
    align-items: start;
  }
  .main-col { min-width: 0; }
  .side-col {
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .side-col::-webkit-scrollbar { display: none; }

  /* ── Sidebar cards ── */
  .side-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 14px;
  }
  .side-card-label {
    font-size: 10.5px; font-weight: 500;
    letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 14px;
  }
  .side-item {
    display: flex; flex-direction: column; gap: 2px;
    margin-bottom: 12px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  .side-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
  .side-item-label {
    font-size: 11px; font-weight: 500;
    letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--text-tertiary);
  }
  .side-item-val { font-size: 14px; color: var(--text-primary); font-weight: 400; line-height: 1.4; }
  .side-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
  .side-tag {
    display: inline-flex;
    padding: 4px 10px; border-radius: 100px;
    font-size: 11px; font-weight: 500;
    background: var(--light-bg); color: var(--text-secondary);
    border: 1px solid var(--border);
  }
  .side-tag.accent {
    background: rgba(123,110,246,0.08);
    color: var(--indigo-deep);
    border-color: rgba(123,110,246,0.2);
  }
  .toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
  .toc-list a {
    display: block; padding: 7px 10px; border-radius: 8px;
    font-size: 13.5px; color: var(--text-secondary);
    text-decoration: none; transition: background 0.15s, color 0.15s;
  }
  .toc-list a:hover { background: var(--light-bg); color: var(--indigo-mid); }

  /* ── Footer ── */
  footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
  }
  footer p { font-size: 13px; color: var(--text-tertiary); margin: 0; }
  .next-link {
    font-size: 14px; font-weight: 500;
    color: var(--indigo); text-decoration: none;
    display: flex; align-items: center; gap: 6px;
  }
  .next-link:hover { color: var(--indigo-mid); }

  /* ── Responsive ── */
  @media (max-width: 860px) {
    .page-body { grid-template-columns: 1fr; }
    .side-col  { position: static; }
    .tag-diagram { grid-template-columns: 1fr; }
    .tag-panel--before { border-right: none; border-bottom: 1px solid var(--border); }
  }

  /* ── Customer quote grid ── */
  .quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 1.25rem 0 1.75rem; }
  .quote-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: 12px; padding: 1.1rem 1.15rem 1rem;
  }
  .quote-mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem; line-height: 0.9; color: var(--indigo);
    display: block; margin-bottom: 0.55rem; opacity: 0.75;
  }
  .quote-text {
    font-size: 13px; line-height: 1.62; color: var(--text-primary);
    margin: 0;
  }
  .quote-text strong { font-weight: 600; }
  .quote-attr {
    display: block; font-size: 11px; color: var(--text-tertiary);
    margin-top: 0.65rem; font-style: italic;
  }
  .quote-grid-label {
    font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--text-tertiary);
    margin-bottom: 0.6rem;
  }
  @media (max-width: 580px) { .quote-grid { grid-template-columns: 1fr; } }

  /* ── Timeline ── */
  .tl-wrap { margin: 2.5rem 0 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tl { display: flex; min-width: 580px; padding: 0.25rem 0 0.25rem; }
  .tl-stop { flex: 1; display: flex; flex-direction: column; align-items: center; }
  .tl-node { display: flex; align-items: center; width: 100%; height: 22px; }
  .tl-line { flex: 1; height: 1px; background: var(--border-strong); }
  .tl-stop:first-child .tl-line:first-child,
  .tl-stop:last-child  .tl-line:last-child  { background: transparent; }
  .tl-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
    border: 1.5px solid var(--border-strong); background: var(--cream);
  }
  .tl-dim .tl-dot  { opacity: 0.35; }
  .tl-active .tl-dot {
    width: 14px; height: 14px;
    background: var(--indigo); border-color: var(--indigo);
    box-shadow: 0 0 0 4px rgba(123,110,246,0.15);
  }
  .tl-top {
    padding-bottom: 8px; text-align: center;
    min-height: 26px; display: flex; align-items: flex-end; justify-content: center;
  }
  .tl-year { font-size: 10px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-tertiary); }
  .tl-active .tl-year { color: var(--indigo); }
  .tl-dim .tl-year    { opacity: 0.45; }
  .tl-bottom { padding-top: 10px; text-align: center; padding-left: 5px; padding-right: 5px; }
  .tl-title { display: block; font-size: 12px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; line-height: 1.35; }
  .tl-dim  .tl-title  { color: var(--text-tertiary); font-weight: 400; }
  .tl-active .tl-title { color: var(--indigo); font-weight: 600; }
  .tl-desc { display: block; font-size: 11px; line-height: 1.5; color: var(--text-tertiary); }
  .tl-badge {
    display: inline-block; font-size: 9.5px; font-weight: 500; letter-spacing: 0.04em;
    background: var(--light-bg); color: var(--indigo);
    border-radius: 20px; padding: 2px 9px; margin-top: 6px;
  }
