/* Ravitz Computers — "Additive"
   Built from the three channels rather than a single accent. Black ground,
   RGB as structure, light as an actual behaviour of the page. */

:root {
	--void:   #08080A;
	--ground: #0D0D10;
	--raise:  #15151A;
	--edge:   #24242C;
	--edge-2: #191920;

	--white:  #F4F4F6;
	--read:   #C9C9D0;
	--mute:   #8A8A93;
	--faint:  #55555E;

	/* the three channels */
	--r: #FF2B2B;
	--g: #21E06A;
	--b: #2E7BFF;

	--brand: #FC182E;
	--brand-lift: #FF6070;

	--display: "Big Shoulders Display", "Haettenschweiler", "Arial Narrow", sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

	--gutter: 22px;
	--maxw: 1180px;

	--lx: 50%;
	--ly: 30%;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
	background: var(--void);
	color: var(--read);
	font-family: var(--mono);
	font-size: 14.5px;
	line-height: 1.68;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; }

/* ---------- the light ---------- */

.lamp {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(520px circle at var(--lx) var(--ly), rgba(255, 43, 43, .16), transparent 62%),
		radial-gradient(660px circle at calc(var(--lx) + 60px) calc(var(--ly) + 30px), rgba(46, 123, 255, .14), transparent 64%),
		radial-gradient(420px circle at calc(var(--lx) - 50px) calc(var(--ly) + 60px), rgba(33, 224, 106, .08), transparent 60%);
	transition: background-position .2s linear;
}

/* ---------- shell ---------- */

.wrap {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding-inline: var(--gutter);
}

/* RGB calibration rail — the structural device */
.rail {
	position: relative;
	z-index: 1;
	display: flex;
	height: 3px;
	width: 100%;
}
.rail i { flex: 1; display: block; }
.rail i:nth-child(1) { background: var(--r); }
.rail i:nth-child(2) { background: var(--g); }
.rail i:nth-child(3) { background: var(--b); }

.hr {
	position: relative;
	z-index: 1;
	border: 0;
	border-top: 1px solid var(--edge-2);
	margin: 0;
}

/* ---------- masthead ---------- */

.mast {
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 50;
	background: rgba(8, 8, 10, .9);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--edge-2);
}
.mast-in {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 12px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	border-bottom: 0;
	color: var(--white);
}
.brand:hover { color: var(--white); border-bottom: 0; }
.brand b {
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(22px, 3.2vw, 30px);
	letter-spacing: .05em;
	line-height: 1;
}
.nav { display: flex; align-items: center; gap: 24px; }

/* the link and the dropdown button share one box so their rules line up */
.nav a, .menu-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: var(--mono);
	font-weight: 400;
	font-size: 12px;
	line-height: 1;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mute);
	text-decoration: none;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	padding: 0 0 5px;
	margin: 0;
	cursor: pointer;
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--brand); }

/* ---------- links & type ---------- */

a { color: var(--brand); text-decoration: none; border-bottom: 1px solid rgba(252,24,46,.4); }
a:hover { color: var(--brand-lift); border-bottom-color: var(--brand-lift); }
a:focus-visible { outline: 2px solid var(--brand-lift); outline-offset: 3px; }

.tick {
	font-size: 11px;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--faint);
	margin: 0 0 18px;
}

.huge {
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(3.4rem, 13.5vw, 11rem);
	line-height: .82;
	letter-spacing: -0.005em;
	text-transform: uppercase;
	color: var(--white);
	margin: 0;
	position: relative;
}

