:root {
  --bg: #000000;
  --fg: #ffffff;
  --mute: #a3a3a3;
  --line: #262626;
  --line2: #3d3d3d;
  --ph: #141414;
  --card-bg: #ffffff;
  --card-fg: #000000;
  --card-mute: #5e5e5e;
  --card-line: #e5e5e5;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 6px; font-size: 13px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  max-width: 920px; margin: 0 auto; padding: 0 var(--gutter); min-height: 56px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 20px;
  font-size: 12.5px;
}
.logo { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.site-nav a { color: var(--mute); padding: 10px 0; transition: color .15s ease; }
.site-nav a:hover { color: var(--fg); }
.header-cta { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.btn-outline {
  color: var(--fg); font-weight: 500; border: 1px solid var(--line2); border-radius: 6px; padding: 6px 12px;
  transition: border-color .15s ease;
}
.btn-outline:hover { border-color: var(--mute); }

/* Hero */
.hero { display: flex; justify-content: center; padding: 96px var(--gutter) 0; }
.hero-inner { width: 100%; max-width: 510px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.news {
  margin-bottom: 28px; display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px;
  font-size: 12.5px; line-height: 1.4; color: var(--mute); max-width: 100%;
  transition: border-color .15s ease;
}
.news:hover { border-color: var(--line2); }
.news-grad {
  background-image: linear-gradient(90deg, #ffffff 0%, #7a7a7a 25%, #ffffff 50%, #7a7a7a 75%, #ffffff 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: nwgrad 3.5s linear infinite; font-weight: 500;
  white-space: nowrap;
}
.news svg { display: inline-block; vertical-align: 0; margin-left: 6px; color: var(--fg); animation: nwchev 3.5s ease-in-out infinite; }
@keyframes nwgrad { 0% { background-position: 0% 0; } 100% { background-position: -200% 0; } }
@keyframes nwchev { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.hero h1 { font-family: var(--serif); font-size: clamp(42px, 9vw, 56px); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; }
.hero-text { text-wrap: pretty; margin-top: 24px; max-width: 480px; font-size: 16px; line-height: 1.6; color: var(--mute); }
.stats { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; font-size: 13px; color: var(--mute); }
.stats strong { color: var(--fg); font-weight: 500; font-variant-numeric: tabular-nums; }
/* Longer PT labels: let the hero stats run a little wider than the text column before wrapping */
.hero .stats { width: max-content; max-width: min(640px, calc(100vw - 2 * var(--gutter))); }

/* Sections */
.wrap { max-width: 1000px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.divisions { padding-top: 120px; padding-bottom: 120px; }
.label { font-size: 16px; font-weight: 500; line-height: 1.6; margin-bottom: 20px; }
.divisions .label { padding-left: 29px; }
.div-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 14px; }
.div-card {
  display: flex; flex-direction: column; gap: 16px; background: var(--card-bg); color: var(--card-fg);
  border: 1px solid var(--card-line); border-radius: 12px; padding: 28px;
}
.div-card--wide { margin-top: 14px; padding: 44px 28px; align-items: center; text-align: center; gap: 14px; }
.div-title { display: flex; align-items: center; gap: 12px; }
.div-title span.name { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1; }
.mark {
  flex: none; width: 36px; height: 36px; border-radius: 2.8px; background: var(--card-fg); color: var(--card-bg);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; line-height: 1;
}
.div-card p { font-size: 15px; line-height: 1.6; color: var(--card-mute); }
.div-card--wide p { max-width: 560px; }
.div-card p .lead { display: block; margin-bottom: 6px; font-size: 15.5px; font-weight: 500; color: var(--card-fg); }
.more { font-size: 13px; font-weight: 500; white-space: nowrap; }
.more svg { display: inline-block; vertical-align: 0; margin-left: 6px; transition: transform .15s ease; }
.more:hover svg { transform: translateX(2px); }
.div-card .more { color: var(--card-fg); }
.div-card .more-row { margin-top: 6px; }

.verticals { padding-bottom: 120px; }
.statement { margin-bottom: 120px; text-align: center; font-family: var(--serif); font-size: clamp(34px, 6vw, 44px); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; }
.vert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px 28px; }
.vert { display: flex; flex-direction: column; }
.vert img { aspect-ratio: 3 / 4; width: 100%; height: auto; object-fit: cover; border-radius: 10px; background: var(--ph); }
.vert-body { padding-top: 22px; }
.vert h4 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.vert p { margin: 8px 0 16px; font-size: 15px; line-height: 1.6; color: var(--mute); }
.vert .more { color: var(--fg); }

/* Footer: pinned to the bottom on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
.site-header, body > main, .wrap { width: 100%; }
.site-footer { padding-bottom: 40px; width: 100%; }
.footer-row {
  padding-top: 24px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px;
  font-size: 13px; color: var(--mute);
}
.footer-row .logo { font-size: 15px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 20px; }
.footer-legal a { color: var(--mute); padding: 8px 0; transition: color .15s ease; }
.footer-legal a:hover, .footer-social a:hover { color: var(--fg); }
.footer-social { display: flex; justify-content: flex-end; }
.footer-social a { display: inline-flex; align-items: center; height: 44px; color: var(--fg); font-weight: 500; }

/* Menu button: phones only */
.menu-toggle {
  display: none; position: relative; width: 40px; height: 40px; margin-right: -8px; padding: 0;
  border: 0; background: transparent; color: var(--fg); cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1px; background: currentColor;
  transition: transform .25s ease, top .25s ease;
}
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 23px; }
.site-header.open .menu-toggle span:first-child { top: 20px; transform: rotate(45deg); }
.site-header.open .menu-toggle span:last-child { top: 20px; transform: rotate(-45deg); }

@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: 0 12px; padding-top: 6px; padding-bottom: 6px; }
  .site-header > div:first-child { grid-column: 1; grid-row: 1; }
  .header-cta { grid-column: 2; grid-row: 1; }
  .menu-toggle { display: block; grid-column: 3; grid-row: 1; }
  .header-cta .lang-b { display: none; }
  /* The open menu covers the page below the header instead of pushing it down */
  .site-header { position: relative; z-index: 50; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    min-height: calc(100vh - 100%); min-height: calc(100dvh - 100%);
    flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 0;
    padding: 0 var(--gutter); background: var(--bg); border-top: 1px solid var(--line);
  }
  html.menu-open { overflow: hidden; }
  .site-header.open .site-nav { display: flex; }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--fg); }
  .site-nav a[aria-current="page"] { font-weight: 500; }
  .site-nav .lang-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 15px; color: var(--mute); }
  .site-nav .lang-row span { flex: 1; }
  .site-nav .lang-row a { padding: 12px 6px; margin-right: -6px; border: 0; color: var(--mute); }
  .site-nav .lang-row a[aria-current="true"] { color: var(--fg); font-weight: 500; }
  .hero { padding-top: 64px; }
  .divisions { padding-top: 96px; padding-bottom: 96px; }
  .divisions .label { padding-left: 0; }
  .statement { margin-bottom: 72px; }
  /* Footer: logo, then the three links in one row, then the copyright */
  .footer-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; text-align: center; }
  .footer-legal, .footer-social { display: contents; }
  .footer-row .logo { flex-basis: 100%; margin-bottom: 8px; }
  .footer-legal a, .footer-social a { order: 1; height: auto; padding: 10px 0; }
  .footer-legal span { order: 2; flex-basis: 100%; margin-top: 8px; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .news-grad, .news svg { animation: none; }
}

