/* Minimal local shell and Squarespace block primitives; page grids stay in intake.
 * Fonts are served separately by the local media/fonts.css stylesheet.
 * Legacy block IDs are compatibility hooks for the preserved exported markup.
 */

/* Site defaults and accessible controls */
:root {
  --sqs-site-max-width:1400px;
  --sqs-site-gutter:2vw;
  --sqs-mobile-site-gutter:6vw;
  color:#5A5A5A;
  background:#FDFDFD;
  font-family:'ibm-plex-sans',sans-serif;
  font-size:16px;
  line-height:1.625
}

* {
  box-sizing:border-box
}

body {
  margin:0
}

body.menu-open {
  position:fixed;
  width:100%;
  overflow:hidden;
}

a {
  color:inherit;
  text-underline-offset:3px
}

button {
  font:inherit;
  color:inherit
}

button,a {
  -webkit-tap-highlight-color:transparent
}

button {
  cursor:pointer
}

a:focus-visible,button:focus-visible,[tabindex]:focus-visible {
  outline:2px auto;
  outline-offset:5px
}

/* Typography and exported text colours */
h1,h2,h3 {
  font-family:'ibm-plex-sans',sans-serif;
  font-weight:400;
  line-height:1.3
}

h3 {
  font-size:27px;
  margin:0 0 1em
}

p {
  margin:0 0 1em
}

p:last-child {
  margin-bottom:0
}

/* Custom small copy uses the live site's Helvetica fallback, not template text. */
.content-page p.sqsrte-small,.content-page .sqsrte-small p {
  font-family:Helvetica,Arial,sans-serif;
}

.content-page .sqs-block-code h1 {
  font-family:Helvetica,Arial,sans-serif;
}

/* Template headings/body retain Plex; custom h4 rules stay in custom.css. */
.content-page .sqs-html-content h3 {
  color:#000;
  font-size:min(calc(1.2vw + 1rem),32.8px);
  font-weight:600;
  line-height:.96;
  letter-spacing:.01em;
  margin:0 0 2rem;
}

.content-page .sqs-html-content p:not(.sqsrte-small) {
  color:#000;
  font-family:'ibm-plex-sans',sans-serif;
  font-size:calc(1rem - .24vw);
  font-weight:300;
  line-height:1.6;
}

.content-page .sqs-block p {
  margin:1rem 0;
}

.content-page .sqs-html-content>:first-child {
  margin-top:0;
}

.content-page .sqs-html-content>:last-child {
  margin-bottom:0;
}

h4 {
  letter-spacing:.01em;
}

h4 a {
  color:inherit
}

.sqsrte-text-color--accent {
  color:#85AECA
}

.sqsrte-text-color--black {
  color:#222
}

/* Images, site identity and navigation */
img {
  display:block;
  max-width:100%;
  height:auto
}

figure {
  margin:0
}

.site-header {
  position:absolute;
  inset:0 0 auto;
  z-index:100;
  display:flex;
  justify-content:space-between;
  gap:30px;
  padding:2vw;
  align-items:flex-start;
  pointer-events:none;
  color:#000;
}

.site-header a,.site-header button,.site-header nav {
  pointer-events:auto;
}

.site-identity {
  text-decoration:none;
  font-size:23px;
  line-height:1.4
}

.site-identity span {
  display:block;
  font-size:16px
}

.site-header nav {
  display:flex;
  flex-wrap:wrap;
  gap:8px 2vw;
  margin-left:auto;
  font-size:16px;
  font-weight:400;
  line-height:1.6;
}

.site-header nav[hidden],.menu-toggle[hidden] {
  display:none;
}

.site-header nav a {
  text-decoration:none
}

.site-header a[aria-current] {
  text-decoration:underline
}

.menu-toggle {
  border:0;
  background:transparent;
  padding:0;
  width:44px;
  height:44px;
  font-size:0;
  position:relative;
}

.menu-toggle::before,.menu-toggle::after {
  content:'';
  position:absolute;
  inset:50% auto auto 50%;
  width:28px;
  height:1px;
  background:currentColor;
  transform:translate(-50%,-50%);
}

.menu-toggle::after {
  transform:translate(-50%,-50%) rotate(90deg);
}

.menu-toggle[aria-expanded=true]::before {
  transform:translate(-50%,-50%) rotate(45deg);
}

.menu-toggle[aria-expanded=true]::after {
  transform:translate(-50%,-50%) rotate(-45deg);
}

.skip-link {
  position:absolute;
  left:12px;
  top:-100px;
  z-index:2000;
  padding:8px;
  background:#FDFDFD
}

.skip-link:focus {
  top:10px
}

/* Squarespace sections and block primitives */
.page-section {
  position:relative
}

