/* =============================================================
   ORD — Design Tokens
   Palette taken from the ORD logo: signal red + deep navy, on a
   navy-black (dark) or clean white (light) base.
   Type: Poppins (display) / Inter (body) / JetBrains Mono (data)
   ============================================================= */
:root {
	--ord-bg:        #070D1E;
	--ord-bg-alt:    #0A1329;
	--ord-panel:     #0F1A38;
	--ord-panel-2:   #142347;
	--ord-border:    rgba(255,255,255,.10);
	--ord-border-2:  rgba(255,255,255,.16);
	--ord-text:      #E8ECF8;
	--ord-text-dim:  #A9B3CF;
	--ord-text-dim-2:#7C88AC;
	--ord-heading:   #FFFFFF;

	--ord-primary:   #E30B17;   /* logo red — buttons, fills */
	--ord-accent:    #FF5A66;   /* red for text/icons on dark */
	--ord-secondary: #86ABFF;   /* light navy-blue for text/icons on dark */
	--ord-navy:      #0A2C6B;   /* logo navy */
	--ord-royal:     #2A63D8;

	--ord-grad-brand: linear-gradient(120deg, #E30B17 0%, #BB0B36 52%, #1B4CB4 100%);
	--ord-grad-glow:  radial-gradient(circle, rgba(227,11,23,.32), transparent 70%);

	--ord-veil-1: rgba(255,255,255,.015);
	--ord-veil-2: rgba(255,255,255,.02);
	--ord-veil-3: rgba(255,255,255,.03);
	--ord-veil-4: rgba(255,255,255,.05);
	--ord-star-empty: rgba(255,255,255,.15);
	--ord-header-bg: rgba(7,13,30,0);
	--ord-header-bg-scrolled: rgba(7,13,30,.88);
	--ord-mobile-nav-bg: rgba(7,13,30,.98);
	--ord-map-filter: invert(92%) hue-rotate(180deg) brightness(95%) contrast(90%);
	--ord-logo-card-bg: var(--ord-panel-2);
	--ord-logo-card-bg-hover: #1B2E5C;
	--ord-logo-card-border: var(--ord-border-2);

	--ord-font-display: 'Poppins', 'Segoe UI', sans-serif;
	--ord-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--ord-font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

	--ord-radius-sm: 0.625rem;
	--ord-radius: 1rem;
	--ord-radius-lg: 1.5rem;
	--ord-container: clamp(76.25rem, 92vw, 110rem);
	--ord-header-h: 5.25rem;

	--ord-ease: cubic-bezier(.22,1,.36,1);

	color-scheme: dark;
}

/* =============================================================
   Light mode — toggled via [data-theme="light"] on <html>,
   set by inline anti-flash script (header.php) + main.js
   ============================================================= */
:root[data-theme="light"] {
	--ord-bg:        #F7F8FC;
	--ord-bg-alt:    #EDF0F8;
	--ord-panel:     #FFFFFF;
	--ord-panel-2:   #F3F5FB;
	--ord-border:    rgba(10,31,77,.10);
	--ord-border-2:  rgba(10,31,77,.17);
	--ord-text:      #27304A;
	--ord-text-dim:  #566079;
	--ord-text-dim-2:#76819B;
	--ord-heading:   #0A1F4D;

	--ord-accent:    #C8091A;
	--ord-secondary: #0A2C6B;

	--ord-veil-1: rgba(10,31,77,.02);
	--ord-veil-2: rgba(10,31,77,.03);
	--ord-veil-3: rgba(10,31,77,.045);
	--ord-veil-4: rgba(10,31,77,.065);
	--ord-star-empty: rgba(10,31,77,.18);
	--ord-header-bg: rgba(247,248,252,0);
	--ord-header-bg-scrolled: rgba(255,255,255,.92);
	--ord-mobile-nav-bg: rgba(255,255,255,.99);
	--ord-map-filter: none;
	--ord-logo-card-bg: #FFFFFF;
	--ord-logo-card-bg-hover: #F2F6FF;
	--ord-logo-card-border: rgba(10,31,77,.10);

	color-scheme: light;
}

/* Smooth dark/light theme switching. Components with their own transition
   list (cards, buttons, etc.) declare background-color/border-color/color
   directly in that list — a second `transition` rule here would be silently
   overridden rather than merged, since transition is a shorthand. This rule
   only needs to cover elements that don't declare their own transition,
   which in practice is almost all plain text and a few simple containers. */
body, .ord-site-header, .ord-primary-nav, .ord-download-row, .ord-testimonial-card,
.ord-form-field input, .ord-form-field textarea,
h1, h2, h3, h4, h5, p, span, li, label, td, th {
	transition: background-color .3s var(--ord-ease), border-color .3s var(--ord-ease), color .3s var(--ord-ease);
}

/* =============================================================
   Reset
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--ord-header-h); }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
body {
	margin: 0;
	background: var(--ord-bg);
	color: var(--ord-text);
	font-family: var(--ord-font-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
/* Icon sizing — ord_icon() SVGs ship without width/height attributes, so without
   this rule browsers fall back to their default replaced-element size (huge). */
svg.ord-icon { width: 1.375rem; height: 1.375rem; flex-shrink: 0; }
svg.ord-icon-sm { width: 1rem; height: 1rem; flex-shrink: 0; }
svg.ord-icon-xs { width: 0.8125rem; height: 0.8125rem; flex-shrink: 0; }
svg.ord-icon-lg { width: 2.5rem; height: 2.5rem; flex-shrink: 0; color: var(--ord-text-dim-2); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--ord-font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ord-heading); }
p { margin: 0 0 1em; color: var(--ord-text-dim); }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; appearance: none; -webkit-appearance: none; }
input, textarea { font-family: inherit; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); overflow: hidden; height: 1px; width: 1px; }
.skip-link { top: -3.125rem; left: 0.625rem; position: fixed; z-index: 10000; background: var(--ord-primary); color: #fff; padding: 0.625rem 1.125rem; border-radius: 0.5rem; transition: top .2s; }
.skip-link:focus { top: 0.625rem; position: fixed; clip: auto; width: auto; height: auto; }
:focus-visible { outline: 2px solid var(--ord-accent); outline-offset: 0.1875rem; border-radius: 0.25rem; }

.ord-container { max-width: var(--ord-container); margin: 0 auto; padding: 0 clamp(1rem, 4.2vw, 2.5rem); position: relative; }
.ord-noise-overlay {
	position: fixed; inset: 0; pointer-events: none; z-index: 1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
}

/* =============================================================
   Header / Nav
   ============================================================= */
.ord-site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 500;
	height: var(--ord-header-h);
	display: flex; align-items: center;
	background: var(--ord-header-bg);
	border-bottom: 1px solid transparent;
	transition: background .35s var(--ord-ease), border-color .35s var(--ord-ease), height .3s var(--ord-ease);
}
.ord-site-header.is-scrolled {
	background: var(--ord-header-bg-scrolled);
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	border-bottom-color: var(--ord-border);
	height: 72px;
}
/* backdrop-filter creates a new containing block for position:fixed descendants —
   without this, the fixed mobile nav panel (a descendant of the header) would
   position itself relative to the header's own small box instead of the
   viewport as soon as the header is scrolled and gains backdrop-filter,
   collapsing the open menu to near-zero visible height. */
.ord-site-header.ord-nav-open { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.ord-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* The header bar itself spans the full viewport width (unlike page content,
   which is capped at --ord-container and centered) so the logo and the
   actions cluster stay pinned to the true left/right edges of the screen on
   any width, instead of sitting inset once the screen is wider than the
   content container's 1220px cap. */
.ord-header-inner.ord-container { max-width: none; padding-left: clamp(1.25rem, 3vw, 2.5rem); padding-right: clamp(1.25rem, 3vw, 2.5rem); }

.ord-logo { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; }
.ord-logo-mark { color: var(--ord-accent); display: flex; }
.ord-logo-mark svg { filter: drop-shadow(0 0 0.625rem rgba(227,11,23,.45)); }
.ord-logo-text { font-family: var(--ord-font-display); font-weight: 700; font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.35rem); color: var(--ord-heading); letter-spacing: -.01em; white-space: nowrap; }
.ord-logo-text span { color: var(--ord-secondary); }
.custom-logo { max-height: 3.25rem; width: auto; }

.ord-primary-nav { min-width: 0; }
.ord-primary-nav .nav-menu { display: flex; align-items: center; gap: clamp(0px, 0.4vw, 0.375rem); }
.ord-primary-nav .nav-menu > li { flex-shrink: 0; }
/* The header is transparent until scrolled, so *by default* nav text just uses the
   normal theme color — correct for every interior page, since those only have a plain
   network-canvas header sitting on the page's own (light or dark) background, not a
   photo. The front-page hero slider and any page with an uploaded banner image ARE
   real photos though (reliably dark), so on those two cases only, force light nav
   text until scrolled — this is what was missing before, and forcing light text
   everywhere is what made the menu unreadable on plain light-theme interior pages. */
.ord-primary-nav .nav-menu > li > a {
	display: inline-block; white-space: nowrap;
	padding: 0.625rem clamp(0.5625rem, 0.5vw + 0.375rem, 1rem); font-size: clamp(0.82rem, 0.7rem + 0.45vw, 0.945rem); font-weight: 500;
	color: var(--ord-text-dim);
	position: relative; border-radius: 62.4375rem; transition: color .25s, background .25s;
}
.ord-primary-nav .nav-menu > li > a::after {
	content: ''; position: absolute; left: 1rem; right: 1rem; bottom: 0.375rem; height: 2px;
	background: var(--ord-grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ord-ease);
}
.ord-primary-nav .nav-menu > li > a:hover,
.ord-primary-nav .nav-menu > li > a:focus-visible { color: var(--ord-heading); }
.ord-primary-nav .nav-menu > li > a:hover::after,
.ord-primary-nav .nav-menu > li > a:focus-visible::after,
.ord-primary-nav .nav-menu > li.current-menu-item > a::after { transform: scaleX(1); }
.ord-primary-nav .nav-menu > li.current-menu-item > a { color: var(--ord-heading); }

body.ord-home .ord-site-header:not(.is-scrolled) .ord-primary-nav .nav-menu > li > a,
body:has(.ord-page-header.has-banner) .ord-site-header:not(.is-scrolled) .ord-primary-nav .nav-menu > li > a {
	color: rgba(255,255,255,.85);
}
body.ord-home .ord-site-header:not(.is-scrolled) .ord-primary-nav .nav-menu > li > a:hover,
body.ord-home .ord-site-header:not(.is-scrolled) .ord-primary-nav .nav-menu > li.current-menu-item > a,
body:has(.ord-page-header.has-banner) .ord-site-header:not(.is-scrolled) .ord-primary-nav .nav-menu > li > a:hover,
body:has(.ord-page-header.has-banner) .ord-site-header:not(.is-scrolled) .ord-primary-nav .nav-menu > li.current-menu-item > a {
	color: #fff;
}
/* ...except the mobile dropdown panel itself, which always has its own solid,
   theme-matched background (see ord-mobile-nav-bg / .is-open below) — so once it's
   open, its links should always read with the normal theme color, never the
   forced-light one above. */
body.ord-home .ord-site-header:not(.is-scrolled) .ord-primary-nav.is-open .nav-menu > li > a,
body:has(.ord-page-header.has-banner) .ord-site-header:not(.is-scrolled) .ord-primary-nav.is-open .nav-menu > li > a {
	color: var(--ord-text-dim);
}

.ord-header-actions { display: flex; align-items: center; gap: 0.875rem; flex-shrink: 0; margin-left: auto; }

.ord-theme-toggle {
	display: flex; align-items: center; justify-content: center;
	width: 2.625rem; height: 2.625rem; border-radius: 50%; border: 1px solid var(--ord-border-2);
	background: var(--ord-veil-2); color: var(--ord-text-dim); flex-shrink: 0;
	transition: color .25s, border-color .25s, background .25s, transform .25s var(--ord-ease);
}
.ord-theme-toggle:hover { color: var(--ord-heading); border-color: var(--ord-accent); transform: rotate(-8deg); }
.ord-theme-toggle .ord-theme-icon-moon { display: block; }
.ord-theme-toggle .ord-theme-icon-sun { display: none; }
:root[data-theme="light"] .ord-theme-toggle .ord-theme-icon-moon { display: none; }
:root[data-theme="light"] .ord-theme-toggle .ord-theme-icon-sun { display: block; }

.ord-menu-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 0.3125rem;
	width: 2.625rem; height: 2.625rem; border: 1px solid var(--ord-border-2); border-radius: 0.625rem;
	background: var(--ord-veil-3); align-items: center;
	transition: background-color .3s var(--ord-ease), border-color .3s var(--ord-ease);
}
.ord-menu-toggle span { width: 1.125rem; height: 2px; background: var(--ord-heading); border-radius: 2px; transition: transform .3s var(--ord-ease), opacity .2s, background-color .3s var(--ord-ease); }
.ord-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.4375rem) rotate(45deg); }
.ord-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ord-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.4375rem) rotate(-45deg); }

/* Same reasoning as the nav links above: default to the normal theme color, and only
   force a light icon while floating transparently over a real photo hero (front-page
   slider, or a page with an uploaded banner) — never on a plain interior header. */
.ord-theme-toggle { color: var(--ord-text-dim); border-color: var(--ord-border-2); }
.ord-theme-toggle:hover { color: var(--ord-heading); }
.ord-menu-toggle span { background: var(--ord-text-dim); }
body.ord-home .ord-site-header:not(.is-scrolled) .ord-theme-toggle,
body:has(.ord-page-header.has-banner) .ord-site-header:not(.is-scrolled) .ord-theme-toggle {
	color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.35);
}
body.ord-home .ord-site-header:not(.is-scrolled) .ord-theme-toggle:hover,
body:has(.ord-page-header.has-banner) .ord-site-header:not(.is-scrolled) .ord-theme-toggle:hover {
	color: #fff;
}
body.ord-home .ord-site-header:not(.is-scrolled) .ord-menu-toggle span,
body:has(.ord-page-header.has-banner) .ord-site-header:not(.is-scrolled) .ord-menu-toggle span {
	background: rgba(255,255,255,.9);
}

/* =============================================================
   Buttons
   ============================================================= */
.ord-btn {
	display: inline-flex; align-items: center; gap: 0.5625rem; justify-content: center;
	padding: 0.8125rem 1.5rem; border-radius: 62.4375rem; font-weight: 600; font-size: .95rem;
	border: 1px solid transparent; white-space: nowrap; transition: transform .25s var(--ord-ease), box-shadow .25s, background .25s, color .25s, border-color .25s;
	position: relative; overflow: hidden; isolation: isolate;
	/* Edge fix: with a 1px transparent border, a gradient fill is clipped to the
	   padding box and tiled into the border area, leaving a hard, jagged ring of
	   the wrong colour around the pill. Painting the fill over the border box
	   (origin + clip) makes the gradient continuous to the very edge, and the
	   rounded corner is anti-aliased by one clip instead of two. */
	background-origin: border-box; background-clip: border-box;
	-webkit-font-smoothing: antialiased;
}
.ord-btn svg { width: 1rem; height: 1rem; transition: transform .3s var(--ord-ease); }
.ord-btn:hover svg { transform: translateX(0.1875rem); }
.ord-btn-primary { background: var(--ord-grad-brand); color: #FFFFFF; border-color: transparent; box-shadow: 0 0.5rem 1.5rem -0.5rem rgba(42,99,216,.45); }
.ord-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0.75rem 1.875rem -0.5rem rgba(227,11,23,.55); }
.ord-btn-ghost { color: var(--ord-text); border-color: var(--ord-border-2); background: var(--ord-veil-2); }
.ord-btn-ghost:hover { border-color: var(--ord-accent); color: var(--ord-heading); background: rgba(227,11,23,.08); }
.ord-btn-outline { color: var(--ord-text); border-color: var(--ord-border-2); background: transparent; }
.ord-btn-outline:hover { border-color: var(--ord-secondary); color: var(--ord-secondary); background: var(--ord-veil-2); }
.ord-btn-sm { padding: 0.5625rem 1.125rem; font-size: .85rem; }
.ord-btn-lg { padding: 1rem 1.875rem; font-size: 1rem; }
.ord-btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

.ord-link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ord-secondary); font-weight: 600; }
.ord-link-arrow svg { width: 1rem; height: 1rem; transition: transform .3s var(--ord-ease); }
.ord-link-arrow:hover svg { transform: translateX(0.25rem); }

/* =============================================================
   Hero
   ============================================================= */
.ord-hero { position: relative; padding: calc(var(--ord-header-h) + 6rem) 0 0; overflow: hidden; isolation: isolate; }
#ord-network-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .75; }
.ord-hero-glow { position: absolute; border-radius: 50%; filter: blur(5.625rem); z-index: -1; pointer-events: none; }
.ord-hero-glow-1 { width: 35rem; height: 35rem; top: -11.25rem; right: -10rem; background: radial-gradient(circle, rgba(227,11,23,.32), transparent 70%); }
.ord-hero-glow-2 { width: 28.75rem; height: 28.75rem; bottom: -13.75rem; left: -8.75rem; background: radial-gradient(circle, rgba(42,99,216,.22), transparent 70%); }

/* ---- Floating research decoration (book / glasses / pencil) ----
   Replaces the old plain glow blobs behind every interior-page hero,
   giving those headers a research-y feel instead of abstract shapes. */
.ord-floating-deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ord-float-item { position: absolute; color: var(--ord-secondary); opacity: .16; }
.ord-float-item svg { display: block; filter: drop-shadow(0 0.625rem 1.5rem rgba(0,0,0,.15)); }
.ord-float-book-1 { width: 9.375rem; top: 14%; right: 8%; animation: ord-float-a 9s ease-in-out infinite; }
.ord-float-glasses { width: 6.875rem; top: 58%; right: 22%; color: var(--ord-accent); opacity: .14; animation: ord-float-b 11s ease-in-out infinite; animation-delay: -3s; }
.ord-float-book-2 { width: 6.25rem; top: 20%; left: 6%; animation: ord-float-b 10s ease-in-out infinite; animation-delay: -1.5s; }
.ord-float-pencil { width: 4.625rem; top: 66%; left: 16%; color: var(--ord-accent); opacity: .15; animation: ord-float-a 8s ease-in-out infinite; animation-delay: -4s; }
.ord-float-book-3 { width: 5.25rem; top: 78%; right: 12%; animation: ord-float-a 12s ease-in-out infinite; animation-delay: -6s; }
.ord-float-glasses-2 { width: 4.375rem; top: 8%; left: 30%; color: var(--ord-accent); opacity: .12; animation: ord-float-b 9s ease-in-out infinite; animation-delay: -2s; }
@keyframes ord-float-a { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-1.125rem) rotate(3deg); } }
@keyframes ord-float-b { 0%, 100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(1rem) rotate(-4deg); } }
@media (max-width: 720px) {
	.ord-float-book-1 { width: 6.25rem; right: 2%; }
	.ord-float-glasses { width: 4.75rem; right: 8%; }
	.ord-float-book-2, .ord-float-pencil, .ord-float-book-3, .ord-float-glasses-2 { display: none; }
}

