:root {
  --bg: #f7f5f0;
  --surface: #efede7;
  --surface-2: #e5e1d9;
  --text: #08151f;
  --muted: #626a70;
  --line: rgba(8, 21, 31, 0.15);
  --line-strong: rgba(8, 21, 31, 0.28);
  --navy: #08151f;
  --ink: #111820;
  --white: #fbfaf7;
  --care-navy: #063a7a;
  --care-blue: #168de5;
  --care-pale: #eef8ff;
  --care-border: #cfe3f0;
  --care-text: #102337;
  --max: 1240px;
  --header-h: 74px;
  --ease: 180ms ease;
}

[data-theme="dark"] {
  --bg: #08151f;
  --surface: #0d1d29;
  --surface-2: #142632;
  --text: #f5f3ee;
  --muted: #aeb7bd;
  --line: rgba(245, 243, 238, 0.14);
  --line-strong: rgba(245, 243, 238, 0.28);
  --navy: #f5f3ee;
  --ink: #f5f3ee;
  --white: #08151f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--ease), color var(--ease);
}
body.menu-open { overflow: hidden; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--text); color: var(--bg); }

.shell { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 1000; left: 16px; top: -60px; padding: 10px 14px; background: var(--text); color: var(--bg); }
.skip-link:focus { top: 16px; }

.theme-asset-light { display: none !important; }
[data-theme="dark"] .theme-asset-dark { display: none !important; }
[data-theme="dark"] .theme-asset-light { display: block !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-wrap { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.brand-lockup { display: inline-flex; align-items: center; width: fit-content; min-width: 0; }
.brand-lockup-image { width: clamp(190px, 17vw, 248px); height: 42px; object-fit: contain; object-position: left center; }
.desktop-nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.desktop-nav a, .back-top, .text-link { transition: color var(--ease), opacity var(--ease); }
.desktop-nav a:hover, .desktop-nav a:focus-visible, .back-top:hover, .back-top:focus-visible, .text-link:hover, .text-link:focus-visible { color: var(--text); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.theme-toggle, .menu-toggle { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; transition: border-color var(--ease), background var(--ease); }
.theme-toggle:hover, .theme-toggle:focus-visible, .menu-toggle:hover, .menu-toggle:focus-visible { border-color: var(--line-strong); }
.theme-toggle { position: relative; display: grid; place-items: center; }
.theme-toggle svg { position: absolute; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: opacity var(--ease), transform var(--ease); }
.theme-moon { opacity: 0; transform: translateY(7px); }
[data-theme="dark"] .theme-sun { opacity: 0; transform: translateY(-7px); }
[data-theme="dark"] .theme-moon { opacity: 1; transform: translateY(0); }
.menu-toggle { display: none; padding: 0 10px; }
.menu-toggle span:not(.sr-only) { display: block; height: 1px; background: currentColor; margin: 5px 0; transition: transform var(--ease); }
.mobile-menu { display: none; }

.hero { position: relative; min-height: calc(100svh - var(--header-h)); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 0 61%, color-mix(in srgb, var(--surface) 55%, transparent) 61% 100%); }
.hero-background-mark { position: absolute; right: max(24px, calc((100vw - var(--max))/2)); top: 50%; transform: translateY(-50%); width: min(43vw, 650px); opacity: .075; pointer-events: none; }
.hero-background-mark img { width: 100%; height: auto; }
[data-theme="dark"] .hero-background-mark { opacity: .065; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .7fr); min-height: calc(100svh - var(--header-h)); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(78px, 9vw, 132px) clamp(30px, 6vw, 82px) clamp(78px, 9vw, 132px) 0; border-right: 1px solid var(--line); }
.eyebrow { margin: 0 0 28px; color: var(--muted); font-size: 10px; line-height: 1.2; letter-spacing: .26em; font-weight: 800; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 32px; max-width: 860px; font-size: clamp(62px, 8.3vw, 120px); line-height: .88; letter-spacing: -.065em; font-weight: 650; }
.hero-lede { max-width: 640px; margin-bottom: 40px; color: var(--muted); font-size: clamp(18px, 1.65vw, 22px); line-height: 1.48; letter-spacing: -.018em; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
.button { min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--text); border-radius: 3px; font-size: 12px; font-weight: 750; letter-spacing: .02em; transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease); }
.button:hover, .button:focus-visible { transform: translateY(-1px); }
.button-primary { background: var(--text); color: var(--bg); }
.button-primary:hover, .button-primary:focus-visible { background: transparent; color: var(--text); }
.text-link { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.hero-signature { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(52px, 7vw, 88px) 0 clamp(72px, 8vw, 112px) clamp(30px, 4vw, 58px); }
.hero-primary-lockup { display: block; width: min(100%, 330px); }
.hero-primary-lockup img { width: 100%; height: auto; object-fit: contain; }
.signature-rule { width: 100%; margin: 38px 0 18px; border-top: 1px solid var(--line); }
.signature-meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 8px; letter-spacing: .2em; }

