/* Mehen Works — mobile-first, single-page website. */
:root {
  color-scheme: dark;
  --cream: #efe2d1;
  --warm-sand: #cfad88;
  --background: #0a252b;
}

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

html { min-width: 280px; }

body {
  margin: 0;
  background: var(--background);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.landing {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  padding: 24px clamp(20px, 6vw, 40px) 26px;
  background:
    radial-gradient(ellipse at 83% 40%, rgba(35, 81, 79, .85), transparent 59%),
    radial-gradient(ellipse at 48% 100%, rgba(11, 43, 47, .4), transparent 60%),
    linear-gradient(105deg, #092329 0%, #102e32 60%, #143b3d 100%);
}

.landing::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 32%, rgba(0, 13, 19, .28) 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 43px;
}

.brand__mark {
  display: block;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 13px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .1);
}

.brand__name {
  margin: 0;
  color: #f3e6d8;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .31em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-width: 0;
}

.hero__copy {
  min-width: 0;
  padding-top: clamp(42px, 9vh, 78px);
}

.hero__eyebrow {
  margin: 0 0 22px;
  color: var(--warm-sand);
  font-size: clamp(.58rem, 2.3vw, .72rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .225em;
  text-transform: uppercase;
}

.hero__statement {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 9.7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -.046em;
  color: #f2e2cf;
}

.hero__statement span { display: block; white-space: nowrap; }
.hero__statement span:first-child { color: #deba92; }

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  flex: none;
  width: min(89vw, 430px);
  aspect-ratio: 1;
  margin: clamp(22px, 5vh, 42px) auto 24px;
}

.hero__orbit {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(218, 190, 150, .12);
  border-radius: 50%;
}

.hero__board {
  display: block;
  width: 94%;
  height: auto;
  filter: drop-shadow(0 14px 13px rgba(0, 10, 13, .23));
}

.site-footer {
  margin-top: auto;
  color: #c4a482;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .26em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* On short phones, protect the final line and URL without horizontal scroll. */
@media (max-width: 500px) and (max-height: 710px) {
  .hero__copy { padding-top: 26px; }
  .hero__eyebrow { margin-bottom: 13px; }
  .hero__statement { font-size: clamp(1.88rem, 9vw, 2.8rem); line-height: 1.1; }
  .hero__visual { width: min(68vw, 300px); margin-block: 12px 18px; }
}

/* Tablets: still a single-column composition, with more breathing room. */
@media (min-width: 600px) {
  .landing { padding: 40px 6vw 36px; }
  .brand__mark { width: 52px; height: 52px; }
  .brand__name { font-size: .84rem; }
  .hero__copy { padding-top: 66px; }
  .hero__eyebrow { font-size: .7rem; }
  .hero__statement { font-size: clamp(3.65rem, 8.5vw, 5rem); }
  .hero__visual { width: min(62vw, 480px); }
}

/* Desktops reproduce the reference image: type on the left, Mehen on the right. */
@media (min-width: 900px) {
  .landing {
    padding: clamp(48px, 10vh, 90px) clamp(52px, 6.5vw, 112px) clamp(36px, 7.4vh, 84px);
  }
  .brand__mark { width: 50px; height: 50px; }
  .brand { gap: 14px; }
  .brand__name { font-size: .8rem; letter-spacing: .3em; }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    gap: clamp(20px, 4vw, 60px);
    align-items: center;
  }
  .hero__copy { padding-top: 20px; position: relative; z-index: 1; transform: translateY(-8px); }
  .hero__eyebrow {
    font-size: clamp(.6rem, 1.02vw, .78rem);
    letter-spacing: .23em;
    margin-bottom: clamp(16px, 1.65vw, 28px);
  }
  .hero__statement {
    font-size: clamp(3.45rem, 6.6vw, 6.7rem);
    line-height: 1.11;
    letter-spacing: -.045em;
  }
  .hero__visual {
    position: absolute;
    top: 50%;
    right: -1.7vw;
    transform: translateY(-50%);
    width: min(49vw, 720px);
    max-width: none;
    margin: 0;
  }
  .site-footer { font-size: .69rem; letter-spacing: .23em; }
}

/* Give the headline sufficient space on laptop-width displays. */
@media (min-width: 900px) and (max-width: 1120px) {
  .hero { gap: 14px; grid-template-columns: minmax(0, 1.09fr) minmax(0, 1fr); }
  .hero__statement { font-size: clamp(3.1rem, 6.1vw, 4.3rem); }
  .hero__visual { width: 49vw; }
}

@media (max-width: 330px) {
  .brand { gap: 10px; }
  .brand__name { font-size: .68rem; }
  .hero__eyebrow { font-size: .56rem; letter-spacing: .16em; }
  .hero__statement { font-size: 1.94rem; }
}
