:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fb;
  --fg: #111111;
  --muted: #5b6570;
  --faint: #8b949e;
  --line: #eceff2;
  --line-strong: #dfe3e8;
  --sky-top: #7ec8f0;
  --sky-mid: #c5e8fa;
  --sky-end: #ffffff;
  --btn: #111111;
  --btn-fg: #ffffff;
  --shot-bg: #f3f5f7;
  --radius: 20px;
  --radius-lg: 28px;
  --header-h: 72px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--fg); }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--fg);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(760px, calc(100% - 40px));
  margin-inline: auto;
}

/* Header – Aside-style: logo | centered nav | pill CTA */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(223, 227, 232, 0.7);
  background: rgba(255, 255, 255, 0.82);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.site-nav .nav-cta {
  margin-left: 4px;
  color: var(--btn-fg);
}

.site-nav .nav-cta:hover { color: var(--btn-fg); }

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--fg); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease), opacity 180ms var(--ease);
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--btn);
  color: var(--btn-fg);
}

.btn-primary:hover {
  background: #2a2a2a;
  color: var(--btn-fg);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--bg-soft);
  color: var(--fg);
}

.btn-ghost:hover {
  background: #e8edf1;
  color: var(--fg);
  transform: translateY(-1px);
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: 15px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

main {
  margin-top: calc(-1 * var(--header-h));
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: calc(88px + var(--header-h)) 0 96px;
  background:
    radial-gradient(ellipse 42% 36% at 18% 22%, rgba(255, 255, 255, 0.88), transparent 70%),
    radial-gradient(ellipse 48% 40% at 82% 8%, rgba(255, 255, 255, 0.7), transparent 68%),
    radial-gradient(ellipse 36% 28% at 52% 48%, rgba(255, 255, 255, 0.45), transparent 70%),
    linear-gradient(180deg, #6fbfec 0%, #b7e2f8 42%, #eaf6fd 78%, #ffffff 100%);
}

.hero .wrap { position: relative; z-index: 1; }

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  margin: 0 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 13px;
  color: #2a4a62;
  backdrop-filter: blur(8px);
}

.hero h1 {
  margin: 0 auto;
  width: max-content;
  max-width: 100%;
  font-size: clamp(2.5rem, 6.1vw, 4.75rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.12;
  color: #111;
}

.hero-hyphen {
  display: inline-block;
  letter-spacing: 0;
  transform: scaleX(0.55);
  margin-inline: -0.1em;
}

.hero-copy {
  margin: 22px auto 0;
  max-width: 38rem;
  color: #3d5566;
  font-size: 1.08rem;
  line-height: 1.7;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 8px;
  row-gap: 12px;
  margin: 32px auto 0;
  max-width: 40rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  font-size: 13px;
  color: #1c2e3a;
}

.hero-actions {
  margin-top: 36px;
}

/* Sections */
.section { padding: 88px 0; }

main.section {
  padding-top: calc(40px + var(--header-h));
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 48px;
}

.section h2,
.case h1 {
  margin: 0;
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.section h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }

.lede {
  margin: 12px 0 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--faint);
}

/* Work */
.work-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 34rem;
  margin-inline: auto;
}

.work-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 0 18px;
  align-items: center;
  color: inherit;
}

.work-card:hover .shot { transform: translateY(-2px); }

.work-card .shot {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  background: none;
  border: 0;
}

