:root {
  --ink: #16141A;
  --ink-70: #55525A;
  --ink-50: #78757D;
  --ink-line: rgba(22, 20, 26, 0.12);
  --paper: #F7F4ED;
  --paper-2: #EFEBE1;
  --white: #FFFFFF;

  --accent: #FF5A1F;
  --lime: #C8F531;
  --amber: #FFB020;
  --pink: #FF2D87;
  --blue: #2F5BFF;
  --rwc-red: #F5291F;

  --r-lg: 36px;
  --r-md: 28px;
  --r-sm: 20px;

  --gutter: 56px;
  --section-y: 120px;
  --maxw: 1440px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --display: 'Unbounded', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* The page is a fixed brand palette — it does not invert in dark mode. */
:root:not([data-theme="light"]) { color-scheme: light; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html { overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* trims the tilted ticker without making body a scroll container */
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}
::selection { background: var(--lime); color: var(--ink); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: var(--section-y) 0 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 15px;
  background: var(--white);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-70);
  align-self: flex-start;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 999px; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 48px;
  margin-bottom: 40px;
}
.section-head h2 { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.02; }
.section-head .lede { color: var(--ink-70); font-size: 17px; line-height: 1.55; }
.head-stack { display: flex; flex-direction: column; gap: 20px; }

.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: var(--paper-2);
  border-radius: 999px;
  transition: transform 0.35s var(--ease), background 0.25s ease;
}
.arrow svg { transition: transform 0.35s var(--ease); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 8px 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  transition: transform 0.25s var(--ease), background 0.2s ease;
}
.btn .pip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  transition: transform 0.35s var(--ease);
}
.btn:hover .pip { transform: rotate(45deg); }
.btn:active { transform: scale(0.98); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark .pip { background: var(--lime); }
.btn-light { background: var(--paper-2); color: var(--ink); padding: 0 24px; }
.btn-light:hover { background: #E6E1D4; }
.btn-sm { min-height: 46px; padding-left: 20px; }
.btn-sm .pip { width: 30px; height: 30px; }

/* ---------- HERO ---------- */

.hero { padding: 20px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
  min-height: calc(100vh - 40px);
  min-height: calc(100svh - 40px);
}
.hero-card {
  background: var(--white);
  border-radius: var(--r-lg);
  display: flex;
}
.hero-inner {
  width: 100%;
  padding: 18px 44px 44px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.topbar {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.wordmark { display: inline-flex; align-items: center; flex: none; }
.wordmark img { display: block; height: 62px; width: auto; transition: transform 0.4s var(--ease); }
.wordmark:hover img { transform: rotate(-3deg) scale(1.03); }
/* Shown until a logo image is set in Customize → Site Identity. */
.wordmark-text {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.4s var(--ease);
}
.wordmark:hover .wordmark-text { transform: rotate(-1.5deg); }
.foot-logo .wordmark-text { font-size: 26px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a:not(.btn) {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-70);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav > a:not(.btn):hover { background: var(--paper); color: var(--ink); }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu .bars { display: grid; gap: 4px; }
.menu .bars i { display: block; width: 14px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s ease; }
.menu[open] .bars i:first-child { transform: translateY(3px) rotate(45deg); }
.menu[open] .bars i:last-child { transform: translateY(-3px) rotate(-45deg); }
.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 10;
  width: min(280px, calc(100vw - 72px));
  padding: 10px;
  background: var(--ink);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px -20px rgba(22, 20, 26, 0.5);
}
.menu-panel a {
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 650;
  color: var(--white);
}
.menu-panel a:hover { background: rgba(255, 255, 255, 0.08); }
.menu-panel a.cta { margin-top: 6px; background: var(--lime); color: var(--ink); }

.hero-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 48px;
}
.hero-caption .kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.hero-caption .kicker i { width: 22px; height: 2px; border-radius: 2px; background: var(--lime); }
.hero-bottom { display: flex; flex-direction: column; gap: 32px; }
.hero-copy h1 {
  max-width: 980px;
  font-size: clamp(36px, 6vw, 104px);
  animation: rise 1s var(--ease) 0.1s both;
  line-height: 1;
  letter-spacing: -0.045em;
}
.hero-copy h1 .pill {
  display: inline-block;
  padding: 0.02em 0.28em 0.08em;
  background: var(--lime);
  border-radius: 999px;
  transform: rotate(-3deg);
}
.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  animation: rise 0.9s var(--ease) 0.5s both;
}
.scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-70);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.scroll svg { animation: nudge 1.8s ease-in-out infinite; }
.scroll:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
@keyframes nudge { 50% { transform: translateY(4px); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* Right-hand media card with a notch cut into its top-right corner */
.hero-side { position: relative; }
.hero-media {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 90, 31, 0.18), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(47, 91, 255, 0.14), transparent 60%),
    #E6E0D2;
  overflow: hidden;
}
/* Dark wash at the bottom so the brand list reads over any photo */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 20, 26, 0.72) 0%, rgba(22, 20, 26, 0.3) 30%, transparent 52%);
  pointer-events: none;
}
.hero-media img,
.hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.08); } }

