:root {
  --navy: #002b5c;
  --deep: #00172f;
  --gold: #e8bd69;
  --white: #ffffff;
  --glass: rgba(0, 27, 58, .76);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--deep);
  color: var(--white);
}

.presentation {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(
      90deg,
      rgba(0, 19, 43, .94) 0%,
      rgba(0, 27, 58, .72) 48%,
      rgba(0, 27, 58, .24) 100%
    ),
    url('/locations/phestos-hero-amsterdam.png')
      center center / cover no-repeat;
}

.presentation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 5%;
  gap: 30px;
}

.presentation-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: white;
  text-decoration: none;
}

.presentation-brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.presentation-brand strong {
  display: block;
  font-size: 32px;
  letter-spacing: .03em;
}

.presentation-brand small {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: .12em;
}

.presentation-navigation {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: rgba(0,27,58,.5);
}

.language-pill img {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  object-fit: cover;
}

.presentation-login {
  margin-left: 14px;
  padding: 12px 24px;
  border-radius: 24px;
  background: var(--gold);
  color: var(--deep);
  text-decoration: none;
  font-weight: bold;
}

.presentation-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 30px 7%;
}

.presentation-hero {
  max-width: 820px;
}

.presentation-eyebrow {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: .22em;
  font-weight: bold;
}

.presentation-hero h1 {
  margin: 24px 0;
  font-size: clamp(38px, 4.4vw, 76px);
  line-height: 1.12;
  letter-spacing: -.025em;
}

.presentation-hero h1 em {
  display: block;
  color: var(--gold);
  font-style: normal;
}

.presentation-description {
  max-width: 690px;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.65;
  color: rgba(255,255,255,.9);
}

.presentation-discovery {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 32px;
  padding: 18px 28px;
  border: 1px solid rgba(232,189,105,.55);
  border-radius: 12px;
  background: rgba(0,27,58,.65);
}

.presentation-discovery strong {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: .08em;
}

.presentation-discovery span {
  font-size: 13px;
}

.presentation-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 0 5% 26px;
}

.presentation-features article {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background: var(--glass);
  backdrop-filter: blur(12px);
}

.presentation-features strong {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: .06em;
}

.presentation-features p {
  font-size: 13px;
  line-height: 1.5;
}

.presentation-footer {
  display: flex;
  justify-content: space-between;
  padding: 14px 5%;
  background: rgba(0,15,32,.82);
  font-size: 12px;
  color: rgba(255,255,255,.75);
}

