/* Pass to Egypt Gateway — threshold writing, not pass commerce */
:root {
  --dusk: #4a3f6b;
  --dusk-soft: #6b5f8a;
  --gold: #c9a227;
  --gold-pale: #e8d9a0;
  --mist: #f0ece4;
  --paper: #faf9f6;
  --slate: #3d3d42;
  --muted: #7a7570;
  --rule: #ddd6c8;
  --serif: 'Vollkorn', Georgia, serif;
  --sans: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --w: 1100px;
  --read: 640px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.72; color: var(--slate); background: var(--mist); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dusk-soft); text-decoration: none; border-bottom: 1px solid var(--gold-pale); }
a:hover { color: var(--gold); border-color: var(--gold); }

.shell { max-width: var(--w); margin: 0 auto; padding: 0 1.25rem; }

/* Arch bar */
.arch-bar { background: var(--dusk); color: rgba(255,255,255,.75); text-align: center; padding: .42rem; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; }

/* Header */
.gate-head { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.gate-head__row { display: flex; align-items: center; justify-content: space-between; padding: .85rem 0; gap: 1rem; }
.gate-brand { display: flex; flex-direction: column; }
.gate-brand__tag { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.gate-brand__name { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--dusk); line-height: 1.05; }
.gate-nav { display: flex; gap: 1.4rem; list-style: none; }
.gate-nav a { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border: none; }
.gate-nav a.on, .gate-nav a:hover { color: var(--dusk); }
.gate-menu { display: none; background: var(--mist); border: 1px solid var(--rule); padding: .4rem .65rem; font-size: .72rem; font-weight: 700; cursor: pointer; color: var(--dusk); }

/* Portal hero */
.portal { padding: 3rem 0 3.5rem; background: radial-gradient(ellipse at 50% 0%, var(--gold-pale) 0%, var(--mist) 55%); text-align: center; }
.portal__arch { width: 100%; max-width: 520px; margin: 0 auto 1.5rem; position: relative; }
.portal__arch svg { width: 100%; height: auto; }
.portal__img { position: absolute; bottom: 8%; left: 12%; right: 12%; top: 18%; border-radius: 4px 4px 0 0; overflow: hidden; }
.portal__img img { width: 100%; height: 100%; object-fit: cover; }
.portal__kicker { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dusk-soft); margin-bottom: .6rem; }
.portal h1 { font-family: var(--serif); font-size: clamp(1.9rem, 3.8vw, 2.7rem); line-height: 1.08; font-weight: 600; color: var(--dusk); max-width: 620px; margin: 0 auto .9rem; }
.portal__lead { color: var(--muted); font-size: 1rem; max-width: 500px; margin: 0 auto 1.3rem; }
.portal__enter { display: inline-block; background: var(--dusk); color: #fff; padding: .7rem 1.4rem; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: none; border-radius: 2px; }
.portal__enter:hover { background: var(--gold); color: var(--slate); }

/* Gateway grid */
.gateways { padding: 2.5rem 0 4rem; }
.gateways__top { text-align: center; margin-bottom: 2rem; }
.gateways__top h2 { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; color: var(--dusk); }
.gateways__top p { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.gate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.gate-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; position: relative; transition: transform .25s, box-shadow .25s; }
.gate-card::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 60%; height: 4px; background: var(--gold); border-radius: 0 0 4px 4px; }
.gate-card:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(74,63,107,.12); }
.gate-card--wide { grid-column: span 2; display: grid; grid-template-columns: 1.1fr 1fr; }
.gate-card__img img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.gate-card__body { padding: 1rem 1.1rem 1.1rem; }
.gate-card__n { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.gate-card__geo { font-size: .68rem; color: var(--muted); margin: .1rem 0 .3rem; }
.gate-card h3 { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; line-height: 1.28; margin-bottom: .25rem; }
.gate-card h3 a { color: var(--dusk); border: none; }
.gate-card h3 a:hover { color: var(--gold); }
.gate-card p { font-size: .82rem; color: var(--muted); }

/* Article */
.threshold { padding-bottom: 4rem; background: var(--paper); }
.threshold__banner { height: 34vh; min-height: 220px; max-height: 380px; overflow: hidden; position: relative; }
.threshold__banner img { width: 100%; height: 100%; object-fit: cover; }
.threshold__banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(74,63,107,.35)); }
.threshold__body { padding-top: 1.75rem; }
.path { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .75rem; }
.th-head { max-width: var(--read); margin-bottom: 1.5rem; }
.th-head__n { font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.th-head h1 { font-family: var(--serif); font-size: clamp(1.8rem, 3.2vw, 2.45rem); line-height: 1.1; margin: .3rem 0 .45rem; font-weight: 600; color: var(--dusk); }
.th-head__meta { font-size: .78rem; color: var(--muted); }
.th-layout { display: grid; grid-template-columns: 1fr 165px; gap: 2rem; }
.body { max-width: var(--read); }
.body .lede { font-family: var(--serif); font-size: 1.14rem; font-style: italic; color: var(--dusk-soft); margin-bottom: 1.3rem; line-height: 1.78; }
.body h2 { font-family: var(--serif); font-size: 1.28rem; color: var(--dusk); margin: 1.7rem 0 .55rem; font-weight: 600; }
.body p { margin-bottom: .95rem; color: #44444a; }
.body ul { margin: 0 0 1rem 1.15rem; color: #44444a; }
.body li { margin-bottom: .3rem; }
.lintel { background: var(--mist); border-top: 2px solid var(--gold); padding: .9rem 1rem; margin: 1.3rem 0; }
.lintel strong { display: block; font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dusk); margin-bottom: .25rem; }
.lintel p { margin: 0; font-size: .88rem; }
.gate-aside { position: sticky; top: 4.2rem; background: var(--mist); border: 1px solid var(--rule); padding: .9rem; border-radius: 2px; }
.gate-aside h3 { font-size: .58rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .55rem; }
.gate-aside a { display: block; font-size: .8rem; font-weight: 700; color: var(--dusk); border: none; padding: .45rem 0; border-bottom: 1px solid var(--rule); }
.gate-aside a:last-child { border-bottom: none; }

/* Static */
.page { padding: 3rem 0 4rem; background: var(--paper); }
.page h1 { font-family: var(--serif); font-size: 2.1rem; color: var(--dusk); margin-bottom: .65rem; }
.page-lead { color: var(--muted); margin-bottom: 1.5rem; max-width: 520px; }
.page h2 { font-family: var(--serif); font-size: 1.2rem; margin: 1.35rem 0 .45rem; }
.page p { margin-bottom: .8rem; max-width: 560px; color: #44444a; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.frm { display: grid; gap: .85rem; max-width: 400px; }
.frm label { display: grid; gap: .2rem; font-size: .8rem; font-weight: 700; }
.frm input, .frm textarea { padding: .65rem; border: 1px solid var(--rule); font: inherit; background: #fff; }
.btn { background: var(--dusk); color: #fff; border: none; padding: .65rem 1.1rem; font-weight: 700; font-size: .76rem; text-transform: uppercase; cursor: pointer; }

/* Footer */
.gate-foot { background: var(--dusk); color: rgba(255,255,255,.72); padding: 2.5rem 0 1rem; margin-top: 2rem; }
.gate-foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.gate-foot strong { font-family: var(--serif); font-size: 1.05rem; color: #fff; display: block; margin-bottom: .35rem; }
.gate-foot p { font-size: .82rem; opacity: .65; }
.gate-foot h4 { font-size: .58rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-pale); margin-bottom: .5rem; }
.gate-foot a { color: rgba(255,255,255,.6); font-size: .82rem; display: block; margin-bottom: .28rem; border: none; }
.gate-foot a:hover { color: #fff; }
.gate-foot__end { display: flex; justify-content: space-between; padding-top: .9rem; font-size: .68rem; opacity: .4; flex-wrap: wrap; gap: .4rem; }

@media (max-width: 860px) {
  .gate-card--wide, .gate-grid, .th-layout, .gate-foot__grid, .two { grid-template-columns: 1fr; }
  .gate-card--wide { display: block; }
}
@media (max-width: 768px) {
  .gate-menu { display: block; }
  .gate-nav { display: none; position: fixed; inset: 0 0 0 28%; background: var(--paper); flex-direction: column; padding: 4rem 1.2rem; z-index: 40; border-left: 3px solid var(--gold); }
  .gate-nav.open { display: flex; }
}
