/* Inngangsglærur (SAMARK, gervigreindarfundur) — liggja ofan á Skjól-kynningunni */
#intro {
  --ink: #111; --mute: #8a8a8a; --paper: #fff;
  position: fixed; inset: 0; z-index: 10000; background: var(--paper); color: var(--ink);
  font-family: Manrope, system-ui, sans-serif; cursor: default; user-select: none;
  transition: opacity 1.4s ease, background-color .9s ease;
}
#intro.dark { background: #000; }
#intro.out { opacity: 0; pointer-events: none; }
#intro[hidden] { display: none; }
#intro .slide {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(24px, 9vw, 160px); opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
#intro .slide.on { opacity: 1; pointer-events: auto; }
#intro h1 { font-weight: 600; font-size: clamp(40px, 6.4vw, 112px); line-height: 1.02; letter-spacing: -0.035em; margin: 0; max-width: 14ch; }
#intro .big { font-weight: 500; font-size: clamp(28px, 3.6vw, 64px); line-height: 1.12; letter-spacing: -0.025em; margin: 0; max-width: 22ch; }
#intro .name { margin-top: clamp(20px, 3vw, 48px); font-size: clamp(16px, 1.4vw, 24px); color: var(--mute); letter-spacing: -0.01em; }
#intro .name b { display: block; color: var(--ink); font-weight: 600; }
#intro .logo-full { position: absolute; left: clamp(24px, 9vw, 160px); bottom: clamp(28px, 6vh, 64px); height: clamp(22px, 2.4vw, 38px); }
#intro .logo-host { position: absolute; right: clamp(24px, 9vw, 160px); bottom: clamp(28px, 6vh, 64px); height: clamp(44px, 4.6vw, 76px); }
#intro .logo-m { position: absolute; left: clamp(24px, 3vw, 48px); top: clamp(24px, 3vw, 48px); height: clamp(26px, 2.6vw, 42px); }
/* skref: birtast á smelli */
#intro [data-s] { opacity: 0; transition: opacity .9s ease; }
#intro [data-s].shown { opacity: 1; }

/* veldisvöxtur */
#intro .s-graph { justify-content: flex-start; padding-top: clamp(48px, 12vh, 140px); }
#intro .s-graph .big + .big { margin-top: .5em; }
#intro .graph { position: absolute; left: clamp(24px, 9vw, 160px); right: clamp(24px, 9vw, 160px); bottom: clamp(32px, 7vh, 88px); height: 42vh; }
#intro .graph svg { width: 100%; height: 100%; overflow: visible; }
#intro .graph .axis { stroke: #111; stroke-width: 1.5; fill: none; }
#intro .graph .curve { stroke: #111; stroke-width: 4; fill: none; stroke-linecap: round; }

/* útboð */
#intro .kick { font-size: clamp(13px, 1vw, 17px); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 1.4em; }
#intro .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 56px); margin-top: clamp(36px, 7vh, 88px); max-width: 1200px; }
#intro .facts div { border-top: 1.5px solid var(--ink); padding-top: .8em; font-size: clamp(14px, 1.15vw, 19px); color: var(--mute); line-height: 1.35; }
#intro .facts b { display: block; color: var(--ink); font-weight: 600; font-size: clamp(32px, 3.6vw, 68px); letter-spacing: -0.035em; line-height: 1.1; margin-bottom: .2em; }
@media (max-width: 720px) { #intro .facts { grid-template-columns: 1fr 1fr; } }

/* svört */
#intro .s-black { align-items: center; text-align: center; color: #fff; }
#intro .s-black h1 { max-width: none; font-weight: 500; }

/* Arne Jacobsen — allt hannað fyrir eitt hótel */
#intro .s-gallery { justify-content: flex-start; padding-top: clamp(48px, 12vh, 140px); }
#intro .s-gallery .big b { font-weight: 700; }
#intro .gallery { position: absolute; left: clamp(24px, 9vw, 160px); right: clamp(24px, 9vw, 160px); bottom: clamp(84px, 13vh, 150px);
  height: 44vh; display: grid; grid-template-columns: 1.1fr 1.3fr 1fr .8fr; gap: clamp(10px, 1.2vw, 20px); }
#intro .gallery figure { margin: 0; display: flex; flex-direction: column; min-width: 0; opacity: 0; transform: translateY(12px); transition: opacity .9s ease, transform .9s ease; }
#intro .gallery.shown figure { opacity: 1; transform: none; }
#intro .gallery.shown figure:nth-child(2) { transition-delay: .15s; }
#intro .gallery.shown figure:nth-child(3) { transition-delay: .3s; }
#intro .gallery.shown figure:nth-child(4) { transition-delay: .45s; }
#intro .gallery img { flex: 1; min-height: 0; width: 100%; object-fit: cover; background: #f2f2f2; }
#intro .gallery figcaption { font-size: clamp(12px, .9vw, 15px); color: var(--mute); margin-top: .6em; }
#intro .credit { position: absolute; left: clamp(24px, 9vw, 160px); right: clamp(24px, 9vw, 160px); bottom: clamp(18px, 3vh, 36px); font-size: 11px; color: #b0b0b0; }

