:root {
  --bg: #fafaf8; --ink: #1a1d23; --muted: #5b6472; --accent: #b45309; --accent-ink: #ffffff;
  --card: #ffffff; --line: #e7e5e0; --band: #f1efe9; --soft: #fbf3ea;
  --station: #ffffff; --station-line: #cfcac0; --pile: #b45309;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #10131a; --ink: #e8eaf0; --muted: #9aa3b2; --accent: #f59e0b; --accent-ink: #10131a;
    --card: #171b24; --line: #262c38; --band: #141821; --soft: #1d1a17;
    --station: #1c2130; --station-line: #333b4c; --pile: #f59e0b; }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 18px/1.65 Georgia, 'Times New Roman', serif; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 64px; }
@media (max-width: 760px) { .wrap { padding: 0 20px; } }
.sans { font-family: ui-sans-serif, system-ui, sans-serif; }
.kicker { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 20px; }
h2 { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 20px; }
.h2big { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; font-weight: 400; margin-bottom: 20px; max-width: 18em; }
p + p { margin-top: 16px; }
a { color: var(--accent); }

/* nav */
nav { padding: 26px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-family: ui-sans-serif, system-ui, sans-serif; }
nav .brand { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--ink); text-decoration: none; }
nav .links { display: flex; gap: 26px; font-size: 15px; }
nav .links a { color: var(--muted); text-decoration: none; }
nav .links a:hover { color: var(--accent); }
@media (max-width: 760px) { nav .links { display: none; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; padding: 56px 0 88px; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; gap: 40px; padding: 32px 0 64px; } }
h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.06; font-weight: 400; margin-bottom: 26px; letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: clamp(19px, 1.7vw, 22px); color: var(--muted); max-width: 32em; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 10px; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 16px; font-weight: 700; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--card); }
.btn:hover { filter: brightness(1.06); }

/* flow diagram */
.flow { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 16px; box-shadow: 0 20px 50px rgba(0,0,0,.06); }
.flow svg { width: 100%; height: auto; display: block; }
.flow .cap { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 14px; color: var(--muted); margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; }
.flow .cap b { color: var(--accent); }
.dot { fill: var(--muted); }
.dot.go { animation: go 6s linear infinite; }
.dot.go.d2 { animation-delay: -2s; } .dot.go.d3 { animation-delay: -4s; }
@keyframes go { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 40% { transform: translateX(176px); opacity: 1; } 42% { opacity: 0; } 100% { transform: translateX(176px); opacity: 0; } }
.dot.out { animation: out 6s linear infinite; }
.dot.out.d2 { animation-delay: -3s; }
@keyframes out { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 60% { transform: translateX(170px); opacity: 1; } 64% { opacity: 0; } 100% { transform: translateX(170px); opacity: 0; } }
.pulse { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dot.go, .dot.out, .pulse { animation: none; opacity: 1; } }

/* sections */
section { padding: 80px 0; border-top: 1px solid var(--line); }
@media (max-width: 760px) { section { padding: 56px 0; } }
.band { background: var(--band); border-top: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px 30px 28px; }
.step .num { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 48px; font-weight: 800; line-height: 1; color: var(--accent); margin-bottom: 14px; }
.step h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 17px; }
.premise-lead { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; margin-bottom: 40px; align-items: start; }
@media (max-width: 900px) { .premise-lead { grid-template-columns: 1fr; gap: 20px; } }
.premise-lead p { color: var(--muted); }
.premise-lead p strong { color: var(--ink); font-weight: 400; }

.svc article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.svc .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.svc .ico svg { width: 26px; height: 26px; }
.svc h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.svc p { color: var(--muted); font-size: 17px; }

/* about */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
@media (max-width: 960px) { .about { grid-template-columns: 1fr; gap: 36px; } }
.about .text p { font-size: 19px; }
.team { display: grid; gap: 18px; }
.team figure { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 16px 16px; }
.team img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line); display: block; }
.team figcaption { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 15px; color: var(--muted); line-height: 1.45; }
.team figcaption b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.team figcaption span { display: block; color: var(--accent); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }

/* dot works */
.shop { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
@media (max-width: 960px) { .shop { grid-template-columns: 1fr; } }
.shop .shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.10); background: var(--card); }
.shop .shot img { width: 100%; height: auto; display: block; }
.shop p { color: var(--muted); }

/* contact */
.contact { background: var(--ink); color: var(--bg); border-top: 0; }
.contact .inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .contact .inner { grid-template-columns: 1fr; } }
.contact h2 { color: var(--accent); }
.contact .h2big { color: var(--bg); }
.contact p { color: rgba(250,250,248,.72); }
@media (prefers-color-scheme: dark) { .contact { background: #0b0d12; color: var(--ink); } .contact .h2big { color: var(--ink); } .contact p { color: var(--muted); } }
.contact .btn.primary { font-size: 18px; padding: 18px 28px; }
footer { padding: 36px 0 56px; color: var(--muted); font-size: 14px; font-family: ui-sans-serif, system-ui, sans-serif; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
