/* ---------------------------------------------------------------------------
   Denisi Murataj — business AI & automation consultant
   Visual direction: a graded asset tag. Aluminium neutrals, signage grotesque,
   a reading serif for prose, and one field of signal yellow.
   --------------------------------------------------------------------------- */

/* --- Faces ---------------------------------------------------------------- */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Literata';
  src: url('/fonts/literata-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/fonts/plexmono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('/fonts/plexmono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  --ground: #E7E8E3;
  --panel:  #F6F6F3;
  --ink:    #14181A;
  --ink-2:  #565E5C;
  --line:   #C9CCC4;
  --signal: #F2C200;
  --signal-ink: #14181A;
  --signal-rule: rgba(20, 24, 26, 0.24);
  --signal-soft: rgba(20, 24, 26, 0.66);

  --display: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: 'Literata', Georgia, 'Times New Roman', serif;
  --mono: 'Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1320px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --rail-w: 8.5rem;
  --bar-h: 4.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #101312;
    --panel:  #181C1B;
    --ink:    #E9EAE5;
    --ink-2:  #99A19D;
    --line:   #2B302E;
  }
}
:root[data-theme='dark'] {
  --ground: #101312;
  --panel:  #181C1B;
  --ink:    #E9EAE5;
  --ink-2:  #99A19D;
  --line:   #2B302E;
}
:root[data-theme='light'] {
  --ground: #E7E8E3;
  --panel:  #F6F6F3;
  --ink:    #14181A;
  --ink-2:  #565E5C;
  --line:   #C9CCC4;
}

/* --- Base ----------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.955rem + 0.2vw, 1.125rem);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, dl, dd, figure, figcaption, ul, ol, address {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
address { font-style: normal; }
img, svg { max-width: 100%; height: auto; }

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

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

section[id] { scroll-margin-top: calc(var(--bar-h) + 1rem); }

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

/* --- Type roles ----------------------------------------------------------- */

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 0.97;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 22ch;
}

h2 {
  font-family: var(--display);
  font-weight: 650;
  font-stretch: 106%;
  font-size: clamp(1.7rem, 3.1vw, 2.4rem);
  line-height: 1.06;
  letter-spacing: -0.017em;
  text-wrap: balance;
}

h3 {
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.004em;
}

.eyebrow,
.rail-label,
.plate-head,
.split-head {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.1rem, 1.02rem + 0.42vw, 1.375rem);
  line-height: 1.48;
  max-width: 44rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.15s ease, text-decoration-thickness 0.15s ease;
}
a:hover {
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
}

/* --- Top bar -------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ground) 84%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar-in {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.mark { text-decoration: none; display: block; }
.mark-name {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 100%;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.mark-sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.5;
}

.topnav {
  display: none;
  gap: 1.6rem;
}
.topnav a,
.topact a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink-2);
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.topnav a { text-transform: uppercase; letter-spacing: 0.1em; }
.topnav a:hover,
.topact a:hover,
.topnav a.is-current {
  color: var(--ink);
  border-bottom-color: var(--signal);
}

.topact {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.topact-mail .at-long { display: none; }

@media (min-width: 720px) {
  .topact-mail .at-long { display: inline; }
  .topact-mail .at-short { display: none; }
}
@media (min-width: 960px) {
  .topnav { display: flex; }
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  padding-block: clamp(3.5rem, 9vh, 6.5rem) clamp(3rem, 6vh, 5rem);
}
.hero-in {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.hero .eyebrow { color: var(--ink-2); }
.hero .lead { color: var(--ink); }

/* Headline runs full width; the lead, the spec plate and the photo share the
   row beneath it. */
.hero-body {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: center;
  margin-top: 0.5rem;
}
.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}
.hero-text .lead { max-width: 40rem; }
/* Let the plate fill its column so the text block has a clean edge facing
   the photo; the lead keeps a reading measure. */
.hero-text .plate { max-width: none; }

.hero-shot { margin: 0; min-width: 0; }
.hero-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--panel);
}