/* additive channel fringing */
.split { position: relative; display: inline-block; }
.split::before,
.split::after {
	content: attr(data-t);
	position: absolute;
	inset: 0;
	mix-blend-mode: screen;
	pointer-events: none;
}
.split::before { color: #C81020; transform: translate3d(-.016em, 0, 0); }
.split::after  { color: #1E4FCC; transform: translate3d(.016em, 0, 0); }

.big {
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(2.3rem, 6.5vw, 4.6rem);
	line-height: .88;
	letter-spacing: .005em;
	text-transform: uppercase;
	color: var(--white);
	margin: 0 0 18px;
}

.mid {
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(1.5rem, 3.4vw, 2.2rem);
	line-height: .95;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--white);
	margin: 0 0 12px;
}

p { margin: 0 0 15px; max-width: 58ch; }
p:last-child { margin-bottom: 0; }
.say { font-size: 15px; color: var(--read); }
.dim { color: var(--mute); }

.section { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 104px); }
.section-s { position: relative; z-index: 1; padding-block: clamp(40px, 6vw, 68px); }

/* ---------- buttons ---------- */

.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.btn {
	display: inline-flex;
	align-items: center;
	font-family: var(--mono);
	font-weight: 500;
	font-size: 12.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	padding: 13px 22px;
	border: 1px solid var(--edge);
	border-radius: 0;
	color: var(--white);
	background: transparent;
	transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--raise); border-color: var(--mute); color: var(--white); }
.btn-go {
	background: var(--brand);
	border-color: var(--brand);
	color: #0A0203;
	font-weight: 500;
}
.btn-go:hover { background: var(--brand-lift); border-color: var(--brand-lift); color: #0A0203; }

/* ---------- hero ---------- */

.hero { position: relative; z-index: 1; padding-block: clamp(34px, 5vw, 60px) clamp(30px, 4vw, 44px); }
.hero-say {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 40px;
	align-items: baseline;
	margin-top: 30px;
}
.hero-say p { max-width: 42ch; margin: 0; }

/* ---------- light bar ---------- */

.bar {
	position: relative;
	z-index: 1;
	display: flex;
	gap: 2px;
	height: 76px;
	width: 100%;
	padding-inline: var(--gutter);
	align-items: stretch;
}
.bar span {
	flex: 1;
	min-width: 0;
	background: var(--r);
	transition: background-color 1.4s linear;
}
.bar-tag {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: space-between;
	gap: 16px;
	font-size: 10.5px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--faint);
	padding: 10px var(--gutter) 0;
}

/* ---------- claims list ---------- */

.claims { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 44px; }
.claim {
	display: grid;
	grid-template-columns: 10px 1fr;
	gap: 16px;
	align-items: start;
	padding: 17px 0;
	border-top: 1px solid var(--edge-2);
}
.claim i { display: block; width: 10px; height: 10px; margin-top: 7px; }
.claim:nth-child(3n+1) i { background: var(--r); }
.claim:nth-child(3n+2) i { background: var(--g); }
.claim:nth-child(3n+3) i { background: var(--b); }
.claim b {
	display: block;
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.32rem;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--white);
	line-height: 1.05;
	margin-bottom: 3px;
}
.claim span { font-size: 13px; color: var(--mute); }

/* ---------- product poster ---------- */

.poster {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: clamp(24px, 5vw, 56px);
	align-items: center;
}
.poster img { width: clamp(150px, 22vw, 260px); }

.facts { display: flex; flex-wrap: wrap; gap: 0 44px; margin-top: 26px; }
.fact { padding: 12px 0; border-top: 1px solid var(--edge-2); min-width: 128px; }
.fact b {
	display: block;
	font-family: var(--display);
	font-weight: 800;
	font-size: 2.1rem;
	line-height: 1;
	color: var(--white);
	font-variant-numeric: tabular-nums;
}
.fact span {
	display: block;
	font-size: 10.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--faint);
	margin-top: 5px;
}

/* ---------- device panel ---------- */

.panel { border: 1px solid var(--edge); background: var(--raise); }
.panel-h {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 15px;
	border-bottom: 1px solid var(--edge);
	font-size: 10.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--faint);
}
.row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 14px;
	align-items: center;
	padding: 12px 15px;
	border-bottom: 1px solid var(--edge-2);
}
.row:last-child { border-bottom: 0; }
.row em { font-style: normal; font-size: 12.5px; color: var(--white); display: block; }
.row small {
	display: block;
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--faint);
	margin-top: 2px;
}
.leds { display: flex; gap: 3px; }
.led { width: 8px; height: 17px; background: var(--r); transition: background-color 1.4s linear; }

