/* ==========================================================================
   Plan Grand — one-page theme
   Design reference: Figma "plangrand" desktop 1432px / mobile 320px
   ========================================================================== */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken-grotesk-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken-grotesk-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url(../fonts/jetbrains-mono-latin.woff2) format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url(../fonts/jetbrains-mono-latin-ext.woff2) format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/geist-mono-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url(../fonts/geist-mono-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
	--blue: #2447f9;
	--purple: #c97dff;
	--green: #00753a;
	--lime: #bfff2e;
	--black: #000;
	--white: #fff;
	--line: rgba(128, 128, 128, .38);
	--line-inv: rgba(255, 255, 255, .22);

	--sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
	--mono-alt: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

	--maxw: 1280px;
	--gutter: clamp(20px, 5.3vw, 76px);
	--bar-h: 60px;
	--step: cubic-bezier(.2, .7, 0, 1);
}

.c--blue, .sq--blue { --c: var(--blue); }
.c--purple, .sq--purple { --c: var(--purple); }
.c--green, .sq--green { --c: var(--green); }
.c--lime, .sq--lime { --c: var(--lime); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar-h); }
body { margin: 0; background: var(--white); color: var(--black); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.section--white :focus-visible, .section--purple :focus-visible { outline-color: var(--black); }
::selection { background: var(--lime); color: var(--black); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 7.8vw, 112px) clamp(88px, 8.4vw, 120px); }
.section--white { background: var(--white); color: var(--black); }
.section--black { background: var(--black); color: var(--white); }
.section--green { background: var(--green); color: var(--white); }
.section--blue { background: var(--blue); color: var(--white); }
.section--purple { background: var(--purple); color: var(--black); }

.h2 { font: 300 clamp(38px, 5.87vw, 84px)/1 var(--sans); letter-spacing: -.025em; margin-top: clamp(20px, 2vw, 28px); }

/* Section label chip */
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 10.5px; border: 1px solid currentColor; font: 500 15.8px/1 var(--mono); letter-spacing: .02em; text-transform: uppercase; }
.chip--white { background: var(--white); border-color: var(--white); color: var(--black); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 12.8px; border: 0; border-radius: 0; font: 500 17.6px/1 var(--mono); letter-spacing: .02em; text-decoration: none; white-space: nowrap; transition: background-color .15s steps(2), color .15s steps(2); }
.btn--lime { background: var(--lime); color: var(--black); }
.btn--white { background: var(--white); color: var(--black); }
.btn--lime:hover, .btn--lime:focus-visible { background: var(--white); }
.btn--white:hover, .btn--white:focus-visible { background: var(--lime); }
.btn--nav { min-height: 0; padding: 6px 12px; font: 400 clamp(15px, 1.47vw, 21px)/1.2 var(--mono-alt); letter-spacing: .024em; }
.btn--lg { min-height: 48px; padding: 0 16px; font-size: clamp(17px, 1.47vw, 21.1px); }

/* Small colour square */
.sq { display: inline-block; flex: none; width: 10px; height: 10px; background: var(--c, var(--blue)); }

/* Tag: coloured square + mono label */
.tag { display: flex; align-items: center; gap: 10px; font: 400 13px/1 var(--mono); letter-spacing: .02em; }
.tag .sq { width: 12px; height: 12px; }

/* ==========================================================================
   Pixel fields — CSS squares over photos
   ========================================================================== */
