/* DL Tecnologia — dltech.agency
   Bricolage Grotesque for display (self-hosted, SIL Open Font License 1.1), the platform's own UI font for reading,
   and a mono face for labels and company data. The mark is a single cobalt square: the first pixel. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/BricolageGrotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #10131f;
  --paper: #f6f7f9;
  --panel: #ffffff;
  --mist: #5b6376;
  --line: #e2e5eb;
  --cobalt: #2b50e8;
  --cobalt-deep: #1d3bc2;
  --on-cobalt: #ffffff;
  /* Each app is shown on its own color, taken from its icon. */
  --wanderune: #0f3f2e;
  --vagalumi: #151a46;
  --ramblit: #ed7047;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --radius: 24px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef0f6;
    --paper: #0c0e17;
    --panel: #151826;
    --mist: #a3aabb;
    --line: #272b3c;
    --cobalt: #6d87ff;
    --cobalt-deep: #93a6ff;
    --on-cobalt: #0c0e17;
    color-scheme: dark;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-deep); }

:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 88px;
}

/* The wordmark ends in the mark: the first pixel, sitting on the baseline like a full stop. */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.07em;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.045em;
}
.wordmark::after { content: ""; width: 0.22em; height: 0.22em; background: var(--cobalt); }
.wordmark:hover { color: var(--ink); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
}
.site-nav a { color: var(--mist); text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.site-nav .lang {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* Hero */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 64px;
  padding-top: 40px;
  padding-bottom: 120px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: var(--mist);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--cobalt); }

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 104px;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

/* The dot on the i of "pixel" is the studio's mark: a cobalt square that drops into place once.
   A dotless i carries it; 0.176em is where Bricolage Grotesque puts the top of its own dot (ascent 0.93 − 0.754). */
.first-pixel { white-space: nowrap; }
.first-pixel .i { position: relative; }
.first-pixel .i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.176em;
  width: 0.16em;
  height: 0.16em;
  margin-left: -0.08em;
  background: var(--cobalt);
  animation: pixel-drop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}
@keyframes pixel-drop {
  from { transform: translateY(-0.5em); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.hero .lede {
  max-width: 34ch;
  margin: 32px 0 40px;
  color: var(--mist);
  font-size: 21px;
  line-height: 1.5;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--cobalt);
  color: var(--on-cobalt);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { background: var(--cobalt-deep); color: var(--on-cobalt); }

.button.quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.button.quiet:hover { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--mist); }

/* The showcase: a phone in front of a stage that takes the color of the app on screen. */
.showcase {
  position: relative;
  display: grid;
  justify-items: center;
  margin: 0;
}
.showcase .stage {
  position: absolute;
  inset: 14% 0 18%;
  border-radius: 32px;
  background: var(--wanderune);
  transition: background-color 0.8s ease;
}
.showcase[data-app="vagalumi"] .stage { background: var(--vagalumi); }
.showcase[data-app="ramblit"] .stage { background: var(--ramblit); }

.phone {
  position: relative;
  width: min(290px, 70vw);
  aspect-ratio: 1 / 2;
  padding: 9px;
  border-radius: 42px;
  background: #0b0d16;
  box-shadow: 0 40px 60px -30px rgba(12, 14, 23, 0.55);
}
.phone .screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 33px;
  background: #0b0d16;
}
.phone .screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.phone .screen img.is-on { opacity: 1; }

.showcase figcaption {
  position: relative;
  margin-top: 18px;
  color: var(--mist);
  font-family: var(--mono);
  font-size: 12px;
}

/* Sections */

.section { padding: 112px 0; border-top: 1px solid var(--line); }

.section-title {
  margin: 0 0 48px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.section-title:has(+ .section-lede) { margin-bottom: 16px; }
.section-lede { margin: 0 0 48px; max-width: 52ch; color: var(--mist); font-size: 19px; }

/* Work: each case pairs the facts with the app's screens on the app's own color. */

.case {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  padding: 16px;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
}
.case + .case { margin-top: 24px; }
.case[data-app="wanderune"] { --stage: var(--wanderune); }
.case[data-app="vagalumi"] { --stage: var(--vagalumi); }
.case[data-app="ramblit"] { --stage: var(--ramblit); }

.case .info { align-self: center; padding: 32px 24px 32px 28px; }
.case-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.case-head img { width: 56px; height: 56px; border-radius: 13px; }
.case h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.035em;
}
.case .summary { margin: 0 0 28px; color: var(--mist); font-size: 18px; }

