:root {
  color-scheme: light;
  --forest: #12392d;
  --ink: #192e26;
  --muted: #475e54;
  --paper: #fffdf8;
  --soft: #eef3eb;
  --line: #cbd8ce;
  --gold: #efc674;
  --heading: "Noto Kufi Arabic", Tahoma, sans-serif;
  --body: "Noto Sans Arabic", Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.9 var(--body); }
img { display: block; max-width: 100%; height: auto; }
figure, blockquote { margin: 0; }
a { color: var(--forest); text-underline-offset: .25em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #a95113; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0 0 .65em; font-family: var(--heading); line-height: 1.55; }
h1 { font-size: clamp(2rem, 4.8vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.skip { position: fixed; z-index: 2; inset: .5rem auto auto .5rem; padding: .5rem 1rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.header { border-bottom: 1px solid var(--line); }
.nav, .links, .brand, .actions, footer .wrap { display: flex; align-items: center; gap: 1rem; }
.nav { min-height: 5.3rem; justify-content: space-between; padding-block: .7rem; }
.brand { text-decoration: none; gap: .65rem; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: var(--heading); }
.brand small { color: var(--muted); font-size: .84rem; }
.brand img { border-radius: 50%; background: white; }
.links { flex-wrap: wrap; gap: clamp(.75rem, 2vw, 1.8rem); }
.links a { text-decoration: none; font-weight: 700; }
.links a:hover { text-decoration: underline; }
.button, .menu { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; border: 1px solid transparent; border-radius: .45rem; padding: .55rem 1.15rem; background: var(--forest); color: white; font: 700 1rem/1.65 var(--body); text-decoration: none; }
.button:hover { filter: brightness(1.18); }
.button.small { font-size: .9rem; }
.button.outline { color: inherit; background: transparent; border-color: currentColor; }
.menu { cursor: pointer; }
.hero { padding-block: clamp(3rem, 8vw, 7rem); background: var(--forest); color: white; }
.hero h1 span, .hero .eyebrow, .contact h2 { color: var(--gold); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(1.5rem, 6vw, 5rem); }
.eyebrow { color: #325e49; font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.2rem); max-width: 36rem; }
.actions { flex-wrap: wrap; margin-top: 1.6rem; }
.hero .button, .contact .button { background: var(--gold); color: var(--forest); }
.hero .outline, .contact .outline { background: transparent; color: white; }
.hero-photo, .project figure, .testimony figure { overflow: hidden; border-radius: .75rem; background: var(--soft); color: var(--forest); }
.hero-photo img, .project img, .testimony img { width: 100%; object-fit: cover; }
.hero-photo img { aspect-ratio: 4 / 3; }
figcaption { padding: .55rem 1rem; font-size: .92rem; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.soft { background: var(--soft); }
.section-heading { margin-bottom: 1.8rem; }
.section-heading p, .services p { color: var(--muted); }
.motto { padding: clamp(1.25rem, 4vw, 3rem); border-inline-start: .3rem solid #c59034; background: var(--soft); border-radius: .5rem; font: 700 clamp(1.3rem, 2.8vw, 2rem)/1.8 var(--heading); }
.motto cite { display: block; margin-top: .75rem; font: 600 .95rem/1.7 var(--body); }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.services article { padding: 1.35rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--paper); }
.services article p:last-child { margin-bottom: 0; }
.project figure img, .testimony figure img { max-height: 28rem; object-fit: contain; }
.album { margin-bottom: .75rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--paper); }
.album summary { padding: .85rem 1rem; font-weight: 700; cursor: pointer; }
.album summary span { float: left; color: var(--muted); font-weight: 400; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; padding: 0 .8rem .8rem; }
.gallery figure { overflow: hidden; border: 1px solid var(--line); border-radius: .5rem; }
.gallery a { display: block; }
.gallery a:focus-visible { outline-offset: -4px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--soft); }
.contact { background: var(--forest); color: white; }
address { font-style: normal; border: 1px solid #839c89; padding: 1.3rem; border-radius: .6rem; }
address a { display: block; width: fit-content; max-width: 100%; color: white; overflow-wrap: anywhere; }
footer { padding-block: 1.25rem; }
footer .wrap { flex-wrap: wrap; }
footer a { margin-inline-start: auto; }
@media (max-width: 820px) {
  .nav { flex-wrap: wrap; }
  .links { width: 100%; padding-bottom: .65rem; align-items: stretch; flex-direction: column; gap: .15rem; }
  .links a { display: block; padding: .55rem; }
  .links .button { width: fit-content; }
  .split { grid-template-columns: 1fr; }
  .services, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .services { grid-template-columns: 1fr; }
  .gallery { gap: .5rem; padding-inline: .5rem; }
  .gallery figcaption { padding: .45rem .55rem; }
  footer a { margin-inline-start: 0; }
}
@media (max-width: 330px) { .gallery { grid-template-columns: 1fr; } }

:root {
  color-scheme: dark;
  --forest: #191713;
  --ink: #f5eee1;
  --muted: #c8bdab;
  --paper: #141311;
  --soft: #1c1a16;
  --line: #494137;
  --gold: #e7b978;
}
body { overflow-x: clip; }
a, .eyebrow { color: var(--gold); }
:focus-visible { outline-color: #f5d5a8; }
.skip { background: var(--paper); }
.header { background: #141311; }
.brand img { padding: 2px; }
.button, .menu { background: var(--gold); color: #20170b; }
.button.outline { color: var(--ink); }
.hero { isolation: isolate; position: relative; overflow: clip; min-height: calc(100svh - 5.3rem); display: grid; align-items: center; }
.hero-backdrop, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-backdrop { object-fit: cover; object-position: center 52%; z-index: -3; filter: saturate(.65) blur(2px); transform: scale(1.06); }
.hero-shade { z-index: -2; background: linear-gradient(90deg, #17130ec4, #100e0ce0 53%, #100e0cf5), radial-gradient(ellipse at 26% 50%, #9e704040, transparent 58%); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; pointer-events: none;
  background: repeating-linear-gradient(111deg, #ffddac13 0 1px, transparent 1px 4px);
}
.hero h1 { font-size: clamp(3rem, 6.5vw, 6.5rem); letter-spacing: -.045em; margin-bottom: .25em; }
.hero h1 span { display: block; font-size: .47em; letter-spacing: normal; }
.hero .lead { color: var(--muted); }
.hero .outline { background: #ffffff0b; backdrop-filter: blur(14px); }
.book-stage { position: relative; aspect-ratio: 1.2; min-width: 0; display: grid; place-items: center; }
.book-stage canvas { width: 100%; height: 100%; position: absolute; inset: 0; }
.book-fallback { width: 75%; aspect-ratio: 1.85; display: flex; direction: ltr; perspective: 550px; filter: drop-shadow(0 16px 45px #e7b97848); }
.book-fallback i { width: 50%; border-radius: .35rem .35rem .2rem .2rem; background: repeating-linear-gradient(0deg, transparent 0 10px, #80583e55 11px 12px), linear-gradient(110deg,#b7895b,#f1ce98 80%,#96704f); border: 5px double #b79166; transform-origin: right; transform: rotateY(21deg) skewY(9deg); }
.book-fallback i + i { transform-origin: left; transform: rotateY(-21deg) skewY(-9deg); }
.book-stage.loaded .book-fallback { visibility: hidden; }
.section { padding-block: clamp(4rem, 9vw, 8.5rem); }
.services article, .album, address { background: #ffffff06; }
.motto { border-inline-start-color: var(--gold); }
.project figure, .testimony figure, .gallery img { background: #24201a; color: var(--ink); }
.film-section { background: #0a0908; padding-block: clamp(3rem, 6vw, 5rem); }
.film-title { padding-bottom: 1.1rem; }
.film-section video { display: block; width: 100%; max-height: 76vh; background: #0a0908; object-fit: contain; }
.film-description { margin-top: 1rem; color: var(--muted); }
.contact { border-top: 1px solid var(--line); }
.cursor-halo { display: none; }
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .cursor-halo.active { display: block; position: fixed; top: 0; left: 0; width: 26px; height: 26px; border: 1px solid var(--gold); border-radius: 50%; opacity: .72; pointer-events: none; z-index: 5; }
}
@media (max-width: 820px) {
  .hero { min-height: 0; }
  .hero-shade { background: linear-gradient(180deg,#100e0ce8,#17130ee0); }
  .book-stage { width: min(22rem, 95%); margin-inline: auto; aspect-ratio: 2; }
}

:root {
  color-scheme: light;
  --forest: #0a1a3a;
  --ink: #0a1a3a;
  --muted: #344766;
  --paper: #f5faff;
  --soft: #dceeff;
  --line: #a5c5e9;
  --gold: #064dc3;
  --heading: "Noto Kufi Arabic", Tahoma, sans-serif;
}
body { background: linear-gradient(150deg,#dceeff,#bfe0ff); }
.header { background: #eef7ff; }
:focus-visible { outline: 3px solid #064dc3; box-shadow: 0 0 0 6px #fff; }
.button,.menu,.hero .button { background: #064dc3; color: #fff; }
.hero { background: #bfe0ff; color: #0a1a3a; min-height: calc(100svh - 5.3rem); }
.hero-backdrop,.hero-reel { filter: saturate(.8); }
.hero-reel { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero-reel.playing { opacity: 1; }
.hero-shade { background: linear-gradient(270deg,#eef8fff7 12%,#dceeffe5 52%,#bfe0ff64 100%); }
.hero::after { background: radial-gradient(ellipse at 27% 39%,#fff9,transparent 48%); opacity: .8; }
.hero .outline { color: #0a1a3a; background: #f8fcffb8; }
.hero h1 { font-weight: 800; letter-spacing: -.045em; }
.hero .eyebrow,.hero h1 span { color: #064dc3; }
.hero .reel-toggle { position: absolute; inset-inline-end: 1rem; bottom: 1rem; font-size: .86rem; }
.book-fallback { filter: drop-shadow(0 14px 34px #174e9570); }
.book-fallback i { background: repeating-linear-gradient(0deg,transparent 0 10px,#416aab44 11px 12px),linear-gradient(110deg,#a3c3ec,#f8fcff 80%,#8aadda); border-color: #859fbd; }
.soft,.motto { background: #eef7ff; }
.services article,.album { background: #fff; }
.project figure,.testimony figure,.gallery img { background: #e3effb; }
.section-heading { margin-bottom: 2rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.feature-tile { perspective: 950px; }
.feature-tile a { display: block; overflow: hidden; color: #0a1a3a; background: #fff; border-radius: 1rem; padding-bottom: 1rem; text-align: center; text-decoration: none; box-shadow: 0 15px 38px #0a1a3a20; position: relative; transform: rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition: transform .18s; }
.feature-tile:nth-child(2) a { background: #bfe0ff; }
.feature-tile:nth-child(3) a { background: #064dc3; color: #fff; }
.feature-tile a::after { content: ""; pointer-events: none; position: absolute; inset: 0; opacity: var(--glare,0); background: radial-gradient(circle at var(--gx,50%) var(--gy,50%),#fff8,transparent 51%); }
.feature-tile h3 { margin: 1rem 0 .3rem; }
.feature-tile a>span { text-decoration: underline; }
.feature-media { position: relative; aspect-ratio: 4/3; }
.feature-media img,.feature-media video { width: 100%; height: 100%; object-fit: cover; }
.feature-media video { position: absolute; inset: 0; opacity: 0; }
.feature-media video.playing { opacity: 1; }
.film-section { background: #0a1a3a; color: #fff; }
.film-description { color: #dceeff; }
.contact h2 { color: #dceeff; }
.contact .button { background: #dceeff; color: #0a1a3a; }
.contact .outline { background: transparent; color: #fff; }
.cursor-halo.active { border-color: #064dc3; }
.clip-dialog { width: min(92vw,55rem); border: 0; border-radius: 1rem; padding: 1.25rem; color: #0a1a3a; background: #eef7ff; }
.clip-dialog::backdrop { background: #0a1a3acc; }
.clip-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.clip-dialog h2 { margin: 0; font-size: clamp(1rem,4vw,1.8rem); }
.clip-dialog video { display: block; width: 100%; }
.loading-screen { display: none; }
.loading-screen.active { display: grid; place-items: center; position: fixed; inset: 0; z-index: 9; pointer-events: none; background: #bfe0ff; color: #0a1a3a; font: 800 clamp(2rem,8vw,5rem) var(--heading); }
@media(max-width: 820px) { .hero { min-height: 0; } .hero-shade { background: linear-gradient(180deg,#eef8fff0,#dceeffc9); } .feature-grid { grid-template-columns: 1fr; } .feature-media { aspect-ratio: 16/9; } }
@media(prefers-reduced-motion: reduce) { .feature-tile a { transition: none; transform: none; } .hero-reel,.loading-screen.active { display: none; } }

.album-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 1.5rem; }
.album-nav a { padding: .45rem .85rem; border: 1px solid var(--line); background: #fff; border-radius: 2rem; font-weight: 700; }
.archive-album { scroll-margin-top: 1rem; }
.archive-album summary bdi { margin-inline-start: .4rem; font-weight: 400; color: var(--muted); }
.archive-album > p { margin: 0 1rem 1rem; }
.archive-album .gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.archive-album .gallery img { aspect-ratio: 4/3; object-fit: contain; }
.original-gallery-title { margin-top: 2rem; }
.photo-link { display: inline-block; margin-inline-start: .55rem; }
.hero-backdrop, .hero-reel { filter: none; }
.hero-shade { background: linear-gradient(to left, #eef8fff5 8%, #dceeffea 48%, #bfe0ff38 78%); }
@media (max-width: 820px) { .hero-shade { background: linear-gradient(180deg, #eef8fff0, #dceeffc9); } }

.hero h1 { font-size: clamp(2.35rem, 5.1vw, 5.2rem); }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.principles-grid article {
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .6rem;
}
.principles-grid article p,
.principles-grid article ul { margin-bottom: 0; }
.principles-grid ul { padding-inline-start: 1.3rem; }

.founder-profile { padding: 1.35rem; background: #eef7ff; border: 1px solid var(--line); border-radius: .6rem; }
.founder-profile img { border-radius: .35rem; }
.about .motto { grid-column: 1 / -1; }

/* Keep the slideshow behind the opening copy on every screen size. */
.hero {
  min-height: calc(100svh - 5.3rem);
  color: #fff;
  background: #0a1a3a;
}
.hero-slides, .hero-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-slides { z-index: -3; }
.hero-frame {
  object-fit: cover;
  object-position: center 58%;
  opacity: 0;
  transition: opacity .75s ease;
}
.hero-frame.is-portrait { object-position: center 42%; }
.hero-frame.is-current { opacity: 1; z-index: 1; }
.hero::after {
  inset: 0;
  z-index: -2;
  background: linear-gradient(to left, #183759dc, #18375996 41%, #18375912 78%);
  opacity: 1;
  pointer-events: none;
}
.hero-layout {
  width: 100%;
  max-width: none;
  padding-inline: clamp(1.25rem, 4vw, 4.5rem);
  grid-template-columns: minmax(0, 35rem);
}
.hero-copy { text-align: right; }
.hero-copy h1 { font-size: clamp(2.55rem, 4.65vw, 4.85rem); }
.hero .eyebrow, .hero h1 span { color: #c2e5ff; }
.hero .lead { color: #fff; }
@media (max-width: 820px) {
  .hero::after {
    background: linear-gradient(to bottom, #18375932, #183759b5 48%, #183759d4);
  }
  .hero-copy h1 { font-size: clamp(2rem, 7.5vw, 3.25rem); }
}
@media (prefers-reduced-motion: reduce) { .hero-frame { transition: none; } }

.founder-profile img {
  display: block;
  width: min(100%, 22rem);
  height: auto;
}

.founder-profile {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #b9d4ef;
  border-radius: 1rem;
  box-shadow: 0 16px 40px #173d661c;
}
.founder-photo {
  display: block;
  overflow: hidden;
}
.founder-photo:focus-visible { outline-offset: -5px; }
.founder-profile .founder-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}
/* Crop the rounded white corners baked into the certificate photo. */
#founder-certificate-photo img { scale: 1.11; }

.founder-profile figcaption {
  margin: 0;
  padding: 1.15rem 1.35rem 1.3rem;
  border-top: 3px solid #064dc3;
  background: linear-gradient(110deg, #fff, #eef7ff);
}
.founder-profile h3 {
  margin: 0 0 .25rem;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
}
.founder-profile figcaption p { margin: 0; color: var(--muted); font-size: 1rem; }

@media (prefers-reduced-motion: no-preference) {
  .founder-photo[data-current] img { animation: founder-photo-reveal .55s ease-out both; }
  .founder-photo[data-current]::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 25%, #dceeff65 48%, transparent 70%);
    animation: founder-light-sweep .75s ease-out both;
  }
}
@keyframes founder-photo-reveal {
  from { opacity: .35; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes founder-light-sweep {
  from { opacity: .7; transform: translateX(-80%); }
  to { opacity: 0; transform: translateX(80%); }
}

.founder-slides { position: relative; aspect-ratio: 3 / 4; background: #dceeff; }
.founder-slides .founder-photo { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.founder-slides .founder-photo[data-current] { opacity: 1; pointer-events: auto; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .founder-slides .founder-photo { transition: opacity .65s ease; }
}

.language-link { font-weight: 700; white-space: nowrap; }
:lang(en) .hero-copy { text-align: start; }
:lang(en) .album summary span { float: inline-end; }
:lang(en) .hero h1 { letter-spacing: -.025em; line-height: 1.12; }
@media (min-width: 821px) {
  :lang(en) .hero::after {
    background: linear-gradient(to right, #183759dc, #18375996 41%, #18375912 78%);
  }
}

.language-options { display: flex; flex-wrap: wrap; gap: .35rem .75rem; }
.language-link[lang="ti"] { font-family: "Noto Sans Ethiopic", Nyala, "Abyssinica SIL", sans-serif; }
:root:lang(ti) {
  --heading: "Noto Sans Ethiopic", Nyala, "Abyssinica SIL", sans-serif;
  font-family: var(--heading);
}
:lang(ti) .hero-copy { text-align: start; }
:lang(ti) .album summary span { float: inline-end; }
@media (min-width: 821px) {
  :lang(ti) .hero::after {
    background: linear-gradient(to right, #183759dc, #18375996 41%, #18375912 78%);
  }
}

.anniversary-frame {
  aspect-ratio: 688 / 829;
  perspective: 1000px;
}
.anniversary-faces {
  position: relative;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .55s ease;
}
.anniversary-card[data-flipped] .anniversary-faces { transform: rotateY(180deg); }
.anniversary-front, .anniversary-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}
.anniversary-back { transform: rotateY(180deg); }
.testimony .anniversary-frame img {
  width: 100%;
  height: 100%;
  max-height: none;
}
.testimony .anniversary-front img {
  object-fit: cover;
  object-position: center 43%;
}
.testimony .anniversary-back img { object-fit: contain; }
@media (prefers-reduced-motion: reduce) {
  .anniversary-faces { transition: none; }
}
