:root {
  color-scheme: dark;
  --ink: #f7f2e9;
  --muted: #bcc6c9;
  --navy: #10232e;
  --navy-deep: #09171f;
  --line: rgba(255, 255, 255, .14);
  --accent: #f08a24;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--navy-deep);
  color: var(--ink);
}

* { box-sizing: border-box; }

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

body { min-height: 100vh; }

button, a { -webkit-tap-highlight-color: transparent; }

.shell {
  display: grid;
  grid-template-columns: minmax(430px, 46%) 1fr;
  min-height: 100vh;
  background: var(--navy);
}

.photo {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-height: 100vh;
  overflow: hidden;
  background: url("assets/background.jpg") 58% center / cover no-repeat;
}

.photo::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(16, 35, 46, .72) 0%, rgba(16, 35, 46, .1) 38%, rgba(0, 0, 0, .08) 100%);
}

.photo-shade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(2, 9, 13, .72));
}

.location {
  position: absolute;
  right: clamp(28px, 5vw, 72px);
  bottom: 36px;
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.location span + span::before {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 18px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  vertical-align: middle;
}

.panel {
  position: relative;
  z-index: 2;
  display: flex;
  grid-column: 1;
  grid-row: 1;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(30px, 5vw, 72px);
  background:
    radial-gradient(circle at 10% 90%, rgba(36, 123, 137, .22), transparent 34%),
    linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
  box-shadow: 28px 0 70px rgba(0, 0, 0, .25);
}

.panel::after {
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 100%;
  background: var(--line);
  content: "";
}

.brand-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.logo { width: clamp(185px, 19vw, 260px); height: auto; }

.status {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: .67rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(240, 138, 36, .12);
}

.message {
  width: min(560px, 100%);
  margin: auto 0;
  padding: 72px 0;
}

.eyebrow {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 24px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.eyebrow::before { width: 34px; height: 1px; background: currentColor; content: ""; }

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.1vw, 5.7rem);
  font-weight: 400;
  line-height: .99;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.lead {
  max-width: 49ch;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.75;
}

.farewell {
  margin: 20px 0 0;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.6;
}

.panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.language { display: flex; gap: 5px; }

.language button {
  min-width: 39px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #829298;
  cursor: pointer;
  font: inherit;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.language button:hover { color: var(--ink); }

.language button.active {
  border-color: rgba(240, 138, 36, .5);
  background: rgba(240, 138, 36, .12);
  color: var(--accent);
}

.language button:focus-visible,
.social a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.social { display: flex; gap: 10px; }

.social a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}

.social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.social svg { width: 18px; fill: currentColor; }

@media (max-width: 980px) {
  .shell { display: block; }
  .photo { position: fixed; inset: 0; min-height: 100%; background-position: 58% center; }
  .photo::before { background: rgba(5, 16, 22, .7); }
  .photo-shade, .location { display: none; }
  .panel {
    min-height: 100vh;
    width: min(690px, calc(100% - 32px));
    margin: 0;
    padding: clamp(28px, 7vw, 58px);
    background: linear-gradient(135deg, rgba(16, 35, 46, .96), rgba(7, 19, 26, .89));
    backdrop-filter: blur(14px);
  }
  h1 { font-size: clamp(3.2rem, 10vw, 5.6rem); }
}

@media (max-width: 600px) {
  html,
  body {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .shell {
    position: fixed;
    inset: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .photo {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
  }

  .panel {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: clamp(16px, 3.2vh, 24px);
  }

  .brand-row { display: block; }
  .logo { width: clamp(150px, 43vw, 190px); }

  .status {
    margin-top: clamp(10px, 2vh, 18px);
    font-size: .59rem;
  }

  .message {
    margin: auto 0;
    padding: clamp(14px, 3.2vh, 34px) 0;
  }

  .eyebrow {
    gap: 10px;
    margin-bottom: clamp(10px, 2.1vh, 18px);
    font-size: .65rem;
  }

  .eyebrow::before { width: 25px; }

  h1 {
    font-size: clamp(2.35rem, min(13vw, 8.5vh), 4.25rem);
    line-height: .98;
  }

  .lead {
    margin-top: clamp(14px, 2.5vh, 21px);
    font-size: clamp(.82rem, 2.25vh, .94rem);
    line-height: 1.48;
  }

  .farewell {
    margin-top: clamp(9px, 1.8vh, 14px);
    font-size: clamp(.76rem, 1.95vh, .86rem);
    line-height: 1.42;
  }

  .panel-footer {
    flex: 0 0 auto;
    gap: 12px;
    align-items: center;
    padding-top: clamp(10px, 2vh, 17px);
  }

  .language { gap: 1px; }

  .language button {
    min-width: 34px;
    padding: 7px 6px;
    font-size: .64rem;
  }

  .social { gap: 7px; }

  .social a {
    width: 34px;
    height: 34px;
  }

  .social svg { width: 16px; }
}

@media (max-width: 600px) and (max-height: 760px) {
  .panel { padding: 16px 18px; }
  .logo { width: 145px; }
  .status { margin-top: 9px; }
  .message { padding: 10px 0; }
  .eyebrow { margin-bottom: 9px; }
  h1 { font-size: clamp(2.2rem, 11.7vw, 3.05rem); }
  .lead { margin-top: 11px; font-size: .8rem; line-height: 1.42; }
  .farewell { margin-top: 8px; font-size: .75rem; line-height: 1.38; }
  .panel-footer { padding-top: 9px; }
}

@media (max-width: 600px) and (max-height: 650px) {
  .logo { width: 138px; }
  .status { margin-top: 8px; }
  .message { padding: 10px 0; }
  .eyebrow { margin-bottom: 8px; }
  h1 { font-size: clamp(2.15rem, 11.5vw, 3rem); }
  .lead { margin-top: 11px; font-size: .79rem; line-height: 1.4; }
  .farewell { margin-top: 7px; font-size: .74rem; }
  .panel-footer { padding-top: 8px; }
}

@media (prefers-reduced-motion: no-preference) {
  .panel { animation: panel-in .7s cubic-bezier(.2, .8, .2, 1) both; }
  .message > * { animation: rise .65s .16s cubic-bezier(.2, .8, .2, 1) both; }
  .message > :nth-child(2) { animation-delay: .22s; }
  .message > :nth-child(3) { animation-delay: .28s; }
  .message > :nth-child(4) { animation-delay: .34s; }
  @keyframes panel-in { from { opacity: 0; transform: translateX(-16px); } }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
}