.shot {
  margin: 0;
  height: 280px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 220ms var(--ease);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-empty {
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
  color: rgba(17, 17, 17, 0.38);
  font-size: 14px;
}

.shot-empty small {
  font-size: 12px;
  color: rgba(17, 17, 17, 0.28);
}

.shot--vault,
.shot--golf,
.shot--frame {
  background: var(--shot-bg);
  border: 1px solid var(--line);
}

.work-body {
  padding: 0;
  text-align: left;
}

.work-body h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.work-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.work-desc.is-slot {
  color: var(--faint);
  font-style: italic;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 5px 10px;
}

/* Practice keywords */
.keyword-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.keyword-card {
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  min-height: 160px;
}

.keyword-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.keyword-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Contact */
.contact {
  text-align: center;
  padding: 96px 24px 108px;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, #d7effc 0%, #ffffff 70%);
}

.contact h2 {
  margin: 0 auto;
  max-width: 13em;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.contact .lede {
  margin: 16px auto 0;
  max-width: 32rem;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 16px;
  margin: 32px auto 0;
  max-width: 32rem;
  text-align: left;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--fg);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  border-color: var(--fg);
}

.contact-turnstile {
  min-height: 65px;
}

.contact-form .btn {
  width: 100%;
}

.contact-status {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.contact-status.is-error { color: #b42318; }
.contact-status.is-ok { color: #067647; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--faint);
}

.site-footer a:hover { color: var(--fg); }

/* Case study */
.case { padding: calc(48px + var(--header-h)) 0 96px; }

.case h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  max-width: 18ch;
}

.case .lede { margin-top: 16px; font-size: 1.08rem; max-width: 38rem; }

.case-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 22px 0 4px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.store-badge img {
  height: 44px;
  width: auto;
  display: block;
}

.store-badge:hover { opacity: 0.86; }

.meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 36px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta dt {
  font-size: 12px;
  color: var(--faint);
  margin: 0 0 6px;
}

.meta dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.shot-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

.shot-gallery .shot:first-child,
.shot-gallery .shot--wide {
  grid-column: 1 / -1;
  height: 420px;
}

.shot-gallery .shot { height: 220px; }

.shot--wide img {
  object-fit: cover;
  object-position: center top;
}

.device-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 48px;
  align-items: start;
}

.device-gallery--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.device-gallery--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.device-gallery .shot {
  height: auto;
  display: block;
  border-radius: 0;
  background: none;
  border: 0;
  overflow: visible;
  transform: none;
}

.device-gallery button.shot {
  width: 100%;
  cursor: zoom-in;
  font: inherit;
  text-align: inherit;
}

.device-gallery button.shot:hover { opacity: 0.92; }

.device-gallery a.shot:hover { transform: none; }

.device-gallery .shot img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: top center;
  padding: 0;
}

.device-gallery .shot--outline img {
  border: 1px solid #e6e8eb;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 80px 40px;
  background: rgba(8, 10, 12, 0.88);
}

.lightbox.is-open { display: flex; }

.lightbox img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-close { top: 16px; right: 16px; }

.lightbox-prev,
.lightbox-next { top: 50%; transform: translateY(-50%); }

.lightbox-prev { left: 16px; }

.lightbox-next { right: 16px; }

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 22px;
  height: 22px;
}

body.lightbox-open { overflow: hidden; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 40px;
}

.case .prose { max-width: 40rem; margin-top: 36px; }

.desc-slot {
  margin: 0 0 28px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  min-height: 120px;
  color: var(--muted);
}

.desc-slot.is-empty {
  color: var(--faint);
  font-style: italic;
}

.prose h2 {
  margin: 36px 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
}

.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--fg); }
.prose p, .prose li { color: var(--muted); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 18px; }

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
}

.back-link:hover { color: var(--fg); }

.next-work {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.next-work a { color: var(--muted); }
.next-work a:hover { color: var(--fg); }
.next-work strong {
  display: block;
  color: var(--fg);
  font-weight: 600;
  margin-top: 4px;
}

/* Privacy */
.policy-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 32px;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-soft);
  margin-top: 14px;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.tab:hover { color: var(--fg); }

.tab.active {
  background: #fff;
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.06);
}

.policy-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  background: var(--bg-soft);
}

.pill:hover { background: #eef2f5; }

/* Reveal */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .work-card .shot { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .keyword-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .meta,
  .shot-gallery { grid-template-columns: 1fr; }

  .shot-gallery .shot:first-child,
  .shot-gallery .shot--wide,
  .shot-gallery .shot { height: 240px; }

  .device-gallery { grid-template-columns: 1fr 1fr; }
  .device-gallery--two { grid-template-columns: 1fr 1fr; }
  .device-gallery--three { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }

  .hero { padding: calc(64px + var(--header-h)) 0 72px; }
  .section { padding: 64px 0; }
  main.section { padding-top: calc(32px + var(--header-h)); }
  .shot { height: 220px; }
  .work-card .shot { width: 108px; height: 108px; }
  .device-gallery .shot { height: auto; }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    border-bottom: 1px solid var(--line);
    z-index: 30;
  }

  .site-nav.is-open { display: flex; }
  .site-nav a {
    min-height: 48px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin: 16px 0 0;
    align-self: flex-start;
    border-bottom: 0;
  }

  .wrap,
  .wrap-narrow { width: calc(100% - 32px); }

  .keyword-grid { grid-template-columns: 1fr; }
  .policy-card { padding: 22px 18px; }
  .policy-top { flex-direction: column; }
  .tabs { width: 100%; }
  .tab { flex: 1; }
}
