/* Open Theory Labs additions on top of the ported X-Arterian styles (x-*.css). */

:root {
    --otl-ink: #222;
    --otl-text: #464645;
    --otl-muted: #8f8e8d;
    --otl-paper: #fcfaf8;
    --otl-card: #eceae8;
    --otl-accent: #ffa69e;
    --otl-gutter: calc(4 * var(--space));
}
@media (min-width: 48em) { :root { --otl-gutter: calc(10 * var(--space)); } }

html { scroll-behavior: auto; }
body { color: var(--otl-ink); background: var(--otl-paper); }
.otl-page-spacer { height: 8rem; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* Logo: mark plus wordmark. The words fold away once the page scrolls, like the X-Arterian logo. */
.otl-home-link { display: inline-flex; text-decoration: none; }
.otl-logo { display: inline-flex; align-items: center; gap: 12px; color: currentColor; line-height: 1; }
.otl-logo__mark { width: 28px; height: 28px; flex: none; }
.otl-logo__bar { fill: var(--otl-logo-bar, var(--otl-paper)); transition: fill .2s ease-in-out; }
.otl-logo__word { font: var(--t-h5); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; max-width: 14rem; transition: max-width .45s cubic-bezier(.215,.61,.355,1), opacity .3s ease; }
.otl-logo--compact .otl-logo__word { max-width: 0; opacity: 0; }
.Footer_footerBottom .otl-logo { color: var(--otl-paper); }
.Footer_footerBottom .otl-logo__bar { fill: #222; }
.Layout_logoWrapper .otl-logo { color: var(--otl-paper); }
.Layout_logoWrapper .otl-logo__bar { fill: #222; }
.Layout_layer { background: #222; }

/* Section labels across the ported sections read as phobos-style mono eyebrows */
.Intro_label .line, .Footer_footerTopRight__links__title, .Menu_contact__title, .ContactForm_contactInfo__label, .PainPoint_number, .CaseTeaser_info { font-family: var(--otl-font-mono); }
.Intro_label .line, .Footer_footerTopRight__links__title, .Menu_contact__title { font-weight: 600; letter-spacing: .02em; }

@font-face { font-family: "Roboto Mono"; src: url("../fonts/roboto-mono-variable.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }
.lHeader, .cMenu__inner { --otl-font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; } /* header and menu use the same mono as /careers */
/* ---------- Header card + drop-down menu (otl-landing / actbe.co.jp). Behaviour in main.js ---------- */
:root { --otl-header-h: 80px; --otl-header-w: 15rem; --otl-ease-gleasing: cubic-bezier(.4, 0, 0, 1); --otl-ease-expo: cubic-bezier(.19, 1, .22, 1); --otl-red: #e7211a; }
html.otl-header-compact { --otl-header-h: 44px; }
.lHeader { position: fixed; top: 8px; right: 8px; z-index: 102; width: var(--otl-header-w); max-width: 80%; height: var(--otl-header-h); transition: height .4s var(--otl-ease-gleasing); will-change: height; backface-visibility: hidden; color: #272727; }
.lHeader__inner { position: relative; z-index: 1; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; width: 100%; height: 100%; padding: 16px; }
.lHeader__background, .cMenu__background { position: absolute; top: 0; left: 0; z-index: -1; width: 100%; height: 100%; border-radius: 8px; -webkit-backdrop-filter: blur(35px); backdrop-filter: blur(35px); }
.lHeader__background { overflow: hidden; }
.lHeader__background::before, .cMenu__background::before { position: absolute; inset: 0; z-index: -1; content: ""; background-color: #fff; border-radius: 8px; opacity: .7; }
.lHeader__background::after, .cMenu__background::after { position: absolute; inset: 0; z-index: -1; content: ""; border: 1px solid #fff; border-radius: 8px; }
.lHeader__logo { flex: none; overflow: hidden; transition: opacity .5s var(--otl-ease-expo) .15s, width .4s var(--otl-ease-gleasing), margin .4s var(--otl-ease-gleasing); }
html.otl-header-compact .lHeader__logo { pointer-events: none; opacity: 0; width: 0; margin-right: -14px; transition-delay: 0s; }
.lHeader__logo_link { text-decoration: none; color: inherit; }
.otl-header__logo-img { display: block; width: auto; height: 50px; border-radius: 3px; }
.otl-wordmark { display: block; font: 600 13px/22px var(--otl-font-sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: #272727; }
.otl-wordmark__accent { color: var(--otl-red); }
.lHeader__nav { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex: 1 1 auto; min-width: 0; }
.lHeader__nav_home_link { display: flex; gap: 8px; align-items: center; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; max-width: 11rem; }
.lHeader__nav_home_icon { width: 12px; height: 12px; flex: none; }
.lHeader__nav_home_icon svg { overflow: visible; display: block; }
.lHeader__nav_home_icon path { transition: transform .6s var(--otl-ease-expo); }
.lHeader__nav_home_text { font: 400 12px/1 var(--otl-font-mono); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .6s var(--otl-ease-expo); }
@media (hover: hover) {
    .lHeader__nav_home_link:hover .lHeader__nav_home_text { transform: translateX(-11px); }
    .lHeader__nav_home_link:hover .lHeader__nav_home_icon path[data-id="2"], .lHeader__nav_home_link:hover .lHeader__nav_home_icon path[data-id="3"] { transform: translateX(var(--otl-home-w, 30px)); }
}
.lHeader__nav_menu { display: flex; align-items: center; width: 24px; height: 8px; }
.lHeader__nav_menu_button { width: 100%; height: 24px; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.lHeader__nav_menu_button_icon { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lHeader__nav_menu_button_line { position: absolute; width: 100%; height: 1px; background-color: #272727; transition: transform .32s var(--otl-ease-expo), opacity .2s linear; }
.lHeader__nav_menu_button_line:first-child { transform: translateY(-4px); }
.lHeader__nav_menu_button_line:last-child { transform: translateY(4px); }
html.otl-menu-open .lHeader__nav_menu_button_line:first-child { transform: translateY(0) rotate(12deg); transition-delay: .2s; }
html.otl-menu-open .lHeader__nav_menu_button_line:nth-child(2) { transform: scaleX(0); }
html.otl-menu-open .lHeader__nav_menu_button_line:last-child { transform: translateY(0) rotate(-12deg); transition-delay: .2s; }

.cMenu__inner { position: fixed; inset: 0; z-index: 101; pointer-events: none; visibility: hidden; opacity: 0; transition: opacity .6s var(--otl-ease-expo), visibility 0s linear .6s; }
html.otl-menu-open .cMenu__inner { pointer-events: auto; visibility: visible; opacity: 1; transition: opacity 0s, visibility 0s; }
.cMenu__overlay { position: absolute; inset: 0; z-index: 1; }
.cMenu__wrapper { position: absolute; top: calc(var(--otl-header-h) + 12px); right: 8px; z-index: 2; width: var(--otl-header-w); max-width: 80%; overflow: hidden; border-radius: 8px; transition: top .4s var(--otl-ease-gleasing); outline: none; color: #272727; }
.cMenu__content { position: relative; width: 100%; max-height: calc(100dvh - var(--otl-header-h) - 20px); padding: 24px 16px 16px; overflow: hidden auto; scrollbar-width: none; }
.cMenu__content::-webkit-scrollbar { display: none; }
.cMenu__background { transform: scaleY(0); transform-origin: top; }
html.otl-menu-open .cMenu__background { transform: scaleY(1); transition: transform 1s var(--otl-ease-expo); }
.cMenu__separator { height: 4px; background: linear-gradient(to right, #272727 0 5.3px, transparent 5.3px 6.8px) 0 0 / 6.8px 1.1px repeat-x, linear-gradient(to right, #272727 0 5.3px, transparent 5.3px 6.8px) 0 2.9px / 6.8px 1.1px repeat-x; }
.cMenu__repeat { width: 100%; height: 1px; margin-top: 20px; background-image: linear-gradient(to right, #272727, #272727 2px, transparent 2px, transparent 4px); background-repeat: repeat-x; background-size: 4px 2px; background-position: bottom; }
.cMenu__nav { margin-top: 12px; counter-reset: main-nav; }
.cMenu__nav_list { display: flex; flex-direction: column; align-items: flex-start; margin: 0; padding: 0; list-style: none; }
.cMenu__nav_item { counter-increment: main-nav; }
.cMenu__nav_item_link { display: flex; gap: 8px; align-items: flex-start; padding: 12px 0; text-decoration: none; color: inherit; }
.cMenu__nav_item_index { font: 400 .625rem/1 var(--otl-font-mono); letter-spacing: -.02em; }
.cMenu__nav_item_index::before { content: counter(main-nav, decimal-leading-zero); }
.cMenu__nav_item_text { font: 400 1.25rem/1 var(--otl-font-mono); letter-spacing: -.04em; }
.cMenu__nav_item.is-current .cMenu__nav_item_text { color: #8f8e8d; }
.cMenu__contact { width: 100%; margin-top: 24px; }
.cMenu__contact_link { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: inherit; }
.cMenu__contact_text { font: 500 2.75rem/1 var(--otl-font-mono); letter-spacing: -.06em; }
.cMenu__contact_barcode { display: block; width: 100%; height: 40px; margin-top: 8px; color: #272727; }
.cMenu__contact_barcode svg { width: 100%; height: 100%; display: block; }
.cMenu__contact_date { margin-top: 4px; margin-left: auto; }
.cMenu__contact_date_time { display: block; font: 400 .625rem/1 var(--otl-font-mono); letter-spacing: -.02em; }

/* Elements that flicker in when the menu opens (random delays are set in main.js) */
.otl-menu .cMenu__separator, .otl-menu .cMenu__repeat, .otl-menu .cMenu__nav_item_index, .otl-menu .cMenu__nav_item_text, .otl-menu .cMenu__contact_text .-char, .otl-menu .cMenu__contact_barcode, .otl-menu .cMenu__contact_date { opacity: 0; }
html.otl-menu-open .otl-menu .cMenu__separator, html.otl-menu-open .otl-menu .cMenu__repeat, html.otl-menu-open .otl-menu .cMenu__nav_item_index, html.otl-menu-open .otl-menu .cMenu__contact_barcode, html.otl-menu-open .otl-menu .cMenu__contact_date { opacity: 1; transition: opacity .4s var(--otl-ease-expo) .6s; }
html.otl-menu-open .otl-menu .cMenu__nav_item_text, html.otl-menu-open .otl-menu .cMenu__contact_text .-char { animation: otl-flicker .48s linear both; animation-delay: calc(.6s + var(--d, 0s)); }
@keyframes otl-flicker { 0% { opacity: 0; } 16% { opacity: .1; } 36% { opacity: 1; } 52% { opacity: .2; } 64% { opacity: .1; } 76% { opacity: 1; } 88% { opacity: .2; } 100% { opacity: 1; } }

/* Letter roll on hover: main letters slide up and out, a copy slides in from below */
.otl-roll { position: relative; display: inline-flex; overflow: hidden; }
.otl-roll .-main-text, .otl-roll .-copy-text { display: inline-flex; white-space: pre; }
.otl-roll .-copy-text { position: absolute; top: 0; left: 0; }
.otl-roll .-char { display: inline-block; transition: transform .32s var(--otl-ease-gleasing); transition-delay: calc(var(--i, 0) * 30ms); }
.otl-roll .-copy-text .-char { transform: translateY(140%); }
@media (hover: hover) {
    a:hover > .otl-roll .-main-text .-char, a:hover .otl-roll .-main-text .-char { transform: translateY(-140%); }
    a:hover > .otl-roll .-copy-text .-char, a:hover .otl-roll .-copy-text .-char { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .lHeader, .cMenu__wrapper, .cMenu__background, .otl-roll .-char { transition: none !important; }
    html.otl-menu-open .otl-menu .cMenu__nav_item_text, html.otl-menu-open .otl-menu .cMenu__contact_text .-char { animation: none; opacity: 1; }
}

/* Old top bar (kept for reference, no longer rendered) */
.otl-burger { background: none; border: 0; padding: 0; color: inherit; }
#custom-navbar { transition: transform .4s cubic-bezier(.215,.61,.355,1), background-color .2s ease-in-out; }
.Menu_social a { text-decoration: none; }
.Menu_menu__open .Menu_menu__buttonwrapper .menubutton:nth-child(10) { animation-delay: 1.1s; }

/* Hero globe (inline styles from the React component, moved here) */
#globe-3d-canvas { width: 100%; height: 100vh; overflow: hidden; position: relative; z-index: 1; transition: opacity .7s ease-in; }
#globe-3d-canvas canvas { position: absolute; top: 0; left: 0; width: 100% !important; height: calc(100% - 60px) !important; display: block; }
@media (max-width: 766px) {
    /* Phones: the globe fills the space above, the headline sits at the foot of the screen (borndigital.be) */
    .otl-hero.otl-snap { justify-content: flex-end; align-items: stretch; }
    .otl-hero .hero-section_heroSectionHeading__2dW27 { position: relative; order: -1; flex: 1 1 auto; top: auto; height: auto; min-height: 30vh; margin-top: calc(var(--otl-nav-h) + 1rem); }
    .otl-hero > .custom-container { min-height: 0 !important; height: auto !important; padding-top: 0; flex: 0 0 auto; }
    .otl-hero > .custom-container > div { height: auto !important; padding-bottom: 1.5rem; }
    .otl-hero .otl-hero__title { margin-top: 0 !important; }
    #globe-3d-canvas { position: absolute; inset: 0; height: 100%; opacity: 1; z-index: 1; }
    #globe-3d-canvas canvas { height: 100% !important; }
}

/* Home hero: headline lines rise from behind a mask; "Think Build / Disrupt" sweep right to left
   behind the globe first (the ACTBE/otl-landing opening). Sequenced in main.js. */
.otl-hero__title { display: flex; flex-direction: column; font-family: var(--otl-font-heading); font-weight: 600; font-size: clamp(2.75rem, 7vw, 6.5rem); line-height: 1; letter-spacing: -0.035em; }
.otl-hero__mask { display: block; overflow: hidden; padding: 0 .04em .08em 0; margin-bottom: -.04em; }
.otl-hero__line { display: inline-block; transform: translateY(0); transition: transform 1s cubic-bezier(.4,0,0,1); }
.otl-hero__mask + .otl-hero__mask .otl-hero__line { transition-delay: .32s; }
.otl-hero__sub { transition: opacity .8s cubic-bezier(.4,0,0,1) .6s, transform .8s cubic-bezier(.4,0,0,1) .6s; }
html.otl-intro .otl-hero__line { transform: translateY(120%); transition: none; }
html.otl-intro .otl-hero__sub { opacity: 0; transform: translateY(16px); transition: none; }
.otl-highlight { display: inline-block; background-color: #cc2222; color: #fff; padding: 0 .12em; }

.otl-sweep { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.otl-sweep__line { position: absolute; left: 0; white-space: nowrap; font-family: var(--otl-font-heading); font-weight: 600; font-size: clamp(3rem, 9vw, 8rem); line-height: 1; letter-spacing: -0.03em; color: #272727; visibility: hidden; will-change: transform; }
.otl-sweep__line--1 { top: 18%; }
.otl-sweep__line--2 { top: 34%; color: #cc2222; }
@media (max-width: 767px) { .otl-sweep__line--1 { top: 22%; } .otl-sweep__line--2 { top: 32%; } }

/* ---------- Full-screen sections that snap (home). Snapping itself lives in main.js. ---------- */
:root { --otl-nav-h: 72px; }
.otl-snap { min-height: 100vh; min-height: 100svh; box-sizing: border-box; }
.otl-snap:not(.otl-hero):not(.otl-xp):not(.otl-work) { display: flex; flex-direction: column; justify-content: center; }

/* Touch devices scroll natively: no snapping, no Lenis, so the page never resists the finger */

/* Hero fills the screen again */
.otl-hero.otl-snap { justify-content: center; padding-top: 0; padding-bottom: 0; }
.otl-hero > .custom-container { display: flex; flex-direction: column; justify-content: center; min-height: 100svh; padding-top: var(--otl-nav-h); }
.otl-hero .otl-hero__title { margin-top: 0; }

/* Studio: tighter padding so the four statements fit one screen */
.StudioBlock_section.otl-snap { padding: calc(var(--otl-nav-h) + 1.5rem) 0 2.5rem; margin-bottom: 0; }
.StudioBlock_section.otl-snap .StudioBlock_container { width: 100%; }
.StudioBlock_section.otl-snap .StudioBlock_content { gap: 24px; }
.StudioBlock_section.otl-snap .PainPoint_painpoint { gap: 16px; }

/* What we do: panels take whatever height the screen has left */
.otl-xp.otl-snap { display: flex; flex-direction: column; padding: calc(var(--otl-nav-h) + 1.5rem) 0 2.5rem; }
.otl-xp.otl-snap .otl-xp__container { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.otl-xp.otl-snap .otl-xp__panels { flex: 1 1 auto; height: auto; min-height: 380px; max-height: 680px; }
@media (max-width: 767px) { .otl-xp.otl-snap .otl-xp__panels { flex: none; min-height: 0; max-height: none; } }

/* Work: intro on top, four cards in one row (2 x 2 on phones), sized to fit one screen */
.otl-work.otl-snap { margin-block: 0; padding: calc(var(--otl-nav-h) + 1.5rem) 0 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.otl-work .CasesTeaser_divider { display: none; }
.otl-work .CasesTeaser_grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; gap: 1.5rem 1rem; align-items: start; }
@media (min-width: 48em) { .otl-work .CasesTeaser_grid { grid-template-columns: repeat(4, 1fr); } }
.otl-work .CasesTeaser_grid > .CasesTeaser_gridItem.CasesTeaser_gridItem { grid-column: auto; margin-top: 0; top: 0; position: relative; display: block; }
.otl-work .CasesTeaser_grid > .CasesTeaser_gridItem.CasesTeaser_gridIntro.CasesTeaser_gridIntro { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.otl-work .CaseTeaser_container { max-width: none; }
.otl-work .CaseTeaser_imageWrapper { aspect-ratio: 3 / 4; max-height: calc(100svh - var(--otl-nav-h) - 18rem); width: 100%; margin-bottom: 1rem; }
.otl-work .CaseTeaser_title { font: var(--t-h5); }

/* Method, Lab, Constants, Insights, Contact: centred in the screen */
.otl-method.otl-snap { margin-bottom: 0; padding: var(--otl-nav-h) 0 2rem; }
.otl-lab-banner.otl-snap { padding-top: 0; padding-bottom: 0; justify-content: center; }
.otl-lab-banner.otl-snap .FullWidthImageCTA_container { min-height: calc(100svh - 4rem); display: flex; }
.otl-lab-banner.otl-snap .FullWidthImageCTA_background, .otl-lab-banner.otl-snap .FullWidthImageCTA_picture, .otl-lab-banner.otl-snap .FullWidthImageCTA_image { height: 100%; }
.otl-lab-banner.otl-snap .FullWidthImageCTA_image { object-fit: cover; width: 100%; }
.otl-constants.otl-snap, .otl-insights.otl-snap { padding-top: calc(var(--otl-nav-h) + 2rem); padding-bottom: 3rem; }
.ContactForm_section.otl-snap { display: flex; flex-direction: column; justify-content: center; }

/* Studio painpoints: stop long statements from crowding */
.PainPoint_title { max-width: 26ch; }

/* Services cards: whole card is a link, and copy may run to three lines */
a.Offerings_card { display: block; text-decoration: none; color: inherit; }
.Offerings_card__text { height: auto !important; min-height: 50px; }
.otl-offerings__lede { margin-top: 1rem; max-width: 34rem; color: #b3b2b0; font: var(--t-body-lg); }
.otl-reveal { opacity: 0; transition: transform .2s, opacity 1.8s; }
.otl-reveal.is-visible { opacity: 1; }

/* Work background word slides with scroll */
.otl-slide-text { will-change: transform; }
.otl-parallax { will-change: transform; }

/* Method cards (ported review slider) */
.otl-method .testimonials-slider_review__Ta71D { gap: 1.25rem; }
.otl-method__line { font: var(--t-h4); }
.otl-method__lede { color: var(--otl-text); font: var(--t-body); max-width: 18rem; }
.otl-method .testimonials-slider_btn__QL6Zr { height: 46px; flex: none; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.otl-method .slider-track { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.otl-method .testimonials-slider_review__Ta71D { scroll-snap-align: start; }
@media (min-width: 64em) {
    .otl-method .slider-track { overflow: visible; }
    .otl-method .testimonials-slider_reviews__8AFHh .testimonials-slider_reviewSection__1_2d_ .testimonials-slider_review__Ta71D { min-width: 0; flex: 1 1 0; }
    .otl-method .testimonials-slider_reviews__8AFHh .testimonials-slider_desc__HdSHL { font-size: 20px; line-height: 1.4; }
}
.otl-method .slider-track::-webkit-scrollbar { display: none; }

/* The Constants strip */
.otl-constants { padding-top: 6rem; padding-bottom: 6rem; }
.otl-constants__head { display: grid; gap: 1.5rem; max-width: 52rem; margin-bottom: 3rem; }
.otl-constants__title { font: var(--t-h2); font-weight: 400; }
.otl-constants__grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; border-top: 1px solid #d7d6d4; }
@media (min-width: 48em) { .otl-constants__grid { grid-template-columns: repeat(3, 1fr); } }
.otl-constants__item { display: grid; gap: .75rem; padding: 1.75rem 0; text-decoration: none; border-bottom: 1px solid #d7d6d4; transition: padding-left .3s ease; }
.otl-constants__item:hover { padding-left: .75rem; }
.otl-constants__item h3 { font: var(--t-h3); }
.otl-constants__item p { font: var(--t-body-lg); color: var(--otl-text); max-width: 30ch; }
.otl-constants__num { font: var(--t-eyebrow); color: var(--otl-muted); }

/* Insights grid and cards */
.otl-insights { padding-top: 2rem; padding-bottom: 6rem; }
.otl-insights__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.otl-insights__grid { display: grid; gap: 2.5rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 48em) { .otl-insights__grid { grid-template-columns: repeat(3, 1fr); } }
.otl-card__link { display: grid; gap: .75rem; text-decoration: none; }
.otl-card__image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--otl-card); border-radius: 4px; }
.otl-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.215,.61,.355,1); }
.otl-card__link:hover .otl-card__image img { transform: scale(1.04); }
.otl-card__meta, .otl-card__date { display: flex; gap: .75rem; font: var(--t-eyebrow); color: var(--otl-muted); text-transform: uppercase; letter-spacing: .04em; }
.otl-card__title { font: var(--t-h4); }
.otl-card__excerpt { font: var(--t-body); color: var(--otl-text); }
.otl-empty { font: var(--t-lead); color: var(--otl-text); padding: 2rem 0; }
.pagination { display: flex; gap: 1.5rem; align-items: center; margin-top: 3rem; font: var(--t-small); }

/* Page hero used by inner pages */
.otl-page-hero { padding-top: 10rem; padding-bottom: 3rem; display: grid; gap: 1.5rem; }
.otl-page-hero__title { font: var(--t-h1); font-size: clamp(2.25rem, 4.6vw, 4rem); letter-spacing: -0.03em; max-width: 24ch; }
.otl-page-hero__lede { font: var(--t-lead); color: var(--otl-text); max-width: 42rem; }

/* Articles and simple pages */
.otl-article__head { padding-top: 10rem; display: grid; gap: 1.5rem; max-width: 60rem; }
.otl-article__meta { display: flex; gap: 1rem; flex-wrap: wrap; font: var(--t-eyebrow); text-transform: uppercase; letter-spacing: .04em; color: var(--otl-muted); }
.otl-article__meta a { text-decoration: none; color: var(--otl-ink); }
.otl-article__title { font: var(--t-h1); font-size: clamp(2.25rem, 4.6vw, 4rem); letter-spacing: -0.02em; }
.otl-article__lede { font: var(--t-lead); color: var(--otl-text); max-width: 44rem; }
.otl-article__image { margin: 3rem 0 0; }
.otl-article__image img { width: 100%; border-radius: 4px; }
.otl-article__image figcaption { font: var(--t-small); color: var(--otl-muted); margin-top: .5rem; }
.otl-article__content { max-width: calc(46rem + 2 * var(--otl-gutter)); margin: 3rem auto 6rem; font: var(--t-body-lg); font-size: 1.125rem; line-height: 1.7; color: var(--otl-ink); }
.otl-article__content > * + * { margin-top: 1.5rem; }
.otl-article__content h2 { font: var(--t-h3); margin-top: 3rem; }
.otl-article__content h3 { font: var(--t-h4); margin-top: 2rem; }
.otl-article__content a { text-decoration: underline; text-underline-offset: 3px; }
.otl-article__content ul, .otl-article__content ol { padding-left: 1.25rem; }
.otl-article__content ul { list-style: disc; }
.otl-article__content ol { list-style: decimal; }
.otl-article__content blockquote { border-left: 2px solid var(--otl-ink); padding-left: 1.25rem; font-style: italic; }
.otl-article__content pre { font-family: var(--otl-font-mono); background: #222; color: var(--otl-paper); padding: 1.25rem; overflow-x: auto; border-radius: 4px; font-size: .9rem; line-height: 1.5; }
.otl-article__content figcaption { font: var(--t-small); color: var(--otl-muted); text-align: center; }
.otl-article__tags { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 6rem; }
.otl-article__tags a { border: 1px solid var(--otl-ink); border-radius: 2rem; padding: .25rem 1rem; font: var(--t-small); text-decoration: none; }
.otl-error { padding-bottom: 6rem; }

/* Ghost editor card widths (required by Ghost themes) */
.kg-width-wide { position: relative; width: min(85vw, 70rem); left: 50%; transform: translateX(-50%); max-width: none; }
.kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); max-width: none; }
.kg-width-full img, .kg-width-wide img { width: 100%; }

/* Contact form */
.otl-contact__intro { font: var(--t-lead); color: var(--otl-text); max-width: 26rem; margin-top: 1rem; }
.otl-contact__note { font: var(--t-small); color: var(--otl-text); min-height: 2rem; }
.Checkbox_checkboxWrapper label a { text-decoration: underline; }

/* What we do: horizontal accordion modelled on the phobos.com.au expertise section */
.otl-xp { --xp-ease: cubic-bezier(.22,1,.36,1); --xp-light: #eddfee; padding: 99px 0; background: var(--otl-paper); }
.otl-xp__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.otl-xp__header { display: flex; flex-direction: column; gap: 16px; }
.otl-xp__eyebrow { font: var(--t-eyebrow); letter-spacing: .2px; text-transform: uppercase; color: #222; }
.otl-xp__heading { font: var(--t-h4); text-transform: uppercase; color: #222; max-width: 32rem; }
.otl-xp__link { display: flex; align-items: stretch; text-decoration: none; color: #222; }
.otl-xp__link-icon { width: 35px; height: 34px; border: 1px solid #cd8dbd; display: flex; align-items: center; justify-content: center; transition: background-color .3s, color .3s; }
.otl-xp__link-icon svg { width: 12px; height: 12px; transition: transform .4s var(--xp-ease); }
.otl-xp__link-text { padding: 8px; display: flex; align-items: center; font: var(--t-button); text-transform: uppercase; }
.otl-xp__link:hover .otl-xp__link-icon { background: #cd8dbd; color: #222; }
.otl-xp__link:hover .otl-xp__link-icon svg { transform: rotate(90deg); }

.otl-xp__panel, .otl-xp__panel h3, .otl-xp__panel p, .otl-xp__panel span { font-family: var(--otl-font-mono); }
.otl-xp__panels { display: flex; width: 100%; height: 680px; overflow: hidden; font-family: var(--otl-font-mono); }
.otl-xp__panel { --xp-fg: #222; position: relative; display: block; flex: .55 1 0%; min-width: 0; overflow: hidden; background-color: var(--xp-bg); color: var(--xp-fg); text-decoration: none; cursor: pointer; transition: flex .7s var(--xp-ease); }
.otl-xp__panel.is-dark { --xp-fg: var(--xp-light); }
.otl-xp__panel.is-active { flex-grow: 4; }

.otl-xp__plus { position: absolute; top: 24px; right: 24px; font-size: 28px; font-weight: 300; line-height: 1; color: var(--xp-fg); transition: opacity .25s, transform .35s var(--xp-ease); }
.otl-xp__vertical { position: absolute; bottom: 32px; left: 50%; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); white-space: pre-line; font-size: 16px; font-weight: 500; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; color: var(--xp-fg); transition: opacity .25s, transform .3s var(--xp-ease); }
.otl-xp__panel.is-active .otl-xp__plus { opacity: 0; transform: rotate(45deg) scale(.8); }
.otl-xp__panel.is-active .otl-xp__vertical { opacity: 0; transform: translateX(-50%) rotate(180deg) translateY(-8px); }

.otl-xp__content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; pointer-events: none; }
.otl-xp__title { margin: 0; white-space: pre-line; font-size: 28px; line-height: 1.15; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--xp-fg); min-width: 22rem; opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; }
.otl-xp__blurb p { margin: 0; max-width: min(520px, calc(100% - 150px)); min-width: 22rem; font-size: 15px; line-height: 24px; color: var(--xp-fg); opacity: 0; transform: translateY(12px); transition: opacity .15s .08s, transform .15s .08s; }
.otl-xp__panel.is-active .otl-xp__title { opacity: 1; transform: translateY(0); transition: opacity .55s var(--xp-ease) .18s, transform .6s cubic-bezier(.16,1,.3,1) .18s; }
.otl-xp__panel.is-active .otl-xp__blurb p { opacity: .9; transform: translateY(0); transition: opacity .55s var(--xp-ease) .3s, transform .6s cubic-bezier(.16,1,.3,1) .3s; }

.otl-xp__more { position: absolute; bottom: 32px; right: 32px; display: inline-flex; align-items: center; gap: 12px; color: var(--xp-fg); opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .35s var(--xp-ease), transform .4s var(--xp-ease); }
.otl-xp__more > span:last-child { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }
.otl-xp__more-icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--xp-fg) 50%, transparent); font-size: 16px; font-weight: 300; line-height: 1; transition: border-color .3s; }
.otl-xp__panel.is-active:hover .otl-xp__more { opacity: 1; transform: translateY(0); }
.otl-xp__panel.is-active:hover .otl-xp__more-icon { border-color: var(--xp-fg); }

.otl-xp__pct { position: absolute; top: 24px; right: 24px; font-size: 13px; font-weight: 400; letter-spacing: .04em; color: var(--xp-fg); opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; }
.otl-xp__panel.is-active .otl-xp__pct { opacity: .3; transform: translateY(0); transition: opacity .5s .3s, transform .5s .3s; }
.otl-xp__track { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; overflow: hidden; background-color: color-mix(in srgb, var(--xp-fg) 15%, transparent); opacity: 0; transition: opacity .4s; }
.otl-xp__panel.is-active .otl-xp__track { opacity: 1; }
.otl-xp__bar { display: block; height: 100%; width: 0; background-color: color-mix(in srgb, var(--xp-fg) 60%, transparent); }

/* Phones: the same panels stacked; the active one opens downward */
@media (max-width: 767px) {
    .otl-xp { padding: 64px 0; }
    .otl-xp__panels { flex-direction: column; height: auto; }
    .otl-xp__panel { flex: none; height: 64px; transition: height .7s var(--xp-ease); }
    .otl-xp__panel.is-active { height: 380px; }
    .otl-xp__vertical { writing-mode: horizontal-tb; transform: none; left: 20px; right: 52px; bottom: auto; top: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
    .otl-xp__heading br { display: none; }
    .otl-xp__panel.is-active .otl-xp__vertical { transform: translateY(-8px); }
    .otl-xp__plus { top: 18px; right: 20px; }
    .otl-xp__content { padding: 24px 20px 32px; }
    .otl-xp__title, .otl-xp__blurb p { min-width: 0; max-width: none; }
    .otl-xp__title { font-size: 22px; }
    .otl-xp__pct { top: 20px; right: 20px; }
    .otl-xp__more { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .otl-xp__panel, .otl-xp__title, .otl-xp__blurb p { transition: none !important; }
}

/* Custom cursor (see assets/js/cursor.js) */
.otl-cursor { position: fixed; top: 0; left: 0; width: 0; height: 0; z-index: 2000; pointer-events: none; opacity: 0; mix-blend-mode: difference; will-change: transform, opacity; transition: opacity .18s; display: none; }
.otl-cursor[data-visible="true"] { opacity: 1; }
.otl-cursor__body { position: absolute; top: 0; left: 0; width: 30px; height: 25px; display: block; transform-origin: 92% center; will-change: transform; transition: opacity .18s; }
.otl-cursor__body svg { width: 100%; height: 100%; display: block; }
.otl-cursor[data-interactive="true"] .otl-cursor__body { opacity: .92; }
.otl-cursor[data-pressed="true"] .otl-cursor__body { opacity: .76; }
@media (hover: hover) and (pointer: fine) {
    html[data-custom-cursor="true"], html[data-custom-cursor="true"] body, html[data-custom-cursor="true"] body *, html[data-custom-cursor="true"] body ::before, html[data-custom-cursor="true"] body ::after { cursor: none !important; }
    html[data-custom-cursor="true"] body input, html[data-custom-cursor="true"] body textarea, html[data-custom-cursor="true"] body [contenteditable] { cursor: text !important; }
    html[data-custom-cursor="true"] .otl-cursor { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    .otl-cursor { display: none !important; }
    html.otl-intro .otl-hero__line, html.otl-intro .otl-hero__sub { transform: none; opacity: 1; }
    .otl-sweep { display: none; }
    .otl-reveal { opacity: 1; transition: none; }
}

/* Location card above the footer (home) */
.otl-location { padding-top: 1rem; padding-bottom: 5rem; }
.otl-location__card { display: grid; grid-template-columns: 1fr; border-radius: 1.5rem; overflow: hidden; background: var(--otl-card); border: 1px solid #d7d6d4; }
.otl-location__map { min-height: 18rem; background: var(--otl-card); }
.otl-location__map iframe { display: block; width: 100%; height: 100%; min-height: 18rem; border: 0; filter: grayscale(1) contrast(1.05); }
.otl-location__info { display: grid; align-content: center; gap: 1rem; padding: 2rem 1.5rem; }
.otl-location__label { display: flex; align-items: center; gap: .5rem; color: var(--otl-muted); margin: 0; }
.otl-location__title { margin: 0; color: var(--otl-ink); }
.otl-location__link { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; font: var(--t-button); text-transform: uppercase; text-decoration: none; color: var(--otl-paper); background: var(--otl-ink); padding: .8rem 1.25rem; border-radius: 2rem; transition: transform .3s var(--otl-ease-expo, ease); }
.otl-location__link:hover .otl-location__arrow { transform: translateX(.3rem); }
.otl-location__arrow { display: inline-block; transition: transform .3s var(--otl-ease-expo, ease); }
.otl-location__more { font: var(--t-small); color: var(--otl-text); text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
@media (min-width: 768px) {
    .otl-location__card { grid-template-columns: 3fr 2fr; }
    .otl-location__map, .otl-location__map iframe { min-height: 22rem; }
    .otl-location__info { padding: 3rem; }
}

/* Phones: a firmer header card so page text never shows through it */
@media (max-width: 766px) {
    .lHeader__background::before { opacity: .94; }
}
