/* ==========================================================================
   Amami Italia — Careers
   Palette, the two faces and the type treatment are taken from
   amami.etherealpr.com. The layout is this page's own: a wide desktop grid
   rather than that page's 660px single column.
   ========================================================================== */

:root{
  --charcoal:#1A1917;
  --beige:#EAE6D9;
  --mist:#CFD6E5;
  --tuscan:#3A2A1F;
  --rare:#7C302C;
  --rose:#C8837E;
  --rule:rgba(234,230,217,.22);
  --rule-soft:rgba(234,230,217,.10);
  --pad:clamp(22px,4vw,56px);
}

*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
html{scroll-behavior:smooth;}

body{
  background:var(--charcoal);
  color:var(--beige);
  font-family:'Poppins',sans-serif;
  font-weight:300;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}

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

/* ---------- folio rails — only where there is margin to spare ---------- */
.folio{display:none;}
@media (min-width:1280px){
  .folio{
    position:fixed;top:0;bottom:0;width:64px;
    display:flex;align-items:center;justify-content:center;
    font-size:9px;letter-spacing:.34em;text-transform:uppercase;
    color:rgba(234,230,217,.35);pointer-events:none;z-index:2;
  }
  .folio span{writing-mode:vertical-rl;}
  .folio-l{left:0;}
  .folio-l span{transform:rotate(180deg);}
  .folio-r{right:0;}
}

/* ---------- shell ----------
   The page itself is full width. Sections carry their own inset so a photo
   band can break out to the screen edges between them. */
.page{
  width:100%;margin:0;padding:0 0 clamp(56px,7vw,96px);
  position:relative;z-index:1;
}
.inset{
  width:100%;
  padding-inline:var(--pad);
  margin-inline:auto;
  max-width:1680px;
}

.eyebrow{
  font-size:10px;letter-spacing:.32em;text-transform:uppercase;
  color:rgba(234,230,217,.55);margin:0;
}

/* ---------- hero: full bleed ---------- */
.hero{
  position:relative;
  min-height:min(74vh,660px);
  display:flex;align-items:flex-end;
  padding:clamp(40px,7vw,90px) var(--pad) clamp(34px,5vw,64px);
  overflow:hidden;isolation:isolate;
}
.hero__bg{
  position:absolute;inset:0;z-index:-2;
  width:100%;height:100%;object-fit:cover;object-position:50% 46%;
}
.hero::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:
    linear-gradient(180deg,rgba(26,25,23,.62) 0%,rgba(26,25,23,.28) 38%,rgba(26,25,23,.92) 100%),
    linear-gradient(90deg,rgba(26,25,23,.72) 0%,rgba(26,25,23,0) 62%);
}
.hero__inner{width:100%;max-width:1680px;margin-inline:auto;}
.edition{
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  margin-bottom:clamp(96px,18vh,200px);
}

h1{
  font-family:'Cormorant Garamond',serif;font-weight:300;
  font-size:clamp(42px,5.6vw,78px);line-height:1;letter-spacing:.005em;
  margin:0 0 20px;
  max-width:17ch;          /* a long headline ran the full hero width */
}
h1 em,h2 em{font-style:italic;font-weight:300;}

.standfirst{
  font-size:14px;line-height:1.85;max-width:44ch;
  color:rgba(234,230,217,.9);margin:0 0 30px;
}
.hero h1,.hero .standfirst{text-shadow:0 1px 26px rgba(26,25,23,.55);}

.cta{
  display:inline-block;
  font-size:10.5px;letter-spacing:.24em;text-transform:uppercase;
  color:var(--beige);text-decoration:none;
  border:1px solid rgba(234,230,217,.5);padding:15px 26px;
  background:rgba(26,25,23,.25);backdrop-filter:blur(3px);
  transition:background .22s ease,color .22s ease,border-color .22s ease;
}
.cta:hover{background:var(--beige);border-color:var(--beige);color:var(--charcoal);}
.cta:focus-visible{outline:2px solid var(--mist);outline-offset:3px;}