.hero-caption {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--white);
  animation: rise 0.9s var(--ease) 0.5s both;
}
.hero-caption .title {
  font-family: var(--display);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.hero-caption .lede {
  max-width: 340px;
  margin-top: 2px;
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.notch {
  --notch-r: 24px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 24px 0 12px 12px;
  background: var(--paper);
  border-bottom-left-radius: var(--notch-r);
}
/* Inverted corners where the notch meets the card's top and right edges */
.notch::before,
.notch::after {
  content: "";
  position: absolute;
  width: var(--notch-r);
  height: var(--notch-r);
  background: radial-gradient(circle at 0 100%, transparent calc(var(--notch-r) - 0.5px), var(--paper) var(--notch-r));
}
.notch::before { top: 0; left: calc(var(--notch-r) * -1); }
.notch::after { right: 0; bottom: calc(var(--notch-r) * -1); }
.notch .btn { min-height: 50px; }


/* Product placeholder art — swap for <img> once photography is ready */
.art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 16px);
}
.art.dark-ink { background-image: repeating-linear-gradient(135deg, rgba(22, 20, 26, 0.07) 0 2px, transparent 2px 16px); }
.art .mono {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.8;
  text-transform: uppercase;
}
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }


/* ---------- TICKER ---------- */

.ticker {
  margin: 20px 0 0;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  transform: rotate(-1.2deg);
  width: calc(100% + 40px);
  margin-left: -20px;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.ticker ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticker li {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 20px 14px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.ticker li::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 4px;
  transform: rotate(45deg);
  background: var(--c, var(--lime));
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- WHAT WE DO ---------- */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.stack-card {
  position: relative;
  padding: 10px;
  background: var(--white);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease);
}
.stack-card:hover { transform: translateY(-6px); }
.stack-card .panel {
  height: 180px;
  border-radius: var(--r-sm);
  padding: 16px 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  overflow: hidden;
}
.stack-card .panel .big {
  font-family: var(--display);
  font-size: 96px;
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.04em;
  margin-bottom: -6px;
}
.stack-card .panel .ico {
  align-self: flex-start;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.stack-card .body { padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.stack-card h3 { font-size: 24px; line-height: 1.1; }
.stack-card p { font-size: 15px; line-height: 1.5; color: var(--ink-70); }
.p1 { background: var(--lime); }
.p2 { background: var(--amber); }
.p3 { background: var(--accent); color: var(--white); }
.p3 .ico { background: rgba(255, 255, 255, 0.25) !important; }
.p4 { background: var(--pink); }
.stack-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -18px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 5px var(--ink);
}

/* ---------- PORTFOLIO ---------- */

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 300px;
  grid-auto-flow: row dense;
  gap: 16px;
}
/* Card sizes, set per project in the admin */
.size-wide  { grid-column: span 2; }
.size-tall  { grid-row: span 2; }
.size-large { grid-column: span 2; grid-row: span 2; }
.brand-card {
  padding: 10px;
  background: var(--white);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.brand-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -34px rgba(22, 20, 26, 0.45); }
.brand-card:hover .arrow { background: var(--ink); }
.brand-card:hover .arrow svg { stroke: var(--white); transform: rotate(45deg); }
.brand-card .art {
  flex: 1;
  min-height: 0;
  border-radius: var(--r-sm);
  padding: 22px;
}
.brand-card .art .mono { font-size: clamp(64px, 7vw, 108px); transition: transform 0.6s var(--ease); transform-origin: left bottom; }
.brand-card:hover .art .mono { transform: scale(1.06) rotate(-2deg); }
.brand-card .art img { transition: transform 0.7s var(--ease); }
.brand-card:hover .art img { transform: scale(1.05); }
.brand-card .art .tag { z-index: 1; }

/* Coming-soon card: dashed outline, no lift */
.brand-card.is-soon {
  background: transparent;
  border: 2px dashed rgba(22, 20, 26, 0.18);
  padding: 8px;
}
.brand-card.is-soon:hover { transform: none; box-shadow: none; }
.brand-card.is-soon:hover .art .mono { transform: none; }
.art-soon { background-color: var(--paper-2); color: rgba(22, 20, 26, 0.16); }
.is-soon .art .mono { font-size: clamp(56px, 5.6vw, 96px); }
.is-soon .tag { gap: 8px; }
.is-soon .tag i { width: 7px; height: 7px; border-radius: 999px; background: #2BC46B; animation: live 2.4s ease-out infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(43, 196, 107, 0.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(43, 196, 107, 0); } }
.is-soon .arrow { background: var(--white); }
.brand-card.is-soon:hover .arrow { background: var(--white); }
.brand-card.is-soon:hover .arrow svg { stroke: var(--ink); transform: none; }
.brand-card .art .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  height: 28px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.size-large .art .mono { font-size: clamp(90px, 10vw, 170px); }
.size-large h3 { font-size: 28px; }
.size-wide .art .mono { font-size: clamp(56px, 5.6vw, 96px); }
.size-tall .art .mono, .size-square .art .mono { font-size: clamp(48px, 4.6vw, 76px); }
.brand-card.is-static:hover { transform: none; box-shadow: none; }

.art-blue { background-color: var(--blue); color: var(--white); }
.art-red { background-color: var(--rwc-red); color: var(--white); }
.art-lime { background-color: var(--lime); color: var(--ink); }
.art-pink { background-color: var(--pink); color: var(--ink); }
.art-orange { background-color: var(--accent); color: var(--white); }
.art-amber { background-color: var(--amber); color: var(--ink); }
.art-stone { background-color: var(--paper-2); color: rgba(22, 20, 26, 0.3); }

.brand-foot {
  padding: 4px 12px 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.brand-foot h3 { font-size: 21px; line-height: 1.1; margin-bottom: 8px; }
.brand-foot p { font-size: 15px; line-height: 1.45; color: var(--ink-70); }

/* ---------- ABOUT ---------- */

.about-card {
  padding: 64px 56px;
  background: var(--white);
  border-radius: var(--r-lg);
}
.about-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: 56px; }
#about h2 {
  max-width: 1120px;
  font-size: clamp(32px, 4.4vw, 66px);
  line-height: 1.04;
}
#about h2 .u {
  background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%);
}
.about-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: stretch;
  gap: 40px;
}
.about-cols .col { display: flex; flex-direction: column; gap: 16px; padding-top: 22px; border-top: 1px solid var(--ink-line); }
.about-cols .col p { font-size: 16.5px; line-height: 1.6; color: var(--ink-70); }
.about-cols .col p.lead { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.callout {
  position: relative;
  padding: 32px;
  background: var(--lime);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
}
.callout::after {
  content: "?!";
  position: absolute;
  right: -6px;
  bottom: -44px;
  font-family: var(--display);
  font-size: 170px;
  font-weight: 900;
  line-height: 1;
  color: rgba(22, 20, 26, 0.07);
  pointer-events: none;
}
.callout .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(22, 20, 26, 0.65);
}
.callout p { position: relative; font-size: 26px; font-weight: 750; line-height: 1.2; letter-spacing: -0.015em; }

