:root {
  --bg: #f5ede0;
  --ink: #161615;
  --accent: #e13510;
  --status: #c80040;
  --muted: #8a847c;
  --white: #ffffff;
  --black: #000000;
  --font-display: "Noto Serif Display", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --page-pad-x: clamp(1rem, 3.5vw, 3.25rem);
  --page-pad-y: clamp(1.25rem, 3.8vh, 3.25rem);
}

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

html {
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  height: 100%;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

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

.page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

/* ——— Left visual ——— */
.visual {
  position: relative;
  background: #fbf3ec;
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.visual__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ——— Right content ——— */
.content {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: var(--bg);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: var(--page-pad-y) var(--page-pad-x);
  padding-left: max(var(--page-pad-x), env(safe-area-inset-left));
  padding-right: max(var(--page-pad-x), env(safe-area-inset-right));
  padding-bottom: max(var(--page-pad-y), env(safe-area-inset-bottom));
}

.content__inner {
  width: 100%;
  max-width: 48rem;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.logo {
  width: min(13.5rem, 48%, 18vh);
  height: auto;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: clamp(1.25rem, 3.5vh, 2.5rem);
  margin-bottom: clamp(0.55rem, 1.2vh, 0.9rem);
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s ease 0.1s,
    transform 0.8s ease 0.1s;
}

.status__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--status);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(200, 0, 64, 0.45);
  animation: pulse 2.2s ease-out infinite;
}

.status__label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, min(4.6vw, 7.2vh), 5.25rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: clamp(0.45rem, 1.2vh, 0.9rem);
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.85s ease 0.2s,
    transform 0.85s ease 0.2s;
}

.heading__line {
  display: block;
  white-space: nowrap;
}

.heading em {
  font-style: italic;
  font-weight: 400;
}

.subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.875rem, min(0.95vw, 1.6vh), 1.05rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.85s ease 0.32s,
    transform 0.85s ease 0.32s;
}

.badge {
  width: clamp(5.25rem, min(8.5vw, 11vh), 8rem);
  height: auto;
  margin-top: clamp(0.85rem, 2.5vh, 1.75rem);
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(24px) rotate(-6deg) scale(0.92);
  transition:
    opacity 0.9s ease 0.45s,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
  will-change: transform;
}

.badge.is-floating {
  animation: float 4.5s ease-in-out infinite;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
  justify-items: center;
  width: 100%;
  max-width: 26rem;
  margin-top: clamp(0.75rem, 2vh, 1.35rem);
  padding-top: clamp(0.7rem, 1.6vh, 1.1rem);
  border-top: 1px solid rgba(22, 22, 21, 0.1);
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.85s ease 0.55s,
    transform 0.85s ease 0.55s;
}

.contact__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-sans);
  font-size: clamp(0.8125rem, 0.9vw, 0.9375rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact__item:nth-child(1) {
  grid-column: 1 / -1;
}

.contact__item:hover,
.contact__item:focus-visible {
  color: var(--accent);
}

.contact__item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.contact__icon {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.2s ease;
}

.contact__item:hover .contact__icon,
.contact__item:focus-visible .contact__icon {
  color: var(--accent);
}

/* ——— Entrance ——— */
.is-ready .logo,
.is-ready .status,
.is-ready .heading,
.is-ready .subtitle,
.is-ready .badge,
.is-ready .contact {
  opacity: 1;
  transform: none;
}

.is-ready .badge {
  transform: rotate(-6deg) scale(1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 0, 64, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(200, 0, 64, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 0, 64, 0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: rotate(-6deg) translateY(0);
  }
  50% {
    transform: rotate(-6deg) translateY(-10px);
  }
}

/* ——— Laptop / smaller desktop ——— */
@media (max-width: 1280px) {
  .logo {
    width: min(12rem, 46%, 16vh);
  }

  .heading {
    font-size: clamp(1.85rem, min(4.2vw, 6.5vh), 3.75rem);
  }
}

@media (max-width: 1100px) {
  --page-pad-x: clamp(0.9rem, 2.8vw, 2rem);

  .heading {
    font-size: clamp(1.65rem, min(3.8vw, 5.8vh), 2.85rem);
  }

  .subtitle {
    font-size: clamp(0.8125rem, 1.2vw, 0.95rem);
  }

  .contact {
    max-width: 22rem;
  }
}

/* ——— Short desktops ——— */
@media (min-width: 901px) and (max-height: 800px) {
  --page-pad-y: clamp(0.85rem, 2.5vh, 1.5rem);

  .logo {
    width: min(10.5rem, 40%, 14vh);
  }

  .status {
    margin-top: 1rem;
    margin-bottom: 0.45rem;
  }

  .heading {
    font-size: clamp(1.55rem, min(3.6vw, 5.2vh), 2.5rem);
    margin-bottom: 0.4rem;
  }

  .badge {
    width: clamp(4.5rem, 9vh, 5.75rem);
    margin-top: 0.65rem;
  }

  .contact {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    gap: 0.3rem 0.75rem;
  }

  .contact__item {
    font-size: 0.78rem;
  }
}

/* ——— Tablet & below: stack (scroll allowed) ——— */
@media (max-width: 900px) {
  html,
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    max-height: none;
    min-height: auto;
    overflow: visible;
  }

  .visual {
    height: auto;
    min-height: 0;
    aspect-ratio: 960 / 1080;
    max-height: min(68vh, 720px);
  }

  .visual__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
  }

  .content {
    --page-pad-x: clamp(1.25rem, 5vw, 2.5rem);
    height: auto;
    overflow: visible;
    padding-top: clamp(2.5rem, 6vw, 3.25rem);
    padding-bottom: clamp(2.75rem, 7vw, 3.75rem);
  }

  .content__inner {
    height: auto;
    min-height: auto;
    max-width: 32rem;
    justify-content: flex-start;
  }

  .logo {
    width: min(12.75rem, 52%);
  }

  .status {
    margin-top: 2rem;
    margin-bottom: 0.9rem;
  }

  .heading {
    font-size: clamp(2.15rem, 7.2vw, 3rem);
  }

  .heading__line {
    white-space: nowrap;
  }

  .subtitle {
    font-size: clamp(0.875rem, 3.4vw, 1.05rem);
  }

  .badge {
    width: clamp(6.5rem, 22vw, 7.75rem);
    margin-top: clamp(2rem, 6vw, 2.75rem);
  }

  .contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.75rem;
    max-width: 24rem;
  }

  .contact__item:nth-child(1) {
    grid-column: auto;
  }

  .contact__item {
    font-size: 0.8125rem;
  }
}

