@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
	--bg: #000;
	--panel: #0a0a0a;
	--ink: #f5f5f5;
	--muted: #8b8b8b;
	--line: rgba(255, 255, 255, .11);
	--line-2: rgba(255, 255, 255, .22);
	/* San Francisco on Apple devices, Inter everywhere else */
	--sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Arial, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; color-scheme: dark; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font: 17px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* the only places set in mono: small labels and numbers */
.label, .idx, .stack dt { font: 500 12px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* wordmark: INSCOD + three bars for the E */
.wm { display: inline-block; font-weight: 800; font-size: 22px; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; }
.wm .e {
	display: inline-block; width: .56em; height: .72em; margin-left: .075em;
	background: linear-gradient(currentColor 0 18.5%, transparent 18.5% 40.75%, currentColor 40.75% 59.25%, transparent 59.25% 81.5%, currentColor 81.5%);
}

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.stuck { border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 64px; }
.nav nav { display: flex; gap: 28px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.nav nav a, .foot a { transition: color .15s; }
.nav nav a:hover, .foot a:hover { color: var(--ink); }

/* buttons */
.btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 10px;
	background: var(--ink); color: var(--bg); border: 1px solid var(--ink);
	font-size: 15.5px; font-weight: 600; transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { opacity: .86; }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { opacity: 1; border-color: var(--ink); }

/* hero */
.hero { padding: 136px 0 120px; }
h1 { margin-top: 26px; font-size: clamp(44px, 9vw, 124px); line-height: .98; letter-spacing: -0.05em; }
.hero-foot { margin-top: 44px; display: grid; gap: 36px; }
.lead { max-width: 33em; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* sections */
.section { padding: 88px 0; }
.head { display: grid; grid-template-columns: 72px 1fr 1fr; gap: 24px; align-items: baseline; padding-top: 22px; border-top: 1px solid var(--line-2); margin-bottom: 56px; }
.head h2 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.04em; }
.head p { color: var(--muted); max-width: 30em; }

/* services */
.cells { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cells article { padding: 24px 24px 30px; border-right: 1px solid var(--line); transition: background .2s; }
.cells article:last-child { border-right: 0; }
.cells article:hover { background: var(--panel); }
.cells h3 { font-size: 22px; margin: 104px 0 10px; }
.cells p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* work */
.feature { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.feature-text { padding: 48px; display: flex; flex-direction: column; gap: 24px; justify-content: center; }
.feature-head { display: flex; align-items: center; gap: 16px; }
.feature-head img { border-radius: 13px; border: 1px solid var(--line); }
.feature-head h3 { font-size: 32px; margin-bottom: 6px; }
.feature-text > p { color: var(--muted); }
.list { list-style: none; border-top: 1px solid var(--line); }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.feature-shot { border-left: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; padding: 48px 24px 0; overflow: hidden; }
.feature-shot img { width: 270px; height: auto; margin-bottom: -56px; border-radius: 30px; border: 6px solid #1c1c1c; }

/* other products */
.more { list-style: none; margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.more li { display: grid; grid-template-columns: 220px 1fr auto; gap: 24px; align-items: baseline; padding: 24px 28px; border-bottom: 1px solid var(--line); transition: background .2s; }
.more li:last-child { border-bottom: 0; }
.more li:hover { background: var(--panel); }
.more h3 { font-size: 24px; }
.more h3 a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.more p { color: var(--muted); max-width: 36em; }

/* process */
.rows { list-style: none; }
.rows li { display: grid; grid-template-columns: 72px 1fr 1fr; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.rows li:first-child { border-top: 1px solid var(--line); }
.rows h3 { font-size: 24px; }
.rows p { color: var(--muted); max-width: 30em; }

/* stack */
.stack > div { display: grid; grid-template-columns: 72px 1fr 1fr; gap: 24px; padding: 17px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.stack > div:first-child { border-top: 1px solid var(--line); }
.stack dt { grid-column: 2; }

/* contact */
.mail { display: inline-block; font-size: clamp(24px, 6vw, 84px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.1; white-space: nowrap; transition: opacity .15s; }
.mail:hover { opacity: .75; }
.mail span { display: inline-block; font-weight: 400; transition: transform .2s; }
.mail:hover span { transform: translateX(.18em); }

/* footer */
.foot { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14.5px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .wm { color: var(--ink); }
.foot nav { display: flex; gap: 28px; }

@media (max-width: 960px) {
	.cells { grid-template-columns: repeat(2, 1fr); }
	.cells article:nth-child(2) { border-right: 0; }
	.cells article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.cells h3 { margin-top: 64px; }
	.feature { grid-template-columns: 1fr; }
	.feature-shot { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
	body { font-size: 16px; }
	.wrap { width: calc(100% - 36px); }
	.nav nav { display: none; }
	.nav-in { justify-content: space-between; }
	.hero { padding: 72px 0 64px; }
	.section { padding: 56px 0; }
	.head, .rows li { grid-template-columns: 34px 1fr; gap: 8px 12px; }
	.head p, .rows p { grid-column: 2; }
	.head { margin-bottom: 36px; }
	.cells { grid-template-columns: 1fr; }
	.cells article { border-right: 0; border-bottom: 1px solid var(--line); }
	.cells article:last-child { border-bottom: 0; }
	.cells h3 { margin-top: 36px; }
	.feature-text { padding: 28px 22px; }
	.more li { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
	.stack > div { grid-template-columns: 34px 1fr; gap: 4px 12px; }
	.stack dd { grid-column: 2; }
	.foot-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

/* legal pages: /terms, /privacy */
.legal { padding: 96px 0 40px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(36px, 6vw, 64px); margin: 18px 0 12px; }
.legal h2 { font-size: 24px; margin: 48px 0 12px; }
.legal p, .legal li { color: #c9c9c9; }
.legal p + p, .legal ul, .legal address { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal address { font-style: normal; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* app tiles with store screenshots */
.feature + .feature { margin-top: 16px; }
.feature-shots { border-left: 1px solid var(--line); background: var(--panel); display: flex; gap: 12px; justify-content: center; align-items: center; padding: 40px 28px; }
.feature-shots img { width: calc((100% - 24px) / 3); max-width: 170px; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.stores { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 960px) {
	.feature-shots { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
	.feature-shots { padding: 24px 16px; gap: 8px; }
	.feature-shots img { width: calc((100% - 16px) / 3); border-radius: 10px; }
}
