@font-face {
  font-family: "GYB Tenor";
  src: url("/assets/fonts/st/TenorSans-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "GYB Avenir";
  src: url("/assets/fonts/stan-consulting/AvenirNextLTPro-Regular.otf") format("opentype");
  font-weight: 400 800;
}

:root {
  --paper: #f4efe6;
  --paper-2: #fffaf2;
  --ink: #17130f;
  --muted: #665d52;
  --rule: #cfc2b1;
  --deep: #10233d;
  --wine: #48191a;
  --signal: #c8ad6f;
  --steel: #6f7d86;
  --field: #ebe1d2;
  --ui: "GYB Avenir", "Helvetica Neue", Arial, sans-serif;
  --display: "GYB Tenor", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body.brand-work-page {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--deep) 0, var(--deep) 5.8rem, var(--signal) 5.8rem, var(--signal) 6.65rem, transparent 6.65rem),
    radial-gradient(circle at 86% 8%, rgba(72, 25, 26, 0.16), transparent 26rem),
    linear-gradient(180deg, #f9f4eb 0, var(--paper) 34rem, #f0e8dc 100%);
  font-family: var(--ui);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.bw-shell {
  width: min(100% - 2rem, 1220px);
  margin: 0 auto;
  padding: 22px 0 76px;
}

.bw-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0 16px 7.8rem;
  border-bottom: 1px solid rgba(23, 19, 15, 0.16);
}

.bw-brand {
  display: grid;
  gap: 3px;
  text-decoration: none;
}

.bw-brand strong {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1;
}

.bw-brand span,
.bw-nav {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bw-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.bw-nav a {
  text-decoration: none;
}

.bw-nav a:hover,
.bw-nav a:focus-visible {
  color: var(--deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.bw-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.74fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(44px, 7vw, 88px) 0 clamp(38px, 5vw, 68px) 7.8rem;
}

.bw-kicker,
.bw-card-label,
.bw-form label span,
.bw-section-kicker {
  color: var(--wine);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bw-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 9px 6px;
  color: #fffaf2;
  background: var(--deep);
  border-bottom: 4px solid var(--signal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.bw-proof-number {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(30px, 2.9vw, 42px);
  line-height: 1.05;
}

.bw-deck {
  max-width: 620px;
  margin-bottom: 22px;
  color: #2f2922;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.46;
}

.bw-actions,
.bw-mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.bw-button,
.bw-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 12px 15px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.bw-button {
  color: #fffaf2;
  background: var(--wine);
}

.bw-text-link {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.42);
}

.bw-button:hover,
.bw-text-link:hover,
.bw-button:focus-visible,
.bw-text-link:focus-visible {
  transform: translateY(-1px);
}

.bw-button:hover,
.bw-button:focus-visible {
  background: var(--deep);
}

.bw-hero-visual {
  position: relative;
  margin: 0;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 10px 10px 0 rgba(16, 35, 61, 0.12);
}

.bw-hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1.16;
  object-fit: cover;
}

.bw-visual-note {
  display: grid;
  grid-template-columns: 0.6rem minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.bw-visual-note::before {
  content: "";
  display: block;
  background: linear-gradient(180deg, var(--deep), var(--signal), var(--wine));
}

.bw-proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-left: 7.8rem;
}

.bw-proof {
  border: 1px solid rgba(23, 19, 15, 0.18);
  background: rgba(255, 250, 242, 0.74);
  padding: 14px;
}

.bw-proof-number {
  display: block;
  color: var(--deep);
  font-size: 30px;
  line-height: 1;
}

.bw-proof p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.bw-section {
  display: grid;
  grid-template-columns: minmax(130px, 0.22fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(44px, 6vw, 76px) 0 clamp(38px, 5vw, 62px) 7.8rem;
  border-top: 1px solid rgba(23, 19, 15, 0.15);
}

.bw-section-kicker {
  display: grid;
  gap: 8px;
  align-content: start;
}

.bw-section-kicker::before {
  content: "";
  width: 48px;
  height: 8px;
  background: linear-gradient(90deg, var(--deep), var(--signal), var(--wine));
}

.bw-section h2 {
  max-width: 680px;
  margin-bottom: 12px;
  font-size: clamp(26px, 2.55vw, 36px);
  line-height: 1.08;
}

.bw-section-intro {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.bw-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.bw-card {
  display: block;
  min-height: 170px;
  border: 1px solid rgba(23, 19, 15, 0.16);
  border-top: 6px solid var(--deep);
  background: rgba(255, 250, 242, 0.66);
  color: inherit;
  padding: 16px;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.bw-card:nth-child(3n + 2) {
  border-top-color: var(--signal);
}

.bw-card:nth-child(3n) {
  border-top-color: var(--wine);
}

.bw-card:hover,
.bw-card:focus-visible {
  background: rgba(255, 250, 242, 0.92);
  border-color: rgba(23, 19, 15, 0.3);
  transform: translateY(-2px);
}

.bw-card h3 {
  margin: 8px 0 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.06;
}

.bw-card p:last-child,
.bw-list li,
.bw-form small,
.bw-received-copy {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.bw-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 16px;
  margin-top: 22px;
}

.bw-panel {
  border: 1px solid rgba(23, 19, 15, 0.16);
  background: rgba(255, 255, 255, 0.5);
  padding: 18px;
}

.bw-panel h3 {
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
}

.bw-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.bw-form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.5fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.bw-form {
  display: grid;
  gap: 13px;
  border: 1px solid rgba(23, 19, 15, 0.2);
  background: rgba(255, 250, 242, 0.76);
  padding: clamp(18px, 3vw, 28px);
}

.bw-form label {
  display: grid;
  gap: 7px;
}

.bw-form input,
.bw-form select,
.bw-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 19, 15, 0.24);
  border-radius: 0;
  background: #fffdf8;
  color: var(--ink);
  font: 500 16px/1.35 var(--ui);
  padding: 12px;
}

.bw-form textarea {
  resize: vertical;
}

.bw-form input:focus,
.bw-form select:focus,
.bw-form textarea:focus {
  outline: 3px solid rgba(200, 173, 111, 0.48);
  border-color: var(--deep);
}

.bw-form button {
  width: fit-content;
  cursor: pointer;
}

.bw-side-note {
  border-left: 8px solid var(--deep);
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.74), rgba(235, 225, 210, 0.72));
  padding: 18px;
}

.bw-side-note h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.bw-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 22px;
  align-items: start;
  margin-left: 7.8rem;
  padding-top: 20px;
  border-top: 1px solid rgba(23, 19, 15, 0.16);
}

.bw-footer p {
  max-width: 640px;
  color: var(--muted);
  font-size: 13px;
}

.bw-owner {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  justify-self: end;
  max-width: 370px;
  border: 1px solid rgba(23, 19, 15, 0.16);
  background: rgba(255, 250, 242, 0.62);
  padding: 8px 10px;
}

.bw-owner img {
  display: block;
  width: 92px;
  height: auto;
}

.bw-owner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bw-owner p {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
}

.bw-owner span {
  display: block;
  color: var(--muted);
}

@media (max-width: 900px) {
  body.brand-work-page {
    background:
      linear-gradient(90deg, var(--deep) 0, var(--deep) 0.48rem, var(--signal) 0.48rem, var(--signal) 0.66rem, transparent 0.66rem),
      linear-gradient(180deg, rgba(16, 35, 61, 0.12), transparent 12rem),
      var(--paper);
  }

  .bw-topbar,
  .bw-hero,
  .bw-proof-row,
  .bw-section,
  .bw-footer {
    padding-left: 0;
    margin-left: 0;
  }

  .bw-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .bw-hero,
  .bw-section,
  .bw-form-wrap,
  .bw-footer,
  .bw-split {
    grid-template-columns: 1fr;
  }

  .bw-proof-row,
  .bw-card-grid {
    grid-template-columns: 1fr;
  }

  .bw-hero-visual {
    max-width: 520px;
  }

  .bw-owner {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .bw-shell {
    width: min(100% - 1.4rem, 1220px);
    padding-top: 16px;
  }

  h1 {
    font-size: 29px;
  }

  .bw-deck {
    font-size: 17px;
  }

  .bw-actions,
  .bw-mini-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .bw-button,
  .bw-text-link,
  .bw-form button {
    width: 100%;
  }

  .bw-card h3 {
    font-size: 22px;
  }

  .bw-owner {
    grid-template-columns: 76px minmax(0, 1fr);
    width: 100%;
    max-width: none;
  }

  .bw-owner img {
    width: 76px;
  }

  .bw-owner strong {
    white-space: normal;
  }
}