.facts { display: grid; gap: 12px; margin: 0 0 32px; }
.facts div { display: grid; grid-template-columns: 116px 1fr; gap: 12px; }
.facts dt {
  padding-top: 4px;
  color: var(--mist);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.facts dd { margin: 0; font-size: 15.5px; }

/* Each app keeps its own screen proportions, taken from the width and height of the image. */
.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
  padding: 48px 36px;
  border-radius: 16px;
  background: var(--stage, var(--ink));
}
.shots img {
  width: 100%;
  height: auto;
  border: 5px solid #0b0d16;
  border-radius: 18px;
  background: #0b0d16;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.6);
}
.shots img:nth-child(2) { transform: translateY(-20px); }

/* Services: a list of what the studio does, next to the section title. */

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 48px;
}
.services-layout .section-title { position: sticky; top: 32px; margin: 0; }

.capabilities { margin: 0; padding: 0; list-style: none; }
.capabilities li { padding: 28px 0; }
.capabilities li:first-child { padding-top: 4px; }
.capabilities li + li { border-top: 1px solid var(--line); }
.capabilities h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.capabilities p { margin: 0; max-width: 48ch; color: var(--mist); font-size: 18px; }

/* Company */

.company {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 56px;
}
.company .section-title { margin-bottom: 20px; }
.company .intro p { margin: 0 0 32px; max-width: 34ch; color: var(--mist); font-size: 19px; }

.registry {
  margin: 0;
  padding: 8px 32px;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
}
.registry div { padding: 18px 0; }
.registry div + div { border-top: 1px solid var(--line); }
.registry dt {
  margin-bottom: 4px;
  color: var(--mist);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.registry dd { margin: 0; font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Footer */

.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  min-height: 96px;
  color: var(--mist);
  font-size: 14px;
}
.site-footer a { color: var(--mist); }
.site-footer a:hover { color: var(--ink); }
.site-footer .push { margin-left: auto; }

/* Documents: privacy policy and the missing page */

.document .wrap { max-width: 760px; padding-top: 40px; padding-bottom: 112px; }
.document h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
}
.document .updated { margin: 0 0 44px; color: var(--mist); font-family: var(--mono); font-size: 13px; }
.document h2 {
  margin: 48px 0 12px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.document ul { padding-left: 22px; }
.document li + li { margin-top: 6px; }

/* Smaller screens */

@media (max-width: 1080px) {
  .hero h1 { font-size: 84px; }
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; padding-bottom: 88px; }
  .case { grid-template-columns: 1fr; }
  .case .info { padding: 20px 12px 8px; }
  .services-layout { grid-template-columns: 1fr; gap: 32px; }
  .services-layout .section-title { position: static; }
  .company { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .site-header .wrap { min-height: 72px; gap: 16px; }
  .wordmark { font-size: 24px; }
  .site-nav { gap: 16px; }
  .site-nav .optional { display: none; }
  .hero .wrap { padding-top: 16px; }
  .hero h1 { font-size: 15vw; }
  .hero .lede { font-size: 19px; }
  .section { padding: 72px 0; }
  .section-title { font-size: 40px; margin-bottom: 32px; }
  .section-lede { margin-bottom: 32px; font-size: 17px; }
  .case { padding: 10px; }
  .shots { gap: 10px; padding: 32px 16px; }
  .shots img { border-width: 3px; border-radius: 12px; }
  .shots img:nth-child(2) { transform: translateY(-12px); }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .capabilities h3 { font-size: 24px; }
  .capabilities p { font-size: 16.5px; }
  .registry { padding: 4px 22px; }
  .document h1 { font-size: 42px; }
  .site-footer .push { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .phone .screen img,
  .showcase .stage { transition: none; }
  .first-pixel .i::after { animation: none; }
}
