/* ==========================================================================
   Sublime Talent Management LTD — stalent.life
   Stylesheet. Colours and type are set once in :root; change them there.
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Palette — sampled from the logo */
  --teal-deep: #0b2a2f;      /* page background */
  --teal: #123b42;           /* logo disc; panels */
  --teal-raised: #174850;    /* inputs, hover */
  --gold: #dcbc37;           /* foil mid-tone */
  --gold-pale: #f1d96d;      /* foil highlight */
  --gold-burnt: #a57c0e;     /* foil shadow */
  --ivory: #f4eedc;          /* body text */
  --mist: #9fb9b5;           /* secondary text */
  --rule: rgba(220, 188, 55, 0.24);

  --foil: linear-gradient(115deg, var(--gold-burnt) 0%, var(--gold) 28%, var(--gold-pale) 50%, var(--gold) 72%, var(--gold-burnt) 100%);

  /* Type */
  --display: "Marcellus", "Trajan Pro", Georgia, serif;
  --body: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  /* Scale (classical ratio, rounded) */
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --space-section: clamp(5rem, 10vw, 9rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--teal-deep);
  color: var(--ivory);
  font-family: var(--body);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold-pale); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--gold); color: var(--teal-deep); }

[id] { scroll-margin-top: 5.5rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--teal-deep); padding: 0.6rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.1rem; padding: 0.75rem 1.6rem;
  font: 500 0.95rem/1 var(--body); letter-spacing: 0.04em;
  text-decoration: none; border-radius: 999px; cursor: pointer; border: 0;
  transition: background-position 0.6s var(--ease-out), box-shadow 0.3s, transform 0.2s;
}
.btn--gold {
  color: var(--teal-deep);
  background: var(--foil); background-size: 220% 100%; background-position: 0% 0;
  box-shadow: 0 0 0 1px rgba(241, 217, 109, 0.4), 0 10px 30px -12px rgba(220, 188, 55, 0.55);
}
.btn--gold:hover { background-position: 100% 0; }
.btn--gold:active { transform: translateY(1px); }
.btn--quiet {
  color: var(--gold-pale); background: transparent;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.btn--quiet:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.btn--small { min-height: 2.5rem; padding: 0.55rem 1.15rem; font-size: 0.875rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.site-header.is-scrolled {
  background: rgba(11, 42, 47, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: 4.75rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img { width: 2.6rem; height: 2.6rem; object-fit: contain; }
.brand span {
  font-family: var(--display); font-size: 1.2rem; letter-spacing: 0.02em;
  color: var(--gold); /* fallback */
  background: var(--foil); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) {
  text-decoration: none; font-size: 0.95rem; color: var(--mist);
  transition: color 0.2s;
}
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--gold-pale); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; align-items: center;
  background:
    radial-gradient(ellipse 60% 70% at 72% 50%, rgba(18, 59, 66, 0.95) 0%, rgba(11, 42, 47, 0) 70%),
    var(--teal-deep);
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: 2rem;
  padding-block: 7rem 4rem;
}
.hero__copy { max-width: 34rem; }
.hero__wordmark { width: min(100%, 25rem); margin-bottom: 2rem; margin-left: -0.4rem; }
.hero h1 { font-size: var(--step-4); }
.hero__lede { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.55; color: var(--mist); max-width: 31rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.5rem; }
.hero__place {
  position: absolute; z-index: 2; left: calc((100% - min(100% - 2 * var(--gutter), var(--wrap))) / 2); bottom: 2rem;
  font-size: var(--step--1); color: var(--mist); letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 0.6rem;
}
.hero__place::before { content: ""; width: 2.5rem; height: 1px; background: var(--gold); opacity: 0.7; }

/* The orbit: three stacked layers from the logo PSD, all 1:1 and centred */
.orbit {
  position: relative; justify-self: end;
  width: min(88vh, 50vw, 46rem); aspect-ratio: 1;
  margin-right: calc(-1 * clamp(2rem, 6vw, 7rem));
  transform: translate3d(var(--px, 0), var(--py, 0), 0) rotate(var(--scroll-turn, 0deg));
  transition: transform 0.9s var(--ease-out);
}
.orbit::before { /* soft halo */
  content: ""; position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 188, 55, 0.22) 0%, rgba(220, 188, 55, 0) 68%);
  filter: blur(20px);
}
.orbit__layer { position: absolute; inset: 0; }
.orbit__layer img { width: 100%; height: 100%; }
.orbit__disc {
  position: absolute; inset: 23.6%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #1a4c54 0%, var(--teal) 55%, #0e3238 100%);
  box-shadow: 0 0 60px -10px rgba(220, 188, 55, 0.35), inset 0 0 40px rgba(0, 0, 0, 0.35);
}

