html:has(body.theme-web) { background: oklch(0.97 0.004 250); }

body.theme-web {
  --bg: oklch(0.97 0.004 250);
  --bg-1: oklch(1 0 0);
  --bg-2: oklch(0.93 0.006 250);
  --ink: oklch(0.22 0.01 250);
  --ink-soft: oklch(0.46 0.012 250);
  --ink-faint: oklch(0.62 0.012 250);
  --line: rgba(15, 23, 32, .10);
  --line-strong: rgba(15, 23, 32, .18);
  --scrim: rgba(255, 255, 255, .82);
  --shadow-lift: 0 20px 50px -20px rgba(15, 23, 42, .16);

  --accent: oklch(0.58 0.19 38);
  --accent-ink: oklch(0.99 0.005 38);
  --accent-soft: oklch(0.58 0.19 38 / 0.12);
  --accent-line: oklch(0.58 0.19 38 / 0.35);
}

.hero { padding-top: clamp(6rem, 10vw, 9rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-title { font-size: clamp(2.3rem, 3.6vw + 1rem, 3.6rem); margin-top: .5rem; }
.grad { color: var(--accent); }
.hero-desc { margin-top: 1.3rem; font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 3rem; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--accent); }
.hero-stats .stat span { font-size: .84rem; color: var(--ink-soft); }

.hero-blobs { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-blobs .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .16; background: var(--accent); }
.hero-blobs .b1 { width: 30rem; height: 30rem; top: -10rem; right: -8rem; }
.hero-blobs .b2 { width: 18rem; height: 18rem; bottom: -6rem; left: 10%; opacity: .09; }
.hero-blobs .b3 { display: none; }

.hero-visual { position: relative; }
.mock-frame { position: relative; }
.browser-mock {
  background: var(--bg-1); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift); overflow: hidden;
  animation: mock-float 6s ease-in-out infinite;
}
@keyframes mock-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .browser-mock { animation: none; } }

.browser-mock .bar { display: flex; align-items: center; gap: .5rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.browser-mock .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser-mock .bar-url {
  margin-left: .6rem; flex: 1; display: flex; align-items: center; gap: .4rem;
  background: var(--bg); border-radius: 999px; padding: .35rem .8rem; color: var(--ink-faint); font-size: .8rem;
}
.browser-mock .bar-url svg { width: 13px; height: 13px; flex: none; }

.site-preview { padding: 1.7rem 1.6rem; display: flex; flex-direction: column; gap: 1.15rem; }
.sp-nav { display: flex; align-items: center; gap: .5rem; }
.sp-logo { width: 22px; height: 8px; border-radius: 4px; background: var(--accent); }
.sp-nav-item { width: 28px; height: 6px; border-radius: 4px; background: var(--bg-2); }
.sp-nav-btn { width: 44px; height: 14px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); margin-left: auto; }

.sp-hero { display: flex; align-items: center; gap: 1.1rem; }
.sp-hero-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .55rem; }
.sp-line { display: block; height: 9px; border-radius: 5px; background: var(--bg-2); }
.sp-h1 { height: 16px; width: 92%; background: var(--accent-soft); }
.sp-h1.short { width: 58%; }
.sp-p.short { width: 65%; }
.sp-btn-row { display: flex; gap: .5rem; margin-top: .35rem; }
.sp-btn { height: 22px; border-radius: 999px; }
.sp-btn-primary { width: 72px; background: var(--accent); }
.sp-btn-ghost { width: 58px; background: transparent; border: 1px solid var(--line-strong); }

.sp-hero-art { position: relative; flex: none; width: 92px; height: 92px; border-radius: 16px; background: linear-gradient(155deg, var(--accent-soft), var(--bg-2)); }
.sp-cursor { position: absolute; bottom: -8px; right: -10px; width: 16px; height: 16px; color: var(--accent); filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }
.sp-cursor svg { width: 100%; height: 100%; }
.sp-cursor::after { content: ""; position: absolute; inset: -6px; border: 1.5px solid var(--accent); border-radius: 50%; opacity: 0; animation: cursor-pulse 2.4s ease-out infinite; }
@keyframes cursor-pulse { 0% { transform: scale(.5); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sp-cursor::after { animation: none; opacity: .4; } }

.sp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.sp-card { display: block; height: 44px; border-radius: 8px; background: var(--bg-2); }
.sp-card:first-child { background: var(--accent-soft); }

.score-badge {
  position: absolute; left: -1.1rem; bottom: -1.1rem; z-index: 2;
  display: flex; align-items: center; gap: .55rem; padding: .5rem .9rem .5rem .5rem;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lift);
}
.score-ring-wrap { position: relative; width: 34px; height: 34px; flex: none; display: grid; place-items: center; }
.score-ring-wrap svg:first-child { position: absolute; inset: 0; transform: rotate(-90deg); }
.score-track { fill: none; stroke: var(--bg-2); stroke-width: 3.5; }
.score-ring { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 86 94.25; }
.score-icon { position: relative; width: 14px; height: 14px; color: var(--accent); }
.score-text { display: flex; flex-direction: column; line-height: 1.15; }
.score-text b { font-family: var(--font-display); font-size: .92rem; }
.score-text span { font-size: .68rem; color: var(--ink-soft); }

