@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

* { box-sizing: border-box; }

html {
    overflow-x: hidden;
}

body, html {
    margin: 0; padding: 0;
    font-family: 'Inter', sans-serif;
    color: #221f1d;
    min-height: 100vh;
}

body {
    background: #f7f2e9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }

/* ---- Layered backdrop: wash (z-index 0), canvas (z-index 1), content (z-index 2+) ---- */

.bg-gradient {
    position: fixed; inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 18% 15%, rgba(194, 59, 45, 0.05), transparent 55%),
                radial-gradient(circle at 82% 85%, rgba(107, 127, 94, 0.07), transparent 55%);
}

#vybeCanvas {
    position: fixed; inset: 0;
    width: 100vw; height: 100vh;
    z-index: 1;
    pointer-events: none;
    display: block;
}

/* ---- Nav ---- */

nav {
    position: sticky; top: 0; left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(247, 242, 233, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(34, 31, 29, 0.08);
    transition: background 250ms ease, box-shadow 250ms ease;
}

nav .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 32px;
    transition: padding 250ms ease;
}

@media (prefers-reduced-motion: reduce) {
    nav, .nav-link, .card, .signal-cta, .enso-ring, .ripple-ring { transition: none; animation: none; }
}

.logo {
    font-family: 'Shippori Mincho', serif;
    font-weight: 600; letter-spacing: 0.02em; font-size: 1.5rem;
    color: #221f1d;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: font-size 250ms ease;
}

.logo-mark {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: width 250ms ease, height 250ms ease;
}

nav.nav-scrolled .logo-mark { width: 17px; height: 17px; }

.logo-mark circle {
    fill: none;
    stroke: #c23b2d;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.logo .logo-accent {
    color: #c23b2d;
}

nav.nav-scrolled .logo { font-size: 1.25rem; }

.nav-link {
    display: inline-block;
    color: #f7f2e9; text-decoration: none; font-weight: 600; font-size: 0.95rem;
    padding: 12px 26px;
    border-radius: 2px;
    background: #c23b2d;
    box-shadow: 0 6px 16px rgba(194, 59, 45, 0.22);
    transition: transform 200ms ease, box-shadow 200ms ease, padding 250ms ease, font-size 250ms ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(194, 59, 45, 0.3);
}

.nav-link:focus-visible {
    outline: 2px solid #6b7f5e;
    outline-offset: 2px;
}

nav.nav-scrolled {
    background: rgba(247, 242, 233, 0.95);
    box-shadow: 0 4px 24px rgba(34, 31, 29, 0.1);
}

nav.nav-scrolled .nav-inner { padding: 12px 32px; }

nav.nav-scrolled .nav-link { padding: 9px 20px; font-size: 0.88rem; }

@media (max-width: 650px) {
    nav .nav-inner { padding: 16px 18px; }
    .logo { font-size: 1.2rem; }
    .nav-link { padding: 9px 16px; font-size: 0.82rem; }

    nav.nav-scrolled .nav-inner { padding: 10px 18px; }
    nav.nav-scrolled .logo { font-size: 1.05rem; }
    nav.nav-scrolled .nav-link { padding: 7px 14px; font-size: 0.72rem; }
}

/* ---- Hero ---- */

.hero {
    max-width: 860px;
    margin: 0 auto;
    padding: 11vh 24px 2vh;
    text-align: center;
    position: relative;
    z-index: 2;
}

.brand-h1 {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(2rem, 6vw, 4.6rem);
    line-height: 1.2;
    font-weight: 600;
    margin: 0;
    color: #221f1d;
    letter-spacing: 0.01em;
}

.hero-tagline {
    margin: 26px auto 0;
    max-width: 640px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #52493f;
}

@media (max-width: 600px) {
    .hero { padding: 10vh 18px 1vh; }
    .hero-tagline { font-size: 1rem; }
}

/* ---- Enso emblem: a single brushed circle, vibe rippling outward ---- */

