/* ================================================
   Barrax — design tokens
   ================================================ */
:root {
  --brx-ink:        #16140f;
  --brx-ink-soft:   #211e17;
  --brx-ink-line:   #322e24;
  --brx-cream:      #f5f0e6;
  --brx-cream-alt:  #ece4d3;
  --brx-white:      #ffffff;
  --brx-gold:       #a9863d;
  --brx-gold-dark:  #8c6f30;
  --brx-gold-soft:  #cdb073;
  --brx-text:       #1a1812;
  --brx-text-muted: #62594a;
  --brx-text-dim:   #948c78;
  --brx-border:     #e2d9c4;
  --brx-radius:     10px;
  --brx-max:        1120px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
.brx-svg-icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--brx-white);
  color: var(--brx-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }

.brx-skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--brx-gold);
  color: #fff;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 6px 6px;
  z-index: 9999;
  transition: top 0.15s;
}
.brx-skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--brx-gold);
  outline-offset: 3px;
  border-radius: 3px;
}

h1, h2, h3, h4 {
  font-family: 'Cal Sans', 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.3px;
  color: var(--brx-text);
}
h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--brx-gold-dark);
}

.brx-wrap { max-width: var(--brx-max); margin: 0 auto; padding: 0 36px; }

/* ===== Nav ===== */
.brx-nav {
  background: var(--brx-ink);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brx-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--brx-max);
  margin: 0 auto;
  padding: 20px 36px;
}
.brx-logo { text-decoration: none; }
.brx-logo-img {
  height: 22px;
  width: auto;
  display: block;
}
.brx-logo-tag {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--brx-gold-soft);
  text-transform: uppercase;
  margin-top: 2px;
  display: block;
}
.brx-nav-links { display: flex; gap: 30px; align-items: center; }
.brx-nav-links a {
  font-size: 13.5px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 0.15s;
}
.brx-nav-links a:hover { color: #fff; }
.brx-nav-cta {
  border: 1px solid var(--brx-gold);
  color: var(--brx-gold-soft) !important;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.brx-nav-cta:hover { background: var(--brx-gold); color: #fff !important; }
.brx-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

/* ===== Hero ===== */
.brx-hero {
  background: var(--brx-cream);
  padding: 80px 0 0;
  overflow: visible;
}
.brx-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  max-width: var(--brx-max);
  margin: 0 auto;
  padding: 0 36px;
}
.brx-hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--brx-gold-dark);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.brx-hero-h1 {
  font-size: 52px;
  line-height: 1.1;
  margin-bottom: 22px;
  max-width: 560px;
}
.brx-hero-sub {
  font-size: 16.5px;
  color: var(--brx-text-muted);
  max-width: 500px;
  margin-bottom: 14px;
  font-weight: 400;
}
.brx-hero-sub + .brx-hero-sub { margin-bottom: 30px; }
.brx-hero-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.brx-btn-primary {
  display: inline-block;
  background: var(--brx-gold);
  color: #fff;
  padding: 14px 26px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.brx-btn-primary:hover { background: var(--brx-gold-dark); }
.brx-btn-secondary {
  color: var(--brx-text);
  padding: 14px 0;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--brx-text);
  transition: color 0.15s, border-color 0.15s;
}
.brx-btn-secondary:hover { color: var(--brx-gold-dark); border-color: var(--brx-gold-dark); }

.brx-hero-media { position: relative; }
.brx-hero-photo {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 14px 6px 14px 6px;
  overflow: hidden;
  background: var(--brx-cream-alt);
}
.brx-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.brx-hero-stats {
  position: absolute;
  right: -18px;
  bottom: -40px;
  background: var(--brx-ink);
  border-radius: var(--brx-radius);
  padding: 4px;
  width: 250px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.brx-hero-stat {
  padding: 18px 20px;
  border-bottom: 1px solid var(--brx-ink-line);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.brx-hero-stat:last-child { border-bottom: none; }
.brx-hero-stat-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--brx-ink-line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brx-gold-soft);
  font-size: 16px;
}
.brx-hero-stat-title { font-size: 13.5px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.brx-hero-stat-body { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.5; }

@media (max-width: 900px) {
  .brx-hero-grid { grid-template-columns: 1fr; }
  .brx-hero-media { order: -1; }
  .brx-hero-stats { position: static; width: 100%; margin-top: 24px; }
}

/* ===== Section shared ===== */
.brx-section { padding: 96px 0; }
.brx-section-cream { background: var(--brx-cream); }
.brx-section-ink { background: var(--brx-ink); color: #fff; }
.brx-section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.brx-section-head.brx-left { margin-left: 0; text-align: left; }
.brx-tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--brx-gold-dark);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.brx-section-ink .brx-tag { color: var(--brx-gold-soft); }
.brx-section-h2 { font-size: 40px; margin-bottom: 14px; }
.brx-section-ink .brx-section-h2 { color: #fff; }
.brx-section-lead { font-size: 16px; color: var(--brx-text-muted); font-weight: 400; }
.brx-section-ink .brx-section-lead { color: rgba(255,255,255,0.62); }

/* ===== Journey (5-step) ===== */
.brx-journey-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-bottom: 8px;
  position: relative;
}
.brx-journey-step { text-align: center; padding: 0 10px; position: relative; display: flex; flex-direction: column; }
.brx-journey-arrow {
  position: absolute;
  top: 34px;
  right: -32px;
  transform: translateY(-50%);
  font-size: 45px;
  color: var(--brx-gold-soft);
}
.brx-journey-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1.5px solid var(--brx-border);
  background: var(--brx-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cal Sans', 'DM Sans', sans-serif;
  font-size: 22px;
  color: var(--brx-text);
  margin: 0 auto 16px;
}
.brx-journey-title { font-size: 18px; margin-bottom: 8px; }
.brx-journey-desc { font-size: 13px; color: var(--brx-text-muted); line-height: 1.55; max-width: 190px; margin: 0 auto; min-height: 41px; }

.brx-journey-outcomes {
  margin-top: 14px;
  text-align: left;
  max-width: 190px;
  margin-left: auto;
  margin-right: auto;
}
.brx-journey-outcomes-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brx-text-dim);
  text-transform: uppercase;
  text-align: center;
}
.brx-journey-outcomes ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.brx-journey-outcomes li {
  font-size: 12px;
  color: var(--brx-text-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.4;
}
.brx-journey-outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brx-gold);
}