/* ---------- CAREERS ---------- */

.careers-card {
  padding: 56px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.careers-copy { display: flex; flex-direction: column; gap: 24px; }
.careers-copy .eyebrow { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.careers-copy h2 { font-size: clamp(32px, 4vw, 58px); line-height: 1.02; }
.careers-copy h2 .hl { color: var(--lime); }
.careers-copy .big { font-size: 21px; line-height: 1.4; color: var(--white); max-width: 520px; }
.careers-copy p { max-width: 480px; line-height: 1.6; color: rgba(255, 255, 255, 0.7); }

.roles { display: flex; flex-direction: column; gap: 12px; }
.roles-empty { padding: 22px 24px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.75); }
.roles .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}
.role {
  padding: 24px 24px 24px 28px;
  background: var(--white);
  color: var(--ink);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: transform 0.35s var(--ease);
}
.role:hover { transform: translateX(6px); }
.role:hover .arrow svg { transform: rotate(45deg); }
.role .title { display: flex; flex-direction: column; gap: 8px; }
.role .idx { font-size: 12.5px; font-weight: 600; color: var(--ink-50); letter-spacing: 0.06em; }
.role h3 { font-size: 22px; line-height: 1.1; }
.role .meta { display: flex; align-items: center; gap: 14px; }
.role .loc {
  height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-70);
}
.role .loc::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }
.role .arrow { background: var(--lime); width: 48px; height: 48px; }
.role-ghost {
  padding: 22px 24px 22px 28px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.role-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.55); }
