/* ninpo brand pages,one stylesheet for the home and the opt-out pages */

:root
{
    --ink: #1C1917;
    --ink-soft: #44403C;
    --muted: #57534E;
    --line: #E7E5E4;
    --paper: #FAFAF9;
    --card: #FFFFFF;
    --gold: #CA8A04;
    --gold-deep: #A16207;
    --gold-soft: #FEF3C7;
    --success: #15803D;
    --danger: #B91C1C;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --radius: 18px;
    --shadow: 0 1px 2px rgba(28,25,23,.04), 0 12px 32px -12px rgba(28,25,23,.12);
    --ease: cubic-bezier(.22,1,.36,1);
    --container: 1180px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img,svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1,h2,h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: var(--gold-soft); color: var(--ink); }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 56ch; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; }
.skip:focus { left: 12px; }

/* buttons,the focus ring stays visible for keyboard users */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; font: 600 15px/1 var(--sans);
          cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.button svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.button:hover svg { transform: translateX(3px); }
.button-primary { background: var(--ink); color: #fff; }
.button-primary:hover { background: #000; box-shadow: 0 10px 24px -10px rgba(28,25,23,.5); }
.button-ghost { border-color: var(--line); background: var(--card); color: var(--ink); }
.button-ghost:hover { border-color: var(--ink-soft); }
.button:focus-visible,a:focus-visible,input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.button[disabled] { opacity: .6; cursor: progress; }

/* floating navigation */
.nav { position: fixed; top: 16px; left: 16px; right: 16px; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(100%, var(--container)); margin-inline: auto; padding: 10px 10px 10px 22px; border: 1px solid rgba(231,229,228,.9);
             border-radius: 999px; background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--gold-soft); font-size: 17px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.button) { padding: 10px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-soft); transition: color .2s var(--ease), background-color .2s var(--ease); }
.nav-links a:not(.button):hover { color: var(--ink); background: #F5F5F4; }
.nav-links .button { min-height: 42px; padding: 0 20px; }

/* hero,the composition is drawn in css so the page needs no image */
.hero { position: relative; padding: 168px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; }
.hero h1 { margin: 22px 0 24px; font-size: clamp(44px, 6.4vw, 84px); font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 480px; justify-self: end; width: 100%; }
.orb { position: absolute; border-radius: 50%; }
.orb-sun { inset: 14%; background: radial-gradient(circle at 32% 30%, #FDE68A 0%, #F59E0B 38%, #A16207 72%, #422006 100%); box-shadow: 0 40px 80px -30px rgba(161,98,7,.55); }
.orb-ring { inset: 2%; border: 1px solid rgba(28,25,23,.12); }
.orb-ring.two { inset: -8%; border-style: dashed; border-color: rgba(28,25,23,.1); animation: spin 90s linear infinite; }
.orb-moon { width: 26%; aspect-ratio: 1; right: 0; bottom: 8%; background: var(--ink); box-shadow: inset -10px -12px 0 rgba(255,255,255,.06); }
.orb-dot { width: 12px; height: 12px; left: 6%; top: 22%; background: var(--gold); }
.hero-card { position: absolute; left: -6%; bottom: 4%; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.92);
             box-shadow: var(--shadow); font-size: 14px; }
.hero-card strong { display: block; font-size: 15px; }
.hero-card span { color: var(--muted); }
.hero-card svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-deep); }
@keyframes spin { to { transform: rotate(360deg); } }

