/* =====================================================================
   Degimaitė · theme styles
   Colours, fonts and the type scale come from theme.json (Appearance → Editor → Styles). This file adds the shapes
   that a block theme cannot describe there: the header, the bands, the block styles Ieva picks in the editor sidebar
   and the sections built from core blocks. Class names on blocks come from block styles (is-style-*) or from the
   patterns ("Advanced → Additional CSS class"); nothing here depends on hand-written HTML.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --rust: var(--wp--preset--color--rust, #A8522A);
  --rust-deep: var(--wp--preset--color--rust-deep, #86401F);
  --ochre: var(--wp--preset--color--ochre, #D9A441);
  --ink: var(--wp--preset--color--ink, #171412);
  --white: var(--wp--preset--color--white, #FFFFFF);
  --fog: var(--wp--preset--color--fog, #F3F0EC);
  --grey: var(--wp--preset--color--grey, #6A635E);
  --line: var(--wp--preset--color--line, #E2DDD7);
  --display: var(--wp--preset--font-family--display, "Bricolage Grotesque", "Arial Narrow", Arial, sans-serif);
  --body: var(--wp--preset--font-family--body, "Instrument Sans", "Helvetica Neue", Arial, sans-serif);
  --hand: var(--wp--preset--font-family--hand, "Caveat", "Segoe Print", cursive);
  --dg-gutter: clamp(20px, 4vw, 60px);
  --dg-max: 1380px;
  --dg-hdr: 75px;
  --dg-zone: clamp(76px, 8.4vw, 132px);
  --dg-t-small: 14.5px;
  --dg-t-body: 17px;
  --dg-t-lead: clamp(19px, 1.45vw, 21px);
  --dg-t-h3: clamp(26px, 2.3vw, 36px);
  --dg-t-h2: clamp(42px, 4.8vw, 76px);
  --dg-t-huge: clamp(56px, 8.6vw, 150px);
  --dg-dark-line: #3A3430;
  --dg-ease: cubic-bezier(.2, .7, .2, 1);
}
@media (max-width: 640px) {
  :root { --dg-gutter: 20px; --dg-hdr: 61px; --dg-zone: 64px; --dg-t-small: 14px; --dg-t-body: 16px; --dg-t-lead: 18.5px; --dg-t-h3: 25px; --dg-t-h2: clamp(30px, 8.6vw, 40px); }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--dg-hdr); }
html, body { overflow-x: clip; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
h1, h2, h3, h4, h5, h6, .wp-block-site-title { font-stretch: 75%; text-wrap: balance; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
p { text-wrap: pretty; }
.screen-reader-text:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) { html { -webkit-text-size-adjust: 100%; } body { line-height: 1.6; -webkit-tap-highlight-color: transparent; } }

/* The Lithuanian Ė with a rust dot (site title, the big name): the render filter wraps the letter as .e */
.e { position: relative; display: inline-block; }
.e::before { content: ""; position: absolute; left: 50%; top: -.07em; width: .135em; height: .135em; border-radius: 50%; background: var(--rust); transform: translateX(-46%); }

/* Display type: condensed caps (headings use it by default; .is-display gives it to a paragraph) */
.is-display { font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; letter-spacing: -.005em; line-height: .88; }

/* =====================================================================
   Header
   ===================================================================== */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
:root .site-header__bar { max-width: var(--dg-max); margin-inline: auto; height: 74px; padding-inline: var(--dg-gutter); gap: 20px; }
.site-header .wp-block-site-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 23px; line-height: .88; letter-spacing: -.005em; text-transform: uppercase; white-space: nowrap; }
.site-header .wp-block-site-title a { display: inline-flex; align-items: center; min-height: 44px; padding-top: 6px; text-decoration: none; color: inherit; }
@media (max-width: 640px) {
  :root .site-header__bar { height: 60px; }
  .site-header .wp-block-site-title { font-size: 21px; }
}

/* Navigation (desktop): plain links, "Paslaugos" opens a two-column panel with a photo per service */
.site-nav { gap: 30px; font-size: 15.5px; font-weight: 500; align-self: stretch; }
.site-nav .wp-block-navigation__container { gap: 30px; align-self: stretch; }
.site-nav .wp-block-navigation-item { align-self: stretch; }
.site-nav .wp-block-navigation-item__content { display: inline-flex; align-items: center; height: 100%; text-decoration: none; transition: color .2s; }
.site-nav .wp-block-navigation-item__content:hover { color: var(--rust); }
.site-nav .wp-block-navigation-item.is-cta { align-self: center; }
.site-nav .is-cta > .wp-block-navigation-item__content { height: auto; padding: 14px 22px; background: var(--rust); color: var(--white); font-weight: 500; font-size: 15.5px; line-height: 1; transition: background .25s; }
.site-nav .is-cta > .wp-block-navigation-item__content:hover { background: var(--ink); color: var(--white); }
.site-nav .wp-block-navigation__submenu-icon { width: 10px; height: 10px; margin-left: 7px; }
.site-nav .wp-block-navigation__submenu-icon svg { stroke-width: 1.8; transition: transform .25s; }
.site-nav .has-child:hover > .wp-block-navigation__submenu-icon svg, .site-nav .has-child:focus-within > .wp-block-navigation__submenu-icon svg { transform: rotate(180deg); }
@media (min-width: 861px) {
  .site-nav .has-child { position: static; }
  /* the panel hangs from the nav itself (as tall as the header), right under its line */
  .site-nav .wp-block-navigation__container, .site-nav .wp-block-navigation__responsive-container:not(.is-menu-open), .site-nav .wp-block-navigation__responsive-dialog { position: static; }
  .site-nav .has-child > .wp-block-navigation__submenu-container { top: calc(100% + 1px) !important; left: auto !important; right: 0 !important; width: 580px !important; min-width: 0 !important; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--white) !important; border: 1px solid var(--line) !important; border-top: 0 !important; box-shadow: 0 30px 50px -34px rgba(23, 20, 18, .45); transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
  .site-nav .has-child:hover > .wp-block-navigation__submenu-container, .site-nav .has-child:focus-within > .wp-block-navigation__submenu-container, .site-nav .has-child .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container { transform: none; transition: opacity .2s ease, transform .2s ease; }
  .site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item { align-self: auto; }
  :root .site-nav .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; height: auto; padding: 10px !important; color: var(--ink); transition: background .2s; }
  .site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--fog); color: var(--ink); }
}
.site-nav .dg-nav-thumb { grid-row: span 2; width: 52px; height: 64px; object-fit: cover; filter: grayscale(1); transition: filter .4s; }
.site-nav .wp-block-navigation-item__content:hover .dg-nav-thumb { filter: none; }
.site-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__label { align-self: end; font: 800 21px/.95 var(--display); font-stretch: 75%; text-transform: uppercase; }
.site-nav .wp-block-navigation-item__description { display: block; align-self: start; margin-top: 6px; font-size: 13px; font-weight: 400; line-height: 1.35; color: var(--grey); }

/* Tablets and phones: the menu button ("Meniu" + two bars) opens the mobile menu (Appearance → Editor → Patterns → Mobilusis meniu).
   Core switches at 600px; this site switches at 860px. */