.ord-hero-inner { max-width: 48.75rem; text-align: left; padding-bottom: 4rem; }
.ord-eyebrow {
	display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--ord-font-mono);
	font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ord-secondary);
	padding: 0.375rem 0.875rem; border: 1px solid rgba(42,99,216,.3); border-radius: 62.4375rem; background: rgba(42,99,216,.06);
}
.ord-hero-title { font-size: clamp(2.4rem, 5.4vw, 4.1rem); margin: 1.375rem 0 1.25rem; }
.ord-text-gradient { background: var(--ord-grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ord-hero-desc { max-width: 38.75rem; font-size: 1.1rem; color: var(--ord-text-dim); }
.ord-hero-actions { display: flex; gap: 1rem; margin-top: 1.875rem; flex-wrap: wrap; }

.ord-hero-stats { border-top: 1px solid var(--ord-border); background: var(--ord-veil-1); backdrop-filter: blur(0.375rem); }
.ord-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.ord-stat { padding: 1.875rem 1.25rem; text-align: center; border-right: 1px solid var(--ord-border); }
.ord-stat:last-child { border-right: none; }
.ord-stat-num { display: block; font-family: var(--ord-font-mono); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--ord-heading); }
.ord-stat-label { display: block; margin-top: 0.375rem; font-size: .85rem; color: var(--ord-text-dim); }

/* =============================================================
   Sections
   ============================================================= */
.ord-main { position: relative; z-index: 2; }
.ord-section { padding: 4.75rem 0; }
.ord-section-panel { background: linear-gradient(180deg, var(--ord-bg-alt), var(--ord-bg)); border-top: 1px solid var(--ord-border); border-bottom: 1px solid var(--ord-border); }

.ord-section-heading { max-width: 42.5rem; margin: 0 auto 2.5rem; }
.ord-section-heading.align-center { text-align: center; }
.ord-section-heading.align-left { text-align: left; margin-left: 0; }
.ord-section-heading h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-top: 0.875rem; }
.ord-section-heading p { font-size: 1.05rem; margin-top: 0.625rem; }

.ord-lead { font-size: 1.08rem; color: var(--ord-text-dim); }
.ord-highlight { color: var(--ord-heading); font-family: var(--ord-font-display); font-size: 1.2rem; padding-left: 1.125rem; border-left: 0.1875rem solid var(--ord-secondary); }

/* Page header (interior pages) */
.ord-page-header { padding: calc(var(--ord-header-h) + 3.25rem) 0 2.75rem; text-align: left; position: relative; overflow: hidden; isolation: isolate; }
.ord-page-header h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-top: 1rem; }
.ord-page-subtitle { max-width: 38.75rem; font-size: 1.08rem; }

.ord-page-header + .ord-section { padding-top: 1.5rem; } /*added later*/

/* Service detail page header — icon sits between the eyebrow and title, so it
   needs its own explicit spacing rather than relying on h1's default
   margin-top (meant for eyebrow-directly-above-h1), since adjacent margins
   collapse to the larger value instead of adding together. */
.ord-service-detail-header h1 { margin-top: 0; }
.ord-service-detail-thumb {
	margin: 0 0 1.25rem; border-radius: var(--ord-radius-lg); overflow: hidden;
}
.ord-service-detail-thumb img { width: 100%; height: auto; display: block; }

/* =============================================================
   Services grid
   ============================================================= */
.ord-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.375rem; }
.ord-service-card {
	background: var(--ord-panel); border: 1px solid var(--ord-border); border-radius: var(--ord-radius);
	padding: 2rem 1.625rem; transition: transform .35s var(--ord-ease), border-color .35s var(--ord-ease), background .35s var(--ord-ease), color .35s var(--ord-ease);
}
.ord-service-card:hover { transform: translateY(-0.375rem); border-color: rgba(227,11,23,.4); background: var(--ord-panel-2); }
.ord-service-icon {
	width: 3.25rem; height: 3.25rem; border-radius: 0.875rem; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, rgba(227,11,23,.18), rgba(42,99,216,.14)); color: var(--ord-accent); margin-bottom: 1.125rem;
}
.ord-service-icon svg { width: 1.5rem; height: 1.5rem; }
.ord-service-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.ord-service-card p { font-size: .95rem; margin: 0; }
.ord-service-card-lg .ord-service-body { font-size: .95rem; }

/* Service detail page */
.ord-service-detail-icon {
	width: 3.75rem; height: 3.75rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, rgba(227,11,23,.2), rgba(42,99,216,.16)); color: var(--ord-accent);
	margin: 1.5rem 0 1.75rem; box-shadow: 0 0.625rem 1.625rem -0.75rem rgba(227,11,23,.35);
}
.ord-service-detail-icon svg { width: 1.75rem; height: 1.75rem; }

.ord-service-detail-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: start; }
.ord-service-detail-content { max-width: none; }
.ord-service-detail-sidebar { position: sticky; top: calc(var(--ord-header-h) + 1.5rem); display: flex; flex-direction: column; gap: 1.5rem; }

.ord-benefit-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.ord-benefit-list li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: .96rem; color: var(--ord-text); }
.ord-benefit-list svg { color: var(--ord-secondary); margin-top: 0.1875rem; flex-shrink: 0; }

.ord-advantage-panel {
	padding: 1.75rem; border-radius: var(--ord-radius); background: linear-gradient(160deg, rgba(227,11,23,.12), rgba(42,99,216,.08));
	border: 1px solid rgba(227,11,23,.25);
}
.ord-advantage-panel h3 { font-size: 1.15rem; margin: 0.5rem 0 1rem; }
.ord-advantage-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.875rem; }
.ord-advantage-list li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: .9rem; color: var(--ord-text-dim); }
.ord-advantage-list svg { color: var(--ord-accent); margin-top: 2px; flex-shrink: 0; }

.ord-service-cta-panel { padding: 1.75rem; border-radius: var(--ord-radius); background: var(--ord-panel); border: 1px solid var(--ord-border); text-align: center; }
.ord-service-cta-panel h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.ord-service-cta-panel p { font-size: .88rem; margin-bottom: 1.125rem; }
.ord-service-cta-panel .ord-btn { width: 100%; justify-content: center; }

/* =============================================================
   Why choose us
   ============================================================= */
.ord-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.75rem; align-items: center; position: relative; }
.ord-why-grid h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-top: 0.75rem; }
.ord-why-list { display: grid; gap: 1.125rem; }
.ord-why-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.125rem; border-radius: var(--ord-radius-sm); border: 1px solid var(--ord-border); background: var(--ord-veil-1); transition: border-color .3s, background .3s; }
.ord-why-item:hover { border-color: rgba(42,99,216,.35); background: rgba(42,99,216,.04); }
.ord-why-item svg { width: 1.625rem; height: 1.625rem; flex-shrink: 0; color: var(--ord-secondary); margin-top: 2px; }
.ord-why-item h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.ord-why-item p { font-size: .9rem; margin: 0; }

/* =============================================================
   Testimonials
   ============================================================= */
.ord-testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.375rem; }
.ord-testimonial-card { background: var(--ord-panel); border: 1px solid var(--ord-border); border-radius: var(--ord-radius); padding: 1.875rem; display: flex; flex-direction: column; gap: 0.875rem; }
.ord-quote-icon { width: 1.875rem; height: 1.875rem; color: var(--ord-royal); opacity: .8; }
.ord-stars { display: flex; gap: 0.1875rem; }
.ord-star { fill: var(--ord-star-empty); color: transparent; }
.ord-star.is-filled { fill: #FFC94D; }
.ord-testimonial-quote { color: var(--ord-text); font-size: .98rem; flex-grow: 1; }
.ord-testimonial-author { display: flex; align-items: center; gap: 0.75rem; padding-top: 0.375rem; border-top: 1px solid var(--ord-border); transition: border-color .3s var(--ord-ease); }
.ord-avatar-initials { width: 2.625rem; height: 2.625rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--ord-grad-brand); color: #FFFFFF; font-weight: 700; font-family: var(--ord-font-display); flex-shrink: 0; }
.ord-avatar-lg { width: 5.25rem; height: 5.25rem; font-size: 1.4rem; }
.ord-avatar-img { width: 2.875rem; height: 2.875rem; aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--ord-logo-card-bg); display: flex; align-items: center; justify-content: center; }
/* Fill the circle edge-to-edge like .ord-team-photo, instead of floating a
   small contained logo inside it. */
.ord-avatar-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ord-testimonial-author strong { display: block; font-size: .92rem; color: var(--ord-heading); }
.ord-testimonial-author span { font-size: .82rem; color: var(--ord-text-dim); }

/* =============================================================
   FAQ Accordion
   ============================================================= */
.ord-faq-wrap { max-width: min(68.75rem, 100%); position: relative; }
.ord-faq-section .ord-container { overflow: visible; }
.ord-accordion-item { border-bottom: 1px solid var(--ord-border); transition: border-color .3s var(--ord-ease); }
.ord-accordion-trigger {
	width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
	background: none; border: none; color: var(--ord-heading); text-align: left; padding: 1.375rem 0.25rem; font-family: var(--ord-font-display); font-size: 1.05rem; font-weight: 600;
}
.ord-accordion-icon { position: relative; width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.ord-accordion-icon::before, .ord-accordion-icon::after { content: ''; position: absolute; background: var(--ord-secondary); border-radius: 2px; transition: transform .3s var(--ord-ease); }
.ord-accordion-icon::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.ord-accordion-icon::after { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.ord-accordion-trigger[aria-expanded="true"] .ord-accordion-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.ord-accordion-panel { overflow: hidden; padding-bottom: 1.375rem; }
.ord-accordion-panel p { font-size: .96rem; margin: 0; }

/* =============================================================
   CTA
   ============================================================= */
.ord-cta { padding: 4rem 0; position: relative; }
.ord-cta-inner {
	text-align: center; max-width: 42.5rem; margin: 0 auto; padding: 3.75rem 2.5rem; border-radius: var(--ord-radius-lg);
	background: linear-gradient(135deg, rgba(227,11,23,.16), rgba(42,99,216,.10));
	border: 1px solid rgba(227,11,23,.28);
	position: relative; overflow: hidden;
}
.ord-cta-inner::before {
	content: ''; position: absolute; inset: -2px; border-radius: inherit; padding: 1px;
	background: var(--ord-grad-brand); opacity: .35;
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.ord-cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.ord-cta-inner .ord-btn { margin-top: 1.25rem; }

/* =============================================================
   Footer
   ============================================================= */
.ord-site-footer { position: relative; padding: 5rem 0 0; background: var(--ord-bg-alt); border-top: 1px solid var(--ord-border); overflow: hidden; transition: background-color .3s var(--ord-ease), border-color .3s var(--ord-ease); }
.ord-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3.125rem; }
.ord-footer-tagline { font-size: .92rem; margin: 1.125rem 0 1.25rem; max-width: 17.5rem; }
.ord-footer-tagline em { color: var(--ord-secondary); font-style: normal; }
.footer-widget-title { font-size: .95rem; color: var(--ord-heading); margin-bottom: 1.125rem; }
.ord-footer-col ul li { margin-bottom: 0.6875rem; }
.ord-footer-col ul a { font-size: .9rem; color: var(--ord-text-dim); transition: color .2s; }
.ord-footer-col ul a:hover { color: var(--ord-secondary); }
.ord-footer-contact li { display: flex; align-items: flex-start; gap: 0.625rem; margin-bottom: 0.875rem; font-size: .88rem; color: var(--ord-text-dim); }
.ord-footer-contact svg { flex-shrink: 0; margin-top: 2px; color: var(--ord-accent); }
.ord-footer-contact a { color: var(--ord-text-dim); }
.ord-footer-contact a:hover { color: var(--ord-heading); }

.ord-social-links { display: flex; flex-wrap: wrap; gap: 0.625rem; max-width: 100%; }
.ord-social-links a { width: 2.375rem; height: 2.375rem; border-radius: 50%; border: 1px solid var(--ord-border-2); display: flex; align-items: center; justify-content: center; color: var(--ord-text-dim); transition: all .25s; }
.ord-social-links a:hover { color: #FFFFFF; background: var(--ord-grad-brand); border-color: transparent; }
.ord-social-links svg { width: 1.0625rem; height: 1.0625rem; }
.ord-social-links-lg a { width: 2.875rem; height: 2.875rem; }

.ord-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; padding: 1.5rem 0; border-top: 1px solid var(--ord-border); font-size: .84rem; color: var(--ord-text-dim-2); transition: border-color .3s var(--ord-ease), color .3s var(--ord-ease); }
.ord-footer-bottom p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.625rem; }
.ord-powered-by { display: inline-flex; align-items: center; gap: 0.25rem; padding-left: 0.625rem; margin-left: 2px; border-left: 1px solid var(--ord-border); color: var(--ord-text-dim-2); }
.ord-powered-by a { color: inherit; font-weight: 600; text-decoration: none; border-bottom: 1px dotted currentColor; transition: color .2s var(--ord-ease); }
.ord-powered-by a:hover, .ord-powered-by a:focus-visible { color: var(--ord-accent); }
.ord-tm { font-size: .65em; vertical-align: super; margin-left: 1px; }
@media (max-width: 720px) {
	.ord-footer-bottom p { justify-content: center; }
	.ord-powered-by { padding-left: 0; margin-left: 0; border-left: 0; }
}
.ord-footer-legal { display: flex; gap: 1.375rem; }
.ord-footer-legal a:hover { color: var(--ord-secondary); }
.ord-footer-wave { position: absolute; top: -1px; left: 0; right: 0; height: 8.75rem; background: var(--ord-grad-glow); opacity: .5; pointer-events: none; }

.ord-back-to-top {
	position: fixed; right: 1.625rem; bottom: 1.625rem; z-index: 400; width: 2.875rem; height: 2.875rem; border-radius: 50%;
	background: var(--ord-grad-brand); color: #FFFFFF; border: none; display: flex; align-items: center; justify-content: center;
	box-shadow: 0 0.625rem 1.625rem -0.5rem rgba(42,99,216,.5); opacity: 0; transform: translateY(0.75rem) scale(.9); pointer-events: none;
	transition: opacity .3s, transform .3s var(--ord-ease);
}
.ord-back-to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* =============================================================
   About page
   ============================================================= */
.ord-about-hero { position: relative; }
.ord-about-content-wrap { position: relative; overflow: hidden; }
.ord-about-content-glow { width: 26.25rem; height: 26.25rem; right: -8.75rem; top: 50%; transform: translateY(-50%); background: radial-gradient(circle, rgba(42,99,216,.20), transparent 70%); display: none; }
@media (min-width: 1300px) { .ord-about-content-glow { display: block; } }
.ord-section-tight-top { padding-top: 0.25rem; }
.ord-values-grid, .ord-process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.ord-value-card { background: var(--ord-panel); border: 1px solid var(--ord-border); border-radius: var(--ord-radius); padding: 1.75rem 1.625rem; transition: transform .3s var(--ord-ease), border-color .3s var(--ord-ease), background-color .3s var(--ord-ease), color .3s var(--ord-ease), box-shadow .3s var(--ord-ease); }
.ord-value-card:hover { transform: translateY(-0.25rem); border-color: rgba(42,99,216,.35); box-shadow: 0 1rem 2.125rem -1.25rem rgba(0,0,0,.4); }
.ord-value-card svg { width: 1.625rem; height: 1.625rem; color: var(--ord-accent); margin-bottom: 1rem; }
.ord-value-card h4 { font-size: 1.02rem; margin-bottom: 0.5rem; letter-spacing: -.01em; }
.ord-value-card p { font-size: .9rem; line-height: 1.6; margin: 0; color: var(--ord-text-dim); }

.ord-process-card { padding: 1.875rem 1.75rem; border-radius: var(--ord-radius); background: var(--ord-veil-2); border: 1px solid var(--ord-border); transition: transform .3s var(--ord-ease), border-color .3s var(--ord-ease), background-color .3s var(--ord-ease); }
.ord-process-card:hover { transform: translateY(-0.25rem); border-color: rgba(227,11,23,.3); }
.ord-process-card p { color: var(--ord-text); font-size: 1rem; line-height: 1.65; margin-top: 0.75rem; }

.ord-timeline { display: flex; flex-direction: column; gap: 1.125rem; max-width: min(62.5rem, 100%); border-left: 2px solid var(--ord-border); }
.ord-timeline-item {
	position: relative; margin-left: 2rem; padding: 1.25rem 1.5rem;
	background: var(--ord-panel); border: 1px solid var(--ord-border); border-radius: var(--ord-radius);
	transition: transform .3s var(--ord-ease), border-color .3s var(--ord-ease), background-color .3s var(--ord-ease), box-shadow .3s var(--ord-ease);
}
.ord-timeline-item:hover { transform: translateX(0.25rem); border-color: rgba(42,99,216,.3); box-shadow: 0 0.875rem 1.875rem -1.125rem rgba(0,0,0,.4); }
.ord-timeline-item::before { content: ''; position: absolute; left: -2.4375rem; top: 1.375rem; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--ord-grad-brand); box-shadow: 0 0 0 0.25rem var(--ord-bg); }
.ord-timeline-year { display: inline-block; font-family: var(--ord-font-mono); font-weight: 600; color: var(--ord-secondary); font-size: 1.05rem; margin-bottom: 0.5rem; }
.ord-timeline-item p { margin: 0; font-size: .96rem; line-height: 1.6; color: var(--ord-text-dim); }

/* =============================================================
   Services page extras
   ============================================================= */
