.ith-company-page {padding-top: 0; background: #080808;}
.ith-company-page > footer {background: var(--paper); color: var(--ink);}
.ith-company-page .footer-inner :is(strong, .footer-brand) {color: inherit;}
.ith-company-page .footer-brand img {filter: brightness(0);}
.company-page {
    position: relative;
    display: grid;
    isolation: isolate;
    color: #fafafa;
    background: #080808;
}
.company-backdrop, .company-backdrop::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.company-backdrop {z-index: -2; overflow: hidden;}
.company-page--about {grid-template-columns: minmax(0, 1fr);}
.company-page--about > :is(.company-backdrop, .company-panels) {grid-area: 1 / 1;}
.company-page--about > .company-backdrop {
    position: sticky;
    inset: auto;
    top: 0;
    align-self: start;
    width: 100%;
    height: 100vh;
    height: 100lvh;
}
.company-panels {min-width: 0;}
.company-backdrop img, .company-backdrop video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.company-backdrop video {opacity: 0;}
.company-backdrop video.has-frame {opacity: 1;}
.company-backdrop::after {
    content: "";
    z-index: 1;
    background: linear-gradient(180deg, rgb(0 0 0 / 48%), transparent 28%, transparent 72%, rgb(0 0 0 / 42%)),
                linear-gradient(100deg, rgb(0 0 0 / 81%), rgb(0 0 0 / 69%) 42%, rgb(0 0 0 / 43%));
}
.company-layout {
    min-height: 100vh;
    min-height: 100svh;
    padding-block: calc(var(--mast-height) + clamp(1.8rem, 5vh, 4rem)) clamp(3rem, 10vh, 7rem);
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr);
}
.company-content {min-width: 0; max-width: 49rem;}
.company-content h1 {
    margin: 0 0 clamp(1.6rem, 3vw, 2.75rem);
    font: 490 clamp(2.35rem, 5.6vw, 5.5rem)/1.08 var(--brand-font);
    letter-spacing: -.052em;
    overflow-wrap: break-word;
}
.company-copy {
    max-width: 65ch;
    color: #e9e9e9;
    font: 400 clamp(1rem, 1.15vw, 1.2rem)/1.6 'ITH Inter', sans-serif;
}
.company-copy > * {margin: 0;}
.company-copy > * + * {margin-top: 1.15em;}
:is(.company-page--about, .company-page--certificates) .company-copy > p:first-child {
    max-width: 53ch;
    color: #fff;
    font-size: clamp(1.15rem, 1.6vw, 1.55rem);
    line-height: 1.46;
}
.company-copy a {color: #fff;}
.company-opening, .company-chapter {position: relative;}
.company-page--about .company-layout {padding-bottom: max(6rem, 11svh);}
.company-next {
    position: absolute;
    left: 50%;
    bottom: max(1rem, 3.7svh, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    color: white;
    font: 400 1.65rem/1 'ITH Inter', sans-serif;
    text-decoration: none;
}
.company-next:is(:hover, :focus-visible) {color: white; text-decoration: none;}
.company-next:focus-visible {outline: 2px solid white; outline-offset: 4px;}
.chapter-layout {
    min-height: 100vh;
    min-height: 100svh;
    padding-block: calc(var(--mast-height) + 2rem) max(6.5rem, 12svh);
    display: grid;
    grid-template-columns: minmax(0, 42rem) minmax(0, 25rem);
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 6vw, 6.5rem);
}
.chapter-layout > .wp-block-group__inner-container {display: contents;}
.chapter-copy {min-width: 0; container-type: inline-size; font: 400 clamp(1rem, 1.15vw, 1.18rem)/1.6 'ITH Inter', sans-serif;}
.chapter-copy p {margin: 1em 0 0; color: #eee;}
.chapter-copy .chapter-milestone {
    margin: 0 0 .25em;
    color: white;
    font: 490 clamp(3.4rem, 7.5vw, 7.5rem)/1.04 var(--brand-font);
    letter-spacing: -.055em;
}
.chapter-copy h2 {
    margin: 0 0 .85em;
    font: 460 clamp(1.55rem, 2.7vw, 2.6rem)/1.18 var(--brand-font);
    letter-spacing: -.045em;
    text-wrap: balance;
}
.chapter-copy h2:first-child {font-size: clamp(1.5rem, 8.4cqi, 4rem); line-height: 1.08; overflow-wrap: break-word;}
.company-chapter figure {margin: 0; min-width: 0;}
.company-chapter figure img {display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;}
.company-photo-credits {padding-block:1rem; font-size:.875rem; color:inherit}
.company-photo-credits summary {width:fit-content; cursor:pointer}
.company-photo-credits a {color:inherit; text-decoration:underline}
@media (max-width: 800px) {
    .chapter-layout {grid-template-columns: minmax(0, 1fr); align-content: center; gap: 1.6rem;}
    .company-chapter figure {width: min(100%, 22rem);}
}
.company-page--contacts .company-copy a:is([href^="tel:"], [href^="mailto:"]) {
    display: inline-block;
    font-size: clamp(1.25rem, 2.15vw, 2rem);
    font-weight: 480;
    letter-spacing: -.03em;
    text-decoration: underline transparent;
    text-underline-offset: .2em;
    transition: text-decoration-color .2s;
}
.company-page--contacts .company-copy a:is([href^="tel:"], [href^="mailto:"]):is(:hover,:focus-visible) {text-decoration-color: currentColor;}
.company-page--contacts .company-copy .button {
    position: relative;
    display: inline-block;
    margin-top: 1.25rem;
    padding: .5rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
}
.company-page--contacts .company-copy .button::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: .23rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
}
.company-page--contacts .company-copy .button:focus-visible::after {transform: scaleX(1);}
@media (hover: hover) {
    .company-page--contacts .company-copy .button:hover::after {transform: scaleX(1);}
}
.company-page--certificates .company-copy a[href^="mailto:"] {
    display: inline-block;
    padding: .65rem 1.1rem;
    border: 1px solid rgb(255 255 255 / 62%);
    border-radius: 5px;
    background: rgb(0 0 0 / 32%);
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}
.company-page--certificates .company-copy a[href^="mailto:"]:is(:hover,:focus-visible) {background: #292929; border-color: #fff;}
@media (max-width: 700px) {
    .company-backdrop::after {
        background: linear-gradient(180deg, rgb(0 0 0 / 74%), rgb(0 0 0 / 59%) 30%, rgb(0 0 0 / 80%) 85%);
    }
    .company-layout {padding-bottom: max(3rem, env(safe-area-inset-bottom));}
}
@media (max-width: 380px) {
    .company-content h1 {font-size: clamp(1.85rem, 9.4vw, 2.23rem);}
}
@media (max-width: 480px) and (max-height: 650px) {
    .company-page--about .company-layout {padding-block: calc(var(--mast-height) + .8rem) 5rem;}
    .company-page--about .company-content h1 {margin-bottom: .65rem;}
    .company-page--about .company-copy {line-height: 1.4;}
    .company-page--about .company-copy > p:first-child {font-size: 1.06rem; line-height: 1.4;}
    .company-page--about .company-copy > p + p {margin-top: .65em;}
}
@media (prefers-reduced-motion: no-preference) {
    html:has(.company-page--about) {scroll-behavior: smooth;}
    .company-next span {transition: transform .22s ease-out;}
    .company-next:focus-visible span {transform: translateY(5px);}
    .company-page--contacts .company-copy .button::after {transition: transform .24s cubic-bezier(.22,.61,.36,1);}
    .company-content {animation: company-reveal .65s ease-out both;}
    @keyframes company-reveal {from {opacity: 0; filter: blur(4px); transform: translateY(5px);}}
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .company-next:hover span {transform: translateY(5px);}
}
