/* Platboard site v3. One stylesheet for every page. Phone layout below 600px. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-italic.woff2") format("woff2");
}

:root {
  --ink: #1a1a1a;
  --soft: #4a4a4a;
  --muted: #767676;
  --line: #e6e6e6;
  --art-bg: #f3efee;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
a { color: var(--ink); }
a:hover { color: #555555; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #ffffff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: 920px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Header */
header.site { padding-top: 32px; padding-bottom: 16px; }
/* The top bar stays in view. The white band reaches both edges of the window. */
header.site { position: sticky; top: 0; z-index: 5; background: #ffffff; box-shadow: 0 0 0 100vmax #ffffff; clip-path: inset(0 -100vmax -1px); }
header.site.scrolled { box-shadow: 0 0 0 100vmax #ffffff, 0 1px 0 100vmax var(--line); }
[id] { scroll-margin-top: 110px; }
.bar { display: flex; align-items: center; gap: 0 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; font-size: 22px; font-weight: 700; color: var(--ink); text-decoration: none; }
.logo:hover { color: var(--ink); }
.globe { width: 26px; height: 26px; flex-shrink: 0; display: block; }
.menu { display: flex; align-items: center; gap: 0 28px; }
.menu a { display: inline-block; padding: 12px 0; font-size: 14px; color: var(--ink); text-decoration: none; text-underline-offset: 4px; }
.menu a:hover, .menu a[aria-current="page"] { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  background: var(--ink); color: #ffffff; border: 1px solid var(--ink);
  font-size: 13px; text-decoration: none; white-space: nowrap;
  transition: background 0.15s;
}
.btn:hover { background: #333333; color: #ffffff; }
.actions .btn { min-width: 160px; }

/* Pages: each one fades in quickly when it is shown */
.page { display: none; }
.page.active { display: block; animation: pb-fade 0.15s ease; }
@keyframes pb-fade { from { opacity: 0; } to { opacity: 1; } }

main { padding-top: 40px; padding-bottom: 80px; }

/* Hero */
.hero { min-height: 240px; max-width: 640px; }
.hero h1 { margin: 0 0 12px; font-size: 34px; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.hero .sub { font-size: 16px; max-width: 560px; }
.hero .intro { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--soft); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
#page-privacy .hero { min-height: 0; }
.page.plain .hero { min-height: 0; }

/* Banner */
.banner { margin-top: 48px; width: 100%; aspect-ratio: 16 / 7; overflow: hidden; background: var(--art-bg); }
.banner img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }

/* Home cards */
.cards { display: flex; flex-wrap: wrap; gap: 40px 48px; margin-top: 64px; }
.card { flex: 1 1 300px; min-width: 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 20px; align-items: start; align-content: start; }
.card-label { grid-column: 2; grid-row: 1; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.thumb { grid-column: 1; grid-row: 2; margin-top: 5px; width: 96px; height: 96px; overflow: hidden; background: #ffffff; }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.thumb.muted img { opacity: 0.7; filter: saturate(0.75); }
.card-body { grid-column: 2; grid-row: 2; }
.card-body h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; line-height: 1.3; }
.card-body p { margin-bottom: 8px; }
.text-link { display: inline-block; padding: 10px 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Rows: title on the left, text on the right, a hairline between rows */
.rows { margin-top: 80px; border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0 40px; padding: 22px 0 8px; border-top: 1px solid var(--line); }
.row h2 { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.7; }
.essay { font-size: 15px; line-height: 1.7; color: #222222; margin-bottom: 14px; max-width: 560px; }
.num { display: inline-block; width: 30px; color: var(--muted); font-variant-numeric: tabular-nums; }
.soft { color: var(--soft); }
.more { display: none; }

/* Where we work */
.where { margin-top: 72px; }
.where h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; line-height: 1.3; }
.tiles { display: flex; flex-wrap: wrap; gap: 32px 24px; margin-top: 24px; }
.tile { flex: 1 1 180px; min-width: 0; }
.tile-art { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: var(--art-bg); }
.tile-art img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.tile h3 { margin: 12px 0 4px; font-size: 14px; font-weight: 600; }

/* Partners */
.partners { margin-top: 40px; }
.partners-title { margin-bottom: 16px; font-weight: 700; }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 22px; }
.logo-item { display: inline-flex; align-items: center; gap: 10px; color: #666666; transition: color 0.2s ease; }
.logo-item:hover { color: var(--ink); }
.logo-item svg { width: 24px; height: 24px; flex-shrink: 0; }
.logo-item span { font-size: 16px; font-weight: 500; white-space: nowrap; }

/* Join us roles: open smoothly, the plus turns into a cross */
.role + .role { border-top: 1px solid #dddddd; }
.role > button {
  width: 100%; min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 0; background: none; border: 0; font-family: inherit; font-size: 14px; color: var(--ink);
  text-align: left; cursor: pointer;
}
.plus { font-size: 20px; color: #666666; width: 24px; text-align: center; transition: transform 0.2s; }
.role.open .plus { transform: rotate(45deg); }
.role-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.2s ease; }
.role.open .role-panel { grid-template-rows: 1fr; }
.role-panel > div { overflow: hidden; }
.role-panel p { padding: 0 0 14px; color: var(--soft); }

/* Talk to us form */
.form-intro { margin-bottom: 24px; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border: 1px solid #cccccc; border-radius: 0; background: #ffffff; color: var(--ink);
  font-family: inherit; font-size: 13px; cursor: pointer; transition: background 0.15s, color 0.15s;
}
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #ffffff; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 4px; }
.req { color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 8px 0; border: 0; border-bottom: 1px solid #bbbbbb; border-radius: 0; background: transparent;
  font-family: inherit; font-size: 14px; color: var(--ink); outline: none;
}
.field input { height: 40px; }
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.send {
  min-height: 44px; padding: 0 28px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: #ffffff;
  font-family: inherit; font-size: 13px; cursor: pointer; transition: background 0.15s;
}
.send:hover { background: #333333; }
.send:disabled { opacity: 0.6; cursor: default; }
.consent { margin-top: 12px; font-size: 12px; color: var(--muted); }
.consent a { color: var(--muted); }
.form-error { margin-top: 12px; }
.form-success { margin-bottom: 14px; }
.hidden-field { position: absolute; left: -9999px; }

.updated { margin-top: 24px; font-size: 12px; color: var(--muted); }

/* Footer */
footer.site { padding-top: 24px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: #555555; }

/* Narrow screens: menu on its own line under the logo */
@media (max-width: 780px) {
  .bar { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo btn" "menu menu"; }
  .logo { grid-area: logo; }
  .nav-btn { grid-area: btn; }
  .menu { grid-area: menu; justify-content: flex-start; gap: 0 28px; margin-top: 4px; }
}

/* Phone */
@media (max-width: 600px) {
  .wrap { max-width: none; padding-left: 16px; padding-right: 16px; }
  header.site { padding-top: 20px; padding-bottom: 4px; }
  .globe { width: 22px; height: 22px; }
  .menu { flex-wrap: wrap; gap: 0 18px; }
  .menu a { font-size: 13px; }
  main { padding-top: 24px; padding-bottom: 48px; }
  .hero { min-height: 0; }
  .hero h1 { font-size: 26px; }
  .banner { margin-top: 32px; }
  .cards { margin-top: 48px; }
  .card { grid-template-columns: 72px minmax(0, 1fr); }
  .thumb { width: 72px; height: 72px; }
  .rows { margin-top: 56px; }
  .row { display: block; padding: 18px 0 6px; }
  .row h2 { margin: 0 0 6px; line-height: 1.5; }
  .fold { overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.4s, opacity 0.4s; }
  .fold.open { max-height: 1600px; opacity: 1; }
  .more {
    display: inline-block; margin-top: 16px; padding: 0; background: none; border: 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.3); font-family: inherit; font-size: 13px; color: var(--ink);
    opacity: 0.5; cursor: pointer;
  }
  .where { margin-top: 48px; }
  .partners { margin-top: 32px; }
  .logos { justify-content: flex-start; }
  .logo-item { gap: 8px; }
  .logo-item svg { width: 20px; height: 20px; }
  .logo-item span { font-size: 14px; }
  footer.site { flex-direction: column; align-items: center; padding-top: 20px; padding-bottom: 28px; }
  .footer-links { gap: 14px; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 374px) {
  .menu { gap: 0 14px; }
  .menu a { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .page.active { animation: none; }
  .fold, .role-panel, .plus, .chip, .btn, .send { transition: none; }
}