.px { position: relative; overflow: hidden; background: #0b0b0b; isolation: isolate; }
.px__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.px__layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; --u: 20px; }
.px[data-px-color="blue"] { --pc: var(--blue); }
.px[data-px-color="purple"] { --pc: var(--purple); }
.px[data-px-color="green"] { --pc: var(--green); }
.px[data-px-color="lime"] { --pc: var(--lime); }
.px[data-px-color="blue-dark"] { --pc: #1b3ae6; }

.px__b {
	position: absolute;
	left: calc(var(--x) * var(--u));
	top: calc(var(--y) * var(--u));
	/* +0.6px closes sub-pixel seams between neighbouring blocks */
	width: calc(var(--w) * var(--u) + .6px);
	height: calc(var(--h) * var(--u) + .6px);
	background: var(--pc);
	transform: translate3d(calc(var(--dx, 0) * var(--u)), calc(var(--dy, 0) * var(--u)), 0);
	transition: opacity .27s steps(3, jump-none), transform .42s steps(3, jump-end);
	will-change: transform, opacity;
}
.px__b.is-off { opacity: 0; }
.px__b.is-fast { transition-duration: .12s, .42s; }
.px__tile { position: absolute; background: var(--pc); transition: opacity .2s steps(2, jump-none); }
.px__tile.is-off { opacity: 0; }
.px__t { position: absolute; width: calc(var(--u) + .6px); height: calc(var(--u) + .6px); background: var(--pc); animation: px-trail .6s steps(4, jump-none) forwards; }
@keyframes px-trail { 0% { opacity: 1; } 100% { opacity: 0; } }

/* Before JS measures: below-the-fold photos rest under a solid cover so the reveal isn't spoiled. */
.js .px:not(.is-ready):not(.hero__media) .px__img { opacity: 0; }

/* ==========================================================================
   Sticky bar + menu
   ========================================================================== */
.bar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--bar-h); display: flex; justify-content: space-between; align-items: stretch; background: var(--blue); transform: translateY(-101%); transition: transform .45s steps(5, jump-end); }
.bar.is-visible { transform: none; }
.bar__logo { display: flex; align-items: center; padding: 0 var(--gutter); }
.bar__svg { height: 40px; width: auto; }
.bar__menu { min-height: 100%; padding: 0 28px; font-size: 19px; }

