/* ============================================================
   DIGI Strategic Branding — site styles
   Palette: Carbon #111312 · Graphite #1B1E1C · Smoke #9BA197
            Chartreuse #CDDB00 · Paper #F4F4EF · Hairline #2A2E2B
   Type:    Display — Space Grotesk
            Body    — Inter
            Utility — IBM Plex Mono
   ============================================================ */

:root {
  --carbon: #111312;
  --graphite: #1b1e1c;
  --smoke: #9ba197;
  --paper: #f4f4ef;
  --lime: #cddb00;
  --lime-dim: #a8b400;
  --hairline: #2a2e2b;
  --radius: 12px;
  --display: "Space Grotesk", "Arial Narrow", sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--paper);
  background: var(--carbon);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ------------------------------------------------------------
   Eyebrow labels — the DIGI chevron signature
   ------------------------------------------------------------ */
.ch {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--smoke);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.ch::before {
  content: "»";
  color: var(--lime);
  font-size: 15px;
  line-height: 1;
}

/* ------------------------------------------------------------
   Header / nav
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 19, 18, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1.1;
}
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--lime); }
.brand small {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--smoke);
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--lime); text-decoration: none; }
.nav-links a[aria-current="page"] {
  color: var(--lime);
  border-bottom: 2px solid var(--lime);
  padding-bottom: 3px;
}
.nav-cta {
  background: var(--lime);
  color: var(--carbon) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--paper); text-decoration: none !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 13px;
  cursor: pointer;
  color: var(--paper);
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero { padding: 92px 0 0; position: relative; }
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 6.5vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--lime);
}
.hero .lede {
  margin-top: 26px;
  max-width: 56ch;
  font-size: 19px;
  color: var(--smoke);
}
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-art img, .hero-art svg { width: 100%; height: auto; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--lime); color: var(--carbon); }
.btn-primary:hover { background: var(--paper); color: var(--carbon); }
.btn-ghost { border: 1.5px solid var(--paper); color: var(--paper); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* Readout strip */
.readout {
  margin-top: 60px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.readout div {
  padding: 18px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smoke);
}
.readout div + div { border-left: 1px solid var(--hairline); padding-left: 24px; }
.readout strong { color: var(--paper); font-weight: 500; display: block; font-size: 13px; }

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
section { padding: 88px 0; }
.section-head { max-width: 660px; margin-bottom: 48px; }
h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.section-head p { margin-top: 14px; color: var(--smoke); }

