/* Latitude site: the panel's own colours, one sans family, pictures first. */
:root {
  --bg: #121212; --panel: #1c1c1c; --line: #2c2c2c; --text: #e6e6e6; --dim: #9a9a9a;
  --accent: #58a6ff; --warm: #d97757; --radius: 14px; --max: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.top { position: sticky; top: 0; z-index: 10; background: rgba(18,18,18,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .18em; font-size: 15px; }
.brand img { width: 28px; height: 28px; }
nav a { text-decoration: none; color: var(--dim); margin-left: 22px; font-size: 14px; }
nav a:hover { color: var(--text); }
@media (max-width: 640px) { nav a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #08121f; }
.btn:hover { filter: brightness(1.08); }
nav .btn { margin-left: 22px; padding: 8px 16px; font-size: 14px; }

.hero { padding: 56px 0 28px; text-align: center; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 14px; }
.hero p.sub { color: var(--dim); font-size: clamp(16px, 2vw, 20px); max-width: 640px; margin: 0 auto 26px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* before / after: the graded frame sits on top, clipped to the handle */
.ba { position: relative; margin: 36px auto 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--panel); user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--cut, 50%)); }
.ba .handle { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.ba .handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.4); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .tag { position: absolute; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ba .tag.l { left: 12px; } .ba .tag.r { right: 12px; }

section { padding: 64px 0; }
section h2 { font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -.01em; margin: 0 0 10px; }
section p.lead { color: var(--dim); margin: 0 0 28px; max-width: 620px; }

.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.styles figure { margin: 0; }
.styles figcaption { color: var(--dim); font-size: 14px; margin-top: 8px; }
.styles .ba { margin: 0; }
@media (max-width: 820px) { .styles { grid-template-columns: 1fr; } }

.insitu img { border-radius: var(--radius); border: 1px solid var(--line); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); }
.card h3 { margin: 14px 16px 4px; font-size: 17px; }
.card p { margin: 0 16px 16px; color: var(--dim); font-size: 14px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #08121f; font-weight: 700; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0 0 14px; color: var(--dim); font-size: 14px; }
.step .row { display: flex; gap: 8px; flex-wrap: wrap; }
.step .btn { padding: 9px 14px; font-size: 14px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.note { color: var(--dim); font-size: 14px; margin-top: 18px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--dim); margin-right: 18px; }

.doc { max-width: 720px; padding: 48px 20px 64px; }
.doc h1 { font-size: 36px; margin: 0 0 6px; }
.doc .date { color: var(--dim); margin: 0 0 28px; }
.doc h2 { font-size: 18px; margin: 28px 0 6px; }
.doc p { color: #cfcfcf; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
