@font-face { font-family: "Antonio"; src: url("fonts/antonio.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0c0a09; --panel: #141110; --panel-2: #1a1614; --line: #2c2522; --line-2: #3a302b;
  --paper: #efe6d6; --muted: #a19584; --dim: #6f655a;
  --safe: #ff4027; --safe-soft: rgba(255, 64, 39, .16); --safe-glow: rgba(255, 64, 39, .45); --amber: #f2b66a;
  --display: "Antonio", "Arial Narrow", sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--paper); }
::selection { background: var(--safe); color: var(--ink); }

/* the safelight frame round the page, and film grain over everything */
body::before { content: ""; position: fixed; inset: 8px; border: 1px solid var(--safe); border-radius: 14px; pointer-events: none; z-index: 60;
  box-shadow: 0 0 18px var(--safe-glow), inset 0 0 18px rgba(255, 64, 39, .18); }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 59; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(24px, 4vw, 44px); }
.label { font: 500 11.5px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.label b { color: var(--safe); font-weight: 500; }
.display { font-family: var(--display); font-weight: 200; letter-spacing: -.01em; line-height: .92; margin: 0; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: linear-gradient(var(--ink) 70%, rgba(12, 10, 9, 0)); }
.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 18px; }
.top nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.top nav a, .top .end a { font: 500 11.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.top nav a:hover, .top .end a:hover { color: var(--paper); }
.top .end { display: flex; gap: clamp(14px, 2.4vw, 34px); justify-content: flex-end; align-items: center; }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; gap: 6px; }
.brand img { width: 30px; height: 30px; }
.brand span { font: 300 18px/.86 var(--display); letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--paper); }
.btn { display: inline-flex; align-items: center; gap: 10px; font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 13px 18px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--paper); background: var(--panel); transition: .2s; }
.btn:hover { border-color: var(--paper); }
.btn.hot { background: var(--safe); border-color: var(--safe); color: #120806; box-shadow: 0 0 24px var(--safe-glow); }
.btn.hot:hover { background: #ff5a43; }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.top .btn { padding: 9px 13px; font-size: 11px; }

/* hero */
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(28px, 6vw, 70px); padding-bottom: 40px; }
.hero h1 { font-size: clamp(58px, 8.2vw, 122px); white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--safe); text-shadow: 0 0 34px var(--safe-glow); }
.hero .lead { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); max-width: 32em; margin: 28px 0 30px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.plate { margin-top: 38px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); overflow: hidden; }
.plate .tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.plate .tabs span { text-align: center; padding: 9px 4px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); border-right: 1px solid var(--line); }
.plate .tabs span:last-child { border-right: 0; }
.plate .tabs span.on { color: var(--paper); background: var(--safe-soft); box-shadow: inset 0 -2px 0 var(--safe); }
.plate dl { margin: 0; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font: 12.5px/1.5 var(--mono); }
.plate dt { color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }
.plate dd { margin: 0; color: var(--paper); }

/* the van as a safelight print */
.print { position: relative; margin: 0; }
.print .frame { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1400 / 1474; background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); }
.print .frame img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.2) brightness(1.18); }
.print .frame::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(160deg, #ff7a5c, #c41a04 65%, #4a0700); mix-blend-mode: multiply; }
.print .frame::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, .65));
  mix-blend-mode: multiply; }
.print figcaption { margin-top: 14px; display: flex; justify-content: space-between; gap: 16px; }
.glow { position: absolute; inset: 12% -8% -6% 10%; background: radial-gradient(circle, var(--safe-glow), transparent 65%); filter: blur(40px); z-index: -1; }