.menu { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--blue); color: var(--white); overflow: auto; }
.menu[hidden] { display: none; }
.menu__px { position: absolute; inset: 0; background: transparent; z-index: 0; }
.menu__top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: stretch; height: var(--bar-h); }
.menu__top .btn { min-height: 100%; padding: 0 24px; font-size: 19px; }
.menu__nav { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: clamp(12px, 2.4vh, 24px); padding: 40px var(--gutter); }
.menu__link { display: inline-block; padding: 8px 16px; background: var(--lime); color: var(--black); font: 400 clamp(28px, 6vw, 72px)/1.1 var(--mono-alt); letter-spacing: .02em; text-decoration: none; opacity: 0; transform: translateX(-24px); }
.menu__link:nth-child(2) { margin-left: 12vw; }
.menu__link:nth-child(3) { margin-left: 26vw; }
.menu__link:nth-child(4) { margin-left: 6vw; }
.menu__link:hover, .menu__link:focus-visible { background: var(--white); }
.menu.is-open .menu__link { opacity: 1; transform: none; transition: opacity .3s steps(3, jump-none), transform .3s steps(3, jump-end); }
.menu.is-open .menu__link:nth-child(2) { transition-delay: .07s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: .14s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: .21s; }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; height: clamp(600px, 52.7vw, 920px); background: var(--blue); color: var(--white); overflow: hidden; }
.hero__brand { position: absolute; z-index: 3; left: 6.15%; top: 10%; bottom: 6.5%; display: flex; flex-direction: column; justify-content: space-between; width: 22.3%; }
.hero__logo { width: 100%; max-width: 420px; }
.hero__svg { width: 100%; height: auto; }
.hero__tagline { font: 300 clamp(20px, 2.23vw, 32px)/1.5 var(--mono-alt); letter-spacing: .01em; white-space: nowrap; }
.hero__media { position: absolute; z-index: 1; top: 0; bottom: 0; left: 38.69%; right: 1.47%; background: var(--blue); }
.hero__media .px__img { object-position: 50% 14%; }
.hero__nav { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hero__link { position: absolute; pointer-events: auto; }
.hero__link--paslaugos { left: 38.69%; top: 26.9%; }
.hero__link--portfolio { left: 49.72%; top: 34.04%; }
.hero__link--apie-mus { left: 63.83%; top: 39.2%; }
.hero__link--kontaktai { left: 80.03%; top: 26.9%; }

/* Logo + labels build in with stepped timing */
.js .hero__svg .logo__plan path, .js .hero__svg .logo__grand { animation: step-in .5s steps(4, jump-none) both; }
.js .hero__svg .logo__l2 { animation-delay: .08s; }
.js .hero__svg .logo__l3 { animation-delay: .16s; }
.js .hero__svg .logo__l4 { animation-delay: .24s; }
.js .hero__svg .logo__grand { animation-delay: .5s; }
.js .hero__link { animation: step-in .4s steps(3, jump-none) both; animation-delay: calc(.7s + var(--n, 0) * .09s); }
.js .hero__link--portfolio { --n: 1; }
.js .hero__link--apie-mus { --n: 2; }
.js .hero__link--kontaktai { --n: 3; }
.js .hero__tagline { animation: step-in .5s steps(4, jump-none) both .35s; }
@keyframes step-in { 0% { opacity: 0; } 100% { opacity: 1; } }

/* Logo "live" square: the GRAND tag nudges one pixel-step on hover */
.hero__logo:hover .logo__grand { transform: translate(-4px, 4px); transition: transform .2s steps(2); }

/* ==========================================================================
   Paslaugos
   ========================================================================== */
.services { padding-top: clamp(48px, 4.9vw, 70px); }
.services__list { margin-top: clamp(40px, 4.5vw, 64px); border-bottom: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 104px minmax(0, 544px) minmax(0, 447px); align-items: start; padding: 38px 0 40px; border-top: 1px solid var(--line); }
.service__title { font: 400 clamp(24px, 2.8vw, 40px)/1.1 var(--sans); letter-spacing: -.015em; }
.service__text { padding-top: 19px; opacity: .82; }
/* The 28px marker is four 14px pixels: one element + three box-shadows, which break apart on hover. */
.service__sq { width: 14px; height: 14px; margin: 8px 0 0 16px; background: var(--c); box-shadow: 14px 0 0 var(--c), 0 14px 0 var(--c), 14px 14px 0 var(--c); transition: box-shadow .36s steps(3, jump-end), transform .36s steps(3, jump-end); }
.service:hover .service__sq { box-shadow: 21px -7px 0 var(--c), -7px 21px 0 var(--c), 28px 28px 0 var(--c); transform: translate(0, 0); }
.service:hover .service__title { transform: translateX(10px); }
.service__title { transition: transform .3s steps(3, jump-end); }

/* ==========================================================================
   Portfolio
   ========================================================================== */
.portfolio .h2 { margin-bottom: clamp(40px, 5vw, 72px); }
.feature { display: grid; grid-template-columns: 821fr 48fr 411fr; align-items: end; margin-bottom: clamp(56px, 6.1vw, 88px); }
.feature__media { grid-column: 1; grid-row: 1; position: relative; }
.feature__info { grid-column: 3; grid-row: 1; padding-bottom: 4px; }
.feature--media-right { grid-template-columns: 411fr 48fr 821fr; }
.feature--media-right .feature__media { grid-column: 3; }
.feature--media-right .feature__info { grid-column: 1; }

.feature__track { display: grid; grid-template-columns: 541fr 270.45fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 821 / 678; }
.feature__img--main { grid-row: 1 / span 2; }
.feature__img { width: 100%; height: 100%; min-height: 0; }
.feature__count { display: none; }

.feature__title { margin-top: 20px; font: 300 clamp(32px, 3.35vw, 48px)/1.05 var(--sans); letter-spacing: -.02em; }
.feature__text { margin-top: 10px; opacity: .85; }
.feature__meta { display: flex; gap: 28px; margin-top: 24px; }
.feature__meta dt { font: 400 12px/1 var(--mono); opacity: .6; }
.feature__meta dd { margin-top: 8px; font-size: 17px; line-height: 1.2; }

/* Project list */
.plist { margin-top: clamp(64px, 6.7vw, 96px); }
.plist__title { font: 300 clamp(32px, 3.35vw, 48px)/1.05 var(--sans); letter-spacing: -.02em; }
.plist__filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.filter { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: var(--white); font: 400 13px/1 var(--mono); transition: background-color .15s steps(2), border-color .15s steps(2), color .15s steps(2); }
.filter:hover { border-color: var(--white); }
.filter.is-active { background: var(--lime); border-color: var(--lime); color: var(--black); }
.plist__head, .prow { display: grid; grid-template-columns: 136px minmax(0, 684px) minmax(0, 284px) minmax(0, 1fr); align-items: center; }
.plist__head { margin-top: 16px; padding: 0 0 8px 16px; font: 400 12px/1 var(--mono); opacity: .55; }
.plist__head span:first-child { margin-left: 0; }
.plist__rows { border-bottom: 1px solid var(--line-inv); }
.prow { position: relative; min-height: 69.6px; padding: 12px 0 12px 16px; border-top: 1px solid var(--line-inv); }
.prow[hidden] { display: none; }
.prow::before { content: ""; position: absolute; left: 0; top: -1px; bottom: 0; width: 0; background: var(--c); transition: width .24s steps(3, jump-end); }
.prow:hover::before { width: 6px; }
.prow__year { font: 400 13px/1.6 var(--mono); opacity: .7; }
.prow__title { font-size: 22px; line-height: 1.3; transition: transform .24s steps(3, jump-end); }
.prow:hover .prow__title { transform: translateX(8px); }
.prow__type { display: flex; align-items: center; gap: 10px; font: 400 13px/1.4 var(--mono); color: rgba(255, 255, 255, .82); }
.prow__city { font: 400 13px/1.4 var(--mono); opacity: .8; }
.prow.is-new { animation: step-in .3s steps(3, jump-none) both; animation-delay: calc(var(--i, 0) * 40ms); }
.plist__more { margin-top: 28px; }

/* ==========================================================================
   Apie mus
   ========================================================================== */
.about__lead { margin-top: 24px; font: 300 clamp(26px, 3.5vw, 50px)/1.14 var(--sans); letter-spacing: -.02em; max-width: 1260px; }
.about__text { margin: clamp(32px, 3.8vw, 54px) 0 0 41.6%; font-size: clamp(19px, 1.68vw, 24px); line-height: 1.45; opacity: .9; }

/* ==========================================================================
   Principai
   ========================================================================== */
.principles__list { margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, .35); }
.principle { display: grid; grid-template-columns: 152px minmax(0, 1fr) minmax(0, 498px); align-items: start; padding: 44px 0 52px; border-bottom: 1px solid rgba(255, 255, 255, .35); }
.principle__text { max-width: 420px; }
.principle__num { margin-top: 36px; font: 500 15px/1 var(--mono); color: var(--lime); }
.principle__title { font: 300 clamp(34px, 4.05vw, 58px)/1 var(--sans); letter-spacing: -.02em; }
.principle__text { margin-top: 32px; opacity: .92; }