.ord-services-grid-detailed { grid-template-columns: repeat(2, 1fr); }
.ord-tag-cloud { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.ord-tag { font-size: .88rem; padding: 0.5625rem 1rem; border-radius: 62.4375rem; border: 1px solid var(--ord-border-2); color: var(--ord-text-dim); background: var(--ord-veil-2); transition: all .2s; }
.ord-tag:hover { color: var(--ord-heading); border-color: var(--ord-secondary); }

/* =============================================================
   Team
   ============================================================= */
/* .ord-team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.ord-team-card { background: var(--ord-panel); border: 1px solid var(--ord-border); border-radius: var(--ord-radius); padding: 26px; text-align: center; transition: transform .3s var(--ord-ease), border-color .3s var(--ord-ease), background-color .3s var(--ord-ease), color .3s var(--ord-ease); } */

.ord-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.625rem, max-content));
  gap: 1.375rem;
  justify-content: center; /* centers the row when fewer cards */
}
.ord-team-card {
  background: var(--ord-panel);
  border: 1px solid var(--ord-border);
  border-radius: var(--ord-radius);
  padding: 1.625rem;
  text-align: center;
  transition: transform .3s var(--ord-ease),
              border-color .3s var(--ord-ease),
              background-color .3s var(--ord-ease),
              color .3s var(--ord-ease);
}

.ord-team-card:hover { transform: translateY(-0.3125rem); border-color: rgba(227,11,23,.4); }
.ord-team-photo { width: 6rem; height: 6rem; margin: 0 auto 1rem; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--ord-panel-2); }
.ord-team-photo img { width: 100%; height: 100%; object-fit: cover; }
.ord-team-card h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.ord-team-role { font-size: .86rem; color: var(--ord-accent); margin-bottom: 0.625rem; }
.ord-team-bio { font-size: .85rem; color: var(--ord-text-dim); margin-bottom: 0.625rem; }
.ord-team-linkedin { display: inline-flex; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--ord-border-2); align-items: center; justify-content: center; color: var(--ord-text-dim); }
.ord-team-linkedin:hover { color: #FFFFFF; background: var(--ord-grad-brand); border-color: transparent; }

/* Hierarchy groups */
.ord-team-groups { display: flex; flex-direction: column; gap: 3.5rem; }
/* .ord-team-group-heading { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; } */


/* .ord-team-group-heading h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0; }
.ord-team-group-count { font-family: var(--ord-font-mono); font-size: .8rem; color: var(--ord-text-dim-2); padding: 4px 12px; border: 1px solid var(--ord-border-2); border-radius: 999px; } */

.ord-team-group-heading {
  display: flex;
  align-items: center;     /* aligns h2 and badge vertically */
  justify-content: center; /* centers the whole heading block horizontally */
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.ord-team-group-heading h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  margin: 0;
}

.ord-team-group-count {
  font-family: var(--ord-font-mono);
  font-size: .8rem;
  color: var(--ord-text-dim-2);
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--ord-border-2);
  border-radius: 62.4375rem;
  display: inline-flex;    /* makes pill behave consistently */
  align-items: center;     /* centers text vertically inside pill */
  justify-content: center; /* centers text horizontally inside pill */
}


.ord-team-card { cursor: pointer; }
.ord-team-card:focus-visible { outline: 2px solid var(--ord-accent); outline-offset: 0.1875rem; }
.ord-team-readmore { display: inline-flex; align-items: center; gap: 0.375rem; font-size: .8rem; font-weight: 600; color: var(--ord-secondary); margin-top: 0.25rem; }
.ord-team-readmore svg { width: 0.8125rem; height: 0.8125rem; transition: transform .3s var(--ord-ease); }
.ord-team-card:hover .ord-team-readmore svg { transform: translateX(0.1875rem); }

.ord-avatar-xl { width: 100%; height: 100%; font-size: 2.6rem; border-radius: var(--ord-radius); }

/* Team bio modal — mirrors the video modal's open/close mechanics */
.ord-team-modal {
	position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center;
	padding: calc(var(--ord-header-h) + 1.25rem) 1.5rem 1.5rem;
	opacity: 0; visibility: hidden; transition: opacity .3s var(--ord-ease), visibility 0s linear .3s;
	overflow: hidden;
}
.ord-team-modal.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ord-ease); }
.ord-team-modal-backdrop { position: absolute; inset: 0; background: rgba(5,8,16,.82); backdrop-filter: blur(0.375rem); -webkit-backdrop-filter: blur(0.375rem); }
.ord-team-modal-inner {
	position: relative; width: 100%; max-width: 47.5rem; max-height: calc(100vh - var(--ord-header-h) - 2.5rem); overflow-y: auto;
	background: var(--ord-panel); border: 1px solid var(--ord-border); border-radius: var(--ord-radius-lg);
	box-shadow: 0 1.5rem 4rem -0.75rem rgba(0,0,0,.5), 0 0.5rem 1.5rem -0.5rem rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04) inset;
	transform: scale(.94) translateY(0.5rem); transition: transform .3s var(--ord-ease), background-color .3s var(--ord-ease), border-color .3s var(--ord-ease);
}
.ord-team-modal.is-open .ord-team-modal-inner { transform: scale(1) translateY(0); }
.ord-team-modal-body { display: grid; grid-template-columns: 13.75rem 1fr; align-items: start; }
.ord-team-modal-close.ord-team-modal-close {
	position: absolute; top: 1rem; right: 1rem; z-index: 3;
	background: var(--ord-veil-4); border: 1px solid var(--ord-border-2); color: var(--ord-heading);
	box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,.2);
}
.ord-team-modal-nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--ord-veil-4); border: 1px solid var(--ord-border-2);
	color: var(--ord-heading); display: flex; align-items: center; justify-content: center;
	box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,.2);
	transition: background-color .2s, border-color .2s, transform .2s;
}
.ord-team-modal-nav:hover { border-color: var(--ord-accent); transform: translateY(-50%) scale(1.08); }
.ord-team-modal-prev { left: 0.75rem; }
.ord-team-modal-next { right: 0.75rem; }

/* Photo is a fixed, always-fully-visible square (like a profile picture) that
   stays pinned in view while the bio column scrolls, instead of a tall image
   force-cropped to fill the column. */
.ord-team-modal-photo {
	position: sticky; top: 0; z-index: 1;
	aspect-ratio: 1 / 1; width: 100%;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden; background: var(--ord-panel-2);
	border-right: 1px solid var(--ord-border);
	border-top-left-radius: calc(var(--ord-radius-lg) - 1px);
	border-bottom-left-radius: calc(var(--ord-radius-lg) - 1px);
	box-shadow: 0.25rem 0 1.25rem -0.5rem rgba(0,0,0,.3);
}
.ord-team-modal-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.ord-team-modal-photo .ord-avatar-initials { position: static; width: 68%; height: 68%; font-size: 2.2rem; }

/* The prev/next arrows are pinned (position: absolute + top: 50% of the
   scrollable box) to the same spot on screen no matter how far the bio
   text has scrolled underneath them — so the text column needs enough
   reserved right-hand space that a line can never run under the arrow. */
.ord-team-modal-info { padding: 1.875rem 4.25rem 2rem 1.875rem; }
.ord-team-modal-info h3 { font-size: 1.32rem; letter-spacing: -.01em; margin-bottom: 0.25rem; }
.ord-team-modal-role {
	display: inline-flex; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
	color: var(--ord-accent); background: rgba(227,11,23,.12); border: 1px solid rgba(227,11,23,.25);
	border-radius: 62.4375rem; padding: 0.25rem 0.75rem; margin-bottom: 1.125rem;
}
.ord-team-modal-expertise {
	font-size: .82rem; color: var(--ord-text-dim); margin-bottom: 1.375rem; line-height: 1.5;
	background: var(--ord-panel-2); border: 1px solid var(--ord-border); border-radius: var(--ord-radius-sm);
	padding: 0.875rem 1rem;
}
.ord-team-modal-expertise strong { display: flex; align-items: center; gap: 0.375rem; color: var(--ord-heading); margin-bottom: 0.375rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.ord-team-modal-bio { font-size: .92rem; line-height: 1.7; margin-bottom: 1.25rem; }
.ord-team-modal-bio p { margin-bottom: 1em; }
.ord-team-modal-bio p:last-child { margin-bottom: 0; }

.ord-admin-note { margin-top: 1.625rem; padding: 1rem 1.25rem; border-radius: var(--ord-radius-sm); border: 1px dashed var(--ord-border-2); font-size: .88rem; color: var(--ord-text-dim); }

/* =============================================================
   Careers
   ============================================================= */
.ord-jobs-list { display: flex; flex-direction: column; gap: 1rem; }
.ord-job-card { display: flex; align-items: center; gap: 1.375rem; padding: 1.625rem; background: var(--ord-panel); border: 1px solid var(--ord-border); border-radius: var(--ord-radius); transition: border-color .3s var(--ord-ease), transform .3s var(--ord-ease), background-color .3s var(--ord-ease), color .3s var(--ord-ease); }
.ord-job-card:hover { border-color: rgba(42,99,216,.35); transform: translateY(-0.1875rem); }
.ord-job-icon { width: 3.25rem; height: 3.25rem; flex-shrink: 0; border-radius: 0.875rem; background: rgba(227,11,23,.12); display: flex; align-items: center; justify-content: center; color: var(--ord-accent); }
.ord-job-icon svg { width: 1.5rem; height: 1.5rem; }
.ord-job-info { flex-grow: 1; min-width: 0; }
.ord-job-info h3 { font-size: 1.1rem; margin-bottom: 0.375rem; }
.ord-job-meta { display: flex; flex-wrap: wrap; gap: 0.625rem; font-size: .82rem; color: var(--ord-text-dim); margin-bottom: 0.5rem; font-family: var(--ord-font-mono); }
.ord-job-meta-single { margin: 1.125rem 0 0; font-size: .84rem; }
.ord-service-detail-layout + .ord-job-apply { margin-top: 2.5rem; }
.ord-job-meta span,
.ord-event-meta span,
.ord-event-detail-meta span,
.ord-pill { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 0.875rem; border-radius: 62.4375rem; background: rgba(227,11,23,.1); border: 1px solid rgba(227,11,23,.22); color: var(--ord-accent); line-height: 1.2; transition: background-color .3s var(--ord-ease), border-color .3s var(--ord-ease), color .3s var(--ord-ease); }
.ord-pill-accent,
.ord-job-meta span:last-child:not(:only-child) { background: rgba(42,99,216,.1); border-color: rgba(42,99,216,.28); color: var(--ord-secondary); }
.ord-job-desc p { font-size: .92rem; margin: 0; }

/* =============================================================
   Downloads
   ============================================================= */
.ord-downloads-list { display: flex; flex-direction: column; gap: 0.875rem; }
.ord-download-row { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; padding: 1.25rem 1.5rem; background: var(--ord-panel); border: 1px solid var(--ord-border); border-radius: var(--ord-radius); }
.ord-download-icon { width: 2.875rem; height: 2.875rem; flex-shrink: 0; border-radius: 0.75rem; background: rgba(42,99,216,.14); color: var(--ord-royal); display: flex; align-items: center; justify-content: center; }
.ord-download-info { flex: 1 1 13.75rem; min-width: 0; }
.ord-download-info h3 { font-size: 1rem; margin-bottom: 2px; overflow-wrap: break-word; }
.ord-download-info p { font-size: .86rem; margin: 0; overflow-wrap: break-word; }
.ord-download-btn { flex-shrink: 0; }
.ord-download-pending { flex-shrink: 0; font-size: .82rem; color: var(--ord-text-dim-2); font-style: italic; }

/* =============================================================
   Contact
   ============================================================= */
.ord-contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3.75rem; }
.ord-contact-details { display: flex; flex-direction: column; gap: 1.25rem; margin: 1.75rem 0; }
.ord-contact-details li { display: flex; gap: 0.875rem; align-items: flex-start; }
.ord-contact-details svg { width: 1.5rem; height: 1.5rem; color: var(--ord-secondary); flex-shrink: 0; margin-top: 2px; }
.ord-contact-details span:first-child { display: block; font-size: .8rem; color: var(--ord-text-dim-2); margin-bottom: 2px; }
.ord-contact-details a, .ord-contact-details div span:last-child { color: var(--ord-heading); font-size: 1rem; }

.ord-contact-form-wrap { background: var(--ord-panel); border: 1px solid var(--ord-border); border-radius: var(--ord-radius-lg); padding: 2.25rem; }
.ord-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem; }
.ord-form-field { margin-bottom: 1.125rem; }
.ord-form-field label { display: block; font-size: .85rem; color: var(--ord-text-dim); margin-bottom: 0.5rem; }
.ord-form-field input, .ord-form-field textarea {
	width: 100%; padding: 0.8125rem 1rem; border-radius: 0.625rem; border: 1px solid var(--ord-border-2);
	background: var(--ord-veil-3); color: var(--ord-heading); font-size: .95rem; transition: border-color .2s, background .2s;
	resize: vertical;
}
.ord-form-field input:focus, .ord-form-field textarea:focus { outline: none; border-color: var(--ord-accent); background: var(--ord-veil-4); }
.ord-hp-field { position: absolute; left: -624.9375rem; opacity: 0; height: 0; overflow: hidden; }
.ord-form-submit { width: 100%; position: relative; }
.ord-btn-spinner { width: 1rem; height: 1rem; border: 2px solid rgba(255,255,255,.35); border-top-color: #FFFFFF; border-radius: 50%; animation: ord-spin .7s linear infinite; }
@keyframes ord-spin { to { transform: rotate(360deg); } }
.ord-form-status { margin-top: 0.875rem; font-size: .9rem; min-height: 1.2em; }
.ord-form-status.is-success { color: var(--ord-secondary); }
.ord-form-status.is-error { color: #FF7A7A; }

/* =============================================================
   Our Work / Portfolio
   ============================================================= */
.ord-portfolio-filters { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 2.5rem; }
.ord-portfolio-filter {
	padding: 0.625rem 1.25rem; border-radius: 62.4375rem; border: 1px solid var(--ord-border-2);
	background: var(--ord-veil-2); color: var(--ord-text-dim); font-size: .87rem; font-weight: 600;
	transition: background .35s var(--ord-ease), border-color .3s var(--ord-ease), color .3s var(--ord-ease), transform .3s var(--ord-ease), box-shadow .35s var(--ord-ease);
}
.ord-portfolio-filter:hover { border-color: var(--ord-accent); color: var(--ord-heading); }
.ord-portfolio-filter.is-active { background: var(--ord-grad-brand); color: #FFFFFF; border-color: transparent; transform: translateY(-1px); box-shadow: 0 0.625rem 1.5rem -0.625rem rgba(227,11,23,.55); backface-visibility: hidden; }

.ord-portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.125rem; }

.ord-portfolio-card {
	position: relative; display: flex; flex-direction: column;
	border-radius: var(--ord-radius); overflow: hidden;
	background: var(--ord-panel); border: 1px solid var(--ord-border);
	transition: transform .35s var(--ord-ease), border-color .35s var(--ord-ease), background-color .35s var(--ord-ease), color .35s var(--ord-ease), opacity .35s var(--ord-ease), box-shadow .35s var(--ord-ease);
}
.ord-portfolio-card:hover { transform: translateY(-0.3125rem); border-color: rgba(227,11,23,.35); box-shadow: 0 1rem 2.25rem -1.125rem rgba(0,0,0,.5); }
.ord-portfolio-card:hover, .ord-portfolio-card:focus-within { will-change: transform; }
.ord-portfolio-card:hover .ord-device-screen img { will-change: transform; }
.ord-portfolio-card.is-hidden { opacity: 0; transform: scale(.92); pointer-events: none; }

.ord-portfolio-media { position: relative; padding: 1.875rem 1.875rem 0; background: linear-gradient(160deg, var(--ord-panel-2), var(--ord-bg-alt)); flex-shrink: 0; }

/* Browser/laptop chassis frame around the screenshot */
.ord-device-frame {
	position: relative; border-radius: 0.625rem 0.625rem 0.1875rem 0.1875rem; overflow: hidden;
	background: linear-gradient(180deg, #1c2540, #10182a);
	border: 1px solid rgba(255,255,255,.08);
	box-shadow: 0 1.625rem 3.125rem -1.625rem rgba(0,0,0,.65);
	transition: transform .5s var(--ord-ease);
}
.ord-device-bar { display: flex; align-items: center; gap: 0.375rem; padding: 0.625rem 0.875rem; }
.ord-device-dot { width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: rgba(255,255,255,.16); }
.ord-device-dot:nth-child(1) { background: #ff5f57; }
.ord-device-dot:nth-child(2) { background: #febc2e; }
.ord-device-dot:nth-child(3) { background: #28c840; }
.ord-device-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ord-logo-card-bg); }
.ord-device-screen img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; transition: transform .6s var(--ord-ease); }
.ord-portfolio-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ord-text-dim-2); }
.ord-portfolio-placeholder svg { width: 2.125rem; height: 2.125rem; }
/* "Laptop base" ledge beneath the browser chassis */
.ord-device-frame::after {
	content: ''; display: block; height: 0.5625rem; margin: 0 -0.375rem;
	background: linear-gradient(180deg, #1c2540, #0a0f1e);
	border-radius: 0 0 0.5rem 0.5rem;
	box-shadow: 0 0.5rem 1rem -0.5rem rgba(0,0,0,.55);
}

.ord-portfolio-badge {
	position: absolute; top: 1.25rem; left: 1.25rem; z-index: 2;
	padding: 0.3125rem 0.75rem; border-radius: 62.4375rem; font-size: .7rem; font-weight: 700;
	letter-spacing: .03em; text-transform: uppercase;
	background: var(--ord-grad-brand); color: #FFFFFF;
	box-shadow: 0 0.5rem 1.125rem -0.5rem rgba(42,99,216,.55);
}

.ord-portfolio-play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3;
	width: 3.75rem; height: 3.75rem; border-radius: 50%;
	background: rgba(9,13,24,.72); backdrop-filter: blur(0.25rem); -webkit-backdrop-filter: blur(0.25rem);
	border: 1px solid rgba(255,255,255,.28); color: #fff;
	display: flex; align-items: center; justify-content: center;
	transition: transform .3s var(--ord-ease), background .3s;
}
.ord-portfolio-play svg { width: 1.25rem; height: 1.25rem; margin-left: 0.1875rem; }
.ord-portfolio-play:hover { transform: translate(-50%, -50%) scale(1.1); background: var(--ord-primary); border-color: transparent; }

/* pointer-events:none by default so the overlay never blocks clicks to what's
   underneath it (e.g. the video play button) — only its own interactive
   children opt back in. This matters most once the overlay expands to cover
   the whole card on hover (see the hover-mode block below). */
.ord-portfolio-overlay { position: relative; z-index: 1; padding: 1.625rem 1.75rem 1.625rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none; }
.ord-portfolio-overlay a { pointer-events: auto; }
.ord-portfolio-client-logo { display: block; background: var(--ord-logo-card-bg); padding: 0.3125rem 0.75rem; border-radius: 0.375rem; height: 1.75rem; width: auto; max-width: 8.75rem; object-fit: contain; margin-bottom: 0.75rem; transition: background-color .3s var(--ord-ease); }
.ord-portfolio-overlay h3 { font-size: 1.18rem; margin-bottom: 0.1875rem; }
.ord-portfolio-client { display: block; font-size: .85rem; margin-bottom: 0.625rem; }
.ord-portfolio-desc { font-size: .92rem; line-height: 1.55; margin-bottom: 0.875rem; }
.ord-portfolio-tags { display: flex; flex-wrap: wrap; gap: 0.4375rem; margin-top: 0.25rem; margin-bottom: 0.375rem; }
.ord-portfolio-tag { display: inline-block; font-size: .74rem; padding: 0.25rem 0.75rem; border-radius: 62.4375rem; }
.ord-portfolio-overlay .ord-link-arrow { font-size: .9rem; margin-top: 0.375rem; }

/* Static (touch / no-hover) context: the overlay sits in normal flow below
   the screenshot on the card's own background, so it should use the
   theme-aware text colors like the rest of the site. */
.ord-portfolio-client { color: var(--ord-accent); }
.ord-portfolio-desc { color: var(--ord-text-dim); }
.ord-portfolio-tag { background: var(--ord-veil-3); color: var(--ord-text-dim); }

/* Desktop enhancement: turn the always-visible info panel into a hover-reveal
   overlay on devices that actually support hover, so mouse users get the
   richer "hover to see details" interaction while touch users keep the
   static, always-visible version below the image. */
@media (hover: hover) and (pointer: fine) {
	.ord-portfolio-card:hover .ord-device-frame { transform: translateY(-0.25rem); }
	.ord-portfolio-card:hover .ord-device-screen img { transform: scale(1.08); }
	.ord-portfolio-overlay {
		position: absolute; inset: 0; padding-top: 45%;
		background: linear-gradient(180deg, transparent 0%, rgba(6,10,20,.68) 35%, rgba(6,10,20,.97) 100%);
		opacity: 0; transform: translateY(0.5rem);
		transition: opacity .35s var(--ord-ease), transform .35s var(--ord-ease);
	}
	.ord-portfolio-card:hover .ord-portfolio-overlay,
	.ord-portfolio-card:focus-within .ord-portfolio-overlay { opacity: 1; transform: translateY(0); }

	/* On this dark scrim, text must stay light regardless of site-wide theme —
	   the background here is always dark (it's an image overlay, not a themed
	   panel), so text tied to the light/dark text variables would go
	   dark-on-dark and disappear in light mode. */
	.ord-portfolio-overlay h3 { color: #fff; }
	.ord-portfolio-overlay .ord-portfolio-client { color: #BBD3FF; }
	.ord-portfolio-overlay .ord-portfolio-desc { color: rgba(255,255,255,.78); }
	.ord-portfolio-overlay .ord-portfolio-tag { background: rgba(255,255,255,.14); color: rgba(255,255,255,.9); }
}

/* Single project page layout */
.ord-project-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.75rem; align-items: start; }
.ord-project-main { display: flex; flex-direction: column; gap: 1.75rem; min-width: 0; }
.ord-device-frame-lg { max-width: 100%; }
.ord-project-sidebar {
	display: flex; flex-direction: column; gap: 1rem;
	padding: 1.75rem; border-radius: var(--ord-radius); background: var(--ord-panel); border: 1px solid var(--ord-border);
	position: sticky; top: calc(var(--ord-header-h) + 1.5rem);
}
.ord-project-client-logo { max-height: 2.5rem; width: auto; max-width: 10rem; object-fit: contain; background: var(--ord-logo-card-bg); padding: 0.375rem 0.75rem; border-radius: 0.5rem; align-self: flex-start; transition: background-color .3s var(--ord-ease); }
.ord-project-meta-row { display: flex; flex-direction: column; gap: 0.375rem; padding-bottom: 0.875rem; border-bottom: 1px solid var(--ord-border); }
.ord-project-meta-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.ord-project-meta-row span { font-size: .78rem; color: var(--ord-text-dim-2); text-transform: uppercase; letter-spacing: .04em; }
.ord-project-meta-row strong { font-size: .98rem; color: var(--ord-heading); font-weight: 600; }
.ord-project-content { max-width: none; }

/* Video lightbox modal */
.ord-video-modal {
	position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.5rem;
	opacity: 0; visibility: hidden; transition: opacity .3s var(--ord-ease), visibility 0s linear .3s;
}
.ord-video-modal.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ord-ease); }
.ord-video-modal-backdrop { position: absolute; inset: 0; background: rgba(5,8,16,.88); backdrop-filter: blur(0.375rem); -webkit-backdrop-filter: blur(0.375rem); }
/* .ord-video-modal-inner { position: relative; width: 100%; max-width: min(1100px, 92vw); transform: scale(.94); transition: transform .3s var(--ord-ease); } */
.ord-video-modal-inner {
  position: relative;
  width: 100%;
  max-width: clamp(20rem, 80vw, 50rem);
  transform: scale(.94);
  transition: transform .3s var(--ord-ease);
}

