/* Buulc — shared stylesheet
   Design language: editorial memo. One serif, one accent, one motion system.
   Every recurring element (eyebrow tick, row-list, reveal, image-settle,
   underline-hover) is a single component reused everywhere — nothing is
   one-off per page. */

:root {
  --bg: #faf8f4;
  --bg-alt: #f0efec;
  --ink: #16212c;
  --ink-dim: #57626c;
  --accent: #111111;
  --accent-tint: #ececea;
  --line: rgba(22, 33, 44, 0.14);
  --serif: "Source Serif 4", "Times New Roman", Times, serif;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --maxw: 1180px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
@media (max-width: 480px) { .wrap { padding: 0 20px; } }

/* ---------- Motion system ---------- */
/* One reveal treatment, used for every block that enters on scroll. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* Row-list children cascade in with a small stagger. */
.row-item { transition-delay: 0s; }
.row-list .row-item:nth-child(1) { transition-delay: .04s; }
.row-list .row-item:nth-child(2) { transition-delay: .12s; }
.row-list .row-item:nth-child(3) { transition-delay: .2s; }
.row-list .row-item:nth-child(4) { transition-delay: .28s; }
.trio-grid .trio-card:nth-child(1) { transition-delay: .04s; }
.trio-grid .trio-card:nth-child(2) { transition-delay: .14s; }
.trio-grid .trio-card:nth-child(3) { transition-delay: .24s; }
.post-list .post-block:nth-child(1) { transition-delay: .04s; }
.post-list .post-block:nth-child(2) { transition-delay: .1s; }
.post-list .post-block:nth-child(3) { transition-delay: .16s; }

/* Hero headline lines fade up in sequence on load. */
.line-reveal { overflow: hidden; }
.line-reveal span {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: line-in .8s var(--ease) forwards;
}
.line-reveal span:nth-child(1) { animation-delay: .05s; }
.line-reveal span:nth-child(2) { animation-delay: .16s; }
.line-reveal span:nth-child(3) { animation-delay: .27s; }
@keyframes line-in { to { opacity: 1; transform: translateY(0); } }

/* Eyebrow tick-mark: the one recurring signature mark, before every label. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow .tick {
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s .1s var(--ease);
}
.reveal.is-in .tick { transform: scaleX(1); }

/* Images settle into place: fade + slight scale as they enter view. */
.img-reveal {
  opacity: 0;
  transform: scale(1.045);
  transition: opacity .9s var(--ease), transform 1.1s var(--ease);
}
.img-reveal.is-in { opacity: 1; transform: scale(1); }

/* Photography: one treatment for every photo on the site — a quiet
   colour grade that ties raw stock photos to the palette, plus the
   same tick-mark motif as the eyebrow, so an image reads as designed
   rather than dropped in. No card, no shadow, no floating box.
   .photo-mark is the unclipped outer box (holds the tick, sits still);
   .photo is the inner clip (holds the image, does the reveal fade). */
.photo-mark { position: relative; height: 100%; }
.photo-mark::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}
.photo { position: relative; overflow: hidden; height: 100%; }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) saturate(1.08) contrast(1.04);
}
.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  mix-blend-mode: multiply;
  opacity: .07;
  pointer-events: none;
}

/* Rotating banner: several images stacked and crossfaded via motion.js. */
.photo-carousel { position: relative; width: 100%; height: 100%; }
.photo-carousel img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
}
.photo-carousel img.active { opacity: 1; }

/* ---------- Nav — centered, static, plain. The photography and the
   copy carry the page; the header just states who this is and gets
   out of the way, the way a gallery wall label would. */
header.site-nav {
  position: relative;
  background: var(--bg);
  padding: 40px 0 28px;
  text-align: center;
}
header.site-nav .wrap { position: relative; }
.logo { display: inline-block; font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.logo-mark { display: block; width: 34px; height: 34px; margin: 0 auto 10px; }
.tagline {
  margin: 8px 0 26px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

nav.primary-nav ul { list-style: none; display: flex; justify-content: center; gap: 36px; margin: 0; padding: 0; }
nav.primary-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-dim);
  padding-bottom: 4px;
}
nav.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
nav.primary-nav a:hover { color: var(--ink); }
nav.primary-nav a:hover::after,
nav.primary-nav a.active::after { transform: scaleX(1); }
nav.primary-nav a.active { color: var(--ink); }