/* lokaglæra */
#intro .s-black .logo-white { height: clamp(48px, 7vw, 120px); filter: invert(1); }

/* byggingargallar: fréttamynd */
#intro .s-defects { justify-content: flex-start; padding-top: clamp(48px, 12vh, 140px); }
#intro .press { position: absolute; left: clamp(24px, 9vw, 160px); bottom: clamp(36px, 7vh, 84px); margin: 0; height: 52vh; display: flex; flex-direction: column; }
#intro .press img { flex: 1; min-height: 0; width: auto; max-width: calc(100vw - 2 * clamp(24px, 9vw, 160px)); object-fit: contain; object-position: left bottom; box-shadow: 0 10px 40px rgba(0,0,0,.12); }
#intro .press figcaption { font-size: clamp(12px, .9vw, 15px); color: var(--mute); margin-top: .6em; }

/* lokaglæra: kvöldsýn af Skjóli í gegn, merkið neðst */
#intro.see { background: transparent; pointer-events: auto; }
#intro .s-final { justify-content: flex-end; align-items: center; padding-bottom: clamp(48px, 10vh, 120px);
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 32%, rgba(0,0,0,0) 55%); }
#intro .s-final .logo-white { height: clamp(40px, 5vw, 84px); filter: invert(1) drop-shadow(0 2px 12px rgba(0,0,0,.5)); }
body.finale > *:not(#viewport):not(#intro) { opacity: 0 !important; pointer-events: none !important; transition: opacity .8s; }

/* teymið */
#intro .s-team { justify-content: flex-start; padding-top: clamp(48px, 11vh, 130px); }
#intro .team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 28px) clamp(16px, 2.4vw, 44px); margin-top: clamp(28px, 6vh, 72px); max-width: 1400px; }
#intro .team div { border-top: 1.5px solid var(--ink); padding-top: .6em; font-size: clamp(13px, 1vw, 17px); color: var(--mute); line-height: 1.35; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
#intro .team b { display: block; color: var(--ink); font-weight: 600; font-size: clamp(17px, 1.45vw, 26px); letter-spacing: -0.02em; margin-bottom: .15em; }
#intro .team.shown div { opacity: 1; transform: none; }
#intro .team.shown div:nth-child(2) { transition-delay: 0.06s; }
#intro .team.shown div:nth-child(3) { transition-delay: 0.12s; }
#intro .team.shown div:nth-child(4) { transition-delay: 0.18s; }
#intro .team.shown div:nth-child(5) { transition-delay: 0.24s; }
#intro .team.shown div:nth-child(6) { transition-delay: 0.30s; }
#intro .team.shown div:nth-child(7) { transition-delay: 0.36s; }
#intro .team.shown div:nth-child(8) { transition-delay: 0.42s; }
#intro .team.shown div:nth-child(9) { transition-delay: 0.48s; }
#intro .team.shown div:nth-child(10) { transition-delay: 0.54s; }
#intro .team.shown div:nth-child(11) { transition-delay: 0.60s; }
#intro .team.shown div:nth-child(12) { transition-delay: 0.66s; }
#intro .team.shown div:nth-child(13) { transition-delay: 0.72s; }
@media (max-width: 900px) { #intro .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* lokaglæra: hnappur í göngu */
#intro .s-final { gap: clamp(18px, 3vh, 32px); }
#intro .walk-in { font: 500 clamp(14px, 1.1vw, 18px) Manrope, system-ui, sans-serif; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .7em 1.4em; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .2s, color .2s; }
#intro .walk-in:hover { background: #fff; color: #111; }

/* myndaröð: halda hæð innan 44vh (annars stækkar röðin og myndir fara yfir höfundarlínu) */
#intro .gallery { grid-template-rows: minmax(0, 1fr); }
#intro .gallery figure { min-height: 0; }

/* byggingargallar: fréttamynd hægra megin við textann */
#intro .press { left: auto; right: clamp(24px, 4vw, 80px); top: 23vh; bottom: 11vh; height: auto; width: 45vw; }
#intro .press img { width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center; box-shadow: none; }
#intro .press figcaption { text-align: right; }

/* samtalið (Ský): setningar sem birtast ein af annarri */
#intro .s-talk .big { max-width: 34ch; font-size: clamp(22px, 2.7vw, 48px); margin-top: .75em; }