/* ==========================================================================
   Skaičiai
   ========================================================================== */
.numbers__grid { display: grid; grid-template-columns: 442fr 442fr 396fr; margin-top: 64px; }
.stat__value { display: flex; align-items: baseline; font: 200 clamp(88px, 10.5vw, 150px)/.9 var(--sans); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat__suffix--small { margin-left: .14em; font-size: .32em; font-weight: 300; letter-spacing: 0; }
.stat__label { margin-top: 26px; font-size: 20px; line-height: 1.2; }
.stat__legend { margin-top: 6px; font: 400 12px/1.4 var(--mono); opacity: .75; }
.waffle { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 11px)); gap: 3px; margin-top: 22px; }
.waffle i { display: block; aspect-ratio: 1; }
.waffle__cell { background: var(--lime); }
.js .waffle__cell { opacity: 0; transition: opacity .12s steps(2, jump-none); }
.js .waffle__cell.is-on { opacity: 1; }

/* ==========================================================================
   Komanda
   ========================================================================== */
.team__grid { display: grid; grid-template-columns: 500fr 80fr 700fr; margin-top: 28px; align-items: start; }
.team__img { grid-column: 1; aspect-ratio: 500 / 625; }
.team__body { grid-column: 3; }
.team__tags { display: flex; flex-wrap: wrap; }
.team__tag { display: inline-flex; align-items: center; height: 60px; padding: 0 19.2px; font: 500 clamp(14px, 1.33vw, 19px)/1 var(--mono); letter-spacing: .02em; }
.bg--lime { background: var(--lime); color: var(--black); }
.bg--blue { background: var(--blue); color: var(--white); }
.bg--purple { background: var(--purple); color: var(--black); }
.bg--green { background: var(--green); color: var(--white); }
.js .team__tag { clip-path: inset(0 100% 0 0); transition: clip-path .4s steps(5, jump-end); transition-delay: calc(var(--i) * .08s); }
.js .team__tags.is-in .team__tag { clip-path: inset(0 0 0 0); }
.team__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 44px; }
.team__col { border-top: 1px solid var(--line); }
.team__label { margin-top: 22px; font: 500 13px/1 var(--mono); }
.team__text { margin-top: 16px; font: 300 clamp(26px, 2.5vw, 36px)/1.15 var(--sans); letter-spacing: -.015em; }