.nav-toggle {
  display: none;
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 8px;
  background: none;
  border: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  header.site-nav { padding: 28px 0 22px; }
  nav.primary-nav {
    position: fixed; inset: 0; top: 90px; z-index: 200; background: var(--bg);
    display: flex; align-items: flex-start; justify-content: center; padding-top: 60px;
    opacity: 0; pointer-events: none; transition: opacity .2s var(--ease);
  }
  nav.primary-nav.open { opacity: 1; pointer-events: auto; }
  nav.primary-nav ul { flex-direction: column; text-align: center; gap: 26px; }
  nav.primary-nav a { font-size: 15px; }
  .nav-toggle { display: block; }
}

/* ---------- Portfolio hero (home) — a full-bleed photograph directly
   under the header, no text laid over it. The story starts with the
   image; the headline follows underneath in the same page-hero
   pattern every other page uses, so the photo feels like the front
   of a portfolio rather than a landing-page banner. */
.portfolio-hero-photo { height: 82vh; min-height: 460px; max-height: 780px; }
@media (max-width: 760px) { .portfolio-hero-photo { height: 56vh; min-height: 360px; } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 68px 0 58px; border-bottom: 1px solid var(--line); }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  margin: 0 0 16px;
  max-width: 18ch;
}
.page-hero p.lede { font-size: 16px; color: var(--ink-dim); max-width: 52ch; margin: 0; }

/* ---------- Section rhythm ---------- */
section { padding: 100px 0; }
section.tight { padding: 80px 0; }
section.alt { background: var(--bg-alt); }
h2.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  margin: 0 0 20px;
  max-width: 22ch;
  color: var(--ink);
}
p.body-copy { font-size: 15.5px; color: var(--ink-dim); max-width: 62ch; margin: 0 0 20px; }
.section-head { max-width: 640px; margin: 0 0 56px; }

/* ---------- Split (text + image) — stretches so the photo fills the
   same height the text block naturally sets, instead of sitting in a
   fixed-size box next to it. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.split .text-col { display: flex; flex-direction: column; justify-content: center; }
.split .photo-mark { min-height: 320px; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split .photo-mark { min-height: 240px; }
  .split.mobile-photo-first .text-col { order: 2; }
  .split.mobile-photo-first .photo-mark { order: 1; }
}

/* ---------- Row list — the one recurring content pattern ----------
   Used for: home "what we do" + "how we work", about principles,
   expertise disciplines + process, insights posts. Same markup, same
   motion, everywhere. A row can optionally carry a small thumbnail
   (.with-photo) — still the same component, just one more column. */
.row-list { border-top: 1px solid var(--line); }
.row-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
.row-item.with-photo { grid-template-columns: 100px 210px 1fr; align-items: center; }
.row-item .thumb { width: 210px; height: 150px; }
.row-item.with-photo:nth-child(odd) .thumb { transform: translateY(-10px); }
.row-item.with-photo:nth-child(even) .thumb { transform: translateY(10px); }
.row-item .idx {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 14px;
  padding-top: 4px;
}
.row-item h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 0 0 10px; color: var(--ink); }
.row-item p { color: var(--ink-dim); font-size: 14.5px; max-width: 60ch; margin: 0; }
.row-item .meta { font-size: 12.5px; color: var(--ink-dim); margin: 0 0 10px; }
.row-item .capabilities {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.row-item .capabilities li {
  font-size: 13px;
  color: var(--ink-dim);
  padding-left: 14px;
  position: relative;
}
.row-item .capabilities li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}
@media (max-width: 640px) {
  .row-item { grid-template-columns: 1fr; gap: 8px; }
  .row-item.with-photo { grid-template-columns: 1fr; }
  .row-item .thumb { width: 100%; height: 190px; margin-bottom: 6px; transform: none !important; }
}