.role-ghost span { color: rgba(255, 255, 255, 0.6); font-weight: 400; font-size: 14px; display: block; margin-top: 2px; }

/* ---------- CONTACT ---------- */

.contact-card {
  position: relative;
  padding: 56px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 64px;
  overflow: hidden;
  isolation: isolate;
}
.contact-card::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  border: 90px solid rgba(255, 255, 255, 0.09);
}
.contact-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}
.contact-card h2 {
  max-width: 860px;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.98;
}
.contact-card h2 em { font-style: normal; color: var(--ink); }
.mailto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 12px 12px 32px;
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  font-size: clamp(18px, 2.6vw, 34px);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: transform 0.35s var(--ease);
}
.mailto:hover { transform: scale(1.01); }
.mailto .arrow {
  width: clamp(48px, 5vw, 72px);
  height: clamp(48px, 5vw, 72px);
  background: var(--ink);
}
.mailto:hover .arrow svg { transform: rotate(45deg); }

/* ---------- FOOTER ---------- */

.site-foot { padding: 16px 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.foot-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 48px;
  padding: 52px 56px;
  background: var(--white);
  border-radius: var(--r-lg);
}
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.foot-logo img { display: block; height: 62px; width: auto; }
.foot-brand p { max-width: 300px; font-size: 16px; line-height: 1.55; color: var(--ink-70); }
.foot-brand .btn { margin-top: 4px; }

.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-col .label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.foot-col address { font-style: normal; font-size: 16px; line-height: 1.6; color: var(--ink-70); }

