/* ==========================================================================
   Digital Futures — machined spec-sheet direction
   Achromatic by design. The logo's silver is the only "colour" on the site.
   Background is locked to #0F0F0F to match the logo PNGs (no transparency).
   ========================================================================== */

:root {
  /* Surfaces — all neutral, hierarchy comes from luminance alone */
  --ink:        #0F0F0F;
  --panel:      #151517;
  --panel-hi:   #1B1C1F;

  /* Lines — the machined drawing kit */
  --line:       #26282B;
  --line-mid:   #33373B;
  --line-hi:    #4A5157;

  /* Type */
  --bone:       #F2F4F5;
  --slate:      #8A9299;
  --slate-dim:  #5E656B;

  /* The silver gradient, lifted from the mark */
  --silver-1:   #FFFFFF;
  --silver-2:   #C8CFD5;
  --silver-3:   #7E878F;

  /* Type families */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --gut:     clamp(1.25rem, 4vw, 2.5rem);
  --bay:     clamp(4rem, 9vh, 7rem);
  --measure: 62ch;
  --shell:   1280px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --- reset ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--slate);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--bone);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0;
  font-stretch: 112%;
}

p { margin: 0; }
a { color: inherit; }

::selection { background: var(--bone); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--silver-2);
  outline-offset: 3px;
  border-radius: 1px;
}

/* --- layout shell --------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* Top padding only, so two stacked sections don't double into a huge void.
   The last section before a band or footer adds .bay-end for closing space. */
.bay     { padding-block-start: var(--bay); }
.bay-end { padding-block-end: var(--bay); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bone);
  color: var(--ink);
  padding: .75rem 1.25rem;
  font-family: var(--mono);
  font-size: .8125rem;
  z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* --- the machined drawing kit --------------------------------------------
   A rule with tick marks at each end, like a dimension line on an
   engineering drawing. This is the site's signature device: it says
   "measured, specified, built to spec" without a word of copy.
   -------------------------------------------------------------------------- */

.dim {
  position: relative;
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.dim::before, .dim::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--line-hi);
}
.dim::before { left: 0; }
.dim::after  { right: 0; }

/* --- utility labels (mono, the "spec" voice) ------------------------------ */

.tag {
  font-family: var(--mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--slate-dim);
  margin: 0;
}

.tag-num {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  color: var(--slate-dim);
  font-variant-numeric: tabular-nums;
}

/* --- header --------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.masthead-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 88px;
}

/* The horizontal lockup goes soft below 300px wide (the subline turns to mush),
   so below that we swap to the DF mark alone rather than shrink it further. */
.brand { display: block; flex: none; line-height: 0; }
.brand img { width: 300px; height: auto; }
.brand .brand-mark { display: none; width: 84px; }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.25rem); }

.nav a {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  padding-block: .35rem;
  position: relative;
  transition: color .25s var(--ease);
}
.nav a:hover { color: var(--bone); }

.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--silver-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--bone); }

.nav-cta {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(135deg, var(--silver-1), var(--silver-2) 55%, var(--silver-3));
  padding: .7rem 1.2rem;
  white-space: nowrap;
  transition: filter .25s var(--ease);
}
.nav-cta:hover { filter: brightness(1.12); }
.nav-cta::after { display: none; }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line-mid);
  color: var(--bone);
  width: 42px; height: 38px;
  padding: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 17px; height: 1px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

/* --- hero ----------------------------------------------------------------- */

.hero { padding-block: clamp(4rem, 12vh, 8rem) clamp(3rem, 8vh, 5rem); }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
}
.hero-eyebrow .dim { flex: 1; }

.hero h1 {
  font-size: clamp(2.5rem, 1.1rem + 6.2vw, 6rem);
  max-width: 16ch;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* No gradient here on purpose — a silver fade made the most important words
   the dimmest ones on the page. The headline stays full strength. */
.hero h1 em { font-style: normal; }

.hero-sub {
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  color: var(--slate);
  margin-bottom: clamp(2.25rem, 5vh, 3rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: .8125rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}

.btn-solid {
  color: var(--ink);
  background: linear-gradient(135deg, var(--silver-1), var(--silver-2) 55%, var(--silver-3));
}
.btn-solid:hover { filter: brightness(1.12); }

.btn-ghost {
  color: var(--slate);
  border-color: var(--line-mid);
  background: none;
}
.btn-ghost:hover { color: var(--bone); border-color: var(--line-hi); }

/* --- spec strip (the hero's proof substitute) -----------------------------
   No portfolio and no prices, so the hero's supporting row states
   commitments — what the client gets — not achievements we can't back up.
   -------------------------------------------------------------------------- */

.spec {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.spec-cell {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem clamp(1rem, 2vw, 1.75rem);
}

.spec-cell dt {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate-dim);
  margin-bottom: .6rem;
}

.spec-cell dd {
  margin: 0;
  font-family: var(--display);
  font-stretch: 112%;
  font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem);
  font-weight: 600;
  color: var(--bone);
  line-height: 1.15;
  letter-spacing: -.01em;
}

/* --- section heads -------------------------------------------------------- */

.head { margin-bottom: clamp(2.5rem, 6vh, 4rem); }

.head-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.head-top .dim { flex: 1; }

.head h2 {
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 3.25rem);
  max-width: 20ch;
}

.head p {
  margin-top: 1.25rem;
  max-width: var(--measure);
  color: var(--slate);
}

/* --- services grid -------------------------------------------------------- */

