/* DBI Studio. Fonts are self-hosted (SIL Open Font License, see fonts/LICENSES.txt). */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* Direction: command prompt. Black header and hero, teal accent, light working sections. The dbi/ logo is the idea: a path and a cursor. */
:root {
  --navy: #0b0f14;
  --navy-2: #141a22;
  --teal: #00c2a0;
  --teal-ink: #00725f;
  --paper: #f4f7fa;
  --white: #ffffff;
  --line: #d9e1ea;
  --muted: #475a72;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.08; letter-spacing: -0.015em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: max(16px, 4vw); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 3px; }
.band :focus-visible, .site-footer :focus-visible, .site-header :focus-visible, .hero :focus-visible { outline-color: var(--teal); }

.label { font-family: var(--mono); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--body);
  padding: 0.95rem 1.4rem;
  border-radius: 6px;
  border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: #12dcb8; transform: translateY(-1px); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11,15,20,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #1f2a36;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.97rem; padding: 6px 0; border-bottom: 2px solid transparent; color: #e6edf5; }
.nav a:not(.btn):hover { border-bottom-color: var(--teal); }
.nav .btn { padding: 0.7rem 1.05rem; font-size: 0.95rem; }
@media (max-width: 860px) { .nav ul { display: none; } }
.nav .short { display: none; }
@media (max-width: 520px) { .nav .long { display: none; } .nav .short { display: inline; } }
@media (max-width: 420px) { .brand img { height: 26px; } .nav .btn { padding: 0.65rem 0.8rem; font-size: 0.88rem; } }

/* Hero */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px);
  background-color: var(--navy);
  color: var(--white);
  background-image:
    linear-gradient(to right, rgba(0,194,160,0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,194,160,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: -1px -1px;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-weight: 800; font-size: clamp(2.5rem, 6.4vw, 4.9rem); line-height: 1.0; letter-spacing: -0.03em; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--teal); }