/* Nav: current page */
.site-nav a[aria-current="page"] { color: var(--fg); font-weight: 500; }

/* Page hero (careers) */
.page-hero { display: flex; justify-content: center; padding: 96px var(--gutter) 0; }
.page-hero .hero-inner h1 { font-family: var(--serif); font-size: clamp(42px, 9vw, 56px); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; }
.page-hero .hero-text { max-width: 387px; }

/* Careers */
.roles { max-width: 640px; margin: 88px auto 0; padding: 0 var(--gutter) 120px; box-sizing: content-box; }
.roles-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 13px; color: var(--mute); }
.roles-head h2 { font-size: 13px; font-weight: 500; }
.roles-head span { font-variant-numeric: tabular-nums; }
.role-list { border-bottom: 1px solid var(--line); }
.role {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; border-top: 1px solid var(--line); color: var(--fg);
}
.role-title { display: block; font-size: 16px; font-weight: 500; }
.role-meta { display: block; margin-top: 4px; font-size: 13.5px; color: var(--mute); }
.role .more { color: var(--fg); }
.role:hover .more svg { transform: translateX(2px); }
.roles-note { margin-top: 28px; font-size: 14px; line-height: 1.6; color: var(--mute); }
.roles-note a { color: var(--fg); font-weight: 500; }
/* Job page (careers/bdr) */
.job-page { max-width: 640px; margin: 0 auto; padding: 56px var(--gutter) 120px; box-sizing: content-box; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mute); }
.back-link:hover { color: var(--fg); }
.job-hero { margin-top: 48px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.job-hero h1 { font-family: var(--serif); font-size: clamp(36px, 8vw, 52px); font-weight: 400; line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
.job-tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.job-tags li { border: 1px solid var(--line2); border-radius: 999px; padding: 5px 12px; font-size: 13px; color: var(--mute); }
.job-cta { margin-top: 28px; }
.job-body { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 36px; }
.job-body h2 { font-size: 13px; font-weight: 500; color: var(--mute); margin-bottom: 12px; }
.job-body p, .job-body li { font-size: 15px; line-height: 1.65; }
.job-body p + p, .job-body ul + p, .job-body p + ul { margin-top: 10px; }
.job-body ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.job-body li { position: relative; padding-left: 18px; }
.job-body li::before { content: ""; position: absolute; left: 0; top: .8em; width: 8px; height: 1px; background: var(--mute); }
.job-facts { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.job-facts div { display: flex; flex-wrap: wrap; gap: 6px; }
.job-facts dt { color: var(--mute); }
.job-facts dd { margin: 0; }
.job-form { margin-top: 56px; outline: none; scroll-margin-top: 24px; }
.job-form-title { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.job-page .form-done { margin-top: 56px; outline: none; }
.sizes.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.textarea { display: block; min-height: 160px; resize: vertical; line-height: 1.55; }
.field-help { margin: -2px 0 10px; font-size: 13px; line-height: 1.55; color: var(--mute); }
.field-help a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.field-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.field-hint.over { color: #ff8a80; }

/* Contact */
.contact {
  max-width: 920px; margin: 0 auto; padding: 88px var(--gutter) 120px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 48px; align-items: center;
}
.contact h1 { font-size: 40px; font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; }
.contact .intro { margin-top: 18px; max-width: 400px; font-size: 16px; line-height: 1.6; color: var(--mute); }
.contact .stats { justify-content: flex-start; margin-top: 32px; gap: 6px 24px; }
.form-card { display: flex; flex-direction: column; gap: 20px; border: 1px solid #222222; border-radius: 12px; padding: 24px; background: #0a0a0a; }
.field label, .field .field-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.req { color: var(--mute); }
.input, .select-btn {
  width: 100%; border: 1px solid #333333; border-radius: 6px; padding: 11px 12px; background: #111111;
  font-family: var(--sans); font-size: 14px; color: var(--fg);
}
.input::placeholder { color: #8a8a8a; }
.input:focus, .select-btn:focus-visible { outline: none; border-color: var(--mute); }
.select { position: relative; }
.select-btn { position: relative; display: block; padding-right: 40px; text-align: left; cursor: pointer; line-height: normal; }
.select-btn span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-btn.empty { color: var(--mute); }
.select-btn[aria-expanded="true"] { border-color: var(--mute); }
.select-btn svg { position: absolute; right: 12px; top: 50%; margin-top: -8px; transition: transform .15s ease; }
.select-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; display: flex; flex-direction: column; gap: 2px;
  padding: 4px; background: #111111; border: 1px solid #333333; border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.6);
}
.menu[hidden] { display: none; }
.opt {
  height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-radius: 4px;
  padding: 0 10px; background: transparent; color: var(--fg); font-family: var(--sans); font-size: 14px; text-align: left; cursor: pointer;
}
.opt:hover, .opt:focus-visible, .opt[aria-selected="true"] { background: #1f1f1f; outline: none; }
.opt svg { visibility: hidden; }
.opt[aria-selected="true"] svg { visibility: visible; }
.opt-other { display: flex; align-items: center; gap: 10px; min-height: 40px; border-radius: 4px; padding: 4px 4px 4px 10px; }
.opt-other:hover, .opt-other:focus-within { background: #1f1f1f; }
.opt-other label { flex-shrink: 0; margin: 0; font-size: 14px; font-weight: 400; }
.opt-other input { flex: 1; min-width: 0; height: 32px; border: 1px solid #333333; border-radius: 4px; padding: 0 10px; background: var(--bg); font-family: var(--sans); font-size: 14px; color: var(--fg); }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #333333; border-left: 1px solid #333333; border-radius: 6px; overflow: hidden; }
.size {
  height: 44px; border: 0; border-right: 1px solid #333333; border-bottom: 1px solid #333333; background: #111111; color: var(--fg);
  font-family: var(--sans); font-size: 13.5px; font-weight: 500; cursor: pointer;
}
.size:hover { background: #1a1a1a; }
.size[aria-checked="true"] { background: var(--fg); color: var(--bg); }
.size:focus-visible { outline: 2px solid var(--fg); outline-offset: -2px; }
.btn-primary {
  width: 100%; height: 46px; border: 0; border-radius: 6px; background: var(--fg); color: var(--bg);
  font-family: var(--sans); font-size: 14px; font-weight: 500; cursor: pointer;
}
.btn-primary:disabled { opacity: .6; cursor: default; }
.form-note { font-size: 12px; line-height: 1.55; color: var(--mute); }
.form-note a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.form-error { font-size: 13px; line-height: 1.5; color: #ff8a80; }
.form-error[hidden], .form-done[hidden], .form-card[hidden] { display: none; }
.form-done { border: 1px solid #222222; border-radius: 12px; padding: 32px 24px; background: #0a0a0a; }
.form-done h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.form-done p { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--mute); }

/* Contact: booking step after the form */
.booking { max-width: 1000px; width: 100%; margin: 0 auto; padding: 72px var(--gutter) 96px; outline: none; }
.booking[hidden], .contact[hidden] { display: none; }
.booking-head { max-width: 560px; margin: 0 auto 36px; text-align: center; }
.booking-head h1 { font-size: clamp(28px, 5vw, 36px); font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance; }
.booking-head p { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--mute); }
.booking-cal { width: 100%; }
.booking-fallback { margin-top: 16px; text-align: center; font-size: 13px; color: var(--mute); }
.booking-fallback a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }

/* Language switch: globe + dropdown (desktop), row in the phone menu */
.lang-b { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px; border: 0; background: transparent;
  color: var(--mute); font-family: var(--sans); font-size: 12.5px; cursor: pointer; transition: color .15s ease;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { color: var(--fg); }
.lang-btn svg:last-child { transition: transform .15s ease; }
.lang-btn[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: -6px; top: calc(100% + 8px); z-index: 60; min-width: 168px; display: flex; flex-direction: column; gap: 2px;
  padding: 4px; background: #111111; border: 1px solid #333333; border-radius: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.6);
}
.lang-menu[hidden] { display: none; }
.lang-menu a {
  height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 4px;
  padding: 0 10px; color: var(--fg); font-size: 13px;
}
.lang-menu a:hover, .lang-menu a:focus-visible, .lang-menu a[aria-current="true"] { background: #1f1f1f; outline: none; }
.lang-menu a svg { visibility: hidden; }
.lang-menu a[aria-current="true"] svg { visibility: visible; }
@media (min-width: 721px) { .site-nav .lang-row { display: none; } }