.section-background,.section-border,.section-background-overlay {
  pointer-events:none
}

.content-wrapper {
  width:100%;
  margin:0 auto
}

.content,.fe-block,.sqs-block,.sqs-block-content {
  min-width:0
}

.fluid-engine {
  overflow:visible!important
}

.fe-block {
  position:relative
}

.sqs-block {
  position:relative;
  height:100%;
  display:flex;
  flex-direction:column
}

.sqs-block-content {
  width:100%
}

.sqs-block-image .sqs-block-content {
  height:100%;
  display:flex;
  align-items:center
}

.sqs-block-image .sqs-block-content>a {
  display:block;
  width:100%;
  height:100%
}

.sqs-block-image img {
  width:100%;
  height:100%;
  object-fit:contain
}

/* The simplified export contains only content > optional link > img.
 * Remove intrinsic image sizing from track calculations, not from text cells.
 */
.content-page .fe-block:has(>.sqs-block-image) {
  min-height:0;
}

.content-page .fe-block>.sqs-block-image {
  position:absolute;
  inset:0;
  min-height:0;
}

.content-page .sqs-block-image .sqs-block-content {
  position:relative;
  min-height:0;
}

.content-page .sqs-block-image img {
  position:absolute;
  inset:0;
  object-fit:var(--image-component-object-fit,cover);
}

.content-page .sqs-block-image img[data-stretch=false],
.content-page #block-yui_3_17_2_1_1703873450864_2633 img,
.content-page #block-yui_3_17_2_1_1734490479815_12741 img,
.content-page #block-yui_3_17_2_1_1709987627422_3973 img {
  object-fit:contain;
  height:auto;
  max-height:100%;
  top:50%;
  transform:translateY(-50%);
}

@media(min-width:768px) {
  .content-page #block-yui_3_17_2_1_1703873450864_2633 img {
    top:0;
    transform:none;
  }
}

.sqs-block-html .sqs-block-content,.sqs-block-code .sqs-block-content {
  height:auto
}

.sqs-block-html {
  justify-content:flex-start
}

iframe {
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  border:0
}

.sqs-block-spacer {
  pointer-events:none
}

/* Gallery grids, stacked slides and controls */
.gallery-section {
  padding:2.3vmax 2vw;
  overflow:hidden
}

.gallery-grid-wrapper {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:20px
}

.gallery-grid-item {
  min-width:0
}

.gallery-grid-item-wrapper {
  height:auto!important
}

.gallery-grid-item img {
  width:100%;
  height:auto!important;
  object-fit:contain!important
}

.image-gallery-wrapper {
  position:relative;
  width:100%;
  overflow:hidden;
  border-radius:8px;
}

.image-gallery-wrapper>img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:8px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .5s ease,visibility .5s;
}

.image-gallery-wrapper>.is-active {
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.gallery-controls {
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  justify-content:space-between;
  align-items:center;
  pointer-events:none;
}

.gallery-controls button {
  border:0;
  background:transparent;
  color:#fff;
  padding:0;
  width:44px;
  height:44px;
  font-size:0;
  pointer-events:auto;
}

.gallery-controls button::before {
  content:'';
  display:block;
  width:10px;
  height:10px;
  border-left:2px solid currentColor;
  border-bottom:2px solid currentColor;
  margin:auto;
  transform:rotate(45deg);
}

.gallery-controls button:last-child::before {
  transform:rotate(225deg);
}

/* Chapter 1's source animation changes left, so the strip must be positioned.
 * Only this gallery clips horizontal motion; page/grid geometry stays intact.
 */
section[data-section-id="65a3fe8cb6acf654ad4f5249"].gallery-section {
  padding-left:0;
  padding-right:0;
}

section[data-section-id="65a3fe8cb6acf654ad4f5249"] .gallery-grid-wrapper {
  position:relative;
  width:100%;
  gap:0;
}

section[data-section-id="65a3fe8cb6acf654ad4f5249"] .gallery-grid-item {
  flex-shrink:0;
}

section[data-section-id="65a3fe8cb6acf654ad4f5249"] .gallery-grid-item-wrapper {
  position:relative;
  height:1px!important;
  padding-bottom:75%;
}

section[data-section-id="65a3fe8cb6acf654ad4f5249"] .gallery-grid-item img {
  position:absolute;
  inset:0;
  height:100%!important;
  object-fit:cover!important;
}

/* Exported accordion controls and descriptions */
[data-sqsp-accordion-block-item-title] button {
  border:0;
  background:transparent;
  text-align:left;
  padding:0;
  width:100%;
  font-size:16px;
  line-height:24px
}

[data-sqsp-accordion-block-item-title] button::after {
  content:' +';
  display:block;
  margin-top:10px
}

[data-sqsp-accordion-block-item-title] button[aria-expanded=true]::after {
  content:' −'
}

.sqs-block-accordion ul {
  list-style:none;
  margin:0;
  padding:0
}

.sqs-block-accordion li {
  padding:0
}

.sqs-block-accordion [hidden] {
  display:none!important
}

[data-sqsp-accordion-block-item-description] {
  padding-top:12px;
  font-size:16px;
  line-height:26px
}

/* Local home splash and Enter link */
.home-page .splash-wrapper {
  z-index:100!important;
  animation-name:local-splash-out!important
}

.home-page .enter-link {
  display:block;
  position:relative;
  z-index:101;
  width:max-content;
  margin:0 4vw 4vw auto;
  text-decoration:none;
  font-size:22px
}

.home-page .enter-link span {
  padding-left:12px
}

.home-page #block-yui_3_17_2_1_1705605524589_10421 {
  z-index:auto!important
}

