/* =========================================================
   ONWANN — Under Construction
   Static HTML / CSS / JS. No frameworks.
   Monochrome: black / gray / white. Soft curves throughout.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --paper:    #f2f2f2;   /* page base                 */
  --paper-2:  #fbfbfb;   /* card surface              */
  --white:    #ffffff;
  --wash:     #e7e7e7;   /* background curves         */
  --wash-2:   #ededed;   /* smaller curve             */
  --line:     #dedede;   /* hairlines                 */
  --line-2:   #c9c9c9;   /* stronger hairlines        */
  --gray:     #6d6d6d;   /* body copy                 */
  --gray-2:   #949494;   /* labels, muted             */
  --ink:      #141414;   /* headings                  */
  --ink-2:    #2e2e2e;   /* card values               */
  --solid:    #141414;   /* filled pills / icon discs */
  --on-solid: #ffffff;   /* content sitting on those  */
  --shadow-card: 0 18px 40px -30px rgba(0, 0, 0, .45);
  --shadow-arch: 0 40px 70px -46px rgba(0, 0, 0, .55);
  --photo:    grayscale(100%) contrast(1.04);

  --maxw: 1320px;
  --pad:  clamp(20px, 4.5vw, 64px);
  --r-card: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Dark option ----------
   Activated by  <html data-theme="dark">  — see index-dark.html.
   Same layout, same markup; only the palette changes.              */
:root[data-theme="dark"] {
  --paper:    #0d0d0d;   /* page base                 */
  --paper-2:  #161616;   /* card surface              */
  --white:    #ffffff;
  --wash:     #171717;   /* background curves         */
  --wash-2:   #131313;   /* smaller curve             */
  --line:     #272727;   /* hairlines                 */
  --line-2:   #3b3b3b;   /* stronger hairlines        */
  --gray:     #a3a3a3;   /* body copy                 */
  --gray-2:   #7a7a7a;   /* labels, muted             */
  --ink:      #f4f4f4;   /* headings                  */
  --ink-2:    #dedede;   /* card values               */
  --solid:    #f0f0f0;   /* pills invert to light     */
  --on-solid: #0d0d0d;
  --shadow-card: 0 18px 40px -30px rgba(0, 0, 0, .9);
  --shadow-arch: 0 40px 70px -44px rgba(0, 0, 0, 1);
  --photo:    grayscale(100%) contrast(1.02) brightness(.88);
}

/* The logo PNG is white, so it cannot sit on the light pill the dark theme
   uses elsewhere — give the badge an elevated dark surface instead. */
:root[data-theme="dark"] .badge {
  background: #1a1a1a00;
  /* inset shadow, not a border — keeps the bar exactly the same height
     as the light theme so both options share one vertical rhythm */
  box-shadow: inset 0 0 0 0px var(--line-2);
}
/* the pattern strip is already white artwork — no inversion needed here */
:root[data-theme="dark"] .foot__pattern { filter: none; opacity: .16; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: 'Tajawal', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; display: block; }
h1, h2, p { margin: 0; }

/* =========================================================
   BACKGROUND CURVES
   ========================================================= */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.blob { position: absolute; border-radius: 50%; display: block; }

.blob--tl {
  top: -34vmax; left: -20vmax;
  width: 62vmax; height: 62vmax;
  background: var(--wash);
}
.blob--br {
  bottom: -42vmax; right: -14vmax;
  width: 74vmax; height: 74vmax;
  background: var(--wash-2);
}
.blob--sm {
  bottom: 6%; left: 38%;
  width: 26vmax; height: 26vmax;
  background: var(--wash);
  opacity: .55;
}

/* =========================================================
   PAGE SHELL
   ========================================================= */
.page {
  position: relative;
  min-height: 100svh;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(16px, 1.9vw, 22px) var(--pad) clamp(10px, 1.3vw, 14px);
  display: flex;
  flex-direction: column;
}

/* =========================================================
   TOP BAR
   ========================================================= */
.topbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* dark pill holding the white logo */
.badge {
  display: inline-flex;
  align-items: center;
  padding: clamp(11px, 1.4vw, 15px) clamp(20px, 2.2vw, 26px);
  border-radius: 999px;
  background: var(--solid);
  transition: transform .3s var(--ease);
}
.badge:hover { transform: translateY(-2px); }
.badge img { height: clamp(26px, 3vw, 32px); width: auto; }

/* outlined "coming soon" pill */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .72em 1.25em;
  border-radius: 999px;
  border: 0px solid var(--line-2);
  background: transparent;
  font-size: clamp(.62rem, 1.15vw, .72rem);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.chip__ar  { font-size: 1.15em; letter-spacing: 0; font-weight: 500; }
.chip__dot { color: var(--line-2); }

/* =========================================================
   MAIN GRID
   ========================================================= */
.grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: clamp(28px, 4vw, 60px);
  padding-block: clamp(14px, 1.2vw, 16px);
}

.content { min-width: 0; }

/* ---------- Display headline ---------- */
.display { display: block; }

.display__ar {
  display: block;
  font-size: clamp(1.6rem, 4.1vw, 2.9rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: .01em;
  color: var(--ink);
}

.display__en {
  display: block;
  margin-top: clamp(6px, 1vw, 12px);
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -.015em;
  color: var(--ink);
}

/* ---------- Lede ---------- */
.lede {
  margin-top: clamp(14px, 1.9vw, 22px);
  max-width: 46ch;
  font-size: clamp(.86rem, 1.4vw, .95rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--gray);
}

/* ---------- Legal name ---------- */
.legal {
  margin-top: clamp(11px, 1.4vw, 16px);
  max-width: 52ch;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: clamp(.68rem, 1.15vw, .76rem);
  line-height: 1.75;
  color: var(--gray-2);
}
.legal > span  { text-align: left; }
.legal__en     { letter-spacing: .1em; text-transform: uppercase; }

/* =========================================================
   CONTACT CARD
   ========================================================= */
.card {
  margin-top: clamp(18px, 2.2vw, 26px);
  max-width: 640px;
  padding: clamp(16px, 1.9vw, 21px);
  border-radius: var(--r-card);
  border: 0px solid var(--line);
  background: var(--paper-2);
  box-shadow: var(--shadow-card);
}

.card__split {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 24px);
}

.row { display: flex; gap: 13px; align-items: flex-start; }

.row__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--on-solid);
  background: var(--solid);
}

.row__body { min-width: 0; }

.row__label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 5px;
}
.row__label-ar {
  letter-spacing: 0;
  font-size: 1.15em;
  font-weight: 500;
  text-transform: none;
}

.row__val {
  font-size: clamp(.82rem, 1.35vw, .92rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink-2);
  word-break: break-word;
}
.row__val--ar { margin-top: 3px; font-weight: 400; color: var(--gray-2); text-align: left; }
.row__muted   { font-weight: 400; color: var(--gray-2); }

.row__val a {
  border-bottom: 1px solid transparent;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.row__val a:hover,
.row__val a:focus-visible { color: var(--ink); border-bottom-color: var(--line-2); }

.row__link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin-top: 7px;
  font-size: .76rem;
  font-weight: 500;
  color: var(--gray);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.row__link svg { width: .72em; height: .72em; }
.row__link:hover,
.row__link:focus-visible { color: var(--ink); border-bottom-color: var(--ink); }

/* =========================================================
   FOLLOW
   ========================================================= */
.follow {
  margin-top: clamp(14px, 1.7vw, 18px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.follow__label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gray-2);
}

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

.dot {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 15px;
  color: var(--ink);
  border: 0px solid var(--line-2);
  background: transparent;
  transition: background .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), transform .28s var(--ease);
}
.dot:hover,
.dot:focus-visible {
  background: var(--solid);
  border-color: var(--solid);
  color: var(--on-solid);
  transform: translateY(-3px);
  outline: none;
}

/* =========================================================
   THE ARCH
   ========================================================= */
.art {
  position: relative;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  min-width: 0;
}

