/* aneat.app: the brand's home. One page, no framework. Fonts and images are served from this site.
   The idiom follows PhotoCargo: a quiet cool-grey page, hairlines, mono eyebrows, one big display
   wordmark. Motion is the point here: the wordmark spells "aneat.app" and "a neat app." in turn,
   and each app card plays a small scene of what the app does. Everything respects reduced motion. */

@font-face{font-family:'Funnel Display';font-style:normal;font-weight:300 800;font-display:swap;src:url(/assets/fonts/funnel-display-normal-latin.woff2) format('woff2')}
@font-face{font-family:'Host Grotesk';font-style:normal;font-weight:300 800;font-display:swap;src:url(/assets/fonts/host-grotesk-normal-latin.woff2) format('woff2')}
@font-face{font-family:'Martian Mono';font-style:normal;font-weight:300 700;font-display:swap;src:url(/assets/fonts/martian-mono-normal-latin.woff2) format('woff2')}

:root {
  --bg: #f4f7f9; --bg-2: #ffffff; --bg-3: #eaf0f3; --line: #d9e2e7; --line-2: #c2cfd6;
  --fg: #0b1920; --fg-2: #4a5e68; --fg-3: #647a85;
  --g1: #22b2ab; --g2: #4aa8f0; --teal: #0e737c; --sky: #1366e8;
  --yellow: #ffd60a; --red: #ff3b30;
  --grid: rgba(11, 25, 32, .07);
  --shadow: 0 24px 60px rgba(11, 25, 32, .12);
  --shadow-sm: 0 1px 2px rgba(11, 25, 32, .05), 0 10px 28px rgba(11, 25, 32, .07);
  --radius: 22px; --max: 1120px;
  --gutter: max(20px, env(safe-area-inset-left, 0px)); --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --font: "Host Grotesk", "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --display: "Funnel Display", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1); --ease-io: cubic-bezier(.7, 0, .25, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #060b11; --bg-2: #0b141b; --bg-3: #111c25; --line: #1b2a34; --line-2: #2a3c49;
    --fg: #eaf2f5; --fg-2: #a9b9c2; --fg-3: #7a8e9b; --teal: #3fd0c8; --sky: #5eb1f5;
    --grid: rgba(234, 242, 245, .07);
    --shadow: 0 24px 60px rgba(0, 0, 0, .5); --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; border-radius: 8px; }