.section { padding: clamp(88px, 11vw, 150px) 0; border-bottom: 1px solid var(--line); }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(60px, 9vw, 130px); align-items: start; }
.section-heading h2, .section-intro h2, .approach-heading h2, .contact-section h2 { margin-bottom: 0; font-size: clamp(42px, 5.6vw, 76px); line-height: .98; letter-spacing: -.052em; font-weight: 620; }
.section-copy { padding-top: 38px; }
.section-copy p { max-width: 590px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.section-copy .lead-copy { color: var(--text); font-size: 22px; line-height: 1.55; letter-spacing: -.018em; }
.section-copy p:last-child { margin-bottom: 0; }

.products-section { padding-bottom: 0; }
.section-intro { margin-bottom: 70px; }
.section-intro-row { display: grid; grid-template-columns: 1.15fr .6fr; gap: clamp(50px, 8vw, 120px); align-items: end; }
.section-intro-row p { max-width: 420px; margin: 0 0 5px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.product-feature { display: grid; grid-template-columns: .95fr 1.05fr; min-height: 590px; border-top: 1px solid var(--line); }
.product-copy { padding: 62px clamp(38px, 6vw, 82px) 68px 0; border-right: 1px solid var(--line); }
.product-meta { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 62px; color: var(--muted); font-size: 9px; letter-spacing: .18em; font-weight: 760; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--care-navy); }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--care-blue); box-shadow: 0 0 0 4px rgba(22,141,229,.1); }
.carekeeping-brand-line { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.ck-logo-box { position: relative; flex: 0 0 auto; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 14px; background: white; overflow: hidden; }
.ck-logo-box img { width: 100%; height: 100%; object-fit: contain; }
.carekeeping-brand-line h3 { margin: 0; color: var(--care-navy); font-size: clamp(36px, 4vw, 54px); line-height: 1; letter-spacing: -.04em; }
.carekeeping-brand-line p { margin: 7px 0 0; color: var(--care-blue); font-size: 13px; font-weight: 700; }
.product-description { max-width: 530px; margin-bottom: 34px; color: var(--muted); font-size: 16px; line-height: 1.72; }
.carekeeping-button { border-color: var(--care-navy); background: var(--care-navy); color: white; }
.carekeeping-button:hover, .carekeeping-button:focus-visible { background: transparent; color: var(--care-navy); }
.carekeeping-visual { display: grid; place-items: center; padding: clamp(42px, 5.5vw, 74px); background: var(--care-pale); overflow: hidden; }
.carekeeping-app-frame { width: min(100%, 560px); min-height: 470px; display: flex; flex-direction: column; border: 1px solid var(--care-border); border-radius: 26px; background: #f7fbff; color: #102337; box-shadow: 0 26px 80px rgba(6,58,122,.13); overflow: hidden; transform: rotate(.35deg); }
.ck-app-toolbar { padding: 20px 22px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #dce9f3; background: #fff; }
.ck-app-toolbar > div { display: flex; flex-direction: column; gap: 5px; }
.ck-app-eyebrow { color: var(--care-blue); font-size: 8px; font-weight: 850; letter-spacing: .18em; }
.ck-app-toolbar strong { color: var(--care-navy); font-size: 15px; letter-spacing: -.015em; }
.ck-profile-dot { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--care-navy); color: #fff; font-size: 12px; font-weight: 850; }
.ck-app-content { flex: 1; padding: 24px 22px 20px; }
.ck-app-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.ck-app-heading-row h4 { margin: 0 0 4px; color: var(--care-navy); font-size: 23px; line-height: 1.05; letter-spacing: -.035em; }
.ck-app-heading-row p { margin: 0; color: #6a7c8b; font-size: 11px; line-height: 1.45; }
.ck-remaining { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #c9dfef; border-radius: 999px; background: #fff; color: #587087; font-size: 9px; font-weight: 750; }
.ck-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 22px; }
.ck-summary-card { min-height: 68px; padding: 12px 13px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #dbe7f0; border-radius: 14px; background: #fff; }
.ck-summary-card strong { color: var(--care-navy); font-size: 21px; line-height: 1; }
.ck-summary-card span { color: #718393; font-size: 9px; font-weight: 750; }
.ck-summary-due { border-color: #f4d5c6; background: #fff9f5; }
.ck-summary-due strong { color: #b55424; }
.ck-summary-done { border-color: #d9ebc8; background: #fbfff6; }
.ck-summary-done strong { color: #4d8d11; }
.ck-time-group + .ck-time-group { margin-top: 17px; }
.ck-time-heading { margin: 0 2px 8px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ck-time-heading strong { color: #3e556b; font-size: 10px; }
.ck-time-heading span { color: #a2542c; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.ck-time-group-compact .ck-time-heading span { color: #718393; }
.ck-care-card { min-height: 74px; padding: 13px 14px; display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; border: 1px solid #d9e5ee; border-radius: 15px; background: #fff; box-shadow: 0 8px 22px rgba(20,70,110,.045); }
.ck-care-card-due { border-left: 4px solid #ff8a48; }
.ck-care-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #eef8ff; color: var(--care-blue); font-size: 16px; font-weight: 900; }
.ck-care-icon-blue { font-size: 11px; }
.ck-care-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ck-care-copy strong { color: var(--care-navy); font-size: 12px; }
.ck-care-copy span { overflow: hidden; color: #718393; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.ck-care-action { padding: 7px 10px; border-radius: 8px; background: var(--care-navy); color: #fff; font-size: 8px; font-weight: 800; }
.ck-care-chevron { color: #7890a4; font-size: 21px; line-height: 1; }
.ck-bottom-nav { min-height: 66px; padding: 8px 12px 10px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; border-top: 1px solid #dce9f3; background: #fff; }
.ck-bottom-nav span { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #7b8c9b; font-size: 7px; font-weight: 750; text-align: center; }
.ck-bottom-nav i { height: 13px; color: #8ba0b2; font-size: 12px; font-style: normal; line-height: 1; }
.ck-bottom-nav .active, .ck-bottom-nav .active i { color: var(--care-blue); }

.product-next { min-height: 128px; display: grid; grid-template-columns: 80px .9fr 1fr; gap: 24px; align-items: center; border-top: 1px solid var(--line); }
.product-next-number { color: var(--muted); font-size: 12px; }
.product-next-copy { display: flex; flex-direction: column; gap: 6px; }
.product-next-kicker { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.product-next-copy strong { font-size: 18px; font-weight: 650; }
.product-next p { max-width: 460px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.product-next-feature { min-height: 220px; align-items: start; padding: 46px 0; }
.product-next-feature .product-next-number { padding-top: 5px; }
.product-next-feature .product-next-copy { padding-top: 2px; }
.product-next-detail { max-width: 620px; }
.product-next-detail h3 { margin: 0 0 14px; font-size: clamp(25px, 3vw, 38px); line-height: 1.08; letter-spacing: -.035em; font-weight: 620; }
.product-next-detail p { max-width: 620px; font-size: 15px; line-height: 1.7; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.portfolio-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.portfolio-image-wrap { height: 250px; overflow: hidden; background: var(--surface-2); }
.portfolio-image-wrap img { width: 100%; height: auto; }
.portfolio-card-pressed .portfolio-image-wrap img { transform: translateY(-7.3%); }
.portfolio-card-create .portfolio-image-wrap img { transform: translateY(-10.5%); }
.portfolio-card-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 18px; }
.portfolio-card-copy > span, .game-preview-copy > span { margin-bottom: 7px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.portfolio-card-copy strong { font-size: 15px; line-height: 1.35; }
.portfolio-card-copy a { margin-top: 16px; padding-bottom: 2px; border-bottom: 1px solid var(--line-strong); font-size: 11px; font-weight: 750; }
.portfolio-card-copy a:hover, .portfolio-card-copy a:focus-visible { border-bottom-color: var(--text); }
.game-preview { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: center; margin-top: 28px; padding: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.game-preview-copy { position: relative; z-index: 1; }
.game-preview-copy strong { display: block; margin-bottom: 12px; font-size: 20px; }
.game-preview-copy p { font-size: 13px; line-height: 1.6; }
.game-phone-stack { position: relative; height: 310px; }
.phone-shot { position: absolute; top: 0; width: 47%; height: 100%; padding: 5px; overflow: hidden; border: 1px solid rgba(255,255,255,.22); border-radius: 23px; background: #070b0f; box-shadow: 0 16px 38px rgba(8,21,31,.22); }
.phone-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; border-radius: 17px; }
.phone-shot-left { left: 2%; transform: rotate(-4deg); }
.phone-shot-right { right: 2%; transform: rotate(4deg); }
.phone-shot-right img { object-position: center 46%; }
.game-desktop-frame { position: relative; grid-column: 1 / -1; padding: 12px 8px 8px; border: 1px solid var(--line-strong); border-radius: 12px; background: #111820; box-shadow: 0 18px 46px rgba(8,21,31,.17); }
.desktop-camera-dot { position: absolute; z-index: 2; top: 5px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: #66727b; transform: translateX(-50%); }
.desktop-screen { height: 230px; overflow: hidden; border-radius: 6px; background: #f7f3eb; }
.desktop-screen img { width: 100%; height: auto; transform: translateY(-6.2%); }
.interactive-feature { border-bottom: 1px solid var(--line); }

.approach-heading { max-width: 930px; margin-bottom: 78px; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.principle { min-height: 280px; padding: 26px 28px 12px 0; border-right: 1px solid var(--line); }
.principle + .principle { padding-left: 28px; }
.principle:last-child { border-right: 0; }
.principle > span { color: var(--muted); font-size: 9px; letter-spacing: .16em; }
.principle h3 { margin: 68px 0 18px; font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
.principle p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.contact-section { background: var(--text); color: var(--bg); }
.contact-section .eyebrow { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(70px, 10vw, 150px); align-items: end; }
.contact-right > p { max-width: 420px; margin-bottom: 42px; color: color-mix(in srgb, var(--bg) 70%, transparent); font-size: 17px; }
.contact-line { padding: 18px 0; display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); }
.contact-line span { color: color-mix(in srgb, var(--bg) 60%, transparent); font-size: 10px; text-transform: uppercase; letter-spacing: .18em; }
.contact-line strong { font-size: 13px; font-weight: 650; }
.contact-email { color: inherit; text-decoration: none; text-underline-offset: 3px; }
.contact-email:hover, .contact-email:focus-visible { text-decoration: underline; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 112px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; color: var(--muted); font-size: 11px; }
.footer-inner > p { margin: 0; }
.footer-lockup { opacity: .85; }
.footer-lockup .brand-lockup-image { width: 205px; }
.back-top { justify-self: end; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .nav-wrap { grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; }
  .mobile-menu { position: fixed; inset: var(--header-h) 0 auto; display: block; max-height: 0; overflow: hidden; background: var(--bg); border-bottom: 1px solid transparent; transition: max-height 240ms ease, border-color 240ms ease; }
  .mobile-menu.is-open { max-height: 320px; border-color: var(--line); }
  .mobile-menu-inner { padding: 18px 0 24px; display: grid; }
  .mobile-menu a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .mobile-menu a:last-child { border-bottom: 0; }
  .hero::before { background: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { min-height: calc(78svh - var(--header-h)); border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .hero-signature { padding: 48px 0 60px; }
  .hero-background-mark { right: 4%; top: 44%; width: min(72vw, 540px); opacity: .07; }
  [data-theme="dark"] .hero-background-mark { opacity: .06; }
  .split-layout, .section-intro-row, .contact-grid { grid-template-columns: 1fr; }
  .section-copy { padding-top: 0; }
  .section-intro-row { gap: 30px; }
  .product-feature { grid-template-columns: 1fr; }
  .product-copy { border-right: 0; padding-right: 0; }
  .carekeeping-visual { border-top: 1px solid var(--line); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle:nth-child(2) { border-right: 0; }
  .principle:nth-child(3), .principle:nth-child(4) { border-top: 1px solid var(--line); }
  .product-next { grid-template-columns: 58px 1fr; padding: 26px 0; }
  .product-next p, .product-next-detail { grid-column: 2; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .shell { width: min(calc(100% - 30px), var(--max)); }
  .brand-lockup-image { width: 176px; height: 38px; }
  .theme-toggle, .menu-toggle { width: 38px; height: 38px; }
  .hero-copy { min-height: auto; padding: 88px 0 78px; }
  h1 { font-size: clamp(55px, 16vw, 78px); line-height: .9; }
  .hero-lede { font-size: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .button { width: 100%; }
  .hero-signature { padding: 38px 0 48px; }
  .hero-primary-lockup { width: min(100%, 285px); }
  .signature-meta { flex-direction: column; gap: 7px; }
  .section { padding: 82px 0; }
  .section-heading h2, .section-intro h2, .approach-heading h2, .contact-section h2 { font-size: clamp(42px, 13vw, 58px); }
  .section-copy .lead-copy { font-size: 19px; }
  .section-intro { margin-bottom: 52px; }
  .product-copy { padding: 40px 0 52px; }
  .product-meta { margin-bottom: 42px; }
  .carekeeping-brand-line { align-items: flex-start; }
  .carekeeping-brand-line .ck-logo-box { width: 56px; height: 56px; }
  .carekeeping-brand-line h3 { font-size: 39px; }
  .carekeeping-visual { margin-left: -15px; margin-right: -15px; padding: 42px 15px; }
  .carekeeping-window { min-height: 390px; border-radius: 18px; }
  .ck-window-center { padding: 38px 24px; }
  .ck-window-center .ck-logo-box-large { width: 82px; height: 82px; }
  .product-next { grid-template-columns: 42px 1fr; gap: 16px; }
  .product-next-feature { padding: 34px 0 38px; }
  .product-next-detail h3 { font-size: 28px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-image-wrap { height: 330px; }
  .game-preview { grid-template-columns: 1fr; }
  .game-phone-stack { height: 340px; }
  .desktop-screen { height: 190px; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle + .principle { min-height: 220px; padding: 24px 0 28px; border-right: 0; border-top: 1px solid var(--line); }
  .principle:first-child { border-top: 0; }
  .principle h3 { margin-top: 40px; }
  .contact-grid { gap: 56px; }
  .contact-line { flex-direction: column; gap: 8px; }
  .footer-inner { min-height: 150px; grid-template-columns: 1fr auto; align-content: center; }
  .footer-lockup .brand-lockup-image { width: 176px; }
  .footer-inner > p { grid-column: 1 / -1; grid-row: 2; }
  .back-top { grid-column: 2; grid-row: 1; }
}

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

/* Carekeeping product UI preview refinements */
@media (max-width: 700px) {
  .carekeeping-app-frame { min-height: 430px; border-radius: 20px; transform: none; }
  .ck-app-toolbar { padding: 17px 16px 15px; }
  .ck-app-content { padding: 19px 15px 16px; }
  .ck-app-heading-row { margin-bottom: 16px; }
  .ck-app-heading-row h4 { font-size: 20px; }
  .ck-app-heading-row p { font-size: 10px; }
  .ck-remaining { padding: 6px 8px; font-size: 8px; }
  .ck-summary-card { min-height: 61px; padding: 10px; border-radius: 12px; }
  .ck-summary-card strong { font-size: 18px; }
  .ck-care-card { min-height: 68px; padding: 11px; grid-template-columns: 34px 1fr auto; gap: 9px; border-radius: 13px; }
  .ck-care-icon { width: 31px; height: 31px; }
  .ck-care-action { padding: 6px 8px; }
  .ck-bottom-nav { min-height: 61px; padding-left: 5px; padding-right: 5px; }
  .ck-bottom-nav span { font-size: 6.5px; }
}

/* V2.5 — selected-work image and link refinements */
.portfolio-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.portfolio-card:hover,
.portfolio-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 34px rgba(8,21,31,.09);
  outline: none;
}
.portfolio-image-wrap {
  height: 300px;
  padding: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface-2);
}
.portfolio-device {
  height: 100%;
  max-width: 162px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #111820;
  box-shadow: 0 18px 36px rgba(8,21,31,.18);
}
.portfolio-device img,
.portfolio-card-pressed .portfolio-image-wrap img,
.portfolio-card-create .portfolio-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 15px;
  transform: none;
}
.portfolio-card-copy { min-height: 118px; }
.portfolio-domain {
  width: 100%;
  margin-top: 16px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.portfolio-arrow { color: var(--text); font-size: 13px; }
.game-preview { align-items: stretch; }
.game-phone-stack { height: 330px; }
.phone-shot { background: #061b30; }
.phone-shot img { object-position: top center; }
.phone-shot-left img, .phone-shot-right img { object-position: top center; }
.desktop-screen { height: 245px; }
.desktop-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: none;
}
.contact-line a { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .portfolio-image-wrap { height: 310px; padding: 20px; }
  .portfolio-device { max-width: 165px; }
  .game-phone-stack { height: 350px; }
  .desktop-screen { height: 190px; }
}