/* ==========================================================================
   Kontaktai
   ========================================================================== */
.contact__grid { display: grid; grid-template-columns: 548fr 732fr; gap: 0; }
.contact__title { margin-top: 28px; }
.contact__sub { margin-top: 24px; font-size: 19px; line-height: 1.55; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; margin-top: 64px; }
.form__field { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.form__field--wide { grid-column: 1 / -1; }
.form__label { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; background: var(--lime); font: 500 12px/1 var(--mono); letter-spacing: .02em; }
.form__input { width: 100%; height: 56px; padding: 0 14px; border: 0; border-radius: 0; background: var(--white); color: var(--black); font: 400 18px/1.35 var(--sans); appearance: none; }
.form__input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--black); }
.form__select { padding-right: 44px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0h4v2H0zM4 2h4v2H4zM8 0h4v2H8zM4 4h4v2H4z' fill='%23000'/%3E%3C/svg%3E") no-repeat right 16px center; }
.form__textarea { height: 150px; padding: 14px; resize: vertical; }
.form__field.has-error .form__input { box-shadow: inset 0 0 0 2px var(--black); background-color: #fff7fb; }
.form__error { margin-top: 6px; font: 500 12px/1.3 var(--mono); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 6px; }
.btn--submit { min-height: 60px; min-width: 209px; padding: 0 28px; font-size: 16px; }
.btn--submit[disabled] { opacity: .6; cursor: progress; }
.form__status { font: 500 15px/1.4 var(--mono); }
.form.is-sent .form__field, .form.is-sent .btn--submit { display: none; }
.form.is-sent .form__status { font: 300 clamp(26px, 2.5vw, 36px)/1.2 var(--sans); letter-spacing: -.015em; }

/* ==========================================================================
   Footer + consent
   ========================================================================== */
.footer { background: var(--black); color: var(--white); }
.footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 105px; padding: 24px 48px; }
.footer__logo svg { width: 105px; height: auto; }
.footer__copy { display: flex; gap: 16px; align-items: center; font: 400 12px/1.4 var(--mono); }
.footer__cookies { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; opacity: .7; }
.footer__top { justify-self: end; }

.consent { position: fixed; z-index: 70; left: 16px; bottom: 16px; max-width: 520px; padding: 20px; background: var(--black); color: var(--white); box-shadow: 8px 8px 0 var(--blue); }
.consent[hidden] { display: none; }
.consent__text { font: 400 13px/1.55 var(--mono); }
.consent__text a { color: var(--lime); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.consent .btn { font-size: 14px; }

/* Plain page (privacy policy) */
.page-plain { padding-top: calc(var(--bar-h) + 64px); }
.prose { max-width: 760px; margin-top: 32px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul { list-style: square; padding-left: 1.2em; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .8s var(--step), transform .8s var(--step); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.service { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr); gap: 0 24px; }
	.principle { grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); }
	.plist__head, .prow { grid-template-columns: 96px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .6fr); }
	.contact__grid { gap: 40px; }
}

@media (max-width: 860px) {
	.feature, .feature--media-right { grid-template-columns: 1fr; gap: 28px; }
	.feature .feature__media, .feature--media-right .feature__media, .feature .feature__info, .feature--media-right .feature__info { grid-column: 1; grid-row: auto; }
	.team__grid { grid-template-columns: 1fr; gap: 40px; }
	.team__img, .team__body { grid-column: 1; }
	.contact__grid { grid-template-columns: 1fr; }
	.form { margin-top: 44px; }
	.numbers__grid { grid-template-columns: 1fr; gap: 72px; }
}

