/* Home page: three towers of Ge'ez letters rise next to the three doors in. */
.hero { background: var(--white); border-bottom: 2px solid var(--haze); overflow: hidden; margin-top: -1.75rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; align-items: end; padding-top: 2.75rem; }
.hero-text { padding-bottom: 2.5rem; }
.hero-text h1 { max-width: 17ch; }
html[lang="am"] .hero-text h1, html[lang="ti"] .hero-text h1 { max-width: none; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; }

/* The three ways in */
.doors { display: grid; gap: .75rem; margin: 1.5rem 0 1rem; max-width: 30rem; }
.doors.stack { max-width: none; }
.door { position: relative; display: grid; gap: .1rem; padding: .9rem 2.8rem .9rem 1.1rem; border: 2px solid var(--ink); border-radius: 14px; background: var(--white); color: var(--ink); text-decoration: none; }
.door strong { font-size: 1.15rem; line-height: 1.25; }
.door span { color: var(--ink-2); font-size: .95rem; }
.door::after { content: ''; position: absolute; right: 1.15rem; top: 50%; width: .6rem; height: .6rem; border: solid currentColor; border-width: 0 3px 3px 0; transform: translateY(-50%) rotate(-45deg); transition: right .15s; }
.door:hover { background: var(--haze-2); }
.door:hover::after { right: .95rem; }
.door.primary { background: var(--daisy); border-color: var(--daisy); border-bottom: 5px solid var(--daisy-d); }
.door.primary span { color: var(--ink); }
.door.primary:hover { background: #ffcd4d; }

/* The towers. Tiles drop in from the bottom up, one after the other. */
.skyline { --th: 30px; display: flex; align-items: flex-end; justify-content: center; gap: clamp(.4rem, 1.6vw, 1rem); border-bottom: 14px solid var(--ink); padding-inline: .5rem; }
.tower { flex: 0 1 var(--w); min-width: 0; display: flex; flex-direction: column; }
.cap { height: 22px; margin-bottom: 3px; background: var(--daisy-d); border-radius: 999px 999px 0 0; animation: drop .5s cubic-bezier(.2, .8, .2, 1.1) both; animation-delay: var(--d); }
.tile { height: var(--th); margin-top: 3px; display: grid; place-items: center; border-radius: 4px; font-size: calc(var(--th) * .62); font-weight: 700; line-height: 1; color: rgba(255, 255, 255, .9); animation: drop .5s cubic-bezier(.2, .8, .2, 1.1) both; animation-delay: var(--d); }
.tile.a { background: var(--ink); }
.tile.b { background: #3a4496; }
.tile.c { background: var(--daisy); color: var(--ink); }
/* No Ge'ez font on this device: carve a window into each tile instead of showing empty boxes. */
.tile:empty::before { content: ''; width: calc(var(--th) * .42); height: calc(var(--th) * .6); border: 3px solid rgba(255, 255, 255, .5); border-bottom: 0; border-radius: 99px 99px 0 0; }
.tile.c:empty::before { border-color: rgba(30, 35, 88, .45); }
@keyframes drop { from { opacity: 0; transform: translateY(-70px); } to { opacity: 1; transform: none; } }

/* Sections below */
.block { margin-top: 3rem; }
.steps { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.steps li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem; background: var(--white); border: 2px solid var(--haze); border-radius: 16px; }
.steps li > svg { flex: none; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; }

.fields { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 1rem; }
.field-tile { display: flex; align-items: flex-end; min-height: 92px; padding: .9rem 1rem; border: 2px solid transparent; border-radius: 16px; color: var(--ink); font-weight: 800; font-size: 1.1rem; line-height: 1.25; text-decoration: none; }
.field-tile:nth-child(4n+1) { background: var(--daisy-bg); }
.field-tile:nth-child(4n+2) { background: var(--sky-bg); }
.field-tile:nth-child(4n+3) { background: var(--green-bg); }
.field-tile:nth-child(4n+4) { background: var(--rose-bg); }
.field-tile:hover { border-color: var(--ink); }

.logos { display: flex; flex-wrap: wrap; gap: 1rem 2.25rem; align-items: center; margin-top: 1rem; }
.logos img { display: block; max-height: 56px; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: .8; transition: opacity .15s; }
.logos a:hover img { filter: none; opacity: 1; }
.logo-item { font-weight: 700; color: var(--ink-2); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 1.75rem; }
  .hero-text { padding-bottom: 1.75rem; }
  .skyline { --th: 22px; }
}
