:root {
  --graphite: #23262b;
  --ink: #1b1a17;
  --honey: #c98a1f;
  --bone: #f4f0e8;
  --slate: #7c8087;
  --ground: #f4f0e8;
  --text: #23262b;
  --muted: #5d6168;
  --wedge: #ebe6db;
  --btn-bg: #23262b;
  --btn-text: #f4f0e8;
  --focus: #c98a1f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #23262b;
    --text: #f4f0e8;
    --muted: #a9acb2;
    --wedge: #2a2d33;
    --btn-bg: #f4f0e8;
    --btn-text: #23262b;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  /* One spacing scale and one left edge for the whole page */
  --gutter: clamp(16px, 6vw, 140px);
  --col: 40rem;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 56px;
}

/* Background silhouette: sits to the right of the content column, never behind it.
   The clip box keeps it from ever widening the page. */
.bg-clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-mark {
  position: absolute;
  right: -2vw;
  bottom: -4vh;
  width: min(44vw, 640px);
  height: auto;
  transform: scaleX(-1);
  color: var(--wedge);
  z-index: 0;
  pointer-events: none;
}

/* Content is top-aligned so nothing jumps when the email or phone number appears */
main {
  flex: 1;
  width: 100%;
  padding: var(--s5) var(--gutter) var(--s4);
  position: relative;
  z-index: 1;
}
main > * { max-width: var(--col); }

.brand { display: flex; align-items: center; gap: var(--s2); width: fit-content; margin-bottom: var(--s5); }
.logo-mark { width: 72px; height: 72px; }
.lockup-text { display: flex; flex-direction: column; gap: var(--s1); }
.wordmark {
  font-family: "Archivo", Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  letter-spacing: -0.01em;
  font-size: 2.4rem;
  line-height: 1;
}
.tagline, .label {
  font-family: "IBM Plex Mono", Courier, monospace;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--muted);
}
.tagline { font-size: 0.72rem; letter-spacing: 0.14em; }
.label { font-size: 0.78rem; letter-spacing: 0.14em; }
.label .dot { color: var(--honey); }

h1 {
  font-family: "Archivo", Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.06;
  margin: 0 0 var(--s2);
  text-wrap: balance;
}
h1 em { font-style: normal; box-shadow: inset 0 -0.18em 0 var(--honey); }
p.lead { margin: 0 0 var(--s4); font-size: 1.15rem; }

/* Services strip: ruled above and below like a line on the business card */
.services {
  list-style: none;
  margin: 0 0 var(--s4);
  padding: var(--s2) 0;
  border-top: 1px solid color-mix(in srgb, var(--slate) 40%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--slate) 40%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: "IBM Plex Mono", Courier, monospace;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.services .sep { color: var(--honey); }

/* Actions: two equal buttons on one row */
.cta { display: grid; grid-template-columns: repeat(2, minmax(0, 11.5rem)); gap: var(--s2); }
.btn {
  font: inherit;
  font-family: "IBM Plex Mono", Courier, monospace;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 0;
  border-radius: 8px;
  padding: 14px 12px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--honey);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--honey); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--honey); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Revealed contact details: labelled rows that line up under the buttons */
.reveals { margin-top: var(--s3); display: flex; flex-direction: column; gap: var(--s1); }
.reveal {
  font-family: "IBM Plex Mono", Courier, monospace;
  font-size: 0.95rem;
  color: var(--text);
  display: grid;
  grid-template-columns: 4.5rem auto;
  align-items: baseline;
}
.reveal:empty { display: none; }
#mail-out::before, #tel-out::before {
  font-weight: 500; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
#mail-out::before { content: "Email"; }
#tel-out::before { content: "Phone"; }
.reveal a { color: inherit; text-decoration: underline; text-decoration-color: var(--honey); text-underline-offset: 4px; text-decoration-thickness: 2px; user-select: all; }
.hint { color: var(--muted); font-size: 0.85rem; margin-top: var(--s2); }
.hint:empty { display: none; }
noscript .reveal { display: block; }

footer {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) var(--s3);
}
.footer-inner {
  max-width: var(--col);
  padding-top: var(--s2);
  border-top: 1px solid color-mix(in srgb, var(--slate) 40%, transparent);
}

.footer-inner { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.footer-inner span { white-space: nowrap; }

/* Narrower screens */
@media (max-width: 900px) {
  .bg-mark { width: 70vw; right: -10vw; bottom: -6vw; }
}
@media (max-width: 600px) {
  .footer-inner { gap: 4px 20px; }
  .footer-inner .dot { display: none; }
  .services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
  .services .sep { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  main { padding-top: var(--s3); }
  .brand { margin-bottom: var(--s4); }
  .logo-mark { width: 56px; height: 56px; }
  .wordmark { font-size: 1.7rem; }
  .tagline { font-size: 0.64rem; letter-spacing: 0.1em; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 0.85rem; }
  .cta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Logo: click (or Enter / Space) and the workstation slides off the wedge (see site.js) */
.brand { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.brand:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: 14px; }
.logo-mark { display: block; flex: none; }
.logo-mark .part { transition: transform .6s cubic-bezier(.2, .7, .3, 1); }
.brand.slide .part { transition: transform 1.3s cubic-bezier(.55, 0, .85, .45); }
.brand.slide .tower { transform: translateX(64px); }
.brand.slide .monitor { transform: translateX(64px); transition-delay: .18s; }
/* Reduced motion: still respond to the click, but fade instead of slide */
@media (prefers-reduced-motion: reduce) {
  .logo-mark .part, .brand.slide .part { transition: opacity .4s ease; transition-delay: 0s; }
  .brand.slide .tower, .brand.slide .monitor { transform: none; opacity: 0; }
}