:root .site-nav .wp-block-navigation__responsive-container-open { align-items: center; gap: 10px; min-height: 44px; margin-right: -6px; padding: 0 6px 0 10px; font: 600 14.5px var(--body); }
.site-nav .wp-block-navigation__responsive-container-open::before { content: "Meniu"; }
.site-nav .wp-block-navigation__responsive-container-open svg { display: none; }
.site-nav .wp-block-navigation__responsive-container-open::after { content: ""; width: 22px; height: 2px; background: currentColor; box-shadow: 0 8px currentColor; transform: translateY(-4px); }
@media (min-width: 600px) and (max-width: 860px) {
  .site-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .site-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
@media (max-width: 860px) {
  .site-nav { align-self: center; }
}
/* The open menu: a full screen sheet with the bar on top, big condensed links and the button at the bottom */
.wp-block-navigation__responsive-container.is-menu-open.disable-default-overlay { padding: 0; background: var(--white); color: var(--ink); }
.mobile-menu { min-height: 100%; display: flex; flex-direction: column; }
:root .mobile-menu__bar { height: calc(var(--dg-hdr) - 1px); padding-inline: var(--dg-gutter); gap: 20px; }  /* the header without its bottom line */
.mobile-menu .wp-block-site-title { margin: 0; font: 800 21px/.88 var(--display); font-stretch: 75%; letter-spacing: -.005em; text-transform: uppercase; }
.mobile-menu .wp-block-site-title a { text-decoration: none; color: inherit; }
.mobile-menu .wp-block-navigation-overlay-close { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: -6px; padding: 0 38px 0 10px; border: 0; background: none; color: var(--ink); font: 600 14.5px var(--body); cursor: pointer; }
/* "Uždaryti" and an X made of the menu button's two bars */
.mobile-menu .wp-block-navigation-overlay-close svg { display: none; }
.mobile-menu .wp-block-navigation-overlay-close::before, .mobile-menu .wp-block-navigation-overlay-close::after { content: ""; position: absolute; right: 6px; top: 50%; width: 22px; height: 2px; margin-top: -1px; background: currentColor; transform: rotate(45deg); }
.mobile-menu .wp-block-navigation-overlay-close::after { transform: rotate(-45deg); }
:root .mobile-menu__body { flex: 1; display: flex; flex-direction: column; padding: 6px var(--dg-gutter) calc(24px + env(safe-area-inset-bottom, 0px)); }
.mobile-menu .wp-block-navigation__container, .mobile-menu .wp-block-navigation { display: flex; flex-direction: column; align-items: stretch; gap: 0 !important; width: 100%; }
.mobile-menu .wp-block-navigation-item { width: 100%; }
.mobile-menu .wp-block-navigation-item.has-child { position: relative; display: block; }
.mobile-menu .wp-block-navigation-submenu__toggle { cursor: default; background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; text-align: left; }
/* The "Paslaugos" list is always open on phones (render.php), so its chevron stays hidden */
.mobile-menu .has-child > .wp-block-navigation__submenu-icon { position: absolute; right: 0; top: 23px; display: none !important; width: 16px; height: 16px; margin: 0; pointer-events: none; }
.mobile-menu .has-child > .wp-block-navigation__submenu-icon svg { width: 16px; height: 16px; stroke-width: 1.8; transition: transform .25s; }
.mobile-menu .wp-block-navigation-item > .wp-block-navigation-item__content { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 16px 0 12px !important; border-bottom: 1px solid var(--line); font: 800 30px/1 var(--display); font-stretch: 75%; text-transform: uppercase; text-decoration: none; }
.mobile-menu .wp-block-navigation__submenu-container { position: static !important; display: grid !important; gap: 2px; padding: 6px 0 10px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; opacity: 1 !important; visibility: visible !important; width: auto !important; height: auto !important; min-width: 0 !important; }
.mobile-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__content { display: grid !important; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 8px 0 !important; border: 0 !important; font: 400 15px/1.3 var(--body) !important; text-transform: none !important; }
.mobile-menu .dg-nav-thumb { grid-row: span 2; width: 44px; height: 54px; object-fit: cover; }
.mobile-menu .wp-block-navigation__submenu-container .wp-block-navigation-item__label { align-self: end; font: 800 20px/.95 var(--display); font-stretch: 75%; text-transform: uppercase; }
.mobile-menu .wp-block-navigation-item__description { margin-top: 6px; font-size: 13px; color: var(--grey); }
.mobile-menu .is-cta { display: none; }
.mobile-menu .wp-block-buttons { margin-top: 28px; }
.mobile-menu .wp-block-button, .mobile-menu .wp-block-button__link { width: 100%; }
.mobile-menu .wp-block-button__link { display: flex; justify-content: center; align-items: center; min-height: 56px; font-size: 16px; }
html.has-modal-open { overflow: hidden; }
/* The header's frosted glass (backdrop-filter) would make it the box of the fixed sheet, so it is off while the menu is open */
html.has-modal-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--ink); color: #B3ADA9; padding-block: clamp(48px, 5vw, 72px) calc(30px + env(safe-area-inset-bottom, 0px)); }
:root .foot { max-width: var(--dg-max); margin-inline: auto; padding-inline: var(--dg-gutter); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 44px; align-items: start; font-size: 15px; }
:root .foot > * { margin: 0; }
.foot__brand { grid-column: 1 / span 4; }
.foot__brand .wp-block-site-title { margin: 0; font: 800 30px/.88 var(--display); font-stretch: 75%; letter-spacing: -.005em; text-transform: uppercase; color: var(--white); }
.foot__brand .wp-block-site-title a { display: inline-block; text-decoration: none; color: inherit; }
:root .foot__brand p:not(.wp-block-site-title) { margin: 16px 0 0; max-width: 34ch; color: #B3ADA9; line-height: 1.55; }
.foot__col { grid-column: span 2; }
.foot__col:nth-child(2) { grid-column: 6 / span 2; }
.foot__col--contacts { grid-column: span 3; }
:root .foot__col h2 { margin: 0 0 14px; font: 600 11.5px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ochre); }
:root .foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot__col a { display: inline-flex; align-items: center; min-height: 32px; color: #E3DDD7; text-decoration: none; }
.foot__col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
:root .foot__base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid #332E2B; font-size: 13.5px; color: #8E8781; }
:root .foot__base > * { margin: 0; }
.foot__base a { color: inherit; }
@media (max-width: 1100px) {
  .foot__brand { grid-column: 1 / -1; }
  .foot__col, .foot__col:nth-child(2) { grid-column: span 4; }
}
@media (max-width: 640px) {
  .site-footer { padding-block: 44px calc(28px + env(safe-area-inset-bottom, 0px)); }
  :root .foot { gap: 28px 20px; }
  .foot__brand .wp-block-site-title a { display: inline-block; padding: 9px 0; }
  .foot__col, .foot__col:nth-child(2) { grid-column: span 6; }
  .foot__col--contacts { grid-column: 1 / -1; }
  .foot__col a { min-height: 44px; }
  .foot__col:not(.foot__col--contacts) a { box-sizing: border-box; padding-block: 10px; }  /* a link on two lines keeps the same tap room above and below */
  :root .foot__base { flex-direction: column; gap: 6px; }
  .foot__base a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* =====================================================================
   Layout helpers
   ===================================================================== */
/* The site blocks stack without gaps (header, main, footer) */
:root .wp-site-blocks > * { margin-block: 0; }
:root .site-main, :root .site-main > .wp-block-post-content { margin-block: 0; }
/* Full-width bands: one light, one dark, one rhythm */
:root .zone { position: relative; padding-block: var(--dg-zone); margin-block: 0; }
.has-ink-background-color { color: var(--white); }
/* Groups used as layout boxes never add the default block gap: each section sets its own spacing */
:root :where(.hero, .hero *, .phero *, .zone *, .services *, .about *, .testi *, .contact *, .foot *, .site-header *, .mobile-menu *) { margin-block-start: 0; }

/* =====================================================================
   Block styles (picked in the editor sidebar)
   ===================================================================== */
/* Buttons: rust by default; Tamsus (ink), Šviesus (white on dark bands), Tamsus didžiosiomis */
.wp-element-button, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; transition: background .25s, color .25s; }
.wp-block-button.is-style-ink .wp-block-button__link { background: var(--ink); color: var(--white); }
.wp-block-button.is-style-ink .wp-block-button__link:hover { background: var(--rust); }
.wp-block-button.is-style-light .wp-block-button__link { background: var(--white); color: var(--ink); }
.wp-block-button.is-style-light .wp-block-button__link:hover { background: var(--ochre); color: var(--ink); }
.wp-block-button.is-style-caps .wp-block-button__link { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; padding: 15px 24px; }
.wp-block-button.is-style-caps .wp-block-button__link:hover { background: var(--rust); box-shadow: inset 0 0 0 1.5px var(--rust); }
@media (max-width: 640px) {
  :root .site-main .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
  :root .site-main .wp-block-button, :root .site-main .wp-block-button__link { width: 100%; }
  :root .site-main .wp-block-button__link { min-height: 52px; }
  :root .site-main .wp-block-button.is-style-caps .wp-block-button__link { min-height: 54px; font-size: 12px; letter-spacing: .1em; padding: 16px 18px; }
}

/* Antraštėlė: small spaced caps */
:root p.is-style-eyebrow { margin: 0; font: 600 12px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.has-ink-background-color p.is-style-eyebrow { color: #8E8781; }

/* Ranka rašyta: Caveat with a drawn arrow (the script adds the arrow and writes the note in once it is seen) */
:root p.is-style-note, :root p.is-style-note-down, :root p.is-style-note-long { display: inline-flex; align-items: flex-end; gap: 8px; width: fit-content; margin: 0; font: 600 clamp(26px, 2.2vw, 34px)/1 var(--hand); color: var(--rust); transform: rotate(-3deg); transform-origin: left bottom; }
.has-ink-background-color :is(p.is-style-note, p.is-style-note-down, p.is-style-note-long) { color: var(--ochre); }
.dg-arrow { flex: none; width: 52px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: -12px; overflow: visible; }
.is-style-note-down .dg-arrow { width: 40px; height: 46px; margin-bottom: -30px; }
@media (max-width: 640px) { :root p.is-style-note, :root p.is-style-note-down { font-size: 28px; } }
/* In the editor the arrow is a plain picture (the live site draws it) */
.editor-styles-wrapper :is(p.is-style-note, p.is-style-note-down, p.is-style-note-long)::after { content: ""; flex: none; width: 52px; height: 34px; margin-bottom: -12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 34' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4c20 2 36 10 44 24'/%3E%3Cpath d='M36 24l10 5 2-11'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 34' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4c20 2 36 10 44 24'/%3E%3Cpath d='M36 24l10 5 2-11'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Writing in: the text is revealed left to right, then the arrow is drawn (armed by the script only) */
.write-js .dg-write .hand-text { clip-path: inset(-30% 100% -30% -5%); }
.write-js .dg-write .dg-arrow path { stroke-dasharray: var(--len, 200px); stroke-dashoffset: var(--len, 200px); }
.write-js .dg-write.is-written .hand-text { clip-path: inset(-30% -5% -30% -5%); transition: clip-path 1.3s cubic-bezier(.5, .1, .45, .95); }
.write-js .dg-write.is-written .dg-arrow path { stroke-dashoffset: 0; transition: stroke-dashoffset .55s ease-out 1.25s; }
.write-js .dg-write.is-written .dg-arrow path + path { transition: stroke-dashoffset .25s ease-out 1.75s; }

/* Lists: Kvadratėliai (ochre squares), Žymos (pills), Kontaktai su piktogramomis */
:root ul.is-style-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
:root ul.is-style-ticks > li { position: relative; margin: 0; padding-left: 22px; line-height: 1.55; }
ul.is-style-ticks > li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--ochre); }
:root ul.is-style-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 8px; }
:root ul.is-style-pills > li { margin: 0; background: var(--white); border: 1px solid rgba(23, 20, 18, .12); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--ink); }
:root ul.is-style-contacts { list-style: none; margin: 0; padding: 0; display: grid; justify-items: start; gap: 14px; }
:root ul.is-style-contacts > li { display: flex; margin: 0; line-height: 1.65; }
ul.is-style-contacts a, ul.is-style-contacts li:not(:has(a)) { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 600; font-size: 16.5px; }
ul.is-style-contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
ul.is-style-contacts a::before, ul.is-style-contacts li:not(:has(a))::before { content: ""; flex: none; width: 19px; height: 19px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
ul.is-style-contacts a[href^="mailto:"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='1.5'/%3E%3Cpath d='M3.5 6l8.5 7 8.5-7'/%3E%3C/svg%3E"); }
ul.is-style-contacts a[href^="tel:"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3.5l1.8 4.5-2.3 1.4a11 11 0 0 0 6.1 6.1l1.4-2.3L20 15.5V19a1 1 0 0 1-1 1A16 16 0 0 1 4 5a1 1 0 0 1 1-1z'/%3E%3C/svg%3E"); }
ul.is-style-contacts a[href*="instagram.com"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.3' cy='6.7' r='.6' fill='%23000'/%3E%3C/svg%3E"); }
ul.is-style-contacts a[href*="linkedin.com"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='2'/%3E%3Cpath d='M8 10.5V16M8 7.8v.1M11.5 16v-5.5M11.5 13c0-1.6 1-2.6 2.3-2.6s2.2.9 2.2 2.6V16'/%3E%3C/svg%3E"); }
ul.is-style-contacts li:not(:has(a)) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-6.1-6.5-11a6.5 6.5 0 0 1 13 0c0 4.9-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.3'/%3E%3C/svg%3E"); }

/* Image: Vaizdo ieškiklis – the photo inside four corner brackets (the script adds a gentle parallax) */
:root figure.wp-block-image.is-style-viewfinder { position: relative; display: flex; margin: 0; padding: 14px; }
figure.is-style-viewfinder > img, figure.is-style-viewfinder > a, figure.is-style-viewfinder .vf__win { display: block; flex: 1; width: 100%; }
figure.is-style-viewfinder img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
figure.is-style-viewfinder picture { display: block; width: 100%; height: 100%; }
figure.is-style-viewfinder .vf__win { position: relative; overflow: hidden; }
figure.is-style-viewfinder .vf__pan { position: absolute; left: 0; right: 0; top: -12%; bottom: 0; transform: translate3d(0, var(--hpy, 0px), 0); will-change: transform; }
figure.is-style-viewfinder .vf__pan img { animation: dgFocus 1.4s var(--dg-ease) .15s both; }
figure.is-style-viewfinder::after { content: ""; position: absolute; inset: 0; pointer-events: none; --c: var(--ink); --l: 26px;
  background: linear-gradient(var(--c), var(--c)) 0 0 / var(--l) 2px, linear-gradient(var(--c), var(--c)) 0 0 / 2px var(--l),
              linear-gradient(var(--c), var(--c)) 100% 0 / var(--l) 2px, linear-gradient(var(--c), var(--c)) 100% 0 / 2px var(--l),
              linear-gradient(var(--c), var(--c)) 0 100% / var(--l) 2px, linear-gradient(var(--c), var(--c)) 0 100% / 2px var(--l),
              linear-gradient(var(--c), var(--c)) 100% 100% / var(--l) 2px, linear-gradient(var(--c), var(--c)) 100% 100% / 2px var(--l);
  background-repeat: no-repeat; animation: dgBracket 1.1s var(--dg-ease) both; }
.has-ink-background-color figure.is-style-viewfinder::after { --c: var(--white); }
@keyframes dgFocus { from { filter: blur(10px); transform: scale(1.04); } to { filter: none; transform: none; } }
@keyframes dgBracket { from { transform: scale(1.04); opacity: 0; } to { transform: none; opacity: 1; } }

/* Group: Lipnus lapelis (sticky note) */
:root .wp-block-group.is-style-sticky { position: absolute; right: -40px; bottom: -34px; z-index: 2; width: 230px; margin: 0; background: #EFD58A; padding: 18px 20px 20px; transform: rotate(-3deg); box-shadow: 0 18px 30px -20px rgba(30, 26, 23, .5); }
:root .is-style-sticky p.is-style-eyebrow { display: block; margin: 0 0 6px; font-size: 10.5px; color: #5C4A1C; }
:root .is-style-sticky p:not(.is-style-eyebrow) { margin: 0; font: 600 25px/1.05 var(--hand); color: var(--ink); }

/* Quote: Atsiliepimas – a yellow mark, the text, the name and role under a hairline */
:root blockquote.wp-block-quote.is-style-testimonial { margin: 0; padding: 4px 30px 0 0; border: 0; display: flex; flex-direction: column; gap: 20px; }
blockquote.is-style-testimonial::before { content: "„"; display: block; font: 800 84px/.55 var(--display); font-stretch: 75%; height: 58px; margin-bottom: -12px; color: var(--ochre); }
:root blockquote.is-style-testimonial > p { flex: 1; margin: 0; font-size: 17px; line-height: 1.65; color: #E9E4DF; }
:root blockquote.is-style-testimonial cite { display: block; padding-top: 16px; border-top: 1px solid var(--dg-dark-line); font-style: normal; font-size: 13.5px; color: #A59E97; }
blockquote.is-style-testimonial cite strong { display: block; margin-bottom: 4px; font-weight: 700; font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--white); }
blockquote.is-style-testimonial cite br { display: none; }

/* Image style "Telefonas": the picture is a video cover in a phone frame; linked to a YouTube video, the theme plays
   it in place (a rust play button sits in the corner until then) */
:root figure.wp-block-image.is-style-phone { position: relative; display: block; margin: 0; padding: 9px; background: linear-gradient(150deg, #57514C 0%, #3B3633 45%, #2A2624 100%); border: 1px solid #6A635D; border-radius: 34px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 2px rgba(0, 0, 0, .25), 0 40px 60px -40px rgba(0, 0, 0, .8); }
figure.is-style-phone::before { content: ""; position: absolute; z-index: 3; top: 18px; left: 50%; width: 64px; height: 18px; margin-left: -32px; border-radius: 10px; background: #0D0B0A; pointer-events: none; }
figure.is-style-phone > a, figure.is-style-phone > img { position: relative; display: block; width: 100%; aspect-ratio: 9 / 19.5; overflow: hidden; border-radius: 26px; background: #262220; color: inherit; }
figure.is-style-phone > a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(13, 11, 10, .5)); pointer-events: none; }
:root figure.is-style-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: saturate(.9); transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s; }
figure.is-style-phone > a:hover img { transform: scale(1.04); filter: none; }
figure.is-style-phone iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; }
.dg-play { position: absolute; z-index: 1; left: 0; bottom: 0; display: flex; align-items: center; justify-content: center; min-width: 52px; height: 52px; padding: 0 18px; background: var(--rust); color: var(--white); transition: background .25s; }
.dg-play svg { flex: none; width: 16px; height: 16px; fill: currentColor; }
.dg-play::after { content: "Žiūrėti"; max-width: 0; overflow: hidden; white-space: nowrap; font: 800 16px/1 var(--display); font-stretch: 75%; letter-spacing: .06em; text-transform: uppercase; transition: max-width .35s cubic-bezier(.2, .7, .2, 1), margin .35s cubic-bezier(.2, .7, .2, 1); }
figure.is-style-phone > a:is(:hover, :focus-visible) .dg-play::after { max-width: 90px; margin-left: 10px; }
figure.is-style-phone > a:hover .dg-play { background: var(--ink); }

/* Section heading (a group with class "bh"): big title, a short text and an optional hand note under it */
:root .bh { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin: 0 0 clamp(32px, 3.4vw, 52px); }
:root .bh > * { margin: 0; }
:root .bh h2 { margin: 0; font-size: var(--dg-t-h2); line-height: .96; text-wrap: balance; }
:root .bh > p:not([class*="is-style-note"]) { margin: 0; max-width: 60ch; font-size: var(--dg-t-body); line-height: 1.6; color: var(--grey); }
:root .has-ink-background-color .bh > p:not([class*="is-style-note"]) { color: #BDB5AE; }
:root .bh > p[class*="is-style-note"] { margin-top: 2px; }
@media (max-width: 640px) { :root .bh { gap: 14px; margin-bottom: 32px; } }

/* Sliding rows (the theme adds the arrow buttons): a group with class "phones" holds the video groups ("reel") */
.trk { position: relative; }
:root .trk__nav { position: absolute; z-index: 4; top: 50%; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0; padding: 0; border: 0; background: var(--ink); color: var(--white); cursor: pointer; transition: background .2s, opacity .25s; }
.trk__nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trk__nav:hover { background: var(--rust); }
.trk__nav:disabled { opacity: 0; pointer-events: none; }
.trk__nav--prev { left: -12px; }
.trk__nav--next { right: -12px; }
.has-ink-background-color .trk__nav { background: var(--white); color: var(--ink); }
.has-ink-background-color .trk__nav:hover { background: var(--ochre); }
.trk__nav.nudge-l { animation: dgNudgeL 1.6s ease-in-out 3; }
.trk__nav.nudge-r { animation: dgNudgeR 1.6s ease-in-out 3; }
.track-nudge-l { animation: dgTrackL 1.4s cubic-bezier(.4, 0, .2, 1) .2s 1; }
.track-nudge-r { animation: dgTrackR 1.4s cubic-bezier(.4, 0, .2, 1) .2s 1; }
@keyframes dgNudgeL { 0%, 100% { transform: none; } 40% { transform: translateX(-7px); } }
@keyframes dgNudgeR { 0%, 100% { transform: none; } 40% { transform: translateX(7px); } }
@keyframes dgTrackL { 0%, 100% { transform: none; } 45% { transform: translateX(46px); } }
@keyframes dgTrackR { 0%, 100% { transform: none; } 45% { transform: translateX(-46px); } }
@media (max-width: 640px) {
  :root .trk__nav { width: 44px; height: 44px; margin-top: -23px; }
  .trk__nav--prev { left: -8px; }
  .trk__nav--next { right: -8px; }
}

/* Gallery style "Mozaika": 8 photos, the first one big; captions are shown only in the enlarged view. Every gallery
   opens its photos large on click (the theme's viewer: arrows, keys, swipe, counter, caption). */
:root .wp-block-gallery.is-style-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 23vw, 340px); gap: 12px; grid-template-areas: "a a b c" "a a d c" "e f g h"; margin: 0; }
.wp-block-gallery.is-style-bento > figure:nth-of-type(1) { grid-area: a; } .wp-block-gallery.is-style-bento > figure:nth-of-type(2) { grid-area: b; }
.wp-block-gallery.is-style-bento > figure:nth-of-type(3) { grid-area: c; } .wp-block-gallery.is-style-bento > figure:nth-of-type(4) { grid-area: d; }
.wp-block-gallery.is-style-bento > figure:nth-of-type(5) { grid-area: e; } .wp-block-gallery.is-style-bento > figure:nth-of-type(6) { grid-area: f; }
.wp-block-gallery.is-style-bento > figure:nth-of-type(7) { grid-area: g; } .wp-block-gallery.is-style-bento > figure:nth-of-type(8) { grid-area: h; }
:root .wp-block-gallery.is-style-bento.has-nested-images figure.wp-block-image:not(#individual-image) { position: relative; display: block; width: 100%; height: 100%; margin: 0; overflow: hidden; background: #262220; cursor: zoom-in; }
:root .wp-block-gallery.is-style-bento.has-nested-images figure.wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.wp-block-gallery.is-style-bento figure.wp-block-image:hover img { transform: scale(1.04); }
:root .wp-block-gallery.is-style-bento.has-nested-images figure.wp-block-image figcaption { display: none; }
.wp-block-gallery.is-style-bento figure.wp-block-image > a { display: block; width: 100%; height: 100%; }   /* a video: the photo inside its link */
figure.wp-block-image .dg-zoom { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
@media (max-width: 640px) {
  :root .wp-block-gallery.is-style-bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; gap: 8px; grid-template-areas: "a a" "a a" "b c" "d e" "f g" "h h"; }
}

/* The enlarged view */
.lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(13, 11, 10, .97); color: var(--white); overflow: hidden; }
.lb::backdrop { background: rgba(13, 11, 10, .6); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: dgLbIn .25s ease; }
@keyframes dgLbIn { from { opacity: 0; } }
.lb__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px clamp(16px, 3vw, 28px); padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.lb__count { font: 600 13px var(--body); letter-spacing: .14em; color: #B8B0A9; font-variant-numeric: tabular-nums; }
.lb__close, .lb__nav { display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: var(--white); cursor: pointer; transition: background .2s, border-color .2s; }
.lb__close:hover, .lb__nav:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.lb__close svg, .lb__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb__stage { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 12px; padding: 0 clamp(8px, 2vw, 24px); min-height: 0; }
.lb__fig { margin: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.lb__fig img { max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; object-fit: contain; }
.lb__fig figcaption { font-size: 14px; color: #CFC8C1; text-align: center; max-width: 60ch; min-height: 20px; }
.lb__bottom { height: calc(18px + env(safe-area-inset-bottom, 0px)); }
.lb__vid { position: relative; height: calc(100% - 40px); aspect-ratio: 9 / 16; max-width: 100%; background: #000; }
.lb__vid.is-wide { height: auto; width: min(100%, 1100px); aspect-ratio: 16 / 9; }
.lb__vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb__file { max-width: 100%; max-height: calc(100% - 40px); background: #000; }
html.lb-open { overflow: hidden; }
@media (max-width: 640px) {
  .lb__stage { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .lb__nav { position: absolute; bottom: -2px; z-index: 2; }
  .lb__nav--prev { left: calc(50% - 58px); }
  .lb__nav--next { right: calc(50% - 58px); }
  .lb__fig { padding-bottom: 62px; }
  .lb__bottom { height: calc(22px + env(safe-area-inset-bottom, 0px)); }
}

/* Photo crop helpers (Advanced → Additional CSS class): which part of a cropped photo stays in view */
.is-pos-y-20 img { object-position: 50% 20%; }
.is-pos-y-30 img { object-position: 50% 30%; }
.is-pos-y-40 img { object-position: 50% 40%; }

/* =====================================================================
   Homepage: the hero (name, claim, experience tiles, text, button, framed photo)
   ===================================================================== */
:root .hero { padding-block: clamp(28px, 4vw, 52px) clamp(56px, 7vw, 96px); }
:root .hero__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
:root .hero__main { container-type: inline-size; display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; --g: clamp(24px, 2.6vw, 34px); --nfs: clamp(32px, 2.9vw, 44px); }
:root .hero__name { margin: 0; font-size: 30cqi; }
:root .hero__l1 { display: flex; align-items: flex-end; align-items: last baseline; gap: .1em; }
:root .hero__l1 > .hero__first, :root .hero__l2 { margin: 0; font-size: 1em; line-height: .88; }
:root .hero__l1 > .hero__first { flex: none; }
:root .hero__l2 { display: block; }
:root h1.hero__claim { flex: 1; min-width: 0; margin: 0; font: 600 clamp(20px, 4.4cqi, 34px)/1.18 var(--body); font-stretch: 100%; letter-spacing: -.01em; text-transform: none; text-wrap: balance; color: var(--rust); }
:root .hero__photo { margin: 0; }
:root .hero__photo .vf__win, :root .hero__photo > img, :root .hero__photo > picture { min-height: 420px; }
:root .hero__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; margin-top: calc(var(--g) - .110 * 30cqi); border-top: 2px solid var(--ink); align-items: stretch; }
:root .hstats { grid-column: 1 / span 5; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; padding-top: var(--g); --nfs: clamp(30px, 2.6vw, 40px); }
:root .stat { background: var(--fog); padding: 12px 14px; display: flex; flex-direction: column; justify-content: space-between; }
:root .stat__num { margin: 0; font-size: var(--nfs); color: var(--rust); font-variant-numeric: tabular-nums; }
:root .stat__label { margin: 6px 0 0; font-size: 13px; line-height: 1.3; color: var(--grey); }
:root .hero__body { grid-column: 6 / span 7; padding-top: calc(var(--g) - .436 * 18px); display: flex; flex-direction: column; align-items: flex-start; }
:root .hero__body > .wp-block-buttons { margin-top: auto; }
:root .hero__text { margin: 0 0 22px; font-size: 18px; line-height: 1.65; color: #332E2B; }
@media (max-width: 1100px) {
  :root .hstats, :root .hero__body { grid-column: 1 / -1; }
  :root .hero__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
}
@media (max-width: 860px) {
  :root .hero__stage { grid-template-columns: minmax(0, 1fr); }
  :root .hero__main { display: contents; }
  :root .hero__name { font-size: clamp(56px, 22vw, 200px); order: 1; }
  :root .hero__row { order: 3; margin-top: calc(var(--g) - .110 * clamp(56px, 22vw, 200px)); }
  :root .hero__photo { order: 2; width: 78%; justify-self: end; }
  :root .hero__photo .vf__win, :root .hero__photo > img, :root .hero__photo > picture { min-height: 0; aspect-ratio: 4 / 4.8; }
}
/* Phones: name, photo (full width, the height that is left), text and button on the first screen; the tiles follow */
@media (max-width: 640px) {
  :root .hero { padding-block: 14px 56px; }
  :root .hero__stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto auto; grid-template-areas: "name" "photo" "text" "btn" "stats"; gap: 0 14px; align-items: start; container-type: inline-size; --nf: 30cqi; min-height: 0; }
  :root .hero__main, :root .hero__row, :root .hero__body { display: contents; }
  :root .hero__name { grid-area: name; font-size: var(--nf); }
  :root .hero__l2 { white-space: nowrap; }
  :root .hero__l1 { flex-wrap: nowrap; gap: 12px; }
  :root h1.hero__claim { margin: 0; font-size: clamp(14.5px, 4.2vw, 18px); line-height: 1.22; }
  :root figure.wp-block-image.hero__photo { grid-area: photo; align-self: start; justify-self: stretch; width: auto; padding: 10px; margin-top: calc(18px - .110 * var(--nf)); }
  :root .hero__photo .vf__win, :root .hero__photo > img, :root .hero__photo > picture { min-height: 0; aspect-ratio: auto; height: var(--vfh, calc(100vw - 60px)); }
  :root .hero__photo::after { --l: 20px; }
  :root .hero__photo picture img { object-position: 50% 0%; }   /* the phone photo (render.php): the head never cut */
  :root .hero__text { grid-area: text; margin: 14px 0 0; font-size: 15.5px; line-height: 1.5; }
  :root.vis-tall .hero__text { margin-top: 16px; font-size: 16px; line-height: 1.55; }
  :root .hero__body > .wp-block-buttons { grid-area: btn; position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 5; margin-top: 14px; }
  :root .hero__body .wp-block-button__link { font-size: 16px; }
  :root .hstats { grid-area: stats; margin-top: 14px; padding-top: 0; gap: 8px; grid-template-rows: 90px 90px; --nfs: 32px; }
  :root .stat { padding: 12px 13px 11px; gap: 6px; }
  :root .stat__label { margin-top: 0; font-size: 12.5px; }
}

/* =====================================================================
   Services band (synced block "Paslaugos")
   ===================================================================== */
:root .services.zone { padding-block: clamp(48px, 5vw, 76px); }
:root .services__head { margin-bottom: clamp(28px, 3.4vw, 44px); }
:root .services__title { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 22px; }
:root .services__title h2 { margin: 0; font-size: clamp(52px, 8vw, 118px); line-height: .88; color: inherit; }
:root .services__title .is-style-note-long { position: relative; display: block; margin-bottom: .5em; font-size: clamp(28px, 2.4vw, 36px); margin-bottom: calc(var(--dg-t-body) / 2); transform: none; }
/* Only the words tilt (around their middle); the arrow stays level under them */
.services__title .is-style-note-long .hand-text { display: block; transform: rotate(-4deg); }
.editor-styles-wrapper .services__title .is-style-note-long { transform: rotate(-4deg); transform-origin: 50% 50%; }
.services__title .is-style-note-long .dg-arrow { position: absolute; right: 4px; top: 100%; width: 100px; height: 17px; margin: 0; }
.services__title .is-style-note-long .dg-arrow--m { display: none; }
:root .services__intro { margin: 14px 0 0; max-width: 46ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: #C9C2BB; }
:root .svc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 20px; }
:root .svc__card { position: relative; display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 14px; align-content: start; }
:root .svc__card > * { margin: 0; }
.svc__card .wp-block-image { overflow: hidden; background: #262220; }
.svc__card .wp-block-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .7s ease, transform .9s var(--dg-ease); }
.svc__card .is-pos-top img { object-position: 50% 12%; }
@media (hover: hover) {
  .svc__card .wp-block-image img { filter: grayscale(1) contrast(1.05) blur(5px); transform: scale(1.06); }
  .svc__card:hover .wp-block-image img, .svc__card:focus-within .wp-block-image img { filter: none; transform: none; }
}
:root .svc__card h3 { margin: 4px 0 0; align-self: end; font-size: clamp(26px, 2.2vw, 32px); line-height: .88; }
.svc__card h3 a { color: inherit; text-decoration: none; transition: color .3s; }
.svc__card h3 a::after { content: ""; position: absolute; inset: 0; }
.svc__card:hover h3 a, .svc__card h3 a:focus-visible { color: var(--ochre); }
:root .svc__card p { font-size: 15px; line-height: 1.55; color: #A9A29B; }
@media (max-width: 1100px) { :root .svc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; } }
@media (max-width: 640px) {
  :root .services.zone { padding-block: 56px; }
  :root .services__head { margin-bottom: 32px; }
  :root .services__title { flex-direction: column; align-items: stretch; gap: 0; container-type: inline-size; }
  :root .services__title h2 { font-size: 27.4cqi; white-space: nowrap; }
  :root .services__title .is-style-note-long { align-self: flex-end; margin: 6px 4px 0 0; font-size: 28px; }
  .services__title .is-style-note-long .dg-arrow { display: none; }
  .services__title .is-style-note-long .dg-arrow--m { display: block; position: absolute; right: calc(100% + 2px); top: 45%; width: 40px; height: 31px; }
  :root .services__intro { margin-top: 20px; font-size: 16.5px; }
  :root .svc { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  :root .svc__card { display: flex; flex-direction: column; gap: 14px; width: 100%; }
  /* The frame holds the 4:5 shape and the photo fills it: iPhone browsers could size the photo from its own shape and
     leave a dark strip at the right (paslauga-socialiniai.jpg, 3:4) */
  :root .svc__card .wp-block-image { position: relative; aspect-ratio: 4 / 5; }
  :root .svc__card .wp-block-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .svc__card .wp-block-image img, .svc__card:hover .wp-block-image img { filter: grayscale(1) contrast(1.05); transform: none; transition: filter .6s ease; }
  .svc__card.is-active .wp-block-image img { filter: none; }
  :root .svc__card h3 { align-self: stretch; margin-top: 4px; font-size: 30px; }
  :root .svc__card p { font-size: 15.5px; line-height: 1.6; }
}

/* =====================================================================
   Homepage: about
   ===================================================================== */
:root .about.zone { padding-block: clamp(76px, 9vw, 128px); border-top: 1px solid var(--line); }
:root .about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px 44px; align-items: center; }
:root .about__photo { grid-column: 1 / span 5; position: relative; margin: 0; }
:root .about__photo .wp-block-image { margin: 0; }
.about__photo .wp-block-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
:root .about__text { grid-column: 7 / span 6; }
:root .about__text h2 { margin: 0 0 28px; font-size: clamp(56px, 7.4vw, 112px); line-height: .88; }
:root .about__text > p { margin: 0 0 18px; max-width: 60ch; }
:root .about__text > .wp-block-buttons { margin-top: 36px; }  /* the paragraph keeps its 18px: block margins collapse, so 36 gives the same 18 + 18 */
:root .clients { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; margin: 40px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(23, 20, 18, .14); }
:root .clients > .is-style-eyebrow { margin-right: 10px; font-size: 11.5px; letter-spacing: .12em; }
:root .clients > ul { display: contents; }
@media (max-width: 860px) {
  :root .about__grid { grid-template-columns: minmax(0, 1fr); }
  :root .about__photo, :root .about__text { grid-column: 1; }
  :root .about__photo { width: 84%; margin-bottom: 56px; }
  :root .about__photo .is-style-sticky { right: -24px; }
}
@media (max-width: 640px) {
  :root .about.zone { padding-block: 60px 64px; }
  :root .about__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; container-type: inline-size; }
  :root .about__text { display: contents; }
  :root .about__text h2 { order: 1; margin: 0 0 26px; font-size: 26cqi; }
  :root .about__photo { order: 2; width: 100%; margin: 0 0 52px; }
  .about__photo .wp-block-image img { aspect-ratio: 5 / 4; object-position: 50% 38%; }
  :root .about__text > :not(h2) { order: 3; }
  :root .about__photo .is-style-sticky { right: 14px; bottom: -32px; width: 178px; padding: 13px 15px 15px; }
  :root .about__photo .is-style-sticky p:not(.is-style-eyebrow) { font-size: 22px; }
  :root .about__text > p { margin-bottom: 16px; }
  :root .about__text > .wp-block-buttons { margin-top: 10px; }
  :root .clients { margin-top: 32px; padding-top: 18px; gap: 8px 6px; }
  :root .clients > .is-style-eyebrow { flex-basis: 100%; margin: 0 0 4px; }
  :root .clients ul.is-style-pills > li { padding: 7px 12px; font-size: 13.5px; }
}

/* =====================================================================
   Testimonials (synced block "Atsiliepimai")
   ===================================================================== */
:root .testi.zone { padding-block: clamp(56px, 6vw, 88px); }
:root .testi .testi__head { display: flex; width: auto; align-items: flex-end; gap: 10px; margin: 0 0 clamp(26px, 3vw, 40px); font-size: clamp(28px, 2.4vw, 36px); transform: rotate(-2deg); transform-origin: left; }
.testi .testi__head .dg-arrow { width: 54px; height: 34px; margin-bottom: -14px; }
:root .tcols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
:root .tcols > blockquote.wp-block-quote + .wp-block-quote { padding-left: 30px; border-left: 1px solid var(--dg-dark-line); }
/* More than three testimonials on computers (site.js sets the height of the first row): the rest scroll inside the box */
:root .tcols.is-scroll { overflow-y: auto; align-items: stretch; }
.tcols.is-scroll::-webkit-scrollbar { width: 6px; }
.tcols.is-scroll::-webkit-scrollbar-track { background: var(--dg-dark-line); }
.tcols.is-scroll::-webkit-scrollbar-thumb { background: var(--ochre); }
@supports not selector(::-webkit-scrollbar) { :root .tcols.is-scroll { scrollbar-width: thin; scrollbar-color: var(--ochre) var(--dg-dark-line); } }
:root .tcols.is-scroll > blockquote.wp-block-quote:nth-child(3n+1) { padding-left: 0; border-left: 0; }
:root .tcols.is-scroll > blockquote.wp-block-quote:nth-child(n+4) { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--dg-dark-line); }
@media (max-width: 1100px) {
  :root .tcols { grid-template-columns: minmax(0, 1fr); }
  :root .tcols > blockquote.wp-block-quote, :root .tcols > blockquote.wp-block-quote + .wp-block-quote { padding: 26px 0 28px; border-left: 0; }
  :root .tcols > blockquote.wp-block-quote + .wp-block-quote { border-top: 1px solid var(--dg-dark-line); }
}
@media (max-width: 640px) {
  :root .testi.zone { padding-block: 52px 32px; }
  :root .testi .testi__head { margin-bottom: 0; font-size: min(30px, calc((100vw - 104px) / 9)); white-space: nowrap; }
  .testi .testi__head .dg-arrow { width: 44px; height: 28px; margin-bottom: -12px; }
  :root .tcols > blockquote.wp-block-quote, :root .tcols > blockquote.wp-block-quote + .wp-block-quote { padding: 24px 0 26px; gap: 14px; }
  :root .tcols > blockquote.wp-block-quote:first-child { padding-top: 14px; }
  :root .tcols > blockquote.wp-block-quote:last-child { padding-bottom: 20px; }
  :root blockquote.is-style-testimonial::before { font-size: 68px; height: 46px; margin-bottom: -10px; }
  :root blockquote.is-style-testimonial > p { font-size: 16px; line-height: 1.62; }
  :root blockquote.is-style-testimonial cite { padding-top: 2px; border-top: 0; }
}

/* =====================================================================
   Contact band (synced block "Kontaktai"): a faint photo, heading, contacts and the form card
   ===================================================================== */
:root .contact.zone { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(76px, 9vw, 128px) clamp(36px, 3.6vw, 56px); color: var(--white); }
:root .contact .contact__bg { position: absolute; z-index: -1; top: -18%; bottom: -18%; left: 0; width: min(62%, 900px); max-width: none; margin: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .88; }
.contact .contact__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: grayscale(1) contrast(1.15) saturate(1.1);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .75) 45%, transparent 92%); mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .75) 45%, transparent 92%);
  transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
@media (min-width: 1101px) {
  :root .contact .contact__bg { top: var(--by, 0px); bottom: auto; left: var(--bx, 0px); width: var(--bw, 700px); opacity: .5; }
  .contact .contact__bg img { height: auto; aspect-ratio: 1199 / 1600; -webkit-mask-image: radial-gradient(ellipse 60% 55% at 57% 33%, #000 42%, transparent 100%); mask-image: radial-gradient(ellipse 60% 55% at 57% 33%, #000 42%, transparent 100%); }
}
:root .contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
:root .contact__left { grid-column: 1 / span 5; display: flex; flex-direction: column; container-type: inline-size; min-width: 0; }
:root .contact__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 36px; }
:root .contact__head :is(h1, h2) { margin: -.097em 0 0; font-size: 25.4cqi; line-height: .88; color: var(--white); }
:root .contact__head p { margin: 0; color: rgba(255, 255, 255, .9); font-size: 19px; max-width: 520px; }
:root .contact ul.is-style-contacts { margin-top: 30px; color: var(--white); }
:root .form-card { grid-column: 7 / span 6; display: flex; flex-direction: column; background: var(--white); color: var(--ink); padding: clamp(24px, 3.4vw, 44px); }
@media (max-width: 1100px) {
  :root .contact__left, :root .form-card { grid-column: 1 / -1; }
  :root .contact.zone { padding-top: clamp(280px, 52vw, 420px); }
  :root .contact__head :is(h1, h2) { font-size: clamp(56px, 15vw, 140px); }
  :root .contact .contact__bg { top: -70px; bottom: auto; width: 100%; height: calc(clamp(280px, 52vw, 420px) + 160px); }
  .contact .contact__bg img { object-position: 50% 18%; -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
}
@media (max-width: 640px) {
  :root .contact.zone { padding-top: min(78vw, 330px); padding-bottom: 40px; }
  :root .contact .contact__bg { top: -60px; height: calc(min(78vw, 330px) + 150px); }
  :root .contact__grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  :root .contact__head { gap: 12px; margin-bottom: 0; }
  :root .contact__head :is(h1, h2) { font-size: 25.4cqi; }
  :root .contact__head p { font-size: 17px; }
  :root .contact ul.is-style-contacts { display: block; justify-items: stretch; margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, .3); }
  :root .contact ul.is-style-contacts > li { border-bottom: 1px solid rgba(255, 255, 255, .3); line-height: 1.6; }
  .contact ul.is-style-contacts a, .contact ul.is-style-contacts li:not(:has(a)) { display: flex; width: 100%; min-height: 53px; gap: 14px; }  /* + the 1px rule under the row = 54 */
  .contact ul.is-style-contacts li:not(:has(a)) { min-height: 54px; }  /* a row without a link carries its own rule */
  .contact ul.is-style-contacts a[target="_blank"]::after { content: ""; width: 16px; height: 16px; margin-left: auto; opacity: .8; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11 11 5M6.5 5H11v4.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11 11 5M6.5 5H11v4.5'/%3E%3C/svg%3E") center / contain no-repeat; }
  :root .form-card { padding: 24px 20px; }
}

/* The form (Contact Form 7; the markup comes from the form template) */
.form-card .wpcf7, .form-card .wpcf7-form { flex: 1; display: flex; flex-direction: column; }
.form-card .wpcf7-form > .form { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr auto; gap: 18px; }
.form .field { display: flex; flex-direction: column; gap: 8px; }
.form .field--full { grid-column: 1 / -1; }
.form .field label { font-weight: 600; font-size: 14.5px; }
.form .field label i { font-style: normal; color: var(--rust); }
.form .wpcf7-form-control-wrap { display: flex; flex-direction: column; flex: 1; }
.form .field input, .form .field textarea { width: 100%; box-sizing: border-box; border: 1.5px solid var(--line); border-radius: 0; background: var(--fog); font: 400 17px/1.4 var(--body); color: var(--ink); padding: 14px 16px; transition: border-color .25s, background .25s; }
/* height 0 + flex: the rows="10" of the field never sets the card height; the field takes the free height, at least 150px */
.form .field textarea { flex: 1; min-height: 150px; height: 0; resize: vertical; }
.form .field--full .wpcf7-form-control-wrap { min-height: 0; }
/* Required fields keep room for their error line, so the rows do not jump when one appears */
.form .field:has([aria-required="true"]) { padding-bottom: 8px; }
.form .field:has(.wpcf7-not-valid-tip) { padding-bottom: 0; }
.form .field input:focus, .form .field textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.form .wpcf7-not-valid { border-color: var(--rust) !important; background: #FBF1EC !important; }
.form .wpcf7-not-valid-tip { margin-top: 8px; color: var(--rust-deep); font-size: 13.5px; font-weight: 500; }
.form .form__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form .form__foot small { color: var(--grey); font-size: 13.5px; max-width: 320px; }
.form .form__foot small a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form .form__foot small a:hover { color: var(--rust); }
.form .wpcf7-submit.btn { display: inline-flex; align-items: center; cursor: pointer; padding: 14px 22px; border: 0; border-radius: 0; background: var(--rust); color: var(--white); font: 600 15px/1 var(--body); transition: background .25s; }
.form .wpcf7-submit.btn:hover { background: var(--ink); }
.form-card .wpcf7-spinner { position: absolute; margin: 0; }
.form-card .wpcf7-response-output { margin: 18px 0 0 !important; padding: 12px 14px !important; border: 0 !important; background: #FBF1EC; color: var(--rust-deep); font-size: 14.5px; font-weight: 500; }
.form-card .wpcf7 form.sent .wpcf7-response-output { background: var(--fog); color: var(--ink); }
.form-card .wpcf7 form.sent > .form { display: none; }
@media (max-width: 560px) { .form-card .wpcf7-form > .form { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .form-card .wpcf7-form > .form { gap: 16px; }
  .form .field input, .form .field textarea { padding: 13px 14px; font-size: 16px; }
  .form .field textarea { min-height: 140px; }
  .form .form__foot { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 4px; }
  .form .form__foot .wpcf7-submit { order: -1; justify-content: center; min-height: 54px; font-size: 16px; width: 100%; }
  .form .form__foot small { max-width: none; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Service pages: the opener (a Cover block with class "phero"). Computers: the wide photo fills the opener with the
   dark fade from the left (the cover's gradient overlay). Tablets and phones: the phone photo ("Nuotrauka telefonams",
   an Image block inside the cover) sits on top, the text below it.
   ===================================================================== */
:root .wp-block-cover.phero { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: flex-start; min-height: calc(min(100svh, var(--scr, 100svh)) / var(--z, 1) - var(--dg-hdr)); margin-block: 0; padding: 0; overflow: hidden; background: var(--ink); color: var(--white); }
.phero > .wp-block-cover__background { opacity: 1; }
.phero > .wp-block-cover__inner-container { box-sizing: border-box; width: 100%; max-width: var(--dg-max); margin-inline: auto; padding: clamp(64px, 7vw, 112px) var(--dg-gutter); }
:root .phero .phero__tall { display: none; margin: 0; }
:root .phero__copy { width: 66.6%; container-type: inline-size; display: flex; flex-direction: column; gap: 30px; }
:root .phero__copy > * { margin: 0; }
:root .phero h1.phero__title { margin: 0; color: var(--white); font-size: 14.4cqi; line-height: .9; text-wrap: balance; }
/* The rule under the title ends where the longer of the title and the text ends (the script sets --rule) */
:root .phero__text { position: relative; padding-top: 28px; }
.phero__text::before { content: ""; position: absolute; left: 0; top: 0; width: var(--rule, 100%); height: 2px; background: rgba(255, 255, 255, .9); }
:root .phero__text > p { margin: 0 0 30px; max-width: 50ch; font-size: var(--dg-t-lead); line-height: 1.5; letter-spacing: -.01em; color: #EDE6DF; }
:root .phero__text > .wp-block-buttons { gap: 12px; margin: 0; }
@media (max-width: 860px) {
  :root .wp-block-cover.phero { flex-direction: column; align-items: stretch; justify-content: flex-start; }
  .phero > .wp-block-cover__image-background, .phero > .wp-block-cover__background { display: none; }
  .phero > .wp-block-cover__inner-container { flex: 1; display: flex; flex-direction: column; max-width: none; padding: 0 0 clamp(48px, 6vw, 72px); }
  :root .phero .phero__tall { display: block; position: relative; flex: none; height: calc(min(100svh, var(--scr, 100svh)) / var(--z, 1) * .46); margin-bottom: 8px; }
  .phero .phero__tall img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .phero .phero__tall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 20, 18, 0) 62%, var(--ink) 100%); pointer-events: none; }
  :root .phero__copy { width: calc((100% - 2 * var(--dg-gutter)) * .82); margin: auto var(--dg-gutter); }
}
@media (max-width: 640px) {
  :root .wp-block-cover.phero { min-height: calc(min(100svh, var(--scr, 100svh)) - var(--dg-hdr)); }
  .phero > .wp-block-cover__inner-container { padding-bottom: 40px; }
  :root .phero .phero__tall { margin-bottom: 4px; }
  :root .phero__copy { width: calc(100% - 2 * var(--dg-gutter)); gap: 22px; }
  :root .phero__text { padding-top: 20px; }
  :root .phero__text > p { margin-bottom: 22px; }
  :root .phero__text > .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
  :root .phero__text .wp-block-button__link { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 52px; font-size: 16px; }
}

/* =====================================================================
   "Kas yra UGC?": the text on the left; one video in a phone on the right, as tall as the text, with a hand note
   ===================================================================== */
:root .what { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 44px; align-items: stretch; }
:root .what__main { grid-column: 1 / span 7; display: flex; flex-direction: column; gap: 34px; }
:root .what__main > * { margin: 0; }
:root h2.what__q { margin: 0; font-size: var(--dg-t-h2); line-height: .96; color: var(--ink); }
:root .what__lead { margin: 0; font-weight: 500; font-size: var(--dg-t-lead); line-height: 1.5; letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; }
.what__lead mark { white-space: nowrap; }
:root .what__label { margin: 0 0 6px; font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
:root .what__forms ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
:root .what__forms li { position: relative; margin: 0; padding: 12px 0 11px 22px; border-bottom: 1px solid var(--line); font-weight: 500; font-size: var(--dg-t-body); line-height: 1.6; color: #3A3430; }
.what__forms li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 8px; background: var(--rust); }
:root .what__key { margin: 0; max-width: 40ch; padding-left: 22px; border-left: 2px solid var(--rust); font-weight: 500; font-size: var(--dg-t-lead); line-height: 1.5; letter-spacing: -.01em; color: var(--ink); }
:root .what__more { margin: 0; max-width: 56ch; font-size: var(--dg-t-body); line-height: 1.6; color: #4A4440; }
:root .what__video { grid-column: 9 / span 4; position: relative; align-self: stretch; display: block; margin: 0; container-type: size; }
:root .what__video figure.is-style-phone { position: absolute; top: 0; bottom: 0; right: 0; height: 100%; width: fit-content; box-sizing: border-box; }
.what__video .is-style-phone > a { height: 100%; width: auto; }
.what__video .dg-play { min-width: 58px; height: 58px; padding: 0 20px; }
.what__video .dg-play svg { width: 18px; height: 18px; }
.what__video .dg-play::after { font-size: 18px; }
/* The note ends where the hand-drawn arrow reaches the phone (same right edge as in the design: the phone width + 24.8px) */
:root .what__video .what__note { position: absolute; bottom: 18px; right: calc(46.1538cqh + 24.7692px); width: max-content; display: flex; flex-direction: row; align-items: flex-end; text-align: right; }
.what__note .hand-text { white-space: nowrap; }
.what__note .dg-arrow { align-self: flex-start; margin: 0 0 -8px; }
@media (min-width: 861px) and (max-width: 1240px) { :root .what__video .what__note { display: none; } }
@media (max-width: 1100px) { :root .what__video { grid-column: 8 / span 5; } }
@media (max-width: 860px) {
  :root .what { grid-template-columns: minmax(0, 1fr); gap: 44px; align-items: start; }
  :root .what__main, :root .what__video { grid-column: 1; }
  :root .what__video { position: static; max-width: 340px; display: flex; flex-direction: column; gap: 18px; container-type: normal; }
  :root .what__video figure.is-style-phone { position: relative; height: auto; width: auto; max-width: 330px; }
  .what__video .is-style-phone > a { height: auto; width: 100%; }
  /* 12px: in the design the note sits on a text line under the phone (inline in its caption), which drops it by 12px */
  :root .what__video .what__note { position: static; width: auto; margin-top: 12px; align-self: flex-start; flex-direction: row-reverse; align-items: flex-start; text-align: left; }
  .what__note .dg-arrow { transform: rotate(180deg); margin: -26px 0 0; align-self: flex-start; }
}
@media (max-width: 640px) {
  :root .what__main { gap: 26px; }
  :root .what__key { padding-left: 16px; }
  :root .what__video { display: none; }
}

/* =====================================================================
   UGC examples: a heading per category, then a sliding row of videos (4 in view on computers). Over each video the
   brand · product (ochre caps) and the format; under it Ieva's note after a hairline.
   ===================================================================== */
:root .ugc-cat + .ugc-cat { margin-top: clamp(48px, 5vw, 80px); }
:root h3.ugc-cat__title { margin: 0 0 22px; font: 800 var(--dg-t-h3)/1 var(--display); font-stretch: 75%; text-transform: uppercase; color: var(--white); }
:root .phones { display: flex; gap: clamp(20px, 2.6vw, 40px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.phones::-webkit-scrollbar { display: none; }
:root .phones > .reel { flex: 0 0 calc(.25 * (100% - (3 * clamp(20px, 2.6vw, 40px)))); scroll-snap-align: start; position: relative; margin: 0; display: flex; flex-direction: column; gap: 0; }
:root .reel > * { margin: 0; }
:root .reel__head { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; min-height: calc(3.6625em + 8px); margin: 0 0 18px; text-align: center; }
:root .reel__head > p { margin: 0; }
:root .reel__brand { font: 600 14px/1.35 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ochre); text-wrap: balance; }
:root .reel__format { font: 600 clamp(16px, 1.25vw, 18px)/1.3 var(--body); color: var(--white); }
:root .reel__desc { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: var(--dg-t-body); line-height: 1.6; color: #CFC7BF; }
@media (max-width: 1100px) {
  :root .phones { padding-bottom: 6px; }
  :root .phones > .reel { flex-basis: 30%; }
}
@media (max-width: 640px) {
  :root .phones { margin-inline: calc(-1 * var(--dg-gutter)); padding: 0 var(--dg-gutter) 6px; scroll-padding-inline: var(--dg-gutter); }
  :root .phones > .reel { flex-basis: 64%; }
}

/* =====================================================================
   Why UGC: numbered reasons (an ordered list, numbers drawn by the theme), the ad test board (3 images + a hand note
   in the free cell; the winning image has the class "is-win") and the dark case card under both
   ===================================================================== */
:root .abt { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 56px 44px; align-items: start; }
:root .abt > * { margin: 0; }
:root .abt__text { grid-column: 1 / span 6; }
:root .abt__text h2 { margin: 0 0 34px; font-size: var(--dg-t-h2); line-height: .96; text-wrap: balance; }
:root ol.abt__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: dg-abt; }
:root ol.abt__list > li { position: relative; margin: 0; min-height: 81px; padding: 24px 0 24px 82px; border-bottom: 1px solid var(--line); font-size: var(--dg-t-lead); line-height: 1.5; letter-spacing: -.01em; color: var(--ink); counter-increment: dg-abt; }
ol.abt__list > li::before { content: counter(dg-abt, decimal-leading-zero); position: absolute; left: 0; top: 24px; font: 800 40px/.8 var(--display); font-stretch: 75%; color: var(--rust); }  /* the row is at least as tall as the number: 32 + 2 x 24 + the 1px rule */
ol.abt__list strong { font-weight: 600; color: var(--rust); }
:root .abt__board { grid-column: 8 / span 5; position: relative; padding: 22px; background: var(--fog); }
:root .abt__label { margin: 0 0 16px; font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
:root .abt__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
:root .abt__grid > * { margin: 0; }
:root figure.wp-block-image.abt__card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
:root .abt__card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 50%; background: #262220; outline: 3px solid transparent; outline-offset: 3px; filter: grayscale(.55); }
:root .abt__card figcaption { display: flex; justify-content: space-between; margin: 0; font: 600 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.abt__card figcaption strong { font-weight: 600; }
.abt__card figcaption em { font-style: normal; }
:root .abt__card.is-win img { outline-color: var(--rust); filter: none; }
:root .abt__card.is-win figcaption { color: var(--rust); }
/* The hand note in the free cell, pointing at the winner */
:root .abt__grid > .abt__note { display: flex; flex-direction: column-reverse; align-items: flex-start; justify-content: flex-start; gap: 6px; align-self: center; justify-self: start; margin: 0 0 26px 6px; text-align: left; transform: rotate(-4deg); }
.abt__note .dg-arrow { transform: scaleX(-1) rotate(10deg); margin: 0; }
:root .abt__case { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 44px; margin-top: 28px; padding: clamp(32px, 3.6vw, 56px); background: var(--ink); color: var(--white); }
:root .abt__case > * { margin: 0; }
:root .abt__metrics { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 6px; }
:root .abt__metrics > p { margin: 0; font: 800 clamp(64px, 7vw, 112px)/.85 var(--display); font-stretch: 75%; color: var(--white); }
:root .abt__proof { grid-column: 6 / span 7; }
:root .abt__proof h3 { margin: 0 0 18px; font-size: var(--dg-t-h3); line-height: 1; color: var(--white); }
:root .abt__proof > p { margin: 0 0 14px; font-size: var(--dg-t-body); line-height: 1.6; color: #D9D2CA; }
:root .abt__proof > .wp-block-buttons { margin-top: 26px; }  /* the text keeps its 14px: block margins collapse, so 26 gives the same 14 + 12 */
@media (max-width: 1100px) {
  :root .abt__text, :root .abt__board { grid-column: 1 / -1; }
  :root .abt__board { max-width: 620px; }
  :root .abt__metrics { grid-column: 1 / -1; flex-direction: row; gap: 32px; }
  :root .abt__proof { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  :root .abt, :root .abt__case { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  :root .abt__text, :root .abt__board, :root .abt__case, :root .abt__metrics, :root .abt__proof { grid-column: 1; }
}
@media (max-width: 640px) {
  :root .abt__board { padding: 14px; }
  :root .abt__grid { gap: 10px; }
  .abt__card figcaption em { display: none; }
  :root ol.abt__list > li { min-height: 73px; padding-left: 56px; }
  ol.abt__list > li::before { font-size: 30px; }
  :root .abt__metrics > p { font-size: 56px; }
  :root .abt__grid > .abt__note { font-size: 22px; }
  :root .abt__proof .wp-block-button { width: 100%; }
  :root .abt__proof .wp-block-button__link { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 52px; }
}

/* =====================================================================
   Process: a group "flow" of step groups ("flow__step"; the last one "flow__step--end" with a button). The theme numbers
   the steps (01, 02, ...), lays them out as a snake 3 per row (straight down on tablets and phones) and draws the line
   through them, which fills in as the visitor reads.
   ===================================================================== */
:root .flow { --node: 56px; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px clamp(28px, 3vw, 48px); margin: 0; padding: 0 56px 0 0; counter-reset: dg-step; }
.flow > div:nth-of-type(1) { grid-area: 1 / 1; } .flow > div:nth-of-type(2) { grid-area: 1 / 2; } .flow > div:nth-of-type(3) { grid-area: 1 / 3; }
.flow > div:nth-of-type(4) { grid-area: 2 / 3; } .flow > div:nth-of-type(5) { grid-area: 2 / 2; } .flow > div:nth-of-type(6) { grid-area: 2 / 1; }
.flow > div:nth-of-type(7) { grid-area: 3 / 1; } .flow > div:nth-of-type(8) { grid-area: 3 / 2; } .flow > div:nth-of-type(9) { grid-area: 3 / 3; }
/* 7 or 8 steps: 4 per row */
:root .flow:has(> div:nth-of-type(7)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flow:has(> div:nth-of-type(7)) > div:nth-of-type(4) { grid-area: 1 / 4; } .flow:has(> div:nth-of-type(7)) > div:nth-of-type(5) { grid-area: 2 / 4; }
.flow:has(> div:nth-of-type(7)) > div:nth-of-type(6) { grid-area: 2 / 3; } .flow:has(> div:nth-of-type(7)) > div:nth-of-type(7) { grid-area: 2 / 2; }
.flow:has(> div:nth-of-type(7)) > div:nth-of-type(8) { grid-area: 2 / 1; }
.flow__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow__path path { fill: none; stroke-width: 2; stroke-linejoin: round; }
.flow__path .base { stroke: #D6CFC7; }
.flow__path .fill { stroke: var(--rust); }
:root .flow__step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; counter-increment: dg-step; }
:root .flow__step > * { margin: 0; }
.flow__step::before { content: counter(dg-step, decimal-leading-zero); display: grid; place-items: center; box-sizing: border-box; width: var(--node); height: var(--node); margin-bottom: 10px; background: var(--fog); border: 2px solid var(--ink); font: 800 23px/1 var(--display); font-stretch: 75%; color: var(--ink); font-variant-numeric: tabular-nums; transition: background .35s, color .35s; }
.flow__step.is-on::before { background: var(--ink); color: var(--white); }
:root .flow__step h3 { margin: 0; font: 800 var(--dg-t-h3)/.95 var(--display); font-stretch: 75%; text-transform: uppercase; }
:root .flow__step > p { margin: 0; max-width: 42ch; font-size: var(--dg-t-body); line-height: 1.6; color: #4A4440; }
.flow__step--end::before, .flow__step--end.is-on::before { content: ""; background: var(--rust) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 24px 24px no-repeat; border-color: var(--rust); }
:root .flow__step--end h3 { color: var(--rust); }
@media (max-width: 1100px) {
  :root .flow { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 0; }
  :root .flow > div, :root .flow:has(> div:nth-of-type(7)) > div { grid-area: auto; }
  :root .flow:has(> div:nth-of-type(7)) { grid-template-columns: minmax(0, 1fr); }
  :root .flow__step { display: grid; grid-template-columns: var(--node) minmax(0, 1fr); gap: 6px 26px; }
  .flow__step::before { grid-row: span 2; margin: 0; }
  :root .flow__step h3 { padding-top: 14px; }
  :root .flow__step > .wp-block-buttons { grid-column: 2; justify-self: start; }
}
@media (max-width: 640px) {
  :root .flow { --node: 44px; gap: 28px; }
  :root .flow__step { gap: 4px 18px; }
  .flow__step::before { font-size: 19px; }
  :root .flow__step h3 { padding-top: 9px; }
  :root .flow__step > .wp-block-buttons { justify-self: stretch; }
  :root .flow__step .wp-block-button { width: 100%; }
  :root .flow__step .wp-block-button__link { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 52px; }
}

/* =====================================================================
   Price ticket: the stub (label, the price with a hand-written "nuo" in italics, small print) and the body
   ===================================================================== */
:root .ticket { --tb: var(--white); position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--white); color: var(--ink); box-shadow: 0 50px 80px -60px rgba(23, 20, 18, .55); }
:root .has-ink-background-color .ticket { --tb: var(--ink); }
:root .has-fog-background-color .ticket { --tb: var(--fog); }
:root .ticket > * { margin: 0; }
:root .ticket__stub { position: relative; padding: clamp(30px, 3.4vw, 54px); border-right: 2px dashed var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.ticket__stub::before, .ticket__stub::after { content: ""; position: absolute; right: -19px; width: 36px; height: 36px; border-radius: 50%; background: var(--tb); }
.ticket__stub::before { top: -18px; }
.ticket__stub::after { bottom: -18px; }
:root .ticket__stub > p { margin: 0; }
:root .ticket__label { font: 600 12px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
:root .ticket__price { font: 800 clamp(104px, 11.6vw, 184px)/.8 var(--display); font-stretch: 75%; letter-spacing: -.005em; text-transform: uppercase; white-space: nowrap; }
.ticket__price em { display: block; margin-bottom: 6px; font: 600 .26em/1 var(--hand); font-style: normal; text-transform: none; letter-spacing: 0; color: var(--rust); transform: rotate(-4deg); transform-origin: left; }
:root .ticket__fine { font-size: var(--dg-t-small); color: var(--grey); }
:root .ticket__body { padding: clamp(30px, 3.4vw, 54px); display: flex; flex-direction: column; gap: 22px; }
:root .ticket__body > * { margin: 0; }
:root .ticket__body h2 { margin: 0; font-size: var(--dg-t-h2); line-height: .96; text-wrap: balance; color: var(--ink); }
:root .ticket__body > p { margin: 0; font-size: var(--dg-t-body); line-height: 1.6; color: #403A36; }
:root .ticket__body > ul.is-style-ticks { font-size: var(--dg-t-body); }
:root .ticket__body > .wp-block-buttons { align-self: flex-start; margin-top: 6px; }
@media (max-width: 1100px) {
  :root .ticket { grid-template-columns: minmax(0, 1fr); }
  :root .ticket__stub { border-right: 0; border-bottom: 2px dashed var(--line); }
  .ticket__stub::before, .ticket__stub::after { top: auto; right: auto; bottom: -19px; }
  .ticket__stub::before { left: -18px; }
  .ticket__stub::after { right: -18px; }
}
@media (max-width: 640px) {
  :root .ticket__stub, :root .ticket__body { padding: 28px 22px; }
  :root .ticket__price { font-size: 30vw; }
  :root .ticket__body > .wp-block-buttons { align-self: stretch; }
  :root .ticket__body .wp-block-button { width: 100%; }
  :root .ticket__body .wp-block-button__link { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 52px; }
}

/* =====================================================================
   Product photography kinds: an Accordion (one open at a time, opens on hover on computers). On computers the open
   kind's photo shows in a framed picture on the right (the theme builds it from the photos in the panels).
   ===================================================================== */
:root .kinds { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 44px; align-items: start; }
:root .kinds > * { margin: 0; }
:root .kinds__left { grid-column: 1 / span 6; }
:root .kinds__left .bh { margin-bottom: clamp(28px, 2.8vw, 40px); }
:root .kinds__list { margin: 0; border-top: 1px solid var(--dg-dark-line); }
:root .kinds__list > .wp-block-accordion-item { margin: 0; border-bottom: 1px solid var(--dg-dark-line); }
:root .kinds__list .wp-block-accordion-heading { margin: 0; }
:root .kinds__list .wp-block-accordion-heading__toggle { display: block; width: 100%; padding: 26px 0 22px; border: 0; background: none; color: #77706A; text-align: left; cursor: pointer; transition: color .3s; }
:root .kinds__list .wp-block-accordion-heading__toggle-title { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px; font: 800 var(--dg-t-h3)/.95 var(--display); font-stretch: 75%; letter-spacing: normal; text-transform: uppercase; text-decoration: none; }
.kinds__list .wp-block-accordion-heading__toggle-title em { font: 600 12px/1 var(--body); font-style: normal; letter-spacing: .14em; text-transform: uppercase; }
:root .kinds__list .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title { text-decoration: none; }
.kinds__list .wp-block-accordion-heading__toggle:hover, .kinds__list .is-open .wp-block-accordion-heading__toggle { color: var(--white); }
.kinds__list .is-open .wp-block-accordion-heading__toggle-title em { color: var(--ochre); }
/* The panel slides open: it stays in the layout (core hides it) with no height until its item is open */
:root .kinds__list .wp-block-accordion-panel, :root .kinds__list .wp-block-accordion-panel[hidden] { display: grid; grid-template-rows: 0fr; margin: 0; padding: 0; content-visibility: visible; transition: grid-template-rows .45s cubic-bezier(.2, .7, .2, 1); }
:root .kinds__list .is-open > .wp-block-accordion-panel { grid-template-rows: 1fr; }
:root .kinds__list .kind__inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .45s; }
:root .kinds__list .is-open .kind__inner { visibility: visible; transition: none; }
:root .kind__inner > * { margin: 0; }
:root .kind__inner > p { margin: 0 0 26px; max-width: 54ch; font-size: var(--dg-t-body); line-height: 1.6; color: #CFC8C1; }
:root .kind__inner figure.kind__img { display: none; }
/* The framed photo on the right */
:root .kinds__media { grid-column: 8 / span 5; justify-self: end; align-self: start; width: 100%; max-width: 470px; }
.kinds__media .frame { position: relative; display: flex; margin: 0; padding: 12px; aspect-ratio: 4 / 5; }
.kinds__media .vf__win { position: relative; flex: 1; overflow: hidden; background: var(--fog); }
.kinds__media .vf__win img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .6s, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.kinds__media .vf__win img.is-on { opacity: 1; transform: none; }
.kinds__media .frame i { position: absolute; width: 24px; height: 24px; border: 0 solid var(--white); }
.kinds__media .frame i:nth-of-type(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.kinds__media .frame i:nth-of-type(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.kinds__media .frame i:nth-of-type(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.kinds__media .frame i:nth-of-type(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
@media (max-width: 1100px) {
  :root .kinds__left { grid-column: 1 / span 7; }
  :root .kinds__media { grid-column: 8 / span 5; }
}
@media (max-width: 860px) {
  :root .kinds__left { grid-column: 1 / -1; }
  :root .kinds__media { display: none; }
  :root .kind__inner figure.kind__img { display: block; margin: 0 0 18px; }
  .kind__inner figure.kind__img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
}
@media (max-width: 640px) {
  :root .kinds { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* The process on a dark band */
.has-ink-background-color .flow__step::before { background: var(--ink); border-color: #F1EBE5; color: #F1EBE5; }
.has-ink-background-color .flow__step.is-on::before { background: #F1EBE5; color: var(--ink); }
.has-ink-background-color .flow__step--end::before, .has-ink-background-color .flow__step--end.is-on::before { background-color: var(--rust); border-color: var(--rust); }
:root .has-ink-background-color .flow__step h3 { color: var(--white); }
:root .has-ink-background-color .flow__step--end h3 { color: var(--ochre); }
:root .has-ink-background-color .flow__step > p { color: #B8B0A9; }
.has-ink-background-color .flow__path .base { stroke: #3A3430; }

/* =====================================================================
   Portrait sessions: a group "sess" holding a group "sess__track" with one Gallery block per session; each gallery's
   caption is the session name. The theme turns the captions into tabs (with the photo count), adds the arrows, and
   the active tab follows the scroll. A click on a photo opens all sessions' photos large.
   ===================================================================== */
:root .sess > .sess__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.sess__tabs button { display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); background: transparent; color: #4A4440; font: 600 15px/1 var(--body); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.sess__tabs button span { font-size: var(--dg-t-small); font-weight: 500; color: var(--grey); }
.sess__tabs button:hover { border-color: var(--ink); color: var(--ink); }
.sess__tabs button[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.sess__tabs button[aria-current="true"] span { color: var(--ochre); }
:root .sess { margin: 0; }
:root .sess > * { margin: 0; }
:root .sess__track { display: flex; gap: clamp(40px, 4vw, 64px); margin: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.sess__track::-webkit-scrollbar { display: none; }
:root .sess__track > .wp-block-gallery.sess__group { position: relative; display: flex; flex: 0 0 auto; flex-wrap: nowrap; gap: 10px; margin: 0; }
:root .sess__group.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { flex: 0 0 auto; width: auto; height: clamp(380px, 38vw, 580px); aspect-ratio: 2 / 3; margin: 0; overflow: hidden; background: #262220; scroll-snap-align: start; cursor: zoom-in; }
:root .sess__group.wp-block-gallery.has-nested-images figure.wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.sess__group figure.wp-block-image:hover img { transform: scale(1.04); }
:root .sess__group.wp-block-gallery > figcaption.blocks-gallery-caption { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sess__group + .sess__group::before { content: ""; position: absolute; left: calc(-.5 * clamp(40px, 4vw, 64px)); top: 12%; bottom: 12%; width: 1px; background: var(--line); }
@media (max-width: 640px) {
  :root .sess > .sess__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--dg-gutter)); padding-inline: var(--dg-gutter); }
  .sess__tabs button { flex: 0 0 auto; min-height: 44px; padding: 11px 14px; }
  :root .sess__track { margin-inline: calc(-1 * var(--dg-gutter)); padding-inline: var(--dg-gutter); scroll-padding-inline: var(--dg-gutter); }
  :root .sess__group.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { height: auto; width: 72vw; }
}

/* =====================================================================
   Social media: the content plan (a Table with class "plan__table": a cell holds the day number and the format letter
   from the key, K, R or S; the theme colours the squares and fills them in day by day) next to the text
   ===================================================================== */
:root .grow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 44px; align-items: start; }
:root .grow > * { margin: 0; }
:root .grow .plan { grid-column: 1 / span 5; width: 100%; max-width: 520px; padding-top: 8px; }
:root .plan > * { margin: 0; }
:root .plan__cap { margin: 0 0 16px; font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--rust); }
:root figure.plan__table { margin: 0; overflow: visible; }
:root .plan__table table { display: block; width: 100%; border: 0; border-collapse: separate; }
:root .plan__table thead, :root .plan__table tbody { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; border: 0; }
:root .plan__table thead { margin-bottom: 10px; }
:root .plan__table tr { display: contents; }
:root .plan__table th { padding: 0; border: 0; font: 600 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); text-align: center; }
:root .plan__table td { position: relative; display: block; aspect-ratio: 1 / 1; padding: 6px 7px; border: 1px solid #E2DBD3; background: transparent; font: 600 11px/1 var(--body); color: #A39B94; text-align: left; vertical-align: top; transition: background .35s, border-color .35s, box-shadow .35s, color .35s; }
.plan__table td.on { border-color: #B8B0A9; }
.plan__table td.k.on { background: var(--ochre); border-color: var(--ochre); color: var(--ink); }
.plan__table td.r.on { background: var(--rust); border-color: var(--rust); color: var(--white); }
.plan__table td.s.on { background: #DDD5CC; border-color: #DDD5CC; color: var(--ink); }
.plan__table td.now { box-shadow: 0 0 0 2px var(--ink); }
:root ul.plan__key { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; padding: 0; list-style: none; font-size: var(--dg-t-small); color: #4A4440; }
:root ul.plan__key > li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
ul.plan__key > li::before { content: ""; width: 14px; height: 14px; border: 1px solid #DDD5CC; background: #DDD5CC; }
ul.plan__key > li:nth-child(1)::before { background: var(--ochre); border-color: var(--ochre); }
ul.plan__key > li:nth-child(2)::before { background: var(--rust); border-color: var(--rust); }
:root .grow__text { grid-column: 7 / span 6; padding-top: 0; }
:root .grow__text > * { margin: 0; }
:root .grow__text h2 { margin: 0 0 26px; font-size: var(--dg-t-h2); line-height: .96; text-wrap: balance; color: var(--ink); }
:root .grow__text > p.grow__big { margin: 0 0 24px; font-weight: 500; font-size: var(--dg-t-lead); line-height: 1.5; letter-spacing: -.01em; color: var(--ink); text-wrap: pretty; }
:root .grow__text > p:not(.grow__big) { margin: 0 0 22px; max-width: 56ch; font-size: var(--dg-t-body); line-height: 1.6; color: #4A4440; }
:root .grow__text > .wp-block-buttons { margin-top: 32px; }  /* the text keeps its 22px: block margins collapse, so 32 gives the same 22 + 10 */
@media (max-width: 1100px) {
  :root .grow { grid-template-columns: minmax(0, 1fr); }
  :root .grow .plan { grid-column: 1; order: 2; margin-top: 12px; }
  :root .grow__text { grid-column: 1; }
}

/* =====================================================================
   Social media prices: the audit card (dark), the monthly packages (a Table with class "ptable"; on phones the
   cards in the group "pcards" instead) and the small print
   ===================================================================== */
:root .prices { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
:root .prices > * { margin: 0; }
:root h3.price-group { display: flex; flex-direction: column; gap: 10px; margin: 0; font: 800 var(--dg-t-h3)/.95 var(--display); font-stretch: 75%; text-transform: uppercase; }
h3.price-group em { font: 600 12px/1.3 var(--body); font-style: normal; letter-spacing: .14em; text-transform: uppercase; }
:root .audit { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: 20px; padding: clamp(28px, 2.8vw, 40px); background: var(--ink); color: var(--white); }
:root .audit > * { margin: 0; }
:root .audit h3.price-group { color: var(--white); }
.audit h3.price-group em { color: var(--ochre); }
:root .audit__price { margin: 0; font: 800 clamp(84px, 8vw, 128px)/.82 var(--display); font-stretch: 75%; }
.audit__price em { display: block; margin-top: 14px; font: 500 14px/1.4 var(--body); font-style: normal; color: #B8B0A9; }
:root .audit ul.is-style-ticks { font-size: var(--dg-t-body); color: #E3DDD7; }
:root .audit > .wp-block-buttons { margin-top: auto; align-self: flex-start; }
:root .packs { grid-column: 5 / span 8; display: flex; flex-direction: column; gap: 0; background: var(--white); }
:root .packs > * { margin: 0; }
:root .packs h3.price-group { padding: 26px 18px 6px; color: var(--ink); }
.packs h3.price-group em { color: var(--rust); }
:root figure.ptable { margin: 0; overflow: visible; }
:root .ptable table { width: 100%; border: 0; border-collapse: collapse; background: var(--white); }
:root .ptable :is(thead, tbody, tfoot) { border: 0; }
:root .ptable :is(th, td) { padding: 16px 18px; border: 0; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
:root .ptable :is(th, td):nth-child(3) { background: #FBF7F0; }
:root .ptable thead th { padding-top: 26px; padding-bottom: 20px; vertical-align: bottom; font: 800 clamp(42px, 3.8vw, 58px)/.86 var(--display); font-stretch: 75%; color: var(--ink); white-space: nowrap; }
:root .ptable thead th:first-child { text-align: left; font: 600 12px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); white-space: normal; }
.ptable thead th strong { display: block; margin-bottom: 8px; font: 600 12px/1 var(--body); letter-spacing: .16em; color: var(--grey); }
.ptable thead th em { margin-left: .12em; font-size: .38em; font-style: normal; color: var(--grey); }
:root .ptable tbody th { text-align: left; font-weight: 500; font-size: 15.5px; color: #3A3430; }
:root .ptable tbody td { font: 800 30px/1 var(--display); font-stretch: 75%; color: var(--ink); }
.ptable tbody td.yes svg { width: 22px; height: 22px; fill: none; stroke: var(--rust); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ptable tbody tr:hover > * { background: #FBFAF8; }
:root .ptable tfoot td { padding-top: 20px; padding-bottom: 24px; border-bottom: 0; }
.ptable tfoot a { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 14px 22px; background: var(--ink); color: var(--white); text-decoration: none; font: 600 15px/1 var(--body); transition: background .25s; }
.ptable tfoot a:hover { background: var(--rust); }
:root .pcards { display: none; }
:root .prices__note { grid-column: 1 / -1; margin: 6px 0 0; font-size: var(--dg-t-small); color: var(--grey); }
@media (max-width: 1100px) {
  :root .audit, :root .packs { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root .prices { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  :root .audit > .wp-block-buttons { align-self: stretch; }
  :root .packs { background: none; }
  :root .packs h3.price-group { padding: 0 0 10px; }
  :root figure.ptable { display: none; }
  :root .pcards { display: grid; gap: 14px; }
  :root .pcards > * { margin: 0; }
  :root .pcard { background: var(--white); border: 1px solid var(--line); }
  :root .pcard > * { margin: 0; }
  :root .pcard__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
  :root .pcard__head > p { margin: 0; }
  :root .pcard__name { font: 600 12px/1 var(--body); letter-spacing: .16em; color: var(--grey); }
  :root .pcard__price { font: 800 46px/.86 var(--display); font-stretch: 75%; white-space: nowrap; }
  .pcard__price em { font-size: .38em; font-style: normal; color: var(--grey); }
  :root ul.pcard__list { margin: 0; padding: 6px 20px; list-style: none; }
  :root ul.pcard__list > li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  :root ul.pcard__list > li:last-child { border-bottom: 0; }
  .pcard__list strong { font: 800 22px/1 var(--display); font-stretch: 75%; text-align: right; }
  :root .pcard > p { margin: 0; padding: 0 20px 6px; font-size: var(--dg-t-small); color: var(--grey); }
  :root .pcard > .wp-block-buttons { margin: 12px 20px 20px; }
}

/* =====================================================================
   About page ("Apie mane"): the opener (photo + text, the first screen), skills, the early path (a filmstrip),
   marketing experience (job cards, the newest on the right) and the light services band
   ===================================================================== */
:root .about.about--page { padding-block: clamp(28px, 3.4vw, 52px) clamp(64px, 7vw, 110px); border-top: 0; }
:root .about--page .about__grid { min-height: calc(min(100svh, var(--scr, 100svh)) / var(--z, 1) - var(--dg-hdr) - clamp(28px, 3.4vw, 52px) - clamp(64px, 7vw, 110px)); }
:root .about--page .about__text { container-type: inline-size; }
:root .about--page .about__text h1 { margin: 0 0 28px; font-size: 18.95cqi; line-height: .9; }
:root .about--page .about__text > p { font-size: var(--dg-t-body); line-height: 1.6; }
:root .about--page ul.about__list { margin: 4px 0 22px; font-size: var(--dg-t-body); }
:root .about--page .about__text > .wp-block-buttons.about__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
:root .about--page .clients { margin-top: 44px; }
@media (max-width: 860px) {
  :root .about--page .about__grid { min-height: 0; }
}
@media (max-width: 640px) {
  :root .about--page .about__grid { container-type: inline-size; }
  :root .about--page .about__text { container-type: normal; }
  :root .about--page .about__text h1 { order: 1; margin: 0 0 26px; font-size: 14.4cqi; text-wrap: balance; }
  :root .about--page .about__text > .wp-block-buttons.about__cta { order: 3; flex-direction: column; }
  :root .about--page .about__cta .wp-block-button__link { display: flex; justify-content: center; align-items: center; min-height: 54px; padding: 14px 22px; font-size: 16px; }
}

/* Skills: the list on the left, "Mano stiprybė" on the right with a hand-drawn loop around it (drawn once, on sight) */
:root .skills { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 44px; align-items: start; margin: 0; }
:root .skills > * { margin: 0; }
:root .skills__main { grid-column: 1 / span 6; }
:root .skills__main h2 { margin: 0 0 26px; font-size: var(--dg-t-h2); line-height: .96; }
:root ul.skills__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--dg-dark-line); }
:root ul.skills__list > li { display: flex; align-items: baseline; gap: 18px; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--dg-dark-line); font-weight: 500; font-size: var(--dg-t-body); line-height: 1.6; }
ul.skills__list > li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--ochre); transform: translateY(-.15em); }
:root .skills__side { position: relative; grid-column: 8 / span 5; align-self: center; }
:root .skills__side .strength { margin: 0; font-weight: 500; font-size: var(--dg-t-lead); line-height: 1.5; letter-spacing: -.01em; color: #F1EBE5; }
.strength strong { font-weight: 600; color: var(--ochre); }
.hand-loop { position: absolute; left: -58px; top: -58px; width: calc(100% + 86px); height: calc(100% + 120px); overflow: visible; pointer-events: none; }
.hand-loop path { fill: none; stroke: var(--ochre); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.45, .05, .25, 1) .25s; }
.is-drawn > .hand-loop path { stroke-dashoffset: 0; }
@media (max-width: 1100px) {
  :root .skills__main, :root .skills__side { grid-column: 1 / -1; }
  .hand-loop { display: none; }
}
@media (max-width: 640px) {
  :root .skills { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  :root ul.skills__list > li { padding: 14px 0; }
}

/* Sliding rows of the about page (the path and the jobs): the theme adds the arrows into "path" / "xp" */
:root .path, :root .xp { position: relative; margin: 0; }
:root :is(.path__track, .xp__track) { display: flex; margin: 0 calc(-1 * var(--dg-gutter)); padding: 0 var(--dg-gutter); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--dg-gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
:is(.path__track, .xp__track)::-webkit-scrollbar { display: none; }
.has-ink-background-color .trk__nav { background: var(--white); color: var(--ink); }

/* The early path: a filmstrip of years */
:root .path__track { gap: 0; }
:root .step { flex: 0 0 300px; display: flex; flex-direction: column; gap: 16px; margin: 0; padding-right: 20px; scroll-snap-align: start; }
:root .step > * { margin: 0; }
:root .step__year { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; font: 800 50px/.8 var(--display); font-stretch: 75%; letter-spacing: -.005em; text-transform: uppercase; color: var(--rust); }
.step__year::after { content: ""; flex: 1; height: 1px; margin-right: -20px; background: #CFC6BC; }
:root figure.wp-block-image.step__img { position: relative; display: block; margin: 0; overflow: hidden; background: #262220; cursor: zoom-in; }
:root .step__img > a, :root .job__media figure > a { display: block; }  /* a video: the photo inside its (inactive) YouTube link */
:root .step__img img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.step__img:hover img { transform: scale(1.04); }
:root .step__img figcaption, :root .job__media figcaption { display: none; }
.step__img.is-video::after { content: ""; position: absolute; inset: 0; background: rgba(23, 20, 18, .22); pointer-events: none; }
.step__img .dg-play { min-width: 50px; height: 50px; padding: 0 17px; }
.step__img:hover .dg-play { background: var(--ink); }
.step__img:hover .dg-play::after { max-width: 90px; margin-left: 10px; }
:root .step__text { margin: 0; font-size: var(--dg-t-body); line-height: 1.6; color: #3A3430; }
:root .step--end { flex: 0 0 440px; }
.step--end .step__year::after { margin-right: 0; }
:root .step__note { flex: none; display: flex; align-items: center; height: 350px; padding: 8px 0 8px 26px; border-left: 2px solid var(--rust); }
:root .step__note > p { margin: 0; font-size: var(--dg-t-lead); line-height: 1.5; letter-spacing: -.01em; color: var(--ink); }

/* Marketing experience: job cards; a card only partly in view is a step (blurred; a click brings it in) */
:root .xp__track { gap: 24px; align-items: stretch; }
:root .job { flex: 0 0 calc(100% - 110px); display: flex; flex-direction: column; gap: 16px; margin: 0; scroll-snap-align: end; }
:root .job > * { margin: 0; }
:root .job__year { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; font: 800 50px/.8 var(--display); font-stretch: 75%; letter-spacing: -.005em; text-transform: uppercase; color: var(--ochre); }
.job__year::after { content: ""; flex: 1; height: 1px; margin-right: -24px; background: var(--dg-dark-line); }
:root .job__card { flex: 1; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); color: var(--ink); cursor: default; }
:root .job__card > * { margin: 0; }
.job .job__card, .job .job__year { transition: filter .4s, opacity .4s; }
.job.is-side .job__card, .job.is-side .job__year { filter: blur(3px); opacity: .45; }
.job.is-side .job__card { cursor: pointer; }
.job.is-side .job__card > * { pointer-events: none; }
:root .job__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 30px; border-bottom: 1px solid var(--line); }
:root .job__top > p { margin: 0; }
:root .job__time { font: 800 22px/1 var(--display); font-stretch: 75%; letter-spacing: .02em; color: var(--rust); font-variant-numeric: tabular-nums; }
:root .job__now { display: inline-flex; align-items: center; gap: 8px; font: 600 11.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.job__now::before { content: ""; width: 7px; height: 7px; background: var(--rust); }
:root .job__body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 28px 30px 30px; }
:root .job__body > *, :root .job__info > * { margin: 0; }
:root .job__info h3.job__role { margin: 0; font: 800 var(--dg-t-h3)/.95 var(--display); font-stretch: 75%; text-transform: uppercase; text-wrap: balance; color: var(--ink); }
:root .job__org { margin: 12px 0 0; font-weight: 600; }
.job__org a { color: var(--ink); text-decoration: underline 1px; text-underline-offset: 4px; }
.job__org a:hover { color: var(--rust); }
.job__org em { display: block; margin-top: 2px; font-style: normal; font-weight: 400; font-size: var(--dg-t-small); color: var(--grey); }
:root .job__clients { margin: 18px 0 0; font-size: var(--dg-t-small); color: #4A4440; }
.job__clients strong { display: block; margin-bottom: 4px; font: 600 11.5px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
:root .job__desc { font-size: var(--dg-t-body); line-height: 1.6; color: #3A3430; }
:root .job__desc ul.is-style-ticks { gap: 10px; }
/* The photos of a job: 3 per row, at most 6 shown; the 6th says how many more there are */
:root .job__info .wp-block-gallery.job__media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 24px 0 0; }
/* !important: core sets a 50% width for a gallery of exactly 2 photos with a stronger selector (Socialdrum) */
:root .job__media.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { position: relative; width: auto !important; margin: 0; overflow: hidden; background: var(--fog); cursor: zoom-in; }
:root .job__media.wp-block-gallery.has-nested-images figure.wp-block-image img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.job__media figure.wp-block-image:hover img { transform: scale(1.04); }
:root .job__media.wp-block-gallery.has-nested-images figure.is-extra:not(#individual-image) { display: none; }
.job__media .more { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: rgba(23, 20, 18, .62); color: var(--white); font: 800 34px/1 var(--display); font-stretch: 75%; pointer-events: none; }
.job__media .is-video::after { content: ""; position: absolute; inset: 0; background: rgba(23, 20, 18, .28); pointer-events: none; }
.job__media .is-video .dg-play { width: 40px; min-width: 0; height: 40px; padding: 0; }
.job__media .is-video .dg-play svg { width: 13px; height: 13px; }
.job__media .is-video .dg-play::after { display: none; }
.job__media .is-video:hover .dg-play { background: var(--ink); }
@media (max-width: 1100px) {
  :root .job { flex-basis: calc(100% - 60px); }
  :root .job__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root .step { flex-basis: 76%; }
  :root .step__year, :root .job__year { font-size: 40px; }
  :root .step--end { flex-basis: 84%; }
  :root .step__note { flex: 1; height: auto; }
  :root .xp__track { align-items: flex-start; overflow-y: hidden; transition: height .3s ease; }   /* height: the job in view (site.js) */
  :root .job { flex-basis: calc(100% - 28px); }
  .job.is-side .job__card, .job.is-side .job__year { filter: none; opacity: .5; }
  :root .job__card, :root .job__body { flex: none; }
  :root .job__top { padding: 14px 18px; }
  :root .job__time { font-size: 19px; }
  :root .job__now { font-size: 12px; }
  :root .job__body { align-content: start; gap: 18px; padding: 20px 18px; }
  :root .job__info .wp-block-gallery.job__media { margin-top: 20px; }
  /* The arrows sit at the right end of the year row, clear of the card text */
  :root :is(.xp, .path) > .trk__nav { top: -62px; margin-top: 0; width: 44px; height: 44px; }
  :is(.xp, .path) > .trk__nav--prev { left: auto; right: 50px; }
  :is(.xp, .path) > .trk__nav--next { right: 0; }
}

/* The services band in light colours (a group "services-light" around the synced "Paslaugos" block) */
:root .services-light { margin-block: 0; }
:root .services-light .services.has-ink-background-color { background-color: var(--white) !important; color: var(--ink); border-top: 1px solid var(--line); }
.services-light .services__title h2 { color: var(--ink); }
:root .services-light .services__title p.is-style-note-long { color: var(--rust); }
:root .services-light .services__intro { color: var(--grey); }
:root .services-light .svc__card p { color: #5A534E; }
.services-light .svc__card:hover h3 a, .services-light .svc__card h3 a:focus-visible { color: var(--rust); }
.services-light .svc__card .wp-block-image { background: var(--fog); }

/* =====================================================================
   Contact page: the contact band is the page (title h1, plus the location row)
   ===================================================================== */
@media (min-width: 1101px) {
  :root .contact.contact--page.zone { padding-top: clamp(28px, 3vw, 44px); }
}
@media (max-width: 640px) {
  :root .contact.contact--page.zone { padding-top: min(56vw, 240px); }
  :root .contact--page .contact__bg { top: -40px; height: calc(min(56vw, 240px) + 120px); }
}

/* =====================================================================
   A plain page opener (group "phero phero--solo": title, a rule, the text and a button; no photo)
   ===================================================================== */
:root .phero--solo.zone { padding-block: clamp(24px, 2.6vw, 40px) clamp(56px, 5.6vw, 88px); }
:root .phero--solo .phero__main { display: flex; flex-direction: column; justify-content: center; gap: 30px; container-type: inline-size; min-width: 0; }
:root .phero--solo .phero__main > * { margin: 0; }
:root .phero--solo h1.phero__title { margin: 0; font-size: 9.17cqi; line-height: .9; text-wrap: balance; color: var(--ink); }
:root .phero--solo .phero__text { padding-top: 28px; border-top: 2px solid var(--ink); }
.phero--solo .phero__text::before { content: none; }
:root .phero--solo .phero__text > p { color: #332E2B; }
@media (max-width: 860px) {
  :root .phero--solo h1.phero__title { font-size: 14.4cqi; }
}
@media (max-width: 640px) {
  :root .phero--solo .phero__text { padding-top: 20px; }
}

/* =====================================================================
   Privacy policy: question and answer rows across the content width
   ===================================================================== */
:root .zone.zone--tight { padding-block: clamp(60px, 6.4vw, 100px); }
:root .policy { display: block; }
:root .policy > * { margin: 0; }
:root .policy__meta { margin: 0 0 28px; font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
:root .policy__row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 44px; padding: 34px 0; border-top: 1px solid var(--line); }
:root .policy__row:last-child { border-bottom: 1px solid var(--line); }
:root .policy__row > * { margin: 0; }
:root h2.policy__q { grid-column: 1 / span 4; margin: 0; font: 800 var(--dg-t-h3)/.95 var(--display); font-stretch: 75%; text-transform: uppercase; text-wrap: balance; color: var(--ink); }
:root .policy__a { grid-column: 6 / span 7; font-size: var(--dg-t-body); line-height: 1.65; color: #3A3430; }
:root .policy__a > p { margin: 0 0 14px; }
:root .policy__a > ul { margin: 4px 0 16px; }
:root .policy__a > :last-child { margin-bottom: 0; }
.policy__a a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.policy__a a:hover { color: var(--rust); }
@media (max-width: 860px) {
  :root .policy__row { grid-template-columns: minmax(0, 1fr); padding: 26px 0; }
  :root h2.policy__q, :root .policy__a { grid-column: 1; }
}
@media (max-width: 640px) {
  :root .zone.zone--tight { padding-block: 56px; }
}

/* =====================================================================
   Blog: the posts as cards on a dark band; before the first post, the topics (the Query Loop's "no results")
   ===================================================================== */
:root .posts { margin: 0; }
:root .posts > * { margin: 0; }
:root .posts__grid.wp-block-post-template { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 20px; margin: 0; padding: 0; list-style: none; }
:root .posts__grid > li { margin: 0; }
:root .post-card { display: flex; flex-direction: column; gap: 14px; height: 100%; margin: 0; }
:root .post-card > * { margin: 0; }
:root .post-card__img { margin: 0; overflow: hidden; background: #262220; }
.post-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
:root .post-card__date { margin-top: 6px; font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--ochre); }
:root .post-card__title { margin: 0; font: 800 var(--dg-t-h3)/.95 var(--display); font-stretch: 75%; text-transform: uppercase; text-wrap: balance; color: var(--white); }
.post-card__title a { color: inherit; text-decoration: none; transition: color .3s; }
.post-card__title a:hover, .post-card__title a:focus-visible { color: var(--ochre); }
:root .post-card__text { margin: 0; font-size: 15.5px; line-height: 1.6; color: #A9A29B; }
:root .post-card__text p { margin: 0; }
:root .posts__pages { gap: 8px; margin-top: 56px; font: 600 15px/1 var(--body); }
.posts__pages a, .posts__pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid #4A4440; color: #CFC8C1; text-decoration: none; }
.posts__pages a:hover { border-color: var(--white); color: var(--white); }
.posts__pages .page-numbers.current { background: var(--white); border-color: var(--white); color: var(--ink); }
.posts__pages .page-numbers.dots { border: 0; }
@media (max-width: 1100px) { :root .posts__grid.wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { :root .posts__grid.wp-block-post-template { grid-template-columns: minmax(0, 1fr); gap: 44px; } }

/* Before the first post: why it is empty, Instagram, and the services as topics */
:root .topics { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 44px; align-items: start; margin: 0; }
:root .topics > * { margin: 0; }
:root .topics__intro { grid-column: 1 / span 5; }
:root .topics__intro > * { margin: 0; }
:root .topics__intro h2 { margin: 0 0 22px; font-size: clamp(46px, 5vw, 80px); line-height: .88; text-wrap: balance; color: var(--white); }
:root .topics__intro > p { margin: 0 0 28px; max-width: 46ch; font-size: 17.5px; line-height: 1.65; color: #BDB5AE; }
:root ul.topics__list { grid-column: 7 / span 6; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--dg-dark-line); }
:root ul.topics__list > li { margin: 0; }
.topics__list a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 24px 0 20px; border-bottom: 1px solid var(--dg-dark-line); color: var(--white); text-decoration: none; }
.topics__list strong { font: 800 clamp(34px, 3.4vw, 52px)/.9 var(--display); font-stretch: 75%; text-transform: uppercase; transition: color .25s; }
.topics__list em { font: 600 12px/1 var(--body); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: #8E8781; }
.topics__list a:hover strong { color: var(--ochre); }
@media (max-width: 1100px) { :root .topics__intro, :root ul.topics__list { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  :root .topics { grid-template-columns: minmax(0, 1fr); gap: 0; }
  :root .topics__intro h2 { font-size: clamp(40px, 12vw, 54px); }
  :root ul.topics__list { margin-top: 32px; }
  .topics__list strong { font-size: 32px; }
}

/* =====================================================================
   A post and a plain page: the opener with the date (posts), the photo, then the text in a readable column
   ===================================================================== */
:root .post-head__date { margin: 0; font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
:root .post-photo.wp-block-post-featured-image { margin: 0 auto; }
.post-photo img { display: block; width: 100%; height: auto; }
:root .entry { padding-block: clamp(48px, 5vw, 80px); }
:root .entry.is-layout-constrained > :where(:not(.alignwide):not(.alignfull)) { max-width: 720px; }
:root .entry > * { margin-block: 0 1.1em; }
:root .entry > :last-child { margin-bottom: 0; }
:root .entry :where(p, li) { font-size: var(--dg-t-body); line-height: 1.7; color: #3A3430; }
:root .entry :where(h2, h3, h4) { margin-top: 1.6em; color: var(--ink); }
:root .entry h2 { font-size: clamp(32px, 3.4vw, 48px); line-height: .96; }
:root .entry h3 { font-size: var(--dg-t-h3); line-height: .95; }
:root .entry a:where(:not(.wp-element-button)) { color: var(--rust); text-decoration: underline; text-underline-offset: 3px; }
:root .entry :where(ul, ol):not([class*="is-style-"]) { padding-left: 1.2em; }
:root .entry figure { margin-block: 1.6em; }
:root .entry figcaption { margin-top: 10px; font-size: var(--dg-t-small); color: var(--grey); }
:root .entry blockquote:not(.is-style-testimonial) { margin-inline: 0; padding-left: 22px; border-left: 2px solid var(--rust); font-weight: 500; font-size: var(--dg-t-lead); line-height: 1.5; color: var(--ink); }
/* A page Ieva adds herself (template "Puslapis"): its title in the opener's style, without the rule */
:root .page-head { padding-block: clamp(24px, 2.6vw, 40px) 0; container-type: inline-size; }
:root .page-head h1 { margin: 0; font-size: 9.17cqi; line-height: .9; text-wrap: balance; }
@media (max-width: 860px) { :root .page-head h1 { font-size: 14.4cqi; } }

/* Search: the field and button in the form's style */
:root .site-search { margin: 0; }
.site-search .wp-block-search__inside-wrapper { display: flex; gap: 10px; max-width: 560px; padding: 0; border: 0; }
.site-search .wp-block-search__input { flex: 1; min-height: 50px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 0; background: var(--fog); font: 400 17px/1.4 var(--body); color: var(--ink); }
.site-search .wp-block-search__input:focus { outline: none; border-color: var(--ink); background: var(--white); }
.site-search .wp-block-search__button { margin: 0; padding: 14px 22px; border: 0; border-radius: 0; background: var(--rust); color: var(--white); font: 600 15px/1 var(--body); cursor: pointer; }
.site-search .wp-block-search__button:hover { background: var(--ink); }

/* Search with no results: the services follow on the same dark colour, so they continue the band without a second gap */
:root .posts-zone.has-ink-background-color + .services.has-ink-background-color { padding-top: 0; }