/* thin outlined arch, offset behind the photo */
.art__outline {
  position: absolute;
  inset: -22px -22px 34px 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px 999px 26px 26px;
  pointer-events: none;
}

.arch {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 999px 999px 26px 26px;
  overflow: hidden;
  background: var(--wash);
  box-shadow: var(--shadow-arch);
}
.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: var(--photo);
  /* Static crop: anchored to the top and scaled past 1 so the bottom strip of
     the source photo stays out of frame — that is where hero.jpg carries an
     "AI-generated" watermark. This lives on the `scale` property, not on
     `transform`, so it survives even when the animation below is disabled by
     prefers-reduced-motion. Drop in a clean photo and you can set this to 1. */
  scale: 1.12;
  transform-origin: center top;
  animation: kenburns 34s var(--ease) infinite alternate;
  will-change: transform;
}

/* composes on top of the static `scale` above */
@keyframes kenburns {
  from { transform: scale(1);    }
  to   { transform: scale(1.07); }
}

/* dark pill overlapping the bottom of the arch */
.ribbon {
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .85em 1.5em;
  border-radius: 999px;
  background: var(--solid);
  color: var(--on-solid);
  font-size: clamp(.6rem, 1.1vw, .7rem);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 16px 30px -18px rgba(0, 0, 0, .7);
}
.ribbon__ar  { font-size: 1.15em; letter-spacing: 0; font-weight: 500; }
.ribbon__dot { opacity: .45; }

/* =========================================================
   FOOT
   ========================================================= */
.foot {
  flex: none;
  padding-top: clamp(12px, 1.6vw, 18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.foot__pattern {
  display: block;
  width: min(170px, 48%);
  height: 10px;
  background: url('../img/onwann_pattren_white.png') center / contain no-repeat;
  filter: invert(1);
  opacity: .12;
}

.foot__copy {
  font-size: .7rem;
  letter-spacing: .04em;
  color: var(--gray-2);
  text-align: center;
}

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(16px); }
.is-ready .reveal {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease) var(--d, 0ms),
              transform .8s var(--ease) var(--d, 0ms);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Short desktop screens (e.g. 1280x800) — compact so it still fits the fold */
@media (min-width: 941px) and (max-height: 850px) {
  .grid        { padding-block: 8px; gap: clamp(24px, 3vw, 44px); }
  .display__ar { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
  .display__en { font-size: clamp(1.65rem, 3.7vw, 2.5rem); }
  .lede        { margin-top: 12px; line-height: 1.65; }
  .legal       { margin-top: 10px; }
  .card        { margin-top: 16px; padding: 16px; }
  .follow      { margin-top: 12px; }
  .art         { max-width: 340px; }
  .foot        { padding-top: 10px; }
}

/* Tablet / narrow desktop — stack, arch leads */
@media (max-width: 940px) {
  .grid {
    grid-template-columns: 1fr;
    gap: clamp(46px, 8vw, 64px);
    padding-block: clamp(26px, 5vw, 40px);
  }
  .art { order: -1; max-width: 380px; aspect-ratio: 1 / 1; }
  .art__outline { inset: -16px -16px 26px 16px; }
  .lede, .legal { max-width: 58ch; }
  .card { max-width: none; }
}

@media (max-width: 620px) {
  .topbar { gap: 10px; }
  .chip { padding: .6em .9em; letter-spacing: .14em; }

  .art { max-width: 300px; }
  .ribbon { bottom: -18px; padding: .75em 1.15em; letter-spacing: .14em; }

  .card__split { grid-template-columns: 1fr; gap: 16px; }
  .card__split .row + .row {
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .follow { gap: 12px; }
  .dot { width: 40px; height: 40px; }
}

@media (max-width: 400px) {
  .chip__en   { display: none; }
  .chip__dot  { display: none; }
  .chip__ar   { letter-spacing: 0; }
  .ribbon__ar { display: none; }
  .ribbon__dot{ display: none; }
  .art { max-width: 250px; }
}

/* =========================================================
   PREFERENCES
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

::selection { background: var(--solid); color: var(--on-solid); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
