@charset "UTF-8";

/* Top page only. All selectors are scoped to .kw-site so Cocoon's article pages stay untouched. */
.kw-site {
  --ink: #081321;
  --ink-2: #122136;
  --paper: #f2f5f7;
  --white: #fff;
  --muted: #5c6c7e;
  --line: #d7dee5;
  --accent: #baff35;
  --cyan: #67e8f9;
  --shell: min(1200px, calc(100% - 48px));
  --sans: Inter, "Helvetica Neue", "Noto Sans JP", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  min-height: 100vh;
  overflow: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body.kw-business-front { margin: 0; background: var(--paper); }
.kw-site *, .kw-site *::before, .kw-site *::after { box-sizing: border-box; }
.kw-site a { color: inherit; text-decoration: none; }
.kw-site h1, .kw-site h2, .kw-site h3, .kw-site p { margin-top: 0; }
.kw-site h1, .kw-site h2, .kw-site h3 { letter-spacing: -.045em; line-height: 1.18; }
.kw-site .section-shell { width: var(--shell); margin-inline: auto; }

.kw-site .site-header {
  position: sticky; top: 12px; z-index: 50;
  width: var(--shell); height: 72px; margin: 12px auto 0; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(242,245,247,.78); border: 1px solid rgba(138,155,173,.28); border-radius: 16px;
  box-shadow: 0 10px 35px rgba(8,19,33,.06); backdrop-filter: blur(18px);
  transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .2s ease;
  will-change: transform;
}
.kw-site .site-header.kw-nav-hidden { transform: translateY(calc(-100% - 28px)); opacity: 0; pointer-events: none; }
body.admin-bar .kw-site .site-header { top: 44px; }
.kw-site .brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.03em; }
.kw-site .brand-mark { width: 44px; height: 44px; display: block; flex-shrink: 0; border-radius: 11px; }
.kw-site .global-nav { display: flex; align-items: center; gap: 32px; font-size: 13px; font-weight: 700; }
.kw-site .global-nav a { transition: opacity .2s, transform .2s; }
.kw-site .global-nav a:hover { opacity: .62; transform: translateY(-1px); }
.kw-site .global-nav .nav-cta { padding: 9px 17px; border: 1px solid var(--ink); border-radius: 99px; }