/* the scrolling band of disciplines */
.band { border-block: 1px solid var(--line); background: var(--card); overflow: hidden; }
.band-track { display: flex; gap: 56px; width: max-content; padding: 22px 0; animation: band 40s linear infinite; font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--ink-soft); }
.band-track span { display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.band-track span::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
@keyframes band { to { transform: translateX(-50%); } }

/* sections */
.section { padding: 112px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; margin-bottom: 56px; }
.section-head h2 { margin-top: 16px; font-size: clamp(34px, 4.2vw, 54px); font-weight: 500; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
           transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.service:hover { border-color: #D6D3D1; box-shadow: var(--shadow); }
.service svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--paper); color: var(--gold-deep); border: 1px solid var(--line); }
.service h3 { font-size: 23px; font-weight: 600; }
.service p { color: var(--muted); font-size: 15.5px; }

.approach { background: var(--ink); color: #F5F5F4; }
.approach .eyebrow { color: #FCD34D; }
.approach .lead { color: #D6D3D1; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 56px; border-radius: var(--radius); overflow: hidden; background: rgba(255,255,255,.12); }
.step { padding: 36px 32px; background: var(--ink); }
.step-number { font-family: var(--serif); font-size: 52px; font-style: italic; line-height: 1; color: #FCD34D; }
.step h3 { margin: 22px 0 10px; font-size: 24px; }
.step p { color: #D6D3D1; font-size: 15.5px; }

.quote { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: start; max-width: 960px; margin-inline: auto; }
.quote svg { width: 64px; height: 64px; color: var(--gold); }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3.2vw, 38px); line-height: 1.3; }
.quote figcaption { margin-top: 24px; font-size: 15px; color: var(--muted); }

.cta { position: relative; padding: 72px 64px; border-radius: 28px; overflow: hidden; background: linear-gradient(135deg, #292524 0%, #1C1917 60%); color: #fff; }
.cta::after { content: ''; position: absolute; width: 420px; aspect-ratio: 1; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.45), transparent 65%); }
.cta-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 500; max-width: 18ch; }
.cta .button-primary { background: #fff; color: var(--ink); }
.cta .button-primary:hover { background: var(--gold-soft); }

.footer { padding: 48px 0 56px; color: var(--muted); font-size: 14.5px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; border-top: 1px solid var(--line); }
.footer a:hover { color: var(--ink); }

/* elements below the screen fade in once they reach it,without the script everything simply shows */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.pending { opacity: 0; transform: translateY(18px); }

/* opt-out page */
.page-center { display: grid; min-height: 100vh; place-items: center; padding: 120px 24px 48px; background: radial-gradient(900px 500px at 85% -10%, rgba(245,158,11,.14), transparent 60%), var(--paper); }
.panel { width: min(100%, 520px); padding: 44px 40px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.panel h1 { margin: 16px 0 12px; font-size: clamp(30px, 4vw, 38px); font-weight: 500; }
.panel .lead { font-size: 16px; }
.field { display: grid; gap: 8px; margin-top: 28px; }
.field label { font-size: 14px; font-weight: 600; }
.field input { min-height: 50px; padding: 0 16px; border: 1px solid #D6D3D1; border-radius: 12px; font: 400 16px var(--sans); color: var(--ink); background: var(--paper); transition: border-color .2s var(--ease); }
.field input:hover { border-color: #A8A29E; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.panel .button { width: 100%; margin-top: 16px; }
.message { min-height: 24px; margin-top: 14px; font-size: 14.5px; }
.message.success { color: var(--success); }
.message.error { color: var(--danger); }
.panel-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }

/* responsive */
@media (max-width: 1024px)
{
    .hero-grid,.section-head { grid-template-columns: 1fr; }
    .hero-art { justify-self: center; max-width: 380px; }
    .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px)
{
    body { font-size: 16px; }
    .nav-links a:not(.button) { display: none; }
    .hero { padding: 132px 0 72px; }
    .section { padding: 80px 0; }
    .steps { grid-template-columns: 1fr; }
    .quote { grid-template-columns: 1fr; gap: 20px; }
    .cta { padding: 48px 28px; }
    .hero-card { left: 0; }
}
@media (max-width: 480px)
{
    .services { grid-template-columns: 1fr; }
    .panel { padding: 32px 24px; }
    .hero-actions .button { width: 100%; }
}

/* motion is kept for those who want it */
@media (prefers-reduced-motion: reduce)
{
    *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal.pending { opacity: 1; transform: none; }
}
