@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --metagama-accent: #4b8dff;
  --metagama-accent-soft: #8bb6ff;
  --metagama-ink: #071019;
  --metagama-panel: #0b1622;
  --metagama-panel-raised: #101f2e;
  --metagama-text: #f4f7fb;
  --metagama-muted: #aeb9c8;
  --metagama-line: rgba(255, 255, 255, 0.13);
  --metagama-width: 1320px;
  --metagama-radius: 0;
  color-scheme: dark;
  font-family: "Geist", "Segoe UI", sans-serif;
  color: var(--metagama-text);
  background: var(--metagama-ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--metagama-ink); }
body { min-width: 320px; margin: 0; overflow-x: hidden; color: var(--metagama-text); background: var(--metagama-ink); }
body.admin-bar .metagama-header { top: 32px; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { display: block; width: 100%; height: auto; }
figure, .wp-block-group, .wp-block-image, .wp-block-buttons { margin-block: 0; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { margin-block: 0; font-weight: 540; letter-spacing: -0.05em; line-height: 0.98; }
p { margin-block: 0; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  color: var(--metagama-ink);
  background: var(--metagama-text);
}

.metagama-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  width: 100%;
}
.metagama-header__inner {
  width: min(1440px, calc(100% - 48px));
  min-height: 88px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--metagama-line);
}
.metagama-brand,
.custom-logo-link {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 730;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.custom-logo { width: auto; max-width: 210px; max-height: 44px; }
.metagama-brand__mark { position: relative; display: block; width: 25px; height: 34px; transform: rotate(14deg); }
.metagama-brand__mark i { position: absolute; display: block; width: 10px; height: 28px; border-radius: 10px 0; background: var(--metagama-accent); }
.metagama-brand__mark i:first-child { left: 3px; top: 0; }
.metagama-brand__mark i:last-child { right: 2px; bottom: 0; background: var(--metagama-accent-soft); }
.metagama-menu { display: flex; align-items: center; gap: clamp(20px, 2.3vw, 42px); padding: 0; margin: 0; list-style: none; }
.metagama-nav a { position: relative; display: block; padding-block: 10px; color: #c7d1de; font-size: 13px; transition: color 220ms ease; }
.metagama-nav a::after { content: ""; position: absolute; right: 100%; bottom: 1px; left: 0; height: 1px; background: var(--metagama-accent-soft); transition: right 220ms ease; }
.metagama-nav a:hover,
.metagama-nav a:focus-visible,
.metagama-nav .current-menu-item > a { color: var(--metagama-text); }
.metagama-nav a:hover::after,
.metagama-nav a:focus-visible::after,
.metagama-nav .current-menu-item > a::after { right: 0; }
.metagama-mobile-nav { display: none; justify-self: end; }
.metagama-mobile-nav summary { list-style: none; cursor: pointer; }
.metagama-mobile-nav summary::-webkit-details-marker { display: none; }

.metagama-main { min-height: 100dvh; overflow: hidden; background: var(--metagama-ink); transition: opacity 180ms ease, transform 180ms ease; }
.metagama-main.is-leaving { opacity: 0; transform: translateY(8px); }
.metagama-main.is-entering { animation: metagama-page-in 420ms cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes metagama-page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.metagama-page-progress { position: fixed; z-index: 80; top: 0; left: 0; width: 100%; height: 2px; pointer-events: none; background: var(--metagama-accent-soft); transform: scaleX(0); transform-origin: left; opacity: 0; }
html.is-navigating .metagama-page-progress { opacity: 1; animation: metagama-progress 1.2s ease-out both; }
@keyframes metagama-progress { 0% { transform: scaleX(0); } 70% { transform: scaleX(0.78); } 100% { transform: scaleX(0.92); } }

.metagama-hero {
  position: relative;
  min-height: 100dvh;
  padding: 150px max(24px, calc((100vw - 1440px) / 2)) 100px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 78% 35%, rgba(42,104,210,.22), transparent 34%), var(--metagama-ink);
}
.metagama-hero::before,
.metagama-hero::after { display: none; }
.metagama-ambient { position: absolute; left: -12vw; top: 18%; width: 42vw; height: 42vw; border-radius: 50%; pointer-events: none; background: rgba(40,104,220,.13); filter: blur(100px); }
.metagama-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .7fr); align-items: center; gap: 6vw; width: 100%; }
.metagama-hero > .metagama-hero__inner { width: 100%; max-width: none !important; margin-inline: 0 !important; }
.metagama-hero__copy { position: relative; z-index: 2; }
.metagama-eyebrow { margin: 0 0 22px; color: var(--metagama-accent-soft); font-size: 12px; font-weight: 730; letter-spacing: 0.15em; text-transform: uppercase; }
.metagama-hero h1 { max-width: 900px; font-size: clamp(3.7rem, 7vw, 7.9rem); }
.metagama-page-hero h1 { max-width: 1120px; font-size: clamp(3.3rem, 6.5vw, 7.2rem); }
.metagama-hero__intro { max-width: 610px; margin-top: 26px; color: var(--metagama-muted); font-size: clamp(1rem, 1.45vw, 1.25rem); line-height: 1.55; }
.metagama-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.wp-block-button__link,
.metagama-button { min-height: 52px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--metagama-radius); font-weight: 690; line-height: 1; white-space: nowrap; transition: transform 220ms ease, background 220ms ease; }
.wp-block-button__link:active,
.metagama-button:active { transform: scale(0.98); }
.is-style-metagama-primary .wp-block-button__link,
.metagama-button--primary { color: #f7f9fc; background: var(--metagama-accent); box-shadow: 0 16px 40px rgba(60,126,255,.25); }
.is-style-metagama-primary .wp-block-button__link:hover,
.is-style-metagama-primary .wp-block-button__link:focus-visible,
.metagama-button--primary:hover,
.metagama-button--primary:focus-visible { background: #5278aa; transform: translateY(-2px); }
.is-style-metagama-link .wp-block-button__link { padding-inline: 0; color: var(--metagama-text); background: transparent; }
.is-style-metagama-link .wp-block-button__link::after { content: "↘"; margin-left: 10px; color: var(--metagama-accent-soft); }
.metagama-home-hero .metagama-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(340px, .7fr); align-items: center; gap: 6vw; }
.metagama-home-hero .metagama-hero__copy { align-self: center; padding-right: 0; }
.metagama-home-hero h1 { max-width: none; font-size: clamp(3.7rem, 5.5vw, 6rem); text-wrap: balance; }
.metagama-hero__photo { position: relative; height: min(72vh, 780px); min-height: 0; margin: 0; overflow: hidden; transform: rotate(2.5deg); clip-path: polygon(8% 0,100% 0,100% 91%,0 100%,0 9%); background: #0a151f; }
.metagama-hero__photo::before { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(61, 116, 190, .46), rgba(13, 31, 52, .2)); mix-blend-mode: color; }
.metagama-hero__photo::after { content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(7, 16, 25, 0.22), transparent 42%), linear-gradient(0deg, rgba(7, 16, 25, 0.25), transparent 34%); }
.metagama-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: grayscale(.42) saturate(.78) contrast(1.18) brightness(.68); }
.metagama-image-card { position: relative; overflow: hidden; }
.metagama-image-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 42%, rgba(1,8,14,.7)); }
.metagama-image-card img { transition: transform .7s ease-out; }
.metagama-image-card:hover img { transform: scale(1.05) !important; }
.metagama-image-card figcaption { position: absolute; z-index: 2; right: 30px; bottom: 28px; left: 30px; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.metagama-image-card figcaption b { color: var(--metagama-accent-soft); }
.metagama-hero__side { align-self: end; max-width: 420px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.metagama-hero__side-label { margin-bottom: 24px; color: var(--metagama-accent-soft); font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.metagama-hero__side ol { padding: 0; margin: 0; list-style: none; }
.metagama-hero__side li { min-height: 62px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: center; border-bottom: 1px solid var(--metagama-line); }
.metagama-hero__side li span { color: #70839a; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.metagama-hero__side li strong { color: #e5ebf2; font-size: 15px; font-weight: 540; line-height: 1.35; }
.metagama-hero__side-foot { max-width: 36ch; margin-top: 22px; color: #8291a2; font-size: 12px; line-height: 1.55; }

.metagama-artifact { display: flex; flex-direction: column; min-width: 0; border: 1px solid rgba(255, 255, 255, 0.16); color: #e9eef5; background: #0a151f; box-shadow: 18px 18px 0 #050c12; font-variant-numeric: tabular-nums; }
.metagama-artifact__bar { min-height: 48px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--metagama-line); color: #9eacbc; font-size: 10px; font-weight: 720; letter-spacing: 0.12em; text-transform: uppercase; }
.metagama-artifact__body { flex: 1; padding: clamp(22px, 3vw, 38px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.metagama-artifact__summary { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.metagama-artifact__summary span { color: #98a6b6; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.metagama-artifact__summary strong { font-size: clamp(1rem, 1.35vw, 1.3rem); font-weight: 560; text-align: right; }
.metagama-artifact__rows { border-top: 1px solid var(--metagama-line); }
.metagama-artifact__row { min-height: 68px; padding: 12px 0; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; border-bottom: 1px solid var(--metagama-line); }
.metagama-artifact code,
.metagama-process code { color: var(--metagama-accent-soft); font: 650 11px/1 "Geist", sans-serif; letter-spacing: 0.08em; }
.metagama-artifact__row span { color: #d5dde7; font-size: 13px; line-height: 1.35; }
.metagama-artifact b,
.metagama-artifact i { padding: 6px 8px; border: 1px solid rgba(255, 255, 255, 0.14); color: #aab6c4; font-size: 9px; font-style: normal; font-weight: 720; letter-spacing: 0.08em; text-transform: uppercase; }
.metagama-artifact .is-pass { color: #bed1e8; border-color: rgba(157, 180, 210, 0.45); }
.metagama-artifact .is-retest { color: #e2e6eb; }
.metagama-artifact .is-ready { color: #aab6c4; border-style: dashed; }
.metagama-artifact__foot { color: #7f8c9b; font-size: 10px; letter-spacing: 0.08em; line-height: 1.5; text-transform: uppercase; }
.metagama-matrix { display: grid; grid-template-columns: minmax(74px, 1fr) repeat(2, minmax(72px, 0.8fr)); border-top: 1px solid var(--metagama-line); border-left: 1px solid var(--metagama-line); }
.metagama-matrix > * { min-height: 48px; padding: 10px; display: grid; place-items: center; border-right: 1px solid var(--metagama-line); border-bottom: 1px solid var(--metagama-line); font-size: 10px; text-align: center; }
.metagama-matrix > span { color: #aab6c4; justify-items: start; }
.metagama-matrix > b { border-top: 0; border-left: 0; color: #dce3eb; }
.metagama-checklist,
.metagama-process { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--metagama-line); }
.metagama-checklist li,
.metagama-process li { min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; border-bottom: 1px solid var(--metagama-line); color: #d6dee8; font-size: 13px; }
.metagama-process li { grid-template-columns: 44px minmax(0, 1fr); }
.metagama-brief-sheet { margin: 0; border-top: 1px solid var(--metagama-line); }
.metagama-brief-sheet div { padding: 15px 0; display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; border-bottom: 1px solid var(--metagama-line); }
.metagama-brief-sheet dt { color: var(--metagama-accent-soft); font-size: 11px; font-weight: 680; letter-spacing: 0.06em; text-transform: uppercase; }
.metagama-brief-sheet dd { margin: 0; color: #d3dbe5; font-size: 13px; line-height: 1.4; }

.metagama-section { padding: clamp(110px, 13vw, 200px) max(24px, calc((100vw - var(--metagama-width)) / 2)); background: var(--metagama-ink); }
.metagama-section > * { width: 100%; max-width: var(--metagama-width) !important; margin-inline: 0 !important; }
.metagama-section-title { max-width: 940px; margin-bottom: 68px; font-size: clamp(2.8rem, 5.5vw, 5.8rem); }
.metagama-section > .metagama-section-title { max-width: 940px !important; }
.metagama-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; margin-bottom: 68px; }
.metagama-section-heading .metagama-section-title { margin-bottom: 0; }
.metagama-section-heading--split { grid-template-columns: .65fr 1.35fr; align-items: start; gap: 7vw; }
.metagama-section-heading--split .metagama-section-title { max-width: 930px !important; }
.metagama-section-intro { max-width: 680px; margin-top: 24px; color: var(--metagama-muted); font-size: clamp(1rem, 1.35vw, 1.18rem); line-height: 1.55; }

.metagama-home-services > .metagama-home-services__header { max-width: 940px !important; margin-bottom: 68px !important; }
.metagama-home-services__header .metagama-eyebrow { margin-bottom: 22px; }
.metagama-home-services__header .metagama-section-title { max-width: 900px !important; margin-bottom: 0; }
.metagama-home-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(300px, 1fr)); gap: 1px; background: var(--metagama-line); }
.metagama-supply-card { position: relative; min-width: 0; min-height: 300px; grid-column: span 5; padding: clamp(32px, 3.5vw, 50px); display: flex; flex-direction: column; justify-content: flex-end; background: var(--metagama-panel); }
.metagama-supply-card h3 { max-width: 560px; margin: 0 0 18px; font-size: clamp(2rem, 3.2vw, 3.5rem); letter-spacing: -.04em; line-height: .98; }
.metagama-supply-card p { max-width: 540px; margin: 0; color: var(--metagama-muted); font-size: clamp(.98rem, 1.2vw, 1.12rem); line-height: 1.55; }
.metagama-supply-card--feature { grid-column: span 7; grid-row: span 2; min-height: 601px; }
.metagama-supply-card--feature > img { position: absolute; inset: 0; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.22) brightness(.62) sepia(.13) hue-rotate(175deg); }
.metagama-supply-card--feature > div { position: relative; z-index: 2; }
.metagama-supply-card--feature h3 { max-width: 680px; font-size: clamp(2.8rem, 4.8vw, 5.6rem); }
.metagama-supply-card--feature p { max-width: 590px; color: #dbe5f0; }
.metagama-supply-card--blue { background: #285fcc; }
.metagama-supply-card--blue p { color: #dce9ff; }
.metagama-home-services__cta { min-height: 240px; padding: clamp(34px, 4vw, 58px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; background: #dbe5f2; color: #10283f; }
.metagama-home-services__cta p { max-width: 820px; margin: 0; font-size: clamp(2rem, 3.4vw, 4rem); letter-spacing: -.035em; line-height: 1.08; }
.metagama-home-services__cta a { color: #1654b4; font-size: 1rem; font-weight: 720; white-space: nowrap; }
.metagama-home-services__cta a span { margin-left: 4px; }
.metagama-section-link { padding-bottom: 8px; color: var(--metagama-accent-soft); font-size: 14px; font-weight: 700; white-space: nowrap; }
.metagama-section-link a { border-bottom: 1px solid rgba(157, 180, 210, 0.45); }
.metagama-bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, minmax(250px, 1fr)); gap: 1px; background: var(--metagama-line); }
.metagama-bento > .wp-block-group { position: relative; min-height: 250px; padding: 34px; background: var(--metagama-panel); }
.metagama-bento h3 { max-width: 520px; margin-bottom: 14px; font-size: clamp(1.7rem, 3vw, 3rem); }
.metagama-bento p { max-width: 520px; color: var(--metagama-muted); line-height: 1.55; }
.metagama-bento .metagama-detail { margin-top: 22px; color: var(--metagama-accent-soft); font-size: 11px; font-weight: 700; letter-spacing: 0.07em; line-height: 1.5; text-transform: uppercase; }
.metagama-service-hierarchy { grid-template-rows: repeat(2, minmax(220px, 1fr)); }
.metagama-service-hierarchy > .metagama-bento__core { grid-column: span 7; grid-row: span 2; min-height: 441px; padding: clamp(38px, 4vw, 62px); display: flex; flex-direction: column; background: #13263a; }
.metagama-service-hierarchy > .metagama-bento__secondary { grid-column: span 5; min-height: 220px; display: flex; flex-direction: column; }
.metagama-bento__core .metagama-card-copy { margin-block: auto; }
.metagama-bento__core h3 { max-width: 700px; font-size: clamp(3rem, 5.2vw, 5.8rem); }
.metagama-bento__core .metagama-card-copy > p { max-width: 660px; margin-top: 24px; font-size: clamp(1rem, 1.3vw, 1.2rem); }
.metagama-bento__secondary .metagama-card-copy { margin-block: auto; }
.metagama-bento__secondary h3 { max-width: 560px; font-size: clamp(2rem, 3.6vw, 4rem); }

.metagama-pinned-layout { position: relative; display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 9vw; align-items: start; }
.metagama-pin-title h1,
.metagama-pin-title h2 { font-size: clamp(3rem, 5.8vw, 6rem); }
.metagama-stack-list { display: grid; gap: 1px; background: var(--metagama-line); }
.metagama-stack-list > .wp-block-group { min-height: 310px; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: #09141f; }
.metagama-stack-list h3 { font-size: clamp(2rem, 3.8vw, 3.8rem); }
.metagama-stack-list p { max-width: 520px; margin-top: 72px; color: var(--metagama-muted); font-size: 18px; line-height: 1.55; }
.metagama-manifesto { min-height: 78dvh; padding: 96px 24px; display: grid; place-items: center; background: #0a151f; }
.metagama-manifesto > * { width: 100%; max-width: 1180px !important; margin-inline: auto !important; }
.metagama-word-reveal { max-width: 1180px; font-size: clamp(2.7rem, 6.2vw, 6.3rem); font-weight: 520; letter-spacing: -0.055em; line-height: 1.06; text-align: center; }
.metagama-reveal-word { display: inline-block; }

.metagama-accordion { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; height: auto; overflow: visible; background: var(--metagama-line); }
.metagama-accordion__panel { min-width: 0; padding: 34px; display: flex; flex-direction: column; background: #0a151f; }
.metagama-accordion h3 { max-width: 410px; min-height: 3.1em; margin-top: 42px; font-size: clamp(1.85rem, 2.7vw, 3.25rem); }
.metagama-accordion p { max-width: 500px; margin-top: 22px; color: #b8c2cf; line-height: 1.55; }
.metagama-accordion .metagama-service-index { margin-top: 0; color: var(--metagama-accent-soft); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.metagama-service-scope { margin-top: 30px; display: grid; }
.metagama-service-scope p { max-width: none; min-height: 52px; margin-top: 0; padding: 13px 0; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: center; border-bottom: 1px solid var(--metagama-line); }
.metagama-service-scope span { color: var(--metagama-accent-soft); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }
.metagama-service-scope strong { color: #d9e3ef; font-size: 12px; font-weight: 540; line-height: 1.4; }
.metagama-service-artifact { min-height: 370px; margin-top: 40px; box-shadow: none; background: #071019; }
.metagama-service-artifact .metagama-artifact__bar { min-height: 40px; padding-inline: 12px; }
.metagama-service-artifact .metagama-artifact__bar span:last-child { display: none; }
.metagama-service-artifact .metagama-artifact__body { padding: 18px; gap: 18px; }
.metagama-service-artifact .metagama-artifact__summary { display: grid; }
.metagama-service-artifact .metagama-artifact__summary strong { font-size: 1rem; text-align: left; }
.metagama-service-artifact .metagama-artifact__row { min-height: 54px; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
.metagama-service-artifact .metagama-artifact__row b { grid-column: 2; justify-self: start; }
.metagama-accordion .metagama-detail { color: var(--metagama-accent-soft); font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.metagama-service-artifacts { max-width: none !important; margin-top: auto; padding-top: 28px; border-top: 1px solid var(--metagama-line); }
.metagama-accordion .metagama-service-artifacts__label { margin-top: 0; color: var(--metagama-accent-soft); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.metagama-service-artifacts__list { margin: 18px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.metagama-service-artifacts__list li { position: relative; padding-left: 18px; color: #d9e3ef; font-size: 12px; line-height: 1.45; }
.metagama-service-artifacts__list li::before { content: ""; position: absolute; top: 0.68em; left: 0; width: 7px; height: 1px; background: var(--metagama-accent-soft); }

.metagama-supply-accordion { display: flex; height: 650px; overflow: hidden; background: #13202c; }
.metagama-supply-panel { flex: 1; min-width: 0; padding: 34px; color: #fff; cursor: pointer; transition: flex .65s cubic-bezier(.22,1,.36,1); }
.metagama-supply-panel:hover { flex: 2.2; }
.metagama-supply-panel > img { position: absolute; inset: 0; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.22) brightness(.55) sepia(.13) hue-rotate(175deg); }
.metagama-supply-panel > div { position: relative; z-index: 2; }
.metagama-supply-panel > div { position: absolute; right: 34px; bottom: 34px; left: 34px; }
.metagama-supply-panel h3 { max-width: 430px; margin: 0; font-size: clamp(2rem, 3.3vw, 4rem); letter-spacing: -.05em; line-height: .98; }
.metagama-supply-panel p { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .55s ease, opacity .55s ease, margin .55s ease; }
.metagama-supply-panel p { max-width: 500px; margin: 0; color: #e1e8f2; line-height: 1.5; }
.metagama-supply-panel:hover p { max-height: 130px; margin-top: 20px; opacity: 1; }

.metagama-testing-difference { background: #09131d; }
.metagama-difference-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--metagama-line); }
.metagama-difference-grid > .wp-block-group { min-height: 330px; padding: 42px; display: flex; flex-direction: column; justify-content: space-between; background: #0a151f; }
.metagama-difference-grid > .wp-block-group:last-child { background: #13263a; }
.metagama-difference-grid h3 { margin-top: auto; font-size: clamp(2rem, 3.7vw, 4rem); }
.metagama-difference-grid > .wp-block-group > p:last-child { max-width: 560px; margin-top: 28px; color: var(--metagama-muted); font-size: 17px; line-height: 1.55; }
.metagama-difference-grid .metagama-service-index { margin: 0 0 72px; color: var(--metagama-accent-soft); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.metagama-difference-note { max-width: 820px !important; margin-top: 38px !important; padding-left: 22px; border-left: 1px solid var(--metagama-accent-soft); color: #c6d2df; line-height: 1.6; }

.metagama-engagement-section { background: #071019; }
.metagama-engagement-flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--metagama-line); }
.metagama-engagement-flow > .wp-block-group { min-height: 300px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; background: #0a151f; }
.metagama-engagement-flow > .wp-block-group:nth-child(3) { background: #13263a; }
.metagama-engagement-flow > .wp-block-group > p:first-child { margin: 0; display: grid; gap: 42px; }
.metagama-engagement-flow span { color: var(--metagama-accent-soft); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.metagama-engagement-flow strong { color: #f3f6fa; font-size: clamp(1.25rem, 1.8vw, 1.8rem); font-weight: 540; letter-spacing: -0.03em; line-height: 1.08; }
.metagama-engagement-flow > .wp-block-group > p:last-child { margin: 42px 0 0; color: var(--metagama-muted); font-size: 13px; line-height: 1.55; }

.metagama-service-faq { background: #0a151f; }
.metagama-faq-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--metagama-line); }
.metagama-faq-grid > .wp-block-group { min-height: 245px; padding: 40px 44px 40px 0; border-bottom: 1px solid var(--metagama-line); }
.metagama-faq-grid > .wp-block-group:nth-child(even) { padding-right: 0; padding-left: 44px; border-left: 1px solid var(--metagama-line); }
.metagama-faq-grid h3 { max-width: 560px; font-size: clamp(1.35rem, 2.1vw, 2rem); line-height: 1.15; }
.metagama-faq-grid p { max-width: 620px; margin-top: 38px; color: var(--metagama-muted); line-height: 1.6; }

.metagama-product-grid { border-top: 1px solid var(--metagama-line); }
.metagama-product-card { min-height: 190px; padding: 38px 0; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 32px; align-items: start; border-bottom: 1px solid var(--metagama-line); }
.metagama-product-card > span { color: var(--metagama-accent-soft); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.metagama-product-card > div { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.metagama-product-card h3 { max-width: 560px; font-size: clamp(1.55rem, 2.5vw, 2.65rem); }
.metagama-product-card p { max-width: 680px; color: var(--metagama-muted); line-height: 1.55; }
.metagama-principles { color: #0a1520; background: #e5ebf2; }
.metagama-principles .metagama-eyebrow { color: #2b5fad; }
.metagama-principle-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--metagama-line); }
.metagama-principle-grid > .wp-block-group { min-height: 340px; grid-column: span 4; padding: 40px; background: #e5ebf2; }
.metagama-principle-grid h3 { font-size: clamp(1.8rem, 3vw, 3.2rem); }
.metagama-principle-grid p { margin-top: 120px; color: #4e5c6c; line-height: 1.55; }

.metagama-contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--metagama-line); }
.metagama-contact-card { min-height: 260px; grid-column: span 4; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; background: var(--metagama-panel); transition: transform 220ms ease, background 220ms ease; }
.metagama-contact-card--telephone { grid-column: span 3; }
.metagama-contact-card--address { grid-column: span 5; }
a.metagama-contact-card:hover,
a.metagama-contact-card:focus-visible { transform: translateY(-6px); background: #14283c; }
.metagama-contact-card > span { color: var(--metagama-accent-soft); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.metagama-contact-card strong { font-size: clamp(1.45rem, 2.1vw, 2.35rem); font-weight: 540; letter-spacing: -0.04em; overflow-wrap: break-word; word-break: normal; }
.metagama-contact-card--accent { background: #2457a8; }
.metagama-contact-card--accent > span { color: #edf4ff; }
.metagama-contact-card--address strong {
  max-width: 38ch;
  font-size: clamp(1.15rem, 1.45vw, 1.65rem);
  line-height: 1.38;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: pretty;
}
.metagama-contact-brief { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 10vw; color: #0a1520; background: #e5ebf2; }
.metagama-contact-brief .metagama-eyebrow { color: #2b5fad; }
.metagama-contact-brief > h2 { font-size: clamp(3rem, 5.8vw, 5.8rem); }
.metagama-brief-list { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(9,21,32,.18); }
.metagama-brief-list p { min-height: 110px; margin: 0; padding: 30px; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 18px; background: #e5ebf2; }
.metagama-brief-list span { color: #2b5fad; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; }
.metagama-brief-list strong { max-width: 460px; font-size: clamp(1.15rem, 1.8vw, 1.8rem); font-weight: 520; line-height: 1.25; }

.metagama-footer { padding: clamp(110px, 13vw, 190px) max(24px, calc((100vw - var(--metagama-width)) / 2)) 48px; color: #f7f9fc; background: #3978ef; }
.metagama-footer__lead { display: grid; grid-template-columns: 0.48fr 1.52fr; gap: 6vw; align-items: start; }
.metagama-footer__lead > p { margin-top: 10px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.metagama-footer__lead h2 { max-width: 1040px; font-size: clamp(3.3rem, 6.8vw, 6.8rem); }
.metagama-footer__lead .metagama-button { grid-column: 2; justify-self: start; margin-top: 38px; }
.metagama-button--light { color: #071019; background: #f5f7fb; }
.metagama-button--light:hover,
.metagama-button--light:focus-visible { transform: translateY(-2px); background: #e7edf6; }
.metagama-button span { margin-left: 10px; }
.metagama-footer__meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; gap: 22px 48px; align-items: start; margin-top: 96px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.3); }
.metagama-footer--compact { padding-top: 48px; }
.metagama-footer--compact .metagama-footer__meta { margin-top: 0; padding-top: 0; border-top: 0; }
.metagama-footer__brand { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 18px; align-items: center; }
.metagama-footer__brand-mark { display: block; }
.metagama-footer__brand .metagama-brand__mark { width: 35px; height: 48px; }
.metagama-footer__brand .metagama-brand__mark i { width: 14px; height: 40px; }
.metagama-footer__brand .metagama-brand__mark i:first-child { left: 4px; }
.metagama-footer__brand .metagama-brand__mark i:last-child { right: 3px; }
.metagama-footer__brand-copy { display: grid; gap: 10px; }
.metagama-footer__brand-copy > a { width: max-content; font-size: 13px; font-weight: 730; letter-spacing: 0.14em; white-space: nowrap; }
.metagama-footer__brand-copy p { max-width: 520px; color: rgba(255, 255, 255, 0.8); font-size: 14px; line-height: 1.45; }
.metagama-footer__meta > nav { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; }
.metagama-footer__meta nav .metagama-menu { justify-content: flex-end; gap: 32px; white-space: nowrap; }
.metagama-footer__meta small { grid-column: 1 / -1; grid-row: 2; justify-self: start; color: rgba(255, 255, 255, 0.72); line-height: 1.5; text-align: left; }

.metagama-empty-state { min-height: 80dvh; padding: 140px 24px 80px; display: grid; place-items: center; align-content: center; gap: 28px; text-align: center; }
.metagama-empty-state p { color: var(--metagama-accent-soft); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.metagama-empty-state h1 { max-width: 800px; font-size: clamp(3rem, 8vw, 7rem); }

:focus-visible { outline: 2px solid #a9c8ff; outline-offset: 4px; }

@media (max-width: 1100px) {
  .metagama-header__inner { grid-template-columns: 1fr auto; }
  .metagama-nav--desktop { display: none; }
  .metagama-mobile-nav { display: block; position: relative; }
  .metagama-mobile-nav summary { padding: 10px 13px; border: 1px solid rgba(255, 255, 255, 0.22); }
  .metagama-mobile-nav nav { position: absolute; top: 48px; right: 0; min-width: 250px; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.18); background: #0b1724; }
  .metagama-mobile-nav .metagama-menu { display: grid; gap: 0; }
  .metagama-mobile-nav a { display: block; padding: 12px; color: #dce5f0; }
  .metagama-mobile-nav .current-menu-item a { color: var(--metagama-accent-soft); }
  .metagama-hero { min-height: auto; padding-top: 112px; }
  .metagama-hero__inner { grid-template-columns: 1fr; }
  .metagama-home-hero .metagama-hero__inner { grid-template-columns: 1fr; }
  .metagama-home-hero .metagama-hero__copy { padding-right: 0; }
  .metagama-hero__photo { width: 100%; height: min(118vw, 620px); min-height: 0; margin-top: 56px; }
  .metagama-section-heading--split { grid-template-columns: 1fr; gap: 24px; }
  .metagama-home-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .metagama-supply-card,
  .metagama-supply-card--feature { grid-column: auto; grid-row: auto; }
  .metagama-supply-card--feature { grid-column: span 2; }
  .metagama-supply-card--feature { min-height: 560px; }
  .metagama-supply-accordion { height: 560px; }
  .metagama-hero__side { width: 100%; max-width: none; margin-top: 64px; }
  .metagama-section-heading { grid-template-columns: 1fr; gap: 24px; }
  .metagama-service-hierarchy { grid-template-columns: 1fr; grid-template-rows: auto; }
  .metagama-service-hierarchy > .metagama-bento__core,
  .metagama-service-hierarchy > .metagama-bento__secondary { grid-column: auto; grid-row: auto; }
  .metagama-service-hierarchy > .metagama-bento__core { min-height: 560px; }
  .metagama-pinned-layout,
  .metagama-contact-brief,
  .metagama-footer__lead { grid-template-columns: 1fr; }
  .metagama-pin-title { margin-bottom: 54px; }
  .metagama-footer__lead .metagama-button { grid-column: auto; }
  .metagama-accordion { grid-template-columns: 1fr; }
  .metagama-accordion__panel { min-height: 0; }
  .metagama-accordion h3 { min-height: 0; }
  .metagama-service-artifact { min-height: 330px; }
  .metagama-engagement-flow { grid-template-columns: 1fr 1fr; }
  .metagama-engagement-flow > .wp-block-group:last-child { grid-column: 1 / -1; }
  .metagama-principle-grid > .wp-block-group { grid-column: span 6; min-height: 300px; grid-row: auto; }
  .metagama-footer__meta { margin-top: 72px; }
  .metagama-footer__meta > nav { width: min(100%, 400px); justify-self: center; }
  .metagama-footer__meta nav .metagama-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: initial; gap: 20px 36px; white-space: normal; }
}

@media (max-width: 782px) {
  body.admin-bar .metagama-header { top: 46px; }
}

@media (max-width: 700px) {
  .metagama-header__inner { width: calc(100% - 32px); }
  .metagama-brand { font-size: 11px; }
  .metagama-hero { padding: 104px 20px 72px; }
  .metagama-hero h1,
  .metagama-page-hero h1 { font-size: clamp(2.75rem, 12vw, 4.25rem); }
  .metagama-hero__intro { font-size: 1rem; }
  .metagama-actions { width: 100%; align-items: stretch; flex-direction: column; }
  .metagama-actions .wp-block-button,
  .metagama-actions .wp-block-button__link { width: 100%; }
  .metagama-section { padding-block: 100px; }
  .metagama-section-title,
  .metagama-pin-title h1,
  .metagama-pin-title h2,
  .metagama-contact-brief > h2 { font-size: clamp(2.75rem, 12vw, 4.15rem); }
  .metagama-bento,
  .metagama-home-bento,
  .metagama-product-grid,
  .metagama-principle-grid,
  .metagama-contact-grid { display: flex; flex-direction: column; }
  .metagama-contact-card { min-height: 220px; }
  .metagama-bento__core,
  .metagama-supply-card--feature { min-height: 440px !important; }
  .metagama-product-card { min-height: 0; padding: 30px 0; grid-template-columns: 1fr; gap: 18px; }
  .metagama-product-card > div { grid-template-columns: 1fr; gap: 18px; }
  .metagama-difference-grid,
  .metagama-engagement-flow,
  .metagama-faq-grid { grid-template-columns: 1fr; }
  .metagama-engagement-flow > .wp-block-group:last-child { grid-column: auto; }
  .metagama-difference-grid > .wp-block-group { min-height: 280px; padding: 30px; }
  .metagama-faq-grid > .wp-block-group,
  .metagama-faq-grid > .wp-block-group:nth-child(even) { min-height: 0; padding: 34px 0; border-left: 0; }
  .metagama-artifact__bar { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
  .metagama-home-services > .metagama-home-services__header { margin-bottom: 52px !important; }
  .metagama-home-services__cta { min-height: 300px; grid-template-columns: 1fr; gap: 64px; align-items: start; }
  .metagama-home-services__cta a { align-self: end; }
  .metagama-supply-card,
  .metagama-supply-card--feature { width: 100%; min-height: 300px; }
  .metagama-supply-accordion { height: auto; flex-direction: column; }
  .metagama-supply-panel { min-height: 440px; flex: none; }
  .metagama-supply-panel:hover { flex: none; }
  .metagama-supply-panel p { max-height: none; opacity: 1; }
  .metagama-supply-panel p { margin-top: 20px; }
  .metagama-principle-grid > .wp-block-group { min-height: 280px; }
  .metagama-principle-grid p { margin-top: 72px; }
  .metagama-artifact__summary { align-items: flex-start; flex-direction: column; }
  .metagama-artifact__summary strong { text-align: left; }
  .metagama-artifact__row { grid-template-columns: 54px minmax(0, 1fr); }
  .metagama-artifact__row b { grid-column: 2; justify-self: start; }
  .metagama-brief-sheet div { grid-template-columns: 1fr; gap: 7px; }
  .metagama-stack-list > .wp-block-group { min-height: 250px; padding: 30px; }
  .metagama-stack-list p { margin-top: 48px; }
  .metagama-word-reveal { font-size: clamp(2.35rem, 11vw, 3.7rem); }
  .metagama-brief-list { grid-template-columns: 1fr; }
  .metagama-footer__lead h2 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .metagama-footer__meta { grid-template-columns: 1fr; gap: 30px; }
  .metagama-footer__meta > nav { grid-column: auto; grid-row: auto; width: 100%; align-self: auto; justify-self: start; }
  .metagama-footer__meta nav .metagama-menu { grid-template-columns: 1fr; gap: 18px; }
  .metagama-footer__meta small { grid-column: auto; grid-row: auto; justify-self: start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