.kw-site .hero {
  min-height: 700px; margin-top: 28px; padding: 62px 58px 80px;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px;
  position: relative; overflow: hidden; border: 1px solid rgba(138,155,173,.34); border-radius: 32px;
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(234,242,247,.78));
  box-shadow: 0 25px 70px rgba(8,19,33,.08);
}
.kw-site .hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(8,19,33,.035) 1px, transparent 1px), linear-gradient(90deg,rgba(8,19,33,.035) 1px,transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(90deg,#000,transparent 85%);
}
.kw-site .hero::after {
  content: ""; position: absolute; width: 540px; height: 540px; right: -180px; top: -230px; border-radius: 50%;
  background: radial-gradient(circle,rgba(103,232,249,.24),rgba(186,255,53,.08) 42%,transparent 68%);
}
.kw-site .hero-copy, .kw-site .hero-visual { position: relative; z-index: 1; min-width: 0; }
.kw-site .eyebrow, .kw-site .service-label, .kw-site .section-index { font: 800 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.kw-site .eyebrow { display: flex; align-items: center; gap: 10px; color: #46596d; }
.kw-site .eyebrow span { width: 30px; height: 2px; background: #78a900; box-shadow: 12px 0 18px var(--accent); }
.kw-site .hero h1 { margin: 30px 0; font-size: clamp(48px,5vw,70px); font-weight: 900; letter-spacing: -.075em; }
.kw-site .hero h1 em { position: relative; z-index: 0; font-style: normal; }
.kw-site .hero h1 em::after { content: ""; position: absolute; z-index: -1; left: -1%; right: -1%; bottom: 5%; height: 15%; background: linear-gradient(90deg,var(--accent),var(--cyan)); transform: skewX(-8deg); }
.kw-site .hero-lead { max-width: 610px; color: #47596b; font-size: 16px; line-height: 2; }
.kw-site .hero-actions { display: flex; align-items: center; gap: 30px; margin: 38px 0; }
.kw-site .button { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; padding: 16px 22px; border-radius: 9px; font-size: 14px; font-weight: 800; transition: transform .2s,box-shadow .2s; }
.kw-site .button:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(8,19,33,.18); }
.kw-site .button-primary { background: var(--ink); color: #fff; box-shadow: 0 12px 24px rgba(8,19,33,.13); }
.kw-site .button-primary span { color: var(--accent); }
.kw-site .text-link { padding-bottom: 3px; border-bottom: 1px solid #9ea8b2; font-size: 14px; font-weight: 800; }
.kw-site .text-link span { margin-left: 8px; }
.kw-site .hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kw-site .hero-tags li { padding: 6px 11px; border: 1px solid #cdd5dd; border-radius: 6px; background: rgba(255,255,255,.55); color: #536477; font: 10px var(--mono); }
.kw-site .hero-tags li::before { content: "// "; color: #78a900; }

.kw-site .hero-visual::before { content: ""; position: absolute; inset: -36px; border: 1px solid rgba(104,127,151,.18); border-radius: 50%; animation: kw-orbit 16s linear infinite; }
.kw-site .hero-visual::after { content: ""; position: absolute; right: 4%; top: -34px; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 24px var(--cyan); }
.kw-site .code-window { position: relative; overflow: hidden; color: #fff; border: 1px solid rgba(126,149,173,.35); border-radius: 22px; background: linear-gradient(145deg,#0b1727,#07101c); box-shadow: 0 35px 80px rgba(8,19,33,.32),0 0 0 8px rgba(255,255,255,.35); transform: perspective(900px) rotateY(-3deg) rotateZ(1deg); animation: kw-float 7s ease-in-out infinite; }
.kw-site .code-window::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg,transparent 25%,rgba(255,255,255,.055) 42%,transparent 55%); transform: translateX(-120%); animation: kw-scan 6s ease-in-out infinite; }
.kw-site .window-bar { height: 54px; padding: 0 20px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid rgba(255,255,255,.1); }
.kw-site .window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #526176; }
.kw-site .window-bar i:first-child { background: var(--accent); box-shadow: 0 0 12px rgba(186,255,53,.5); }
.kw-site .window-bar span { margin-left: auto; color: #8592a3; font: 10px var(--mono); }
.kw-site .code-body { padding: 26px 30px 30px; }
.kw-site .code-body p { margin: 0; padding: 16px 0; display: grid; grid-template-columns: 34px 1fr; gap: 2px 18px; border-bottom: 1px solid rgba(255,255,255,.09); }
.kw-site .code-body p:last-child { border-bottom: 0; }
.kw-site .code-body b { grid-row: 1/3; padding-top: 3px; color: var(--accent); font: 12px var(--mono); }
.kw-site .code-body span { font: 700 15px var(--mono); letter-spacing: .08em; }
.kw-site .code-body small { grid-column: 2; color: #98a6b7; font-size: 12px; }
.kw-site .availability { position: absolute; right: -24px; bottom: -34px; padding: 18px 22px; display: grid; grid-template-columns: auto 1fr; gap: 1px 10px; border: 1px solid #e1e6ea; border-radius: 13px; background: #fff; box-shadow: 0 18px 40px rgba(8,19,33,.14); }
.kw-site .availability .pulse { grid-row: 1/3; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: #78a900; box-shadow: 0 0 0 6px rgba(120,169,0,.12); }
.kw-site .availability b { font: 800 9px var(--mono); letter-spacing: .15em; }
.kw-site .availability small { color: #536170; font-size: 13px; }

.kw-site .statement { margin-top: 42px; border-block: 1px solid #e1e5e8; background: #fff; }
.kw-site .statement-inner { padding-block: 96px; display: grid; grid-template-columns: .5fr 1.3fr .8fr; gap: 50px; align-items: start; }
.kw-site .section-index { color: #77828c; }
.kw-site .statement h2, .kw-site .section-heading h2, .kw-site .lab h2, .kw-site .profile h2, .kw-site .contact h2 { margin: 0; font-size: clamp(36px,4.2vw,58px); font-weight: 850; }
.kw-site .statement-inner > p:last-child, .kw-site .section-heading > p { color: var(--muted); font-size: 15px; }

.kw-site .services { padding-block: 110px; display: grid; grid-template-columns: 1.08fr .92fr; gap: 22px; }
.kw-site .service-card { position: relative; overflow: hidden; padding: 44px; border: 1px solid #dce2e7; border-radius: 22px; background: #fff; transition: transform .25s,box-shadow .25s; }
.kw-site .service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 55px rgba(8,19,33,.1); }
.kw-site .service-card::after { content: ""; position: absolute; right: -70px; bottom: -70px; width: 150px; height: 150px; border: 1px solid #e7ebee; border-radius: 50%; }
.kw-site .service-main { min-height: 590px; display: grid; grid-template-columns: 80px 1fr; color: #fff; border-color: #26364a; background: var(--ink); }
.kw-site .service-no { color: #8c98a6; font: 11px var(--mono); }
.kw-site .service-main .service-no { color: var(--accent); }
.kw-site .service-label { margin-bottom: 22px; color: #8b96a3; }
.kw-site .service-card h3 { margin-bottom: 24px; font-size: clamp(29px,3vw,43px); font-weight: 850; }
.kw-site .service-card p { color: #687586; font-size: 14px; }
.kw-site .service-main p { color: #aab4c0; }
.kw-site .service-main ul { margin: 35px 0 0; padding: 0; list-style: none; }
.kw-site .service-main li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 14px; }
.kw-site .service-main li::before { content: "+"; margin-right: 12px; color: var(--accent); }
.kw-site .service-grid { display: grid; gap: 22px; }
.kw-site .service-build, .kw-site .service-products { isolation: isolate; }
.kw-site .service-build { border-color: #c5ded2; background: radial-gradient(ellipse at 100% 0%,#d9f4b1 0%,transparent 62%),linear-gradient(135deg,#edf5df,#def2ee); }
.kw-site .service-products { border-color: #d9d0e9; background: radial-gradient(ellipse at 100% 0%,#e5d6fb 0%,transparent 62%),linear-gradient(135deg,#f0eaf8,#e6edf7); }
.kw-site .service-build::after, .kw-site .service-products::after { right: -100px; bottom: -135px; width: 290px; height: 290px; border-width: 24px; z-index: -1; }
.kw-site .service-build::after { border-color: rgba(46,113,89,.06); }
.kw-site .service-products::after { border-color: rgba(99,69,149,.06); }
.kw-site .service-art { position: absolute; top: 26px; right: 28px; width: 104px; height: 87px; stroke: currentColor; stroke-width: 1.5; color: #397a5d; opacity: .35; z-index: -1; }
.kw-site .service-products .service-art { color: #7756ac; }
.kw-site .service-build .service-label, .kw-site .service-build .service-no { color: #376750; }
.kw-site .service-products .service-label, .kw-site .service-products .service-no { color: #6b508d; }
.kw-site .service-build .service-label, .kw-site .service-products .service-label { padding-right: 90px; font-size: 11px; }
.kw-site .service-audience { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border: 1px solid #adccb8; border-radius: 6px; background: rgba(255,255,255,.55); color: #284e3d; font-size: 12px; font-weight: 750; }
.kw-site .service-build h3, .kw-site .service-products h3 { margin-bottom: 18px; }
.kw-site .service-build > p:not(.service-label), .kw-site .service-products > p:not(.service-label) { color: #46576a; margin-bottom: 22px; }
.kw-site .service-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.kw-site .service-tags li { padding: 5px 10px; border: 1px solid rgba(55,103,80,.18); border-radius: 5px; color: #376750; background: rgba(255,255,255,.35); font-size: 11px; }
.kw-site .service-products .service-tags li { border-color: rgba(107,80,141,.18); color: #6b508d; }

.kw-site .approach { padding-block: 110px; background: #fff; }
.kw-site .section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; }
.kw-site .section-heading .section-index { margin-bottom: 24px; }
.kw-site .steps { margin: 75px 0 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.kw-site .steps li { padding: 30px 0; display: grid; grid-template-columns: 130px 1fr; border-bottom: 1px solid var(--line); transition: padding .2s; }
.kw-site .steps li:hover { padding-left: 12px; }
.kw-site .steps > li > span { color: #78a900; font: 12px var(--mono); }
.kw-site .steps div { display: grid; grid-template-columns: .5fr 1fr; gap: 40px; }
.kw-site .steps h3 { margin: 0; font-size: 20px; }
.kw-site .steps p { margin: 0; color: var(--muted); font-size: 14px; }

.kw-site .lab { padding-block: 110px; }
.kw-site .lab-panel { position: relative; overflow: hidden; padding: 80px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; border-radius: 30px; color: #fff; background: var(--ink); }
.kw-site .lab-panel::before { content: "LAB"; position: absolute; right: -20px; top: -80px; color: rgba(255,255,255,.025); font: 900 240px/1 var(--sans); }
.kw-site .lab-kicker { margin: 38px 0 15px; color: var(--accent); font-size: 13px; font-weight: 800; }
.kw-site .lab-copy > p:not(.section-index):not(.lab-kicker) { max-width: 570px; margin: 26px 0 34px; color: #aab4c0; }
.kw-site .button-light { color: var(--ink); background: #fff; }
.kw-site .lab-notes { position: relative; z-index: 1; padding-top: 50px; }
.kw-site .lab-notes div { padding: 23px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.kw-site .lab-notes span { color: var(--accent); font: 10px var(--mono); letter-spacing: .12em; }
.kw-site .lab-notes p { margin: 5px 0 0; color: #c2c9d0; font-size: 13px; }

.kw-site .profile { padding-block: 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.kw-site .profile .section-index { margin-bottom: 24px; }
.kw-site .profile-text { padding-top: 50px; color: var(--muted); }
.kw-site .profile-text p { margin-bottom: 20px; }
.kw-site .profile-text .text-link { display: inline-block; margin-top: 18px; color: var(--ink); }
.kw-site .contact { padding-bottom: 110px; }
.kw-site .contact-panel { padding: 80px; display: grid; grid-template-columns: 1fr .7fr; gap: 30px 90px; align-items: end; border-radius: 30px; background: linear-gradient(110deg,var(--accent),#dfff75 60%,var(--cyan)); }
.kw-site .contact-panel .section-index, .kw-site .contact-panel h2 { grid-column: 1; }
.kw-site .contact-panel > p { grid-column: 2; grid-row: 1/3; margin: 35px 0; color: #3c5223; }
.kw-site .contact-panel .button { grid-column: 2; width: fit-content; }

.kw-site .site-footer { width: var(--shell); margin: auto; padding: 60px 0 32px; display: grid; grid-template-columns: 1fr auto; gap: 50px; border-top: 1px solid var(--line); }
.kw-site .footer-brand { display: flex; align-items: center; gap: 14px; }
.kw-site .footer-brand div { display: grid; }
.kw-site .footer-brand small { color: var(--muted); font: 10px var(--mono); letter-spacing: .1em; }
.kw-site .footer-links { display: flex; align-items: center; gap: 25px; color: #526171; font-size: 12px; }
.kw-site .footer-links .footer-line-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid #06a84f; border-radius: 99px; color: #08753d; font-weight: 700; white-space: nowrap; transition: background .2s, color .2s, transform .2s; }
.kw-site .footer-links .footer-line-link span { display: inline-grid; place-items: center; min-width: 35px; height: 20px; padding-inline: 5px; border-radius: 5px; background: #06c755; color: #fff; font: 800 9px var(--mono); letter-spacing: .04em; }
.kw-site .footer-links .footer-line-link:hover { background: #06c755; border-color: #06c755; color: #fff; transform: translateY(-1px); }
.kw-site .site-footer > p { grid-column: 1/-1; margin: 30px 0 0; color: #8a9298; font-size: 10px; }

@keyframes kw-float { 0%,100% { transform: perspective(900px) rotateY(-3deg) rotateZ(1deg) translateY(0); } 50% { transform: perspective(900px) rotateY(-1deg) rotateZ(.4deg) translateY(-9px); } }
@keyframes kw-scan { 0%,35% { transform: translateX(-120%); } 65%,100% { transform: translateX(140%); } }
@keyframes kw-orbit { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .kw-site { --shell: min(100% - 32px,700px); }
  .kw-site .global-nav > a:not(.nav-cta):not(.nav-blog):not(.nav-portfolio):not(.nav-profile) { display: none; }
  .kw-site .global-nav { gap: 12px; }
  .kw-site .global-nav > a.nav-blog,
  .kw-site .global-nav > a.nav-portfolio,
  .kw-site .global-nav > a.nav-profile { display: block; padding: 8px 13px; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.55); }
  .kw-site .hero { min-height: auto; padding: 58px 38px 88px; grid-template-columns: 1fr; gap: 55px; }
  .kw-site .hero-visual { max-width: 600px; }
  .kw-site .availability { right: 10px; }
  .kw-site .statement-inner, .kw-site .services, .kw-site .section-heading, .kw-site .lab-panel, .kw-site .profile, .kw-site .contact-panel { grid-template-columns: 1fr; }
  .kw-site .statement-inner { gap: 20px; }
  .kw-site .service-main { min-height: auto; }
  .kw-site .section-heading, .kw-site .lab-panel { gap: 25px; }
  .kw-site .lab-panel, .kw-site .contact-panel { padding: 54px 38px; }
  .kw-site .contact-panel .section-index, .kw-site .contact-panel h2, .kw-site .contact-panel > p, .kw-site .contact-panel .button { grid-column: 1; grid-row: auto; }
  .kw-site .footer-links { flex-wrap: wrap; }
  .kw-site .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .kw-site .site-header { height: 64px; top: 8px; margin-top: 8px; padding: 0 14px; }
  body.admin-bar .kw-site .site-header { top: 54px; }
  .kw-site .brand { font-size: 14px; }
  .kw-site .global-nav { gap: 7px; }
  .kw-site .global-nav > a.nav-blog,
  .kw-site .global-nav > a.nav-portfolio,
  .kw-site .global-nav > a.nav-profile { padding: 7px 10px; font-size: 12px; }
  .kw-site .nav-cta { padding: 7px 12px !important; font-size: 12px; }
  .kw-site .hero { margin-top: 16px; padding: 42px 22px 60px; border-radius: 22px; }
  .kw-site .hero h1 { font-size: clamp(37px,11vw,48px); }
  .kw-site .hero-lead { font-size: 15px; }
  .kw-site .hero-tags { max-width: 100%; }
  .kw-site .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .kw-site .code-body { padding: 18px; }
  .kw-site .hero-visual::before { inset: -18px; }
  .kw-site .availability { position: relative; right: auto; bottom: auto; width: max-content; margin: -18px 18px 0 auto; }
  .kw-site .statement-inner { padding-block: 70px; }
  .kw-site .services, .kw-site .approach, .kw-site .lab, .kw-site .profile { padding-block: 75px; }
  .kw-site .service-card { padding: 28px; }
  .kw-site .service-art { top: 18px; right: 18px; width: 80px; height: 67px; }
  .kw-site .service-build .service-label, .kw-site .service-products .service-label { padding-right: 65px; font-size: 10px; }
  .kw-site .service-audience { font-size: 11px; padding: 6px 9px; }
  .kw-site .service-main { grid-template-columns: 1fr; }
  .kw-site .service-main .service-no { margin-bottom: 30px; }
  .kw-site .steps li, .kw-site .steps div { grid-template-columns: 1fr; gap: 8px; }
  .kw-site .lab-panel, .kw-site .contact-panel { padding: 40px 25px; }
  .kw-site .footer-links { display: grid; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .kw-site .site-header { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .kw-site *, .kw-site *::before, .kw-site *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Keep portfolio and blog discoverable in the compact business navigation. */
@media(max-width:600px){.kw-site .site-header .brand{gap:7px}.kw-site .site-header .brand span{font-size:14px}.kw-site .site-header .brand-mark{width:32px;height:32px}}
@media(max-width:430px){.kw-site .site-header .brand>span{display:none}.kw-site .global-nav{gap:5px}.kw-site .global-nav>a.nav-portfolio,.kw-site .global-nav>a.nav-blog,.kw-site .global-nav>a.nav-profile{padding-inline:8px;font-size:10px}.kw-site .nav-cta{padding-inline:10px!important;font-size:10px}}
