  @font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(fonts/inter-tight-latin.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
  @font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(fonts/inter-tight-latin-ext.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
  @font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(fonts/inter-tight-cyrillic.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

  :root {
    --paper: #f3f1ec;
    --ink: #161616;
    --muted: #5f5e59;
    --rule: #d9d6cf;
    --accent: #8a4b2f;
    --card: #ebe8e1;
    --card-2: #f7f5f1;
    --line-2: #c9c5bc;
    --placeholder: #9a978f;
    --danger: #9b3b2f;
    --soft: #dcd8cf;
    --badge: #b9b5ac;
    --wordmark: #d8cbbd;
    --header-bg: rgba(243,241,236,.9);
    --shadow: rgba(0,0,0,.3);
    --tint-mix: 100%;
    color-scheme: light;
    --pad: clamp(20px, 5vw, 64px);
    --ease: cubic-bezier(.2, .7, .1, 1);
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; scroll-padding-top: 88px; }
  body {
    background: var(--paper); color: var(--ink);
    font: 400 18px/1.55 "Inter Tight", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
  .lead, .cta-title, blockquote, .hero-foot p, .price-note { text-wrap: pretty; }
  .cta-title { text-wrap: balance; }
  .wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
  .skip { position: absolute; left: -9999px; }
  .skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 10; }

  /* Header */
  .site-header { position: sticky; top: 0; z-index: 20; background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent; transition: transform .45s var(--ease), border-color .3s; }
  .site-header.scrolled { border-bottom-color: var(--rule); }
  .site-header.hidden { transform: translateY(-100%); }
  .header-in { display: flex; align-items: center; gap: 28px; height: 72px; }
  .header-in nav { margin-left: auto; position: relative; }
  .lang { text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .04em; border: 1px solid var(--rule); border-radius: 999px; padding: 5px 10px; color: var(--muted); }
  .lang:hover { color: var(--ink); border-color: var(--ink); }
  .logo { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
  .logo img { display: block; transition: transform .5s var(--ease); }
  .logo:hover img { transform: rotate(-8deg) scale(1.06); }
  nav ul { list-style: none; display: flex; gap: 28px; font-size: 15px; }
  nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
  nav a:hover, nav a[aria-current="true"] { color: var(--ink); }
  .menu-btn { display: none; background: none; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
  @media (max-width: 720px) {
    .js .menu-btn { display: inline-block; }
    .js nav ul {
      position: absolute; right: 0; top: calc(100% - 8px); flex-direction: column; gap: 0;
      background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: 8px; min-width: 210px;
      box-shadow: 0 24px 48px -28px var(--shadow);
      opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; visibility: hidden;
      transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s;
    }
    .js nav.open ul { opacity: 1; transform: none; visibility: visible; transition: opacity .2s var(--ease), transform .25s var(--ease); }
    .js nav ul a { display: block; padding: 12px 14px; font-size: 17px; color: var(--ink); }
    nav ul { gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
  }

  /* Hero */
  .hero { padding: clamp(64px, 14vw, 180px) 0 clamp(56px, 9vw, 120px); position: relative; }
  .eyebrow { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
  h1 { font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; font-size: clamp(48px, 10.5vw, 156px); max-width: 11ch; }
  /* Each word slides up from under its bottom edge; clip only the bottom so tight letters keep their sides */
  h1 .w { display: inline-block; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; clip-path: inset(-0.5em -0.5em 0 -0.5em); }
  h1 .w > span { display: inline-block; }
  h1 em { font-style: normal; color: var(--muted); }
  .hero-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: clamp(40px, 7vw, 88px); }
  .hero-foot p { max-width: 40ch; color: var(--muted); }
  .btn {
    display: inline-flex; align-items: center; gap: 10px; align-self: flex-end;
    padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--paper);
    text-decoration: none; font-weight: 500; font-size: 15px; transition: background .2s;
  }
  .btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
  .btn:hover { background: var(--accent); }
  .btn:hover .arrow { transform: translateX(4px); }

  /* Sections with a hairline on top that draws in */
  section, .hero-end { position: relative; padding: clamp(48px, 7vw, 96px) 0; }
  .line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); transform-origin: left; }
  .row { display: grid; grid-template-columns: 1fr; gap: 24px; }
  @media (min-width: 860px) { .row { grid-template-columns: 4fr 8fr; gap: 48px; } }
  .label { font-size: 14px; color: var(--muted); font-weight: 400; }
  .label b { color: var(--ink); font-weight: 500; margin-right: 10px; }
  .lead { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -0.025em; max-width: 24ch; }


  .steps { list-style: none; }
  .steps li { display: grid; grid-template-columns: 48px 1fr; gap: 8px 24px; padding: 28px 0; border-top: 1px solid var(--rule); }
  .steps li:first-child { border-top: 0; padding-top: 0; }
  @media (min-width: 860px) { .steps li { grid-template-columns: 64px 220px 1fr; } }
  .steps .n { color: var(--muted); font-variant-numeric: tabular-nums; }
  .steps h3 { font-weight: 500; font-size: 24px; letter-spacing: -0.02em; }
  .steps p { color: var(--muted); grid-column: 2; max-width: 52ch; }
  @media (min-width: 860px) { .steps p { grid-column: 3; } }

  .price { font-size: clamp(56px, 9vw, 128px); letter-spacing: -0.05em; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; }
  .price small { font-size: 0.28em; letter-spacing: 0; color: var(--muted); font-weight: 400; display: block; margin-bottom: 14px; }
  .price-note { color: var(--muted); max-width: 46ch; margin-top: 24px; }

  blockquote { font-size: clamp(24px, 3vw, 38px); line-height: 1.2; letter-spacing: -0.02em; max-width: 24ch; }
  .person { display: flex; align-items: center; gap: 14px; margin-top: 32px; font-size: 15px; }
  .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-weight: 600; font-size: 15px; }
  .person span { color: var(--muted); display: block; }

  footer { position: relative; padding: clamp(48px, 7vw, 96px) 0 40px; }
  .cta-title { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -0.025em; margin-bottom: 28px; max-width: 20ch; }
  .mail { position: relative; font-size: clamp(28px, 6vw, 84px); letter-spacing: -0.04em; text-decoration: none; display: inline-block; line-height: 1.1; overflow-wrap: anywhere; padding-bottom: 6px; transition: color .2s; }
  .mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform .5s var(--ease); }
  .mail:hover { color: var(--accent); }
  .mail:hover::after { transform: scaleX(0); }
  .contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin-top: 56px; font-size: 15px; }
  .contacts h3 { font-weight: 400; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
  .contacts a { text-decoration: none; display: block; }
  .contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .legal { margin-top: 72px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }

  /* Motion: only with JS and only for people who have not asked for less motion */
  @media (prefers-reduced-motion: no-preference) {
    .js h1 .w > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 70ms + 100ms); }
    .js .loaded h1 .w > span { transform: none; }
    .js .hero .fade { opacity: 0; transition: opacity 1s var(--ease) .7s; }
    .js .loaded .hero .fade { opacity: 1; }
    .js .line { transform: scaleX(0); transition: transform 1.2s var(--ease); }
    .js .in > .line, .js .in.line { transform: none; }
    .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
    .js .in .reveal, .js .reveal.in { opacity: 1; transform: none; }
  }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

  /* Selected work */
  .work-head { display: grid; gap: 24px; margin-bottom: clamp(32px, 5vw, 64px); }
  @media (min-width: 860px) { .work-head { grid-template-columns: 4fr 8fr; gap: 48px; } }
  .cases { list-style: none; display: grid; gap: clamp(32px, 4vw, 48px) clamp(16px, 2.5vw, 32px); }
  @media (min-width: 760px) { .cases { grid-template-columns: 1fr 1fr; } .cases li:nth-child(even) { margin-top: clamp(40px, 8vw, 120px); } }
  .case-card { display: block; text-decoration: none; }
  .case-visual { --tint: #e4e0d6; position: relative; background: color-mix(in srgb, var(--tint) var(--tint-mix), var(--paper)); border-radius: 20px; aspect-ratio: 4 / 3.4; overflow: hidden; display: grid; place-items: end center; }
  .case-visual > * { transition: transform .8s var(--ease); }
  .case-card:hover .case-visual > * { transform: translateY(-10px) scale(1.015); }
  .case-meta { padding-top: 20px; }
  .case-meta h3 { font-weight: 500; font-size: 24px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
  .case-meta p { color: var(--muted); margin-top: 6px; max-width: 46ch; }
  .case-tags { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--muted); }
  .case-card:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
  .tpl-badge { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; color: var(--muted); border: 1px dashed var(--badge); border-radius: 999px; padding: 3px 9px; }
  .tpl-note { margin-top: 16px; font-size: 14px; color: var(--muted); border-left: 2px solid var(--rule); padding-left: 12px; max-width: 60ch; }
  .shots { display: flex; gap: 4%; justify-content: center; align-items: flex-end; width: 100%; padding: 8% 6% 0; }
  .shots img { width: 28%; border-radius: 16px 16px 0 0; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }

  /* Stand-in screens, drawn with CSS */
  .m-phone { width: 46%; aspect-ratio: 9 / 17; margin-bottom: -8%; background: #fbfaf7; border-radius: 28px 28px 0 0; border: 6px solid #1b1b1b; border-bottom: 0; padding: 9% 7% 0; display: flex; flex-direction: column; gap: 5%; box-shadow: 0 40px 80px -40px rgba(0,0,0,.45); }
  .m-phone i, .m-phone b { display: block; background: #e9e6df; border-radius: 6px; }
  .m-top { height: 3%; width: 30%; margin: -4% auto 4%; background: #1b1b1b; border-radius: 99px; }
  .m-app .m-title { height: 5%; width: 55%; background: #1b1b1b; opacity: .85; }
  .m-app .m-hero { height: 30%; border-radius: 14px; background: #d8d3c8; }
  .m-app.v1 .m-hero { height: 20%; background: #cfd6cf; }
  .m-app.v2 .m-hero { height: 38%; background: #d9d4cb; border-radius: 50% 50% 14px 14px; }
  .m-list { display: grid; gap: 10%; flex: 1; }
  .m-list i { height: 26px; }
  .m-tabs { display: flex; justify-content: space-around; padding: 6% 0 8%; border-top: 1px solid #ebe8e1; }
  .m-tabs b { width: 14px; height: 14px; border-radius: 4px; background: #cfcac0; }
  .m-tabs b:first-child { background: #1b1b1b; }
  .m-chat { gap: 4%; }
  .m-chat i { height: 7%; width: 62%; border-radius: 14px; }
  .m-chat i.in { background: #e9e6df; border-bottom-left-radius: 4px; }
  .m-chat i.out { background: #2b2b2b; margin-left: auto; border-bottom-right-radius: 4px; width: 50%; }
  .m-chat i.long { height: 13%; width: 74%; }
  .m-chat i.short { width: 34%; }
  .m-input { margin-top: auto; margin-bottom: 8%; height: 7%; border-radius: 99px; border: 1px solid #dedad2; }
  .m-mini .m-banner { height: 18%; border-radius: 14px; background: #d3d8df; }
  .m-mini.v1 .m-banner { background: #dcd6cc; }
  .m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .m-grid i { aspect-ratio: 1; border-radius: 12px; }
  .m-mini.v2 .m-grid { grid-template-columns: 1fr; } .m-mini.v2 .m-grid i { aspect-ratio: 3.2; }
  .m-cta { margin-top: auto; margin-bottom: 8%; height: 8%; border-radius: 12px; background: #2b2b2b !important; }
  .m-web { width: 84%; aspect-ratio: 16 / 11; margin-bottom: -6%; background: #fbfaf7; border-radius: 14px 14px 0 0; box-shadow: 0 40px 80px -40px rgba(0,0,0,.45); overflow: hidden; display: flex; flex-direction: column; }
  .m-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #ebe8e1; }
  .m-bar b { width: 9px; height: 9px; border-radius: 50%; background: #d6d2ca; }
  .m-body { flex: 1; display: grid; grid-template-columns: 22% 1fr; }
  .m-body .m-side { border-right: 1px solid #ebe8e1; padding: 14px; display: grid; align-content: start; gap: 10px; }
  .m-body i { display: block; background: #e9e6df; border-radius: 6px; height: 12px; }
  .m-main { padding: 16px; display: grid; gap: 14px; grid-template-rows: 1fr auto; }
  .m-main .m-chart { height: auto; border-radius: 10px; background: linear-gradient(to top, #d6dbd6 0 40%, transparent 40%), repeating-linear-gradient(90deg, #e9e6df 0 12%, transparent 12% 16%); }
  .m-web.v1 .m-chart { background: #e4e0d8; }
  .m-web.v2 .m-body { grid-template-columns: 1fr; } .m-web.v2 .m-side { display: none; }
  .m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .m-cards i { height: 42px; border-radius: 8px; }

  /* Case page */
  .case-hero { padding-bottom: clamp(40px, 6vw, 72px); }
  .back { text-decoration: none; color: var(--muted); }
  .back:hover { color: var(--ink); }
  .case-title { font-weight: 500; letter-spacing: -0.045em; line-height: 0.95; font-size: clamp(48px, 9vw, 132px); }
  .case-summary { font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.015em; line-height: 1.3; max-width: 32ch; margin-top: 28px; }
  .case-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid var(--rule); font-size: 15px; }
  .case-facts dt { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
  .case-visual.big { aspect-ratio: 16 / 9; }
  .case-visual.big .m-phone { width: 24%; } .case-visual.big .m-web { width: 62%; }
  .gallery { display: grid; gap: 16px; }
  @media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
  .case-visual.small { aspect-ratio: 3 / 4; }
  .case-visual.small .m-phone { width: 66%; } .case-visual.small .m-web { width: 92%; aspect-ratio: 3 / 4; }
  .stack { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
  .stack li { border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; font-size: 15px; display: block; }
  .results { display: grid; gap: 32px; }
  @media (min-width: 640px) { .results { grid-template-columns: repeat(3, 1fr); } }
  .results strong { display: block; font-weight: 500; font-size: clamp(48px, 6vw, 88px); letter-spacing: -0.05em; line-height: 1; }
  .results span { display: block; color: var(--muted); margin-top: 10px; max-width: 22ch; }
  .next-link { display: block; text-decoration: none; }
  .next-name { display: block; margin-top: 16px; font-size: clamp(32px, 5vw, 72px); letter-spacing: -0.04em; line-height: 1.05; }
  .next-name em { font-style: normal; color: var(--muted); }
  .next-name .arrow { display: inline-block; transition: transform .4s var(--ease); }
  .next-link:hover .arrow { transform: translateX(10px); }

  .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-self: flex-end; }
  .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
  .btn-ghost:hover { background: transparent; border-color: var(--ink); }
  button.btn { font: inherit; font-weight: 500; font-size: 15px; border: 0; cursor: pointer; }
  button.btn-ghost { border: 1px solid var(--rule); }
  .label .tpl-badge { margin-left: 10px; vertical-align: 1px; }

  /* Pricing band */
  .band { background: #1a1a19; color: #f3f1ec; padding: clamp(64px, 8vw, 112px) 0; border: 0; }
  .band .label, .band .label b { color: #f3f1ec; }
  .band .label { opacity: .7; }
  .band .tpl-badge { color: #b9b5ac; border-color: #555; }
  .pkgs { display: grid; gap: 16px; margin-bottom: 40px; }
  @media (min-width: 900px) { .pkgs { grid-template-columns: repeat(3, 1fr); } }
  .pkg { border: 1px solid #333331; border-radius: 20px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; transition: border-color .3s; }
  .pkg:hover { border-color: #6b6a66; }
  .pkg-main { background: #f3f1ec; color: #161616; border-color: #f3f1ec; }
  .pkg-main:hover { border-color: #f3f1ec; }
  .pkg h3 { font-weight: 500; font-size: 22px; letter-spacing: -0.02em; }
  .pkg-price { font-size: clamp(40px, 4.4vw, 60px); font-weight: 500; letter-spacing: -0.045em; line-height: 1; margin: 28px 0 16px; font-variant-numeric: tabular-nums; }
  .pkg-price small { display: block; font-size: 14px; letter-spacing: 0; font-weight: 400; opacity: .6; margin-bottom: 8px; }
  .pkg-text { opacity: .72; font-size: 16px; }
  .pkg ul { list-style: none; margin-top: 24px; padding-top: 20px; border-top: 1px solid currentColor; border-top-color: rgba(127,127,127,.3); font-size: 15px; display: grid; gap: 10px; }
  .pkg li { display: grid; grid-template-columns: 26px 1fr; }
  .pkg li::before { content: "—"; opacity: .45; }
  .btn-light { background: #f3f1ec; color: #161616; }
  .btn-light:hover { background: #fff; }

  /* Terms */
  .terms { list-style: none; display: grid; gap: 12px; }
  @media (min-width: 600px) { .terms { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1040px) { .terms { grid-template-columns: repeat(4, 1fr); } }
  .terms li { border: 1px solid var(--rule); border-radius: 18px; padding: 24px; background: var(--card-2); transition: border-color .3s, transform .5s var(--ease); }
  @media (hover: hover) { .terms li:hover { border-color: var(--accent); transform: translateY(-3px); } }
  .terms h3 { font-weight: 500; font-size: 19px; letter-spacing: -0.015em; margin-bottom: 10px; }
  .terms h3::before { content: ""; display: block; width: 18px; height: 18px; margin-bottom: 28px; border-radius: 9px 9px 0 0; background: linear-gradient(90deg, #8a4b2f, #c98a5a); }
  .terms p { color: var(--muted); font-size: 16px; }

  /* Contact and brief form */
  .contact-grid { display: grid; gap: 56px; }
  @media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 72px; } }
  .contact-grid .label { margin-bottom: 20px; }
  .free-call { margin-top: 20px; color: var(--muted); max-width: 40ch; }
  .free-call .tpl-badge { margin-left: 8px; }
  .direct { margin-top: 48px; display: grid; gap: 6px; font-size: 16px; }
  .direct h3 { font-weight: 400; color: var(--muted); font-size: 14px; margin-bottom: 6px; }
  .direct a { text-decoration: none; width: fit-content; }
  .direct a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .direct-mail { font-size: 20px; letter-spacing: -0.01em; }
  .direct-social { display: flex; gap: 16px; margin-top: 6px; }
  .brief { display: grid; gap: 22px; align-content: start; background: var(--card); border-radius: 24px; padding: clamp(22px, 3vw, 40px); }
  .field-row { display: grid; gap: 22px; }
  @media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
  .field { display: grid; gap: 8px; border: 0; min-width: 0; }
  .field > span, .field legend { font-size: 14px; color: var(--muted); padding: 0; margin-bottom: 8px; }
  .field input, .field textarea { font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 8px 0; border-radius: 0; resize: vertical; transition: border-color .2s; }
  .field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); }
  .field textarea::placeholder { color: var(--placeholder); }
  .field .invalid, .field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: var(--danger); }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip input { position: absolute; opacity: 0; pointer-events: none; }
  .chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 15px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
  .chip:hover span { border-color: var(--ink); }
  .chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
  .brief-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
  .brief-status { font-size: 15px; min-height: 1.5em; color: var(--accent); }
  .brief-status.error { color: var(--danger); }

  /* Footer bottom */
  .footer-bottom { margin-top: clamp(64px, 8vw, 112px); }
  .wordmark { font-weight: 600; letter-spacing: -0.06em; line-height: .8; font-size: clamp(64px, 17vw, 250px); color: var(--wordmark); user-select: none; margin-left: -0.04em; }
  .footer-bottom .legal { margin-top: 24px; flex-wrap: wrap; gap: 12px 24px; }
  .legal-links { display: flex; flex-wrap: wrap; gap: 16px; }
  .legal-links a { text-decoration: none; }
  .legal-links a:hover { color: var(--ink); }
  .notfound { padding: clamp(80px, 14vw, 180px) 0; }

  /* ---- 17.11 polish: logo arches, clay accent, timeline ---- */
  h1 em.accent { background: linear-gradient(90deg, #8a4b2f, #c98a5a); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .lead-sm { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; max-width: 30ch; }

  /* Hero arches: the logo's two fingers, drawn in on load and drifting apart on scroll */
  .hero-main { display: grid; grid-template-columns: 1fr; gap: 0 48px; padding-top: clamp(40px, 9vw, 120px); }
  .hero-visual { order: -1; width: 64px; margin-bottom: 24px; }
  @media (max-width: 1099px) { .hero-main { padding-bottom: clamp(32px, 8vw, 72px); } }
  .hero-visual svg, .foot-arches svg { display: block; width: 100%; height: 100%; }
  .hero-visual svg { overflow: hidden; }
  .hero-visual path, .foot-arches path { fill: none; stroke-width: 78; }
  .hero-visual .f1 { transform: translateY(calc(var(--p, 0) * -18px)); }
  .hero-visual .f2 { transform: translateY(calc(var(--p, 0) * 46px)); }
  @media (min-width: 1100px) {
    .hero-main { grid-template-columns: 1fr minmax(300px, 34%); align-items: end; }
    .hero-main .hero-visual { order: 0; width: auto; margin: 0; align-self: stretch; min-height: 420px; }
    .hero-main h1 { font-size: clamp(64px, 8.6vw, 128px); }
    .hero-main .hero-foot { grid-column: 1 / -1; }
  }
  @media (prefers-reduced-motion: no-preference) {
    .js .hero-visual path { translate: 0 360px; transition: translate 1.4s var(--ease); }
    .js .hero-visual .f1 { transition-delay: .35s; }
    .js .hero-visual .f2 { transition-delay: .6s; }
    .js .loaded .hero-visual path { translate: 0 0; }
  }

  /* Header call to action */
  .btn-sm { padding: 9px 16px; font-size: 14px; }
  .head-cta { align-self: center; }
  @media (max-width: 720px) { .head-cta { display: none; } }

  /* Case cards: arrow by the name, the other cards step back */
  .case-meta h3 .go { margin-left: auto; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--ease); color: var(--accent); }
  .case-card:hover h3 { text-decoration: none; }
  .case-card:hover h3 .go { opacity: 1; transform: none; }
  .case-card { transition: opacity .4s var(--ease); }
  @media (hover: hover) { .cases:hover .case-card:not(:hover) { opacity: .55; } }

  /* Clay-toned stand-in screens */
  .m-phone i, .m-phone b { background: #efe6dc; }
  .m-app .m-hero { background: linear-gradient(135deg, #c98a5a, #8a4b2f); opacity: .85; }
  .m-app.v1 .m-hero { background: #e3c9b3; opacity: 1; }
  .m-app.v2 .m-hero { background: linear-gradient(160deg, #e3c9b3, #c98a5a); }
  .m-tabs b:first-child { background: #8a4b2f; }
  .m-chat i.in { background: #efe6dc; }
  .m-chat i.out { background: linear-gradient(90deg, #8a4b2f, #b06e44); }
  .m-mini .m-banner { background: linear-gradient(120deg, #c98a5a, #8a4b2f); opacity: .9; }
  .m-mini.v1 .m-banner { background: #e3c9b3; }
  .m-grid i:nth-child(1) { background: #e8d4c3; }
  .m-cta { background: #8a4b2f !important; }
  .m-main .m-chart { background: linear-gradient(to top, #e3c9b3 0 38%, transparent 38%), repeating-linear-gradient(90deg, #efe6dc 0 12%, transparent 12% 16%); }
  .m-web.v1 .m-chart { background: linear-gradient(135deg, #e8d4c3, #c98a5a); }
  .m-body .m-side i:first-child { background: #c98a5a; }

  /* Process: one horizontal line that fills as you reach it */
  .timeline { list-style: none; position: relative; display: grid; gap: 32px; margin-top: clamp(32px, 5vw, 56px); padding-left: 28px; }
  .timeline .track { position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px; background: var(--rule); }
  .timeline .fill { position: absolute; inset: 0; background: var(--accent); transform-origin: top; }
  .timeline li { position: relative; }
  .timeline .dot { position: absolute; left: -28px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1px solid var(--accent); }
  .timeline h3 { font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.025em; margin-bottom: 10px; }
  .timeline p { color: var(--muted); max-width: 38ch; }
  @media (min-width: 860px) {
    .timeline { grid-template-columns: repeat(3, 1fr); gap: 40px; padding-left: 0; padding-top: 40px; }
    .timeline .track { left: 0; right: 0; top: 5px; bottom: auto; width: auto; height: 1px; }
    .timeline .fill { transform-origin: left; }
    .timeline .dot { left: 0; top: -40px; }
  }
  @media (prefers-reduced-motion: no-preference) {
    .js .timeline .fill { transform: scaleY(0); transition: transform 1.8s var(--ease) .2s; }
    @media (min-width: 860px) { .js .timeline .fill { transform: scaleX(0); } }
    .js .in .timeline .fill { transform: none; }
    .js .timeline .dot { transition: background .4s; transition-delay: calc(var(--d, 0) * 450ms); }
    .js .in .timeline .dot { background: var(--accent); }
  }
  @media (prefers-reduced-motion: reduce) { .timeline .dot { background: var(--accent); } }
  #how .label { margin-bottom: 8px; }

  /* Prices: only real numbers are big */
  .pkg-price.word { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; margin: 28px 0 16px; padding-bottom: .32em; }

  /* Form: the label of the field you are in turns clay */
  .field:focus-within > span, .field:focus-within > legend { color: var(--accent); }
  .field input:focus, .field textarea:focus { border-bottom-color: var(--accent); }

  /* Footer: arches next to the big wordmark */
  .footer-mark { display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 28px); padding-bottom: clamp(14px, 4vw, 56px); }
  .foot-arches { width: clamp(52px, 14vw, 200px); aspect-ratio: 333 / 335; flex: none; margin-bottom: .6%; }

  /* ---- 17.11 round 3: dark theme, dark finale, arches as frames, serif voice ---- */
  @font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/cormorant-latin-500-italic.woff2) format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
  @font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/cormorant-latin-ext-500-italic.woff2) format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
  @font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/cormorant-cyrillic-500-italic.woff2) format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

  /* Dark colours: used by the dark theme and, always, by the contact finale */
  :root[data-theme="dark"], .finale {
    --paper: #151514; --ink: #ecebe6; --muted: #a3a097; --rule: #2f2e2b; --accent: #d39a6c;
    --card: #1f1e1c; --card-2: #1c1b19; --line-2: #45433f; --placeholder: #6f6c66; --danger: #e48b7c;
    --soft: #2a2927; --badge: #55524c; --wordmark: #2a2825; --header-bg: rgba(21,21,20,.85); --shadow: rgba(0,0,0,.6);
    --tint-mix: 16%; color-scheme: dark;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --paper: #151514; --ink: #ecebe6; --muted: #a3a097; --rule: #2f2e2b; --accent: #d39a6c;
      --card: #1f1e1c; --card-2: #1c1b19; --line-2: #45433f; --placeholder: #6f6c66; --danger: #e48b7c;
      --soft: #2a2927; --badge: #55524c; --wordmark: #2a2825; --header-bg: rgba(21,21,20,.85); --shadow: rgba(0,0,0,.6);
      --tint-mix: 16%; color-scheme: dark;
    }
  }
  .finale { --paper: #0f0f0e; --card: #1b1a18; --wordmark: #6a645d; background: var(--paper); color: var(--ink); padding-top: clamp(64px, 9vw, 120px); }
  .finale .label b { color: var(--ink); }
  .finale .btn-ghost { color: var(--ink); }
  body, .site-header { transition: background-color .4s, color .4s; }

  /* Pricing band stays dark in both themes, a little lighter than the dark page */
  :root[data-theme="dark"] .band { background: #1e1d1b; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { background: #1e1d1b; } }

  /* Theme switch: a half-filled circle */
  .theme-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rule); background: none; cursor: pointer; display: grid; place-items: center; padding: 0; flex: none; }
  .theme-btn span { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); transition: transform .5s var(--ease); }
  .theme-btn:hover { border-color: var(--ink); }
  .theme-btn:hover span { transform: rotate(180deg); }
  .header-in { gap: 18px; }
  .header-in nav { margin-right: 10px; }

  /* Serif italic voice: the founder quote and the closing line */
  .serif { font-family: "Cormorant", Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -0.01em; }
  blockquote.serif { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08; max-width: 22ch; }
  em.serif { font-size: 1.12em; color: var(--accent); }

  /* Arch windows: the logo shape as the frame for pictures */
  .case-visual.arch { aspect-ratio: 4 / 4.4; border-radius: 50% 50% 20px 20px / 45.5% 45.5% 20px 20px; }
  .case-visual.arch .m-phone { width: 40%; }
  .case-visual.arch .m-web { width: 78%; }
  .case-visual.big.arch { aspect-ratio: 16 / 10; border-radius: 50% 50% 24px 24px / 80% 80% 24px 24px; }
  .case-visual.big.arch .m-phone { width: 22%; } .case-visual.big.arch .m-web { width: 52%; }
  .case-visual.small.arch { aspect-ratio: 3 / 4.2; border-radius: 50% 50% 18px 18px / 35.7% 35.7% 18px 18px; }
  .case-visual.small.arch .m-phone { width: 60%; } .case-visual.small.arch .m-web { width: 78%; aspect-ratio: 3 / 4; }
  .avatar.arch { border-radius: 24px 24px 6px 6px; width: 48px; height: 56px; }
  @media (min-width: 760px) { .cases li:nth-child(even) { margin-top: clamp(60px, 10vw, 160px); } }

  /* Hero: headline, text and buttons in one column; the arches stand on the line below */
  .hero-main { padding-bottom: 0; align-items: end; }
  .hero-main .hero-text { padding-bottom: clamp(48px, 7vw, 96px); }
  .hero-main .hero-foot { display: grid; gap: 28px; justify-content: start; margin-top: clamp(32px, 4vw, 48px); }
  .hero-main .hero-actions { align-self: start; }
  .hero-visual { order: 0; width: 46%; max-width: 220px; justify-self: end; margin: -24px 0 0; }
  @media (max-width: 1099px) { .hero-main .hero-text { padding-bottom: 32px; } }
  @media (min-width: 1100px) {
    .hero-main { grid-template-columns: 1fr minmax(320px, 36%); }
    .hero-main .hero-visual { width: auto; max-width: none; margin: 0; align-self: end; min-height: 0; height: min(600px, 62vh); }
    .hero-main h1 { font-size: clamp(64px, 6.8vw, 104px); max-width: none; }
    .hero-main .hero-text { padding-top: 8px; }
  }

  /* The right finger "presses" when you go for the main button */
  @keyframes press { 0% { translate: 0 0; } 30% { translate: 0 30px; } 62% { translate: 0 -8px; } 100% { translate: 0 0; } }
  @media (prefers-reduced-motion: no-preference) { .hero-visual.tap .f2 { animation: press .7s var(--ease); } }

  /* Header button: outlined while the hero is on screen, filled after */
  .head-cta { transition: background .3s, color .3s, border-color .3s; border: 1px solid var(--ink); }
  .site-header:not(.past-hero) .head-cta { background: transparent; color: var(--ink); border-color: var(--rule); }
  .site-header:not(.past-hero) .head-cta:hover { border-color: var(--ink); }

  /* Card to case page: the picture morphs into the case hero */
  @media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
    ::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .7, .1, 1); }
  }
  .site-header { view-transition-name: site-header; }

  /* ---- 17.11 round 4: services in arches, fan of screens ---- */
  .svc { list-style: none; display: grid; gap: clamp(24px, 3vw, 40px) 16px; }
  @media (min-width: 600px) { .svc { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1040px) { .svc { grid-template-columns: repeat(4, 1fr); } }
  .svc li { display: grid; gap: 8px; align-content: start; }
  .svc-arch { aspect-ratio: 4 / 4.6; border-radius: 50% 50% 18px 18px / 43.5% 43.5% 18px 18px; margin-bottom: 14px;
    background: color-mix(in srgb, #efe2d5 var(--tint-mix), var(--card)); display: grid; place-items: center; transition: transform .6s var(--ease), background .4s; }
  .svc-arch svg { width: 34%; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
  @media (hover: hover) {
    .svc li:hover .svc-arch { transform: translateY(-6px); }
    .svc li:hover .svc-arch svg { transform: scale(1.08); }
  }
  .svc b { font-weight: 500; font-size: 20px; letter-spacing: -0.015em; }
  .svc span { color: var(--muted); font-size: 16px; max-width: 30ch; }

  .fan { display: flex; justify-content: center; align-items: flex-end; width: 100%; }
  .fan > * { flex: none; position: relative; }
  .fan > :nth-child(1) { transform: rotate(-7deg) translate(18%, 7%); }
  .fan > :nth-child(2) { z-index: 2; }
  .fan > :nth-child(3) { transform: rotate(7deg) translate(-18%, 7%); }
  .case-visual.big .fan .m-phone { width: 20%; }
  .case-visual.big .fan .m-web { width: 34%; }
  .fan > .m-web:nth-child(1) { transform: rotate(-6deg) translate(26%, 9%); }
  .fan > .m-web:nth-child(3) { transform: rotate(6deg) translate(-26%, 9%); }
  .case-visual.big .fan > :nth-child(odd) { filter: saturate(.85) brightness(.98); }
  @media (prefers-reduced-motion: no-preference) {
    .js .case-hero ~ .case-visual .fan > :nth-child(odd) { transition: transform 1.2s var(--ease) .35s; }
    .js body:not(.loaded) .fan > :nth-child(1), .js body:not(.loaded) .fan > :nth-child(3) { transform: none; }
  }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .brief button[disabled] { opacity: .6; cursor: progress; }
  /* Very narrow phones: keep logo, menu, theme and language on one line */
  @media (max-width: 380px) {
    .header-in { gap: 10px; }
    .header-in nav { margin-right: 0; }
    .menu-btn { padding: 7px 12px; }
    .lang { padding: 5px 8px; }
  }
