/* ========================================
   BUREAU BREVE — main.css
   ======================================== */

/* Helvetica Neue stack — no custom font loading */

:root {
  --color-ink:    #0e0d0b;
  --color-cream:  #f4f1ec;
  --color-muted:  #8c8880;
  --color-border: #d9d5cd;

  --font-display: 'Helvetica Neue', Helvetica, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --ease-ui: cubic-bezier(0.25, 0.1, 0.25, 1);

  --pad-x: 64px;
  --section-pad: 128px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  font-weight: 400;
  background: var(--color-cream);
  color: var(--color-ink);
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

@media (pointer: fine) { * { cursor: none !important; } }

/* TYPE */
.display-xxl {
  font-weight: 700; letter-spacing: -0.035em; line-height: 0.88;
  font-size: clamp(64px, 13vw, 220px);
}
.display-xl {
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  font-size: clamp(56px, 10vw, 160px);
}
.display-lg {
  font-weight: 700; letter-spacing: -0.03em; line-height: 0.92;
  font-size: clamp(48px, 7.5vw, 120px);
}
.display-md {
  font-weight: 700; letter-spacing: -0.025em; line-height: 0.95;
  font-size: clamp(36px, 5.4vw, 80px);
}
.display-sm {
  font-weight: 700; letter-spacing: -0.02em; line-height: 0.98;
  font-size: clamp(28px, 3.6vw, 48px);
}
.eyebrow {
  font-weight: 400; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--color-muted);
}
.body-xl {
  font-weight: 300; font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.35; letter-spacing: -0.01em;
}
.body-lg {
  font-weight: 300; font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
}
.body { font-weight: 400; font-size: 16px; line-height: 1.65; }
.muted { color: var(--color-muted); }
.italic { font-style: italic; }

/* LAYOUT */
.container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.container--narrow {
  max-width: 1100px;
}
.section { padding: var(--section-pad) 0; }
.section--dark { background: var(--color-ink); color: var(--color-cream); }
.section--dark .muted { color: #6b6760; }
.section--tight { padding: 80px 0; }

.rule {
  display: block; height: 1px; background: var(--color-border);
  width: 100%; transform-origin: left center;
}
.section--dark .rule { background: #2a2825; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; padding: 22px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s var(--ease-ui), color 0.4s var(--ease-ui);
  color: var(--color-ink);
  mix-blend-mode: difference;
}
.nav, .nav * { color: #fff; }
.nav__logo { font-weight: 700; font-size: 18px; letter-spacing: -0.03em; }
.nav__links { display: flex; gap: 36px; align-items: center; }
.nav__link {
  font-size: 13px; letter-spacing: 0.05em;
  position: relative; padding-bottom: 4px;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-ui);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__burger {
  display: none; width: 28px; height: 14px; position: relative;
}
.nav__burger span {
  position: absolute; left: 0; right: 0; height: 1px;
  background: currentColor;
  transition: transform 0.4s var(--ease-ui);
}
.nav__burger span:nth-child(1) { top: 0; }
.nav__burger span:nth-child(2) { bottom: 0; }
.nav__burger.is-open span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { bottom: 7px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0;
  background: var(--color-ink); color: var(--color-cream);
  z-index: 90;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad-x);
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease-ui);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav__link {
  font-weight: 700; font-size: clamp(44px, 12vw, 96px);
  letter-spacing: -0.03em; line-height: 1.05;
  padding: 12px 0; display: block;
}

/* CURSOR */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 12px; height: 12px;
  border: 1px solid var(--color-ink);
  border-radius: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease-ui), height 0.25s var(--ease-ui),
              background 0.25s var(--ease-ui), border-color 0.25s var(--ease-ui);
}
.cursor.is-dark { border-color: var(--color-cream); }
.cursor.is-hover {
  width: 24px; height: 24px;
  background: var(--color-ink);
  border-color: var(--color-ink);
}
.cursor.is-dark.is-hover {
  background: var(--color-cream); border-color: var(--color-cream);
}
@media (pointer: coarse) { .cursor { display: none; } }

/* PAGE TRANSITION */
.page-transition {
  position: fixed; inset: 0;
  background: var(--color-ink);
  z-index: 9000;
  transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}

