:root {
  color-scheme: light;
  --paper: #f8f7fb;
  --ink: #181323;
  --muted: #534d60;
  --line: #e5e1ed;
  --purple: #593acc;
  --lavender: #e9e1ff;
  --site-width: 1280px;
  --radius: 26px;
  --standard-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --heading-font: var(--standard-font);
  --text-font: var(--standard-font);
  --heading-scale: 1;
  --text-scale: 1;
  font-family: var(--text-font);
}
:root {
  --font-arial: Arial, sans-serif;
  --font-georgia: Georgia, serif;
  --font-times: "Times New Roman", serif;
  --font-verdana: Verdana, sans-serif;
  --font-trebuchet: "Trebuchet MS", sans-serif;
}
html[data-heading-font="arial"] { --heading-font: var(--font-arial); }
html[data-heading-font="georgia"] { --heading-font: var(--font-georgia); }
html[data-heading-font="times"] { --heading-font: var(--font-times); }
html[data-heading-font="verdana"] { --heading-font: var(--font-verdana); }
html[data-heading-font="trebuchet"] { --heading-font: var(--font-trebuchet); }
html[data-text-font="arial"] { --text-font: var(--font-arial); }
html[data-text-font="georgia"] { --text-font: var(--font-georgia); }
html[data-text-font="times"] { --text-font: var(--font-times); }
html[data-text-font="verdana"] { --text-font: var(--font-verdana); }
html[data-text-font="trebuchet"] { --text-font: var(--font-trebuchet); }
html[data-heading-size="small"] { --heading-scale: .90; }
html[data-heading-size="large"] { --heading-scale: 1.12; }
html[data-text-size="small"] { --text-scale: .92; }
html[data-text-size="large"] { --text-scale: 1.12; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: calc(1rem * var(--text-scale)); }
[data-site-variant="mobile"] { display: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus-color, #6947eb); outline-offset: 4px; }
p { margin: 0; line-height: 1.6; }
h1, h2, h3 { margin: 0; line-height: .98; font-family: var(--heading-font); font-weight: 750; letter-spacing: -.057em; overflow-wrap: anywhere; }
.editor-heading { font-family: var(--editor-font, var(--heading-font)); text-wrap: balance; }
.editor-heading .heading-accent { color: var(--heading-accent, #51319f); }
.editor-heading span[style*="font-size"] { letter-spacing: normal; word-spacing: normal; }
[data-scale-kind] { min-inline-size: 0; overflow-wrap: anywhere; text-wrap: balance; zoom: var(--fitted-scale, var(--part-scale, 1)); }
/* Layout boxes keep their size while the decorative gradient follows the visible content. */
:where([data-design-part]) {
  --part-highlight-content: initial;
  --part-highlight-fill: initial;
  --part-text-highlight: initial;
  --part-highlight-box: 0 0 0 0;
}
[data-design-part]::after {
  content: var(--part-highlight-content, none);
  position: absolute;
  inset: var(--part-highlight-box);
  z-index: -1;
  pointer-events: none;
  background: var(--part-highlight-fill, transparent);
  opacity: var(--part-highlight-opacity, .92);
  mask-image: radial-gradient(ellipse closest-side, #000 22%, #000e 60%, #0007 80%, transparent 100%);
}
.formatted-text {
  font-family: var(--editor-font, inherit);
  font-size: calc(var(--body-size, 1rem) * var(--editor-size, var(--text-scale)));
  line-height: 1.6;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.formatted-text > * + * { margin-block-start: .65em; }
.formatted-text > :last-child { margin-block-end: 0; }
.formatted-text h3, .formatted-text h4, .formatted-text h5, .formatted-text h6 { line-height: 1.25; }
.formatted-text pre { white-space: pre-wrap; }
[data-editor-font="arial"] { --editor-font: var(--font-arial); }
[data-editor-font="georgia"] { --editor-font: var(--font-georgia); }
[data-editor-font="times"] { --editor-font: var(--font-times); }
[data-editor-font="verdana"] { --editor-font: var(--font-verdana); }
[data-editor-font="trebuchet"] { --editor-font: var(--font-trebuchet); }
[data-editor-size="small"] { --editor-size: .9; }
[data-editor-size="normal"] { --editor-size: 1; }
[data-editor-size="large"] { --editor-size: 1.12; }
[data-editor-size="extra-large"] { --editor-size: 1.25; }
[data-editor-align="left"] { text-align: left; }
[data-editor-align="center"] { text-align: center; }
[data-editor-align="right"] { text-align: right; }
[data-editor-align="justify"] { text-align: justify; }
.editor-heading.eyebrow { font-size: calc(.83rem * var(--editor-size, 1)); }
.shell { width: min(var(--site-width), calc(100% - 96px)); margin-inline: auto; }
.section { margin-block: clamp(75px, 8vw, 132px); }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 10; background: white; padding: 12px 18px; border-radius: 8px; }

.header { position: sticky; top: 0; z-index: 4; background: var(--paper); border-bottom: 1px solid rgba(24, 19, 35, .06); }
.header-inner { min-height: 77px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; width: fit-content; text-decoration: none; font-size: clamp(.94rem, 1.55vw, 1.14rem); font-weight: 850; letter-spacing: -.045em; white-space: nowrap; }
.brand-dot { margin-left: -8px; color: var(--purple); }
.brand-mark { display: block; width: 22px; height: 22px; flex: 0 0 22px; background: linear-gradient(145deg, #6444ee, #ad79ff 51%, #fa86be); border-radius: 8px; transform: rotate(-10deg); position: relative; }
.brand-mark::before, .brand-mark::after { content: ""; width: 2px; height: 11px; border-radius: 5px; background: white; position: absolute; top: 5px; }
.brand-mark::before { left: 7px; transform: rotate(-23deg); }
.brand-mark::after { right: 7px; transform: rotate(23deg); }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(16px, 2.45vw, 36px); }
.nav a { text-decoration: none; color: var(--nav-text, #40394e); font-size: .91rem; font-weight: 650; }
.nav a:hover { color: var(--purple); }
.header-cta { justify-self: end; }
.menu-toggle { display: none; }

.button {
  --button-height: 49px;
  --button-block-padding: 12px;
  --button-inline-padding: 20px;
  --button-font-size: .92rem;
  min-height: calc(var(--button-height) * var(--part-scale, 1));
  max-inline-size: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--button-block-padding) * var(--part-scale, 1)) calc(var(--button-inline-padding) * var(--part-scale, 1));
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: calc(var(--button-font-size) * var(--part-scale, 1));
  font-weight: 750;
  text-decoration: none;
  line-height: 1.2;
  text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.button[data-scale-kind="button"] { position: relative; zoom: 1; }
.label-size { display: block; min-inline-size: 0; overflow: hidden; visibility: hidden; white-space: nowrap; }
.button-label {
  position: absolute;
  inset: 2px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--button-font-size) * var(--button-text-scale, var(--part-scale, 1)) * var(--line-fit, 1));
}
[data-fit-line] { min-inline-size: 0; overflow: hidden; white-space: nowrap; text-wrap: nowrap; }
.button:hover { transform: translateY(-2px); }
.button-small { --button-height: 41px; --button-block-padding: 9px; --button-inline-padding: 16px; --button-font-size: .85rem; }
.button-dark { background: var(--primary-button, #181323); color: var(--primary-button-text, #fff); }
.button-dark:hover { background: color-mix(in srgb, var(--primary-button, #181323) 80%, #beb0de); }
.button-outline { border-color: rgba(24, 19, 35, .53); background: rgba(255, 255, 255, .19); }
.button-outline:hover { background: rgba(255, 255, 255, .62); }
.button-lavender { background: var(--lavender); color: var(--lavender-text, #362073); }
.button-lavender:hover { background: color-mix(in srgb, var(--lavender) 84%, #ae87ff); }
.eyebrow, .overline { font-size: .83rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.hero { margin-top: 21px; }
.hero-panel { position: relative; overflow: hidden; isolation: isolate; border: 1px solid rgba(70, 45, 140, .1); border-radius: clamp(20px, 2.7vw, 39px); text-align: center;
  background:
    radial-gradient(ellipse at 3% 0%, var(--hero-left, #a090ff) 0, transparent 51%),
    radial-gradient(ellipse at 91% 13%, var(--hero-right, #f084d6) 0, transparent 49%),
    radial-gradient(ellipse at 101% 100%, #ffef92 0, transparent 49%),
    radial-gradient(ellipse at 65% 101%, #ff9ab5 0, transparent 62%),
    linear-gradient(128deg, #bdadff 2%, #ead8ff 50%, #ffbfd8 92%);
}
.hero-panel::before, .hero-panel::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border: 1px solid rgba(255, 255, 255, .38); border-radius: 50%; height: 29em; width: 54em; }
.hero-panel::before { left: -23em; top: 12%; transform: rotate(-28deg); box-shadow: 0 0 0 32px rgba(255, 255, 255, .07), 0 0 0 64px rgba(255, 255, 255, .07); }
.hero-panel::after { right: -26em; top: 5%; transform: rotate(-37deg); box-shadow: 0 0 0 32px rgba(255, 255, 255, .08), 0 0 0 64px rgba(255, 255, 255, .07); }
.hero-main { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 10px; padding: clamp(55px, 7.1vw, 110px) 22px clamp(50px, 6vw, 83px); }
.hero-line { flex: 0 0 100%; min-width: 0; }
.hero-main > .button { margin-block: 5px; }
.overline { display: inline-flex; align-items: center; gap: 8px; max-inline-size: 100%; padding: 8px 13px; color: #2a2040; border: 1px solid rgba(34, 26, 49, .17); background: rgba(255, 255, 255, .33); border-radius: 999px; margin-bottom: clamp(19px, 3vw, 31px); text-wrap: balance; }
.overline-dot { flex: 0 0 7px; height: 7px; border-radius: 50%; background: #6944e8; }
.overline-text { min-inline-size: 0; position: relative; }
.overline-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(1em * var(--line-fit, 1));
  letter-spacing: .1em;
}
.hero h1 { font-size: calc(clamp(3.3rem, 8.4vw, 8.35rem) * var(--editor-size, var(--heading-scale))); letter-spacing: -.054em; word-spacing: .018em; line-height: .92; max-width: 1050px; margin: 0 auto; }
.hero-lead { max-width: 570px; margin: 26px auto 24px; --body-size: clamp(1.03rem, 1.65vw, 1.26rem); color: var(--hero-text, #352642); line-height: 1.45; text-wrap: balance; }
.hero-lead p { line-height: inherit; }
.hero-metrics { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(24, 19, 35, .15); background: rgba(255,255,255,.2); }
.hero-metrics > div { padding: clamp(15px, 2.5vw, 26px) 9px; }
.hero-metrics > div + div { border-left: 1px solid rgba(24, 19, 35, .15); }
.hero-metrics dt { margin: 0 0 5px; font-weight: 800; letter-spacing: -.059em; font-size: clamp(1.65rem, 3.5vw, 2.95rem); }
.hero-metrics dd { margin: 0; color: #41344d; font-size: .9rem; font-weight: 600; line-height: 1.4; }

.partners { text-align: center; padding-block: 36px 24px; }
.partners .eyebrow { color: #676075; }
.brand-marquee {
  --logo-gap: clamp(22px, 4.8vw, 70px);
  margin-top: 15px;
}
.brand-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px var(--logo-gap);
  margin: 0;
  padding: 8px 0;
  list-style: none;
}
.brand-logo {
  --logo-scale: 1;
  width: calc(clamp(72px, 10vw, 142px) * var(--logo-scale));
  height: calc(clamp(27px, 5vw, 47px) * var(--logo-scale));
  object-fit: contain;
}
.brand-logo[data-size="small"] { --logo-scale: .75; }
.brand-logo[data-size="large"] { --logo-scale: 1.65; }
.brand-copy { display: none; }
.brand-marquee:focus-visible { outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .brand-marquee[data-running] {
    container-type: inline-size;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  }
  .brand-marquee[data-running]:focus-visible { mask-image: none; }
  .brand-marquee[data-running] .brand-track {
    display: flex;
    width: max-content;
    animation: scroll-logos 30s linear infinite;
  }
  .brand-marquee[data-running] .brand-group {
    display: flex;
    flex: none;
    flex-wrap: nowrap;
    justify-content: space-around;
    min-width: 100cqw;
    padding-inline: calc(var(--logo-gap) / 2);
  }
  .brand-marquee[data-paused] .brand-track { animation-play-state: paused; }
}
@keyframes scroll-logos {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 340px); align-items: end; gap: 26px; margin-bottom: clamp(25px, 3.7vw, 47px); }
.section-heading .eyebrow, .about .eyebrow, .contact .eyebrow, .subpage .eyebrow { margin-bottom: 13px; color: var(--purple); }
.section h2, .subpage h1 { font-size: calc(clamp(2.7rem, 6.2vw, 6.35rem) * var(--editor-size, var(--heading-scale))); }
.section-heading > .formatted-text, .about-copy > .formatted-text { color: var(--muted); --body-size: 1.05rem; max-width: 48ch; }
.services, .story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.service-card { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 44px); }
.service-card:only-child { grid-column: 1 / -1; }
.service-card header { display: flex; align-items: flex-start; gap: 16px; }
.service-card header .editor-heading { flex: 1; }
.service-card h3, .project h3, .story h3 { font-size: calc(clamp(1.55rem, 3.3vw, 3.1rem) * var(--editor-size, var(--heading-scale))); line-height: 1.04; }
.service-icon { display: grid; place-items: center; flex: 0 0 41px; height: 41px; border-radius: 12px; background: #e9e0ff; color: #5130ab; }
.service-icon::after { content: ""; width: 13px; height: 13px; border: 2px solid currentColor; transform: rotate(45deg); }
.icon-event { background: #ffe4ef; color: #8c2f69; }
.icon-event::after { border-radius: 50%; box-shadow: 0 0 0 3px #ffe4ef, 0 0 0 4px currentColor; }
.service-card dl { margin: 29px 0 0; }
.service-card dl > div { border-top: 1px solid var(--line); padding: 14px 0; }
.service-card dl > div:last-child { padding-bottom: 0; }
.service-card dt { font-weight: 750; }
.service-card dd { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }

.academy-panel, .contact, .story, .subpage-panel { border-radius: clamp(20px, 2.7vw, 35px); padding: clamp(27px, 5vw, 75px); }
.academy-panel { overflow: hidden; position: relative; isolation: isolate; display: grid; align-items: center; grid-template-columns: 1.1fr .9fr; gap: 34px;
  background: radial-gradient(ellipse at 3% 90%, #ffadac, transparent 53%), radial-gradient(ellipse at 73% 90%, #a28bff, transparent 70%), linear-gradient(118deg, #ffaae8 5%, #f9ccff 48%, #8c7bff 100%); }
.academy-copy .eyebrow { margin-bottom: 13px; }
.academy-copy h2 { font-size: calc(clamp(2.55rem, 5.3vw, 5.25rem) * var(--editor-size, var(--heading-scale))); }
.academy-copy > .formatted-text { margin: 17px 0 23px; max-width: 42ch; color: var(--academy-teaser-text, #392b4b); }
.book-scene { display: grid; place-items: center; min-height: 265px; perspective: 720px; }
.playbook-cover { width: min(100%, 370px); max-height: 360px; object-fit: contain; }
.book { position: relative; display: flex; flex-direction: column; overflow: hidden; justify-content: space-between; aspect-ratio: 3 / 4; width: clamp(130px, 18vw, 250px); color: #fff; background: #211636; border: 1px solid rgba(255,255,255,.37); border-radius: 6px 11px 11px 6px; padding: 23px 19px; transform: rotate(-11deg) rotateY(-17deg) rotateX(5deg); box-shadow: 7px 2px 0 #fff0e7, 10px 4px 0 #593b8c, 18px 24px 43px rgba(36, 16, 57, .45); }
.book > span { font-size: .55rem; font-weight: 800; letter-spacing: .13em; z-index: 1; }
.book strong { font-size: clamp(1.15rem, 3.25vw, 3.25rem); line-height: .91; letter-spacing: -.078em; z-index: 1; }
.book strong span { color: #fa95e8; }
.book i { position: absolute; inset: 42% -38% -12% 5%; background: linear-gradient(160deg, #a655ff, #342464, #ff89af); border-radius: 50%; transform: rotate(-35deg); opacity: .83; }
.book i::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid #ecb8ec; box-shadow: 0 0 0 7px #ffffff28, 0 0 0 14px #ffffff1c; }

.projects { display: grid; gap: 13px; }
.project { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface, #fff); }
.project-with-metrics { grid-template-columns: minmax(0, 1fr) minmax(220px, 32%); }
.project-copy { padding: clamp(24px, 3.9vw, 55px); }
.project-copy .eyebrow { color: var(--purple); margin-bottom: 10px; }
.project-copy > .formatted-text { margin-top: 15px; max-width: 57ch; color: var(--muted); }
.project-metrics { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: clamp(19px, 3vw, 32px); background: linear-gradient(135deg, #e2d8ff, #b7a5ff); }
.project:nth-child(even) .project-metrics { background: linear-gradient(145deg, #fdd9e4, #f4b5e2 57%, #d5b9ff); }
.project-metrics > div { padding: 12px 0; }
.project-metrics > div + div { border-top: 1px solid rgba(26, 17, 40, .20); }
.project-metrics dt { font-size: clamp(1.65rem, 4vw, 3.3rem); font-weight: 800; letter-spacing: -.07em; }
.project-metrics dd { margin: 3px 0 0; font-size: .92rem; color: #3f2c53; }

.about { display: grid; gap: clamp(25px, 6vw, 80px); align-items: center; }
.about-with-gallery { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.about-copy > .formatted-text { margin: 20px 0 23px; }
.about-photo { margin: 0; border-radius: var(--radius); background: #e0d4ef; overflow: hidden; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 1.25; object-fit: cover; object-position: 50% 46%; }
.story { background: linear-gradient(126deg, #ece7fd, #f9e4f2); }
.story-grid article { padding: clamp(20px, 3vw, 33px); border: 1px solid #e5d8ee; border-radius: 18px; background: var(--surface, rgba(255,255,255,.74)); }
.story h3 { font-size: calc(clamp(1.45rem, 2.8vw, 2.15rem) * var(--editor-size, var(--heading-scale))); }
.story .role { color: var(--purple); font-weight: 650; margin-block: 6px 12px; }
.story-grid .formatted-text { color: var(--muted); }

.extra-section {
  display: grid;
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  padding: clamp(25px, 5vw, 65px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface, #fff);
}
.extra-section-with-image { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.extra-section h2 { font-size: calc(clamp(2.15rem, 4.8vw, 4.8rem) * var(--editor-size, var(--heading-scale))); }
.extra-section .formatted-text { max-width: 65ch; margin-top: 16px; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.extra-section img { width: 100%; max-height: 420px; object-fit: contain; border-radius: 15px; }
.extra-section-button { margin-top: 20px; }

.contact { display: grid; grid-template-columns: .92fr 1.08fr; align-items: start; gap: clamp(22px, 4vw, 58px); background:
  radial-gradient(ellipse at 0 100%, #ada8fc, transparent 50%),
  radial-gradient(ellipse at 87% 2%, #f7bde9, transparent 62%),
  radial-gradient(ellipse at 100% 100%, #fff2b3, transparent 50%),
  #f0e4fe; }
.contact h2 { font-size: calc(clamp(2.5rem, 5.3vw, 5.0rem) * var(--editor-size, var(--heading-scale))); }
.contact-copy > .formatted-text { margin-top: 18px; color: var(--contact-text, #41344d); }
.contact-email { display: inline-block; margin-top: 15px; font-weight: 750; overflow-wrap: anywhere; }
.contact-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-form label { display: block; font-size: .91rem; font-weight: 730; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 5px; border: 1px solid rgba(47,29,69,.23); border-radius: 11px; padding: 10px 12px; color: var(--ink); background: rgba(255,255,255,.82); font-size: 1rem; font-weight: 450; }
.contact-form input { min-height: 45px; }
.contact-form textarea { resize: vertical; min-height: 112px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.form-actions small { max-width: 210px; font-size: .83rem; line-height: 1.45; color: #433750; }
.form-status { font-size: .9rem; }

.footer { background: var(--footer-background, #20192e); color: var(--footer-text, #faf8ff); --part-highlight-opacity: .23; }
.footer-inner { padding-block: 38px 26px; }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.footer-top { color: var(--footer-secondary, #d9d2e6); }
.footer-top address { font-style: normal; line-height: 1.55; }
.footer-wordmark { display: block; margin-top: 32px; padding-block: 14px 19px; border-top: 1px solid #4b425b; border-bottom: 1px solid #4b425b; font-size: clamp(2.15rem, 8.4vw, 8rem); letter-spacing: -.059em; line-height: 1; font-weight: 850; text-decoration: none; }
.footer-wordmark span { color: #bd9bff; }
.footer-bottom { margin-top: 16px; align-items: center; color: var(--footer-secondary, #d9d2e6); font-size: .86rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 19px; }
.footer a:focus-visible { outline-color: #d0adff; }

.subpage { min-height: 60vh; padding-block: clamp(25px, 7vw, 100px); }
.subpage-panel { background: linear-gradient(128deg, #ded3ff 0%, #f8d6ef 73%, #fff0be 100%); }
.subpage h1 { max-width: 13ch; margin-block: 10px 20px; }
.terms h1 { max-width: none; font-size: clamp(1.85rem, 5.2vw, 4.75rem); overflow-wrap: anywhere; hyphens: auto; }
.terms-address { margin-top: 6px; font-style: normal; line-height: 1.55; }
.terms-address a { overflow-wrap: anywhere; }
.subpage .subheading { font-size: clamp(1.1rem, 2.3vw, 1.4rem); max-width: 56ch; }
.subpage .button { margin-top: 20px; }
.subpage-content { max-width: 830px; margin: 30px auto 0; }
.subpage-content h2 { margin: 25px 0 8px; line-height: 1.18; font-size: 1.45rem; letter-spacing: -.04em; }
.subpage-content p + p { margin-top: 12px; }
.subpage-content a { overflow-wrap: anywhere; }
.subpage-content ul { padding-inline-start: 1.4em; line-height: 1.65; }

@media (max-width: 950px) {
  .shell { width: calc(100% - 48px); }
  .header-inner { gap: 14px; }
  .nav { gap: 14px; }
  .header-cta { --button-font-size: .77rem; }
}
@media (min-width: 731px) {
  .section-heading:has(> .formatted-text:first-child) { grid-template-columns: minmax(230px, 340px) minmax(0, 1fr); }
  .project-with-metrics:has(> .project-metrics:first-child) { grid-template-columns: minmax(220px, 32%) minmax(0, 1fr); }
}
@media (max-width: 730px) {
  [data-site-variant="desktop"] { display: none; }
  [data-site-variant="mobile"] { display: block; }
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 65px; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 15px; padding-block: 10px; }
  .header-cta { display: none; }
  .menu-toggle:not([hidden]) { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 42px; height: 42px; margin-left: auto; border: 1px solid #ded8eb; border-radius: 12px; background: white; }
  .menu-toggle > span:not(.visually-hidden) { display: block; width: 17px; height: 2px; background: var(--ink); border-radius: 10px; }
  .nav { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; padding: 8px 0; }
  .header-inner:has(.menu-toggle:not([hidden])) > .nav:not(.is-open) { display: none; }
  .nav.is-open { padding: 5px 0 12px; }
  .hero { margin-top: 12px; }
  .hero h1 { font-size: calc(clamp(2.55rem, 10.2vw, 4.6rem) * var(--editor-size, var(--heading-scale))); }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-metrics > div:nth-child(3) { border-left: 0; }
  .hero-metrics > div:nth-child(n + 3) { border-top: 1px solid rgba(24,19,35,.15); }
  .hero-metrics dd { font-size: .83rem; }
  .desktop-break { display: none; }
  .section-heading, .about, .contact, .extra-section-with-image { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .service-card header { gap: 12px; }
  .service-card h3 { font-size: calc(clamp(1.48rem, 4.5vw, 2.15rem) * var(--editor-size, var(--heading-scale))); }
  .service-card h3 .legacy-title-break { display: none; }
  .services, .story-grid { grid-template-columns: 1fr; }
  .section { margin-block: 64px; }
  .academy-panel { grid-template-columns: 1fr; gap: 6px; }
  .book-scene { min-height: 210px; }
  .book { width: clamp(120px, 36vw, 200px); }
  .book strong { font-size: clamp(1.18rem, 5.8vw, 2.5rem); }
  .project-with-metrics { grid-template-columns: minmax(0, 1fr); }
  .project-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .project-metrics > div:only-child { grid-column: 1 / -1; }
  .project-metrics > div:nth-child(even) { border-left: 1px solid rgba(26, 17, 40, .20); padding-left: 14px; }
  .project-metrics > div:nth-child(2) { border-top: 0; }
  .contact { gap: 27px; }
  .footer-top, .footer-bottom { flex-wrap: wrap; gap: 14px; }
}
@media (max-width: 370px) {
  .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: calc(2.4rem * var(--editor-size, var(--heading-scale))); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}

.about-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.about-gallery > :first-child { grid-column: 1 / -1; }
.about-gallery > :first-child img { aspect-ratio: 1.55; }
.about-gallery > :nth-child(n + 2) { border-radius: 16px; }
.about-gallery > :nth-child(n + 2) img { aspect-ratio: 2; }
.about-gallery > :last-child img { object-position: 50% 46%; }
.header-inner.is-subpage { grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