/* Service cards */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--graphite);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--lime); transform: translateY(-2px); }
.card .ch { margin-bottom: 2px; }
.card h3 {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.card p { color: var(--smoke); font-size: 15.5px; }
.card ul {
  list-style: none;
  margin-top: 6px;
  columns: 2;
  column-gap: 24px;
}
.card li {
  color: var(--smoke);
  font-size: 14.5px;
  padding: 4px 0;
  break-inside: avoid;
}
.card li::before { content: "» "; color: var(--lime); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { border-top: 2px solid var(--lime); padding-top: 20px; }
.step h3 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step .ch::before { display: none; }
.step p { color: var(--smoke); font-size: 15.5px; }

/* Lime band */
.band {
  background: var(--lime);
  color: var(--carbon);
  border-radius: 14px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.band h2 { color: var(--carbon); max-width: 20ch; }
.band p { color: #3c4400; margin-top: 10px; max-width: 48ch; }
.band .btn-primary { background: var(--carbon); color: var(--paper); }
.band .btn-primary:hover { background: #000; }

/* Featured work strip (home) */
.work-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.work-strip a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.work-strip a:hover { border-color: var(--lime); transform: translateY(-2px); }
.work-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

/* ------------------------------------------------------------
   Portfolio
   ------------------------------------------------------------ */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filters button {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--smoke);
  padding: 9px 18px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.filters button:hover { color: var(--lime); border-color: var(--lime); }
.filters button[aria-pressed="true"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--carbon);
}

.port-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.port-grid figure {
  background: var(--graphite);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.port-grid figure:hover { border-color: var(--lime); transform: translateY(-2px); }
.port-grid figure[hidden] { display: none; }
.port-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}
.port-grid figcaption {
  padding: 12px 14px 14px;
  font-size: 13.5px;
  color: var(--smoke);
  line-height: 1.4;
}
.port-grid figcaption strong {
  display: block;
  color: var(--paper);
  font-weight: 600;
  font-size: 14.5px;
}

/* Lightbox */
.lightbox {
  border: none;
  background: rgba(10, 11, 10, 0.94);
  padding: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--paper);
}
.lightbox[open] { display: flex; }
.lightbox::backdrop { background: transparent; }
.lb-inner {
  position: relative;
  max-width: min(92vw, 880px);
  text-align: center;
}
.lb-inner img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  background: #fff;
}
.lb-caption { margin-top: 14px; font-size: 15px; color: var(--smoke); }
.lb-caption strong { color: var(--paper); }
.lb-caption a { margin-left: 10px; font-weight: 600; }
.lb-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: var(--graphite);
  border: 1px solid var(--hairline);
  color: var(--paper);
  font-size: 22px;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lb-btn:hover { border-color: var(--lime); color: var(--lime); }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
.lb-close {
  position: fixed;
  top: 20px;
  right: 22px;
  transform: none;
}

/* ------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------ */
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.quote {
  background: var(--graphite);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote blockquote {
  color: var(--paper);
  font-size: 16px;
  flex: 1;
}
.quote blockquote::before { content: "“"; color: var(--lime); font-family: var(--display); font-size: 30px; line-height: 0; margin-right: 2px; }
.quote footer {
  display: flex;
  align-items: center;
  gap: 14px;
}
.quote footer img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.quote cite {
  font-style: normal;
  font-size: 14px;
  color: var(--smoke);
  line-height: 1.45;
}
.quote cite strong { display: block; color: var(--paper); font-weight: 600; }

/* ------------------------------------------------------------
   Contact
   ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}
.contact-card {
  background: var(--graphite);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-card h3 { font-family: var(--display); font-size: 20px; margin-bottom: 8px; }
.contact-card p { color: var(--smoke); font-size: 15.5px; }
.contact-card + .contact-card { margin-top: 20px; }
.contact-card .big {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  margin-top: 10px;
  display: inline-block;
}

form { display: grid; gap: 18px; }
label {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--smoke);
  display: block;
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--graphite);
  font-family: var(--body);
  font-size: 16px;
  color: var(--paper);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--lime);
  outline-offset: 0;
  border-color: var(--lime);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form button {
  justify-self: start;
  border: none;
  cursor: pointer;
  font-family: var(--body);
}
.form-note { font-size: 13.5px; color: var(--smoke); }

/* Honeypot field — hidden from humans */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-status { font-size: 15px; font-weight: 600; min-height: 1em; }
.form-status.ok { color: #9fdb6e; }
.form-status.err { color: #e87362; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { color: var(--smoke); font-size: 14.5px; }
.site-footer nav a:hover { color: var(--lime); }
.site-footer .legal {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--smoke);
}

/* Page hero (interior pages) */
.page-hero { padding: 72px 0 8px; }
.page-hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.page-hero p { margin-top: 18px; max-width: 58ch; color: var(--smoke); font-size: 18px; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .grid, .quote-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 440px; }
  .port-grid, .work-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .hero { padding-top: 56px; }
  .steps, .form-row { grid-template-columns: 1fr; }
  .readout { grid-template-columns: 1fr; }
  .readout div + div { border-left: none; padding-left: 0; border-top: 1px solid var(--hairline); }
  .band { padding: 40px 28px; }
  .port-grid, .work-strip { grid-template-columns: repeat(2, 1fr); }
  .card ul { columns: 1; }
  .lb-btn { width: 42px; height: 42px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--carbon);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
  }
  .nav-links.open { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .port-grid figure, .work-strip a { transition: none; }
}