/* Load sequence (one orchestrated moment), then slow continuous spin */
.orbit__petals  { animation: petals-in 2.2s var(--ease-out) 0.25s both; }
.orbit__petals img   { animation: spin 320s linear infinite; }
.orbit__geometry { animation: geometry-in 2.4s var(--ease-out) both; }
.orbit__geometry img { animation: spin 210s linear infinite reverse; }
.orbit__disc { animation: fade-in 1.4s ease-out both; }
.hero__wordmark { animation: write-in 1.6s var(--ease-out) 0.9s both; }
.hero h1, .hero__lede, .hero__actions { animation: rise-in 1.2s var(--ease-out) both; }
.hero h1 { animation-delay: 1.25s; }
.hero__lede { animation-delay: 1.4s; }
.hero__actions { animation-delay: 1.55s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes petals-in { from { opacity: 0; transform: scale(0.82) rotate(-30deg); } }
@keyframes geometry-in { from { opacity: 0; transform: scale(0.6) rotate(90deg); } }
@keyframes write-in { from { clip-path: inset(0 100% 0 0); opacity: 0.3; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); position: relative; }
.section__head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head h2 { font-size: var(--step-3); }
.section__head p { margin-top: 1.25rem; color: var(--mist); font-size: var(--step-1); line-height: 1.6; }

/* Who we represent: the disciplines set as one run of display type */
.represent { border-top: 1px solid var(--rule); }
.disciplines {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 1.1rem; row-gap: 0.4rem;
  font-family: var(--display); font-size: var(--step-3); line-height: 1.3;
}
.disciplines li { display: inline-flex; align-items: center; gap: 1.1rem; }
.disciplines li + li::before {
  content: ""; width: 0.42em; height: 0.42em; flex: none;
  border: 1px solid var(--gold); border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0 22%, transparent 26%);
}

/* Services */
.services { background: linear-gradient(180deg, var(--teal-deep) 0%, #0f343a 45%, var(--teal-deep) 100%); }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.service {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem 3rem; padding-block: 2.75rem; border-bottom: 1px solid var(--rule);
}
.service__icon { width: 4.5rem; height: 4.5rem; color: var(--gold); }
.service h3 { font-size: var(--step-2); }
.service__intro p { margin-top: 0.9rem; color: var(--mist); max-width: 30rem; }
.service ul { list-style: none; margin: 0; padding: 0.35rem 0 0; display: grid; gap: 0.75rem; align-content: start; }
.service li { position: relative; padding-left: 1.6rem; }
.service li::before {
  content: ""; position: absolute; left: 0; top: 0.7em; width: 0.9rem; height: 1px; background: var(--gold);
}
.services__note { margin-top: 2rem; font-size: var(--step--1); color: var(--mist); max-width: 46rem; }

/* Method: a genuine four-step sequence along an orbit line */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem;
  position: relative;
}
.steps::before { /* the line the steps sit on; draws once in view */
  content: ""; position: absolute; left: 0.55rem; right: 0; top: 0.55rem; height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(220, 188, 55, 0.15));
  transform-origin: left; transform: scaleX(0); transition: transform 1.8s var(--ease-out);
}
.steps.is-visible::before { transform: scaleX(1); }
.step { position: relative; padding-top: 2.6rem; counter-increment: step; }
.step::before {
  content: ""; position: absolute; left: 0; top: 0; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--teal-deep); border: 1px solid var(--gold);
  box-shadow: 0 0 0 4px var(--teal-deep), 0 0 18px rgba(220, 188, 55, 0.45);
}
.step::after {
  content: ""; position: absolute; left: 0.35rem; top: 0.35rem; width: 0.4rem; height: 0.4rem;
  border-radius: 50%; background: var(--gold);
}
.step__num { font-family: var(--display); color: var(--gold); font-size: var(--step-1); }
.step h3 { font-size: var(--step-2); margin-top: 0.25rem; }
.step p { margin-top: 0.75rem; color: var(--mist); }