/* ---------- Trio grid — three photo-led cards, one row -----------
   Used for "who we work with" style groupings: a photo, a heading,
   a short description. Same photo-mark/photo treatment as everywhere
   else, just arranged three across instead of stacked. */
.trio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; }
.trio-card:nth-child(2) { margin-top: 44px; }
.trio-card .photo-mark { height: 220px; margin-bottom: 24px; }
.trio-card:nth-child(1) .photo-mark { height: 240px; }
.trio-card:nth-child(3) .photo-mark { height: 200px; }
.trio-card h3 { font-family: var(--serif); font-weight: 600; font-size: 20px; margin: 0 0 10px; color: var(--ink); }
.trio-card p { color: var(--ink-dim); font-size: 14.5px; margin: 0; }
@media (max-width: 860px) {
  .trio-grid { grid-template-columns: 1fr; gap: 44px; }
  .trio-card:nth-child(2) { margin-top: 0; }
  .trio-card .photo-mark,
  .trio-card:nth-child(1) .photo-mark,
  .trio-card:nth-child(3) .photo-mark { height: 240px; }
}

/* ---------- Post list (Insights) — reuses .split per entry, just
   stacked with hairline dividers instead of side by side. */
.post-list { border-top: 1px solid var(--line); }
.post-block { padding: 56px 0; border-bottom: 1px solid var(--line); }
.post-block .photo-mark { height: 260px; }
.post-block h3 { font-size: 24px; }

/* ---------- Full-span photo (home) — one photograph, edge to edge
   like the portfolio hero, with a short description underneath. */
.section-photo-full { height: 60vh; min-height: 380px; max-height: 620px; }
@media (max-width: 760px) { .section-photo-full { height: 42vh; min-height: 300px; } }

a.row-item {
  position: relative;
  margin: 0 -24px;
  padding: 38px 24px;
  border-radius: 4px;
  transition: background .25s var(--ease), padding-left .25s var(--ease);
}
a.row-item > div { padding-right: 48px; }
a.row-item:hover { background: var(--bg-alt); padding-left: 32px; }
a.row-item:hover h3 { color: var(--accent); transition: color .2s var(--ease); }
a.row-item::after {
  content: "\2192";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translate(-8px, -50%);
  opacity: 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 20px;
  transition: all .25s var(--ease);
}
a.row-item:hover::after { opacity: 1; transform: translate(0, -50%); }

/* ---------- Contact ---------- */
form.contact-form { display: grid; gap: 20px; max-width: 560px; }
form.contact-form label { font-size: 12px; font-weight: 600; color: var(--ink-dim); display: block; margin-bottom: 8px; }
form.contact-form input,
form.contact-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 3px;
  padding: 13px 16px; color: var(--ink); font-family: var(--sans); font-size: 16px;
  transition: border-color .2s var(--ease);
}
form.contact-form input:focus,
form.contact-form textarea:focus { outline: none; border-color: var(--accent); }
form.contact-form textarea { min-height: 140px; resize: vertical; }

.contact-meta { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: 14px; }
.contact-meta a { color: var(--ink); border-bottom: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  justify-self: start;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.45); background: #000000; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band .eyebrow { justify-content: center; }
.cta-band h2 { max-width: none; }
.cta-band .body-copy { margin-left: auto; margin-right: auto; }
.cta-band .btn { justify-self: center; }

/* ---------- Footer ---------- */
footer.site-footer { padding: 48px 0; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: 13px; }
footer.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
footer.site-footer .foot-links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 600px) {
  footer.site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
  footer.site-footer .foot-links { flex-wrap: wrap; gap: 16px 22px; }
}

.epigraph { margin: 88px auto 8px; max-width: 30ch; text-align: center; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; color: var(--ink); }
.epigraph::before { content: ""; display: block; width: 26px; height: 2px; margin: 0 auto 26px; background: var(--accent); }