/* the strip of tool names */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; margin: 34px 0 0; background: var(--panel); }
.ticker div { display: flex; gap: 42px; width: max-content; padding: 15px 0; animation: tick 48s linear infinite; }
.ticker span { font: 500 12px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ticker span::before { content: "\2726"; color: var(--safe); margin-right: 42px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* sections */
section.block { padding: clamp(70px, 10vw, 130px) 0 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.head h2 { font-size: clamp(54px, 7.4vw, 104px); }
.head h2 sup { font: 500 .22em var(--mono); color: var(--safe); vertical-align: top; margin-left: .15em; text-shadow: 0 0 14px var(--safe-glow); }
.head p { max-width: 26em; color: var(--muted); margin: 0; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.card { background: var(--ink); padding: clamp(24px, 3vw, 38px); display: flex; flex-direction: column; }
.card h3 { font: 300 clamp(30px, 3vw, 40px)/1 var(--display); margin: 12px 0 12px; letter-spacing: -.005em; }
.card p { color: var(--muted); margin: 0 0 26px; max-width: 30em; }
.stage { margin-top: auto; position: relative; border-radius: 8px; overflow: hidden; height: 420px; display: flex; justify-content: center; align-items: flex-start;
  padding-top: 38px; background: radial-gradient(ellipse at 50% 120%, var(--safe-soft), transparent 60%), var(--panel); border: 1px solid var(--line); }
.stage::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 44px),
  repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 44px); }
.stage > img { position: relative; width: 236px; border-radius: 30px 30px 0 0; box-shadow: 0 0 0 7px #050404, 0 0 0 8px #2e2825, 0 30px 70px rgba(0, 0, 0, .7);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .stage > img { transform: translateY(-10px); }
.stage .tag { position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 5px 9px; border-radius: 3px; background: rgba(12, 10, 9, .86); box-shadow: 0 0 0 1px var(--line); }
.stage.pair { gap: 16px; }
/* a panel floating over the phone, as in the App Store shot (Develop's Curves) */
.stage > img.float { position: absolute; z-index: 1; width: 186px; left: calc(50% + 6px); bottom: 54px; border-radius: 12px;
  box-shadow: 0 0 0 1px #3a322d, 0 24px 50px rgba(0, 0, 0, .75); }
.card:hover .stage > img.float { transform: translateY(-16px); }
.stage.pair { padding-left: 14px; padding-right: 14px; }
.stage.pair > img { width: min(196px, calc(50% - 8px)); border-radius: 26px 26px 0 0; }
.stage.pair > img + img { margin-top: 40px; }
/* before / after slider (site.js moves --pos) */
.stage.wide { align-items: center; padding: 22px 22px 40px; }
.compare { --pos: 50%; position: relative; width: 100%; max-width: 480px; aspect-ratio: 772 / 488; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 1px #2e2825, 0 30px 70px rgba(0, 0, 0, .7); user-select: none; -webkit-user-select: none; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .after { clip-path: inset(0 0 0 var(--pos)); }
.compare .bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--safe); box-shadow: 0 0 14px var(--safe-glow); pointer-events: none; }
.compare .bar::after { content: "\2039\00a0\203A"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%;
  background: var(--safe); color: #120806; font: 600 15px/38px var(--mono); text-align: center; box-shadow: 0 0 20px var(--safe-glow); }
.compare .tag-b, .compare .tag-a { position: absolute; top: 10px; padding: 4px 8px; border-radius: 3px; background: rgba(12, 10, 9, .72); color: var(--paper); pointer-events: none; }
.compare .tag-b { left: 10px; }
.compare .tag-a { right: 10px; }
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; }

.kit { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.kit div { padding: 26px 26px 30px 0; border-bottom: 1px solid var(--line); }
.kit div:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.kit div:not(:nth-child(3n + 1)) { padding-left: 26px; }
.kit b { display: block; font: 300 28px/1.1 var(--display); margin: 10px 0 8px; }
.kit span { color: var(--muted); font-size: 15.5px; }

.ipad { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.ipad h2 { font-size: clamp(54px, 7vw, 100px); }
.ipad p { color: var(--muted); max-width: 26em; }
.ipad .shot { position: relative; }
.ipad .shot img { border-radius: 18px; box-shadow: 0 0 0 10px #050404, 0 0 0 11px #2e2825, 0 40px 90px rgba(0, 0, 0, .7); }

.story { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.story figure { max-width: 470px; justify-self: end; margin: 0; }
.story figcaption { margin-top: 14px; }
.story .year { font: 100 clamp(120px, 19vw, 260px)/.8 var(--display); color: transparent; -webkit-text-stroke: 1px var(--safe); margin: 0 0 18px; letter-spacing: -.02em;
  text-shadow: 0 0 40px rgba(255, 64, 39, .25); }
.story h2 { font-size: clamp(44px, 5vw, 70px); margin-bottom: 22px; }
.story p { color: var(--muted); }
.story p strong { color: var(--paper); font-weight: 600; }
.sepia { border-radius: 8px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px var(--line); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 30px; align-items: center; padding: 22px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { font: 300 clamp(22px, 2.4vw, 30px)/1.15 var(--display); }
.faq summary::after { content: "+"; font: 200 30px/1 var(--display); color: var(--safe); text-align: right; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 30px 24px 56px; color: var(--muted); max-width: 46em; }
.faq summary:hover .q { color: #fff; }

.cta { text-align: center; padding: clamp(90px, 13vw, 170px) 0 clamp(70px, 9vw, 120px); position: relative; }
.cta h2 { font-size: clamp(72px, 13vw, 190px); }
.cta h2 em { font-style: normal; color: var(--safe); text-shadow: 0 0 40px var(--safe-glow); }
.cta p { color: var(--muted); margin: 22px auto 34px; max-width: 30em; }
.cta::before { content: ""; position: absolute; left: 50%; top: 55%; width: min(900px, 90vw); height: 360px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(255, 64, 39, .16), transparent 65%); z-index: -1; }

footer { border-top: 1px solid var(--line); padding: 34px 0 46px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
footer a { display: block; text-decoration: none; color: var(--muted); font: 500 12px/2.1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
footer a:hover { color: var(--paper); }
footer p { color: var(--dim); font: 12px/1.7 var(--mono); margin: 10px 0 0; }

/* support and privacy */
.doc { padding-top: clamp(30px, 6vw, 70px); }
.doc .wrap { display: grid; grid-template-columns: 300px 1fr; gap: clamp(30px, 6vw, 90px); }
.doc h1 { font-size: clamp(64px, 9vw, 130px); margin-bottom: 18px; }
.doc aside { position: sticky; top: 110px; align-self: start; }
.doc aside a { display: block; text-decoration: none; color: var(--muted); font: 500 12px/2.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.doc aside a:hover { color: var(--paper); }
.doc .lead { font-size: 20px; color: var(--paper); margin: 0 0 18px; max-width: 34em; }
.doc .note { color: var(--muted); }
.doc h2 { font: 300 clamp(30px, 3.2vw, 42px)/1.05 var(--display); margin: 56px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; gap: 18px; align-items: baseline; }
.doc h2 .label { font-size: 11px; }
.doc p { color: var(--muted); max-width: 40em; }
.doc a { color: var(--paper); text-decoration-color: var(--safe); text-underline-offset: 3px; }
.doc .faq { margin-top: 10px; }
.doc .faq summary { grid-template-columns: 44px 1fr 30px; }
.doc .faq details p { margin-left: 44px; }
.mail { display: inline-flex; margin: 8px 0 26px; }

/* reveal on scroll (site.js adds .in; without JS everything is visible) */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .top .wrap { grid-template-columns: 1fr auto; }
  .top nav { display: none; }
  .brand { align-items: flex-start; flex-direction: row; gap: 10px; }
  .brand span { text-align: left; }
  .hero .wrap, .ipad, .story, .doc .wrap { grid-template-columns: 1fr; }
  .print { max-width: 560px; }
  .features { grid-template-columns: 1fr; }
  .kit { grid-template-columns: 1fr 1fr; }
  .kit div { padding: 22px 18px 24px 0 !important; border-right: 0 !important; }
  .kit div:nth-child(odd) { border-right: 1px solid var(--line) !important; }
  .kit div:nth-child(even) { padding-left: 18px !important; }
  .doc aside { position: static; }
  footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body::before { inset: 5px; border-radius: 10px; }
  .top .end a:not(.btn) { display: none; }
  .kit { grid-template-columns: 1fr; }
  .kit div { border-right: 0 !important; padding-left: 0 !important; }
  .stage { height: 360px; }
  .stage > img { width: 200px; }
  .stage.pair { gap: 10px; }
  .stage > img.float { width: 150px; left: calc(50% + 2px); bottom: 50px; }
  .faq summary { grid-template-columns: 40px 1fr 26px; }
  .faq details p { margin-left: 40px; margin-right: 0; }
  .plate dl { grid-template-columns: 1fr; gap: 0 0; }
  .plate dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker div { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .stage > img { transition: none; }
}
