:root {
  --ink: #12131a;
  --muted: #666a75;
  --line: #dedfe5;
  --paper: #f5f5f7;
  --surface: #ffffff;
  --accent: #6657e8;
  --accent-soft: #ebe9ff;
  --radius-sm: 16px;
  --radius-md: 26px;
  --radius-lg: 40px;
  --shadow: 0 24px 70px rgba(24, 25, 35, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .site-title, .button, .project-name { font-family: "Manrope", sans-serif; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.035em; }
h1 { font-size: clamp(2.7rem, 7vw, 5.75rem); line-height: .98; font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.08; font-weight: 750; }
h3 { font-size: 1.25rem; line-height: 1.3; }
a:link, a:visited { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
img { max-width: 100%; }
.wrapper { max-width: 1180px; padding-inline: 28px; }
.page-content { padding: 0 0 96px; }

.site-header { min-height: 0; border: 0; padding: 22px 0; background: rgba(245, 245, 247, .84); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); position: sticky; inset-block-start: 0; z-index: 20; }
.site-header .wrapper { display: flex; align-items: center; justify-content: space-between; }
.site-title { display: inline-flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: var(--ink); border-radius: 12px; font-size: .72rem; letter-spacing: -.03em; }
.site-nav { border: 0; background: none; line-height: 38px; }
.site-nav .page-link:link, .site-nav .page-link:visited { margin-left: 28px; color: var(--muted); font-weight: 600; font-size: .94rem; }
.site-nav .page-link:hover { color: var(--ink); text-decoration: none; }
.site-nav .language-link:link, .site-nav .language-link:visited { margin-left: 20px; padding: 7px 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font-size: .78rem; letter-spacing: .06em; }

.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.display-title { max-width: 920px; margin: 0; }
.display-title .soft { color: #9a9ca4; }
.lead { max-width: 700px; margin: 30px 0 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; }
.button:link, .button:visited, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 16px; background: var(--ink); color: #fff; -webkit-text-fill-color: #fff; text-decoration: none; font-size: .95rem; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20, 20, 30, .16); }
.button.secondary:link, .button.secondary:visited, .button.secondary { color: var(--ink); -webkit-text-fill-color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.button.secondary:hover { color: var(--ink); }

.home-hero { padding: clamp(78px, 12vw, 150px) 0 90px; }
.home-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 38px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; }
.section-heading a:link, .section-heading a:visited { color: var(--muted); font-weight: 700; text-decoration: none; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.project-card:link, .project-card:visited, .project-card { position: relative; min-height: 400px; padding: 34px; overflow: hidden; color: #fff; border-radius: var(--radius-lg); text-decoration: none; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.project-card:hover { color: #fff; transform: translateY(-5px); box-shadow: 0 30px 80px rgba(24, 25, 35, .14); }
.project-card:nth-child(1), .project-card:nth-child(4) { grid-column: span 7; }
.project-card:nth-child(2), .project-card:nth-child(3) { grid-column: span 5; }
.project-card.planoma { background: radial-gradient(circle at 90% 5%, rgba(255,255,255,.28), transparent 28%), linear-gradient(145deg, #19482c, #2f7d44); }
.project-card.monstera:link, .project-card.monstera:visited, .project-card.monstera { background: radial-gradient(circle at 80% 10%, #b9f5bd, transparent 35%), linear-gradient(145deg, #e8fff0, #9dd6aa); color: #153922; }
.project-card.monstera:hover { color: #153922; }
.project-card.blokko { background: radial-gradient(circle at 85% 10%, #ffdca3, transparent 30%), linear-gradient(145deg, #5b3c68, #9b70aa); }
.project-card.glico { background: radial-gradient(circle at 85% 8%, #fda3aa, transparent 29%), linear-gradient(145deg, #234b8f, #5689db); }
.project-card.movietracker { grid-column: span 12; background: radial-gradient(circle at 82% 12%, rgba(67,200,255,.45), transparent 28%), radial-gradient(circle at 18% 90%, rgba(114,101,255,.34), transparent 30%), linear-gradient(145deg, #122438, #05080d); }
.project-card-top { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.project-icon { width: 88px; height: 88px; object-fit: cover; border-radius: 22px; box-shadow: 0 16px 30px rgba(0,0,0,.16); }
.project-arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; font-size: 1.3rem; }
.monstera .project-arrow { border-color: rgba(21,57,34,.24); }
.project-card-copy { position: absolute; inset: auto 34px 30px; }
.project-name { margin: 0 0 8px; color: inherit; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.project-card p { max-width: 470px; margin: 0; opacity: .82; line-height: 1.45; }
.home-notes { margin-top: 100px; padding-top: 34px; border-top: 1px solid var(--line); }
.post-list { margin: 0; }
.post-list > li { padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-link { font-family: "Manrope"; font-weight: 700; letter-spacing: -.02em; }
.post-meta { color: var(--muted); }

.post-header { padding: 80px 0 30px; }
.post-title { margin: 0; font-size: clamp(2.6rem, 6vw, 4.8rem); }
.post-content { margin-bottom: 0; }
.post-content > p, .post-content > ul, .post-content > ol, .post-content > blockquote { max-width: 760px; }
.post-content p, .post-content li { font-size: 1.04rem; }
.post-content h2 { margin-top: 2.2em; font-size: 2rem; }
.post-content h3 { margin-top: 2em; }
.post-content img.center { display: inline-block; margin: 0 12px 22px 0; border-radius: 22px; box-shadow: var(--shadow); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.portfolio-hero, .about-hero { padding: 100px 0 72px; }
.portfolio-intro { max-width: 720px; color: var(--muted); font-size: 1.25rem; }
.portfolio-list { margin-top: 24px; }
.archive-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.archive-item:link, .archive-item:visited, .archive-item { padding: 24px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; }
.archive-item strong { display: block; font-family: "Manrope"; }
.archive-item span { color: var(--muted); font-size: .92rem; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: start; }
.about-card { padding: 30px; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.about-card p { margin: 0; color: var(--muted); }
.about-links { display: grid; gap: 12px; margin-top: 24px; }
.about-links a:link, .about-links a:visited { color: var(--ink); font-weight: 700; text-decoration: none; }

.product-page { --product: #6657e8; --product-soft: #ebe9ff; }
.product-page .post-content { max-width: none; }
.product-hero { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 60px; min-height: 650px; padding: 70px 0 100px; }
.product-hero h1 { max-width: 780px; margin: 0; }
.product-hero h1 .soft { color: #9a9ca4; }
.product-hero .lead { margin-bottom: 34px; }
.product-badge { display: inline-block; margin-bottom: 18px; color: var(--product); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.product-icon-wrap { position: relative; display: grid; place-items: center; min-height: 430px; border-radius: var(--radius-lg); background: var(--product-soft); overflow: hidden; }
.product-icon-wrap::before, .product-icon-wrap::after { content: ""; position: absolute; width: 220px; height: 220px; border: 1px solid color-mix(in srgb, var(--product) 28%, transparent); border-radius: 50%; }
.product-icon-wrap::before { translate: -110px -120px; }
.product-icon-wrap::after { translate: 150px 150px; scale: 1.5; }
.product-icon-large { position: relative; z-index: 1; width: min(52%, 230px); border-radius: 25%; box-shadow: 0 30px 60px color-mix(in srgb, var(--product) 25%, transparent); rotate: 3deg; }
.product-section { padding: 84px 0; border-top: 1px solid var(--line); }
.product-section-head { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; margin-bottom: 40px; }
.product-section-head h2 { margin: 0; }
.product-section-head p { margin: 8px 0 0; color: var(--muted); font-size: 1.15rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 200px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); transition: transform .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: var(--product); }
.feature-number { display: block; margin-bottom: 34px; color: var(--product); font-weight: 800; font-size: .78rem; letter-spacing: .1em; }
.feature-card h3 { margin: 0 0 10px; }
.feature-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.product-highlight { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.highlight-card { padding: clamp(30px, 5vw, 56px); background: var(--product); color: #fff; border-radius: var(--radius-lg); }
.highlight-card.alt { color: var(--ink); background: var(--product-soft); }
.highlight-card h3 { color: inherit; font-size: clamp(1.8rem, 3vw, 2.7rem); margin: 0 0 16px; }
.highlight-card p { margin: 0; opacity: .82; }
.tech-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-pill { padding: 9px 15px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 650; }
.product-cta { margin-top: 84px; padding: clamp(36px, 7vw, 74px); color: #fff; background: var(--ink); border-radius: var(--radius-lg); text-align: center; }
.product-cta h2 { max-width: 680px; margin: 0 auto 18px; color: #fff; }
.product-cta p { max-width: 580px; margin: 0 auto 28px; color: #bfc1c9; }
.product-cta .button:link, .product-cta .button:visited, .product-cta .button { color: var(--ink); -webkit-text-fill-color: var(--ink); background: #fff; }
.product-legal { display: flex; justify-content: center; gap: 20px; margin-top: 24px; font-size: .9rem; }
.product-legal a:link, .product-legal a:visited { color: #bfc1c9; }
.post-content a:link:not(.button):not(.project-card):not(.archive-item), .post-content a:visited:not(.button):not(.project-card):not(.archive-item) { color: var(--accent); }
.product-section > .tech-row { margin-top: 28px; }
.screenshot-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.screenshot-strip img { width: 100%; border-radius: 30px; box-shadow: var(--shadow); }

.site-footer { padding: 65px 0; border-top: 1px solid var(--line); background: transparent; }
.footer-col-wrapper { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 40px; color: var(--muted); }
.footer-col { float: none; width: auto; }
.footer-kicker { margin: 0; color: var(--accent); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-signoff { margin: 9px 0 0; color: var(--ink); font-family: "Manrope"; font-size: 1.5rem; line-height: 1.25; font-weight: 750; }
.social-media-list li + li { padding-top: 8px; }

@media (max-width: 820px) {
  .project-card, .project-card:nth-child(n) { grid-column: span 12; min-height: 350px; }
  .product-hero, .product-section-head, .about-grid { grid-template-columns: 1fr; }
  .product-hero { padding-top: 50px; gap: 40px; }
  .product-icon-wrap { min-height: 350px; grid-row: 1; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .archive-list { grid-template-columns: 1fr; }
  .footer-col-wrapper { grid-template-columns: 1fr 1fr; }
  .footer-col-3 { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .wrapper { padding-inline: 20px; }
  .page-content { padding-bottom: 64px; }
  .site-header { padding: 15px 0; }
  .site-title span:last-child { display: none; }
  .site-nav { position: static; padding: 0; }
  .site-nav label[for="nav-trigger"] { display: none; }
  .site-nav .trigger { display: flex; padding: 0; clear: none; }
  .site-nav .page-link { display: block; margin-left: 18px; }
  .home-hero { padding-top: 72px; }
  .section-heading { align-items: start; flex-direction: column; }
  .project-card { padding: 26px; border-radius: 30px; }
  .project-card-copy { inset-inline: 26px; bottom: 26px; }
  .project-icon { width: 72px; height: 72px; border-radius: 18px; }
  .product-icon-wrap { min-height: 300px; }
  .feature-grid, .product-highlight, .screenshot-strip { grid-template-columns: 1fr; }
  .product-section { padding: 60px 0; }
  .footer-col-wrapper { grid-template-columns: 1fr; }
  .footer-col-3 { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