/* Closing band */
.closing { overflow: hidden; text-align: center; border-top: 1px solid var(--rule); }
.closing__mandala {
  position: absolute; left: 50%; top: 50%; width: min(80rem, 190vw); aspect-ratio: 1;
  translate: -50% -50%; opacity: 0.13; pointer-events: none;
}
.closing__mandala img { width: 100%; animation: spin 400s linear infinite; }
.closing .wrap { position: relative; max-width: 44rem; }
.closing h2 { font-size: var(--step-3); }
.closing p { margin: 1.4rem auto 0; color: var(--mist); font-size: var(--step-1); max-width: 34rem; }
.closing .btn { margin-top: 2.5rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 3.5rem 2.5rem; font-size: var(--step--1); color: var(--mist); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.site-footer__brand img { width: 11rem; margin-bottom: 1rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer h2 { font-family: var(--body); font-size: var(--step--1); font-weight: 500; color: var(--ivory); margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-pale); }
.site-footer__base {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
}

/* ---------- Inner pages (contact, privacy, 404) ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: 10rem 3.5rem; }
.page-hero__mandala {
  position: absolute; right: -14rem; top: -10rem; width: 46rem; aspect-ratio: 1;
  opacity: 0.16; pointer-events: none;
}
.page-hero__mandala img { width: 100%; animation: spin 260s linear infinite reverse; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; }
.page-hero p { margin-top: 1.25rem; font-size: var(--step-1); color: var(--mist); max-width: 36rem; }

.contact { padding-bottom: var(--space-section); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.25rem; }
.field { display: grid; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 0.95rem; font-weight: 400; color: var(--ivory); }
.field .hint { color: var(--mist); font-weight: 300; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-weight: 300; color: var(--ivory);
  background: var(--teal); border: 1px solid rgba(159, 185, 181, 0.28); border-radius: 0.5rem;
  padding: 0.85rem 1rem; transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%;
  background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.5rem;
}
.field select option { background: var(--teal); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(220, 188, 55, 0.5); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: var(--teal-raised);
  box-shadow: 0 0 0 3px rgba(220, 188, 55, 0.18);
}
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: #e2836f; }
.consent { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: start; font-size: 0.95rem; color: var(--mist); }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--gold); }
.consent a { color: var(--gold-pale); }
.form__submit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__status { font-size: 0.95rem; }
.form__status[data-state="success"] { color: var(--gold-pale); }
.form__status[data-state="error"] { color: #f0a493; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.honeypot { display: none !important; }

.form-sent {
  grid-column: 1 / -1; padding: 2rem; border-radius: 0.75rem;
  border: 1px solid var(--rule); background: rgba(18, 59, 66, 0.6);
}
.form-sent h2 { font-size: var(--step-2); }
.form-sent p { margin-top: 0.75rem; color: var(--mist); }

.office { padding: 2rem; border-radius: 0.75rem; background: var(--teal); border: 1px solid var(--rule); }
.office h2 { font-size: var(--step-2); }
.office address { font-style: normal; margin-top: 1rem; line-height: 1.75; }
.office p { margin-top: 1.25rem; color: var(--mist); font-size: 0.95rem; }
.office a { color: var(--gold-pale); }

.prose { max-width: 42rem; padding-bottom: var(--space-section); }
.prose h2 { font-size: var(--step-2); margin-top: 2.75rem; }
.prose p, .prose ul { margin-top: 1rem; color: var(--mist); }
.prose li + li { margin-top: 0.4rem; }
.prose a { color: var(--gold-pale); }

.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; }
.lost__mandala { position: absolute; width: min(42rem, 120vw); aspect-ratio: 1; opacity: 0.18; }
.lost__mandala img { width: 100%; animation: spin 200s linear infinite; }
.lost .wrap { position: relative; }
.lost h1 { font-size: var(--step-4); }
.lost p { margin: 1.25rem auto 0; color: var(--mist); max-width: 30rem; }
.lost .hero__actions { justify-content: center; animation: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: 6rem 6rem; gap: 0; }
  .orbit { order: -1; justify-self: center; width: min(84vw, 28rem); margin: 0 0 1.5rem; }
  .hero__copy { max-width: none; }
  .hero__wordmark { width: min(78%, 20rem); }
  .service { grid-template-columns: 4rem minmax(0, 1fr); }
  .service__icon { width: 3.5rem; height: 3.5rem; }
  .service ul { grid-column: 2; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .steps::before { display: none; }
  .contact__grid { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .brand span { display: none; }
  .hero__place { display: none; }
  .service { grid-template-columns: 1fr; gap: 1rem; }
  .service ul { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* Respect visitors who turn animation off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .steps::before { transform: scaleX(1); }
  .orbit { transform: none; }
}