/* ——— Large phones ——— */
@media (max-width: 640px) {
  .visual {
    aspect-ratio: auto;
    height: min(58vh, 520px);
    max-height: none;
  }

  .visual__image {
    object-position: center 12%;
  }

  .content {
    padding-top: 2.25rem;
    padding-bottom: max(2.75rem, env(safe-area-inset-bottom));
  }

  .logo {
    width: min(11.5rem, 56%);
  }

  .status {
    margin-top: 1.85rem;
  }

  .status__label {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
  }

  .heading {
    font-size: clamp(1.85rem, 8.4vw, 2.45rem);
    margin-bottom: 0.85rem;
  }

  .subtitle {
    font-size: clamp(0.8rem, 3.6vw, 0.9375rem);
  }

  .badge {
    width: 6.25rem;
    margin-top: 2rem;
  }

  .contact {
    gap: 0.55rem;
    margin-top: 1.5rem;
    padding-top: 1.15rem;
  }

  .contact__item {
    font-size: 0.75rem;
  }
}

/* ——— Small phones ——— */
@media (max-width: 400px) {
  .visual {
    height: min(52vh, 440px);
  }

  .content {
    --page-pad-x: 1.1rem;
    padding-top: 2rem;
  }

  .logo {
    width: min(10.25rem, 62%);
  }

  .status {
    gap: 0.45rem;
    margin-top: 1.6rem;
    margin-bottom: 0.75rem;
  }

  .status__label {
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
  }

  .heading {
    font-size: clamp(1.55rem, 8.8vw, 1.95rem);
    line-height: 1.12;
  }

  .heading__line {
    white-space: nowrap;
  }

  .subtitle {
    font-size: clamp(0.72rem, 3.5vw, 0.8125rem);
    line-height: 1.4;
  }

  .badge {
    width: 5.5rem;
    margin-top: 1.75rem;
  }

  .contact {
    margin-top: 1.35rem;
  }

  .contact__item {
    font-size: 0.72rem;
    gap: 0.45rem;
  }

  .contact__icon {
    width: 0.85rem;
    height: 0.85rem;
  }
}

/* ——— Very narrow: allow heading wrap ——— */
@media (max-width: 340px) {
  .heading__line {
    white-space: normal;
  }

  .heading {
    font-size: 1.45rem;
    max-width: 12ch;
  }
}

/* ——— Short landscape phones / landscape tablets ——— */
@media (max-height: 520px) and (orientation: landscape) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .page {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  .visual {
    aspect-ratio: auto;
    height: 100%;
    max-height: none;
    min-height: 0;
  }

  .visual__image {
    object-position: center center;
  }

  .content {
    height: 100%;
    padding: 0.75rem clamp(0.75rem, 2.5vw, 1.25rem);
    overflow: hidden;
  }

  .content__inner {
    height: 100%;
    justify-content: space-between;
  }

  .logo {
    width: min(7.5rem, 38%, 18vh);
  }

  .status {
    margin-top: 0.45rem;
    margin-bottom: 0.3rem;
  }

  .status__label {
    font-size: 0.625rem;
    letter-spacing: 0.14em;
  }

  .heading {
    font-size: clamp(1.15rem, 4vw, 1.55rem);
    margin-bottom: 0.25rem;
  }

  .heading__line {
    white-space: nowrap;
  }

  .subtitle {
    font-size: 0.7rem;
  }

  .badge {
    width: clamp(3.5rem, 12vh, 4.25rem);
    margin-top: 0.4rem;
  }

  .contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    gap: 0.25rem 0.5rem;
    max-width: 100%;
  }

  .contact__item:nth-child(1) {
    grid-column: 1 / -1;
  }

  .contact__item {
    font-size: 0.625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .status,
  .heading,
  .subtitle,
  .badge,
  .contact,
  .status__dot {
    transition: none !important;
    animation: none !important;
  }

  .is-ready .logo,
  .is-ready .status,
  .is-ready .heading,
  .is-ready .subtitle,
  .is-ready .badge,
  .is-ready .contact {
    opacity: 1;
    transform: none;
  }
}
