/* joannakrol.studio — "szkicownik pracowni" (studio sketchbook).
   Paper, graphite and the wine accent of the original site, the pale sky blue of the
   house ("domek") drawings, and photos framed in a house silhouette. Self-hosted fonts:
   Jost (text), Sacramento (handwritten accents), Playfair Display SC (labels, numbers). */

@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/7cb1c657-a2dc-4f05-8699-95f6f5db2ffa/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: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/5bf25996-6b69-42df-b930-4d05e3555f88/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: 'Jost'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/f3f86135-9194-40bf-b77b-e7b9943fee64/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: 'Jost'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/4498af51-86e8-4f17-95f0-edec5bd71388/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: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/3f4b07de-5afd-4a69-8692-6f7c3f14960c/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: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/1afa688e-f6a3-4e0f-a14d-1c75e6ff1262/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: 'Playfair Display SC'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/a6bbdede-dd3e-4fdb-a5c6-09ce5a2ceedf/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: 'Playfair Display SC'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/c207077f-f07d-4605-8337-d2f70486c990/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: 'Sacramento'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/sacramento-v17/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: 'Sacramento'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/sacramento-v17/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; }

:root {
  --paper: #f4f4f3;
  --paper-deep: #ebe9e4;
  --card: #fbfbfa;
  --ink: #2b2426;
  --ink-soft: #5f5557;
  --wine: #783a3a;
  --wine-deep: #5c2b2c;
  --sky: #dde5eb;
  --sky-deep: #a9c1d2;
  --line: rgba(120, 58, 58, .22);
  --line-soft: rgba(43, 36, 38, .1);
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --script: 'Sacramento', 'Brush Script MT', cursive;
  --sc: 'Playfair Display SC', Georgia, serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 72px;
  --house: polygon(50% 0, 100% 17%, 100% 100%, 0 100%, 0 17%);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans); letter-spacing: .005em;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--wine-deep); }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sky); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.4rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.1vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); line-height: 1.25; }