.ord-video-modal.is-open .ord-video-modal-inner { transform: scale(1); }
/* Pinned to the modal's own corner (the modal covers the full viewport), not
   to .ord-video-modal-inner — so it can never end up above the visible area
   or get crowded out by the inner scrollbar when the media + description
   are taller than the screen (mainly a desktop-with-wide-frame scenario). */
.ord-video-modal-close {
	position: absolute; top: 1.25rem; right: 1.5rem; z-index: 5; width: 2.25rem; height: 2.25rem; border-radius: 50%;
	background: var(--ord-panel); border: 1px solid var(--ord-border-2); color: var(--ord-heading);
	display: flex; align-items: center; justify-content: center; transition: border-color .2s;
	box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,.25);
}
.ord-video-modal-close:hover { border-color: var(--ord-accent); }
.ord-video-modal-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--ord-radius); overflow: hidden; background: #000; box-shadow: 0 1.875rem 4.375rem -1.25rem rgba(0,0,0,.7); }
.ord-video-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Everything below the close button scrolls as ONE unit (the image and its
   caption/description share a single scrollbar — the description no longer
   has a scrollbar of its own, which used to stack two scrollbars on top of
   each other). overflow-x is explicitly hidden: setting overflow-y to
   "auto" alone makes browsers treat overflow-x as "auto" too, which was
   turning the prev/next arrows — placed just outside the media box — into
   a source of unwanted horizontal scrolling. */
.ord-video-modal-scroll { max-height: calc(100vh - 3rem); overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }

/* Caption + optional longer description shown below the media, inside the modal */
.ord-gallery-modal-meta:empty { display: none; }
.ord-gallery-modal-meta {
	margin-top: 1rem; padding: 1rem 1.25rem;
	background: var(--ord-panel); border: 1px solid var(--ord-border); border-radius: var(--ord-radius);
}
.ord-gallery-modal-caption { margin: 0; font-family: var(--ord-font-display); font-size: 1.05rem; font-weight: 600; color: var(--ord-heading); }
.ord-gallery-modal-desc { margin-top: 0.5rem; font-size: .9rem; line-height: 1.65; color: var(--ord-text-dim); }
.ord-gallery-modal-desc p { margin-bottom: .8em; }
.ord-gallery-modal-desc p:last-child { margin-bottom: 0; }
.ord-gallery-modal-caption + .ord-gallery-modal-desc { margin-top: 0.625rem; padding-top: 0.625rem; border-top: 1px solid var(--ord-border); }

/* Prev / next navigation between gallery items (hidden unless the modal was opened from the gallery grid and has more than one item).
   Tucked just inside the image edges (not floating out past .ord-video-modal-media) so they can never spill outside the scroll
   container and cause horizontal overflow, and so they stay visibly attached to the photo instead of drifting toward the screen edges
   on very wide/ultra-wide monitors. */
.ord-video-modal-media { position: relative; }
.ord-video-modal-nav { display: none; }
.ord-video-modal.has-nav .ord-video-modal-nav {
	display: flex; position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
	width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--ord-panel); border: 1px solid var(--ord-border-2);
	color: var(--ord-heading); align-items: center; justify-content: center;
	box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,.35);
	transition: background-color .2s, border-color .2s, transform .2s;
}
.ord-video-modal.has-nav .ord-video-modal-nav:hover { border-color: var(--ord-accent); transform: translateY(-50%) scale(1.08); }
.ord-video-modal-prev { left: 0.875rem; }
.ord-video-modal-next { right: 0.875rem; }
@media (max-width: 720px) {
	.ord-video-modal.has-nav .ord-video-modal-nav { width: 2.125rem; height: 2.125rem; }
	.ord-video-modal-prev { left: 0.5rem; }
	.ord-video-modal-next { right: 0.5rem; }
	.ord-gallery-modal-meta { padding: 0.875rem 1rem; }
}

/* =============================================================
   Our Clients
   ============================================================= */
/* .ord-clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ord-client-card {
	display: flex; align-items: center; justify-content: center; height: 140px; padding: 28px;
	background: rgba(255,255,255,.94); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
	border-radius: var(--ord-radius); border: 1px solid rgba(15,23,42,.06);
	box-shadow: 0 1px 2px rgba(15,23,42,.04);
	transition: transform .3s var(--ord-ease), box-shadow .3s var(--ord-ease), background-color .3s var(--ord-ease);
}
.ord-client-card:hover { transform: translateY(-4px); background: rgba(255,255,255,1); box-shadow: 0 18px 34px -18px rgba(0,0,0,.4); }
.ord-client-card img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ord-client-name { font-family: var(--ord-font-display); font-weight: 600; color: #1d2327; text-align: center; font-size: .95rem; } */

/* =============================================================
   Our Clients
   ============================================================= */
.ord-clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 12.5rem)); /* fixed width */
  gap: 1.5rem;
  justify-content: center; /* centers when fewer cards */
  margin: 0 auto;          /* centers the whole block */
}

.ord-client-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 8.75rem;
  padding: 1.75rem;
  background: var(--ord-logo-card-bg);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: var(--ord-radius);
  border: 1px solid var(--ord-logo-card-border);
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: transform .3s var(--ord-ease),
              box-shadow .3s var(--ord-ease),
              background-color .3s var(--ord-ease),
              border-color .3s var(--ord-ease);
}

.ord-client-card:hover {
  transform: translateY(-0.25rem);
  background: var(--ord-logo-card-bg-hover);
  border-color: rgba(227,11,23,.45);
  box-shadow: 0 1.125rem 2.125rem -0.875rem rgba(227,11,23,.35);
}

.ord-client-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ord-client-name {
  font-family: var(--ord-font-display);
  font-weight: 600;
  color: #1d2327;
  text-align: center;
  font-size: .95rem;
}


/* =============================================================
   Our Partners (grouped by category)
   ============================================================= */
/* .ord-partner-group { margin-bottom: 44px; }
.ord-partner-group:last-child { margin-bottom: 0; }
.ord-partner-group-title {
	font-size: 1rem; font-weight: 600; color: var(--ord-text-dim); margin: 0 0 20px;
	display: flex; align-items: center; gap: 14px;
}
.ord-partner-group-title::after { content: ''; flex: 1; height: 1px; background: var(--ord-border); } */

.ord-partner-group {
  margin-bottom: 2.75rem;
}
.ord-partner-group:last-child {
  margin-bottom: 0;
}

.ord-partner-group-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ord-text-dim);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center; /* centers heading + line */
  gap: 0.875rem;
  flex-wrap: wrap;
  text-align: center;
}

.ord-partner-group-title::before,
.ord-partner-group-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ord-border);
}


/* =============================================================
   Blog / generic content
   ============================================================= */
.ord-blog-filters { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 2.5rem; }
.ord-blog-filter {
	padding: 0.625rem 1.25rem; border-radius: 62.4375rem; border: 1px solid var(--ord-border-2);
	background: var(--ord-veil-2); color: var(--ord-text-dim); font-size: .87rem; font-weight: 600;
	transition: background .35s var(--ord-ease), border-color .3s var(--ord-ease), color .3s var(--ord-ease), transform .3s var(--ord-ease), box-shadow .35s var(--ord-ease);
}
.ord-blog-filter:hover { border-color: var(--ord-accent); color: var(--ord-heading); }
.ord-blog-filter.is-active { background: var(--ord-grad-brand); color: #FFFFFF; border-color: transparent; transform: translateY(-1px); box-shadow: 0 0.625rem 1.5rem -0.625rem rgba(227,11,23,.55); backface-visibility: hidden; }

.ord-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.ord-blog-card {
	background: var(--ord-panel); border: 1px solid var(--ord-border); border-radius: var(--ord-radius); overflow: hidden;
	transition: transform .35s var(--ord-ease), border-color .35s var(--ord-ease), background-color .35s var(--ord-ease), color .35s var(--ord-ease), opacity .35s var(--ord-ease), box-shadow .35s var(--ord-ease);
}
.ord-blog-card:hover { transform: translateY(-0.25rem); border-color: rgba(227,11,23,.3); box-shadow: 0 1rem 2.25rem -1.125rem rgba(0,0,0,.4); }
.ord-blog-card.is-hidden { opacity: 0; transform: scale(.92); pointer-events: none; }
.ord-blog-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--ord-veil-3); }
.ord-blog-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ord-ease); }
.ord-blog-card:hover .ord-blog-thumb img { transform: scale(1.035); }
.ord-blog-card-body { padding: 1.25rem 1.375rem 1.375rem; }
.ord-blog-card h3 { font-size: 1.05rem; margin: 0 0 0.375rem; }
.ord-blog-card p { font-size: .9rem; margin: 0 0 0.625rem; }
.ord-blog-card .ord-link-arrow { margin-top: 2px; }
.ord-pagination { margin-top: 2.5rem; text-align: center; }

.ord-blog-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; font-family: var(--ord-font-mono); font-size: .72rem; }
.ord-blog-meta span { display: inline-flex; align-items: center; gap: 0.3125rem; padding: 0.3125rem 0.75rem; border-radius: 62.4375rem; background: var(--ord-veil-3); border: 1px solid var(--ord-border); color: var(--ord-text-dim-2); transition: background-color .3s var(--ord-ease), border-color .3s var(--ord-ease); }
.ord-blog-meta-single { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--ord-border); }
.ord-blog-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }

.ord-prose img { border-radius: var(--ord-radius-sm); height: auto; margin: 1.4em 0; }
.ord-prose figure { margin: 1.4em 0; }
.ord-prose figcaption { font-size: .85rem; color: var(--ord-text-dim-2); text-align: center; margin-top: 0.5rem; }

/* =============================================================
   Comments
   ============================================================= */
.ord-comments { max-width: min(62.5rem, 100%); margin: 3.5rem auto 0; }
.ord-comments-title { font-size: 1.3rem; margin-bottom: 1.5rem; }
.ord-comment-list, .ord-comment-list ol { list-style: none; margin: 0; padding: 0; }
.ord-comment-list .children { list-style: none; margin: 1.25rem 0 0; padding: 0 0 0 2rem; border-left: 1px solid var(--ord-border); }
.ord-comment { margin-bottom: 1.5rem; }
.ord-comment-body { display: flex; gap: 0.875rem; }
.ord-comment-avatar { flex-shrink: 0; }
.ord-comment-avatar img { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: block; }
.ord-comment-content { flex: 1; min-width: 0; }
.ord-comment-meta { display: flex; align-items: baseline; gap: 0.625rem; flex-wrap: wrap; margin-bottom: 0.375rem; }
.ord-comment-author { font-size: .95rem; color: var(--ord-heading); }
.ord-comment-date a { font-size: .78rem; color: var(--ord-text-dim-2); }
.ord-comment-date a:hover { color: var(--ord-secondary); }
.ord-comment-pending { font-size: .82rem; color: var(--ord-accent); font-style: italic; margin-bottom: 0.5rem; }
.ord-comment-text { font-size: .92rem; color: var(--ord-text-dim); }
.ord-comment-text p { margin-bottom: .8em; }
.ord-comment-reply { margin-top: 0.5rem; }
.ord-comment-reply a { font-size: .78rem; font-weight: 600; color: var(--ord-secondary); }
.ord-comment-reply a:hover { text-decoration: underline; }

.ord-comment-form-wrap { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--ord-border); }
.ord-comment-form-wrap #reply-title { font-size: 1.1rem; margin-bottom: 0.375rem; }
.ord-comment-form-note { font-size: .85rem; color: var(--ord-text-dim-2); margin-bottom: 1.25rem; }
.ord-comment-form-wrap .comment-form-cookies-consent { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.125rem; font-size: .82rem; color: var(--ord-text-dim); }
.ord-comment-form-wrap .comment-form-cookies-consent input { margin: 0; }
#cancel-comment-reply-link { display: inline-block; margin-left: 0.75rem; font-size: .82rem; color: var(--ord-text-dim-2); }
#cancel-comment-reply-link:hover { color: var(--ord-secondary); }

.ord-prose { max-width: none; margin-inline: auto; font-size: 1.02rem; }
.ord-prose h2, .ord-prose h3 { margin-top: 1.6em; }
.ord-prose > p, .ord-prose li { max-width: none; text-align: left; line-height: 1.75; }
.ord-prose > p:last-child { margin-bottom: 0; }
.ord-prose blockquote { max-width: none; }

/* A padded, bordered panel for text-heavy single-post/page content, so
   long-form copy doesn't just float loose in open space. Line length is
   capped on the paragraphs above (68ch) regardless of how wide the card
   itself is, so text stays comfortable to read even in a full-width card. */
.ord-text-card {
	background: var(--ord-panel); border: 1px solid var(--ord-border); border-radius: var(--ord-radius);
	padding: 2.75rem clamp(1.5rem, 5vw, 3.5rem);
	transition: border-color .3s var(--ord-ease), background-color .3s var(--ord-ease);
}
.ord-text-card-lg { max-width: none; padding: clamp(1.75rem, 4vw, 3rem) clamp(1.5rem, 6vw, 4rem); }
@media (max-width: 600px) {
	.ord-text-card { padding: 1.75rem 1.375rem; }
	.ord-cta-inner { padding: 2.75rem 1.625rem; }
	.ord-cta-inner h2 { font-size: clamp(1.4rem, 6vw, 1.8rem); line-height: 1.3; }
	.ord-cta-inner p { margin-top: 0.75rem; }
	.ord-cta-inner .ord-btn { margin-top: 1.625rem; width: 100%; }
}
@media (max-width: 900px) {
	.ord-cta .ord-container { padding: 0 1.5rem; }
}