/* ---------- full-bleed photo band ---------- */
.band{margin:clamp(44px,5.5vw,84px) 0 0;}
.band picture{display:block;}
.band img{
  width:100%;height:clamp(180px,26vw,330px);
  object-fit:cover;object-position:50% 42%;
}

/* ---------- sections ---------- */
.section{padding-top:clamp(44px,5.5vw,84px);}
.section__head{margin-bottom:clamp(24px,3vw,40px);}
.section__head .eyebrow{margin-bottom:14px;}

h2{
  font-family:'Cormorant Garamond',serif;font-weight:300;
  font-size:clamp(32px,4.6vw,54px);line-height:1;letter-spacing:.005em;margin:0;
}

/* ---------- open positions ---------- */
.posgrid{
  display:grid;grid-template-columns:1fr;
  gap:clamp(14px,1.6vw,22px);
}

.pos{
  border:1px solid var(--rule);
  padding:clamp(18px,2vw,26px) clamp(20px,2.2vw,30px);
  display:grid;grid-template-columns:1fr;gap:14px;
}

/* Wide: a listing row — role and blurb left, facts centre, action right. */
@media (min-width:880px){
  .pos{
    grid-template-columns:minmax(240px,1.3fr) minmax(240px,1fr) auto;
    grid-template-areas:
      "title facts apply"
      "note  facts apply";
    align-items:center;
    column-gap:clamp(28px,4vw,72px);
    row-gap:10px;
  }
  .pos h3{grid-area:title;}
  .pos__facts{grid-area:facts;}
  .pos__note{grid-area:note;align-self:start;}
  .pos__apply{grid-area:apply;align-self:center;}
}
.pos h3{
  font-family:'Cormorant Garamond',serif;font-weight:400;
  font-size:clamp(26px,2.6vw,32px);line-height:1.1;margin:0;
  display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;
}
.pos__abbr{
  font-family:'Poppins',sans-serif;font-size:9.5px;font-weight:400;
  letter-spacing:.2em;color:rgba(234,230,217,.5);
  border:1px solid var(--rule);padding:4px 8px;
}
/* Urgency flag, sits beside the role name inside the h3. */
.pos__tag{
  font-family:'Poppins',sans-serif;font-size:9.5px;font-weight:400;
  letter-spacing:.18em;text-transform:uppercase;white-space:nowrap;
  background:var(--rare);color:var(--beige);padding:5px 10px;
}

.pos__facts{margin:0;display:grid;gap:10px;}
.pos__facts > div{
  display:flex;justify-content:space-between;gap:14px;align-items:baseline;
  border-bottom:1px solid var(--rule-soft);padding-bottom:9px;
}
.pos__facts > div:last-child{border-bottom:none;padding-bottom:0;}
.pos__facts dt{
  font-size:9.5px;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(234,230,217,.45);
}
.pos__facts dd{margin:0;font-size:13px;color:rgba(234,230,217,.88);text-align:right;}

.pos__note{
  margin:0;font-size:11.5px;line-height:1.65;color:rgba(234,230,217,.5);
  flex:1;
}

.pos__apply{
  align-self:flex-start;
  font-family:'Poppins',sans-serif;font-size:10.5px;font-weight:400;
  letter-spacing:.24em;text-transform:uppercase;
  color:var(--beige);background:transparent;border:1px solid var(--rule);
  padding:14px 28px;cursor:pointer;border-radius:0;
  transition:background .22s ease,color .22s ease,border-color .22s ease;
}
.pos__apply:hover{background:var(--beige);border-color:var(--beige);color:var(--charcoal);}
.pos__apply:focus-visible{outline:2px solid var(--mist);outline-offset:2px;}