/* ---------- spec ---------- */

.spec { display: grid; grid-template-columns: 200px 1fr; }
.spec dt {
	font-size: 10.5px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--faint);
	padding: 14px 0;
	border-top: 1px solid var(--edge-2);
}
.spec dd {
	margin: 0;
	padding: 14px 0;
	border-top: 1px solid var(--edge-2);
	color: var(--white);
	font-size: 13.5px;
}

/* ---------- two-up ---------- */

.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 48px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.three > div { border-top: 1px solid var(--edge-2); padding-top: 18px; }
.three p, .two p { font-size: 13.5px; color: var(--mute); }

/* ---------- flow ---------- */

.flow { display: grid; grid-template-columns: 1fr auto 1fr; border: 1px solid var(--edge); background: var(--raise); }
.flow-b { padding: 22px 20px; }
.flow-b h4 {
	font-family: var(--display);
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--white);
	margin: 0 0 7px;
}
.flow-b p { font-size: 13px; color: var(--mute); margin: 0; max-width: none; }
.flow-m {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	min-width: 180px;
	padding: 22px 20px;
	border-inline: 1px solid var(--edge);
	background: var(--ground);
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--faint);
	text-align: center;
}
.flow-m b { color: var(--g); font-size: 15px; letter-spacing: 0; }

/* ---------- note ---------- */

.note { display: grid; grid-template-columns: 10px 1fr; gap: 16px; align-items: start; }
.note i { display: block; width: 10px; height: 10px; background: var(--g); margin-top: 8px; }
.note p { color: var(--read); margin: 0; }
.note strong { color: var(--white); font-weight: 500; }

/* ---------- footer ---------- */

.foot { position: relative; z-index: 1; border-top: 1px solid var(--edge-2); padding-block: 32px 46px; }
.foot-in {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 30px;
	justify-content: space-between;
	align-items: baseline;
	font-size: 11.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--faint);
}
.foot-in nav { display: flex; gap: 22px; }
.foot-in nav a { color: var(--mute); border: 0; }
.foot-in nav a:hover { color: var(--white); }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
	.claims, .two, .three { grid-template-columns: 1fr; }
	.poster { grid-template-columns: 1fr; }
	.poster img { width: 160px; }
	.flow { grid-template-columns: 1fr; }
	.flow-m { border-inline: 0; border-block: 1px solid var(--edge); flex-direction: row; gap: 12px; min-width: 0; }
	.bar { height: 58px; }
}

@media (max-width: 560px) {
	:root { --gutter: 16px; }
	.spec { grid-template-columns: 1fr; }
	.spec dt { padding-bottom: 0; }
	.spec dd { padding-top: 3px; border-top: 0; }
	.nav { gap: 14px; }
	.nav a { font-size: 11px; letter-spacing: .08em; }
	.btns .btn { flex: 1 1 auto; justify-content: center; }
	.bar { gap: 1px; height: 46px; }
	.facts { gap: 0 28px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- works index ---------- */

.works { display: flex; flex-direction: column; }

.work {
	display: grid;
	grid-template-columns: 92px 1fr auto;
	gap: 26px;
	align-items: baseline;
	padding: 30px 0;
	border-top: 1px solid var(--edge-2);
	text-decoration: none;
	border-bottom: 0;
	color: inherit;
	transition: background .18s ease;
}
.works .work:last-child { border-bottom: 1px solid var(--edge-2); }
.works { border-bottom: 0; }
.work:hover { background: rgba(255,255,255,.022); color: inherit; }

.work-n {
	font-family: var(--display);
	font-weight: 800;
	font-size: 2.1rem;
	line-height: 1;
	letter-spacing: .01em;
	color: var(--r);
	font-variant-numeric: tabular-nums;
}
.work:nth-child(3n+2) .work-n { color: var(--g); }
.work:nth-child(3n+3) .work-n { color: var(--b); }

.work-t {
	font-family: var(--display);
	font-weight: 800;
	font-size: clamp(2rem, 5vw, 3.2rem);
	line-height: .9;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: var(--white);
	display: block;
	margin-bottom: 8px;
}
.work-d { display: block; font-size: 13.5px; color: var(--mute); }
.work-m {
	display: block;
	font-size: 10.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--faint);
	margin-top: 8px;
}
.work-go {
	font-size: 11px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--faint);
	white-space: nowrap;
}
.work:hover .work-go { color: var(--brand); }