.ord-404 { padding: 10rem 0 8.75rem; position: relative; overflow: hidden; isolation: isolate; }
.ord-404-code { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 0.875rem 0; }

/* =============================================================
   Scroll reveal
   ============================================================= */
.js .reveal-up { opacity: 0; transform: translate3d(0, 1.125rem, 0); transition: opacity .6s var(--ord-ease), transform .6s var(--ord-ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal-up.is-visible { opacity: 1; transform: none; }

.ord-form-field input[type="file"] {
	padding: 0.625rem 0.875rem; font-size: .88rem; color: var(--ord-text-dim);
}
.ord-form-field input[type="file"]::-webkit-file-upload-button {
	margin-right: 0.75rem; padding: 0.4375rem 0.875rem; border-radius: 62.4375rem; border: none;
	background: var(--ord-grad-brand); color: #FFFFFF; font-weight: 600; font-size: .82rem; cursor: pointer;
}
.ord-field-hint { font-weight: 400; color: var(--ord-text-dim-2); font-size: .78rem; }
.ord-file-error { color: #FF7A7A; font-size: .82rem; margin: 0.5rem 0 0; }
.ord-form-field.has-error input,
.ord-form-field.has-error input[type="file"] { border-color: #FF7A7A; }

.ord-job-apply { margin-top: 1.25rem; padding: 1.375rem; border-radius: var(--ord-radius); background: var(--ord-veil-2); border: 1px solid var(--ord-border); }
.ord-job-apply .ord-form-submit { width: auto; padding: 0.75rem 1.625rem; }
.ord-apply-toggle[aria-expanded="true"] { border-color: var(--ord-secondary); color: var(--ord-secondary); }
.ord-apply-toggle { flex-shrink: 0; }

.ord-job-apply-animated { opacity: 0; transform: translateY(-0.625rem); transition: opacity .35s var(--ord-ease), transform .35s var(--ord-ease); }
.ord-job-apply-animated.is-open { opacity: 1; transform: translateY(0); }
.ord-job-full-desc { margin-bottom: 1.375rem; padding-bottom: 1.375rem; border-bottom: 1px solid var(--ord-border); }
.ord-job-full-desc:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

.ord-map-embed { border-radius: var(--ord-radius); overflow: hidden; border: 1px solid var(--ord-border); line-height: 0; }
.ord-map-embed iframe { display: block; filter: var(--ord-map-filter); }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1080px) {
	.ord-services-grid { grid-template-columns: repeat(2, 1fr); }
	.ord-testimonial-track { grid-template-columns: repeat(2, 1fr); }
	.ord-team-grid { grid-template-columns: repeat(3, 1fr); }
	.ord-portfolio-grid { gap: 1.5rem; }
	.ord-footer-grid { grid-template-columns: 1fr 1fr; }
	.ord-clients-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.ord-container { padding: 0 1.25rem; }
	.ord-why-grid, .ord-contact-grid, .ord-project-layout, .ord-service-detail-layout { grid-template-columns: 1fr; gap: 2.25rem; }
	.ord-service-detail-sidebar { position: static; }
	.ord-team-modal-body { grid-template-columns: 1fr; }
	.ord-comment-list .children { padding-left: 1rem; }
	.ord-comment-avatar img { width: 2.25rem; height: 2.25rem; }
	.ord-team-modal-photo { position: static; width: 9.25rem; aspect-ratio: 1 / 1; margin: 1.5rem auto 0; border-radius: 50%; border: 2px solid var(--ord-border-2); box-shadow: 0 0.5rem 1.5rem -0.375rem rgba(0,0,0,.35); }
	.ord-team-modal-photo img { object-fit: cover; }
	.ord-team-modal-photo .ord-avatar-initials { border-radius: 50%; }
	.ord-team-modal-prev { left: 0.5rem; }
	.ord-team-modal-next { right: 0.5rem; }
	.ord-team-modal-info { padding: 1rem 1.5rem 1.75rem; text-align: center; }
	.ord-team-modal-expertise { text-align: left; }
	.ord-team-modal-bio { text-align: left; }
	.ord-project-sidebar { position: static; }
	.ord-values-grid, .ord-process-grid { grid-template-columns: repeat(2, 1fr); }
	.ord-services-grid-detailed { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.ord-stats-grid { grid-template-columns: 1fr; }
	.ord-stat { border-right: none; border-bottom: 1px solid var(--ord-border); }
	.ord-stat:last-child { border-bottom: none; }
	.ord-services-grid, .ord-testimonial-track, .ord-team-grid, .ord-blog-grid, .ord-portfolio-grid, .ord-clients-grid { grid-template-columns: 1fr; }
	.ord-values-grid, .ord-process-grid { grid-template-columns: 1fr; }
	.ord-footer-grid { grid-template-columns: 1fr; text-align: center; }
	.ord-footer-brand { display: flex; flex-direction: column; align-items: center; }
	.ord-footer-col ul { padding: 0; }
	.ord-footer-contact li { justify-content: center; }
	.ord-social-links { justify-content: center; row-gap: 0.625rem; }
	.ord-footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
	.ord-footer-legal { justify-content: center; }
	.ord-form-row { grid-template-columns: 1fr; }
	.ord-job-card { flex-direction: column; align-items: flex-start; }
	.ord-download-row { flex-direction: column; align-items: stretch; text-align: center; }
	.ord-download-icon { margin: 0 auto; }
	.ord-download-info { text-align: center; }
	.ord-download-btn { width: 100%; justify-content: center; }
	.ord-hero-title { font-size: clamp(2rem, 8vw, 2.6rem); }
	.ord-section { padding: 3.25rem 0; }
}
@media (max-width: 380px) {
	.ord-social-links a { width: 2.125rem; height: 2.125rem; }
	.ord-social-links { gap: 0.5rem; }
}

/* =============================================================
   Events (mirrors the Careers list/detail pattern)
   ============================================================= */
.ord-events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.ord-event-card {
	display: flex; flex-direction: column; background: var(--ord-panel); border: 1px solid var(--ord-border);
	border-radius: var(--ord-radius); overflow: hidden;
	transition: transform .35s var(--ord-ease), border-color .35s var(--ord-ease), background-color .35s var(--ord-ease), box-shadow .35s var(--ord-ease);
}
.ord-event-card:hover { transform: translateY(-0.3125rem); border-color: rgba(42,99,216,.35); box-shadow: 0 1.125rem 2.375rem -1.25rem rgba(0,0,0,.5); }
.ord-event-media { position: relative; aspect-ratio: 16/10; background: var(--ord-logo-card-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: background-color .3s var(--ord-ease); }
.ord-event-media img { width: 100%; height: 100%; object-fit: contain; padding: 1.125rem; }
.ord-event-date-badge {
	position: absolute; top: 0.875rem; left: 0.875rem; z-index: 2; text-align: center;
	background: var(--ord-panel); border: 1px solid var(--ord-border); border-radius: var(--ord-radius-sm);
	padding: 0.5rem 0.75rem; box-shadow: 0 0.5rem 1.125rem -0.625rem rgba(0,0,0,.4); line-height: 1.1;
}
.ord-event-date-badge .ord-event-day { display: block; font-family: var(--ord-font-display); font-weight: 700; font-size: 1.15rem; color: var(--ord-heading); }
.ord-event-date-badge .ord-event-mon { display: block; font-family: var(--ord-font-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ord-accent); margin-top: 2px; }
.ord-event-body { padding: 1.25rem 1.375rem 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.ord-event-body h3 { font-size: 1.08rem; margin: 0 0 0.625rem; }
.ord-event-body h3 a { color: inherit; }
.ord-event-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; padding-top: 0.25rem; }
.ord-event-meta span { font-size: .74rem; padding: 0.3125rem 0.75rem; }

.ord-event-detail-layout { display: grid; grid-template-columns: minmax(0, 28.75rem) 1fr; gap: 3rem; align-items: start; }
.ord-event-detail-media { background: var(--ord-logo-card-bg); border-radius: var(--ord-radius); border: 1px solid var(--ord-logo-card-border); padding: 1.5rem; display: flex; align-items: center; justify-content: center; transition: background-color .3s var(--ord-ease), border-color .3s var(--ord-ease); }
.ord-event-detail-media img { width: 100%; height: auto; object-fit: contain; }
.ord-event-detail-meta { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.75rem; margin: 1.125rem 0 1.375rem; }
.ord-event-detail-meta span { font-size: .88rem; padding: 0.5rem 1rem; }
.ord-event-detail-meta span svg { flex-shrink: 0; }
.ord-event-empty { padding: 3.75rem 1.5rem; text-align: center; border: 1px dashed var(--ord-border-2); border-radius: var(--ord-radius); color: var(--ord-text-dim); }

@media (max-width: 900px) {
	.ord-events-grid { grid-template-columns: repeat(2, 1fr); }
	.ord-event-detail-layout { grid-template-columns: 1fr; gap: 1.875rem; }
		.ord-cta { padding-top: 2.75rem; }
}
@media (max-width: 720px) {
	.ord-events-grid { grid-template-columns: 1fr; }
}

/* Page scroll progress bar — thin gradient line pinned to the very top,
   above the header, filling left-to-right as the visitor scrolls down. */
.ord-scroll-progress {
	position: fixed; top: 0; left: 0; right: 0; height: 0.1875rem; z-index: 999;
	background: transparent; pointer-events: none;
}
.ord-scroll-progress span {
	display: block; height: 100%; width: 0%;
	background: var(--ord-grad-brand);
	transition: width .1s linear;
}


/* =============================================================
   ORD additions
   ============================================================= */

/* ---- Logo (image, theme-aware) ---- */
.ord-logo { gap: 0.75rem; }
.ord-logo-img { display: block; height: 3.5rem; width: auto; max-width: none; }
.ord-logo .ord-logo-dark { display: block; }
.ord-logo .ord-logo-light { display: none; }
:root[data-theme="light"] .ord-logo .ord-logo-dark { display: none; }
:root[data-theme="light"] .ord-logo .ord-logo-light { display: block; }
.ord-site-header.is-scrolled .ord-logo-img { height: 2.875rem; }
.ord-logo-img { transition: height .3s var(--ord-ease); }
.ord-footer-brand .ord-logo-img { height: 5.25rem; }
.custom-logo { max-height: 3.5rem; width: auto; }
.ord-logo-text { line-height: 1.1; }
.ord-logo-text small { display: block; font-family: var(--ord-font-body); font-size: .62rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ord-text-dim); }

/* ---- Primary nav: dropdown sub-menus (desktop) ---- */
.ord-primary-nav .nav-menu { gap: 0; flex-wrap: nowrap; }
.ord-primary-nav .nav-menu > li { position: relative; }
.ord-primary-nav .nav-menu > li > a { padding: 0.625rem clamp(0.4375rem, .55vw, 0.75rem); font-size: clamp(.8rem, .5vw + .5rem, .9rem); }
.ord-primary-nav .nav-menu > li > a::after { left: 0.625rem; right: 0.625rem; }
.ord-primary-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 15rem; padding: 0.5rem;
	background: var(--ord-panel); border: 1px solid var(--ord-border-2); border-radius: var(--ord-radius);
	box-shadow: 0 1.5rem 3.125rem -1.25rem rgba(0,0,0,.5);
	opacity: 0; visibility: hidden; transform: translateY(0.5rem);
	transition: opacity .2s var(--ord-ease), transform .25s var(--ord-ease), visibility .2s;
	z-index: 20;
}
.ord-primary-nav .sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -0.75rem; height: 0.75rem; } /* hover bridge */
.ord-primary-nav .menu-item-has-children:hover > .sub-menu,
.ord-primary-nav .menu-item-has-children:focus-within > .sub-menu,
.ord-primary-nav .menu-item-has-children.is-expanded > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ord-primary-nav .sub-menu a {
	display: block; padding: 0.625rem 0.875rem; border-radius: 0.625rem; font-size: .88rem; color: var(--ord-text-dim); white-space: nowrap;
	transition: background .2s, color .2s;
}
.ord-primary-nav .sub-menu a:hover, .ord-primary-nav .sub-menu a:focus-visible { background: var(--ord-veil-4); color: var(--ord-heading); }
.ord-primary-nav .sub-menu li.current-menu-item > a { color: var(--ord-accent); }
.ord-primary-nav .nav-menu > li:nth-last-child(-n+3) > .sub-menu { left: auto; right: 0; }
.ord-primary-nav .ord-menu-cta > a { background: var(--ord-grad-brand); color: #fff !important; margin-left: 0.375rem; padding: 0.625rem clamp(1.25rem, 1.8vw, 1.875rem); border-radius: 62.4375rem; will-change: transform; backface-visibility: hidden; }
.ord-primary-nav .ord-menu-cta > a::after { display: none; }
.ord-primary-nav .ord-menu-cta > a:hover { box-shadow: 0 0.5rem 1.375rem -0.5rem rgba(227,11,23,.6); }
/* Join Us now lives in .ord-header-actions (see .ord-header-cta below) instead of inside the nav list. */
.ord-primary-nav .ord-menu-cta { display: none; }
.ord-submenu-toggle { display: none; }

/* ---- Header "Join Us" CTA: sits in the actions cluster, right after the theme toggle ---- */
.ord-header-cta.ord-header-cta {
	padding: 0.6875rem clamp(1.375rem, 2vw, 2rem);
	font-size: .92rem;
	white-space: nowrap;
	flex-shrink: 0;
}

@media (max-width: 1180px) {
	.ord-header-inner { justify-content: space-between; }
	.ord-header-inner .ord-logo { margin-right: auto; }
	.ord-header-actions { margin-left: auto; }
	.ord-primary-nav {
		position: absolute; top: calc(100% + 0.625rem); left: 2px; right: 2px;
		max-height: min(76vh, 32.5rem); overflow-y: auto;
		background: var(--ord-mobile-nav-bg); backdrop-filter: blur(1rem); -webkit-backdrop-filter: blur(1rem);
		border: 1px solid var(--ord-border); border-radius: var(--ord-radius);
		box-shadow: 0 1.75rem 3.75rem -1.25rem rgba(0,0,0,.55);
		transform: translateY(-0.625rem) scale(.98); opacity: 0; pointer-events: none;
		transition: transform .3s var(--ord-ease), opacity .25s var(--ord-ease), background-color .3s var(--ord-ease), border-color .3s var(--ord-ease);
		padding: 0.75rem 0.5rem;
	}
	.ord-primary-nav.is-open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
	.ord-primary-nav .nav-menu { flex-direction: column; align-items: stretch; padding: 0.25rem; gap: 0.1875rem; }
	.ord-primary-nav .nav-menu > li > a { display: block; padding: 0.875rem 1.125rem; font-size: 1.02rem; border-radius: var(--ord-radius-sm); }
	.ord-primary-nav .nav-menu > li > a:hover,
	.ord-primary-nav .nav-menu > li > a:focus-visible { background: var(--ord-veil-3); }
	.ord-btn.ord-mobile-nav-cta { display: flex; align-items: center; justify-content: center; margin: 0.625rem 0.5rem 0.25rem; padding: 0.875rem 1.25rem; }
	.ord-menu-toggle { display: flex; }
	.ord-header-actions { gap: 0.5rem; }
	.ord-header-cta.ord-header-cta { padding: 0.5625rem clamp(0.875rem, 4vw, 1.375rem); font-size: .82rem; }
	.ord-container { padding: 0 1.25rem; }
	.ord-primary-nav .nav-menu > li > a::after { display: none; }
	.ord-primary-nav .menu-item-has-children > a { padding-right: 3.5rem; }
	.ord-primary-nav .menu-item-has-children > a::before { display: none; }
	.ord-primary-nav .menu-item-has-children { position: relative; }
	.ord-submenu-toggle {
		display: flex; position: absolute; right: 0.375rem; top: 0.375rem; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center;
		border-radius: 0.625rem; color: var(--ord-text-dim);
	}
	.ord-submenu-toggle::before { content: ''; width: 0.5rem; height: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); transition: transform .25s var(--ord-ease); }
	.is-expanded > .ord-submenu-toggle::before { transform: rotate(225deg) translate(-2px,-2px); }
	.ord-primary-nav .sub-menu {
		position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent;
		padding: 0 0 0.375rem 0.875rem; display: none; border-left: 2px solid var(--ord-border-2); margin: 0 0 0.375rem 1.25rem;
	}
	.ord-primary-nav .sub-menu::before { display: none; }
	.ord-primary-nav .is-expanded > .sub-menu { display: block; }
	.ord-primary-nav .menu-item-has-children:hover > .sub-menu { display: none; }
	.ord-primary-nav .menu-item-has-children.is-expanded:hover > .sub-menu { display: block; }
	.ord-primary-nav .sub-menu a { white-space: normal; padding: 0.6875rem 0.75rem; font-size: .95rem; }
	.ord-primary-nav .ord-menu-cta > a { margin: 0.5rem 0.375rem 0.25rem; text-align: center; padding: 0.875rem 1.125rem; }
	.ord-primary-nav { max-height: min(80vh, 40rem); }
}

/* ---- Hero slider ---- */
.ord-slider { position: relative; isolation: isolate; overflow: hidden; background: var(--ord-navy); color: #fff; }
.ord-slider-track { position: relative; height: clamp(32.5rem, 82vh, 48.75rem); min-height: 32.5rem; }
.ord-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s var(--ord-ease), visibility .9s; display: flex; align-items: center; }
.ord-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.ord-slide-media, .ord-slide-media picture, .ord-slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ord-slide-media img { object-fit: cover; object-position: var(--focus, center); transform: scale(1.06); transition: transform 7s linear; max-width: none; }
.ord-slide.is-active .ord-slide-media img { transform: scale(1); }
.ord-slide-media::after { content: ''; position: absolute; inset: 0; background:
	linear-gradient(90deg, rgba(5,14,38,.88) 0%, rgba(5,14,38,.62) 45%, rgba(5,14,38,.18) 100%),
	linear-gradient(0deg, rgba(5,14,38,.55), transparent 40%); }
/* No-image fallback art: brand gradient + big check-mark motif from the logo */
.ord-slide-art { position: absolute; inset: 0; background:
	radial-gradient(60% 80% at 85% 20%, rgba(227,11,23,.45), transparent 60%),
	radial-gradient(70% 70% at 10% 90%, rgba(42,99,216,.45), transparent 60%),
	linear-gradient(135deg, #071633 0%, #0A2C6B 100%); }
.ord-slide-art::before { content: ''; position: absolute; inset: 0; opacity: .12; background-image:
	linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
	background-size: 3.5rem 3.5rem; mask-image: radial-gradient(circle at 70% 40%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 70% 40%, #000, transparent 70%); }
.ord-slide-art::after { content: ''; position: absolute; right: 6%; bottom: -8%; width: min(46vw, 32.5rem); aspect-ratio: 1; opacity: .9;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M6 56c6 1 12 6 18 17 12-30 34-52 70-66-30 20-46 46-58 90-4-2-8-12-16-24-4-8-9-13-14-17Z' fill='%23E30B17'/%3E%3C/svg%3E") no-repeat center / contain;
	filter: drop-shadow(0 1.25rem 2.5rem rgba(227,11,23,.35)); }
.ord-slide-art-2 { background:
	radial-gradient(60% 80% at 15% 15%, rgba(227,11,23,.4), transparent 60%),
	radial-gradient(70% 70% at 90% 90%, rgba(42,99,216,.5), transparent 60%),
	linear-gradient(225deg, #071633 0%, #0A2C6B 100%); }
.ord-slide-art-3 { background:
	radial-gradient(60% 80% at 50% 0%, rgba(227,11,23,.35), transparent 60%),
	radial-gradient(80% 70% at 0% 100%, rgba(42,99,216,.55), transparent 60%),
	linear-gradient(180deg, #071633 0%, #0B3382 100%); }
.ord-slide-inner { position: relative; z-index: 3; padding-top: var(--ord-header-h); padding-bottom: 6rem; }
.ord-slide-copy { max-width: 45rem; }
.ord-slide .ord-eyebrow { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.ord-slide-title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 1.375rem 0 1.125rem; text-shadow: 0 2px 1.25rem rgba(0,0,0,.25); }
.ord-slide-desc { color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 37.5rem; }
.ord-slide .ord-btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.ord-slide .ord-btn-ghost:hover { background: rgba(255,255,255,.18); border-color: #fff; color: #fff; }
.ord-slide .ord-hero-actions { margin-top: 1.75rem; }
.ord-slide.is-active .ord-slide-copy > * { animation: ord-slide-in .8s var(--ord-ease) both; }
.ord-slide.is-active .ord-slide-copy > *:nth-child(2) { animation-delay: .1s; }
.ord-slide.is-active .ord-slide-copy > *:nth-child(3) { animation-delay: .2s; }
.ord-slide.is-active .ord-slide-copy > *:nth-child(4) { animation-delay: .3s; }
@keyframes ord-slide-in { from { opacity: 0; transform: translateY(1.5rem); } to { opacity: 1; transform: none; } }
.ord-slider-controls { position: absolute; left: 0; right: 0; bottom: 2.125rem; z-index: 5; }
.ord-slider-controls .ord-container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ord-slider-dots { display: flex; gap: 0.625rem; }
.ord-slider-dot { width: 2.125rem; height: 0.3125rem; border-radius: 0.25rem; background: rgba(255,255,255,.35); position: relative; overflow: hidden; padding: 0; }
.ord-slider-dot::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.ord-slider-dot.is-active::after { transform: scaleX(1); }
.ord-slider.is-playing .ord-slider-dot.is-active::after { animation: ord-dot-fill var(--interval, 6500ms) linear both; }
@keyframes ord-dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ord-slider-arrows { display: flex; gap: 0.625rem; }
.ord-slider-arrow { width: 2.875rem; height: 2.875rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(5,14,38,.45); color: #fff; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(0.375rem); transition: background .25s, transform .25s var(--ord-ease); }
.ord-slider-arrow:hover { background: var(--ord-primary); border-color: var(--ord-primary); transform: scale(1.06); }
.ord-slider-arrow svg { width: 1.125rem; height: 1.125rem; }
.ord-slider-pause { width: 2.875rem; height: 2.875rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(5,14,38,.45); color: #fff; display: flex; align-items: center; justify-content: center; }
.ord-slider-pause svg { width: 1rem; height: 1rem; }
.ord-slider-pause .ord-icon-play { display: none; }
.ord-slider.is-paused .ord-slider-pause .ord-icon-play { display: block; }
.ord-slider.is-paused .ord-slider-pause .ord-icon-pause { display: none; }
.ord-slider-actions { display: flex; gap: 0.625rem; align-items: center; }
@media (max-width: 720px) {
	.ord-slider-track { height: clamp(35rem, 88vh, 43.75rem); }
	.ord-slide-inner { padding-bottom: 7.5rem; }
	.ord-slider-arrow, .ord-slider-pause { width: 2.5rem; height: 2.5rem; }
	.ord-slider-dot { width: 1.375rem; }
	.ord-slide-media::after { background: linear-gradient(0deg, rgba(5,14,38,.92) 0%, rgba(5,14,38,.55) 60%, rgba(5,14,38,.35) 100%); }
	.ord-slide-art::after { opacity: .35; right: -10%; }
}

/* ---- Stats strip beneath slider ---- */
.ord-stats-strip { background: var(--ord-panel); border-bottom: 1px solid var(--ord-border); }
.ord-stats-strip .ord-stats-grid { grid-template-columns: repeat(3, 1fr); }
.ord-stats-strip .ord-stat { padding: 1.625rem 1rem; }
.ord-stats-strip .ord-stat-num { font-family: var(--ord-font-display); color: var(--ord-accent); }

/* ---- Inner page banner (with optional uploaded image) ---- */
.ord-page-header.has-banner { padding-bottom: 4rem; min-height: 18.75rem; display: flex; align-items: flex-end; color: #fff; }
.ord-page-header.has-banner .ord-container { width: 100%; }
.ord-banner-media, .ord-banner-media img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.ord-banner-media img { object-fit: cover; object-position: var(--focus, center); max-width: none; }
.ord-banner-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,14,38,.9), rgba(5,14,38,.55) 55%, rgba(5,14,38,.25)); }
.ord-page-header.has-banner h1 { color: #fff; }
.ord-page-header.has-banner .ord-page-subtitle { color: rgba(255,255,255,.88); }
.ord-page-header.has-banner .ord-eyebrow { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.ord-breadcrumb { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-bottom: 0.875rem; font-size: .82rem; color: var(--ord-text-dim-2); }
.ord-breadcrumb a:hover { color: var(--ord-accent); }
.ord-page-header.has-banner .ord-breadcrumb, .ord-page-header.has-banner .ord-breadcrumb a { color: rgba(255,255,255,.75); }

/* ---- Collaboration section ---- */
.ord-collab-points { display: grid; gap: 0.875rem; margin-top: 1.625rem; }
.ord-collab-point { display: flex; gap: 0.875rem; align-items: flex-start; padding: 1rem 1.125rem; border: 1px solid var(--ord-border); border-radius: var(--ord-radius); background: var(--ord-panel); }
.ord-collab-point svg { color: var(--ord-accent); margin-top: 2px; }
.ord-collab-point h4 { margin: 0 0 2px; font-size: 1rem; }
.ord-collab-point p { margin: 0; font-size: .9rem; }
.ord-partners-note { text-align: center; margin-top: 1.125rem; }

/* ---- About: vision / mission / objectives / values ---- */
.ord-vmov-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.375rem; }
.ord-vmov-card { position: relative; padding: 2rem 1.875rem; border-radius: var(--ord-radius); background: var(--ord-panel); border: 1px solid var(--ord-border); overflow: hidden; }
.ord-vmov-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0.25rem; background: var(--ord-grad-brand); }
.ord-vmov-card .ord-service-icon { margin-bottom: 0.875rem; }
.ord-vmov-card h3 { font-size: 1.3rem; }
.ord-vmov-card p { margin: 0; font-size: 1rem; }
@media (max-width: 720px) { .ord-vmov-grid { grid-template-columns: 1fr; } }

/* ---- Team page: group anchors ---- */
.ord-team-group { scroll-margin-top: calc(var(--ord-header-h) + 1.25rem); }
.ord-team-empty { padding: 2.25rem; text-align: center; border: 1px dashed var(--ord-border-2); border-radius: var(--ord-radius); color: var(--ord-text-dim); }

/* ---- Filter chips row / sub-navigation ---- */
.ord-subnav { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-bottom: 2.25rem; }
.ord-subnav a { padding: 0.5rem 1.125rem; border-radius: 62.4375rem; border: 1px solid var(--ord-border-2); font-size: .88rem; color: var(--ord-text-dim); transition: all .25s; }
.ord-subnav a:hover, .ord-subnav a.is-active { color: #fff; background: var(--ord-grad-brand); border-color: transparent; }

/* ---- Hub cards (Resources / Publications) ---- */
.ord-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.375rem; }
.ord-hub-card { display: flex; flex-direction: column; gap: 0.625rem; padding: 1.75rem; border-radius: var(--ord-radius); background: var(--ord-panel); border: 1px solid var(--ord-border); transition: transform .3s var(--ord-ease), border-color .3s, background-color .3s; }
.ord-hub-card:hover { transform: translateY(-0.3125rem); border-color: rgba(227,11,23,.4); background: var(--ord-panel-2); }
.ord-hub-card h3 { margin: 0; font-size: 1.15rem; }
.ord-hub-card p { margin: 0; font-size: .92rem; flex-grow: 1; }
@media (max-width: 900px) { .ord-hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ord-hub-grid { grid-template-columns: 1fr; } }

/* ---- Publications / catalogue list ---- */
.ord-pub-list { display: grid; gap: 1rem; }
.ord-pub-row { display: flex; gap: 1.5rem; align-items: center; padding: 1.5rem 1.75rem; border-radius: var(--ord-radius); background: var(--ord-panel); border: 1px solid var(--ord-border); transition: border-color .3s, transform .3s var(--ord-ease); }
.ord-pub-row:hover { border-color: rgba(227,11,23,.35); transform: translateY(-2px); }
/* object-fit: contain (not cover) so an uploaded cover/brochure image is always shown
   in full, whatever its own aspect ratio — cropping it to a fixed frame was cutting
   off most of the artwork. */
.ord-pub-cover { width: 6rem; height: 7.375rem; border-radius: 0.5rem; overflow: hidden; background: var(--ord-logo-card-bg); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--ord-text-dim-2); padding: 0.375rem; }
.ord-pub-cover img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ord-pub-info { flex: 1; min-width: 0; }
.ord-pub-info h3 { font-size: 1.08rem; margin: 0 0 0.375rem; }
.ord-pub-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: .82rem; color: var(--ord-text-dim-2); margin-bottom: 0.5rem; }
.ord-pub-meta span { display: inline-flex; align-items: center; gap: 0.375rem; }
.ord-pub-info p { font-size: .92rem; margin: 0; }
.ord-pub-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.625rem; flex-shrink: 0; margin-left: auto; }
.ord-pub-actions .ord-btn { white-space: nowrap; }
.ord-collection-intro { margin-bottom: 1.875rem; }

/* ---- Podcast ---- */
.ord-podcast-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.375rem; }
.ord-podcast-card { padding: 1.625rem; border-radius: var(--ord-radius); background: var(--ord-panel); border: 1px solid var(--ord-border); display: flex; flex-direction: column; gap: 0.625rem; }
.ord-podcast-card h3 { margin: 0; font-size: 1.1rem; }
.ord-podcast-card audio { width: 100%; margin-top: 0.375rem; }
.ord-podcast-head { display: flex; gap: 0.875rem; align-items: center; }
.ord-podcast-head .ord-service-icon { margin: 0; flex-shrink: 0; }
@media (max-width: 800px) { .ord-podcast-grid { grid-template-columns: 1fr; } }

/* ---- Gallery ---- */
.ord-gallery-grid { columns: 3 16.25rem; column-gap: 1.125rem; }
.ord-gallery-item { position: relative; display: block; width: 100%; margin: 0 0 1.125rem; border-radius: var(--ord-radius); overflow: hidden; break-inside: avoid; background: var(--ord-panel); border: 1px solid var(--ord-border); cursor: zoom-in; padding: 0; text-align: left; }
.ord-gallery-item img { width: 100%; height: auto; transition: transform .6s var(--ord-ease); }
.ord-gallery-item:hover img { transform: scale(1.04); }
.ord-gallery-item figcaption, .ord-gallery-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.875rem 1rem 0.875rem; font-size: .88rem; color: #fff; background: linear-gradient(0deg, rgba(5,14,38,.85), transparent); opacity: 0; transition: opacity .3s; }
.ord-gallery-item:hover .ord-gallery-cap, .ord-gallery-item:focus-visible .ord-gallery-cap { opacity: 1; }
.ord-gallery-play { position: absolute; inset: 0; margin: auto; width: 3.375rem; height: 3.375rem; border-radius: 50%; background: rgba(227,11,23,.92); color: #fff; display: flex; align-items: center; justify-content: center; }
.ord-gallery-play svg { width: 1.25rem; height: 1.25rem; }
.ord-video-modal-frame img { width: 100%; height: auto; max-height: 62vh; object-fit: contain; border-radius: 0.75rem; background: #000; }

/* ---- Join Us ---- */
.ord-role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.375rem, 1fr)); gap: 0.625rem; }
.ord-role-chip { position: relative; }
.ord-role-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.ord-role-chip span { display: flex; align-items: center; gap: 0.5rem; padding: 0.6875rem 0.875rem; border-radius: 0.75rem; border: 1px solid var(--ord-border-2); background: var(--ord-veil-2); font-size: .9rem; color: var(--ord-text-dim); transition: all .2s; }
.ord-role-chip span svg { width: 1rem; height: 1rem; color: var(--ord-text-dim-2); }
.ord-role-chip input:checked + span { border-color: var(--ord-primary); background: rgba(227,11,23,.12); color: var(--ord-heading); }
.ord-role-chip input:checked + span svg { color: var(--ord-accent); }
.ord-role-chip input:focus-visible + span { outline: 2px solid var(--ord-accent); outline-offset: 2px; }
.ord-join-roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.875rem; margin-top: 1.375rem; }
.ord-join-role { padding: 1rem 1.125rem; border-radius: 0.875rem; border: 1px solid var(--ord-border); background: var(--ord-panel); }
.ord-join-role h4 { font-size: .98rem; margin: 0 0 0.25rem; display: flex; gap: 0.5rem; align-items: center; }
.ord-join-role h4 svg { width: 1.125rem; height: 1.125rem; color: var(--ord-accent); }
.ord-join-role p { margin: 0; font-size: .85rem; }
.ord-form-field select { width: 100%; padding: 0.875rem 1rem; border-radius: var(--ord-radius-sm); border: 1px solid var(--ord-border-2); background: var(--ord-veil-2); color: var(--ord-text); font-size: 1rem; }
.ord-form-legend { display: block; font-size: .88rem; font-weight: 500; color: var(--ord-text); margin-bottom: 0.625rem; }
@media (max-width: 600px) { .ord-join-roles { grid-template-columns: 1fr; } }

/* ---- Events (upcoming / previous) ---- */
.ord-events-block { scroll-margin-top: calc(var(--ord-header-h) + 1.25rem); }
.ord-events-block + .ord-events-block { margin-top: 4rem; }
.ord-events-block-title { display: flex; align-items: center; gap: 0.875rem; margin-bottom: 1.625rem; }
.ord-events-block-title h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.ord-events-block-title::after { content: ''; flex: 1; height: 1px; background: var(--ord-border-2); }
.ord-event-card.is-past .ord-event-media img { filter: grayscale(.4); opacity: .85; }
.ord-event-card .ord-event-status { position: absolute; top: 0.875rem; right: 0.875rem; z-index: 2; padding: 0.25rem 0.75rem; border-radius: 62.4375rem; background: var(--ord-primary); color: #fff; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.ord-event-card.is-past .ord-event-status { background: var(--ord-navy); }

/* ---- Contact channels ---- */
.ord-channel-row { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.375rem; }
.ord-channel { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5625rem 1rem; border-radius: 62.4375rem; border: 1px solid var(--ord-border-2); font-size: .88rem; color: var(--ord-text-dim); transition: all .25s; }
.ord-channel:hover { color: #fff; background: var(--ord-grad-brand); border-color: transparent; }

/* ---- Stories ---- */
.ord-story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.375rem; }
.ord-story-card { border-radius: var(--ord-radius); overflow: hidden; background: var(--ord-panel); border: 1px solid var(--ord-border); display: flex; flex-direction: column; transition: transform .3s var(--ord-ease), border-color .3s; }
.ord-story-card:hover { transform: translateY(-0.3125rem); border-color: rgba(227,11,23,.4); }
.ord-story-thumb { aspect-ratio: 16/10; background: var(--ord-logo-card-bg); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ord-story-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ord-story-body { padding: 1.375rem; display: flex; flex-direction: column; gap: 0.5rem; flex-grow: 1; }
.ord-story-body h3 { margin: 0; font-size: 1.1rem; }
.ord-story-body p { margin: 0; font-size: .92rem; flex-grow: 1; }
.ord-story-client { font-size: .78rem; font-family: var(--ord-font-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ord-accent); }
@media (max-width: 900px) { .ord-story-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ord-story-grid { grid-template-columns: 1fr; } }

/* ---- Partners grid: 12 slots ---- */
.ord-clients-grid.ord-partners-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .ord-clients-grid.ord-partners-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .ord-clients-grid.ord-partners-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Featured programs (home) ---- */
.ord-programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.375rem; }
.ord-program-chip { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.375rem; border-radius: var(--ord-radius); background: var(--ord-panel); border: 1px solid var(--ord-border); transition: transform .3s var(--ord-ease), border-color .3s, background-color .3s; }
.ord-program-chip:hover { transform: translateY(-0.25rem); border-color: rgba(227,11,23,.4); background: var(--ord-panel-2); }
.ord-program-chip .ord-service-icon { margin: 0; flex-shrink: 0; }
.ord-program-chip h3 { margin: 0; font-size: 1rem; line-height: 1.3; }
@media (max-width: 900px) { .ord-programs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ord-programs-grid { grid-template-columns: 1fr; } }

/* ---- Footer tweaks ---- */
.ord-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
@media (max-width: 1080px) { .ord-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .ord-footer-grid { grid-template-columns: 1fr; } }

/* ---- Small fill-ins ---- */
.ord-contact-info { display: flex; flex-direction: column; }
.ord-single-thumb { border-radius: var(--ord-radius); overflow: hidden; margin-bottom: 1.75rem; }
.ord-single-thumb img { width: 100%; height: auto; display: block; }

/* =============================================================
   Mascot — the illustrated ORD girl, dropped into different
   sections with a different pose/animation each time.
   ============================================================= */
.ord-mascot { position: absolute; z-index: 4; pointer-events: none; filter: drop-shadow(0 1.125rem 1.75rem rgba(0,0,0,.28)); }
.ord-mascot img { width: 100%; height: auto; display: block; }

.ord-hero-slider-wrap { position: relative; }
/* Sized and positioned to clear the slider's own bottom-right controls (dots/arrows/
   pause sit at bottom:34px, ~150px wide) — anchored well above and left of them instead
   of overlapping. */
.ord-mascot-hero { width: clamp(13.125rem, 18vw, 20rem); right: clamp(3.75rem, 8vw, 9.375rem); bottom: clamp(5.875rem, 14vh, 9.875rem); z-index: 6; animation: ord-mascot-peek 6s ease-in-out infinite; }
/* Raised clear of the collab-points card stack (was overlapping the first card's
   copy) and nudged outside the grid so her feet never sit over the card text. */
.ord-mascot-collab { width: clamp(5rem, 7vw, 6.875rem); top: -4.125rem; right: -0.5rem; animation: ord-mascot-tilt 7s ease-in-out infinite; }
.ord-mascot-faq { width: clamp(4rem, 6vw, 5.75rem); right: 0; top: 0; animation: ord-mascot-wave 4.5s ease-in-out infinite; transform-origin: bottom center; }
.ord-mascot-cta { width: clamp(5.625rem, 9vw, 9.375rem); left: 50%; bottom: -0.375rem; margin-left: clamp(8.75rem, 22vw, 17.5rem); animation: ord-mascot-bounce 3.2s ease-in-out infinite; }
/* Page-header mascot (About Us, Join Us, etc.) — the header has overflow:hidden,
   so she's clipped to the banner area and never overlaps the content or forms
   below it. Sits opposite the left-aligned title. */
.ord-mascot-pageheader { width: clamp(6.875rem, 10vw, 10.625rem); right: 5%; bottom: 0; z-index: 1; opacity: .95; animation: ord-mascot-sway 8s ease-in-out infinite; }
@media (max-width: 900px) { .ord-mascot-pageheader { display: none; } }
/* About Us — parked in the empty space next to the intro text card. */
.ord-mascot-about { width: clamp(9.375rem, 14vw, 15.625rem); right: 4%; bottom: 4%; z-index: 3; animation: ord-mascot-float 7.5s ease-in-out infinite; }
@media (max-width: 1100px) { .ord-mascot-about { display: none; } }

@keyframes ord-mascot-peek {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-0.875rem) rotate(-2deg); }
}
@keyframes ord-mascot-tilt {
	0%, 100% { transform: rotate(-4deg); }
	50% { transform: rotate(4deg); }
}
@keyframes ord-mascot-wave {
	0%, 100% { transform: rotate(-3deg) translateY(0); }
	25% { transform: rotate(4deg) translateY(-0.25rem); }
	50% { transform: rotate(-2deg) translateY(0); }
	75% { transform: rotate(3deg) translateY(-0.1875rem); }
}
@keyframes ord-mascot-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-1rem); }
}
/* Slow side-to-side sway with a light bob — used for the page-header mascot so
   she reads differently from the hero's up/down peek. */
@keyframes ord-mascot-sway {
	0%, 100% { transform: translateX(0) translateY(0) rotate(-2deg); }
	50% { transform: translateX(-0.625rem) translateY(-0.5rem) rotate(2deg); }
}
/* Slow, wide vertical drift — no rotation — for a calmer, ambient feel where
   she's just keeping a corner of the page company (About Us). */
@keyframes ord-mascot-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-1.25rem); }
}
@media (max-width: 900px) {
	.ord-mascot-collab { display: none; } /* avoid crowding narrow layouts already tight on space */
	.ord-mascot-hero { width: 8rem; right: 0.875rem; bottom: 6rem; }
	.ord-mascot-cta { display: none; }
}

