:root {
  --bg: #fff;
  --fg: #111;
  --muted: #5c5c5c;
  --line: #e4e4e4;
  --accent: #111;
  --accent-fg: #fff;
  --logo-filter: none;
  --logo-blend: multiply;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111;
    --fg: #f2f2f2;
    --muted: #a3a3a3;
    --line: #2c2c2c;
    --accent: #f2f2f2;
    --accent-fg: #111;
    --logo-filter: invert(1);
    --logo-blend: screen;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; filter: var(--logo-filter); mix-blend-mode: var(--logo-blend); }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

.wrap { max-width: 64rem; margin: 0 auto; padding-inline: 1.5rem; }
.narrow { max-width: 42rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: .5rem 1rem; z-index: 10; }

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 600; text-decoration: none; letter-spacing: .01em; }
nav { display: flex; gap: 1.5rem; font-size: .95rem; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--fg); }

section { padding-block: 4rem; border-top: 1px solid var(--line); }
section.hero { border-top: 0; padding-block: 6rem 5rem; }
.hero .mark { margin-bottom: 2rem; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.15; margin: 0 0 1.25rem; max-width: 20ch; letter-spacing: -.02em; }
h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 2rem; font-weight: 600; }
h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38rem; margin: 0 0 2rem; }

.button {
  display: inline-block; padding: .8rem 1.6rem;
  background: var(--accent); color: var(--accent-fg);
  text-decoration: none; font-weight: 600; border-radius: 2px;
}
.button:hover { opacity: .85; }

.cols { display: grid; gap: 3rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
ul { list-style: none; margin: 0; padding: 0; }
li + li { margin-top: .4rem; }
.cols li { padding-left: 1.2rem; position: relative; }
.cols li::before { content: ""; position: absolute; left: 0; top: .8em; width: .5rem; height: 1px; background: var(--fg); }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.steps li { counter-increment: s; margin: 0; }
.steps li::before { content: "0" counter(s); display: block; color: var(--muted); font-size: .85rem; margin-bottom: .5rem; }
.steps p { margin: 0; color: var(--muted); }

.narrow.wrap { margin-left: auto; margin-right: auto; }
#about, #contact { max-width: 64rem; }
#about > *, #contact > * { max-width: 42rem; }
.contact { font-size: 1.15rem; }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: .2rem 0; }

@media (max-width: 36rem) {
  section.hero { padding-top: 3.5rem; }
  nav { gap: 1rem; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Contact form */
form { max-width: 34rem; display: grid; gap: 1.25rem; }
form label { display: grid; gap: .4rem; font-size: .9rem; color: var(--muted); }
input, textarea {
  font: inherit; color: var(--fg); background: transparent;
  border: 1px solid var(--line); border-radius: 2px; padding: .7rem .8rem; width: 100%;
}
input:focus, textarea:focus { border-color: var(--fg); outline: none; }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.button { border: 0; font: inherit; font-weight: 600; cursor: pointer; justify-self: start; }
button.button:disabled { opacity: .5; cursor: wait; }
#form-status { margin: 0; min-height: 1.65em; }
.note { margin: 0; font-size: .85rem; color: var(--muted); }

/* Work gallery: full-bleed, stays light in both themes (the images have white backgrounds) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
section.work { padding: 0; border-top: 0; background: #fff; color: #111; }
section.work + section { border-top: 0; } /* no divider line under the gallery */
section.work + section[hidden] + section[hidden] + section { border-top: 0; } /* same, while Services and Process are hidden */
.carousel { position: relative; --tile-w: clamp(min(92vw, 24rem), 60vw, 56rem); }
.tiles { position: relative; display: flex; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.tiles:focus-visible { outline-offset: -3px; }
.is-js .tiles { scrollbar-width: none; }
.is-js .tiles::-webkit-scrollbar { display: none; }
.tiles li { flex: 0 0 var(--tile-w); margin: 0; background: #fff; }
.tiles figure { margin: 0; }
.tiles img { display: block; width: 100%; height: auto; filter: none; mix-blend-mode: normal; }
.tiles figcaption { display: grid; gap: .15rem; padding: 0 1.5rem 1.75rem; }
.tiles figcaption strong { font-size: 1rem; }
.tiles figcaption span { font-size: .85rem; color: #5c5c5c; line-height: 1.45; }

.controls[hidden] { display: none; }
.ctl {
  position: absolute; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(17, 17, 17, .72); color: #fff;
  transition: background .15s;
}
.ctl:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px #111; }
.ctl.prev, .ctl.next { top: calc(var(--tile-w) * 380 / 700 / 2); transform: translateY(-50%); }
.ctl.prev { left: 1rem; }
.ctl.next { right: 1rem; }
.ctl.toggle { top: 1rem; right: 1rem; width: 2.25rem; height: 2.25rem; }
.ctl.toggle .i-play, .ctl.toggle.is-paused .i-pause { display: none; }
.ctl.toggle.is-paused .i-play { display: block; }
@media (max-width: 36rem) {
  .ctl { width: 2.25rem; height: 2.25rem; }
  .ctl.prev { left: .5rem; }
  .ctl.next { right: .5rem; }
  .ctl.toggle { top: .5rem; right: .5rem; width: 2rem; height: 2rem; }
}

/* Captions hidden for now (images only). Still in the HTML and available to screen readers.
   Delete this block to bring them back. */
.tiles figcaption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
