@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/inter-tight-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --blue: #2646b4;
  --paper: #f7f7ef;
  --ink: #2342ac;
  --gutter: clamp(24px, 3.5vw, 68px);
  font-family: "Inter Tight", Arial, sans-serif;
  color: var(--paper);
  background: var(--blue);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--paper); outline-offset: 6px; }
::selection { color: var(--blue); background: var(--paper); }

.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(24px, 3.2svh, 40px) var(--gutter) clamp(24px, 3.4svh, 42px);
  overflow: clip;
}

.artwork {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: -2px;
  width: min(53vw, 76svh);
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 13%), linear-gradient(180deg, transparent 0%, #000 13%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 13%), linear-gradient(180deg, transparent 0%, #000 13%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.artwork img { display: block; width: 100%; height: auto; }

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 0;
  gap: 20px;
}
.brand { display: block; width: clamp(105px, 9.5vw, 148px); flex-shrink: 0; }
.brand img { display: block; width: 100%; height: auto; }
.location {
  padding-top: 3px;
  font-size: 0.875rem;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: right;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(24px, 4.1svh, 52px);
  padding-top: 16px;
  padding-bottom: 20px;
  min-width: 0;
}
h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(6px, 0.9svh, 10px);
  font-size: clamp(3.4rem, min(7.8vw, 11.7svh), 9rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.04em;
}
h1 span {
  display: block;
  color: var(--ink);
  background: var(--paper);
  padding: 0.015em 0.14em 0.085em 0.065em;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.copy { display: grid; gap: clamp(18px, 2.8svh, 34px); max-width: 510px; }
.copy p {
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.4;
  letter-spacing: 0;
}
.hiring h2 {
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.4;
  letter-spacing: 0;
  font-weight: 600;
  margin-bottom: 4px;
}
.role-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 7px;
  font-size: 0.875rem;
  text-decoration: none;
}
.link-label { border-bottom: 1px solid currentColor; padding-bottom: 2px; line-height: 1.2; }
.link-arrow { display: block; flex-shrink: 0; align-self: center; margin-top: -2px; }

footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 24px;
  flex-wrap: wrap;
}
.apply { max-width: 100%; }
.apply p { font-size: 0.875rem; line-height: 1.4; margin-bottom: 7px; }
.apply a {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font-size: clamp(1.55rem, 2.3vw, 2.625rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-decoration: none;
  max-width: 100%;
  min-height: 44px;
}
.email-address { min-width: 0; overflow-wrap: anywhere; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: transparent; }
.apply a > .link-arrow { flex-shrink: 0; }
.coming-soon {
  font-size: 0.875rem;
  line-height: 1.4;
  background: var(--blue);
  padding: 5px 9px;
  margin: 0 -9px -5px 0;
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (min-width: 1600px) {
  .copy { max-width: 560px; }
}

@media (max-width: 1000px) and (min-width: 701px) {
  .artwork { width: min(51vw, 69svh); }
  h1 { font-size: clamp(3.3rem, 7.6vw, 6rem); }
  .copy { max-width: 48%; }
  .wide-break { display: none; }
}

@media (max-width: 700px) {
  :root { --gutter: 22px; }
  .page { padding-top: 22px; padding-bottom: 22px; }
  .brand { width: 102px; }
  .location { font-size: 0.75rem; }
  main { justify-content: flex-start; gap: clamp(22px, 4svh, 38px); padding-top: clamp(34px, 6svh, 68px); padding-bottom: 20px; }
  h1 { font-size: clamp(2.1rem, 8.8vw, 3.85rem); gap: 6px; letter-spacing: -0.035em; }
  h1 span { padding-right: 0.16em; }
  .copy { max-width: min(100%, 400px); gap: 21px; }
  .copy p, .hiring h2 { font-size: 1rem; line-height: 1.375; }
  .wide-break { display: none; }
  .hiring { max-width: 330px; }
  .role-link { margin-top: 5px; min-height: 44px; }
  .artwork { width: min(36vw, 23svh); bottom: 25px; right: -8px; }
  footer { display: block; }
  .apply { position: relative; width: max-content; max-width: 100%; background: var(--blue); padding: 6px 10px 6px 0; }
  .apply p { font-size: 0.8125rem; }
  .apply a { font-size: 1.5rem; gap: 18px; }
  .coming-soon { display: inline-block; margin: 20px 0 0; padding: 0; font-size: 0.75rem; }
}

@media (max-width: 700px) and (max-height: 760px) {
  main { padding-top: 24px; gap: 24px; }
  .copy { gap: 18px; }
}

@media (max-width: 370px) {
  :root { --gutter: 18px; }
  .location { font-size: 0.75rem; }
  .copy p, .hiring h2 { font-size: 1rem; }
  .artwork { width: min(30vw, 22svh); bottom: 25px; }
}

@media (min-width: 701px) and (max-height: 720px) {
  .brand { width: 100px; }
  main { gap: 22px; }
  h1 { font-size: clamp(3rem, 8vw, 11svh); }
  .copy { gap: 16px; }
  .copy p, .hiring h2 { font-size: 1rem; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .page { padding-top: 18px; padding-bottom: 18px; }
  .brand { width: 88px; }
  main { gap: 18px; padding-top: 24px; }
  h1 { font-size: clamp(2.4rem, 6vw, 3.2rem); }
  .copy { max-width: 62%; }
  .wide-break { display: none; }
  .artwork { width: min(34vw, 230px); bottom: 0; }
}

/* Motion stays on the illustration and actionable links. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .artwork img {
    transform: translate3d(var(--hyena-x, 0px), var(--hyena-y, 0px), 0) scale(1.025);
    transform-origin: bottom right;
    transition: transform 700ms cubic-bezier(0.2, 0.65, 0.3, 1);
  }
  .brand img { transition: transform 220ms ease; }
  .brand:is(:hover, :focus-visible) img { transform: translateY(-2px); }
  .email-address { transition: text-decoration-color 180ms ease; }
  .role-link .link-arrow, .apply a .link-arrow {
    display: inline-block;
    transition: transform 220ms cubic-bezier(0.2, 0.65, 0.3, 1);
  }
  .apply a:is(:hover, :focus-visible) .email-address { text-decoration-color: currentColor; }
  .role-link:is(:hover, :focus-visible) .link-arrow,
  .apply a:is(:hover, :focus-visible) .link-arrow {
    transform: translate(3px, -3px);
  }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .email-address { text-decoration-color: currentColor; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .artwork img { transform: none !important; }
}
