/* JobsJai landing (coming soon).
   Colours come from brand/palette.mjs; the illustrations in /art are the app's own
   (web/src/components/*-art.tsx and Mobile/components/illustrations), in the flat
   house style: a soft halo, a body with a shade offset, white glyphs, no gradients. */
@font-face {
  font-family: 'Inter';
  src: url('/assets/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --primary: #0140e5;
  --primary-hover: #0132b2;
  --primary-active: #01288d;
  --halo: #e8edfb;
  --chip: #dce4f8;
  --pale: #dce6ff;
  --navy: #202a4f;
  --bg: #f2f3f6;
  --text: #111112;
  --body: #3a3f4a;
  --muted: #6e7686;
  --hairline: #e6e9f0;
  --badge: #a6bcf6;
  --dot: #8caaf2;
  --success: #22c55e;
  --shadow: rgba(1, 64, 229, 0.35);
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--text);
  /* Inter has no Thai; each platform's own Thai face takes over (Android, iOS, Windows). */
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', 'Noto Sans Thai', 'Thonburi', 'Leelawadee UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Thai reads badly with the tight tracking of the Latin headlines, and its
   stacked vowels and tone marks need a little more line height. */
:lang(th) h1, :lang(th) h2, :lang(th) .brand { letter-spacing: 0; }
:lang(th) h1 { line-height: 1.2; }
:lang(th) .eyebrow { letter-spacing: 0.04em; }

img { display: block; }

:focus-visible {
  outline: 3px solid rgba(1, 64, 229, 0.4);
  outline-offset: 3px;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: clamp(700px, 100vh, 920px);
  overflow: hidden;
}

.blob {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  pointer-events: none;
  animation: blob-in 1.3s var(--ease) both;
}

.blob-body { fill: var(--primary); }
.blob-shade { fill: var(--primary-hover); }
.blob-top { display: none; }

@keyframes blob-in { from { opacity: 0; transform: translateX(10%); } }

.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 24px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-tile {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #fff;
}

.brand-tile.sm {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  position: relative;
  color: var(--body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { transform: scaleX(1); }

/* EN | ไทย */
.lang {
  margin-left: auto;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px -10px rgba(1, 20, 80, 0.5);
}

.lang button {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.lang button:not([aria-pressed="true"]):hover { color: var(--navy); }

.nav-mail {
  margin-left: -32px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px -10px rgba(1, 20, 80, 0.5);
  transition: transform 0.2s var(--ease);
}

.nav-mail:hover { transform: translateY(-1px); }
.mail-ico { display: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* A phone has no room for the brand, the features link, the language switch and the whole address: the mail link becomes an icon. */
@media (max-width: 520px) {
  .nav-mail { display: grid; place-items: center; width: 38px; height: 38px; padding: 0 !important; }
  .mail-ico { display: block; }
  .mail-text { display: none; }
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 660px;
  padding: 130px 0 90px var(--gutter);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--halo);
  color: var(--primary);
  font-size: 13.5px;
  font-weight: 700;
}

.tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: ping 2.2s ease-out infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(1, 64, 229, 0.45); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(1, 64, 229, 0); }
}

h1 {
  margin: 26px 0 0;
  color: var(--navy);
  font-size: clamp(44px, 5.5vw, 82px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hl {
  position: relative;
  display: inline-block;
  color: var(--primary);
  white-space: nowrap;
}

.swoosh {
  position: absolute;
  left: -3%;
  bottom: -0.2em;
  width: 106%;
  height: 0.3em;
  fill: var(--badge);
  animation: wipe 0.9s var(--ease) 1s both;
}

@keyframes wipe {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.lead {
  max-width: 500px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.45vw, 19.5px);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 58px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background-color 0.2s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  padding: 0 30px 0 9px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 28px -14px var(--shadow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 34px -14px var(--shadow);
}

.btn-ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
}

.btn-ico svg {
  width: 16px;
  height: 16px;
  margin-left: 2px;
  fill: var(--primary);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.btn-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.btn-link:hover svg { transform: translateX(5px); }

/* the art: the team on a halo, with the steps floating around it */
.hero-art {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px calc(var(--gutter) + 2%) 60px 9%;
}

.stage {
  position: relative;
  width: min(100%, 600px);
  aspect-ratio: 1;
}

.halo {
  position: absolute;
  top: 7%;
  left: 7%;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--halo);
  animation: halo-in 1.1s var(--ease) 0.3s both;
}

@keyframes halo-in { from { opacity: 0; transform: scale(0.85); } }

.team {
  position: absolute;
  top: 13%;
  left: 17%;
  width: 66%;
  height: auto;
  animation: rise 1.1s var(--ease) 0.5s both;
}

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.dots {
  position: absolute;
  opacity: 0.4;
}

.dots-a { top: -2%; right: 0; width: 19%; }
.dots-b { bottom: 4%; left: -6%; width: 14%; }

.flight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.spark {
  position: absolute;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  animation: twinkle 3s ease-in-out infinite;
}

.s1 { top: 1%; left: 10%; }
.s2 { top: 22%; right: -2%; width: 14px; animation-delay: -0.8s; }
.s3 { bottom: 2%; right: 26%; animation-delay: -1.6s; }
.s4 { bottom: 34%; left: -4%; width: 13px; animation-delay: -2.3s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.7) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(45deg); }
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 40px -20px rgba(1, 20, 80, 0.55), 0 2px 6px rgba(1, 20, 80, 0.06);
  white-space: nowrap;
  animation: pop 0.8s var(--ease) both, bob 6s ease-in-out infinite;
}

.chip img {
  width: 62px;
  height: 52px;
  flex: none;
}

.chip b {
  display: block;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.chip small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.c1 { top: 9%; left: -9%; animation-delay: 0.9s, 0s; }
.c2 { top: 31%; right: -11%; animation-delay: 1.05s, -1.5s; }
.c3 { bottom: 25%; left: -13%; animation-delay: 1.2s, -3s; }
.c4 { bottom: 5%; right: -4%; animation-delay: 1.35s, -4.5s; }

@keyframes pop {
  from { opacity: 0; transform: scale(0.8) translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* entrance for the copy */
.up { animation: up 0.9s var(--ease) both; }
.u1 { animation-delay: 0.1s; }
.u2 { animation-delay: 0.2s; }
.u3 { animation-delay: 0.34s; }
.u4 { animation-delay: 0.46s; }

@keyframes up { from { opacity: 0; transform: translateY(22px); } }

/* -------------------------------------------------------------- sections */
.sec-head {
  width: min(760px, 100% - 32px);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span { color: var(--muted); }

.sec-head h2 {
  margin: 12px 0 0;
  color: var(--navy);
  font-size: clamp(34px, 4.3vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.sec-head p:not(.eyebrow) {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 18px;
}

/* film */
.film-sec {
  position: relative;
  overflow: hidden;
  padding: clamp(90px, 12vh, 130px) 0 clamp(100px, 13vh, 140px);
  background: var(--bg);
}

.film-wrap {
  position: relative;
  width: min(1080px, 100% - 32px);
  margin: 56px auto 0;
}

.deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.deco-dots { top: -44px; left: -60px; width: 140px; }
.deco-dots2 { right: -48px; bottom: -40px; width: 112px; }

.deco-halo {
  right: -90px;
  top: -70px;
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--pale);
  animation: bob 9s ease-in-out infinite;
}

.screen {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 10px solid #fff;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 40px 80px -44px rgba(32, 42, 79, 0.55), 0 0 0 1px rgba(32, 42, 79, 0.05);
}

video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  background: #fff;
}

.cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.play {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 12px var(--halo), 0 22px 40px -14px var(--shadow);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}

.play::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  animation: ripple 2.4s ease-out infinite;
}

@keyframes ripple {
  from { box-shadow: 0 0 0 0 rgba(166, 188, 246, 0.8); }
  to { box-shadow: 0 0 0 26px rgba(166, 188, 246, 0); }
}

.play svg {
  width: 32px;
  height: 32px;
  margin-left: 4px;
  fill: #fff;
}

.cover:hover .play {
  background: var(--primary-hover);
  transform: scale(1.06);
}

.cover-label {
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px -12px rgba(32, 42, 79, 0.45);
}

.film-wrap.playing .cover { display: none; }

/* how it works */
.how { padding: clamp(96px, 13vh, 140px) 0 clamp(110px, 15vh, 160px); }

.steps {
  width: min(1120px, 100% - 32px);
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.steps button {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  overflow: hidden;
  padding: 12px 12px 24px;
  border: 1px solid var(--hairline);
  border-radius: 26px;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.3s;
}

.steps button:hover {
  transform: translateY(-6px);
  border-color: var(--chip);
  box-shadow: 0 30px 50px -30px rgba(1, 64, 229, 0.45);
}

.steps button::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: calc(var(--p, 0) * 100%);
  background: var(--primary);
}

.steps button[aria-current='true'] {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 30px 50px -30px rgba(1, 64, 229, 0.45);
}

.art-box {
  width: 100%;
  height: 150px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #f7f8fb;
}

.art-box img {
  width: auto;
  max-width: 82%;
  height: 128px;
  transition: transform 0.5s var(--ease);
}

.steps button:hover .art-box img { transform: translateY(-4px) scale(1.06); }

.num {
  margin-left: 8px;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.name {
  margin-left: 8px;
  color: var(--navy);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.line {
  margin: 0 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ---------------------------------------------------------- early access */
.early {
  position: relative;
  color: #fff;
}

.wave {
  display: block;
  width: 100%;
  height: clamp(50px, 7vw, 110px);
  margin-bottom: -1px;
  fill: var(--primary);
}

.early-body {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vh, 72px) var(--gutter) 0;
  background: var(--primary);
}

.early-halo {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.eh1 { width: 420px; aspect-ratio: 1; left: -160px; top: -120px; }
.eh2 { width: 300px; aspect-ratio: 1; right: 8%; bottom: -170px; }

.early-dots {
  top: 40px;
  right: 5%;
  width: 126px;
  opacity: 0.35;
}

.early-plane {
  position: absolute;
  top: 44%;
  left: 0;
  z-index: 0;
  width: 46px;
  height: 28px;
  pointer-events: none;
  animation: fly 13s linear infinite;
}

@keyframes fly {
  0% { opacity: 0; transform: translate(-60px, 50px) rotate(-14deg); }
  8% { opacity: 1; }
  50% { transform: translate(50vw, -20px) rotate(-4deg); }
  92% { opacity: 1; }
  100% { opacity: 0; transform: translate(104vw, -90px) rotate(-16deg); }
}

.early-grid {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 40px;
}

.early h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.early p {
  max-width: 540px;
  margin: 18px 0 34px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.btn-white {
  padding: 0 30px;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 18px 36px -18px rgba(0, 10, 60, 0.7);
}

.btn-white:hover { background: var(--halo); transform: translateY(-2px); }

.early-art {
  width: 100%;
  max-width: 360px;
  height: auto;
  justify-self: center;
  animation: bob 7s ease-in-out infinite;
}

.foot {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: clamp(56px, 9vh, 90px) auto 0;
  padding: 24px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
}

/* ---------------------------------------------------------------- reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.steps li:nth-child(2) { transition-delay: 0.08s; }
.steps li:nth-child(3) { transition-delay: 0.16s; }
.steps li:nth-child(4) { transition-delay: 0.24s; }
.early-art.reveal { transition-delay: 0.15s; }

/* -------------------------------------------------------------------- 404 */
.missing {
  width: min(640px, 100% - 32px);
  margin: 0 auto;
  padding: clamp(140px, 22vh, 220px) 0 120px;
  text-align: center;
}

.missing h1 { font-size: clamp(38px, 6vw, 60px); }
.missing .lead { margin: 20px auto 34px; }
.btn-solo { padding: 0 30px; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  /* The links into this page give way; the one to the features page stays. */
  .nav-links a[href^="#"] { display: none; }
  .c3 { left: -6%; }
  .c2 { right: -6%; }
}

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .blob { width: 64%; }
  .chip b { font-size: 13px; }
  .chip small { font-size: 11.5px; }
  .chip img { width: 44px; height: 37px; }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .blob { display: none; }

  .blob-top {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .nav { gap: 10px; }
  .nav-mail {
    margin-left: 0;
    padding: 9px 14px;
    background: var(--halo);
    box-shadow: none;
    font-size: 13.5px;
  }
  .lang { background: var(--halo); box-shadow: none; }
  .lang button { padding: 6px 9px; font-size: 12.5px; }
  /* Right after the brand the features link would read as part of the name, so the
     free space goes before the link instead and it sits with the language switch. */
  .nav-links { margin-left: auto; }
  .nav-links + .lang { margin-left: 0; }
  .nav-links a { font-size: 13.5px; }

  .hero-copy { padding: 108px 16px 24px; }
  h1 { font-size: clamp(40px, 11.5vw, 60px); }
  .actions { gap: 20px; }
  .hero-art { padding: 70px 26px 48px; }
  .chip { padding: 6px 12px 6px 6px; border-radius: 14px; }
  .chip img { width: 38px; height: 32px; }
  .chip b { font-size: 12px; }
  .chip small { font-size: 10.5px; }
  .c1 { left: -4%; }
  .c2 { right: -5%; }
  .c3 { left: -5%; }
  .c4 { right: -3%; }
  .deco-dots, .deco-dots2 { display: none; }
  .deco-halo { width: 140px; right: -60px; top: -50px; }
  .screen { border-width: 6px; border-radius: 20px; }
  video { border-radius: 14px; }
  .play { width: 68px; height: 68px; box-shadow: 0 0 0 8px var(--halo), 0 16px 30px -12px var(--shadow); }
  .play svg { width: 26px; height: 26px; }
  .cover-label { display: none; }
  .steps { grid-template-columns: 1fr; gap: 14px; }

  .steps button {
    display: grid;
    grid-template-columns: 116px 1fr;
    grid-template-rows: auto auto 1fr;
    column-gap: 14px;
    row-gap: 2px;
    padding: 10px 16px 16px 10px;
  }

  .art-box {
    grid-row: 1 / span 3;
    height: 100px;
    margin: 0;
  }

  .art-box img { height: 84px; }
  .num, .name { margin-left: 0; }
  .name { font-size: 19px; }
  .line { margin: 0; font-size: 14px; }
  .early-grid { grid-template-columns: 1fr; text-align: center; }
  .early p { margin-left: auto; margin-right: auto; }
  .early-art { max-width: 240px; }
}

/* The narrowest phones: the brand and the gaps tighten so the features link still fits. */
@media (max-width: 374px) {
  .nav { gap: 8px; }
  .brand { gap: 10px; font-size: 19px; }
  .nav .brand-tile { width: 38px; height: 38px; }
}

/* Under 360px the nav goes back to the brand, the language switch and the mail icon. */
@media (max-width: 359px) {
  .nav-links { display: none; }
  .nav-links + .lang { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal { opacity: 1; transform: none; }
}

.missing-art { width: 220px; height: auto; margin: 0 auto 8px; }

/* socials: the same five as linktr.ee/jobsjai, small, in the footer */
.foot-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.handle {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.socials {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s;
}

.socials svg {
  display: block;
  width: 16px;
  height: 16px;
}

.socials a:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .foot { flex-direction: column; justify-content: center; }
}