.enso-wrap {
    display: flex;
    justify-content: center;
    margin: 54px 0 8px;
    position: relative;
}

.enso-emblem {
    width: min(220px, 58vw);
    height: auto;
    overflow: visible;
}

.ripple-ring {
    fill: none;
    stroke: #6b7f5e;
    stroke-width: 1;
    opacity: 0;
    transform-origin: 110px 110px;
    animation: rippleOut 4.5s ease-out infinite;
}

.ripple-ring.r2 { animation-delay: 1.5s; }
.ripple-ring.r3 { animation-delay: 3s; }

@keyframes rippleOut {
    0% { transform: scale(0.55); opacity: 0.45; }
    100% { transform: scale(1.35); opacity: 0; }
}

.enso-ring {
    fill: none;
    stroke: #c23b2d;
    stroke-width: 6;
    stroke-linecap: round;
    transform-origin: 110px 110px;
    animation: ensoBreathe 6s ease-in-out infinite;
}

@keyframes ensoBreathe {
    0%, 100% { opacity: 0.92; }
    50% { opacity: 1; }
}

.enso-caption {
    text-align: center;
    margin-top: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #8a8073;
}

/* ---- Cards ---- */

.grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 2.5rem 24px 6rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    position: relative;
    z-index: 2;
}

.card {
    background: rgba(253, 250, 244, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(34, 31, 29, 0.1);
    border-top: 2px solid #c23b2d;
    padding: 38px 36px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(34, 31, 29, 0.06);
    transition: transform 280ms ease, box-shadow 280ms ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(34, 31, 29, 0.12);
}

.card .icon {
    width: 44px; height: 44px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card .icon svg {
    width: 30px; height: 30px;
    fill: none;
    stroke: #c23b2d;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card:nth-child(2) .icon svg { stroke: #6b7f5e; }
.card:nth-child(3) .icon svg { stroke: #8a8073; }

.card h3 {
    font-family: 'Shippori Mincho', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #221f1d;
    margin: 0 0 14px;
}

.card p {
    font-size: 0.98rem;
    line-height: 1.65;
    color: #52493f;
    margin: 0;
}

@media (max-width: 600px) {
    .grid { padding: 1.5rem 18px 4rem; gap: 18px; }
    .card { padding: 28px 24px; }
}

/* ---- Signal Line ---- */

.signal-line {
    max-width: 700px;
    margin: 0 auto;
    padding: 4rem 24px 8rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.signal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signal-status {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #4e5f43;
    background: rgba(107, 127, 94, 0.12);
    padding: 8px 18px;
    border-radius: 999px;
    margin: 0 0 28px;
}

.signal-cta {
    display: inline-block;
    padding: 20px 48px;
    border-radius: 2px;
    background: #c23b2d;
    color: #f7f2e9;
    font-family: 'Shippori Mincho', serif;
    font-weight: 600;
    font-size: 1.15rem;
    box-shadow: 0 12px 30px rgba(194, 59, 45, 0.3);
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.signal-cta:hover,
.signal-cta:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 38px rgba(194, 59, 45, 0.4);
}

.signal-cta:focus-visible {
    outline: 2px solid #6b7f5e;
    outline-offset: 3px;
}

.signal-sub {
    margin-top: 22px;
    font-size: 0.92rem;
    color: #52493f;
}

@media (max-width: 600px) {
    .signal-line { padding: 3rem 18px 6rem; }
    .signal-cta { padding: 16px 32px; font-size: 1rem; width: 100%; }
}

/* ---- Footer ---- */
/* Footer markup itself is injected via SSI and shouldn't be edited per-domain -
   spacing/contrast lives here instead. */

footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 28px 24px;
    font-size: 0.85rem;
    color: #52493f;
    background: rgba(253, 250, 244, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(34, 31, 29, 0.08);
}

footer div {
    margin: 4px 0;
}

footer a {
    color: #221f1d;
    text-decoration: underline;
}