/* LOADER */
.loader {
  position: fixed; inset: 0;
  background: var(--color-ink); color: var(--color-cream);
  display: flex; align-items: center; justify-content: center;
  z-index: 9500;
  transition: opacity 0.5s var(--ease-ui);
}
.loader__logo {
  font-weight: 700; font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.03em;
}
.loader.is-hidden { opacity: 0; pointer-events: none; }

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  background: var(--color-ink); color: var(--color-cream);
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: 160px; padding-bottom: 56px;
  overflow: hidden;
}
.hero__top { width: 100%; }
.hero__eyebrow { color: #b8b3aa; margin-bottom: 40px; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; will-change: transform; }
.hero__bottom {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: end; padding-top: 96px;
}
.hero__body {
  font-weight: 300; font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.35; max-width: 520px; color: #c7c1b8;
  letter-spacing: -0.01em;
}
.hero__meta {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; letter-spacing: 0.05em;
  color: #8c8880; text-align: right;
}
.hero__meta strong { font-weight: 400; color: var(--color-cream); }

/* MARQUEE */
.marquee {
  overflow: hidden; white-space: nowrap;
  padding: 24px 0;
  border-top: 1px solid #2a2825;
  border-bottom: 1px solid #2a2825;
  background: var(--color-ink); color: var(--color-cream);
}
.marquee__track {
  display: inline-flex; gap: 64px;
  animation: marquee 40s linear infinite;
  font-weight: 400; font-size: 18px;
  letter-spacing: -0.01em;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee__track span::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: #6b6760;
  vertical-align: middle;
}

/* Square wordmark dot — aligned to baseline of the word */
.dot {
  display: inline-block;
  width: 0.16em;
  height: 0.16em;
  background: currentColor;
  vertical-align: baseline;
  margin-left: 0.06em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========================================
   IMAGE BLEED w/ overlay text
   ======================================== */
.bleed {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.bleed--full {
  height: 100vh;
  min-height: 640px;
}
.bleed--tall {
  aspect-ratio: 16 / 10;
}
.bleed--16x9 {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
}
.bleed__media,
.bleed__media img,
.bleed__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Slideshow — auto-fade between images inside a .bleed__media */
.bleed__media[data-slideshow] .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s var(--ease-ui);
  will-change: opacity;
}
.bleed__media[data-slideshow] .slide.is-active { opacity: 1; }
.bleed__media .placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #2a2825 0%, #1a1816 100%);
  color: #6b6760;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}
.bleed__overlay {
  position: absolute; inset: 0;
  pointer-events: none;
}
.bleed__overlay--bottom {
  background: linear-gradient(180deg, rgba(14,13,11,0) 30%, rgba(14,13,11,0.65) 100%);
}
.bleed__overlay--top {
  background: linear-gradient(180deg, rgba(14,13,11,0.55) 0%, rgba(14,13,11,0) 60%);
}
.bleed__overlay--both {
  background: linear-gradient(180deg,
    rgba(14,13,11,0.35) 0%,
    rgba(14,13,11,0) 35%,
    rgba(14,13,11,0) 60%,
    rgba(14,13,11,0.7) 100%);
}
.bleed__overlay--side {
  background: linear-gradient(90deg, rgba(14,13,11,0.65) 0%, rgba(14,13,11,0) 60%);
}
.bleed__text {
  position: relative;
  z-index: 2;
  color: var(--color-cream);
  padding: var(--pad-x);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 1480px;
  margin: 0 auto;
}
.bleed__text--top { justify-content: flex-start; padding-top: calc(var(--pad-x) + 60px); }
.bleed__text--center { justify-content: center; }
.bleed__caption {
  position: absolute; right: var(--pad-x); bottom: 32px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(244, 241, 236, 0.7);
  z-index: 2;
  max-width: 280px; text-align: right;
}

/* ========================================
   SECTIONS — copy
   ======================================== */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 120px;
  align-items: start;
}
.intro-grid__label { padding-top: 12px; }
.intro-grid__body {
  display: flex; flex-direction: column; gap: 28px;
}

.split-quote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  padding: 0 0 80px;
}
.split-quote__big {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.92;
  font-size: clamp(48px, 7vw, 110px);
}
.split-quote__small {
  font-weight: 300; font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55; max-width: 480px;
  color: #c7c1b8;
}

/* ========================================
   SERVICES LIST
   ======================================== */
