/* Achordila brand module: logo sizing, splash intro and loading indicator.
   Colours: fork and letters use currentColor; echoes are brand orange #E99152 (the app accent). */

.ach-svg { display: inline-block; vertical-align: middle; overflow: visible; }
.ach-svg * { transform-box: view-box; }
.ach-mark { height: 1.6em; width: auto; }
.ach-lockup { height: 1.9em; width: auto; }
.ach-wordmark { height: 1.4em; width: auto; }

/* 01 · Strike & Ring (plays once) */
.ach-in { transform-origin: 60px 108px; animation: achIn .35s cubic-bezier(.2,.7,.3,1) both; }
.ach-tap { animation: achTap .2s ease-out .45s both; }
.ach-wave { transform-origin: 60px 82px; animation: achWig .9s ease-out .55s both; }
.ach-ring { opacity: 0; transform-origin: 60px 80px; animation: achRing 1.1s cubic-bezier(.2,.6,.3,1) both; }
.ach-ringA { animation-delay: .55s; }
.ach-ringB { animation-delay: 1s; }
.ach-e1 { opacity: .65; animation: achSettle .6s ease-out 1.7s both; }
.ach-e2 { opacity: .3; animation: achSettle .6s ease-out 1.85s both; }

/* 02 · Idle Ring (loops) */
.ach-idle { transform-origin: 60px 80px; animation: achIdle 1.8s cubic-bezier(.2,.6,.3,1) infinite; }
.ach-idleB { animation-delay: .9s; }

/* 03 · Draw-On (plays once) */
.ach-d-stem { stroke-dasharray: 27 60; animation: achDStem .35s cubic-bezier(.5,0,.3,1) .15s both; }
.ach-d-half { stroke-dasharray: 82 120; animation: achDHalf .7s cubic-bezier(.4,0,.2,1) .5s both; }
.ach-d-wave { stroke-dasharray: 40 80; animation: achDWave .3s ease-out 1.2s both; }
.ach-d-ring { opacity: 0; transform-origin: 60px 80px; animation: achRing 1s cubic-bezier(.2,.6,.3,1) 1.35s both; }
.ach-d-e1 { opacity: .65; animation: achSettle .5s ease-out 1.5s both; }
.ach-d-e2 { opacity: .3; animation: achSettle .5s ease-out 1.65s both; }

@keyframes achIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes achTap { 0% { transform: translateY(0); } 40% { transform: translateY(3px); } 100% { transform: translateY(0); } }
@keyframes achWig { 0% { transform: scaleY(1); } 15% { transform: scaleY(2.2); } 35% { transform: scaleY(-1.6); } 55% { transform: scaleY(1.2); } 75% { transform: scaleY(-.6); } 100% { transform: scaleY(1); } }
@keyframes achRing { 0% { opacity: 0; transform: scaleX(.85); } 20% { opacity: .9; } 100% { opacity: 0; transform: scaleX(1.3); } }
@keyframes achIdle { 0% { opacity: 0; transform: scaleX(.82); } 25% { opacity: .9; } 100% { opacity: 0; transform: scaleX(1.22); } }
@keyframes achSettle { from { opacity: 0; } }
@keyframes achDStem { from { stroke-dashoffset: 27; } }
@keyframes achDHalf { from { stroke-dashoffset: 82; } }
@keyframes achDWave { from { stroke-dashoffset: 40; } }

/* Splash intro */
.ach-intro {
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: opacity .3s ease;
}
.ach-intro-dark { background: #15151C; color: #F4F1EA; }
.ach-intro-light { background: #F4F1EA; color: #15151C; }
.ach-intro .ach-mark { height: min(40vh, 280px); }
.ach-intro-out { opacity: 0; pointer-events: none; }

/* Loading indicator */
.ach-loader { display: inline-flex; align-items: center; gap: .5em; }
.ach-loader .ach-mark { height: 1.5em; }
.ach-loader-label { font-size: .9em; opacity: .8; }

@media (prefers-reduced-motion: reduce) {
  .ach-svg *, .ach-intro { animation: none !important; transition: none !important; }
  .ach-idle { opacity: .5; }
}

@media print {
  .ach-intro, .ach-loader { display: none !important; }
}

/* App lockup: one app in the Achordila family */
.ach-app { display: inline-flex; align-items: center; gap: .45em; line-height: 1; }
.ach-app .ach-mark { height: 1.7em; }
.ach-app-text { display: inline-flex; flex-direction: column; gap: .2em; }
.ach-app-name { font-weight: 800; font-size: 1.15em; letter-spacing: -0.01em; }
.ach-app-by { font-size: .62em; font-weight: 600; opacity: .7; letter-spacing: .02em; }

/* Intro caption */
.ach-intro { flex-direction: column; gap: 20px; }
.ach-intro-caption { text-align: center; font-family: inherit; opacity: 0; animation: achCaption .5s ease-out 1.2s forwards; }
.ach-intro-name { font-size: clamp(28px, 6vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.ach-intro-by { font-size: 14px; font-weight: 600; opacity: .7; margin-top: 4px; }
@keyframes achCaption { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ach-intro-caption { opacity: 1; } }
