/* Alofi & Associates — Coming Soon
   Brand tokens */
:root {
  --navy: #1F2839;
  --navy-deep: #0F1420;
  --cream: #F6F2EA;
  --cream-2: #ECE4D4;
  --gold: #A08559;
  --gold-light: #B89E74;
  --gold-soft: #C9AE7E;
  --gold-text: #7A6545;   /* gold that passes 4.5:1 on cream */
  --sand: #E8D9BC;
  --muted: #4A5366;
  --line: rgba(31, 40, 57, .14);

  --font-display: 'Noto Naskh Arabic', serif;
  --font-body: 'IBM Plex Sans Arabic', sans-serif;
  --font-latin: 'EB Garamond', serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-text); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

/* ---------- Layout ---------- */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-wrap: wrap;
}

.content {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 56px;
  padding: 56px clamp(28px, 6vw, 96px);
  background: linear-gradient(160deg, #F8F4EC 0%, #F2ECE0 55%, var(--cream-2) 100%);
}

/* ---------- Background decoration ---------- */
.bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.bg__glow { position: absolute; border-radius: 50%; }
.bg__glow--gold {
  width: 620px; height: 620px; top: -220px; right: -160px;
  background: radial-gradient(circle, rgba(201, 174, 126, .38) 0%, rgba(201, 174, 126, 0) 68%);
  animation: glowA 18s ease-in-out infinite;
}
.bg__glow--navy {
  width: 560px; height: 560px; bottom: -240px; left: -180px;
  background: radial-gradient(circle, rgba(31, 40, 57, .12) 0%, rgba(31, 40, 57, 0) 68%);
  animation: glowB 22s ease-in-out infinite;
}

.bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31, 40, 57, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 40, 57, .06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 0%, transparent 75%);
}

.bg__ring { position: absolute; border-radius: 50%; }
.bg__ring--solid  { width: 520px; height: 520px; top: -180px; left: -200px; border: 1px solid rgba(160, 133, 89, .28); }
.bg__ring--dashed { width: 380px; height: 380px; top: -110px; left: -130px; border: 1px dashed rgba(160, 133, 89, .35); animation: spin 90s linear infinite; }

.bg__dot { position: absolute; width: 6px; height: 6px; top: 150px; left: 170px; border-radius: 50%; background: var(--gold); }

.bg__mark {
  position: absolute; width: 420px; height: 420px; bottom: -90px; left: -70px;
  opacity: .06;
  animation: float 14s ease-in-out infinite;
}

.bg__grain {
  position: absolute; inset: 0;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* ---------- Brand ---------- */
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark { width: 52px; height: 52px; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__name { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.brand__tag { font-size: 13px; color: var(--gold-text); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-direction: column; gap: 28px; max-width: 620px; }

.eyebrow { display: flex; align-items: center; gap: 14px; color: var(--gold-text); font-size: 15px; }

.line { display: block; width: 40px; height: 1px; background: var(--gold); }
.line--light { background: var(--gold-light); }

.pulse-dot {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-out infinite;
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 10vw, 120px);
  line-height: 1.1;
}
.title__dot { color: var(--gold); }

.shine {
  background: linear-gradient(100deg, var(--navy) 0%, var(--navy) 42%, var(--gold-soft) 50%, var(--navy) 58%, var(--navy) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: shine 5.5s ease-in-out 1.6s infinite;
}

.progress {
  position: relative; width: 180px; height: 2px;
  background: rgba(160, 133, 89, .2);
  overflow: hidden;
}
.progress span {
  position: absolute; top: 0; right: 0; width: 60px; height: 100%;
  background: var(--gold);
  animation: bar 2.4s cubic-bezier(.6, 0, .4, 1) infinite;
}

.lead { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.8; }
.body { margin: 0; font-size: 17px; line-height: 1.9; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: flex; flex-direction: column; gap: 24px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.contact__item { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 13px; color: var(--gold-text); }
.latin { font-family: var(--font-latin); font-size: 21px; text-align: right; }
.address { font-size: 15px; line-height: 1.7; }
.copyright { font-size: 13px; color: var(--muted); }

/* ---------- Portrait ---------- */
.portrait {
  position: relative;
  flex: 1 1 420px;
  min-height: 560px;
  overflow: hidden;
  background: var(--navy);
}
.portrait__reveal {
  position: absolute; inset: 0;
  opacity: 0;
  animation: reveal 1.8s var(--ease) .1s forwards;
}
.portrait__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 35% 20%;
  animation: drift 22s ease-in-out 2s infinite;
}
.portrait__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 20, 32, .92) 0%, rgba(15, 20, 32, .35) 40%, rgba(15, 20, 32, 0) 65%);
}
.portrait__frame {
  position: absolute; inset: 32px;
  border: 1px solid rgba(184, 158, 116, .45);
  pointer-events: none;
  opacity: 0;
  animation: frame 1.2s var(--ease) 1s forwards;
}
.portrait__caption {
  position: absolute; right: 64px; left: 64px; bottom: 64px;
  display: flex; flex-direction: column; gap: 10px;
  color: var(--cream);
}
.portrait__name { font-family: var(--font-display); font-size: 30px; font-weight: 500; }
.portrait__role { font-size: 15px; color: var(--sand); }
.portrait__quote { margin: 8px 0 0; font-family: var(--font-display); font-size: 18px; line-height: 1.8; color: #E9E4DA; max-width: 380px; }

/* ---------- Entrance animation helpers ---------- */
.anim-up { opacity: 0; animation: up 1s var(--ease) var(--d, 0s) forwards; }
.anim-line { transform-origin: right center; transform: scaleX(0); animation: line .9s var(--ease) var(--d, 0s) forwards; }

/* ---------- Keyframes ---------- */
@keyframes up     { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes line   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes reveal { from { opacity: 0; transform: scale(1.14); } to { opacity: 1; transform: scale(1); } }
@keyframes drift  { 0%, 100% { transform: scale(1) translate(0, 0); } 50% { transform: scale(1.06) translate(-1.2%, -1%); } }
@keyframes frame  { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }
@keyframes shine  { 0% { background-position: 120% 0; } 100% { background-position: -20% 0; } }
@keyframes pulse  { 0% { box-shadow: 0 0 0 0 rgba(160, 133, 89, .55); } 70% { box-shadow: 0 0 0 10px rgba(160, 133, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(160, 133, 89, 0); } }
@keyframes bar    { 0% { transform: translateX(120%); } 100% { transform: translateX(-320%); } }
@keyframes glowA  { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6%, 8%) scale(1.15); } }
@keyframes glowB  { 0%, 100% { transform: translate(0, 0) scale(1.1); } 50% { transform: translate(-8%, -6%) scale(.95); } }
@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes float  { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-18px) rotate(-6deg); } }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .content { padding: 40px 24px; gap: 44px; }
  .portrait { min-height: 480px; }
  .portrait__frame { inset: 20px; }
  .portrait__caption { right: 40px; left: 40px; bottom: 44px; }
  .bg__mark { width: 280px; height: 280px; }
  .bg__dot { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .anim-up, .portrait__reveal, .portrait__frame { opacity: 1; }
  .anim-line { transform: none; }
}