/* Footer links: lime underline sweeps in on hover */
.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(var(--lime), var(--lime)) 0 100% / 0 3px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.link:hover, .link:focus-visible { background-size: 100% 3px; }
.link svg { opacity: 0.5; }
.link svg.li { opacity: 1; color: #0A66C2; }

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding: 22px 8px 0;
  font-size: 14px;
  color: var(--ink-50);
}
.to-top { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-70); }
.to-top span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--white);
  transition: background 0.2s ease, transform 0.3s var(--ease);
}
.to-top:hover { color: var(--ink); }
.to-top:hover span { background: var(--lime); transform: translateY(-3px); }

/* Ordinary blocks placed between sections on a sections page get a readable column. */
.sections > :not(header):not(section):not(.ticker) {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 0 var(--gutter);
}

/* ---------- REVEAL ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1180px) {
  :root { --gutter: 36px; --section-y: 88px; }
  .hero-inner { padding: 18px 32px 32px; gap: 40px; }
  .nav { gap: 0; }
  .nav > a:not(.btn) { padding: 10px 10px; font-size: 14px; }
  .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-card:nth-child(2)::after { display: none; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-card { padding: 48px 36px; }
  .about-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .callout { grid-column: 1 / -1; }
  .careers-card { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 44px; }
  .foot-card { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 44px; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; }
  /* Stacked layout: one white card with the media between the nav and the headline */
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    min-height: 0;
    padding: 18px 18px 32px;
    background: var(--white);
    border-radius: var(--r-lg);
  }
  .hero-card, .hero-inner { display: contents; }
  .hero .topbar { order: 1; }
  .hero-side { order: 2; aspect-ratio: 16 / 10; margin: -8px -6px 0; }
  .hero-copy { order: 3; }
  .hero-media { border-radius: var(--r-md); }
  .notch { display: none; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --section-y: 64px; --r-lg: 26px; --r-md: 22px; --r-sm: 16px; }
  .hero { padding: 10px; }
  .wordmark img { height: 48px; }
  .wordmark-text { font-size: 16px; }
  .hero-grid { padding: 14px 14px 26px; gap: 22px; }
  .hero .topbar { padding: 0 4px; }
  .hero-side { aspect-ratio: 4 / 5; margin: -4px -4px 0; }
  .hero-copy { gap: 24px; padding: 0 4px; }
  .hero-caption .lede { font-size: 14.5px; }
  .scroll { display: none; }
  .hero-caption { left: 20px; right: 20px; bottom: 20px; }
  .ticker li { font-size: 22px; padding: 14px 10px; gap: 20px; }
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 28px; }
  .stack-grid, .brand-grid { grid-template-columns: minmax(0, 1fr); }
  .stack-card::after { display: none; }
  .stack-card .panel { height: 130px; }
  .stack-card .panel .big { font-size: 80px; }
  .brand-grid { grid-auto-rows: auto; }
  .brand-grid > .brand-card { grid-column: auto; grid-row: auto; }
  .brand-card .art { flex: none; aspect-ratio: 4 / 3; }
  .brand-card .art .mono { font-size: 76px !important; }
  .size-large h3 { font-size: 22px; }
  .about-card { padding: 32px 20px; }
  .about-head { margin-bottom: 36px; }
  .about-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .callout { padding: 26px; }
  .callout p { font-size: 22px; }
  .careers-card, .contact-card { padding: 32px 20px; }
  .role { flex-direction: column; align-items: flex-start; gap: 16px; }
  .role .meta { width: 100%; justify-content: space-between; }
  .contact-card { gap: 40px; }
  .contact-top { flex-direction: column; gap: 28px; }
  .mailto { gap: 10px; padding: 8px 8px 8px 18px; font-size: clamp(12px, 3.7vw, 20px); overflow-wrap: anywhere; }
  .mailto .arrow { width: 40px; height: 40px; }
  .foot-card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; padding: 32px 22px; }
  .foot-brand { order: -1; }
  .foot-contact { grid-column: 1 / -1; order: 2; }
  .foot-logo img { height: 52px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- INNER PAGES (job listing) ---------- */

.nav .btn { margin-left: 12px; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper); }