@media (max-width: 760px) {
	:root { --bar-h: 60px; }
	body { font-size: 16px; }
	.bar { position: sticky; top: 0; transform: none; }
	.bar__logo { padding: 0 20px; }
	.bar__svg { height: 34px; }

	/* Hero: photo inset, labels scattered over it, tagline bottom-right */
	.hero { height: auto; aspect-ratio: 320 / 509; min-height: 480px; max-height: 760px; }
	/* Figma mobile hero (320 × 509): the logo bar overlays the top of the hero, four labels,
	   tagline in Hanken Light 22px from x=138. */
	.hero { margin-top: calc(-1 * var(--bar-h)); }
	/* Tagline pinned to the bottom; the photo stops above it so the text always sits on solid blue. */
	.hero__brand { inset: auto 20px 12px 43.1%; width: auto; display: block; }
	.hero__logo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.hero__tagline { font: 300 22px/1.16 var(--sans); letter-spacing: .005em; white-space: nowrap; }
	.hero__media { left: 20px; right: 20px; top: 6.9%; bottom: 74px; }
	.hero__link--paslaugos { left: auto; right: 20px; top: 38.72%; min-width: 142px; }
	.hero__link--portfolio { left: 20px; top: 53.85%; }
	.hero__link--apie-mus { left: auto; right: 20px; top: 61.12%; min-width: 149px; }
	.hero__link--kontaktai { left: 19.06%; top: 78.02%; }
	.btn--nav { font-size: 21px; }

	.section { padding-block: 72px 88px; }
	.services { padding-top: 28px; }
	.chip { height: 36px; font-size: 15px; }

	.service { grid-template-columns: 44px minmax(0, 1fr); padding: 26px 0 30px; }
	.service__sq { width: 10px; height: 10px; margin: 6px 0 0; box-shadow: 10px 0 0 var(--c), 0 10px 0 var(--c), 10px 10px 0 var(--c); }
	.service__text { grid-column: 2; padding-top: 12px; font-size: 16px; }

	/* Featured project photos become a swipeable strip with a "1 / 3" counter */
	.feature__track { display: flex; gap: 10px; aspect-ratio: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
	.feature__track::-webkit-scrollbar { display: none; }
	.feature__img { flex: 0 0 82%; aspect-ratio: 4 / 5; height: auto; scroll-snap-align: start; }
	.feature__count { display: block; position: absolute; z-index: 2; top: 0; left: 0; padding: 5px 8px; background: var(--lime); color: var(--black); font: 500 13px/1 var(--mono); }
	.feature--media-right .feature__media { order: -1; }
	.feature__title { font-size: 28px; }

	.plist__head { display: none; }
	.prow { grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "year title" "year type"; row-gap: 6px; align-items: start; padding: 18px 0; }
	.prow__year { grid-area: year; font-size: 12px; }
	.prow__title { grid-area: title; font-size: 18px; }
	.prow__type { grid-area: type; font-size: 12px; }
	.prow__city { display: none; }
	.plist__more { width: 100%; }

	.about__text { margin-left: 0; }

	.principles__list { margin-top: 28px; }
	.principle { grid-template-columns: 1fr; padding: 28px 0 32px; }
	.principle__num { margin: 0 0 14px; }
	.principle__text { margin-top: 18px; font-size: 16px; }

	.numbers__grid { margin-top: 40px; gap: 56px; }
	.stat__label { margin-top: 18px; }
	.waffle { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); max-width: calc(var(--cols) * 14px); gap: 2px; }

	.team__tag { height: 44px; padding: 0 14px; font-size: 13px; }
	.team__cols { grid-template-columns: 1fr; gap: 24px; }

	.form { grid-template-columns: 1fr; }
	.form__field--wide { grid-column: auto; }
	.btn--submit { width: 100%; }

	.footer__inner { grid-template-columns: auto auto; grid-template-areas: "logo top" "copy copy"; gap: 24px; padding: 26px 20px 32px; }
	.footer__logo { grid-area: logo; }
	.footer__top { grid-area: top; }
	.footer__copy { grid-area: copy; }

	.consent { left: 8px; right: 8px; bottom: 8px; }
	.menu__link:nth-child(n) { margin-left: 0; }
	.menu__link:nth-child(2) { margin-left: 18vw; }
	.menu__link:nth-child(3) { margin-left: 8vw; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
	.js .waffle__cell { opacity: 1; }
	.js .team__tag { clip-path: none; }
}
