/* Elight Labs landing page, loaded after site.css. */
/* Hero */
.hero { padding: 56px 0 24px; overflow-x: clip; }
.hero .container {
    display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
    min-height: min(640px, calc(100dvh - 64px));
}
.hero h1 {
    font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 1.02; letter-spacing: -.045em;
    font-weight: 650; margin: 0 0 20px; max-width: 12ch;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { font-size: 1.2rem; color: var(--muted); max-width: 40ch; margin: 0 0 32px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.phones { position: relative; height: 560px; }
.phone {
    position: absolute; top: 50%; left: 50%; margin: 0;
    width: 232px; aspect-ratio: 660 / 1420;
    border: 7px solid var(--frame); border-radius: 38px; overflow: hidden;
    background: var(--frame); box-shadow: var(--shadow);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-1 { --r: -9deg; --x: -118%; z-index: 1; }
.phone-2 { --r: 0deg;  --x: -50%;  z-index: 2; width: 252px; }
.phone-3 { --r: 9deg;  --x: 18%;   z-index: 1; }
.phone { transform: translate(var(--x), -50%) rotate(var(--r)); }
.phone-1, .phone-3 { margin-top: 28px; }

/* Facts row */
.facts { padding: 24px 0 8px; }
.facts .container { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 12px 48px; align-items: end; border-top: 1px solid var(--line); padding-top: 28px; }
.fact strong { display: block; font-size: 1.9rem; letter-spacing: -.03em; font-weight: 650; line-height: 1.1; }
.fact span { color: var(--muted); font-size: .95rem; }
.icons { display: flex; justify-content: flex-end; }
.icons img { width: 44px; height: 44px; border-radius: 11px; border: 2px solid var(--bg); margin-left: -8px; box-shadow: 0 4px 10px -4px rgb(0 0 0 / .3); }

/* Sections */
section { scroll-margin-top: 72px; }
.section { padding: 96px 0; }
.section h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.035em; line-height: 1.05; font-weight: 650; margin: 0 0 12px; }
.section .intro { color: var(--muted); font-size: 1.1rem; max-width: 52ch; margin: 0 0 40px; }

/* App bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
    min-height: 300px; padding: 28px; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--line);
    text-decoration: none; color: var(--fg);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tile-text { position: relative; z-index: 1; max-width: 30ch; }
.tile-icon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 18px; }
.tile h3 { font-size: 1.5rem; letter-spacing: -.025em; font-weight: 650; margin: 0 0 4px; line-height: 1.15; }
.tile .meta { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.tile p { margin: 0; }
.tile .more { position: relative; z-index: 1; font-weight: 600; color: var(--accent); display: inline-flex; gap: 6px; }
.tile .more span { transition: transform .3s var(--ease); }
.tile:hover .more span { transform: translateX(4px); }

.tile-shot {
    position: absolute; z-index: 0; margin: 0;
    width: 220px; aspect-ratio: 660 / 1420; right: 32px; top: 40px;
    border: 6px solid var(--frame); border-radius: 34px; overflow: hidden; background: var(--frame);
    box-shadow: var(--shadow); transform: rotate(4deg);
    transition: transform .5s var(--ease);
}
.tile-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tile:hover .tile-shot { transform: rotate(2deg) translateY(-10px); }

.t-studio { grid-column: span 7; min-height: 440px; background: var(--accent-soft); border-color: transparent; }
.t-slomoly { grid-column: span 5; min-height: 440px; background: #111114; color: #ececef; border-color: #111114; }
.t-slomoly .meta { color: #a1a1aa; }
.t-slomoly .more { color: #ff7a57; }
.t-slomoly .tile-text { max-width: 24ch; }
.t-slomoly .tile-shot { --frame: #2a2a2f; right: -36px; top: 210px; width: 200px; transform: rotate(-6deg); }
.t-slomoly:hover .tile-shot { transform: rotate(-4deg) translateY(-10px); }
.t-egg { grid-column: span 5; background: var(--sky); border-color: transparent; }
.t-egg .egg-art {
    position: absolute; z-index: 0; right: -28px; bottom: -28px; width: 190px; height: 190px;
    border-radius: 56px; transform: rotate(-8deg); box-shadow: var(--shadow);
    transition: transform .5s var(--ease);
}
.t-egg:hover .egg-art { transform: rotate(-4deg) translateY(-8px); }
.t-egg .tile-text { max-width: 58%; }
.t-maneki { grid-column: span 7; }
.t-maneki .tile-shot { width: 190px; top: 56px; }
.t-rabese, .t-reader { grid-column: span 6; min-height: 0; flex-direction: row; align-items: center; }
.t-rabese .tile-icon, .t-reader .tile-icon { width: 88px; height: 88px; border-radius: 22px; margin: 0; flex: none; }
.t-reader .tile-icon { background: var(--bg); padding: 12px; }
.t-rabese .tile-text, .t-reader .tile-text { max-width: none; flex: 1; }
.t-rabese .more, .t-reader .more { align-self: flex-end; }

/* Principles */
.principles .container { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.principles .lead-col { position: sticky; top: 104px; }
.principles .lead-col p { color: var(--muted); font-size: 1.1rem; max-width: 36ch; margin: 0; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.rule { border-top: 2px solid var(--fg); padding-top: 20px; }
.rule h3 { font-size: 1.2rem; letter-spacing: -.02em; font-weight: 650; margin: 0 0 8px; }
.rule p { margin: 0; color: var(--muted); }

/* Contact */
.contact .panel {
    border-radius: var(--radius); padding: 64px 56px; background: var(--fg); color: var(--bg);
    display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
}
.contact h2 { color: var(--bg); max-width: 16ch; }
.contact p { margin: 0; color: color-mix(in srgb, var(--bg) 70%, var(--fg)); }
.contact .mail {
    display: inline-block; margin-top: 24px; font-size: clamp(1.1rem, 2.4vw, 1.75rem); font-weight: 600;
    letter-spacing: -.02em; color: var(--bg); text-decoration: none; word-break: break-all;
    border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.contact .mail:hover { color: var(--accent); }

/* Motion. Content is visible without JS; the script adds .js to opt in. */
@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * { animation: rise .9s var(--ease) both; }
    .hero-copy > :nth-child(2) { animation-delay: .08s; }
    .hero-copy > :nth-child(3) { animation-delay: .16s; }
    .phone { animation: phone-in 1.1s var(--ease) both; }
    .phone-2 { animation-delay: .15s; }
    .phone-1 { animation-delay: .3s; }
    .phone-3 { animation-delay: .38s; }
}
@keyframes phone-in { from { opacity: 0; transform: translate(var(--x), -38%) rotate(0deg); } }


/* Tablet */
@media (max-width: 1000px) {
    .hero .container { grid-template-columns: 1fr; min-height: 0; gap: 24px; }
    .phones { height: 480px; }
    .phone { width: 196px; }
    .phone-2 { width: 214px; }
    .t-studio, .t-slomoly, .t-egg, .t-maneki, .t-rabese, .t-reader { grid-column: span 12; }
    .t-studio, .t-slomoly, .t-maneki { min-height: 400px; }
    .principles .container { grid-template-columns: 1fr; gap: 40px; }
    .principles .lead-col { position: static; }
    .facts .container { grid-template-columns: repeat(3, auto); }
    .icons { grid-column: 1 / -1; justify-content: flex-start; padding-left: 8px; }
}

/* Phone */
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .nav nav a:not(:last-child) { display: none; }
    .hero { padding-top: 32px; }
    .hero .sub { font-size: 1.05rem; }
    .phones { height: 400px; }
    .phone { width: 160px; border-width: 5px; border-radius: 28px; }
    .phone-2 { width: 176px; }
    .phone-1 { --x: -112%; }
    .phone-3 { --x: 12%; }
    .facts .container { grid-template-columns: 1fr 1fr; gap: 20px; }
    .facts .container { align-items: start; }
    .fact strong { font-size: 1.3rem; }
    .t-egg .tile-text { max-width: none; }
    .section { padding: 64px 0; }
    .tile { padding: 22px; }
    .t-studio, .t-slomoly, .t-maneki { min-height: 0; padding-bottom: 250px; }
    .tile-shot, .t-maneki .tile-shot { width: 170px; top: auto; bottom: -130px; right: 24px; }
    .t-slomoly .tile-shot { right: 24px; top: auto; bottom: -130px; width: 170px; }
    .t-egg { padding-bottom: 200px; }
    .t-egg .egg-art { width: 180px; height: 180px; border-radius: 44px; }
    .t-rabese, .t-reader { flex-direction: column; align-items: flex-start; }
    .t-rabese .tile-icon, .t-reader .tile-icon { width: 64px; height: 64px; border-radius: 16px; }
    .t-rabese .more, .t-reader .more { align-self: flex-start; }
    .rules { grid-template-columns: 1fr; gap: 28px; }
    .contact .panel { grid-template-columns: 1fr; padding: 40px 24px; }
}