.prompt { font-family: var(--mono); font-weight: 500; font-size: 1rem; color: var(--teal); margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.cursor { display: inline-block; width: 0.6em; height: 1.05em; background: var(--teal); }
@media (prefers-reduced-motion: no-preference) { .cursor { animation: blink 1.1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }
.hero .lede { margin-top: 28px; max-width: 58ch; font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: #b9c6d8; }
.hero .btn-ghost { border-color: var(--white); color: var(--white); }
.hero .btn-ghost:hover { background: var(--white); color: var(--navy); }
.hero .cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.facts { margin-top: clamp(44px, 7vw, 80px); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 2px solid var(--teal); position: relative; z-index: 1; }
.facts li { padding: 18px 20px 18px 0; display: flex; flex-direction: column; gap: 4px; }
.facts .label { color: #8aa0b8; font-size: 0.72rem; }
.facts strong { font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; color: var(--white); }

/* Sections */
section { scroll-margin-top: 88px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); margin-top: 12px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.15rem; max-width: 60ch; }

/* What we do */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.pillar { border-top: 4px solid var(--navy); background: var(--paper); padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 16px; }
.pillar h3 { font-size: 2rem; font-weight: 800; display: flex; align-items: baseline; gap: 12px; }
.pillar h3 .label { font-size: 0.78rem; }
.pillar .tag { font-weight: 500; font-size: 1.08rem; }
.pillar ul { display: grid; gap: 10px; margin-top: 4px; }
.pillar li { position: relative; padding-left: 22px; color: var(--muted); }
.pillar li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--teal-ink); }
.pillar .more { margin-top: auto; padding-top: 12px; font-size: 0.96rem; border-top: 1px solid var(--line); }
.pillar .more a { color: var(--teal-ink); font-weight: 600; }

/* Work */
.work { background: var(--white); }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 28px; background: var(--white); display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 1.7rem; font-weight: 800; }
.card p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.chips li { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; padding: 5px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
.card a.visit { font-weight: 600; color: var(--teal-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.atoms { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 4vw, 44px); background: var(--white); }
.atoms h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-top: 10px; }
.atoms p { margin-top: 16px; color: var(--muted); }
.atoms .chips { margin-top: 22px; padding-top: 0; }
@media (max-width: 860px) { .atoms { grid-template-columns: 1fr; } }

.tree { background: var(--navy); color: #e6edf5; border-radius: 8px; padding: clamp(20px, 3vw, 32px); font-family: var(--mono); font-weight: 500; font-size: 0.95rem; line-height: 1.5; }
.tree .tree-head { color: var(--teal); font-size: clamp(1.2rem, 3.4vw, 1.5rem); margin: 0 0 16px; }
.tree ul { display: grid; gap: 10px; }
.tree li { display: grid; grid-template-columns: 2.6ch 9.5ch minmax(0, 1fr); column-gap: 1ch; align-items: baseline; }
.tree .branch { color: #5f7388; }
.tree .name { color: var(--teal); display: inline-flex; align-items: baseline; gap: 2px; }
.tree .name .cursor { width: 0.55em; height: 0.95em; transform: translateY(0.12em); }
.tree .desc { color: #b9c6d8; }
.tree .tree-foot { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid #243040; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.78rem; color: #8aa0b8; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 560px) { .tree li { grid-template-columns: 2.6ch minmax(0, 1fr); } .tree .desc { grid-column: 2; } }
.quotes { margin-top: 56px; }
.quotes h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
blockquote { margin: 0; padding: 24px 24px 22px; background: var(--paper); border-left: 4px solid var(--teal); display: flex; flex-direction: column; gap: 16px; }
blockquote p { font-size: 1.04rem; }
blockquote footer { margin-top: auto; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
blockquote footer strong { display: block; color: var(--navy); font-weight: 600; }

/* Process band */
.band { background: var(--navy); color: var(--white); }
.band .label { color: var(--teal); }
.band .section-head p { color: #b9c6d8; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.steps li { border-top: 2px solid var(--teal); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.steps h3 { font-size: 1.5rem; font-weight: 700; }
.steps p { color: #b9c6d8; font-size: 1rem; }
.steps .label { font-size: 0.78rem; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.portrait img { width: 100%; max-width: 380px; border-radius: 6px; border: 1px solid var(--line); }
.portrait .name { margin-top: 18px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
.portrait .role { color: var(--muted); }
.bio p { color: var(--muted); }
.bio p + p { margin-top: 16px; }
.bio .creds { margin-top: 20px; font-size: 0.96rem; }
.principles { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 28px; }
.principles li { border-top: 1px solid var(--line); padding-top: 14px; }
.principles strong { display: block; font-family: var(--display); font-size: 1.15rem; margin-bottom: 4px; }
.principles span { color: var(--muted); font-size: 0.98rem; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact h2 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); margin-top: 12px; }
.contact .intro { margin-top: 16px; color: var(--muted); font-size: 1.1rem; max-width: 46ch; }
.details { margin-top: 32px; display: grid; gap: 18px; }
.details dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.details dd { margin: 2px 0 0; font-weight: 500; }
.details a { text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--teal); }

/* Footer */
.mail-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 16px; }
.mail-card h3 { font-size: 1.6rem; font-weight: 800; }
.mail-help { color: var(--muted); }
.mail-addr { font-family: var(--mono); font-weight: 500; font-size: clamp(1.05rem, 3.4vw, 1.5rem); padding: 14px 16px; background: var(--navy); color: var(--teal); border-radius: 6px; overflow-wrap: anywhere; min-height: 3.2rem; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mail-actions [hidden] { display: none; }
.btn-ghost-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost-dark:hover { background: var(--navy); color: var(--white); }
.mail-status { min-height: 1.4em; font-size: 0.95rem; color: var(--teal-ink); font-weight: 600; }
.mail-note { font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c6d8; padding: 36px 0; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer a { color: var(--white); text-decoration-color: var(--teal); text-underline-offset: 3px; }

/* Privacy page */
.doc { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.doc .wrap { max-width: 800px; }
.doc h1 { font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); }
.doc .updated { margin-top: 12px; font-family: var(--mono); font-weight: 500; font-size: 0.85rem; color: var(--muted); }
.doc .lead { margin-top: 24px; font-size: 1.15rem; color: var(--navy); }
.doc h2 { font-size: 1.45rem; font-weight: 800; margin: 44px 0 10px; }
.doc p + p { margin-top: 14px; }
.doc p, .doc li { color: #2b3a4d; }
.doc ul { margin: 12px 0 0; padding-left: 1.25em; list-style: disc; }
.doc li { margin-bottom: 8px; padding-left: 4px; }
.doc a { color: var(--teal-ink); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