/* Fixed 2 columns, not auto-fit — with 4 cards, a 3-up grid leaves an empty
   cell that shows the lighter grid background as a grey block. */
.grid-2 {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--ink);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  transition: background .35s var(--ease);
}
.card:hover { background: var(--panel); }

.card-num {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .18em;
  color: var(--slate-dim);
  display: block;
  margin-bottom: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.card h3 {
  font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.4375rem);
  margin-bottom: .85rem;
}

.card p { color: var(--slate); font-size: .9375rem; }

/* --- process (a real sequence, so numbering earns its place) -------------- */

.steps { display: grid; gap: 0; }

/* Three columns — number, content, timing — so it reads as a spec table and
   the timing labels fill what would otherwise be dead space at desktop width. */
.step {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 4vh, 2.75rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }

.step-mark {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .12em;
  color: var(--slate-dim);
  padding-top: .35rem;
  font-variant-numeric: tabular-nums;
}

.step h2, .step h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); margin-bottom: .75rem; }
.step p { max-width: var(--measure); }

.step-when {
  justify-self: end;
  margin-top: .3rem;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate-dim);
  border: 1px solid var(--line);
  padding: .35rem .7rem;
}

/* --- panel (pricing explainer, callouts) ---------------------------------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(1.75rem, 4.5vw, 3.5rem);
}

.panel h2 { margin-bottom: 1.25rem; }
.panel > p { max-width: var(--measure); }

.factors {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.factors li {
  background: var(--panel);
  padding: 1.35rem 1.5rem;
  font-size: .9375rem;
}

.factors strong {
  display: block;
  font-family: var(--display);
  font-stretch: 112%;
  color: var(--bone);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: .4rem;
  letter-spacing: -.005em;
}

/* --- prose (about, long copy) --------------------------------------------- */

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1.25rem; }
.prose h3 { margin-top: 2.75rem; margin-bottom: .85rem; font-size: 1.3125rem; }

/* --- contact / form ------------------------------------------------------- */

.contact-wrap {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: start;
}

.form { display: grid; gap: 1.5rem; }

.field { display: grid; gap: .6rem; }

.field label {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate-dim);
}

.field input,
.field textarea,
.field select {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--bone);
  background: var(--panel);
  border: 1px solid var(--line-mid);
  padding: .9rem 1rem;
  width: 100%;
  transition: border-color .25s var(--ease);
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line-hi); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--silver-2);
  outline: none;
}
.field textarea { resize: vertical; min-height: 8.5rem; }

.field-note { font-size: .8125rem; color: var(--slate-dim); }

.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-status {
  font-family: var(--mono);
  font-size: .8125rem;
  letter-spacing: .06em;
  min-height: 1.25rem;
}
.form-status[data-state="error"] { color: #E4A0A0; }
.form-status[data-state="sending"] { color: var(--slate); }

.contact-aside dl { margin: 0; }
.contact-aside dt {
  font-family: var(--mono);
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate-dim);
  margin-bottom: .5rem;
}
.contact-aside dd {
  margin: 0 0 1.75rem;
  color: var(--bone);
  font-size: 1.0625rem;
}
.contact-aside dd a { text-decoration: none; border-bottom: 1px solid var(--line-hi); }
.contact-aside dd a:hover { border-color: var(--silver-2); }

/* --- CTA band ------------------------------------------------------------- */

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.band-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(3rem, 8vh, 5rem);
}

.band h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); max-width: 18ch; }

/* --- footer --------------------------------------------------------------- */

.foot { padding-block: clamp(3rem, 7vh, 4.5rem) 2.5rem; }

.foot-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.foot-nav { display: flex; flex-wrap: wrap; gap: 1.5rem 2.25rem; }

.foot-nav a {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  transition: color .25s var(--ease);
}
.foot-nav a:hover { color: var(--bone); }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.foot-base p { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; color: var(--slate-dim); }

/* --- page hero (interior pages) ------------------------------------------- */

.page-hero { padding-block: clamp(3.5rem, 9vh, 6rem) clamp(2.5rem, 6vh, 4rem); }
.page-hero h1 { font-size: clamp(2.25rem, 1.3rem + 4.2vw, 4.25rem); max-width: 18ch; margin-bottom: 1.5rem; }
.page-hero p { max-width: var(--measure); font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); }

/* --- entrance motion ------------------------------------------------------
   One orchestrated idea: content rises as its dimension line draws out.
   Ties the motion to the "measured build" concept instead of scattering fades.
   -------------------------------------------------------------------------- */

/* Scoped to .js so that if JavaScript never runs, the content is simply
   visible instead of stuck at opacity 0 forever. */
.js .rise { opacity: 0; transform: translateY(14px); }

.js .rise.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.dim.is-in { animation: draw .9s var(--ease) both; }

@keyframes draw { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); } }

/* --- responsive ----------------------------------------------------------- */

@media (max-width: 860px) {
  .burger { display: block; }

  .brand img { display: none; }
  .brand .brand-mark { display: block; }

  .nav {
    position: fixed;
    inset: 88px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gut) 1.75rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  .nav[data-open="true"] { opacity: 1; transform: none; visibility: visible; }

  .nav a { padding-block: .95rem; border-bottom: 1px solid var(--line); font-size: .8125rem; }
  .nav a::after { display: none; }
  .nav-cta { margin-top: 1.25rem; text-align: center; border-bottom: 0; }

  .step { grid-template-columns: 1fr; gap: .75rem; }
  .step-mark { padding-top: 0; }
  .step-when { justify-self: start; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .dim.is-in { animation: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
