/* ---------------------------------------------------
   Albatross — Registration Form
   Tokens
--------------------------------------------------- */
:root{
  --ink:        #1C2030;
  --navy:       #1B2033;
  --navy-deep:  #141724;
  --amber:      #EE9B2D;
  --amber-deep: #C97A1A;
  --amber-soft: #FCEBD3;
  --paper:      #05060a;
  --surface:    #FFFFFF;
  --line:       #E7E2D8;
  --slate:      #6B7280;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body:    "Inter", "Segoe UI", sans-serif;

  --radius-lg: 28px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color: inherit; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------------------------
   Entrance keyframes
--------------------------------------------------- */
@keyframes fadeSlideUp{
  from{ opacity: 0; transform: translateY(22px); }
  to{ opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft{
  from{ opacity: 0; transform: translateX(-18px); }
  to{ opacity: 1; transform: translateX(0); }
}

@keyframes fadeSlideRight{
  from{ opacity: 0; transform: translateX(18px); }
  to{ opacity: 1; transform: translateX(0); }
}

@keyframes motifFloat{
  0%, 100%{ transform: translateY(-50%) translateX(0) rotate(0deg); }
  50%{ transform: translateY(-54%) translateX(-6px) rotate(3deg); }
}

@keyframes shimmer{
  0%{ background-position: -200% 0; }
  100%{ background-position: 200% 0; }
}

@keyframes pulseGlow{
  0%{ box-shadow: 0 0 0 0 rgba(238, 155, 45, 0.35); }
  100%{ box-shadow: 0 0 0 8px rgba(238, 155, 45, 0); }
}

@keyframes auroraDrift{
  0%{ transform: translate(-6%, -8%) rotate(0deg) scale(1); }
  50%{ transform: translate(4%, 6%) rotate(8deg) scale(1.12); }
  100%{ transform: translate(-6%, -8%) rotate(0deg) scale(1); }
}

@keyframes orbFloat{
  0%, 100%{ transform: translate(0, 0) scale(1); }
  33%{ transform: translate(10px, -14px) scale(1.06); }
  66%{ transform: translate(-8px, 8px) scale(0.96); }
}

@keyframes sheenSweep{
  0%{ transform: translateX(-120%) skewX(-18deg); }
  60%, 100%{ transform: translateX(220%) skewX(-18deg); }
}

@keyframes iconPop{
  0%{ transform: scale(0) rotate(-20deg); opacity: 0; }
  60%{ transform: scale(1.2) rotate(6deg); opacity: 1; }
  100%{ transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes borderGlowSpin{
  to{ --angle: 360deg; }
}

@property --angle{
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes underlineGrow{
  from{ transform: scaleX(0); }
  to{ transform: scaleX(1); }
}

/* ---------------------------------------------------
   Layout shell
--------------------------------------------------- */
.apply{
  padding: clamp(28px, 6vw, 96px) clamp(20px, 5vw, 64px);
}

.apply__inner{
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(20, 23, 36, 0.35);
  animation: fadeSlideUp 0.7s var(--ease-out) both;
  transition: box-shadow 0.4s var(--ease-soft);
}

.apply__inner:hover{
  box-shadow: 0 36px 72px -28px rgba(20, 23, 36, 0.45);
}

/* ---------------------------------------------------
   Intro panel
--------------------------------------------------- */
.intro{
  position: relative;
  background: var(--navy);
  color: #EDEEF3;
  padding: clamp(36px, 4.5vw, 64px) clamp(30px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  animation: fadeSlideLeft 0.7s var(--ease-out) both;
  animation-delay: 0.08s;
}

/* soft aurora glow drifting behind the intro copy */
.intro::before{
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(closest-side, rgba(238, 155, 45, 0.28), transparent 70%) 15% 20% / 55% 55% no-repeat,
    radial-gradient(closest-side, rgba(120, 140, 255, 0.18), transparent 70%) 80% 75% / 50% 50% no-repeat;
  animation: auroraDrift 16s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.intro > *{ position: relative; z-index: 1; }

.intro__motif{
  position: absolute;
  top: 50%;
  right: -8%;
  width: 60%;
  max-width: 340px;
  transform: translateY(-50%);
  color: var(--amber);
  pointer-events: none;
  animation: motifFloat 7s ease-in-out infinite;
  opacity: 0.9;
}

.intro__eyebrow{
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 2.95rem;
  font-weight: 600;
  color: var(--amber);
  animation: fadeSlideUp 0.6s var(--ease-out) both;
  animation-delay: 0.18s;
}

.intro__title{
  position: relative;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 15ch;
  animation: fadeSlideUp 0.6s var(--ease-out) both;
  animation-delay: 0.26s;
}

.intro__lede{
  position: relative;
  margin: 0 0 40px;
  max-width: 38ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #C6CADA;
  animation: fadeSlideUp 0.6s var(--ease-out) both;
  animation-delay: 0.34s;
}

.intro__contact{
  position: relative;
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(237, 238, 243, 0.14);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeSlideUp 0.6s var(--ease-out) both;
  animation-delay: 0.42s;
}

.intro__contact li{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.25s var(--ease-soft);
}

.intro__contact li:hover{
  transform: translateX(4px);
}

.intro__contact svg{
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--amber);
  transition: transform 0.25s var(--ease-soft);
  animation: iconPop 0.5s var(--ease-out) both;
}

.intro__contact li:nth-child(1) svg{ animation-delay: 0.55s; }
.intro__contact li:nth-child(2) svg{ animation-delay: 0.63s; }
.intro__contact li:nth-child(3) svg{ animation-delay: 0.71s; }
.intro__contact li:nth-child(n+4) svg{ animation-delay: 0.79s; }

.intro__contact li:hover svg{
  transform: scale(1.15) rotate(-4deg);
}

.intro__label{
  display: block;
  font-size: 0.78rem;
  color: #9CA1B5;
  margin-bottom: 2px;
}

.intro__contact a{
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.intro__contact a:hover{ color: var(--amber); }

.intro__contact span:not(.intro__label){
  font-size: 0.95rem;
  line-height: 1.5;
  color: #EDEEF3;
}

/* ---------------------------------------------------
   Form card
--------------------------------------------------- */
.card{
  position: relative;
  background: var(--surface);
  padding: clamp(32px, 4vw, 56px);
  animation: fadeSlideRight 0.7s var(--ease-out) both;
  animation-delay: 0.14s;
  overflow: hidden;
}

/* two faint amber orbs drifting behind the form for depth */
.card::before,
.card::after{
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--amber-soft) 0%, transparent 72%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
.card::before{ top: -60px; right: -60px; animation: orbFloat 9s ease-in-out infinite; }
.card::after{ bottom: -80px; left: -40px; width: 260px; height: 260px; animation: orbFloat 11s ease-in-out infinite reverse; }

.card > *{ position: relative; z-index: 1; }

.card__heading{
  position: relative;
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  animation: fadeSlideUp 0.5s var(--ease-out) both;
  animation-delay: 0.3s;
  display: inline-block;
}

.card__heading::after{
  content: "";
  position: absolute;
  left: 0; bottom: -8px;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber-deep));
  transform-origin: left;
  animation: underlineGrow 0.6s var(--ease-out) both;
  animation-delay: 0.55s;
}

.form{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Staggered reveal for each field down the form.
   :nth-child covers both direct fields and fields inside .form__row,
   giving a natural cascading entrance without touching markup/logic. */
.form > *{
  animation: fadeSlideUp 0.55s var(--ease-out) both;
}
.form > *:nth-child(1){ animation-delay: 0.36s; }
.form > *:nth-child(2){ animation-delay: 0.42s; }
.form > *:nth-child(3){ animation-delay: 0.48s; }
.form > *:nth-child(4){ animation-delay: 0.54s; }
.form > *:nth-child(5){ animation-delay: 0.6s; }
.form > *:nth-child(6){ animation-delay: 0.66s; }
.form > *:nth-child(7){ animation-delay: 0.72s; }
.form > *:nth-child(8){ animation-delay: 0.78s; }
.form > *:nth-child(n+9){ animation-delay: 0.82s; }

.field{
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field label{
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
}

.field label span{
  font-weight: 400;
  color: var(--slate);
  margin-left: 4px;
}

.field input,
.field textarea,
.select select{
  width: 100%;
  font: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.15s ease, box-shadow 0.2s ease,
              background 0.15s ease, transform 0.15s var(--ease-soft);
}

.field textarea{ resize: vertical; min-height: 108px; }

.field input::placeholder,
.field textarea::placeholder{ color: #A6A196; transition: color 0.2s ease; }

.field input:hover,
.field textarea:hover,
.select select:hover{ border-color: #D6D0C2; }

.field input:focus,
.field textarea:focus,
.select select:focus{
  outline: none;
  border-color: var(--amber);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--amber-soft);
  transform: translateY(-1px);
  animation: pulseGlow 1.1s ease-out;
}

.field input:focus::placeholder,
.field textarea:focus::placeholder{ color: transparent; }

.select{ position: relative; }
.select select{
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
  color: #a09b91;
}
.select::after{
  content: "";
  position: absolute;
  top: 50%; right: 16px;
  width: 9px; height: 9px;
  border-right: 1.6px solid var(--slate);
  border-bottom: 1.6px solid var(--slate);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
  transition: transform 0.2s var(--ease-soft), border-color 0.2s ease;
}
.select select:focus ~ .select::after{ }
.select:focus-within::after{
  transform: translateY(-40%) rotate(225deg);
  border-color: var(--amber-deep);
}

/* file upload */
.upload{
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: var(--paper);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.upload:hover{
  border-color: var(--amber);
  background: var(--amber-soft);
}

.upload__button{
  flex: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease,
              transform 0.15s var(--ease-soft), box-shadow 0.15s ease;
}
.upload__button:hover{
  border-color: var(--amber-deep);
  color: var(--amber-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -8px rgba(201, 122, 26, 0.5);
}
.upload__button:active{ transform: translateY(0); }

.upload__name{
  font-size: 0.88rem;
  color: #9b968c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* submit */
.submit{
  position: relative;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: #211405;
  background: var(--amber);
  border: none;
  border-radius: var(--radius-sm);
  padding: 15px 24px;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.15s var(--ease-soft), box-shadow 0.2s ease;
  animation: fadeSlideUp 0.55s var(--ease-out) both, pulseGlow 2.4s ease-out 1.4s 2;
}

/* a soft diagonal sheen that sweeps across the button on a loop */
.submit::before{
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 45%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: sheenSweep 3.2s ease-in-out 2s infinite;
  pointer-events: none;
}

.submit span,
.submit svg{ position: relative; z-index: 1; }

.submit svg{ width: 18px; height: 18px; transition: transform 0.15s ease; }

.submit:hover{
  background: var(--amber-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(201, 122, 26, 0.65);
}
.submit:hover svg{ transform: translateX(3px); }

.submit:active{ transform: translateY(1px); box-shadow: none; }

.submit:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible,
.select select:focus-visible,
.upload__button:focus-visible{
  outline: 2px solid var(--amber-deep);
  outline-offset: 2px;
}

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */
@media (max-width: 900px){
  .apply__inner{
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
  }
  .intro{ padding: 40px 28px; }
  .intro__title{ max-width: 100%; }
  .intro__lede{ max-width: 100%; }
  .intro__motif{ opacity: 0.5; right: -18%; }
  .card{ padding: 32px 28px; }
}

@media (max-width: 560px){
  .apply{ padding: 0; }
  .apply__inner{ border-radius: 0; box-shadow: none; }
  .form__row{ grid-template-columns: 1fr; gap: 20px; }
  .intro{ padding: 32px 22px; }
  .card{ padding: 28px 22px; }
  .upload{ flex-wrap: wrap; }
  .submit{ width: 100%; }
  .intro_eyebrow{ font-size: 0.5rem; }
}