/* =============================================================
   Homepage teasers — success stories & publications
   ============================================================= */
/* Bounded to a sensible max column width (was minmax(260px, 1fr), which let a
   1- or 2-card row stretch each card — and its cover image — to fill the
   whole container, making them look oversized). justify-content centers a
   short row instead of stretching it edge to edge. */
.ord-story-teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 17.5rem)); gap: 1.375rem; justify-content: center; }
.ord-story-teaser-card { display: block; background: var(--ord-panel); border: 1px solid var(--ord-border); border-radius: var(--ord-radius); overflow: hidden; transition: transform .3s var(--ord-ease), border-color .3s, background-color .3s, box-shadow .3s; text-decoration: none; color: inherit; cursor: pointer; }
.ord-story-teaser-card:hover, .ord-story-teaser-card:focus-visible { transform: translateY(-0.25rem); border-color: rgba(227,11,23,.3); box-shadow: 0 1.25rem 2.5rem -1.5rem rgba(0,0,0,.35); }
.ord-story-teaser-card:focus-visible { outline: 2px solid var(--ord-accent); outline-offset: 2px; }
.ord-story-teaser-card h3 a { color: inherit; }
.ord-story-teaser-media { aspect-ratio: 4/3; max-height: 13.75rem; background: var(--ord-logo-card-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ord-story-teaser-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ord-story-teaser-body { padding: 1.25rem 1.375rem 1.375rem; display: flex; flex-direction: column; gap: 0.5rem; }
.ord-story-teaser-body h3 { font-size: 1.02rem; margin: 0.25rem 0 2px; }
.ord-story-teaser-body p { font-size: .88rem; margin: 0; }
.ord-pill { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem; border-radius: 62.4375rem; background: var(--ord-veil-3); border: 1px solid var(--ord-border); color: var(--ord-text-dim-2); font-size: .74rem; width: fit-content; }

/* =============================================================
   Fixes: partner/client cards, testimonials — contrast, cut-off
   avatars, and cards not re-centering when a group has few items
   ============================================================= */
.ord-client-name { color: var(--ord-heading); }

.ord-testimonial-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(18.75rem, 1fr)); gap: 1.375rem; justify-content: center; }
.ord-testimonial-card { min-width: 0; }
.ord-quote-icon { flex-shrink: 0; }
.ord-testimonial-author { min-width: 0; }
.ord-avatar-img { width: 2.875rem; height: 2.875rem; aspect-ratio: 1 / 1; border: 1px solid var(--ord-border); }
.ord-testimonial-author > div { min-width: 0; }
.ord-testimonial-author strong, .ord-testimonial-author span { overflow-wrap: anywhere; }