@media (min-width: 880px) {
  .hero-body { grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); }
}
@media (max-width: 879px) {
  .hero-shot { max-width: 22rem; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.reveal { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
.reveal[data-d='0'] { animation-delay: 0.04s; }
.reveal[data-d='1'] { animation-delay: 0.14s; }
.reveal[data-d='2'] { animation-delay: 0.26s; }
.reveal[data-d='3'] { animation-delay: 0.40s; }

/* --- Asset tag ------------------------------------------------------------ */

.plate {
  width: 100%;
  max-width: 38rem;
  border: 1px solid var(--ink);
  background: var(--panel);
}
.band--alt .plate { background: var(--ground); }
.plate-head {
  background: var(--ink);
  color: var(--ground);
  padding: 0.5rem 0.9rem;
}
.plate-rows { display: block; }
.plate-row {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 0.6rem 0.9rem;
}
.plate-row + .plate-row { border-top: 1px solid var(--line); }
/* Longer labels than the hero plate's WHO/FOR/BUILT — give them room rather
   than letting "First build" wrap onto two lines. */
.plate--cost .plate-row { grid-template-columns: 6.5rem minmax(0, 1fr); }
.plate-row dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-top: 0.15em;
}
.plate-row dd {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* --- Bands ---------------------------------------------------------------- */

.band {
  border-top: 1px solid var(--line);
  padding-block: clamp(3.25rem, 6.5vw, 5.5rem);
}
.band--alt { background: var(--panel); }

.band-in {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: grid;
  gap: clamp(1.5rem, 3vw, 3.5rem);
}
.rail-label { color: var(--ink-2); }

.col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 56rem;
  min-width: 0;
}
.col > p { max-width: 46rem; }
.col > h3 { margin-top: 0.6rem; }
.col-lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--ink-2);
  line-height: 1.55;
}

@media (min-width: 900px) {
  .band-in { grid-template-columns: minmax(0, var(--rail-w)) minmax(0, 1fr); }
  .rail-label {
    position: sticky;
    top: calc(var(--bar-h) + 1.75rem);
  }
}

/* --- Two lists ------------------------------------------------------------ */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem 2.5rem;
  margin-top: 0.75rem;
}
.split-side { display: flex; flex-direction: column; gap: 1rem; }
.split-head { padding-bottom: 0.6rem; }
.split-head--no {
  color: var(--ink-2);
  border-bottom: 2px solid var(--line);
}
.split-head--yes {
  color: var(--ink);
  border-bottom: 2px solid var(--signal);
}

.tick { display: flex; flex-direction: column; gap: 0.7rem; }
.tick li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9875rem;
  line-height: 1.5;
}
.tick--no li::before {
  content: '\00d7';
  position: absolute;
  left: 0.15rem;
  top: -0.03em;
  font-family: var(--mono);
  color: var(--ink-2);
}
.tick--yes li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--signal);
}

/* --- Spec grid ------------------------------------------------------------ */

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem 2.5rem;
  margin-top: 0.75rem;
}
.spec {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}
.spec p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.caveat {
  border-left: 2px solid var(--ink);
  padding-left: 1.2rem;
}

/* --- Quickfurb panel — the section wears the product's colours ------------- */

