/* Novi stilovi ograničeni su na TERRA ISTRA. */
.portfolio-item-terra{grid-column:1/-1}.portfolio-item-terra .portfolio-media{height:auto;padding:0 0 48px;background:var(--navy-light)}.portfolio-item-terra .portfolio-media img{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#e9e1cf}.portfolio-item-terra figcaption h3{font-size:clamp(21px,2.2vw,28px)}.portfolio-item-terra .portfolio-description{max-width:78ch}
.terra-project{--terra-olive:#183d32;--terra-ivory:#e9e1cf;--terra-charcoal:#141b19}.terra-project .terra-hero{padding-top:48px}.terra-project .terra-back{margin-bottom:38px;color:var(--muted)}.terra-project .terra-heading{display:grid;grid-template-columns:1.2fr 1fr;gap:48px;align-items:end;margin-bottom:44px}.terra-project .terra-heading h1{font-size:clamp(56px,7vw,96px);letter-spacing:-4px;margin:0 0 14px}.terra-project .terra-slogan{font-size:clamp(19px,2vw,25px);color:var(--muted);line-height:1.45}.terra-project .terra-meta{display:grid;grid-template-columns:1fr 1fr;gap:20px;font-size:14px;border-top:1px solid var(--line);padding-top:18px;color:var(--muted)}.terra-project .terra-meta dt{color:var(--copper);font-size:11px;text-transform:uppercase;letter-spacing:1.7px;margin-bottom:6px}
.terra-project .terra-media{display:block;position:relative;border:1px solid var(--line);overflow:hidden}.terra-project .terra-media img{display:block;width:100%;height:auto;object-fit:contain}.terra-project .terra-media:hover{border-color:var(--copper)}.terra-project .terra-enlarge{position:absolute;right:16px;bottom:16px;background:var(--navy);color:var(--white);padding:8px 12px;font-size:12px;line-height:1.6;letter-spacing:.3px}.terra-project .terra-caption{display:block;font-size:13px;line-height:1.8;color:var(--muted);margin-top:16px}.terra-project .terra-caption span{display:block}
.terra-project .terra-section{padding-block:95px;border-bottom:1px solid var(--line)}.terra-project .terra-section-intro{display:grid;grid-template-columns:1fr 1.25fr;gap:80px;align-items:start;margin-bottom:42px}.terra-project .terra-section-intro h2{font-size:clamp(30px,3.1vw,43px);max-width:430px}.terra-project .terra-copy{font-size:17px;line-height:1.9;color:var(--muted)}.terra-project .terra-copy p+p{margin-top:20px}.terra-project .terra-copy ul{padding-left:20px;margin-top:19px;display:grid;gap:10px}.terra-project .terra-idea{max-width:850px;font-size:clamp(21px,2.4vw,30px);line-height:1.6;color:var(--white);letter-spacing:-.45px}.terra-project .terra-idea+p{max-width:760px;margin-top:24px}
.terra-project .terra-logos{display:grid;grid-template-columns:1fr 1fr;gap:24px}.terra-project .terra-logo-panel{min-width:0}.terra-project .terra-logo-panel .terra-media{background:var(--terra-ivory);border:0;display:grid;place-items:center;min-height:460px;padding:30px}.terra-project .terra-logo-panel .terra-media img{width:100%;max-height:420px;object-fit:contain}.terra-project .terra-logo-panel:last-child .terra-media img{max-width:520px}
.terra-project .terra-palette{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;list-style:none;padding:0}.terra-project .terra-swatch{height:160px;border:1px solid rgb(255 255 255/.12);margin-bottom:18px}.terra-project .terra-palette h3{font-size:16px;line-height:1.45;letter-spacing:0}.terra-project .terra-palette code{font-family:inherit;font-size:13px;color:var(--muted);display:block;margin-top:6px;letter-spacing:1px}
.terra-project .terra-label-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:36px;align-items:start}.terra-project .terra-label-panel{background:var(--terra-ivory);padding:38px;min-width:0}.terra-project .terra-label-panel .terra-media{border:0}.terra-project .terra-technical .terra-media{background:#fff;padding:20px;border:1px solid var(--line)}.terra-project .terra-label-facts{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:28px;border-block:1px solid var(--line);padding-block:24px}.terra-project .terra-label-facts div{min-width:0}.terra-project .terra-label-facts dt{font-size:13px;color:var(--muted)}.terra-project .terra-label-facts dd{font-size:19px;line-height:1.5;margin-top:5px}.terra-project .terra-note{margin-top:24px;font-size:14px;line-height:1.8;color:var(--muted);max-width:72ch}
.terra-project .terra-packaging{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:70px;align-items:center}.terra-project .terra-packaging .terra-media img{max-height:850px}.terra-project .terra-packaging .terra-copy{max-width:440px}.terra-project .terra-packaging h2{margin-bottom:26px}.terra-project .terra-signature{padding-block:90px 100px;display:grid;grid-template-columns:1fr 1.25fr;gap:80px}.terra-project .terra-author{font-size:clamp(28px,3vw,40px);line-height:1.2;letter-spacing:-1px}.terra-project .terra-studio{color:var(--copper);font-size:18px;margin-top:12px}.terra-project .terra-credit{color:var(--muted);font-size:15px;line-height:1.9}.terra-project .terra-concept{color:var(--white);margin-top:22px;border-left:2px solid var(--copper);padding-left:18px;line-height:1.8}.terra-project .terra-return{margin-top:24px}
.terra-project-page .terra-gallery{width:min(1200px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:24px;border:1px solid var(--line);background:var(--navy);color:var(--white);overflow:auto;overscroll-behavior:contain}.terra-project-page .terra-gallery::backdrop{background:rgb(4 10 21/.94)}.terra-project-page .terra-gallery-head{position:sticky;top:-24px;background:var(--navy);display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding-block:12px 18px;z-index:1}.terra-project-page .terra-gallery-head h2{font-size:23px;line-height:1.35;letter-spacing:-.5px;min-width:0}.terra-project-page .terra-gallery-image{display:block;width:100%;height:auto;max-height:68dvh;object-fit:contain;background:#e9e1cf}.terra-project-page .terra-gallery-caption{color:var(--muted);font-size:14px;line-height:1.8;margin-top:18px}
@media(max-width:900px){.terra-project .terra-heading{grid-template-columns:1fr;gap:26px}.terra-project .terra-meta{max-width:560px}.terra-project .terra-section-intro,.terra-project .terra-signature{gap:38px}.terra-project .terra-logos{gap:18px}.terra-project .terra-logo-panel .terra-media{min-height:340px;padding:18px}.terra-project .terra-palette{gap:18px}.terra-project .terra-swatch{height:130px}.terra-project .terra-packaging{gap:36px}.terra-project .terra-label-grid{gap:24px}.terra-project .terra-label-panel{padding:24px}}
@media(max-width:640px){.terra-project .terra-hero{padding-top:27px}.terra-project .terra-back{margin-bottom:30px}.terra-project .terra-heading{margin-bottom:30px}.terra-project .terra-heading h1{font-size:clamp(46px,12vw,70px);letter-spacing:-2.5px;line-height:1.1}.terra-project .terra-meta{gap:18px}.terra-project .terra-caption{font-size:12px}.terra-project .terra-enlarge{font-size:11px;right:10px;bottom:10px;padding:6px 9px}.terra-project .terra-section{padding-block:62px}.terra-project .terra-section-intro,.terra-project .terra-signature{grid-template-columns:1fr;gap:26px}.terra-project .terra-section-intro{margin-bottom:30px}.terra-project .terra-copy{font-size:16px;line-height:1.85}.terra-project .terra-idea{font-size:22px}.terra-project .terra-logos,.terra-project .terra-label-grid,.terra-project .terra-packaging{grid-template-columns:1fr}.terra-project .terra-logo-panel .terra-media{min-height:0;aspect-ratio:1/1;padding:20px}.terra-project .terra-logo-panel:last-child .terra-media{aspect-ratio:1.65/1}.terra-project .terra-palette{grid-template-columns:1fr 1fr;gap:26px 18px}.terra-project .terra-swatch{height:120px;margin-bottom:12px}.terra-project .terra-palette h3{font-size:15px}.terra-project .terra-label-grid{gap:30px}.terra-project .terra-label-panel{padding:22px}.terra-project .terra-technical .terra-media{padding:12px}.terra-project .terra-packaging{gap:30px}.terra-project .terra-signature{padding-block:62px 70px}.terra-project .terra-author{font-size:31px}.terra-project-page .terra-gallery{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:18px}.terra-project-page .terra-gallery-head{top:-18px;gap:12px}.terra-project-page .terra-gallery-head h2{font-size:19px}.terra-project-page .terra-gallery-image{max-height:62dvh}}
@media(prefers-reduced-motion:reduce){.terra-project *,.terra-project-page .terra-gallery *{scroll-behavior:auto;transition:none}}

/* Uži zasloni koriste odobreni portretni kadar bez izrezivanja boce. */
.portfolio-item-terra picture,.terra-project picture{display:block}
@media(max-width:640px){.portfolio-item-terra .portfolio-media img{aspect-ratio:auto}}