.cookie-banner {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  width: min(420px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid rgba(232,189,105,.45);
  border-radius: 16px;
  background: #071e38;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h2 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 18px;
}

.cookie-banner p {
  font-size: 13px;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.cookie-actions button {
  cursor: pointer;
  padding: 11px 14px;
  border: 1px solid var(--gold);
  border-radius: 7px;
  background: transparent;
  color: white;
  font-weight: bold;
}

.cookie-actions button:first-child {
  background: var(--gold);
  color: var(--deep);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@media (max-width: 1000px) {
  .presentation-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .presentation-header {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .presentation-header {
    padding: 18px 5%;
  }

  .presentation-brand img {
    width: 54px;
    height: 54px;
  }

  .presentation-brand strong {
    font-size: 24px;
  }

  .presentation-navigation {
    flex-wrap: wrap;
  }

  .presentation-main {
    padding: 50px 6%;
  }

  .presentation-hero h1 {
    font-size: 38px;
  }

  .presentation-features {
    grid-template-columns: 1fr;
  }

  .presentation-footer {
    flex-direction: column;
    gap: 8px;
  }

  .cookie-banner {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* PHESTOS COOKIE PREFERENCES */

#cookie-preferences {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(232,189,105,.35);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
}

#cookie-preferences[hidden] {
  display: none;
}

#cookie-preferences label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 14px;
}

#cookie-preferences input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

#cookie-preferences button,
.cookie-reopen {
  cursor: pointer;
  border: 1px solid var(--gold);
  border-radius: 7px;
  padding: 9px 14px;
  background: transparent;
  color: var(--white);
}

.cookie-reopen {
  font-size: 12px;
  padding: 5px 10px;
}

/*
 * PHESTOS — DESKTOP VISUAL PARITY V1
 * Environment: phestos.cloud/O
 * Candidate only.
 *
 * Original Phestos presentation is the visual
 * acceptance reference.
 */

/* Desktop presentation */

@media (min-width: 1280px) {

  .presentation {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-rows:
      auto
      minmax(0, 1fr)
      auto
      auto;
  }

  .presentation-header {
    padding: 20px 2.5%;
    gap: 20px;
  }

  .presentation-brand {
    gap: 14px;
  }

  .presentation-brand img {
    width: 66px;
    height: 66px;
  }

  .presentation-brand strong {
    font-size: 40px;
    letter-spacing: -.035em;
  }

  .presentation-brand small {
    font-size: 13px;
    letter-spacing: .025em;
    color: rgba(255,255,255,.9);
  }

  .presentation-navigation {
    gap: 8px;
  }

  .language-pill {
    width: 58px;
    height: 54px;
    border-radius: 13px;
    background: rgba(0,43,92,.35);
    border: 1px solid rgba(255,255,255,.28);
    backdrop-filter: blur(8px);
  }

  .language-pill img {
    width: 31px;
    height: 21px;
    border-radius: 2px;
    object-fit: cover;
  }

  .presentation-login {
    margin-left: 4px;
    min-width: 130px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(0,43,92,.35);
    border: 1px solid rgba(255,255,255,.28);
    color: white;
    font-weight: 500;
    backdrop-filter: blur(8px);
  }

  .presentation-main {
    min-height: 0;
    align-items: center;
    padding: 8px 2.5% 12px;
  }

  .presentation-hero {
    max-width: 850px;
  }

  .presentation-eyebrow {
    font-size: 14px;
    letter-spacing: .25em;
    font-weight: 500;
    margin: 0 0 24px;
  }

  .presentation-eyebrow::after {
    content: "";
    display: block;
    width: 52px;
    height: 2px;
    background: var(--gold);
    margin-top: 15px;
  }

  .presentation-hero h1 {
    max-width: 850px;
    font-size: clamp(40px, 3.15vw, 54px);
    line-height: 1.08;
    letter-spacing: -.045em;
    margin: 0 0 22px;
  }

  .presentation-hero h1 em {
    display: block;
  }

  .presentation-description {
    max-width: 580px;
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
  }

  .presentation-discovery {
    width: 510px;
    max-width: 100%;
    min-height: 86px;
    margin-top: 22px;
    padding: 18px 26px;
    border: 2px solid rgba(232,189,105,.85);
    border-radius: 14px;
    position: relative;
  }

  .presentation-discovery::after {
    content: "➜";
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 34px;
    color: var(--gold);
  }

  .presentation-discovery strong {
    color: white;
    font-size: 14px;
  }

  .presentation-discovery span {
    color: var(--gold);
    font-size: 13px;
  }

  .presentation-features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0 2.5% 18px;
  }

  .presentation-features article {
    min-height: 100px;
    padding: 18px 20px;
    border-radius: 0;
    border-right: 0;
    background: rgba(0,27,58,.82);
  }

  .presentation-features article:first-child {
    border-radius: 14px 0 0 14px;
  }

  .presentation-features article:last-child {
    border-right: 1px solid rgba(255,255,255,.2);
    border-radius: 0 14px 14px 0;
  }

  .presentation-features strong {
    color: white;
    font-size: 13px;
    letter-spacing: .02em;
  }

  .presentation-features p {
    font-size: 12px;
    margin: 8px 0 0;
  }

  .presentation-footer {
    margin: 0 2.5% 18px;
    padding: 14px 24px;
    border-radius: 14px;
    justify-content: center;
    gap: 16px;
    background: rgba(0,27,58,.82);
  }

  .cookie-banner {
    width: 495px;
    max-width: calc(100vw - 48px);
    padding: 18px;
    right: 18px;
    bottom: 18px;
  }

  .cookie-banner h2 {
    color: white;
    font-size: 15px;
  }

  .cookie-banner p {
    font-size: 12px;
    line-height: 1.55;
  }

  .cookie-actions {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .cookie-actions button {
    padding: 10px 11px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* Language flags retain their original rectangular ratio. */

@media (min-width: 601px) and (max-width: 1279px) {

  .language-pill {
    width: 48px;
    height: 46px;
    border-radius: 11px;
  }

  .language-pill img {
    width: 29px;
    height: 19px;
    border-radius: 2px;
    object-fit: cover;
  }
}

/* Smaller desktop screens must remain usable. */

@media (min-width: 1280px) and (max-height: 760px) {

  .presentation-header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .presentation-brand img {
    width: 52px;
    height: 52px;
  }

  .presentation-brand strong {
    font-size: 32px;
  }

  .presentation-hero h1 {
    font-size: clamp(36px, 2.8vw, 46px);
    margin-bottom: 14px;
  }

  .presentation-eyebrow {
    margin-bottom: 12px;
  }

  .presentation-discovery {
    min-height: 66px;
    margin-top: 12px;
    padding: 12px 20px;
  }

  .presentation-features {
    padding-bottom: 10px;
  }

  .presentation-features article {
    min-height: 78px;
    padding: 12px 16px;
  }

  .presentation-footer {
    margin-bottom: 10px;
    padding: 10px 20px;
  }
}


/* ==================================================
   PHESTOS — MBUILD-059-9D-5B-R2-F6
   MULTILINGUAL VISUAL CONSISTENCY
   BOARDROOM FOOTER PARITY
   ================================================== */

/* Fixed login control across languages. */

.presentation-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 166px;
  min-width: 166px;
  max-width: 166px;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Desktop title geometry. */

.presentation-title-fixed {
  display: block;
}

.title-line {
  display: block;
}

.description-line {
  display: block;
}

/* Boardroom footer presentation contract. */

.presentation-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .25rem 5%;
  background: transparent;
}

.footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  border-radius: 1rem;
  padding: .9rem 1.2rem;
  background:
    linear-gradient(
      180deg,
      rgba(8,35,70,.98),
      rgba(6,28,58,.98)
    );
  box-shadow:
    0 .9rem 2.2rem rgba(15,23,42,.12),
    inset 0 1px 0 rgba(255,255,255,.08);
  color: rgba(244,248,252,.94);
  font-size: .88rem;
  line-height: 1.4;
  text-align: center;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Exact Boardroom status indicator. */

.footer-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  border-radius: 999px;
  background: #48d26c;
  box-shadow:
    0 0 0 4px rgba(72,210,108,.14);
}

/* Fixed desktop presentation geometry. */

@media (min-width: 1280px) {

  .presentation-title-fixed {
    min-height: 3.36em;
  }

  .presentation-description {
    min-height: 3.3em;
  }

  .title-line,
  .description-line {
    white-space: nowrap;
  }

  .presentation-hero {
    width: min(100%, 980px);
    max-width: 980px;
  }

  .footer-line {
    gap: 10px;
    padding: .82rem 1rem;
    font-size: .84rem;
  }
}

/* Responsive text wrapping. */

@media (max-width: 1279px) {

  .title-line,
  .description-line {
    white-space: normal;
  }

  .presentation-title-fixed,
  .presentation-description {
    min-height: 0;
  }
}

/* Compact mobile footer. */

@media (max-width: 600px) {

  .presentation-login {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
  }

  .footer-line {
    gap: 8px;
    padding: 12px;
    font-size: 12px;
  }

  .presentation-footer {
    padding: 8px 4%;
  }
}



/* ==================================================
   PHESTOS — MBUILD-059-9D-5B-R2-G3
   FOOTER WIDTH ALIGNMENT
   ================================================== */

/*
 * Desktop information cards use 2.5% horizontal
 * padding. The footer follows the same boundaries.
 */

@media (min-width: 1280px) {

  .presentation-footer {
    width: calc(100% - 5%);
    margin-left: 2.5%;
    margin-right: 2.5%;
    padding-left: 0;
    padding-right: 0;
  }

  .footer-line {
    width: 100%;
    max-width: none;
  }

}