.page-head { padding: 20px 20px 0; }
.page-head-card {
  padding: 18px 44px 52px;
  background: var(--white);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.kicker i { width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }

.job-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  animation: rise 0.9s var(--ease) 0.1s both;
}
.job-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.job-hero .back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-70);
  transition: background 0.2s ease, color 0.2s ease;
}
.job-hero .back:hover { background: var(--paper-2); color: var(--ink); }
.job-hero .back svg { transition: transform 0.3s var(--ease); }
.job-hero .back:hover svg { transform: translateX(-3px); }
.job-hero h1 { font-size: clamp(38px, 6vw, 96px); line-height: 1; letter-spacing: -0.045em; }
.job-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.job-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-70);
}
.job-pills li.loc::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }
.job-actions { flex: none; }

.job-section { padding-top: 72px; padding-bottom: 56px; }
.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 64px;
  align-items: start;
}

.prose { max-width: 720px; }
.prose h2 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; margin: 56px 0 18px; }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 17.5px; line-height: 1.65; color: var(--ink-70); }
.prose p + p { margin-top: 16px; }
.prose > h2:first-child + p,
.prose p.intro { font-size: 22px; line-height: 1.45; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
/* Text links only — buttons inside prose keep their own colours. */
.prose a:not(.btn) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.prose ol { padding-left: 1.2em; }
.prose ol li { padding-left: 4px; }
.prose ol li::before { display: none; }
.prose h3 { font-size: 20px; margin: 36px 0 12px; }
.prose ul, .prose ol, .prose figure { margin-top: 16px; }
.prose img { border-radius: var(--r-sm); height: auto; }
.prose-page { max-width: 760px; }
.prose ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.prose li { position: relative; padding-left: 28px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgba(22, 20, 26, 0.12);
  transform: rotate(45deg);
}
.apply-band {
  margin-top: 64px;
  padding: 32px;
  background: var(--lime);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.apply-band h2 { margin: 0 0 8px; }
.apply-band p { color: rgba(22, 20, 26, 0.75); }

.job-aside {
  position: sticky;
  top: 24px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.job-aside .label,
.contact-form legend,
.field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-50);
}
.job-aside dl { margin: 0; display: grid; }
.job-aside dl div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--ink-line); }
.job-aside dt { font-size: 14px; color: var(--ink-50); }
.job-aside dd { margin: 0; font-size: 14.5px; font-weight: 650; text-align: right; }
.job-aside .btn { justify-content: space-between; }
.aside-alt { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink-70); }
.aside-alt:hover { color: var(--ink); }
.aside-alt span { transition: transform 0.3s var(--ease); }
.aside-alt:hover span { transform: translateX(4px); }

/* ---------- CONTACT MODAL ---------- */

html.modal-open { overflow: hidden; }
.modal {
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow: visible;
}
.modal::backdrop { background: rgba(22, 20, 26, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.35s var(--ease); }
.modal[open]::backdrop { animation: fade-in 0.3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }
.modal-card {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 40px;
  background: var(--white);
  border-radius: 30px;
  box-shadow: 0 40px 80px -30px rgba(22, 20, 26, 0.5);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.3s var(--ease);
}
.modal-close:hover { background: var(--paper-2); transform: rotate(90deg); }
.modal-view { display: flex; flex-direction: column; gap: 14px; }
.modal-view[hidden] { display: none; }
.modal .eyebrow { background: var(--paper); }
.modal h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1; margin-top: 6px; }
.modal-lede { color: var(--ink-70); font-size: 16px; line-height: 1.55; max-width: 460px; }
.modal-lede a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 3px; }

