:root {
  --paper: #f3efe6;
  --paper-2: #ebe5d8;
  --ink: #1b1915;
  --soft: #5f594f;
  --line: #d6cebd;
  --accent: #d24a1f;
  --marker: #f4d75e;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
em { font-style: italic; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: var(--paper); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--marker); }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; gap: .6em; padding: 15px 24px; background: var(--ink); color: var(--paper); border: 0; border-radius: 4px;
  font: 500 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .2s; }
.btn span { transition: transform .2s; }
.btn:hover { background: var(--accent); }
.btn:hover span { transform: translateX(4px); }
.link { color: var(--soft); text-underline-offset: 4px; }
.link:hover { color: var(--ink); }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(243, 239, 230, .92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-scrolled { border-color: var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 1.55rem/1 var(--serif); }
.logo__mark { width: 22px; height: 22px; fill: var(--accent); transition: transform .6s; }
.logo:hover .logo__mark { transform: rotate(90deg); }
.menu { display: flex; align-items: center; gap: 30px; font-size: .95rem; }
.menu a { text-decoration: none; }
.menu a:hover { text-decoration: underline; text-underline-offset: 5px; }
.menu__wa { padding: 8px 14px; border: 1px solid var(--ink); border-radius: 99px; }
.menu__wa:hover { background: var(--ink); color: var(--paper); text-decoration: none !important; }
.burger { display: none; background: none; border: 1px solid var(--ink); border-radius: 99px; padding: 7px 14px; font: 500 .9rem var(--sans); color: var(--ink); cursor: pointer; }

/* Hero */
.hero { position: relative; padding: 90px 0 110px; }
.kicker, .meta, .note__label, .services__n, .contact__list dt { font: 500 .78rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--soft); }
.kicker { margin-bottom: 28px; }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 6.6rem); max-width: 13.5em; max-width: min(13.5em, calc(100% - 270px)); text-wrap: balance; }
@media (max-width: 1060px) { .hero h1 { max-width: 13.5em; } }
.scribble { position: relative; white-space: nowrap; color: var(--accent); }
.scribble svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.scribble path { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.1s .4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__foot { display: grid; grid-template-columns: minmax(0, 520px) auto; gap: 48px; align-items: end; justify-content: space-between; margin-top: 56px; }
.hero__lead { font-size: 1.15rem; color: var(--soft); margin: 0; }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.note { position: absolute; right: 0; top: 96px; width: 230px; padding: 18px 20px 16px; background: #fffdf6; border: 1px solid var(--line);
  box-shadow: 3px 4px 0 var(--line); transform: rotate(2.2deg); font-size: .95rem; line-height: 1.45; }
.note::before { content: ""; position: absolute; top: -11px; left: 50%; width: 70px; height: 22px; margin-left: -35px; background: rgba(244, 215, 94, .75); transform: rotate(-3deg); }
.note__label { margin-bottom: 6px; }
.note p:last-child { margin: 0; }

/* Sections */
.section { padding: 110px 0; }
.section--rule { border-top: 1px solid var(--line); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.head h2, .how h2, .tools h2 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.head p { max-width: 380px; color: var(--soft); margin: 0; }

/* Work */
.project { display: grid; gap: 22px; }
.project--wide { grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.project-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.project__art { position: relative; border-radius: 6px; overflow: hidden; display: flex; justify-content: center; align-items: center; gap: 22px; padding: 44px 28px; min-height: 420px; }
.project--wide .project__art { min-height: 540px; }
.art--navy { background: #1d2438; }
.art--rose { background: #eccdc2; padding: 40px 32px; }
.art--sun { background: #e9d27a; }
.phone { width: 34%; max-width: 230px; border-radius: 22px; border: 6px solid #0d0f14; box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); }
.phone--sm { width: 38%; border-radius: 18px; }
.phone--tilt { transform: rotate(4deg) translateY(18px); }
.project:hover .phone--tilt { transform: rotate(1deg) translateY(10px); }
.phone { transition: transform .5s; }
.browser { margin: 0; width: 100%; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 18px 40px -20px rgba(60, 20, 10, .5); transform: rotate(-1.2deg); transition: transform .5s; }
.project:hover .browser { transform: rotate(0); }
.browser__bar { display: flex; gap: 6px; padding: 9px 12px; background: #f1ede6; border-bottom: 1px solid #e2dbcf; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3cabb; }
.project__text h3 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 6px 0 12px; }
.project__text p { color: var(--soft); max-width: 46ch; }
.project__text .meta { margin: 0; }
.stack { font: .85rem var(--mono); color: var(--ink) !important; }

/* Services */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.services li { display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; padding: 30px 0; border-top: 1px solid var(--line); }
.services__n { grid-row: span 2; padding-top: 10px; }
.services h3 { font-size: 1.95rem; margin-bottom: 8px; }
.services p { margin: 0; color: var(--soft); }
.services li:hover h3 { color: var(--accent); }

/* How (dark band) */
.section--ink { background: var(--ink); color: var(--paper); }
.how { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; }
.how__aside { color: #b6ae9f; margin-top: 22px; max-width: 34ch; font-size: 1.05rem; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 58px; margin-bottom: 26px; border-bottom: 1px solid #39352d; color: #cfc8ba; }
.steps li:last-child { border: 0; margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -6px; font: italic 2.2rem/1 var(--serif); color: var(--marker); }
.steps b { color: var(--paper); font-weight: 600; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 90px; padding-top: 44px; border-top: 1px solid #39352d; }
.promises h3 { font-size: 1.7rem; margin-bottom: 8px; }
.promises p { color: #b6ae9f; margin: 0; }

/* Tools */
.tools { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.tools p { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; margin: 0; }
.hl { background: linear-gradient(transparent 55%, var(--marker) 55%, var(--marker) 92%, transparent 92%); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact__title { font-size: clamp(2.6rem, 5.6vw, 4.6rem); margin-bottom: 24px; }
.contact__title em { color: var(--accent); }
.contact > div > p { color: var(--soft); max-width: 40ch; }
.contact__list { display: grid; grid-template-columns: 110px 1fr; gap: 14px 12px; margin: 36px 0 0; }
.contact__list dt { padding-top: 4px; }
.contact__list dd { margin: 0; font-size: 1.1rem; }
.contact__list a { text-underline-offset: 4px; text-decoration-color: var(--accent); }
.contact__list a:hover { color: var(--accent); }
.form { display: grid; gap: 26px; align-content: start; }
.form label { display: grid; gap: 6px; font-size: .9rem; color: var(--soft); }
.form input, .form select, .form textarea { width: 100%; padding: 10px 0; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; background: transparent;
  color: var(--ink); font: 1.1rem var(--sans); resize: vertical; appearance: none; }
.form select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b1915' stroke-width='1.6'/%3E%3C/svg%3E") right 4px center no-repeat; }
.form textarea { border: 1.5px solid var(--ink); padding: 12px; border-radius: 4px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form ::placeholder { color: #a29a8b; }
.form .btn { justify-self: start; }
.form__status { margin: 0; min-height: 1.4em; }
.form__status.ok { color: #2f7a3d; }
.form__status.err { color: var(--accent); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding: 70px 0 34px; overflow: hidden; }
.foot__big { font: clamp(4rem, 15vw, 13rem)/.9 var(--serif); letter-spacing: -.03em; margin: 0 0 40px; white-space: nowrap; }
.foot__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 22px; border-top: 1px solid #39352d; font-size: .92rem; color: #b6ae9f; }
.foot__row p { margin: 0; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--paper); text-decoration: underline; }

/* Simple pages */
.page { padding: 70px 0 100px; max-width: 720px; }
.page h1 { font-size: clamp(2.6rem, 6vw, 4rem); margin-bottom: 20px; }
.page h2 { font-size: 1.8rem; margin: 1.6em 0 .4em; }
.page p { color: var(--soft); }

/* Responsive */
@media (max-width: 1060px) {
  .note { position: static; transform: rotate(1.5deg); margin-top: 48px; }
  .br-lg { display: none; }
}
@media (max-width: 920px) {
  .project--wide, .project-row, .how, .tools, .contact, .services { grid-template-columns: 1fr; }
  .project--wide { gap: 24px; }
  .project-row { gap: 64px; }
  .hero__foot { grid-template-columns: 1fr; gap: 32px; }
  .promises { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }
  .how, .tools, .contact { gap: 40px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { width: min(1200px, 100% - 36px); }
  .burger { display: block; }
  .menu { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 18px 24px;
    background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .top.is-open .menu { display: flex; }
  .menu a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font: 1.7rem var(--serif); }
  .menu .menu__wa { width: auto; margin-top: 18px; padding: 8px 16px; font: 500 1rem var(--sans); border-bottom: 1px solid var(--ink); }
  .hero { padding: 56px 0 80px; }
  .section { padding: 80px 0; }
  .project__art, .project--wide .project__art { min-height: 0; padding: 32px 18px; }
  .phone { width: 42%; border-width: 4px; border-radius: 16px; }
  .head { margin-bottom: 36px; }
  .contact__list { grid-template-columns: 90px 1fr; }
  .form .btn { justify-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scribble path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