.panel-dark {
  max-width: 34rem;
  background: #0f172a;
  border: 1px solid #2c3a50;
  border-radius: 8px;
  padding: 1.75rem 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.panel-dark h2 { color: #f1f5f9; }
.panel-dark .col-lead { color: #94a3b8; }
.panel-dark .contact-links { margin-top: 0.2rem; }
.panel-dark .btn {
  border-color: #2c3a50;
  color: #a5b4fc;
}
.panel-dark .btn:hover {
  background: #1e293b;
  color: #f1f5f9;
}
.panel-dark .caveat {
  border-color: #2c3a50;
  color: #94a3b8;
}

/* --- MB Auto panel — the day-sites card wears mbautoltd.co.uk's colours ---- */

.mb-panel {
  max-width: 34rem;
  background:
    linear-gradient(rgba(230, 235, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 235, 234, 0.05) 1px, transparent 1px),
    #0B1116;
  background-size: 28px 28px;
  border: 1px solid rgba(230, 235, 234, 0.16);
  border-radius: 2px;
  padding: 1.75rem 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.mb-panel h2 {
  color: #E6EBEA;
  font-weight: 700;
  font-stretch: 88%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.mb-panel .mb-accent { color: #4C93FF; }
.mb-panel .col-lead { color: rgba(230, 235, 234, 0.72); }
.mb-panel .contact-links { margin-top: 0.2rem; }
.mb-panel .btn {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0;
  background: #0D53BE;
  border-color: #0D53BE;
  border-radius: 2px;
  color: #FFFFFF;
}
.mb-panel .btn:hover {
  background: #4C93FF;
  border-color: #4C93FF;
  color: #0B1116;
}
.mb-panel .caveat {
  border-color: rgba(230, 235, 234, 0.28);
  color: rgba(230, 235, 234, 0.72);
}

.qf-cycle {
  width: fit-content;
  max-width: 100%;
  background: #1e293b;
  border: 1px solid #2c3a50;
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-x: auto;
}
.qf-cycle-label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}
.qf-cycle-line {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: #a5b4fc;
  white-space: nowrap;
}

/* --- Steps ---------------------------------------------------------------- */

.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 0.75rem;
}
.steps li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0.4rem 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  padding-top: 0.25em;
}
.steps p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44rem;
}

/* --- FAQ ------------------------------------------------------------------ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.75rem;
}
.qa {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}
.qa p {
  font-size: 0.9375rem;
  line-height: 1.58;
  color: var(--ink-2);
  max-width: 46rem;
}

/* --- Machine-readable field ----------------------------------------------- */

.band--signal {
  background: var(--signal);
  color: var(--signal-ink);
  border-top-color: var(--signal);
}
.band--signal .rail-label { color: var(--signal-soft); }
.band--signal a { text-decoration-color: var(--signal-rule); }
.band--signal a:hover {
  text-decoration-color: var(--signal-ink);
  text-decoration-thickness: 2px;
}
.band--signal :focus-visible {
  outline-color: var(--signal-ink);
}

.record {
  margin-top: 0.75rem;
  border-top: 1px solid var(--signal-rule);
  overflow-x: auto;
}
.record-row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 0.25rem 1.5rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--signal-rule);
}
.record dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-soft);
  padding-top: 0.25em;
}
.record dd {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.55;
}
@media (max-width: 620px) {
  .record-row { grid-template-columns: minmax(0, 1fr); }
}

/* --- Contact -------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 3vw, 2.75rem);
  align-items: start;
}
.contact-copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}
.contact-copy p { max-width: 40rem; }

/* Identity badge — built like the hero spec plate, so the portrait reads as
   part of the record rather than a stock headshot dropped on the page. */
.badge {
  border: 1px solid var(--ink);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 14rem;
}
.badge-head {
  background: var(--ink);
  color: var(--ground);
  padding: 0.45rem 0.75rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.badge img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 35%;
  background: var(--line);
}
.badge figcaption {
  border-top: 1px solid var(--line);
  padding: 0.55rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}
.badge figcaption b {
  display: block;
  font-weight: 500;
  color: var(--ink);
}

@media (min-width: 760px) {
  .contact-grid { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); }
}

/* The back-office quote — closes the page under the contact block. */
.contact-quote {
  margin-top: clamp(1.75rem, 3.5vw, 3rem);
  border-left: 2px solid var(--ink);
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.contact-quote-head {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.004em;
  color: var(--ink);
}
.contact-quote p:not(.contact-quote-head) {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 0.8rem 1.15rem;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  background: var(--ink);
  color: var(--ground);
  text-decoration: none;
}
.btn--primary {
  background: var(--ink);
  color: var(--ground);
}
.btn--primary:hover {
  background: var(--signal);
  color: var(--signal-ink);
  border-color: var(--signal);
}

/* --- Footer --------------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3.5rem;
}
.foot-in {
  padding-inline: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}
/* Colophon — a note on how the thing was made, which is what a footer is for.
   It closes the page, so the rule and the space sit above it. */
.colophon {
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 48rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.colophon b {
  font-weight: 500;
  color: var(--ink);
}

.foot-name {
  font-family: var(--display);
  font-weight: 600;
  font-stretch: 100%;
  font-size: 1rem;
}
.foot-line {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0.9rem;
}
.foot-nav a {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  text-decoration-color: transparent;
}
.foot-nav a:hover { color: var(--ink); text-decoration-color: var(--signal); }

/* --- Motion preference ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