.contact-form { margin-top: 12px; display: flex; flex-direction: column; gap: 22px; }
.topics { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { padding: 0; margin-bottom: 10px; }
.topics label { position: relative; cursor: pointer; }
.topics input { position: absolute; opacity: 0; pointer-events: none; }
.topics label > span {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-70);
  transition: background 0.2s ease, color 0.2s ease;
}
.topics label:hover > span { background: var(--paper-2); color: var(--ink); }
.topics input:checked + span { background: var(--ink); color: var(--white); }
.topics input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
.field label small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  background: var(--paper);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field textarea:focus { outline: none; background: var(--white); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(200, 245, 49, 0.7); }
.field input:user-invalid,
.field textarea:user-invalid { border-color: #E5484D; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact-form button[type="submit"] { border: 0; cursor: pointer; font-family: inherit; }
.contact-form button[disabled] { opacity: 0.6; cursor: progress; }
.form-status { font-size: 14px; color: var(--ink-70); }
.form-status.error { color: #C4262B; }

/* Contact Form 7 inside the pop-up (form built with the theme's markup) */
.is-cf7 p { margin: 0; }
.is-cf7 .hidden-fields-container { display: none; }
.is-cf7 .topics .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.is-cf7 .wpcf7-list-item { margin: 0; }
.is-cf7 .field > p { display: flex; flex-direction: column; gap: 8px; }
.is-cf7 .wpcf7-form-control-wrap { display: block; }
.is-cf7 .form-foot > p { display: flex; align-items: center; gap: 12px; }
.is-cf7 .wpcf7-submit {
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.is-cf7 .wpcf7-submit:disabled { opacity: 0.6; cursor: progress; }
.is-cf7 .wpcf7-spinner { margin: 0; background-color: var(--ink-50); }
.is-cf7 .wpcf7-not-valid { border-color: #E5484D !important; }
.is-cf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; font-weight: 600; color: #C4262B; }
.is-cf7 .wpcf7-response-output { margin: 4px 0 0 !important; padding: 12px 16px !important; border: 0 !important; border-radius: 14px; background: var(--paper); font-size: 14px; color: var(--ink-70); }
.is-cf7.invalid .wpcf7-response-output,
.is-cf7.failed .wpcf7-response-output,
.is-cf7.aborted .wpcf7-response-output,
.is-cf7.spam .wpcf7-response-output { background: #FDECEC; color: #9F1D22; }
.is-cf7.init .wpcf7-response-output:empty { display: none; }

/* CV upload */
.field input[type="file"] {
  padding: 10px;
  font-size: 14px;
  color: var(--ink-70);
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s ease;
}
.field input[type="file"]::file-selector-button:hover { background: #2B2831; }

.modal-done { align-items: flex-start; padding: 12px 0 4px; }
.done-mark {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-in 0.4s var(--ease);
}
.modal-done .btn { margin-top: 10px; border: 0; cursor: pointer; font-family: inherit; }

@media (max-width: 1180px) {
  .page-head-card { padding: 18px 32px 44px; }
  .job-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; }
}

@media (max-width: 960px) {
  .job-hero { flex-direction: column; align-items: flex-start; }
  .job-layout { grid-template-columns: minmax(0, 1fr); }
  .job-aside { position: static; order: -1; }
}

@media (max-width: 760px) {
  .page-head { padding: 10px 10px 0; }
  .page-head-card { padding: 14px 18px 32px; gap: 48px; }
  .job-hero .back { margin-bottom: 8px; }
  .job-section { padding-top: 40px; padding-bottom: 40px; }
  .prose > h2:first-child + p,
  .prose p.intro { font-size: 19px; }
  .prose p, .prose li { font-size: 16.5px; }
  .apply-band { padding: 24px; }
  .apply-band .btn, .job-actions, .job-actions .btn { width: 100%; justify-content: space-between; }

  /* Modal becomes a bottom sheet */
  .modal { width: 100%; max-height: calc(100dvh - 24px); margin: auto 0 0; }
  .modal-card { max-height: calc(100dvh - 24px); padding: 28px 20px 24px; border-radius: 26px 26px 0 0; }
  .modal[open] { animation: sheet-in 0.4s var(--ease); }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
  .modal-close { top: 14px; right: 14px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn { width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