.wrap { width: min(100% - var(--gutter) - var(--gutter-r), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 100; background: var(--sky); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.kicker { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 .55rem; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.home { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 650; font-size: 1.15rem; letter-spacing: -.01em; }
.home svg { width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 2px 8px rgba(14, 115, 124, .25); transition: transform .5s var(--ease); }
.home:hover svg { transform: rotate(-8deg); }
.top nav { display: flex; gap: .15rem; }
.top nav a { color: var(--fg-2); font-weight: 500; font-size: .93rem; padding: .5rem .75rem; border-radius: 10px; transition: background .2s, color .2s; }
.top nav a:hover { color: var(--fg); background: var(--bg-3); }

/* ---------- Hero: the wordmark ---------- */
.hero { position: relative; padding: clamp(3.5rem, 11vh, 7.5rem) 0 clamp(2.5rem, 6vh, 4.5rem); isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(75% 90% at 50% 20%, #000 20%, transparent 100%); mask-image: radial-gradient(75% 90% at 50% 20%, #000 20%, transparent 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: min(70vw, 760px); aspect-ratio: 1; right: -12%; top: -36%;
  background: radial-gradient(closest-side, rgba(34, 178, 171, .26), rgba(74, 168, 240, .14) 50%, transparent 74%); filter: blur(18px); }
.mark { margin: 0 0 1.5rem; font: 700 clamp(3.3rem, 13vw, 11rem)/1 var(--display); letter-spacing: -.045em; white-space: nowrap; color: var(--fg); animation: rise 1s var(--ease) both; }
.mark-inner { display: inline-block; }
.m { display: inline-block; }
.gap { display: inline-block; width: 0; animation: gap 10s var(--ease-io) infinite; }
.slot { display: inline-block; position: relative; width: .3em; height: .12em; vertical-align: baseline; }
.slot-b { width: 0; animation: slot-b 10s var(--ease-io) infinite; }
.dot { position: absolute; left: 50%; bottom: .015em; width: .165em; height: .165em; margin-left: -.0825em; border-radius: 50%;
  background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 .04em .16em rgba(34, 178, 171, .35); }
.slot-a .dot { animation: dot-a 10s var(--ease-io) infinite; }
.slot-b .dot { opacity: 0; animation: dot-b 10s var(--ease-io) infinite; }
@keyframes gap { 0%, 28% { width: 0; } 38%, 78% { width: .22em; } 88%, 100% { width: 0; } }
@keyframes slot-b { 0%, 28% { width: 0; } 38%, 78% { width: .3em; } 88%, 100% { width: 0; } }
@keyframes dot-a { 0%, 28% { opacity: 1; transform: none; } 38%, 78% { opacity: 0; transform: translateX(.55em); } 88%, 100% { opacity: 1; transform: none; } }
@keyframes dot-b { 0%, 28% { opacity: 0; transform: translateX(-.55em); } 38%, 78% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: translateX(-.55em); } }
.lead a { color: var(--sky); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.45; color: var(--fg-2); max-width: 40ch; animation: rise 1s .18s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Apps ---------- */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; padding-bottom: clamp(3rem, 7vh, 5rem); animation: rise 1s .34s var(--ease) both; }
.app { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  container-type: inline-size; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.app:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.app .body { padding: 1.35rem 1.4rem 1.5rem; display: grid; align-content: start; }
.app .icon { width: 60px; height: 60px; margin-bottom: 1rem; transition: transform .6s var(--ease); }
.app-longtake .icon { border-radius: 22.5%; }
.app:hover .icon { transform: rotate(-5deg) scale(1.06); }
.app h2 { margin: 0 0 .4rem; font: 650 clamp(1.5rem, 2.3vw, 1.9rem)/1.1 var(--display); letter-spacing: -.02em; color: var(--fg); }
.app .body > p:not(.kicker) { color: var(--fg-2); max-width: 36ch; margin-bottom: 1.15rem; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; margin-top: auto; }
.go { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--sky); }
.go svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.go:hover svg { transform: translateX(4px); }
.store { display: inline-flex; --h: 40px; border-radius: 7px; }
.store img { height: var(--h); width: auto; }
.store .dark { display: none; }
@media (prefers-color-scheme: dark) { .store .dark { display: block; } .store .light { display: none; } }

/* ---------- Scenes ---------- */
.scene { position: relative; height: clamp(170px, 44cqw, 236px); overflow: hidden; border-bottom: 1px solid var(--line); container-type: inline-size; }
html.js .scene.off * { animation-play-state: paused; }

/* PhotoCargo: six photos leave the cloud and settle, neatly, on the drive. */
.scene-pc { background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); }
.cloud { position: absolute; left: 8cqw; top: 16%; width: 27cqw; max-width: 150px; color: var(--line-2); }
.drive { position: absolute; right: 9cqw; top: 50%; transform: translateY(-50%); width: 36cqw; max-width: 180px; aspect-ratio: 1.5; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-2); box-shadow: var(--shadow-sm); }
.led { position: absolute; right: 11px; bottom: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); animation: led 7s steps(1) infinite; }
.tiles { position: absolute; inset: 11% 9% 15%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9%; }
.t { border-radius: 20%; aspect-ratio: 1; background: var(--tile); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 2px 6px rgba(11, 25, 32, .18);
  animation: gather 7s var(--ease-io) infinite; animation-delay: var(--d); }