/* ---------- form ---------- */
.fgrid{
  display:grid;grid-template-columns:1fr;
  gap:clamp(18px,2.2vw,28px) clamp(20px,2.6vw,44px);
}
@media (min-width:700px){
  .fgrid{grid-template-columns:1fr 1fr;max-width:940px;}
}
@media (min-width:1200px){
  /* Three across keeps the form wide without turning it into a spreadsheet. */
  .fgrid{grid-template-columns:1fr 1fr 1fr;max-width:1320px;}
}
.f{display:flex;flex-direction:column;gap:7px;}
.f--wide{grid-column:1/-1;}

.f label{
  font-size:9.5px;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(234,230,217,.55);
}
.opt{letter-spacing:.14em;color:rgba(234,230,217,.34);text-transform:none;font-size:9.5px;}

.f input[type=text],.f input[type=email],.f input[type=tel],
.f input[type=date],.f select,.f textarea{
  width:100%;background:transparent;border:none;
  border-bottom:1px solid var(--rule);
  color:var(--beige);
  font-family:'Poppins',sans-serif;font-weight:300;
  font-size:16px;              /* 16px or iOS zooms the page on focus */
  padding:9px 0 11px;border-radius:0;
  transition:border-color .25s ease;
}
.f textarea{resize:vertical;min-height:44px;line-height:1.7;}
.f select{
  appearance:none;-webkit-appearance:none;cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,rgba(234,230,217,.5) 50%),
                   linear-gradient(135deg,rgba(234,230,217,.5) 50%,transparent 50%);
  background-position:calc(100% - 11px) 19px,calc(100% - 6px) 19px;
  background-size:5px 5px,5px 5px;background-repeat:no-repeat;
  padding-right:26px;
}
.f select option{background:var(--charcoal);color:var(--beige);}
::placeholder{color:rgba(234,230,217,.26);}
.f input:focus,.f select:focus,.f textarea:focus{
  outline:none;border-bottom-color:var(--mist);
}
/* The date control paints its own dark-on-dark glyph in Safari/Chrome. */
input[type=date]::-webkit-calendar-picker-indicator{filter:invert(.85);cursor:pointer;}
input[type=date]::-webkit-datetime-edit{color:var(--beige);}

/* ---------- resume drop zone ---------- */
.drop{
  position:relative;border:1px dashed var(--rule);
  padding:22px 18px;text-align:center;cursor:pointer;
  transition:border-color .22s ease,background .22s ease;
}
.drop:hover,.drop.is-over{border-color:var(--mist);background:rgba(234,230,217,.04);}
.drop.is-set{border-style:solid;border-color:rgba(234,230,217,.45);}
.drop input[type=file]{
  position:absolute;inset:0;width:100%;height:100%;
  opacity:0;cursor:pointer;
}
.drop__label{
  margin:0;font-size:11.5px;line-height:1.6;
  color:rgba(234,230,217,.5);pointer-events:none;
}
.drop.is-set .drop__label{color:var(--beige);}

/* ---------- consent + submit ---------- */
.consent{
  display:grid;grid-template-columns:22px 1fr;gap:14px;align-items:start;
  margin-top:clamp(26px,3vw,38px);cursor:pointer;padding:9px 0;
}
.consent input{
  appearance:none;-webkit-appearance:none;width:19px;height:19px;margin:2px 0 0;
  border:1px solid var(--rule);background:transparent;cursor:pointer;
  border-radius:0;display:grid;place-content:center;
  transition:background .2s ease,border-color .2s ease;
}
.consent input::after{
  content:"";width:9px;height:9px;background:var(--charcoal);
  transform:scale(0);transition:transform .18s ease;
}
.consent input:checked{background:var(--beige);border-color:var(--beige);}
.consent input:checked::after{transform:scale(1);}
.consent input:focus-visible{outline:2px solid var(--mist);outline-offset:2px;}
.consent p{margin:0;font-size:12.5px;line-height:1.75;color:rgba(234,230,217,.72);}