.brx-journey-strapline {
  text-align: center;
  font-size: 16px;
  color: var(--brx-text-muted);
  max-width: 560px;
  margin: 40px auto 0;
}

@media (max-width: 900px) {
  .brx-journey-track { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .brx-journey-arrow { display: none; }
}
@media (max-width: 560px) {
  .brx-journey-track { grid-template-columns: 1fr; gap: 0; }
  .brx-journey-step { padding: 0 0 32px; position: relative; }
  .brx-journey-step:last-child { padding-bottom: 0; }
  .brx-journey-arrow {
    display: block;
    position: static;
    transform: rotate(90deg);
    font-size: 20px;
    margin-top: 14px;
  }
}

/* ===== Case studies ===== */
.brx-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.brx-case-card {
  border: 1px solid var(--brx-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--brx-white);
  display: flex;
  flex-direction: column;
}
.brx-case-card:nth-child(2) { border-radius: 6px; }
.brx-case-media {
  aspect-ratio: 16/10;
  background: var(--brx-cream-alt);
  overflow: hidden;
}
.brx-case-media img { width: 100%; height: 100%; object-fit: cover; }
.brx-case-body { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.brx-case-tag { font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; color: var(--brx-gold-dark); text-transform: uppercase; margin-bottom: 10px; }
.brx-case-title { font-size: 23px; margin-bottom: 10px; }
.brx-case-desc { font-size: 13.5px; color: var(--brx-text-muted); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.brx-case-points { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.brx-case-points li {
  font-size: 12.5px;
  color: var(--brx-text);
  padding-left: 20px;
  position: relative;
}
.brx-case-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--brx-gold-dark);
  font-weight: 700;
  font-size: 11px;
}

.brx-case-story { flex: 1; }
.brx-case-story dt {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--brx-gold-dark);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.brx-case-story dt:not(:first-child) { margin-top: 14px; }
.brx-case-story dd {
  font-size: 13.5px;
  color: var(--brx-text-muted);
  line-height: 1.55;
}

/* Independent projects — Camperstrike feature stat */
.brx-indie-feature {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 28px 30px;
  border: 1px solid var(--brx-border);
  border-radius: 12px;
  background: var(--brx-cream);
  margin-bottom: 28px;
}
.brx-indie-stat {
  font-family: 'Cal Sans', 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 44px;
  letter-spacing: -1px;
  color: var(--brx-gold-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.brx-indie-stat-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--brx-text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.brx-indie-feature-body h4 { font-size: 16px; margin-bottom: 6px; }
.brx-indie-feature-body p { font-size: 13px; color: var(--brx-text-muted); line-height: 1.55; }

/* Missing-image placeholder */
.brx-ph-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brx-cream-alt);
  position: relative;
}
.brx-ph-empty::before {
  content: "";
  width: 34px;
  height: 34px;
  border: 2px solid var(--brx-text-dim);
  border-radius: 6px;
  opacity: 0.3;
}

.brx-indie-strip {
  border-top: 1px solid var(--brx-border);
  padding-top: 44px;
}
.brx-indie-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--brx-text-dim);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.brx-indie-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.brx-indie-item h4 { font-size: 15.5px; margin-bottom: 6px; }
.brx-indie-item p { font-size: 13px; color: var(--brx-text-muted); line-height: 1.55; }

@media (max-width: 900px) {
  .brx-cases-grid { grid-template-columns: 1fr; }
  .brx-indie-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== Logo wall ===== */
.brx-logos-wrap {
  border-top: 1px solid var(--brx-border);
  border-bottom: 1px solid var(--brx-border);
  padding: 44px 36px;
}
.brx-logos-inner {
  max-width: var(--brx-max);
  margin: 0 auto;
  text-align: center;
}
.brx-logos-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--brx-text-dim);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.brx-logos-img {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: grayscale(1);
  mix-blend-mode: multiply;
  opacity: 0.65;
}
@media (max-width: 560px) {
  .brx-logos-wrap { padding: 32px 20px; }
}

/* ===== Who I work with ===== */
.brx-who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.brx-who-card {
  border: 1px solid var(--brx-border);
  border-radius: 6px;
  padding: 26px 22px;
  background: var(--brx-white);
}
.brx-who-icon { color: var(--brx-gold-dark); font-size: 22px; margin-bottom: 16px; }
.brx-who-title { font-size: 16px; margin-bottom: 8px; }
.brx-who-body { font-size: 13px; color: var(--brx-text-muted); line-height: 1.55; }

@media (max-width: 900px) {
  .brx-who-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .brx-who-grid { grid-template-columns: 1fr; }
}

/* ===== Philosophy (dark) ===== */
.brx-phil-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.brx-phil-lead {
  font-family: 'Cal Sans', 'DM Sans', sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: #fff;
  margin-bottom: 20px;
}
.brx-phil-body { font-size: 15px; color: rgba(255,255,255,0.62); line-height: 1.7; margin-bottom: 16px; }
.brx-phil-body strong { color: #fff; font-weight: 600; }

.brx-phil-block { border-top: 1px solid var(--brx-ink-line); padding-top: 24px; margin-top: 24px; }
.brx-phil-block:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.brx-phil-block-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.brx-phil-block-body { font-size: 13.5px; color: rgba(255,255,255,0.58); line-height: 1.65; }

@media (max-width: 900px) {
  .brx-phil-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ===== About ===== */
.brx-about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.brx-about-photo {
  aspect-ratio: 4/5;
  border-radius: 6px 14px 6px 14px;
  overflow: hidden;
  background: var(--brx-cream-alt);
}
.brx-about-photo img { width: 100%; height: 100%; object-fit: cover; }
.brx-about-h2 { font-size: 36px; margin-bottom: 18px; }
.brx-about-body { font-size: 15px; color: var(--brx-text-muted); line-height: 1.7; margin-bottom: 14px; }
.brx-about-strap { font-size: 16px; color: var(--brx-text); font-weight: 600; margin-top: 18px; }

@media (max-width: 900px) {
  .brx-about-grid { grid-template-columns: 1fr; }
}

/* ===== Final CTA ===== */
.brx-cta-section { background: var(--brx-ink); padding: 84px 0; }
.brx-cta-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.brx-cta-h2 { font-size: 38px; color: #fff; margin-bottom: 12px; max-width: 420px; }
.brx-cta-sub { font-size: 15px; color: rgba(255,255,255,0.6); max-width: 440px; line-height: 1.6; }
.brx-cta-actions { flex-shrink: 0; }

/* ===== Contact modal ===== */
.brx-contact-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,9,6,0.6);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.brx-modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.brx-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
  font-size: 22px;
  padding: 6px;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.15s;
}
.brx-modal-close:hover { color: #111; }
.brx-modal h2 { font-size: 24px; margin-bottom: 8px; }
.brx-modal > p { font-size: 14px; color: var(--brx-text-muted); line-height: 1.6; margin-bottom: 26px; }
.brx-form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.brx-form-group label { font-size: 12px; font-weight: 600; color: #333; }
.brx-form-group input,
.brx-form-group textarea {
  border: 1.5px solid #e0dccf;
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #111;
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
}
.brx-form-group input:focus,
.brx-form-group textarea:focus { border-color: var(--brx-gold); }
.brx-btn-submit {
  width: 100%;
  background: var(--brx-gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}
.brx-btn-submit:hover { background: var(--brx-gold-dark); }
.brx-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.brx-form-error {
  font-size: 13px;
  color: #b3261e;
  margin-top: 12px;
}
.brx-form-success { text-align: center; padding: 20px 0; }
.brx-form-success h3 { font-size: 20px; margin-bottom: 8px; }
.brx-form-success p { font-size: 14px; color: var(--brx-text-muted); line-height: 1.6; }

/* ===== Footer ===== */
.brx-footer {
  background: var(--brx-ink);
  border-top: 1px solid var(--brx-ink-line);
  padding: 32px 0;
}
.brx-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.brx-footer-brand { font-size: 13px; color: rgba(255,255,255,0.4); }
.brx-footer-links { display: flex; gap: 24px; align-items: center; }
.brx-footer-links a { font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.15s; }
.brx-footer-links a:hover { color: #fff; }

/* ===== Tap targets & a11y ===== */
a, button { min-height: auto; }

/* ===== Responsive: tablet/mobile ===== */
@media (max-width: 900px) {
  .brx-nav-inner { padding: 16px 20px; }
  .brx-nav-toggle { display: block; }
  .brx-nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--brx-ink);
    padding: 16px 20px 24px;
    gap: 4px;
    z-index: 99;
  }
  .brx-nav-links.open { display: flex; }
  .brx-nav-links a { padding: 12px 0; min-height: 44px; display: flex; align-items: center; width: 100%; }
  .brx-nav-cta { margin-top: 8px; text-align: center; }

  .brx-wrap { padding: 0 20px; }
  .brx-hero-grid { padding: 0 20px; }
  .brx-hero { padding: 52px 0 0; }
  .brx-hero-h1 { font-size: 34px; }
  .brx-section { padding: 64px 0; }
  .brx-section-h2 { font-size: 26px; }

  .brx-cases-grid { grid-template-columns: 1fr; }
  .brx-indie-feature { flex-direction: column; align-items: flex-start; text-align: left; }
  .brx-indie-grid { grid-template-columns: 1fr; }
  .brx-who-grid { grid-template-columns: 1fr 1fr; }
  .brx-cta-grid { flex-direction: column; align-items: flex-start; }
  .brx-cta-h2 { font-size: 26px; }
}
@media (max-width: 560px) {
  .brx-hero-h1 { font-size: 28px; }
  .brx-who-grid { grid-template-columns: 1fr; }
  .brx-footer-inner { flex-direction: column; align-items: flex-start; }
}
