/* Cube IT — draft 4. White and near-black, one font, hairlines; the Cube blues only in the mark and small signals. */
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #181818; --paper: #ffffff; --blue: #3A96CA; --blue-2: #84C5E8;
  --fg: var(--ink); --bg: var(--paper);
  --fg-60: rgba(24,24,24,.6); --fg-50: rgba(24,24,24,.5); --fg-20: rgba(24,24,24,.2); --fg-10: rgba(24,24,24,.1);
  --m: 32px; --gap: 32px;
  --ease: cubic-bezier(.3,0,0,1); --ease-smooth: cubic-bezier(.16,1,.3,1); --ease-io: cubic-bezier(.4,0,.2,1);
  --t-theme: .5s;
  --display: clamp(42px, 4.45vw, 72px);
}
[data-theme="dark"] { --fg: #fff; --bg: #181818; --fg-60: rgba(255,255,255,.6); --fg-50: rgba(255,255,255,.5); --fg-20: rgba(255,255,255,.2); --fg-10: rgba(255,255,255,.1); }
@media (max-width: 760px) { :root { --m: 16px; --gap: 16px; --display: clamp(38px, 10.4vw, 48px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; font-weight: 500; font-size: 16px; line-height: 1.3; letter-spacing: -0.03em; color: var(--fg); background: var(--bg); transition: background-color var(--t-theme) var(--ease-io), color var(--t-theme) var(--ease-io); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.has-gl { background: transparent; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; }
.skip:focus { top: 8px; }

/* type */
.display { font-size: var(--display); line-height: 1; letter-spacing: -0.016em; text-wrap: balance; }
.headline { font-size: clamp(24px, 2.25vw, 32px); line-height: 1.2; letter-spacing: -0.03em; }
.lead { font-size: 16px; line-height: 1.3; color: var(--fg-60); max-width: 30em; }
.body-s { font-size: 12px; line-height: 1.3; letter-spacing: -0.03em; color: var(--fg-60); }
.mute { color: var(--fg-50); }
.num { font-variant-numeric: tabular-nums; }

/* the light layer and the page */
.bg-gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
main { position: relative; }
.wrap { padding-inline: var(--m); }

/* header */
.hd { position: absolute; top: 0; left: 0; right: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 88px; padding-inline: var(--m); }
.brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.brand svg { width: 30px; height: 30px; }
.brand span { font-size: 16px; }
.hd .menu-btn { justify-self: center; padding: 8px 4px; }
.hd .hd-right { justify-self: end; display: flex; gap: 24px; align-items: center; }
.hd .hd-right a { position: relative; }
@media (max-width: 760px) { .hd { height: 72px; grid-template-columns: 1fr auto; } .hd .menu-btn { justify-self: end; } .hd .hd-right { display: none; } }

/* hover underline that wipes in */
.ul { background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px; transition: background-size .5s var(--ease); padding-bottom: 2px; }
.ul:hover, .ul:focus-visible { background-position: 0 100%; background-size: 100% 1px; }

/* menu: a panel that drops from the top centre */
.menu { position: fixed; inset: 0; z-index: 50; visibility: hidden; pointer-events: none; }
.menu.open { visibility: visible; pointer-events: auto; }
.menu .scrim { position: absolute; inset: 0; background: rgba(24,24,24,.08); opacity: 0; transition: opacity .5s var(--ease-io); }
.menu.open .scrim { opacity: 1; }
.menu .panel { position: absolute; left: 50%; top: 0; width: min(504px, 100%); transform: translate(-50%, -102%); background: #f7f7f7; color: var(--ink); padding: 0 16px 32px; transition: transform .7s var(--ease); max-height: 100%; overflow: auto; }
.menu.open .panel { transform: translate(-50%, 0); }
.menu .close { display: block; margin: 0 auto; padding: 30px 16px 26px; }
.menu .big { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(24,24,24,.2); }
.menu .big li { border-bottom: 1px solid rgba(24,24,24,.2); overflow: hidden; }
.menu .big a { display: flex; justify-content: space-between; align-items: center; font-size: 32px; line-height: 1.2; letter-spacing: -0.03em; padding: 10px 0 12px; transform: translateY(105%); transition: transform .7s var(--ease), color .2s; }
.menu.open .big a { transform: none; }
.menu.open .big li:nth-child(2) a { transition-delay: .05s; } .menu.open .big li:nth-child(3) a { transition-delay: .1s; } .menu.open .big li:nth-child(4) a { transition-delay: .15s; } .menu.open .big li:nth-child(5) a { transition-delay: .2s; }
.menu .big a small { font-size: 12px; color: rgba(24,24,24,.5); letter-spacing: -0.03em; }
.menu .big a:hover { color: var(--blue); }
.menu .contacts { margin-top: 56px; border-top: 1px solid rgba(24,24,24,.2); }
.menu .contacts a { display: grid; grid-template-columns: 1fr auto; padding: 14px 0 12px; border-bottom: 1px solid rgba(24,24,24,.2); }
.menu .contacts a span { grid-column: 1; font-size: 12px; color: rgba(24,24,24,.5); }
.menu .contacts a i { grid-column: 2; grid-row: 1; font-style: normal; transition: transform .3s var(--ease); }
.menu .contacts a:hover i { transform: translate(3px, -3px); }
html.menu-open { overflow: hidden; }

/* wipe button: an underlined link that fills on hover */
.wbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1.5px solid currentColor; white-space: nowrap; transition: padding .3s var(--ease), color .3s var(--ease); isolation: isolate; }
.wbtn::before { content: ""; position: absolute; inset: 0 0 -1.5px; background: var(--fg); z-index: -1; clip-path: inset(0 100% 0 0); transition: clip-path .5s var(--ease); }
.wbtn:hover, .wbtn:focus-visible { padding-inline: 16px; color: var(--bg); }
.wbtn:hover::before, .wbtn:focus-visible::before { clip-path: inset(0 0 0 0); }
.wbtn .arr { transition: transform .3s var(--ease); }
.wbtn:hover .arr { transform: translate(2px, -2px); }
.btns { display: flex; flex-wrap: wrap; gap: 32px; }

/* section label over a hairline that wipes in */
.label { display: block; padding-top: 128px; }
.label .lt { display: block; text-align: center; font-size: 12px; padding: 0 0 12px; }
.label .rule { display: block; height: 1px; background: var(--fg-20); transform-origin: left; transition: background-color var(--t-theme) var(--ease-io); }
.js .label .rule { transform: scaleX(0); transition: transform 1s var(--ease), background-color var(--t-theme); }
.js .label.in .rule { transform: none; }
.js .label .lt { opacity: 0; transition: opacity .8s var(--ease-io) .2s; }
.js .label.in .lt { opacity: 1; }
@media (max-width: 760px) { .label { padding-top: 96px; } }

/* words rise into place */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform 1.1s var(--ease), opacity 1.1s var(--ease-io); transition-delay: calc(var(--i) * 55ms + var(--d, 0ms)); }
.js [data-split].in .w > span { transform: none; opacity: 1; }
.js .fade { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease-io), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js .fade.in { opacity: 1; transform: none; }

/* hero */
.hero { position: relative; min-height: 100svh; min-height: 100vh; overflow: hidden; }
@supports (height: 100svh) { .hero { min-height: 100svh; } }
.hero canvas.cubes, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .poster { object-fit: cover; object-position: 70% 50%; }
.hero canvas.cubes { opacity: 0; transition: opacity 1.2s var(--ease-io); }
.hero canvas.cubes.on { opacity: 1; }
.hero .hero-in { position: relative; z-index: 2; padding: 120px var(--m) 0; max-width: 760px; }
.hero h1 { margin-bottom: 32px; }
.hero .lead { max-width: 28em; margin-bottom: 56px; }
.hero .scroll-cue { position: absolute; left: var(--m); bottom: 28px; z-index: 2; font-size: 12px; display: flex; gap: 10px; align-items: center; color: var(--fg-60); }
.hero .scroll-cue i { width: 1px; height: 28px; background: var(--fg-20); position: relative; overflow: hidden; }
.hero .scroll-cue i::after { content: ""; position: absolute; left: 0; top: -100%; width: 1px; height: 100%; background: var(--fg); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { top: -100%; } 60%, 100% { top: 100%; } }
@media (max-width: 760px) { .hero .hero-in { padding-top: 104px; } .hero .lead { margin-bottom: 40px; } .hero .poster { object-position: 60% 100%; } }

/* two-up cards with a hairline on top */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.card { border-top: 1px solid var(--fg-20); padding-top: 20px; transition: border-color var(--t-theme); }
.card h3 { margin-bottom: 16px; }
.card p { color: var(--fg-50); max-width: 22em; transition: color var(--t-theme); }
.card .meta { margin-top: 20px; display: flex; gap: 24px; flex-wrap: wrap; }
a.card { display: block; position: relative; }
a.card .go { position: absolute; right: 0; top: 24px; color: var(--fg-50); display: flex; gap: 10px; align-items: center; transition: color .3s; }
a.card .go i { font-style: normal; transition: transform .4s var(--ease); }
a.card:hover .go { color: var(--fg); }
a.card:hover .go i { transform: translateX(4px); }
a.card::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
a.card:hover::after { transform: none; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* section blocks */
.sec { position: relative; }
.sec .intro { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding-top: 40px; }
.sec .intro h2 { grid-column: 1 / -1; max-width: 13.5em; }
.sec .intro .lead { margin-top: 32px; }
.sec .body { padding-top: 120px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.split > .right { grid-column: 2; }
.stack > * + * { margin-top: 40px; }
@media (max-width: 760px) { .sec .intro, .split { grid-template-columns: 1fr; } .split > .right { grid-column: 1; } .sec .body { padding-top: 72px; } }

/* figures */
.figs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.fig { border-top: 1px solid var(--fg-20); padding-top: 16px; }
.fig b { display: block; font-weight: 500; font-size: clamp(44px, 4.45vw, 72px); line-height: 1; letter-spacing: -0.03em; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.fig b sup { font-size: .4em; vertical-align: top; position: relative; top: .25em; margin-left: .08em; letter-spacing: 0; }
.fig span { color: var(--fg-50); display: block; max-width: 14em; }
@media (max-width: 900px) { .figs { grid-template-columns: 1fr 1fr; row-gap: 40px; } }

/* numbered steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.step { border-top: 1px solid var(--fg-20); padding-top: 20px; }
.step .n { font-size: 12px; color: var(--fg-50); display: block; margin-bottom: 72px; }
.step h3 { margin-bottom: 16px; }
.step p { color: var(--fg-50); max-width: 22em; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step .n { margin-bottom: 24px; } }

/* expertise rows */
.rows { border-top: 1px solid var(--fg-20); }
.row { display: grid; grid-template-columns: 5fr 6fr auto; gap: var(--gap); align-items: baseline; padding: 22px 0 24px; border-bottom: 1px solid var(--fg-20); position: relative; }
.row h3 { transition: transform .6s var(--ease); }
.row p { color: var(--fg-50); }
.row .go { color: var(--fg-50); white-space: nowrap; transition: color .3s; display: flex; gap: 10px; }
.row .go i { font-style: normal; transition: transform .4s var(--ease); }
a.row:hover h3 { transform: translateX(12px); }
a.row:hover .go { color: var(--fg); } a.row:hover .go i { transform: translateX(4px); }
a.row::before { content: ""; position: absolute; left: 0; top: 0; width: 6px; height: 6px; background: var(--blue); transform: scale(0); transition: transform .4s var(--ease); top: calc(50% - 3px); }
a.row:hover::before { transform: scale(1); }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 10px; } .row .go { display: none; } a.row:hover h3 { transform: none; } }

/* assignments, from the portal */
.jobs { border-top: 1px solid var(--fg-20); }
.body.jobs { padding-top: 0; margin-top: 96px; }
@media (max-width: 760px) { .body.jobs { margin-top: 64px; } .hero .scroll-cue { display: none; } }
.job { display: grid; grid-template-columns: 110px 1fr 220px 140px 110px; gap: 24px; align-items: baseline; padding: 18px 0 20px; border-bottom: 1px solid var(--fg-20); transition: background-color .3s; }
.job:hover { background: var(--fg-10); }
.job .t { font-size: 20px; letter-spacing: -0.03em; line-height: 1.2; }
.job .k { font-size: 12px; color: var(--fg-50); }
.job .s { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.job .s::before { content: ""; width: 7px; height: 7px; background: var(--blue-2); }
.job .s.closed { color: var(--fg-50); } .job .s.closed::before { background: var(--fg-20); }
@media (max-width: 900px) { .job { grid-template-columns: 1fr auto; gap: 6px 16px; } .job .t { grid-column: 1 / -1; order: -1; font-size: 18px; } .job .id, .job .area { display: none; } }
.centre { text-align: center; }
.centre .display { max-width: 15em; margin-inline: auto; }
.centre .lead { margin: 32px auto 0; max-width: 32em; }
.centre .btns { justify-content: center; margin-top: 48px; }

/* values with solid marks */
.vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.val svg { width: 96px; height: 96px; margin-bottom: 24px; color: var(--fg); }
.val .card h3 { margin-bottom: 16px; }
@media (max-width: 900px) { .vals { grid-template-columns: 1fr; row-gap: 56px; } .val svg { width: 72px; height: 72px; } }

/* people */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.person { border-top: 1px solid var(--fg-20); padding-top: 18px; }
.person .mono { width: 56px; height: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-bottom: 40px; }
.person .mono i { background: var(--fg); }
.person .mono i.o { background: transparent; box-shadow: inset 0 0 0 1px var(--fg-20); }
.person .mono i.b { background: var(--blue); }
.person h3 { font-size: 24px; line-height: 1.2; }
.person .role { color: var(--fg-50); margin: 4px 0 20px; }
.person a { display: block; width: fit-content; margin-top: 6px; }
@media (max-width: 900px) { .people { grid-template-columns: 1fr 1fr; row-gap: 48px; } }
@media (max-width: 520px) { .people { grid-template-columns: 1fr; } }

/* FAQ accordion */
.faq { border-top: 1px solid var(--fg-20); }
.faq details { border-bottom: 1px solid var(--fg-20); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 24px; padding: 20px 0 22px; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.2; letter-spacing: -0.03em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 16px; height: 16px; margin-top: 5px; justify-self: end; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 0; top: 7.5px; width: 16px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .a { color: var(--fg-60); padding: 0 48px 28px 0; max-width: 46em; }
.faq .a p + p, .faq .a ul { margin-top: 12px; }
.faq .a ul { padding-left: 1.1em; }

/* skills lists */
.disc { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gap); padding: 28px 0 56px; border-top: 1px solid var(--fg-20); scroll-margin-top: 24px; }
.disc h2 { font-size: clamp(30px, 3.2vw, 48px); line-height: 1.05; letter-spacing: -0.02em; }
.disc .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.disc h3 { font-size: 12px; color: var(--fg-50); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips li { border: 1px solid var(--fg-20); padding: 5px 10px 6px; font-size: 14px; line-height: 1.2; transition: border-color .3s, background-color .3s; }
.chips li:hover { border-color: var(--fg); }
@media (max-width: 900px) { .disc { grid-template-columns: 1fr; } .disc .cols { grid-template-columns: 1fr; gap: 28px; } }

/* contact */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap); }
.form label { display: block; border-bottom: 1px solid var(--fg-20); padding: 16px 0 10px; transition: border-color .3s; }
.form label:focus-within { border-color: var(--fg); }
.form label span { display: block; font-size: 12px; color: var(--fg-50); margin-bottom: 6px; }
.form input, .form textarea { width: 100%; font: inherit; font-size: 20px; letter-spacing: -0.03em; color: var(--fg); background: transparent; border: 0; padding: 0; outline: none; }
.form textarea { min-height: 120px; resize: vertical; }
.form .full { grid-column: 1 / -1; }
.form .hp { position: absolute; left: -9999px; }
.form .send { margin-top: 40px; grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.form button.wbtn { cursor: pointer; }
.notice { padding: 16px 0; border-top: 1px solid var(--fg-20); border-bottom: 1px solid var(--fg-20); margin-bottom: 32px; display: none; }
.notice.show { display: block; }
@media (max-width: 760px) { .form { grid-template-columns: 1fr; } }

/* page heads for inner pages */
.phead { padding: 168px var(--m) 0; }
.phead .display { max-width: 12em; }
.phead .lead { margin-top: 32px; }
@media (max-width: 760px) { .phead { padding-top: 128px; } }

/* footer */
.ft { position: relative; background: var(--paper); color: var(--ink); margin-top: 200px; padding: 40px var(--m) 0; overflow: hidden; --fg: var(--ink); --fg-50: rgba(24,24,24,.5); --fg-20: rgba(24,24,24,.2); }
.ft .cols { display: grid; grid-template-columns: 6fr 3fr 3fr; gap: var(--gap); }
.ft .bigl { list-style: none; margin: 0; padding: 0; }
.ft .bigl a { font-size: 32px; line-height: 1.45; letter-spacing: -0.03em; }
.ft ul.sm { list-style: none; margin: 0; padding: 0; }
.ft ul.sm li { line-height: 1.8; }
.ft .legal { margin-top: 72px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; color: rgba(24,24,24,.5); }
.ft .word { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 64px; padding-bottom: 28px; font-size: clamp(64px, 12vw, 200px); line-height: .8; letter-spacing: -0.05em; }
.ft .word svg { width: .62em; height: .62em; margin-bottom: .04em; }
.ft .word .l { display: inline-block; }
.js .ft .word .l { transform: translateY(40%); opacity: 0; transition: transform 1.2s var(--ease), opacity 1.2s var(--ease-io); transition-delay: calc(var(--i) * 70ms); }
.js .ft .word.in .l { transform: none; opacity: 1; }
@media (max-width: 760px) { .ft .cols { grid-template-columns: 1fr 1fr; } .ft .cols > :first-child { grid-column: 1 / -1; margin-bottom: 24px; } .ft { margin-top: 128px; } }

/* intro splash, first visit only */
.splash { position: fixed; inset: 0; z-index: 90; background: #fff; display: grid; place-items: center; transition: opacity .7s var(--ease-io), visibility 0s linear .7s; }
.splash.gone { opacity: 0; visibility: hidden; }
.splash .sw { display: flex; align-items: center; gap: 28px; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.03em; color: var(--ink); }
.splash svg { width: 1.3em; height: 1.3em; }
.splash svg rect { transform-box: fill-box; transform-origin: center; animation: sq .7s var(--ease) both; }
.splash .wd { animation: wd .9s var(--ease) .35s both; }
@keyframes sq { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes wd { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }

/* without motion: everything is simply there */
@media (prefers-reduced-motion: reduce) {
  .js [data-split] .w > span, .js .fade, .js .ft .word .l { transform: none !important; opacity: 1 !important; transition: none !important; }
  .js .label .rule { transform: none; } .js .label .lt { opacity: 1; }
  .hero .scroll-cue i::after { animation: none; }
  .splash { display: none; }
}