@keyframes local-splash-out {
  from {
    opacity:1
  }
  to {
    opacity:0;
    visibility:hidden
  }
}

/* Phone layout overrides, kept in their original cascade position */
@media(max-width:767px) {
  .site-header {
    padding:19px 6vw;
  }

  .site-identity {
    font-size:20px
  }

  .site-header nav {
    position:fixed;
    inset:0;
    z-index:1;
    background:#FDFDFD;
    flex-direction:column;
    flex-wrap:nowrap;
    align-items:flex-end;
    justify-content:center;
    gap:0;
    padding:86px 7vw 0;
    font-size:32px;
    font-weight:300;
    line-height:1.53;
  }

  .site-header nav a[aria-current] {
    text-decoration:none;
  }

  .menu-toggle:not([hidden]) {
    display:block;
    position:fixed;
    top:19px;
    right:6vw;
    z-index:2;
  }

  .site-header nav[hidden] {
    display:none
  }

  .gallery-grid-wrapper {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px
  }

  .gallery-section {
    padding-left:6vw;
    padding-right:6vw
  }

  .home-page .enter-link {
    margin-right:6vw
  }

  .home-page .sqs-block-accordion {
    position:relative;
    z-index:auto
  }

  .content-page .sqs-html-content h3 {
    font-size:calc(.012 * min(100vh,900px) + 1rem);
  }

  .content-page .sqs-html-content p:not(.sqsrte-small) {
    font-size:calc(1rem - .0024 * min(100vh,900px));
  }
}

/* Home parity measured against the live Chromium render, not export defaults. */
.home-page {
  --sqs-site-max-width:1400px;
  --sqs-site-gutter:2vw;
  position:relative;
  isolation:isolate;
}

.home-page h3 {
  color:#85AECA;
  font-size:min(calc(1.2vw + 1rem), 32.8px);
  font-weight:400;
  line-height:.96;
  letter-spacing:.01em;
  margin:2rem 0;
}

/* The live site's spaced family name falls back to Helvetica; preserve its layout. */
.home-page .sqs-block p,
.home-page .sqs-block button {
  font-family:Helvetica, Arial, sans-serif;
}

.home-page .sqs-block p {
  margin:1rem 0;
}

.home-page .sqs-html-content>:first-child {
  margin-top:0;
}

.home-page .sqs-html-content>:last-child {
  margin-bottom:0;
}

.home-page .sqs-block [data-sqsp-accordion-block-item-title] {
  margin:0;
}

.home-page [data-sqsp-accordion-block-item-title] button {
  display:flex;
  align-items:center;
  gap:0;
}

.home-page [data-sqsp-accordion-block-item-title] button span {
  flex:1;
  min-width:0;
  padding-right:14px;
}

.home-page [data-sqsp-accordion-block-item-title] button::after {
  content:'';
  flex:0 0 14px;
  width:14px;
  height:14px;
  margin-top:0;
  background:linear-gradient(currentColor,currentColor) center/1px 14px no-repeat,
    linear-gradient(currentColor,currentColor) center/14px 1px no-repeat;
}

.home-page [data-sqsp-accordion-block-item-title] button[aria-expanded=true]::after {
  content:'';
  background:linear-gradient(currentColor,currentColor) center/14px 1px no-repeat;
}

.home-page .sqs-block-button-element {
  display:inline-block;
  color:#85AECA;
  font-family:'ibm-plex-serif', serif;
  font-size:16px;
  font-weight:600;
  line-height:24px;
  text-decoration:underline;
  text-underline-offset:4px;
}

@media(max-width:767px) {
  .home-page h3 {
    font-size:calc(.012 * min(100vh, 900px) + 1rem);
  }
}

/* Reduced-motion accessibility overrides */
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }

  .home-page .splash-wrapper {
    display:none
  }
}