/* =========================================================
   Homepage stats — up to 8 slots, 4 per row.
   --ord-stat-cols is set inline by front-page.php (min(count, 4)), so 1–4 stats
   fill a single row and 5–8 wrap to a second, centred row.
========================================================= */
.ord-stats-strip .ord-stats-grid { display: flex; flex-wrap: wrap; justify-content: center; grid-template-columns: none; }
.ord-stats-strip .ord-stat {
	flex: 0 0 calc(100% / var(--ord-stat-cols, 3));
	max-width: calc(100% / var(--ord-stat-cols, 3));
	padding: 1.625rem 1rem;
	border-right: none; border-bottom: none;
	border-left: 1px solid var(--ord-border);
	border-top: 1px solid var(--ord-border);
}
.ord-stats-strip .ord-stat:nth-child(-n+4) { border-top: none; }
.ord-stats-strip .ord-stat:nth-child(4n+1) { border-left: none; }
@media (max-width: 900px) {
	.ord-stats-strip .ord-stat { flex-basis: calc(100% / var(--ord-stat-cols-sm, 2)); max-width: calc(100% / var(--ord-stat-cols-sm, 2)); padding: 1.375rem 0.75rem; border-left: 1px solid var(--ord-border); border-top: 1px solid var(--ord-border); }
	.ord-stats-strip .ord-stat:nth-child(-n+2) { border-top: none; }
	.ord-stats-strip .ord-stat:nth-child(2n+1) { border-left: none; }
	/* undo the 4-per-row rules above for items 3–4 */
	.ord-stats-strip .ord-stat:nth-child(3), .ord-stats-strip .ord-stat:nth-child(4) { border-top: 1px solid var(--ord-border); }
}


/* =========================================================
   Journal issues — badges, details, TOC, filters
========================================================= */
.ord-journal [hidden], .ord-pub-row[hidden] { display: none !important; }
.ord-journal-filters {
	display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end;
	padding: 1.125rem 1.25rem; margin-bottom: 0.875rem;
	background: var(--ord-panel); border: 1px solid var(--ord-border); border-radius: var(--ord-radius);
}
.ord-jf { display: flex; flex-direction: column; gap: 0.3125rem; font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ord-text-dim-2); }
.ord-jf select, .ord-jf input[type="search"] {
	font: inherit; font-size: .9rem; font-weight: 500; letter-spacing: 0; text-transform: none;
	color: var(--ord-text); background: var(--ord-panel-2); border: 1px solid var(--ord-border-2);
	border-radius: 0.625rem; padding: 0.625rem 0.75rem; min-height: 2.625rem; min-width: 8.75rem;
}
.ord-jf select:focus, .ord-jf input[type="search"]:focus { outline: 2px solid var(--ord-secondary); outline-offset: 1px; }
.ord-jf-search { flex: 1 1 16.25rem; position: relative; }
.ord-jf-search svg { position: absolute; left: 0.75rem; bottom: 0.8125rem; color: var(--ord-text-dim-2); pointer-events: none; }
.ord-jf.ord-jf-search input[type="search"] { padding-left: 2.5rem; width: 100%; box-sizing: border-box; }
.ord-jf-reset { align-self: flex-end; }
.ord-journal-count { margin: 0 0 1rem; font-size: .86rem; color: var(--ord-text-dim-2); }

.ord-issue-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.ord-issue-badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: 62.4375rem; font-size: .74rem; font-weight: 700; letter-spacing: .03em; color: #fff; background: var(--ord-primary); }
.ord-issue-theme { font-weight: 600; color: var(--ord-heading); margin: -2px 0 0.5rem; }
.ord-pub-meta a { color: var(--ord-accent); text-decoration: underline; text-underline-offset: 2px; }
.ord-issue-row .ord-pub-cover { height: 8.625rem; width: 6.75rem; }

.ord-issue-toc { margin-top: 0.75rem; border-top: 1px solid var(--ord-border); padding-top: 0.625rem; }
.ord-issue-toc summary { cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--ord-secondary); list-style: none; display: inline-flex; align-items: center; gap: 0.375rem; }
.ord-issue-toc summary::-webkit-details-marker { display: none; }
.ord-issue-toc summary::after { content: '+'; font-weight: 700; }
.ord-issue-toc[open] summary::after { content: '\2212'; }
.ord-issue-toc ol { margin: 0.625rem 0 0; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.ord-issue-toc li { font-size: .88rem; color: var(--ord-text); }
.ord-issue-toc-title { font-weight: 600; color: var(--ord-heading); }
.ord-issue-toc-authors { display: block; font-size: .8rem; color: var(--ord-text-dim-2); }
.ord-issue-toc-page { display: inline-block; margin-left: 0.5rem; font-size: .78rem; font-family: var(--ord-font-mono); color: var(--ord-accent); }
a.ord-issue-toc-page { text-decoration: underline; text-underline-offset: 2px; }


/* =========================================================
   Document viewer (PDF / Office / image) — theme-aware
========================================================= */
.ord-docview { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: stretch; justify-content: center; opacity: 0; transition: opacity .2s ease; }
.ord-docview[hidden] { display: none; }
.ord-docview.is-open { opacity: 1; }
.ord-docview-backdrop { position: absolute; inset: 0; background: rgba(5, 10, 24, .78); backdrop-filter: blur(0.1875rem); }
.ord-docview-panel {
	position: relative; display: flex; flex-direction: column;
	width: min(68.75rem, 100%); height: 100%; margin: 0 auto;
	background: var(--ord-bg); color: var(--ord-text);
	box-shadow: 0 0 3.75rem rgba(0,0,0,.45);
}
@media (min-width: 900px) { .ord-docview-panel { height: calc(100% - 2rem); margin-top: 1rem; border-radius: var(--ord-radius); overflow: hidden; } }
.ord-docview-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.875rem; background: var(--ord-panel); border-bottom: 1px solid var(--ord-border); flex-shrink: 0; }
.ord-docview-title { flex: 1; min-width: 0; margin: 0; font-size: .95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ord-heading); }
.ord-docview-tools { display: flex; align-items: center; gap: 0.375rem; flex-shrink: 0; }
.ord-docview-pager, .ord-docview-zoom { display: inline-flex; align-items: center; gap: 2px; padding: 0 0.25rem; border-radius: 0.625rem; background: var(--ord-panel-2); }
.ord-docview-pager[hidden], .ord-docview-zoom[hidden] { display: none; }
.ord-docview-pageinfo { font-size: .82rem; font-family: var(--ord-font-mono); color: var(--ord-text-dim); padding: 0 0.25rem; white-space: nowrap; }
.ord-docview-pageinfo b { color: var(--ord-heading); font-weight: 600; }
.ord-docview-btn {
	display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; padding: 0 0.5rem;
	border: 0; border-radius: 0.625rem; background: transparent; color: var(--ord-text); font: inherit; font-size: 1.05rem; cursor: pointer; text-decoration: none;
	transition: background-color .2s var(--ord-ease), color .2s var(--ord-ease);
}
.ord-docview-btn:hover { background: var(--ord-veil-4); color: var(--ord-heading); }
.ord-docview-btn:focus-visible { outline: 2px solid var(--ord-secondary); outline-offset: 1px; }
.ord-docview-zoomlabel { font-size: .78rem; font-family: var(--ord-font-mono); min-width: 3.25rem; }
.ord-docview-close:hover { background: var(--ord-primary); color: #fff; }
.ord-docview-body { flex: 1; overflow: auto; background: var(--ord-bg-alt); -webkit-overflow-scrolling: touch; outline: none; position: relative; }
.ord-docview-body.has-note { display: flex; flex-direction: column; overflow: hidden; }
.ord-docview-pages { display: flex; flex-direction: column; align-items: center; gap: 0.875rem; padding: 1rem 0.5rem 2.5rem; min-width: min-content; }
.ord-docview-page { position: relative; flex: 0 0 auto; background: #fff; box-shadow: 0 2px 0.875rem rgba(0,0,0,.25); }
.ord-docview-page canvas { display: block; }
.ord-docview-page:not(.is-ready)::after { content: attr(data-page); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--ord-font-mono); font-size: 1.4rem; color: rgba(10,31,77,.25); }
.ord-docview-frame { flex: 1; width: 100%; min-height: 0; height: 100%; border: 0; background: #fff; }
.ord-docview-note { margin: 0; padding: 0.625rem 1rem; font-size: .82rem; text-align: center; background: var(--ord-panel); border-top: 1px solid var(--ord-border); }
.ord-docview-note a { color: var(--ord-accent); text-decoration: underline; }
.ord-docview-image { display: flex; align-items: center; justify-content: center; min-height: 100%; padding: 1rem; }
.ord-docview-image img { max-width: 100%; max-height: 100%; height: auto; border-radius: 0.5rem; }
.ord-docview-status { display: flex; align-items: center; justify-content: center; gap: 0.75rem; height: 100%; min-height: 12.5rem; color: var(--ord-text-dim); font-size: .95rem; }
.ord-docview-spinner { width: 1.375rem; height: 1.375rem; border-radius: 50%; border: 0.1875rem solid var(--ord-border-2); border-top-color: var(--ord-primary); animation: ord-spin .8s linear infinite; }
@keyframes ord-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
	.ord-docview-bar { flex-wrap: wrap; gap: 0.375rem 0.5rem; padding: 0.5rem 0.625rem; }
	.ord-docview-title { flex-basis: 100%; order: -1; font-size: .88rem; }
	.ord-docview-tools { width: 100%; justify-content: space-between; }
	.ord-docview-zoom { display: none; } /* pinch-to-zoom is available on touch screens */
}
@media (prefers-reduced-motion: reduce) { .ord-docview { transition: none; } .ord-docview-spinner { animation-duration: 2s; } }


/* =========================================================
   Publication / journal cards — mobile layout (no overflow, no shifting)
   Cover sits beside the text; the action buttons wrap onto their own full-width row.
========================================================= */
.ord-pub-list, .ord-pub-row, .ord-pub-info { min-width: 0; }
.ord-pub-info h3, .ord-pub-meta span, .ord-issue-toc li, .ord-pub-info p { overflow-wrap: anywhere; }
/* Safety net: nothing inside a card may widen the page. `clip` (unlike `hidden`) keeps sticky headers working. */
html, body { overflow-x: clip; max-width: 100%; }

@media (max-width: 720px) {
	.ord-pub-row,
	.ord-issue-row {
		display: grid;
		grid-template-columns: 4.25rem minmax(0, 1fr);
		column-gap: 0.875rem; row-gap: 0.875rem;
		align-items: start;
		padding: 1rem;
		width: 100%; box-sizing: border-box;
	}
	.ord-pub-row:hover { transform: none; }
	.ord-pub-row .ord-pub-cover,
	.ord-issue-row .ord-pub-cover { width: 4.25rem; height: 5.5rem; padding: 0.25rem; }
	.ord-pub-info h3 { font-size: 1rem; line-height: 1.3; }
	.ord-pub-meta { gap: 0.25rem 0.75rem; font-size: .8rem; }
	.ord-pub-info p { font-size: .88rem; line-height: 1.55; }

	.ord-pub-actions {
		grid-column: 1 / -1;
		display: flex; flex-direction: row; flex-wrap: wrap; align-items: stretch;
		gap: 0.5rem; width: 100%; margin: 0; padding: 0;
	}
	.ord-pub-actions .ord-btn { flex: 1 1 auto; justify-content: center; padding: 0.625rem 0.875rem; white-space: nowrap; min-width: 0; }
	.ord-pub-actions .ord-download-pending { flex: 1 1 100%; }

	.ord-issue-toc ol { padding-left: 1.125rem; }
	.ord-issue-toc-page { margin-left: 0; display: block; }

	/* journal filters: search full width, selects two-up */
	.ord-journal-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; padding: 0.875rem; }
	.ord-jf-search { grid-column: 1 / -1; flex: none; }
	.ord-jf select, .ord-jf input[type="search"] { min-width: 0; width: 100%; box-sizing: border-box; }
	.ord-jf-reset { grid-column: 1 / -1; justify-content: center; }
}
@media (max-width: 380px) {
	.ord-pub-row, .ord-issue-row { grid-template-columns: 3.5rem minmax(0, 1fr); column-gap: 0.75rem; padding: 0.875rem; }
	.ord-pub-row .ord-pub-cover, .ord-issue-row .ord-pub-cover { width: 3.5rem; height: 4.625rem; }
	.ord-pub-actions .ord-btn { padding: 0.5625rem 0.75rem; font-size: .82rem; }
}