h4 { font-size: 1.1rem; font-weight: 500; line-height: 1.35; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { font-weight: 500; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--wine); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--sky { background: var(--sky); }
.section--deep { background: var(--paper-deep); }
.section--wine { background: var(--wine); color: var(--paper); }
.section--wine h2, .section--wine h3, .section--wine a:not(.btn) { color: var(--paper); }
.section--wine .btn--ghost { color: var(--paper); border-color: rgba(244, 244, 243, .5); }
.section--wine .btn--ghost:hover { background: var(--paper); color: var(--wine); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.grid-2 { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2--wide-left { grid-template-columns: 1.15fr .85fr; } .grid-2--wide-right { grid-template-columns: .85fr 1.15fr; } }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* ------------------------------------------------------- type helpers */
.eyebrow { font: 400 .95rem/1.2 var(--sc); letter-spacing: .08em; color: var(--wine); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.center .eyebrow::after { content: ''; width: 28px; height: 1px; background: currentColor; }
.script { font-family: var(--script); font-weight: 400; color: var(--wine); letter-spacing: 0; line-height: 1; }
.kicker { display: block; font-family: var(--script); color: var(--wine); font-size: clamp(2.1rem, 1.6rem + 2vw, 3.2rem); line-height: 1; margin-bottom: .1em; letter-spacing: 0; }
.lead { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.55; color: var(--ink-soft); max-width: 40em; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.mark { position: relative; white-space: nowrap; }
/* anchored to the top: Jost's content box (1.45em) is taller than the 1.12 line pitch, so a bottom offset
   would run into the next line whenever the marked word is not on the heading's last line */
.mark svg { position: absolute; left: -2%; top: 1.12em; width: 104%; height: .45em; overflow: visible; color: var(--wine); pointer-events: none; }
.mark svg path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.4s .5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border: 1px solid var(--wine); border-radius: 2px; background: var(--wine); color: var(--paper); font: 500 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--wine); }
.btn--ghost:hover { background: var(--wine); color: var(--paper); }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--wine); }
.btn--light:hover { background: var(--sky); border-color: var(--sky); color: var(--wine-deep); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; letter-spacing: .02em; }
.link-arrow::after { content: '→'; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* -------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 244, 243, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; }
.brand b { font-weight: 500; font-size: 1.05rem; letter-spacing: .2em; text-transform: uppercase; }
.brand span { font-family: var(--script); color: var(--wine); font-size: 1.35rem; margin-top: 2px; letter-spacing: 0; }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: clamp(14px, 2vw, 30px); margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-size: .98rem; letter-spacing: .03em; padding: 6px 0; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--wine); }
.header-cta { display: none; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 0 10px 10px; font: 500 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.menu-btn i { position: relative; width: 22px; height: 10px; }
.menu-btn i::before, .menu-btn i::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn i::before { top: 0; } .menu-btn i::after { top: 8px; }
.menu-open .menu-btn i::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-btn i::after { top: 4px; transform: rotate(-45deg); }
@media (min-width: 1000px) {
  .nav, .header-cta { display: flex; }
  .menu-btn { display: none; }
  .header-cta { min-height: 42px; padding: 10px 20px; }
}
.mobile-nav { position: fixed; inset: var(--header) 0 0; z-index: 49; background: var(--paper); padding: 32px var(--gutter) 120px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s; }
.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease); }
.menu-open { overflow: hidden; }
.mobile-nav ul { list-style: none; margin: 0 0 32px; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav li a { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; font-size: 1.9rem; color: var(--ink); text-decoration: none; }
.mobile-nav li a span { font-family: var(--sc); font-size: .9rem; color: var(--wine); }
.mobile-nav .contact-lines { color: var(--ink-soft); }
@media (min-width: 1000px) { .mobile-nav { display: none; } }

/* mobile sticky call to action */
/* hidden = visibility: hidden too, so its links leave the Tab order (switched after the slide-out, like .mobile-nav) */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; gap: 8px; transform: translateY(140%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; }
.sticky-cta.show { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
.sticky-cta .btn { flex: 1; box-shadow: 0 10px 30px rgba(43, 36, 38, .18); }
.sticky-cta .btn--light { flex: 0 0 56px; padding: 0; border-color: var(--line); }
@media (min-width: 1000px) { .sticky-cta { display: none; } }

/* ---------------------------------------------------------- house frame */
.house { position: relative; }
.house__img { clip-path: var(--house); overflow: hidden; background: var(--paper-deep); }
.house__img img { width: 100%; height: 100%; object-fit: cover; }
.house__outline { position: absolute; inset: 0; transform: translate(clamp(8px, 1.5vw, 18px), clamp(8px, 1.5vw, 18px)); z-index: -1; color: var(--sky-deep); }
.house__outline svg { width: 100%; height: 100%; overflow: visible; }
.house__outline path { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.house-icon { width: 34px; height: 44px; color: var(--sky-deep); flex: none; }
.house-icon path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px); overflow: hidden; }
.hero .grid-2 { align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero__script { font-family: var(--script); color: var(--wine); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.05; margin: 32px 0 24px; }
.hero__media { position: relative; max-width: 520px; margin-inline: auto; width: 100%; }
.hero__media .house__img { aspect-ratio: 4 / 5.2; }
.hero__sketch { position: absolute; width: 38%; left: -14%; bottom: -8%; background: var(--card); padding: 8px 8px 28px; box-shadow: 0 18px 40px rgba(43, 36, 38, .16); transform: rotate(-5deg); }
.hero__sketch figcaption { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-family: var(--script); color: var(--wine); font-size: 1.25rem; line-height: 1; }
.hero__note { position: absolute; right: -2%; top: 8%; font-family: var(--script); font-size: 1.6rem; color: var(--wine); transform: rotate(6deg); display: none; }
.hero__note svg { width: 60px; height: 40px; display: block; margin-left: -30px; color: var(--wine); }
.hero__note svg path { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
@media (min-width: 1100px) { .hero__note { display: block; } }
@media (max-width: 899px) { .hero__media { max-width: 420px; margin-top: 16px; } .hero__sketch { left: -4%; width: 40%; } }
.definition { border-left: 2px solid var(--sky-deep); padding-left: 18px; color: var(--ink-soft); max-width: 36em; }

/* ---------------------------------------------------------- trust strip */
.trust { border-block: 1px solid var(--line); padding-block: 22px; }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; }
.trust li { font: 400 1rem/1.3 var(--sc); letter-spacing: .05em; color: var(--ink-soft); }
.trust li + li::before { content: '·'; color: var(--wine); margin: 0 16px; }
@media (max-width: 760px) { .trust ul { gap: 8px 22px; } .trust li + li::before { content: none; } }
.trust b { font-weight: 400; color: var(--wine); }

/* ------------------------------------------------------------- services */
.cards { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .cards--2 { grid-template-columns: 1fr 1fr; } .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; background: var(--card); border: 1px solid var(--line-soft); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.card h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: .2em; }
.card .price { font: 400 1.25rem/1.2 var(--sc); color: var(--wine); margin: 0 0 18px; letter-spacing: .03em; }
.card .btns { margin-top: auto; padding-top: 24px; }
.card--sky { background: var(--sky); border-color: transparent; }
.ticks { list-style: none; margin: 0 0 8px; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 32px; border-top: 1px solid var(--line-soft); }
.ticks li:first-child { border-top: 0; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 14px; height: 17px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 34'%3E%3Cpath d='M2 12 14 2l12 10v20H2z' fill='none' stroke='%23783a3a' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* --------------------------------------------------------------- tiles */
.tiles { display: grid; gap: clamp(16px, 2.4vw, 32px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .tiles--4 { grid-template-columns: repeat(4, 1fr); } .tiles--3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .tiles--3 { grid-template-columns: 1fr; } }
.tile { text-decoration: none; color: var(--ink); display: block; }
.tile__img { overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-deep); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover .tile__img img { transform: scale(1.04); }
.tile--house .tile__img { clip-path: var(--house); }
.tile h3 { font-size: 1.15rem; margin: 14px 0 2px; transition: color .2s; }
.tile:hover h3 { color: var(--wine); }
.tile p { font-size: .92rem; color: var(--ink-soft); margin: 0; }
.tile .num { font: 400 .9rem/1 var(--sc); color: var(--wine); letter-spacing: .06em; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin: 0; }
.section-head .lead { margin: 0; }

/* ---------------------------------------------------------------- steps */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 0 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font: 400 1.9rem/1 var(--sc); color: var(--wine); }
.steps h3 { font-size: 1.2rem; margin: 2px 0 6px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ------------------------------------------------------------- figures */
.frame { background: var(--card); padding: 10px; box-shadow: 0 14px 40px rgba(43, 36, 38, .1); }
.frame--tilt { transform: rotate(-1.5deg); }
.frame figcaption, .caption { font-family: var(--script); color: var(--wine); font-size: 1.5rem; text-align: center; padding-top: 6px; line-height: 1.1; }
.photo { overflow: hidden; background: var(--paper-deep); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ratio-45 { aspect-ratio: 4 / 5; } .ratio-34 { aspect-ratio: 3 / 4; } .ratio-32 { aspect-ratio: 3 / 2; } .ratio-1 { aspect-ratio: 1; }
.duo { position: relative; padding-bottom: 12%; }
.duo .photo:first-child { width: 78%; }
.duo .photo + .photo, .duo .frame { position: absolute; right: 0; bottom: 0; width: 46%; }

/* --------------------------------------------------------------- values */
.values { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
@media (min-width: 700px) { .values { grid-template-columns: 1fr 1fr; } .values > div:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 32px; } .values > div:nth-child(even) { padding-left: 32px; } }
.values > div { padding-block: 26px; border-bottom: 1px solid var(--line); }
.values h3 { font: 400 1.2rem/1.2 var(--sc); letter-spacing: .06em; color: var(--wine); margin-bottom: 8px; }
.values p { margin: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------- quotes */
.quotes { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; background: var(--card); padding: 34px 30px 28px; position: relative; display: flex; flex-direction: column; }
.quote::before { content: '“'; position: absolute; top: -6px; left: 22px; font: 400 5rem/1 var(--sc); color: var(--sky-deep); }
.quote blockquote { margin: 18px 0 20px; font-size: 1.02rem; line-height: 1.6; }
.quote blockquote p:last-child { margin: 0; }
.quote figcaption { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.quote figcaption b { font-weight: 500; display: block; }
.quote figcaption span { color: var(--ink-soft); font-size: .9rem; }
.quote--big { padding: clamp(32px, 5vw, 64px); }
.quote--big blockquote { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
.pull { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); line-height: 1.4; margin: 0; }

/* ------------------------------------------------------------------ faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 14px; height: 14px; border-right: 1.5px solid var(--wine); border-bottom: 1.5px solid var(--wine); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--wine); }
.faq .answer { padding: 0 0 24px; max-width: 46em; color: var(--ink-soft); }
.faq .answer p:last-child { margin: 0; }

/* ------------------------------------------------------------ cta band */
.cta-band { position: relative; overflow: hidden; }
.cta-band .grid-2 { align-items: stretch; }
.cta-band .photo { min-height: 320px; }
.cta-band__text { display: flex; flex-direction: column; justify-content: center; padding-block: clamp(40px, 6vw, 80px); }
.cta-band .kicker { color: var(--sky); }

/* ---------------------------------------------------------------- price */
.prices { display: grid; gap: 0; grid-template-columns: 1fr; border: 1px solid var(--line); background: var(--card); }
@media (min-width: 860px) { .prices { grid-template-columns: repeat(3, 1fr); } .prices > div + div { border-left: 1px solid var(--line); } }
@media (max-width: 859px) { .prices > div + div { border-top: 1px solid var(--line); } }
.prices > div { padding: 32px 28px; display: flex; flex-direction: column; }
.prices h3 { font-size: 1.35rem; margin-bottom: 4px; }
.prices .amount { font: 400 2.6rem/1 var(--sc); color: var(--wine); margin: 10px 0 4px; }
.prices .amount small { font-size: .95rem; letter-spacing: .04em; }
.prices .dur { font-size: .9rem; color: var(--ink-soft); margin-bottom: 16px; letter-spacing: .04em; }
.prices p { color: var(--ink-soft); }
.prices .featured { background: var(--sky); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--card); }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compare thead th { font: 400 .95rem/1.2 var(--sc); color: var(--wine); letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.compare tbody th { font-weight: 500; }
.compare td.num { white-space: nowrap; font-family: var(--sc); color: var(--wine); }

/* ---------------------------------------------------------------- tabs-ish anchors */
.subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .95rem; background: var(--card); transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--wine); color: var(--wine); }
.chip--static { cursor: default; }
.chip--static:hover { border-color: var(--line); color: var(--ink); }

/* ---------------------------------------------------------- page header */
.page-head { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px); }
.page-head h1 { max-width: 16em; }
.crumbs { font-size: .88rem; color: var(--ink-soft); margin-bottom: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--wine); }

/* -------------------------------------------------------------- gallery */
.gallery { columns: 2; column-gap: clamp(10px, 1.6vw, 20px); }
@media (min-width: 900px) { .gallery { columns: 3; } .gallery--2 { columns: 2; } }
@media (max-width: 480px) { .gallery { columns: 1; } }
.gallery a { display: block; break-inside: avoid; margin-bottom: clamp(10px, 1.6vw, 20px); cursor: zoom-in; overflow: hidden; background: var(--paper-deep); }
.gallery img { width: 100%; transition: transform .6s var(--ease), opacity .3s; }
.gallery a:hover img { transform: scale(1.025); }
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(28, 22, 24, .94); color: var(--paper); }
.lightbox::backdrop { background: rgba(28, 22, 24, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--paper); cursor: pointer; font: 400 1rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 16px; }
.lightbox .lb-close { top: 8px; right: 8px; }
.lightbox .lb-prev, .lightbox .lb-next { top: 50%; transform: translateY(-50%); font-size: 2.2rem; }
.lightbox .lb-prev { left: 4px; } .lightbox .lb-next { right: 4px; }
.lightbox .lb-count { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font: 400 .95rem/1 var(--sc); letter-spacing: .08em; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 28px; }
.pager a { text-decoration: none; color: var(--ink); display: block; }
.pager a span { display: block; font: 400 .9rem/1.2 var(--sc); color: var(--wine); letter-spacing: .06em; margin-bottom: 6px; }
.pager a:hover { color: var(--wine); }
.pager .next { text-align: right; grid-column: 2; }

/* ------------------------------------------------------------ timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--wine); }
.timeline li:last-child { padding-bottom: 0; }
.timeline b { display: block; font-weight: 500; }
.timeline span { color: var(--ink-soft); font-size: .95rem; }

/* --------------------------------------------------------- publications */
.pubs { display: grid; gap: clamp(48px, 6vw, 88px); }
.pub { display: grid; gap: 24px 48px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .pub { grid-template-columns: 5fr 7fr; } .pub:nth-child(even) .pub__media { order: 2; } }
.pub__media .photo { aspect-ratio: 4 / 3; }
.pub__media .photo img { object-fit: contain; background: var(--paper-deep); }
.pub .where { font: 400 .95rem/1.2 var(--sc); color: var(--wine); letter-spacing: .06em; margin-bottom: 10px; }
.pub h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.pub .gallery { margin-top: 24px; columns: 3; }
@media (max-width: 480px) { .pub .gallery { columns: 2; } }
.press-list { list-style: none; margin: 0; padding: 0; }
.press-list li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.press-list li span { color: var(--ink-soft); font-size: .92rem; white-space: nowrap; }

/* ----------------------------------------------------------------- blog */
.posts { display: grid; gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); grid-template-columns: 1fr; }
@media (min-width: 700px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .posts { grid-template-columns: repeat(3, 1fr); } }
.post-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.post-card .photo { aspect-ratio: 4 / 3; margin-bottom: 16px; }
.post-card .photo img { transition: transform .8s var(--ease); }
.post-card:hover .photo img { transform: scale(1.04); }
.post-card .photo--empty { display: grid; place-items: center; background: var(--sky); }
.post-card .photo--empty .house-icon { width: 54px; height: 70px; color: var(--paper); }
.post-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.post-card:hover h3 { color: var(--wine); }
.post-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.meta { font: 400 .9rem/1.3 var(--sc); color: var(--wine); letter-spacing: .05em; margin-bottom: 8px; }
.post-feature { display: grid; gap: 24px 56px; grid-template-columns: 1fr; text-decoration: none; color: var(--ink); align-items: center; }
@media (min-width: 900px) { .post-feature { grid-template-columns: 1.1fr .9fr; } }
.post-feature .photo { aspect-ratio: 3 / 2; }
.post-feature:hover h2 { color: var(--wine); }
.prose { font-size: 1.1rem; line-height: 1.75; }
.prose > * { max-width: 680px; margin-inline: auto; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.8em; }
.prose h2 { font-size: 1.9rem; } .prose h3 { font-size: 1.5rem; } .prose h4 { font-size: 1.2rem; }
.prose figure { margin: 2em auto; max-width: 860px; }
.prose figure img { margin-inline: auto; }
.prose figure img + img { margin-top: 12px; }
.prose figcaption { font-size: .9rem; color: var(--ink-soft); text-align: center; margin-top: 10px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { border-left: 2px solid var(--sky-deep); margin-left: auto; padding-left: 20px; color: var(--ink-soft); }
.post-end { margin-top: 64px; }
.note { background: var(--sky); padding: clamp(28px, 4vw, 44px); display: grid; gap: 18px 32px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 760px) { .note { grid-template-columns: auto 1fr auto; } }
.note .house-icon { width: 46px; height: 58px; color: var(--wine); }
.note h2 { font-size: 1.5rem; margin: 0 0 4px; }
.note p { margin: 0; color: var(--ink-soft); }

/* ------------------------------------------------------------- contact */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
.contact-list li span { font: 400 .95rem/1.2 var(--sc); color: var(--wine); letter-spacing: .06em; }
.contact-list a { font-size: 1.25rem; text-decoration: none; color: var(--ink); }
.contact-list a:hover { color: var(--wine); }
.form { display: grid; gap: 18px; grid-template-columns: 1fr; background: var(--card); padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line-soft); }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line-soft); border-bottom-color: var(--line); border-radius: 2px; padding: 12px 14px; min-height: 48px; transition: border-color .2s, background .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine); background: #fff; }
.form .hint { font-size: .85rem; color: var(--ink-soft); margin: 0; }
.services-pick { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.services-pick legend { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; padding: 0; }
.services-pick label { position: relative; }
.services-pick input { position: absolute; opacity: 0; }
.services-pick span { display: inline-flex; min-height: 42px; align-items: center; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .95rem; background: var(--paper); transition: background .2s, color .2s, border-color .2s; }
.services-pick input:checked + span { background: var(--wine); color: var(--paper); border-color: var(--wine); }
.services-pick input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }

/* --------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #d9d2d3; padding-block: clamp(56px, 7vw, 96px) 32px; }
.site-footer a { color: #f4f4f3; text-decoration: none; }
.site-footer a:hover { color: var(--sky); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .script { color: var(--sky); font-size: 2.6rem; display: block; margin-bottom: 10px; }
.site-footer h2 { color: #fff; font-size: 1.6rem; margin-bottom: 10px; }
.site-footer h3 { font: 400 .95rem/1.2 var(--sc); letter-spacing: .08em; color: var(--sky-deep); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.site-footer address { font-style: normal; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #a99fa1; }
@media (max-width: 999px) { .site-footer { padding-bottom: 96px; } }

/* --------------------------------------------------------------- reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .house-icon { width: 80px; height: 100px; margin: 0 auto 20px; }

/* realizacje index: 4 columns, every fifth project large, on the left (no dense packing: tiles stay in number order) */
.tiles--feature { grid-template-columns: repeat(2, 1fr); }
.tiles--feature .tile:nth-child(5n+1) { grid-column: span 2; }
.tiles--feature .tile:nth-child(5n+1) .tile__img { aspect-ratio: 4 / 3.4; }
@media (min-width: 900px) {
  .tiles--feature { grid-template-columns: repeat(4, 1fr); }
  .tiles--feature .tile:nth-child(5n+1) { grid-row: span 2; display: flex; flex-direction: column; }
  .tiles--feature .tile:nth-child(5n+1) .tile__img { flex: 1; aspect-ratio: auto; min-height: 0; }
}
.quotes--masonry { display: block; columns: 1; column-gap: 24px; }
@media (min-width: 900px) { .quotes--masonry { columns: 2; } }
.quotes--masonry .quote { break-inside: avoid; margin-bottom: 24px; }