.services-list { border-top: 1px solid var(--color-border); }
.service-row {
  display: grid;
  grid-template-columns: 60px 1.2fr 2fr 60px;
  gap: 32px; align-items: start;
  padding: 40px 24px;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.5s var(--ease-ui), color 0.5s var(--ease-ui);
  position: relative;
  cursor: none;
}
.service-row:hover {
  background: var(--color-ink); color: var(--color-cream);
}
.service-row:hover .service-row__num,
.service-row:hover .service-row__desc { color: #9e9a91; }
.service-row:hover .service-row__arrow { transform: translateX(12px); }
.service-row__num { font-size: 13px; letter-spacing: 0.18em; color: var(--color-muted); padding-top: 8px; }
.service-row__name {
  font-weight: 700; font-size: clamp(24px, 2.6vw, 38px);
  letter-spacing: -0.025em; line-height: 1;
}
.service-row__desc {
  font-weight: 300; color: var(--color-muted);
  font-size: 16px; line-height: 1.55;
}
.service-row__arrow {
  font-size: 22px; text-align: right;
  transition: transform 0.4s var(--ease-ui);
  padding-top: 6px;
}

/* ========================================
   PROCESS
   ======================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 80px;
}
.process-step {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  transition: border-top-color 0.4s var(--ease-ui);
}
.process-step::before {
  content: '';
  position: absolute;
  left: 0; top: -1px;
  height: 1px;
  width: 0;
  background: var(--color-ink);
  transition: width 0.6s var(--ease-ui);
}
.process-step:hover::before { width: 100%; }
.process-step:hover .process-step__title { transform: translateX(4px); }
.process-step__title { transition: transform 0.4s var(--ease-ui); }
.process-step__num { transition: color 0.4s var(--ease-ui); }
.process-step:hover .process-step__num { color: var(--color-ink); }
.process-step__num {
  font-size: 13px; letter-spacing: 0.18em; color: var(--color-muted);
}
.process-step__title {
  font-weight: 700; font-size: 22px; letter-spacing: -0.02em;
  line-height: 1.05;
}
.process-step__body {
  font-size: 15px; line-height: 1.55; color: var(--color-muted);
}

/* ========================================
   PRICING (single Gulf market)
   ======================================== */
.pricing {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
  margin-top: 64px;
}
.pricing__price {
  font-weight: 700; font-size: clamp(96px, 14vw, 200px);
  letter-spacing: -0.04em; line-height: 0.85;
}
.pricing__price small {
  display: block; font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 400;
  color: #8c8880; margin-bottom: 24px;
}
.pricing__list {
  display: flex; flex-direction: column;
  border-top: 1px solid #2a2825;
}
.pricing__list li {
  padding: 24px 0;
  border-bottom: 1px solid #2a2825;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  font-size: 16px;
  line-height: 1.45;
}
.pricing__list .label {
  font-weight: 400; color: var(--color-cream);
  letter-spacing: -0.01em;
}
.pricing__list .desc {
  font-weight: 300; color: #b8b3aa;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 18px 28px;
  border: 1px solid var(--color-ink);
  color: var(--color-ink);
  font-size: 13px; letter-spacing: 0.05em;
  background: transparent;
  transition: background 0.4s var(--ease-ui), color 0.4s var(--ease-ui);
  width: fit-content;
}
.btn:hover { background: var(--color-ink); color: var(--color-cream); }
.btn--inverted { border-color: var(--color-cream); color: var(--color-cream); }
.btn--inverted:hover { background: var(--color-cream); color: var(--color-ink); }

/* ========================================
   CALLOUT
   ======================================== */
.callout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  padding-top: 96px;
}
.callout__text {
  font-weight: 700;
  font-size: clamp(32px, 4vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.0;
  max-width: 900px;
}
.callout__text .muted-line { color: #6b6760; display: block; }

/* ========================================
   FOUNDERS
   ======================================== */
.founders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 80px;
}
.founder {
  border-top: 1px solid var(--color-border);
  padding-top: 32px;
}
.founder__name {
  font-weight: 700; font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.03em; margin-bottom: 16px;
  line-height: 1;
}
.founder__role {
  font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--color-muted);
  margin-bottom: 24px;
}
.founder__body {
  font-weight: 300; font-size: 17px; line-height: 1.55;
  color: var(--color-ink);
}
.section--dark .founder { border-top-color: #2a2825; }
.section--dark .founder__name { color: var(--color-cream); }
.section--dark .founder__role { color: #6b6760; }
.section--dark .founder__body { color: #dcd6cc; }

/* ========================================
   CONTACT
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 120px;
  align-items: start;
}
.contact-info {
  display: flex; flex-direction: column; gap: 40px;
}
.contact-info__block {
  display: flex; flex-direction: column; gap: 8px;
}
.contact-info__block strong {
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.contact-info__block a { border-bottom: 1px solid #2a2825; padding-bottom: 2px; }
.contact-info__block.is-light a { border-bottom-color: var(--color-border); }

.form { display: flex; flex-direction: column; gap: 32px; }
.form__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.form__field { display: flex; flex-direction: column; gap: 10px; }
.form__label {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--color-muted);
}
.form__input, .form__select, .form__textarea {
  background: transparent;
  border: none; border-bottom: 1px solid #2a2825;
  padding: 12px 0;
  font-size: 20px; font-weight: 400;
  color: var(--color-cream);
  outline: none; border-radius: 0;
  transition: border-color 0.3s var(--ease-ui);
  width: 100%;
  font-family: var(--font-display);
  -webkit-appearance: none; appearance: none;
}
.form__select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M0 0l5 6 5-6z' fill='%23f4f1ec'/></svg>");
  background-repeat: no-repeat; background-position: right 4px center;
  padding-right: 28px;
}
.form__select option { background: var(--color-ink); color: var(--color-cream); }
.form__textarea { resize: vertical; min-height: 140px; }
.form__input:focus, .form__select:focus, .form__textarea:focus { border-bottom-color: var(--color-cream); }
.form__submit { align-self: flex-start; margin-top: 16px; }

.form__checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  padding: 4px 0 8px;
}
.form__check {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: #c7c1b8;
  font-weight: 400;
  transition: color 0.3s var(--ease-ui);
}
.form__check:hover { color: var(--color-cream); }
.form__check input {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1px solid #6b6760;
  background: transparent;
  margin: 0;
  flex-shrink: 0;
  position: relative;
  transition: background 0.25s var(--ease-ui), border-color 0.25s var(--ease-ui);
}
.form__check input:checked {
  background: var(--color-cream);
  border-color: var(--color-cream);
}
.form__success {
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  letter-spacing: -0.025em; line-height: 1.05;
  max-width: 720px; margin: 80px 0;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  border-top: 1px solid #2a2825;
  padding: 56px 0 32px;
  background: var(--color-ink);
  color: var(--color-cream);
}
.footer__top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px; padding-bottom: 80px;
}
.footer__sig {
  font-weight: 700; font-size: clamp(40px, 6vw, 96px);
  letter-spacing: -0.035em; line-height: 0.95;
}
.footer__col {
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14px; color: #b8b3aa;
}
.footer__col strong { color: var(--color-cream); font-weight: 400; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 8px; }
.footer__bottom {
  font-size: 12px; color: #6b6760;
  padding-top: 24px;
  border-top: 1px solid #2a2825;
  display: flex; justify-content: space-between; gap: 24px;
}

/* ========================================
   ANIMATION DEFAULT STATES
   ======================================== */
.reveal-line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  will-change: transform, opacity;
  padding-bottom: 0.08em;
}
.reveal-line > span {
  display: inline;
}
.reveal-up {
  opacity: 0; transform: translateY(40px);
  will-change: transform, opacity;
}
.reveal-rule {
  transform: scaleX(0); transform-origin: left center;
  will-change: transform;
}
.reveal-image {
  opacity: 0; transform: scale(1.08);
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-line > span,
  .reveal-up,
  .reveal-rule,
  .reveal-image {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  :root { --pad-x: 40px; --section-pad: 120px; }
  .hero__bottom { grid-template-columns: 1fr; gap: 40px; }
  .hero__meta { text-align: left; }
  .intro-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .split-quote { grid-template-columns: 1fr; gap: 32px; }
  .pricing { grid-template-columns: 1fr; gap: 40px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .founders { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 720px) {
  :root { --pad-x: 24px; --section-pad: 80px; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .service-row { grid-template-columns: 32px 1fr; gap: 16px; padding: 24px 0; }
  .service-row__desc { grid-column: 1 / -1; padding-left: 48px; }
  .service-row__arrow { display: none; }
  .process-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form__checks { grid-template-columns: 1fr; gap: 10px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; padding-bottom: 48px; }
  .callout { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .bleed__caption { position: static; max-width: none; text-align: left; padding: 16px var(--pad-x) 0; }
}
