:root {
  --ink: #0c1110;
  --paper: #f5f4e9;
  --mist: #e6e6dc;
  --line: #c9cbc1;
  --muted: #535a56;
  --reef: #007a6f;
  --aqua: #a9ebd4;
  --deep: #003c38;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shell: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .18em; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; top: -4rem; left: 1rem; z-index: 5; padding: .7rem 1rem; color: #fff; background: var(--ink); }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; gap: .18em; text-decoration: none; font-size: 1rem; font-weight: 700; letter-spacing: -.075em; }
.wordmark-slash { margin: 0 .1em; color: var(--reef); font-weight: 500; }
.back-link { padding: .45rem .8rem; border-radius: 999px; background: var(--mist); font-size: .7rem; font-weight: 650; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.breadcrumb { display: flex; align-items: center; gap: .65rem; padding-top: 1.2rem; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.breadcrumb a { color: var(--reef); text-decoration: none; }
.breadcrumb span:last-child { color: var(--ink); }
.eyebrow { margin: 0 0 1rem; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2.6rem; min-height: 3.25rem; padding: .75rem 1rem .75rem 1.15rem; color: #fff; border-radius: 999px; background: var(--ink); font-size: .85rem; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s; }
.button:hover { background: var(--reef); transform: translateY(-2px); }
.apps-hero { padding: clamp(5rem, 11vw, 9.5rem) 0 clamp(4rem, 8vw, 7rem); border-bottom: 1px solid var(--line); }
.apps-hero h1, .app-hero h1, .section-heading h2 { margin: 0; letter-spacing: -.075em; line-height: .92; }
.apps-hero h1 { max-width: 13ch; font-size: clamp(3.5rem, 8vw, 7.7rem); font-weight: 600; }
.apps-hero p:last-child { max-width: 37rem; margin: 2rem 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.5; }
.app-list { padding: clamp(4rem, 9vw, 8rem) 0; }
.app-card { display: grid; grid-template-columns: 168px 1fr auto; align-items: center; gap: 2rem; padding: 1.35rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.app-card:last-child { border-bottom: 1px solid var(--line); }
.app-icon { width: 130px; border-radius: 27%; box-shadow: 0 12px 26px rgba(12, 17, 16, .11); }
.app-card h2 { margin: 0 0 .4rem; font-size: clamp(1.7rem, 3vw, 2.8rem); letter-spacing: -.06em; }
.app-card p { max-width: 31rem; margin: 0; color: var(--muted); line-height: 1.45; }
.app-card-meta { align-self: start; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .1em; }
.card-arrow { font-size: 1.6rem; color: var(--reef); }

.app-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: start; gap: clamp(2rem, 5vw, 5rem); padding: clamp(4.5rem, 9vw, 8rem) 0 4rem; }
.app-identity { display: flex; align-items: center; gap: 1.15rem; margin-bottom: 2rem; }
.app-identity img { width: 68px; border-radius: 23%; }
.app-identity span { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.app-hero h1 { max-width: none; font-size: clamp(3.15rem, 4.6vw, 5.2rem); font-weight: 600; }
.app-tagline { max-width: 34rem; margin: 0 0 1.9rem; color: var(--muted); font-size: 1.15rem; line-height: 1.48; }
.app-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin-top: 1.6rem; background: var(--line); border: 1px solid var(--line); border-radius: 14px; }
.app-details div { min-height: 86px; padding: 1rem; background: var(--paper); }
.app-details span { display: block; margin-bottom: .45rem; color: var(--muted); font-size: .64rem; font-weight: 700; letter-spacing: .1em; }
.app-details strong { font-size: .85rem; line-height: 1.2; }
.app-summary { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(2rem, 9vw, 10rem); padding: clamp(4rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
.app-summary h2 { max-width: 18ch; margin: 0 0 1rem; font-size: clamp(2.2rem, 4vw, 4rem); letter-spacing: -.065em; line-height: .96; }
.app-summary > div:last-child { max-width: 38rem; }
.app-summary > div:last-child p { margin: 0; color: #323b37; font-size: 1.04rem; line-height: 1.55; }
.screens { padding: 3rem 0 clamp(5rem, 9vw, 8rem); overflow: hidden; background: var(--mist); }
.screens .shell { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .6rem; scroll-snap-type: x proximity; }
.screens img { width: clamp(180px, 22vw, 270px); flex: none; border: 1px solid rgba(12, 17, 16, .13); border-radius: 20px; box-shadow: 0 12px 30px rgba(12, 17, 16, .12); scroll-snap-align: start; }
.case-body { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(3rem, 9vw, 10rem); padding: clamp(5.5rem, 10vw, 9rem) 0; }
.case-nav { align-self: start; position: sticky; top: 1.5rem; }
.case-nav a { display: block; padding: .75rem 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .82rem; text-decoration: none; }
.case-nav a:first-child { border-top: 1px solid var(--line); }
.case-content { max-width: 43rem; }
.case-block { padding-bottom: 3.6rem; }
.case-block:last-child { padding-bottom: 0; }
.case-block h2 { margin: 0 0 1rem; font-size: clamp(2rem, 3.5vw, 3.3rem); letter-spacing: -.065em; line-height: .97; }
.case-block p { margin: 0; color: #323b37; font-size: 1.04rem; line-height: 1.55; }
.feature-list { display: grid; gap: 0; padding: 0; margin: 1.3rem 0 0; list-style: none; border-top: 1px solid var(--line); }
.feature-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.feature-list b { display: block; margin-bottom: .22rem; }
.case-note { padding: 1.45rem; border-left: 4px solid var(--reef); background: #e5f5ee; }
.case-note p { font-size: .95rem; }
.source-link { color: var(--reef); font-weight: 700; }
.next-project { padding: clamp(4rem, 8vw, 7rem) 0; color: #fff; background: var(--deep); }
.next-project .eyebrow { color: #b4d4c7; }
.next-project h2 { max-width: 15ch; margin: 0 0 1.8rem; font-size: clamp(2.6rem, 5vw, 5rem); letter-spacing: -.07em; line-height: .92; }
.next-project .button { color: var(--ink); background: var(--aqua); }
.next-project .button:hover { color: #fff; background: var(--reef); }
.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 2rem 0; color: var(--muted); border-top: 1px solid var(--line); font-size: .78rem; }
.site-footer p { margin: 0; }
.footer-contact { color: var(--reef); font-weight: 700; text-decoration: none; }
.footer-contact:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 700px) {
  :root { --shell: min(100% - 40px, 1180px); }
  .breadcrumb { padding-top: 1rem; font-size: .65rem; }
  .app-card { grid-template-columns: 90px 1fr; gap: 1.1rem; }
  .app-icon { width: 78px; }
  .app-card h2 { font-size: 1.5rem; }
  .app-card-meta, .card-arrow { display: none; }
  .app-hero, .case-body { grid-template-columns: 1fr; gap: 2.5rem; }
  .app-summary { grid-template-columns: 1fr; gap: 1rem; padding: 3.5rem 0; }
  .app-summary h2 { max-width: 15ch; }
  .app-hero h1 { max-width: 12ch; }
  .app-details { grid-template-columns: repeat(2, 1fr); }
  .case-nav { display: none; }
  .site-footer { display: block; }
  .site-footer p + p { margin-top: .7rem; }
}
@media (max-width: 420px) {
  .app-details { grid-template-columns: 1fr; }
  .apps-hero h1 { font-size: 3.2rem; }
  .app-hero h1 { font-size: 3.2rem; }
}