.work-next {
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 26px;
	align-items: baseline;
	padding: 26px 0 0;
}
.work-next .work-n { color: var(--faint); }
.work-next span { font-size: 13px; color: var(--faint); }

@media (max-width: 720px) {
	.work { grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; }
	.work-n { font-size: 1.5rem; }
	.work-go { display: none; }
	.work-next { grid-template-columns: 56px 1fr; gap: 16px; }
}

/* ---------- projects dropdown ---------- */

.menu { position: relative; }

.menu { display: flex; }
.menu-btn:hover { color: var(--white); }
.menu-btn[aria-expanded="true"] { color: var(--white); border-bottom-color: var(--brand); }
.menu-btn.is-here { color: var(--white); border-bottom-color: var(--brand); }
.menu-btn svg { width: 9px; height: 9px; transition: transform .16s ease; }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-btn:focus-visible { outline: 2px solid var(--brand-lift); outline-offset: 4px; }

.menu-panel {
	position: absolute;
	top: calc(100% + 13px);
	left: -14px;
	right: auto;
	min-width: 286px;
	background: var(--ground);
	border: 1px solid var(--edge);
	box-shadow: 0 18px 44px rgba(0, 0, 0, .6);
	padding: 5px;
	z-index: 60;
}
.menu-panel::before {
	content: "";
	display: block;
	height: 3px;
	margin: -5px -5px 5px;
	background: linear-gradient(to right, var(--r) 0 33.33%, var(--g) 33.33% 66.66%, var(--b) 66.66% 100%);
}

.menu-item {
	display: grid;
	grid-template-columns: 38px 1fr;
	gap: 12px;
	align-items: baseline;
	padding: 12px 13px;
	text-decoration: none;
	border: 0;
	color: inherit;
}
.menu-item:hover { background: var(--raise); color: inherit; }
.menu-item i {
	font-style: normal;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1rem;
	color: var(--r);
	font-variant-numeric: tabular-nums;
}
.menu-item b {
	display: block;
	font-family: var(--display);
	font-weight: 800;
	font-size: 1.32rem;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--white);
	line-height: 1.05;
}
.menu-item span { display: block; font-size: 11.5px; color: var(--mute); margin-top: 2px; }

.menu-soon { cursor: default; }
.menu-soon i { color: var(--faint); }
.menu-soon b { color: var(--faint); }
.menu-soon:hover { background: none; }

@media (max-width: 560px) {
	.menu-panel { min-width: 0; width: calc(100vw - 32px); left: -14px; right: auto; }
}

/* ---------- product lockup ---------- */

.lock { display: flex; align-items: center; gap: clamp(18px, 4vw, 40px); }
.lock img { width: clamp(84px, 12vw, 148px); height: auto; flex: 0 0 auto; }
.lock h1 { margin: 0; }

@media (max-width: 560px) {
	.lock { gap: 16px; }
	.lock img { width: 72px; }
}

/* ---------- company mark ---------- */

/* mark and headline as two columns of one unruled row */
.hero-grid {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: clamp(18px, 3.2vw, 42px);
	align-items: center;
}
.hero-grid .mark {
	display: block;
	width: clamp(150px, 20vw, 280px);
	height: auto;
	margin: 0;
}
.hero-grid .huge { margin: 0; }

@media (max-width: 880px) {
	.hero-grid { grid-template-columns: 1fr; gap: 20px; }
	.hero-grid .mark { width: 138px; }
}
