/* ============================================================
   YUZO'S BAR — Centifolia Group / careers
   Deep midnight ground, white type, starlight-yellow brand & actions.
   ============================================================ */

:root {
  --bg:      #0E0F14;
  --surface: #161822;

  --text:    #FFFFFF;
  --text-2:  rgba(255, 255, 255, 0.72);
  --muted:   rgba(255, 255, 255, 0.52);
  --rule:    rgba(255, 255, 255, 0.14);

  --star:    #F3E5A3;   /* starlight yellow — brand + actions */

  --sans: "Figtree", "Nunito Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;      /* nothing may push the page sideways */
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

/* The browser's default figure margin would break the seamless triptych. */
figure { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--star);
  outline-offset: 3px;
}

/* ---------- shared type roles ---------- */

.display {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

/* The house name, wherever it appears */
.brand { color: var(--star); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9375rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.masthead__mark {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--star);
  white-space: nowrap;
}

.masthead__nav {
  display: flex;
  align-items: center;
  gap: clamp(0.875rem, 3vw, 2rem);
}

.masthead__link {
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.masthead__link:hover,
.masthead__link[aria-current="page"] { color: var(--text); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.9375rem 1.5rem;
  border: 1px solid var(--star);
  border-radius: 8px;
  background: var(--star);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  background: transparent;
  color: var(--star);
}

.btn__arrow { transition: transform 0.3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============================================================
   1. Hero — compact, centred, so the triptych is above the fold
   ============================================================ */

.hero {
  padding-block: clamp(2.75rem, 7vh, 4.5rem) clamp(2.25rem, 5vh, 3.25rem);
  text-align: center;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero__title {
  font-size: clamp(1.875rem, 4.2vw, 3.5rem);
  max-width: 32ch;
}

.hero__note {
  max-width: 52ch;
  margin: 0;
  color: var(--text-2);
  font-size: 1rem;
}

.hero__cta { margin-top: 0.5rem; }

/* ---------- seamless triptych ---------- */

.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  line-height: 0;
  background: var(--surface);
}

.triptych__panel {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.triptych__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   2. Rooms
   ============================================================ */

.rooms { padding-block: clamp(3.5rem, 10vh, 6.5rem) clamp(3.5rem, 9vh, 6rem); }

.rooms__head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto clamp(2.5rem, 6vh, 4rem);
}

.rooms__title { font-size: clamp(1.75rem, 3.8vw, 3rem); }

.rooms__intro {
  margin: 1rem 0 0;
  color: var(--text-2);
}

.rooms__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 3.5vw, 3rem) clamp(1.25rem, 2.2vw, 2rem);
}

.room {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.room__frame {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 1.125rem;
  transition: transform 0.4s var(--ease);
}

.room:hover .room__frame { transform: translateY(-3px); }

.room__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Per-card tuning: set --focus on the card to move the crop window. */
  object-position: center var(--focus, 50%);
}

.room__city {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.room__copy {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.rooms__cta {
  display: flex;
  justify-content: center;
  padding-top: clamp(2.75rem, 7vh, 4.5rem);
}

/* ============================================================
   Footer — legal only
   ============================================================ */

.footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Operating-company notice: long, so it is set small and given a measure
   rather than running the full width of the page. */
.footer__note {
  display: grid;
  gap: 0.5rem;
  max-width: 92ch;
}

.footer__note p {
  font-size: 0.75rem;
  line-height: 1.6;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer a,
.footer p {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  margin: 0;
  transition: color 0.25s var(--ease);
}

.footer a:hover { color: var(--text); }

/* ============================================================
   Page 2 — Apply
   ============================================================ */

.plate {
  position: relative;
  height: 60vh;
  min-height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface);
  text-align: center;
}

.plate__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 15, 20, 0.72),
    rgba(14, 15, 20, 0.62) 45%,
    rgba(14, 15, 20, 0.92)
  );
}

.plate__inner {
  position: relative;
  padding-inline: var(--gutter);
}

.plate__title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  color: var(--star);
}

.plate__kicker { margin-bottom: 0.875rem; }

/* ---------- eligibility notes ---------- */