/* =============================================================
   Refinements: gradient pill edges, long-text layout, page transitions
   ============================================================= */

/* Every gradient-filled pill/circle: fill reaches the border edge, no seam */
.ord-btn-primary, .ord-social-links a:hover, .ord-team-linkedin:hover,
.ord-portfolio-filter.is-active, .ord-blog-filter.is-active,
.ord-subnav a:hover, .ord-subnav a.is-active, .ord-channel:hover,
.ord-primary-nav .ord-menu-cta > a, .ord-back-to-top, .ord-avatar-initials,
.ord-form-submit {
	background-origin: border-box; background-clip: border-box;
}
.ord-btn-primary, .ord-primary-nav .ord-menu-cta > a, .ord-back-to-top,
.ord-portfolio-filter, .ord-blog-filter, .ord-subnav a, .ord-channel {
	-webkit-font-smoothing: antialiased; backface-visibility: hidden;
}
.ord-btn-primary:hover, .ord-btn-primary:focus-visible { transform: translate3d(0, -2px, 0); }

/* Long-form text in cards: use the whole card. Long copy flows into
   columns as the card gets wider (1 on phones, 2 on laptops, 3 on ultrawide). */
.ord-prose.is-long, .ord-prose.is-long.ord-text-card {
	column-width: 30rem; column-gap: clamp(2rem, 4vw, 4.5rem); column-fill: balance;
}
.ord-prose.is-long > h1, .ord-prose.is-long > h2, .ord-prose.is-long > h3, .ord-prose.is-long > h4 { break-after: avoid; }
.ord-prose.is-long > h2:first-child, .ord-prose.is-long > h3:first-child { margin-top: 0; }
.ord-prose.is-long blockquote, .ord-prose.is-long li, .ord-prose.is-long figure, .ord-prose.is-long img { break-inside: avoid; }
.ord-prose.is-long table, .ord-prose.is-long iframe, .ord-prose.is-long figure.wp-block-embed,
.ord-prose.is-long .wp-block-image.alignwide, .ord-prose.is-long pre, .ord-prose.is-long .wp-block-table,
.ord-prose.is-long .alignfull { column-span: all; }
.ord-prose.is-long > p, .ord-prose.is-long li { text-align: justify; text-align-last: left; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 700px) {
	.ord-prose.is-long { column-width: auto; column-count: 1; }
	.ord-prose.is-long > p, .ord-prose.is-long li { text-align: left; hyphens: manual; }
}
/* Card/grid copy never keeps a narrow measure of its own */
.ord-text-card, .ord-text-card-lg { max-width: none; width: 100%; }
.ord-text-card p, .ord-text-card li { overflow-wrap: break-word; }

/* Page transitions — cross-document view transition where supported, with
   a short opacity-only fade elsewhere. Header stays put; only the page body fades. */
@view-transition { navigation: auto; }
.ord-site-header { view-transition-name: ord-header; }
::view-transition-group(ord-header) { animation-duration: 0s; }
::view-transition-old(root) { animation: ord-vt-out .22s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: ord-vt-in .55s cubic-bezier(.16, 1, .3, 1) .05s both; }
@keyframes ord-vt-out { to { opacity: 0; transform: translate3d(0, -0.5rem, 0) scale(.995); } }
@keyframes ord-vt-in { from { opacity: 0; transform: translate3d(0, 1.125rem, 0); } }

/* Browsers without cross-document view transitions (Firefox, older Safari):
   page content eases in on load and eases out on internal link clicks (see main.js).
   Only <main> and the footer move, so the fixed header never jumps. */
@supports not (view-transition-name: none) {
	.ord-main, .ord-site-footer { animation: ord-page-in .5s cubic-bezier(.16, 1, .3, 1) backwards; }
	.ord-main, .ord-site-footer { transition: opacity .2s ease-in, transform .2s ease-in; }
	html.ord-leaving .ord-main, html.ord-leaving .ord-site-footer { opacity: 0; transform: translate3d(0, -0.5rem, 0); }
}
@keyframes ord-page-in { from { opacity: 0; transform: translate3d(0, 0.875rem, 0); } }
@media (prefers-reduced-motion: reduce) {
	::view-transition-old(root), ::view-transition-new(root) { animation: none; }
	.ord-main, .ord-site-footer { animation: none !important; transition: none !important; }
	html.ord-leaving .ord-main, html.ord-leaving .ord-site-footer { opacity: 1; transform: none; }
}

/* =============================================================
   About page mascot — lives in the layout instead of floating over the copy.
   Wide screens: sits in its own column, bottom-aligned beside the card.
   Tablet/phone: sits below the card, smaller. Never overlaps text.
   ============================================================= */
.ord-about-content-wrap {
	display: grid; grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(1rem, 2.5vw, 2.5rem); align-items: end; overflow: visible;
}
.ord-about-content-wrap > .ord-text-card { grid-column: 1; grid-row: 1; align-self: stretch; }
.ord-about-content-wrap > .ord-mascot.ord-mascot-about {
	display: block; position: relative; right: auto; bottom: auto; grid-column: 2; grid-row: 1; align-self: end;
	width: clamp(9.375rem, 13vw, 15rem); margin: 0 0 -0.375rem;
}
@media (max-width: 1100px) {
	.ord-about-content-wrap { grid-template-columns: minmax(0, 1fr); }
	.ord-about-content-wrap > .ord-mascot.ord-mascot-about { grid-column: 1; grid-row: 2; justify-self: end; width: clamp(6.875rem, 22vw, 10.625rem); margin: -0.5rem 0.25rem 0 0; }
}
@media (max-width: 600px) {
	.ord-about-content-wrap > .ord-mascot.ord-mascot-about { justify-self: center; width: 7.5rem; margin-right: 0; }
}


/* =============================================================
   v1.1.3 — mobile polish, reader fonts, performance
   ============================================================= */

/* FAQ mascot: lives beside the section heading, never over the accordion rows. */
@media (max-width: 1100px) { .ord-mascot-faq { display: none; } }

/* Closing CTA cards ("Meet the people behind ORD." etc.).
   Root cause of the cramped look: `.ord-cta .ord-container` (padding: 0 24px) out-ranked
   `.ord-cta-inner` padding, so on pages where the card IS the container it lost its vertical
   padding and ran edge to edge. Give the card its own gutter + comfortable padding. */
.ord-cta > .ord-cta-inner.ord-container { box-sizing: border-box; }
@media (max-width: 900px) {
	.ord-cta { padding: 2.75rem 0; }
	.ord-cta > .ord-cta-inner.ord-container {
		width: calc(100% - 2.5rem); padding: 2.75rem 1.75rem; border-radius: 1.375rem;
	}
	.ord-cta-inner { box-sizing: border-box; }
}
@media (max-width: 600px) {
	.ord-cta { padding: 2.25rem 0; }
	.ord-cta > .ord-cta-inner.ord-container { width: calc(100% - 2rem); padding: 2.375rem 1.375rem; }
	.ord-cta-inner { padding: 2.375rem 1.375rem; border-radius: 1.375rem; }
	.ord-cta-inner h2 { font-size: clamp(1.35rem, 6vw, 1.7rem); margin-bottom: 0; }
	.ord-cta-inner p { font-size: .98rem; line-height: 1.65; margin: 0.75rem 0 0; }
	.ord-cta-inner .ord-btn,
	.ord-cta-inner .ord-btn-lg { margin-top: 1.5rem; width: 100%; max-width: 100%; padding-left: 1.25rem; padding-right: 1.25rem; justify-content: center; box-sizing: border-box; }
}

/* Document / journal reader — keep the toolbar and page area tidy on phones. */
.ord-docview-body { overscroll-behavior: contain; touch-action: pan-x pan-y pinch-zoom; }
.ord-docview-page canvas { image-rendering: auto; }

/* Performance: don't lay out / paint the footer until it's near the viewport. */
.ord-site-footer { content-visibility: auto; contain-intrinsic-size: auto 32.5rem; }

/* Honour the visitor's data-saver / low-power preference: skip the decorative mascots. */
@media (prefers-reduced-data: reduce) { .ord-mascot { display: none; } }


/* =============================================================
   Partner & client logo cards — depth, tilt and glare on hover.
   The outer link only holds layout + the scroll-reveal; the visual card ("face")
   is what tilts, so the reveal's transform never fights the hover transform.
   ============================================================= */
.ord-clients-grid { grid-template-columns: repeat(auto-fit, minmax(13.75rem, 13.75rem)); gap: 1.625rem; perspective: 68.75rem; }
.ord-clients-grid .ord-client-card {
	display: block; height: 9.375rem; padding: 0; background: none; border: 0; box-shadow: none;
	backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: var(--ord-radius);
	text-decoration: none; outline: none; transform-style: flat;
}
.ord-clients-grid .ord-client-card:hover { transform: none; background: none; box-shadow: none; border: 0; }
.ord-client-face {
	--rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
	position: relative; display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%; padding: 1.625rem; box-sizing: border-box; overflow: hidden;
	border-radius: var(--ord-radius);
	background: var(--ord-logo-card-bg); border: 1px solid var(--ord-logo-card-border);
	box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 0.5rem 1.125rem -0.75rem rgba(15,23,42,.28);
	transform: translate3d(0, 0, 0) rotateX(var(--rx)) rotateY(var(--ry));
	transition: transform .45s var(--ord-ease), box-shadow .45s var(--ord-ease), border-color .35s var(--ord-ease), background-color .35s var(--ord-ease);
}
/* soft light that follows the pointer */
.ord-client-face::before {
	content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s var(--ord-ease);
	background: radial-gradient(16.25rem circle at var(--mx) var(--my), rgba(255,255,255,.55), rgba(255,255,255,0) 60%);
	mix-blend-mode: soft-light;
}
/* brand-gradient underline that draws in on hover */
.ord-client-face::after {
	content: ''; position: absolute; left: 14%; right: 14%; bottom: 0; height: 0.1875rem; border-radius: 0.1875rem 0.1875rem 0 0;
	background: var(--ord-grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ord-ease);
}
.ord-client-face img {
	position: relative; z-index: 1; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
	image-rendering: auto; transition: transform .45s var(--ord-ease), filter .45s var(--ord-ease);
}
.ord-client-card:hover .ord-client-face,
.ord-client-card:focus-visible .ord-client-face {
	will-change: transform;
	transform: translate3d(0, -0.5rem, 0) rotateX(var(--rx)) rotateY(var(--ry));
	background: var(--ord-logo-card-bg-hover); border-color: rgba(227,11,23,.45);
	box-shadow:
		0 2px 0.25rem rgba(15,23,42,.08),
		0 0.875rem 1.5rem -0.625rem rgba(227,11,23,.32),
		0 2rem 2.75rem -1.375rem rgba(42,99,216,.45);
}
.ord-client-card:hover .ord-client-face::before,
.ord-client-card:focus-visible .ord-client-face::before { opacity: 1; }
.ord-client-card:hover .ord-client-face::after,
.ord-client-card:focus-visible .ord-client-face::after { transform: scaleX(1); }
.ord-client-card:hover .ord-client-face img,
.ord-client-card:focus-visible .ord-client-face img { transform: scale(1.07); filter: drop-shadow(0 0.5rem 0.625rem rgba(0,0,0,.18)); }
.ord-client-card:focus-visible .ord-client-face { outline: 2px solid var(--ord-secondary); outline-offset: 0.1875rem; }
.ord-client-card:active .ord-client-face { transform: translate3d(0, -0.1875rem, 0) scale(.985); transition-duration: .15s; }
@media (max-width: 600px) {
	.ord-clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.875rem; perspective: none; }
	.ord-clients-grid .ord-client-card { height: 7.25rem; }
	.ord-client-face { padding: 1.125rem; }
}
@media (hover: none) {
	.ord-client-card:hover .ord-client-face { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ord-client-face, .ord-client-face img, .ord-client-face::after { transition: none; }
	.ord-client-card:hover .ord-client-face { transform: none; }
}

/* =============================================================
   Hero — girl mascot on the left, balancing the one on the right
   (desktop only; she is parked in the gutter left of the slide text,
   which is centred, so she is only shown when that gutter is wide enough).
   ============================================================= */
.ord-mascot-hero-left {
	--gw: clamp(9.375rem, 13vw, 15.625rem);
	display: none; width: var(--gw); z-index: 6;
	left: max(0.75rem, calc((100vw - 48.75rem) / 2 - var(--gw) - 1.75rem));
	bottom: clamp(5.875rem, 14vh, 9.875rem);
	animation: ord-mascot-float-soft 7s ease-in-out infinite;
}
@keyframes ord-mascot-float-soft {
	0%, 100% { transform: translateY(0) rotate(1deg); }
	50% { transform: translateY(-0.75rem) rotate(-1.5deg); }
}
@media (min-width: 1180px) { .ord-mascot-hero-left { display: block; } }
@media (prefers-reduced-motion: reduce) { .ord-mascot-hero-left { animation: none; } }


/* =============================================================
   Hero slider — responsive layout (tablet + phone)
   Slides now size to their content (all slides share one grid cell, so the slider is as tall
   as the tallest slide) instead of a fixed height that cut text off. On phones a slide with a
   normal landscape picture shows the picture in full above the copy; slides with a dedicated
   phone image or no picture keep the full-bleed look.
   ============================================================= */
@media (max-width: 1024px) {
	.ord-slider-track { height: auto; min-height: 0; display: grid; }
	.ord-slide { position: relative; inset: auto; grid-area: 1 / 1; min-height: clamp(32.5rem, 82vh, 47.5rem); min-height: clamp(32.5rem, 82svh, 47.5rem); }
	.ord-slide-inner { width: 100%; box-sizing: border-box; padding-bottom: 7.25rem; }
	.ord-slide-copy { max-width: 40rem; }
}
@media (max-width: 720px) {
	.ord-slider-track { height: auto; }
	.ord-slide { flex-direction: column; justify-content: center; align-items: stretch; min-height: clamp(33.75rem, 86vh, 45rem); min-height: clamp(33.75rem, 86svh, 45rem); }
	.ord-slide-media img { transform: scale(1.03); }
	.ord-slide-title { font-size: clamp(1.85rem, 7.6vw, 2.4rem); line-height: 1.15; margin: 0.875rem 0 0.75rem; overflow-wrap: break-word; }
	.ord-slide-desc { font-size: 1rem; line-height: 1.6; max-width: 100%; }
	.ord-slide .ord-hero-actions { margin-top: 1.375rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
	.ord-slide .ord-hero-actions .ord-btn { flex: 1 1 auto; justify-content: center; }
	.ord-slide-inner { padding-top: calc(var(--ord-header-h) + 1.25rem); padding-bottom: 7rem; }

	/* Picture shown in full on top, copy on the navy below it. */
	.ord-slide.has-img:not(.has-mobile) { justify-content: flex-start; background: #071633; }
	.ord-slide.has-img:not(.has-mobile) .ord-slide-media { position: relative; inset: auto; flex: none; width: 100%; height: calc(var(--ord-header-h) + 58vw); }
	.ord-slide.has-img:not(.has-mobile) .ord-slide-media::after {
		background: linear-gradient(180deg, rgba(5,14,38,.55) 0%, rgba(5,14,38,0) 32%), linear-gradient(0deg, #071633 0%, rgba(7,22,51,.55) 22%, rgba(7,22,51,0) 55%);
	}
	.ord-slide.has-img:not(.has-mobile) .ord-slide-inner { padding-top: 0; margin-top: -1.625rem; }

	/* The big mascots would sit on top of the copy and buttons. */
	.ord-mascot-hero, .ord-mascot-hero-left { display: none; }
}
@media (max-width: 380px) {
	.ord-slide .ord-hero-actions .ord-btn { flex-basis: 100%; }
}

/* Clip the slow-zoom so the picture can never spill past its box (caused a thin stray strip
   of the photo under the image on phones). */
.ord-slide-media { overflow: hidden; }
@media (max-width: 720px) {
	.ord-slide.has-img:not(.has-mobile) .ord-slide-media { margin-bottom: -1px; }
	.ord-slide.has-img:not(.has-mobile) .ord-slide-media::after { inset: 0 0 -1px 0; }
	.ord-slide-media img { transform: none; transition: none; }
}


/* =============================================================
   Seamless page navigation (assets/js/spa.js)
   ============================================================= */
#ord-spa-bar { position: fixed; left: 0; right: 0; top: 0.1875rem; height: 0.1875rem; z-index: 998; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
#ord-spa-bar span { display: block; height: 100%; width: 0; background: var(--ord-grad-brand); border-radius: 0 0.1875rem 0.1875rem 0; }
#ord-spa-bar.is-run { opacity: 1; }
#ord-spa-bar.is-run span { width: 78%; transition: width 9s cubic-bezier(.08, .6, .2, 1); }
#ord-spa-bar.is-done { opacity: 0; }
#ord-spa-bar.is-done span { width: 100%; transition: width .2s ease; }
/* Browsers without View Transitions: only the page content fades while the next page loads; the footer persists, so it stays put */
html.ord-spa.ord-leaving .ord-site-footer { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { #ord-spa-bar.is-run span { transition: none; } }


/* =============================================================
   Large / zoomed-out screens — the whole layout scales with the viewport
   Every length in this stylesheet is in rem (hairlines excepted), so growing the root font-size above the 1920px design width
   scales spacing, type, grids, heroes and the container together (container = 110rem ≈ 92% of the screen). Zooming the browser
   out therefore keeps the same proportions and fills the screen instead of leaving a fixed-width column in the middle.
   Up to a 5760px-wide viewport; at 1920px and below nothing changes (the root stays at the browser's own size).
   ============================================================= */
@media (min-width: 1921px) {
	html { font-size: min(0.8333vw, 48px); }
}