.t1 { --tile: linear-gradient(135deg, #ffb36b, #ff6f91); --dx: -52cqw; --dy: -7cqw; --dr: -14deg; --d: 0s; }
.t2 { --tile: linear-gradient(135deg, #3fd0c8, #1366e8); --dx: -44cqw; --dy: 2cqw; --dr: 9deg; --d: .12s; }
.t3 { --tile: linear-gradient(135deg, #9be39e, #1f7a4d); --dx: -58cqw; --dy: 5cqw; --dr: -6deg; --d: .24s; }
.t4 { --tile: linear-gradient(135deg, #f6d5b1, #c98b5a); --dx: -41cqw; --dy: -12cqw; --dr: 12deg; --d: .36s; }
.t5 { --tile: linear-gradient(135deg, #a8d8ff, #4aa8f0); --dx: -62cqw; --dy: -9cqw; --dr: 5deg; --d: .48s; }
.t6 { --tile: linear-gradient(135deg, #3a3f8f, #0b1920); --dx: -49cqw; --dy: -1cqw; --dr: -10deg; --d: .6s; }
@keyframes gather {
  0% { transform: translate(var(--dx), var(--dy)) rotate(var(--dr)) scale(.9); opacity: 0; }
  6% { transform: translate(var(--dx), var(--dy)) rotate(var(--dr)) scale(.9); opacity: 1; }
  40%, 84% { transform: none; opacity: 1; }
  90% { transform: none; opacity: 0; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--dr)) scale(.9); opacity: 0; }
}
@keyframes led { 0%, 7% { background: var(--line-2); box-shadow: none; } 8%, 84% { background: var(--g1); box-shadow: 0 0 8px var(--g1); } 90%, 100% { background: var(--line-2); box-shadow: none; } }
.verified { position: absolute; left: 50%; bottom: 9%; transform: translate(-50%, 6px); display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .65rem; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line); font: 500 .66rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); opacity: 0; animation: verified 7s var(--ease) infinite; }
.verified svg { width: 12px; height: 12px; }
@keyframes verified { 0%, 48% { opacity: 0; transform: translate(-50%, 6px); } 56%, 84% { opacity: 1; transform: translate(-50%, 0); } 90%, 100% { opacity: 0; transform: translate(-50%, 0); } }

/* LongTake: one long recording fills the track and is cut into four neat files as it goes. */
.scene-lt { background: #0a0a0a; color: #fff; border-bottom-color: #1f1f1f; }
.scene-lt::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 110%, rgba(255, 214, 10, .16), transparent 70%); }
.rec, .files { position: absolute; top: 15%; font: 600 .66rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #bdbdbd; }
.rec { left: 7cqw; display: inline-flex; align-items: center; gap: .45rem; animation: rec 8s steps(1) infinite; }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 1s ease-in-out infinite alternate; }
.files { right: 7cqw; color: var(--yellow); opacity: 0; animation: files 8s steps(1) infinite; }
.track { position: absolute; left: 7cqw; right: 7cqw; top: 40%; height: 24%; min-height: 36px; border-radius: 12px; background: #161616; border: 1px solid #2a2a2a; overflow: hidden; }
.fill { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, #ffd60a, #ffc300); animation: fill 8s linear infinite; }
.cut { position: absolute; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: #0a0a0a; transform: scaleY(0); }
.c1 { left: 25%; animation: cut-1 8s steps(1) infinite; } .c2 { left: 50%; animation: cut-2 8s steps(1) infinite; } .c3 { left: 75%; animation: cut-3 8s steps(1) infinite; }
.labels { position: absolute; left: 7cqw; right: 7cqw; top: calc(64% + 12px); display: grid; grid-template-columns: repeat(4, 1fr); font: 500 .66rem/1 var(--mono); letter-spacing: .14em; color: #8d8d8d; }
.labels span { opacity: 0; }
.l1 { animation: label-1 8s steps(1) infinite; } .l2 { animation: label-2 8s steps(1) infinite; } .l3 { animation: label-3 8s steps(1) infinite; } .l4 { animation: label-4 8s steps(1) infinite; }
@keyframes fill { 0%, 4% { width: 0; opacity: 1; } 70% { width: 100%; } 88% { width: 100%; opacity: 1; } 93% { width: 100%; opacity: 0; } 100% { width: 0; opacity: 0; } }
@keyframes rec { 0%, 4% { opacity: 0; } 5%, 69% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes pulse { from { opacity: 1; } to { opacity: .3; } }
@keyframes files { 0%, 70% { opacity: 0; } 71%, 90% { opacity: 1; } 91%, 100% { opacity: 0; } }
@keyframes cut-1 { 0%, 20% { transform: scaleY(0); } 21%, 92% { transform: none; } 93%, 100% { transform: scaleY(0); } }
@keyframes cut-2 { 0%, 36% { transform: scaleY(0); } 37%, 92% { transform: none; } 93%, 100% { transform: scaleY(0); } }
@keyframes cut-3 { 0%, 53% { transform: scaleY(0); } 54%, 92% { transform: none; } 93%, 100% { transform: scaleY(0); } }
@keyframes label-1 { 0%, 20% { opacity: 0; } 21%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes label-2 { 0%, 36% { opacity: 0; } 37%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes label-3 { 0%, 53% { opacity: 0; } 54%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } }
@keyframes label-4 { 0%, 69% { opacity: 0; } 70%, 92% { opacity: 1; } 93%, 100% { opacity: 0; } }

/* ---------- Contact and footer ---------- */
.contact { padding: clamp(2.2rem, 6vh, 4rem) 0 clamp(3rem, 8vh, 5rem); border-top: 1px solid var(--line); animation: rise 1s .5s var(--ease) both; }
.mail { display: inline-block; font: 600 clamp(1.5rem, 4.2vw, 2.6rem)/1.1 var(--display); letter-spacing: -.02em; color: var(--fg); padding-bottom: .1em;
  background-image: linear-gradient(90deg, var(--g1), var(--g2)); background-size: 0 3px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .45s var(--ease); }
.mail:hover { background-size: 100% 3px; }
.contact .small { margin-top: 1rem; color: var(--fg-3); font-size: .92rem; }
.contact .small a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.contact .small a:hover { color: var(--fg); text-decoration-color: currentColor; }
.foot { border-top: 1px solid var(--line); padding: 1.6rem 0 2.4rem; font-size: .8rem; line-height: 1.6; color: var(--fg-3); }
.foot p { max-width: 92ch; margin-bottom: .4rem; }
.foot a { color: var(--fg-2); }
.foot a:hover { color: var(--fg); }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .apps { grid-template-columns: 1fr; }
  .top nav a { padding: .5rem .5rem; font-size: .88rem; }
  .lead br { display: none; }
}

/* ---------- Reduced motion: the finished, neat state of everything ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .t, .labels span, .files { opacity: 1; }
  .verified { opacity: 1; transform: translate(-50%, 0); }
  .led { background: var(--g1); }
  .fill { width: 100%; }
  .cut { transform: none; }
  .rec { display: none; }
}