.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding-block: clamp(3rem, 8vh, 5rem) 0;
}

.note {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.note__label { margin-bottom: 1rem; }

.note__title {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.875rem;
}

.note__copy {
  margin: 0 0 0.75rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.note__copy:last-child { margin-bottom: 0; }

.note__body[hidden] { display: none; }

/* The opening line carries the point; the paragraph under it explains. */
.note__lead {
  color: var(--text);
  font-weight: 600;
}

/* ---------- form ---------- */

.apply { padding-block: clamp(3rem, 8vh, 5rem) clamp(3.5rem, 9vh, 6rem); }

.apply__head {
  padding-bottom: clamp(1.5rem, 4vh, 2.25rem);
  margin-bottom: clamp(1rem, 3vh, 1.5rem);
  border-bottom: 1px solid var(--rule);
}

.apply__title {
  font-size: clamp(1.625rem, 3.2vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.apply__sub {
  margin: 0;
  color: var(--text-2);
  max-width: 52ch;
}

.form { max-width: 900px; }

.field {
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3.5vh, 2.25rem) 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
}

/* Work-authorization fields appear only once a city implies them. */
.field[hidden] { display: none; }

.field__head { padding-top: 0.25rem; }

.field__label {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 0.25rem;
}

.field__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.chip { position: relative; }

.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.chip span {
  display: block;
  padding: 0.6875rem 1.125rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.chip:hover span {
  border-color: var(--star);
  color: var(--text);
}

.chip input:checked + span {
  background: var(--star);
  border-color: var(--star);
  color: var(--bg);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--star);
  outline-offset: 3px;
}

.textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text);
  resize: vertical;
  transition: border-color 0.2s var(--ease);
}

.textarea::placeholder { color: var(--muted); }
.textarea:focus { border-color: var(--star); outline: none; }

.upload {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  max-width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px dashed var(--rule);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.upload:hover { border-color: var(--star); color: var(--text); }

/* Clipped rather than display:none — a required control the browser cannot
   render is one it cannot anchor a validation message to. */
.upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.upload__input:focus-visible + .upload {
  outline: 2px solid var(--star);
  outline-offset: 3px;
}

.upload__name {
  margin: 0.625rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.upload__name[data-problem="true"] { color: #FF8A80; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  padding-top: clamp(1.5rem, 4vh, 2.25rem);
}

.form__legal {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 36ch;
}

.form__done {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--star);
  border-radius: 8px;
  color: var(--star);
  font-size: 0.875rem;
  font-weight: 600;
}

.form__done[data-visible="true"] { display: inline-flex; }

/* ============================================================
   Motion
   ============================================================ */

/* Scroll reveal only runs when the script is alive — without it, everything
   is simply visible. */
.js .rise {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js .rise.is-in {
  opacity: 1;
  transform: none;
}

/* The triptych is above the fold, so it wipes in on load, not on scroll. */
.panel-in {
  animation: panel-in 0.9s var(--ease) both;
  animation-delay: var(--delay, 0ms);
}

@keyframes panel-in {
  from { clip-path: inset(100% 0 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1000px) {
  .rooms__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notes { grid-template-columns: 1fr; }
}

/* ---------- phones ---------- */

@media (max-width: 640px) {
  :root { --gutter: 20px; }   /* a hard 20px margin down both edges */

  /* Buttons stay a deliberate size instead of stretching edge to edge. */
  .btn { width: min(280px, 100%); }

  /* Hero keeps its centred setting, just narrower. */
  .hero { padding-top: clamp(2rem, 5vh, 3rem); }

  /* Wrapping early keeps air at both edges instead of running to the margin. */
  .hero__title {
    font-size: 1.625rem;
    max-width: 16ch;
  }

  .hero__note {
    font-size: 0.9375rem;
    max-width: 30ch;
  }

  /* One frame carries the opening on a phone — three squares side by side
     collapse into an unreadable strip. */
  .triptych { grid-template-columns: 1fr; }
  .triptych__panel:first-child,
  .triptych__panel:last-child { display: none; }

  /* Rooms stack as centred cards. */
  .rooms { padding-top: clamp(2.5rem, 7vh, 4rem); }

  .rooms__title { font-size: 1.625rem; }
  .rooms__intro { font-size: 0.9375rem; }

  .rooms__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* One plate per city: the photo is the card, the text sits on top of it. */
  .room {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    text-align: left;
  }

  .room__frame {
    width: 100%;
    margin-bottom: 0;
    border-radius: 0;
  }

  .room:hover .room__frame { transform: none; }

  .room__text {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 3rem 1.25rem 1.25rem;
    background: linear-gradient(
      to top,
      rgba(14, 15, 20, 0.95) 25%,
      rgba(14, 15, 20, 0.78) 55%,
      rgba(14, 15, 20, 0)
    );
  }

  .room__copy { font-size: 0.8rem; }

  /* Form */
  .field { grid-template-columns: 1fr; gap: 0.875rem; }
  .form__foot { align-items: flex-start; }
  .form__legal { max-width: none; }
  .upload { width: 100%; }

  /* A shorter opening frame so the form is a swipe away, not a scroll. */
  .plate {
    height: 38vh;
    min-height: 260px;
  }

  .plate__title { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .rise { opacity: 1; transform: none; }
  .panel-in { animation: none; }
}

/* ============================================================
   Form — text inputs, phone, consent
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.input,
.select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text);
  transition: border-color 0.2s var(--ease);
}

.input::placeholder { color: var(--muted); }

.input:focus,
.select:focus {
  border-color: var(--star);
  outline: none;
}

/* The native menu paints on the OS surface, so the options need their own
   colours to stay readable against this ground. */
.select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%),
                    linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: right 1.15rem center, right 0.85rem center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.select option {
  background: var(--surface);
  color: var(--text);
}

/* Placeholder option reads as a placeholder until a code is picked. */
.select:invalid { color: var(--muted); }

.phone {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 0.625rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.1875rem 0 0;
  accent-color: var(--star);
  cursor: pointer;
}

.consent__text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-2);
}

.consent__text a {
  color: var(--star);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .phone { grid-template-columns: 1fr; }
  .languages__row { grid-template-columns: 1fr; gap: 0.375rem; }
  .languages__name { padding-top: 0; }
}

/* Dates and short selects do not need the full column width. */
.input--short { max-width: 260px; }

.date {
  position: relative;
  max-width: 260px;
}

/* Empty and unfocused: the native mask is painted out and ours takes its
   place. Colouring the input itself covers WebKit and Gecko alike, and leaves
   the calendar icon — an image, not text — where it is. */
.date[data-empty="true"] .input { color: transparent; }

.date__mask {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9375rem;
  color: var(--muted);
  pointer-events: none;
}

.date[data-empty="false"] .date__mask { display: none; }

/* Supporting copy that belongs above the control rather than beside it. */
.field__note {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 62ch;
}

.field__hint--under {
  margin-top: 0.625rem;
  max-width: 62ch;
}

.languages {
  display: grid;
  gap: 0.75rem;
}

.languages__row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  max-width: 420px;
}

.languages__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
}

/* ============================================================
   Legal documents
   ============================================================ */

.doc {
  padding-block: clamp(3rem, 8vh, 5rem) clamp(3.5rem, 9vh, 6rem);
  max-width: 76ch;
}

.doc__head {
  padding-bottom: clamp(1.5rem, 4vh, 2.25rem);
  margin-bottom: clamp(1.5rem, 4vh, 2.25rem);
  border-bottom: 1px solid var(--rule);
}

.doc__title { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }

.doc__standfirst {
  margin: 1rem 0 0;
  color: var(--text-2);
}

.doc h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 2.5rem 0 0.75rem;
}

.doc h2:first-of-type { margin-top: 0; }

.doc h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

.doc p,
.doc li {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.doc p { margin: 0 0 1rem; }

.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.doc li { margin-bottom: 0.375rem; }

.doc a {
  color: var(--star);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc__meta {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Netlify honeypot: present in the DOM for bots, gone for everyone else. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__error {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.125rem;
  border: 1px solid rgba(255, 138, 128, 0.65);
  border-radius: 8px;
  color: #FF8A80;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

.form__error[data-visible="true"] { display: inline-flex; }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