button[type=submit]{
  width:100%;max-width:420px;margin-top:22px;
  background:var(--beige);color:var(--charcoal);border:1px solid var(--beige);
  font-family:'Poppins',sans-serif;font-weight:400;font-size:11px;
  letter-spacing:.3em;text-transform:uppercase;
  padding:19px 20px;cursor:pointer;border-radius:0;
  transition:background .25s ease,color .25s ease;
}
button[type=submit]:hover:not(:disabled){background:transparent;color:var(--beige);}
button[type=submit]:disabled{opacity:.45;cursor:default;}
button[type=submit]:focus-visible{outline:2px solid var(--mist);outline-offset:3px;}

.note{
  font-size:10.5px;letter-spacing:.05em;color:rgba(234,230,217,.4);
  margin:16px 0 0;line-height:1.7;max-width:420px;
}
.note a{color:inherit;display:inline-block;padding:6px 2px;}

.error{color:var(--rose);font-size:11.5px;margin:16px 0 0;letter-spacing:.02em;}
[hidden]{display:none !important;}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}

/* ---------- confirmation ---------- */
#done{padding:40px 0 20px;animation:rise .7s cubic-bezier(.2,.7,.3,1) both;}
#done .eyebrow{margin-bottom:18px;}
#done p{font-size:14px;line-height:1.85;max-width:40ch;color:rgba(234,230,217,.78);margin:22px 0 0;}
.rule{height:1px;background:var(--rule);margin:40px 0 0;}

/* ---------- foot ---------- */
.foot{
  margin-top:clamp(44px,5vw,72px);padding-top:18px;
  max-width:1680px;margin-inline:auto;
  border-top:1px solid var(--rule);
  display:flex;flex-wrap:wrap;gap:0 36px;align-items:center;
  font-size:10px;letter-spacing:.22em;text-transform:uppercase;
  color:rgba(234,230,217,.5);
}
.foot > span{display:inline-block;padding:11px 0;}
.foot a{
  color:inherit;text-decoration:none;
  border-bottom:1px solid transparent;transition:border-color .2s ease;
  display:inline-block;padding:11px 0;
}
.foot a:hover{border-bottom-color:var(--mist);}

@keyframes rise{from{opacity:0;transform:translateY(14px);}to{opacity:1;transform:none;}}
@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important;}
  html{scroll-behavior:auto;}
}

/* ---------- narrow ---------- */
@media (max-width:860px){
  .hero{min-height:min(68svh,560px);}
  .edition{margin-bottom:clamp(60px,11vh,110px);}
}
@media (max-width:620px){
  .fgrid{grid-template-columns:1fr;}
  .posgrid{grid-template-columns:1fr;}
  .hero{min-height:min(74svh,520px);}
  .edition{margin-bottom:26px;}
  h1{font-size:clamp(40px,11vw,56px);}
  button[type=submit],.note{max-width:none;}
  .pos__apply,.cta{width:100%;text-align:center;}
}

/* ==========================================================================
   Phone readability.
   The reference brand sets its labels at 9.5–11px, which reads as a printed
   caption on a desktop but is genuinely hard on a 390px screen — and these
   are the words an applicant has to read to fill the form in. Sizes go up,
   the tracking and the uppercase stay, so the character is unchanged.
   ========================================================================== */
@media (max-width:620px){
  .eyebrow{font-size:11px;letter-spacing:.26em;}

  /* form labels are the important ones */
  .f label{font-size:12px;letter-spacing:.14em;}
  .opt{font-size:11px;}
  .drop__label{font-size:13px;}

  .pos__facts dt{font-size:11px;letter-spacing:.16em;}
  .pos__facts dd{font-size:14px;}
  .pos__note{font-size:13px;}
  .pos__tag,.pos__abbr{font-size:10.5px;}

  .cta,.pos__apply{font-size:12px;letter-spacing:.18em;padding-block:17px;}
  button[type=submit]{font-size:12px;letter-spacing:.22em;}
  .note{font-size:12px;}
  .consent p{font-size:13.5px;}

  .foot{font-size:11px;letter-spacing:.16em;gap:0 26px;}
}