.code-chip {
  position: absolute; right: -.8rem; top: -1rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: .5rem .75rem; box-shadow: var(--shadow-lift);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .74rem; color: var(--ink-soft);
}
.cc-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex: none; animation: cc-blink 1.8s ease-in-out infinite; }
@keyframes cc-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.cc-tag { color: var(--accent); font-weight: 700; }

.hero-tags { display: flex; gap: .6rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero-tag {
  font-size: .78rem; font-weight: 700; color: var(--accent); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: 999px; padding: .4rem .85rem;
}

.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.8rem; }
.industry-tile {
  display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.2rem;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: .92rem; font-weight: 600; transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.industry-tile:hover { border-color: var(--accent-line); background: var(--bg-2); transform: translateY(-3px); }
.industry-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.industry-icon svg { width: 18px; height: 18px; }

.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.8rem; }
.principle-tile {
  display: flex; align-items: center; gap: .9rem; padding: 1.2rem 1.3rem;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.principle-tile:hover { border-color: var(--accent-line); background: var(--bg-2); transform: translateY(-3px); }
.principle-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.principle-icon svg { width: 20px; height: 20px; }
.principle-copy h4 { font-size: .96rem; margin-bottom: .2rem; }
.principle-copy p { font-size: .84rem; color: var(--ink-soft); }

.services { position: relative; overflow: hidden; }
.services .wrap { position: relative; z-index: 1; }
.grid-ambient { position: absolute; top: 10px; right: -50px; width: 220px; height: 220px; opacity: .16; pointer-events: none; z-index: 0; }
.grid-ambient svg { width: 100%; height: 100%; }
.ga-win { fill: none; stroke: var(--line-strong); stroke-width: 1.4; }
.ga-win2 { stroke: var(--accent); animation: ga-drift 8s ease-in-out infinite; transform-origin: 100px 100px; }
.ga-dot { fill: var(--accent); animation: twinkle 2.6s ease-in-out infinite; }
.ga-dot:nth-child(3) { animation-delay: .7s; }
.ga-dot:nth-child(4) { animation-delay: 1.4s; }
@keyframes ga-drift { 0%, 100% { transform: translate(0,0); } 50% { transform: translate(6px,-6px); } }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ga-win2, .ga-dot { animation: none; } }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.8rem; }
.service-card { display: flex; flex-direction: column; gap: .9rem; }
.service-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 1.12rem; }
.service-card p { color: var(--ink-soft); font-size: .95rem; }

.about-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(2rem, 5vw, 4rem); margin-top: 2.6rem; align-items: start; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 60ch; }
.about-copy strong { color: var(--ink); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.about-stat { background: var(--bg-1); padding: 1.5rem; }
.about-stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--accent); }
.about-stat span { display: block; margin-top: .3rem; font-size: .82rem; color: var(--ink-soft); }

.process-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.8rem; counter-reset: step; }
.process-step { position: relative; padding: 1.6rem 1.4rem 1.4rem; background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-md); }
.process-step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--accent); opacity: .7; display: block; margin-bottom: .8rem; }
.process-step h4 { font-size: 1.02rem; margin-bottom: .4rem; }
.process-step p { color: var(--ink-soft); font-size: .9rem; }

.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin-top: 2.8rem; }
.project-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.project-card:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.project-thumb { position: relative; aspect-ratio: 8/5; display: flex; flex-direction: column; background: var(--bg-2); }
.project-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: 0; }
.project-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,14,.8), rgba(10,10,14,0) 55%); z-index: 1; }
.project-thumb .frame-bar { position: relative; z-index: 2; display: flex; gap: .35rem; padding: .7rem .9rem; }
.project-thumb .frame-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); }
.project-thumb .mark { position: relative; z-index: 2; margin-top: auto; padding: 1rem 1rem 1.2rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff; }
.project-body { padding: 1.3rem 1.3rem 1.5rem; }
.project-tags { display: flex; gap: .5rem; margin-bottom: .8rem; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .03em; color: var(--ink-soft); background: var(--bg-2); border-radius: 999px; padding: .28rem .7rem; }
.project-card h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.project-card p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 1rem; }
.project-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .88rem; color: var(--accent); }
.project-link svg { width: 15px; height: 15px; }

.contact-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.6rem; }
.contact-info-item .ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.contact-info-item .ic svg { width: 20px; height: 20px; }
.contact-info-item h4 { font-size: .84rem; color: var(--ink-soft); font-weight: 700; margin-bottom: .2rem; }
.contact-info-item a, .contact-info-item p { font-size: 1rem; }
.contact-form { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.2rem); }

@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-wrap { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .industries-grid, .services-grid, .portfolio-grid, .process-list { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .score-badge { left: -.4rem; bottom: -.9rem; padding: .4rem .7rem .4rem .4rem; }
  .code-chip { right: -.3rem; top: -.8rem; font-size: .68rem; padding: .4rem .6rem; }
}
