/* Creativa — site 2026
   Brand colours from the logo (violet wordmark, orange feather square), Archivo wide for headings,
   crop marks as the print-shop signature, parallax and scroll motion that respects reduced-motion. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-wdth.woff2") format("woff2-variations"), url("fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #160a2b;          /* near-black with a violet bias */
  --graphite: #4d4660;
  --lilac: #f4f0fc;        /* tinted surface */
  --rule: #e2dcef;
  --violet: #6a00f4;       /* wordmark */
  --violet-deep: #2b0a63;
  --orange: #f7790f;       /* feather square */
  --orange-deep: #e45a00;
  --amber: #fbb040;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.875rem, 1.3rem + 2vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.3rem + 5vw, 5.25rem);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

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

/* Type */
h1, h2, h3 {
  font-variation-settings: "wdth" 118;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--graphite); max-width: 52ch; }
.muted { color: var(--graphite); }

/* Header (as approved: white bar, CMYK print strip, quiet nav) */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); height: 4px; }
.strip span:nth-child(1) { background: #009fe3; }
.strip span:nth-child(2) { background: #e6007e; }
.strip span:nth-child(3) { background: #ffe500; }
.strip span:nth-child(4) { background: #000; }
.rule2 { height: 6px; background: linear-gradient(var(--orange) 0 50%, var(--violet) 50% 100%); }

.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid #d9dce0; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand img { width: 150px; height: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; text-decoration: none; padding: 10px 12px; font-size: .97rem; color: #4a4d52; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: #d4006a; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: #000; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.lang { display: flex; gap: 2px; margin-left: 12px; padding-left: 12px; border-left: 1px solid #d9dce0; }
.lang a { padding: 6px 8px; font-size: .9rem; text-decoration: none; color: #4a4d52; border-radius: 4px; }
.lang a::after { display: none; }
.lang a[aria-current="true"] { color: #000; background: #eef0f2; }

.menu-btn { display: none; background: none; border: 1px solid #d9dce0; border-radius: 6px; padding: 9px 12px; font: inherit; font-size: .95rem; cursor: pointer; color: #000; }

@media (max-width: 980px) {
  .menu-btn { display: inline-block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid #d9dce0; padding: 8px var(--gutter) 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 1.05rem; }
  .nav a::after { left: 0; right: auto; width: 32px; }
  .lang { margin: 8px 0 0; padding: 12px 0 0; border-left: 0; border-top: 1px solid #d9dce0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 580; padding: 14px 24px; border-radius: 999px; border: 1.5px solid var(--violet); transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-ink { background: var(--violet); color: var(--paper); }
.btn-ink:hover { background: var(--orange); border-color: var(--orange); }
.btn-line { color: var(--violet); }
.btn-line:hover { border-color: var(--orange); color: var(--orange-deep); }
.btn-light { background: var(--paper); color: var(--violet); border-color: var(--paper); }
.btn-light:hover { background: var(--orange); border-color: var(--orange); color: var(--paper); }
.btn-ghost { color: var(--paper); border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: var(--paper); color: var(--violet); border-color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Crop marks (print signature) */
.frame { position: relative; display: block; border-radius: var(--radius); }
.frame .clip { display: block; overflow: hidden; border-radius: var(--radius); background: var(--lilac); }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
@property --l { syntax: "<length>"; inherits: true; initial-value: 0px; }
.frame::before {
  content: ""; position: absolute; inset: -8px; pointer-events: none; z-index: 2; opacity: 0;
  --m: var(--orange); --l: 0px; --t: 2px;
  background:
    linear-gradient(var(--m), var(--m)) top left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--m), var(--m)) top left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--m), var(--m)) top right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--m), var(--m)) top right / var(--t) var(--l) no-repeat,
    linear-gradient(var(--m), var(--m)) bottom left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--m), var(--m)) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--m), var(--m)) bottom right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--m), var(--m)) bottom right / var(--t) var(--l) no-repeat;
  transition: opacity .3s, --l .35s var(--ease);
}
.frame:hover::before, .frame:focus-visible::before { opacity: 1; --l: 18px; }
.frame:hover img, .frame:focus-visible img { transform: scale(1.04); }
.frame:focus-visible { outline: none; }
/* parallax images sit slightly oversized so they can drift inside their clip */
.frame .clip img.px { transform: scale(1.14) translate3d(0, var(--py, 0px), 0); transition: none; will-change: transform; }
.frame:hover .clip img.px { transform: scale(1.18) translate3d(0, var(--py, 0px), 0); transition: transform .7s var(--ease); }

/* HERO: full-bleed plotter video */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--paper); background: var(--violet-deep); min-height: clamp(520px, 82vh, 860px); display: grid; align-items: end; }
.hero-media { position: absolute; left: 0; right: 0; top: -10%; bottom: -10%; z-index: -2; will-change: transform; }
.hero-media video { position: absolute; inset: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(22, 6, 52, .86) 0%, rgba(43, 10, 99, .55) 45%, rgba(43, 10, 99, .05) 80%),
  linear-gradient(0deg, rgba(22, 6, 52, .7) 0%, rgba(22, 6, 52, 0) 45%); }
.hero-copy { padding-block: clamp(120px, 18vh, 200px) clamp(48px, 8vh, 88px); will-change: transform, opacity; }
.hero h1 { max-width: 13ch; }
.hero h1 .feather { display: inline-block; width: .62em; height: auto; vertical-align: -.02em; margin-left: .12em; }
.hero .lede { color: rgba(255, 255, 255, .9); margin-top: 22px; }
.hero .caption { position: absolute; right: var(--gutter); bottom: 18px; font-size: var(--step--1); color: rgba(255, 255, 255, .78); margin: 0; }
.hero .rule2 { position: absolute; left: 0; right: 0; bottom: 0; }
@media (max-width: 700px) { .hero .caption { display: none; } .hero::before { background: linear-gradient(0deg, rgba(22, 6, 52, .9) 0%, rgba(43, 10, 99, .55) 60%, rgba(43, 10, 99, .25) 100%); } }

/* Services marquee: continuous, readable loop */
.ticker { overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--rule); padding-block: 18px; }
.ticker-row { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker-row { animation-play-state: paused; }
.ticker-set { display: flex; align-items: center; gap: 22px; padding-right: 22px; white-space: nowrap; font-variation-settings: "wdth" 118; font-weight: 650; font-size: clamp(1.15rem, .9rem + 1vw, 1.6rem); line-height: 1.2; }
.ticker-set span { color: var(--violet); }
.ticker-set span:nth-of-type(even) { color: var(--orange-deep); }
.ticker-set i { font-style: normal; width: 8px; height: 8px; border-radius: 2px; background: var(--rule); transform: rotate(45deg); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-row { animation: none; width: auto; flex-wrap: wrap; justify-content: center; } .ticker-set + .ticker-set { display: none; } .ticker-set { flex-wrap: wrap; justify-content: center; white-space: normal; } }

/* Sections */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section.tint { background: var(--lilac); overflow: hidden; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head p { margin: 0; color: var(--graphite); max-width: 52ch; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--orange-deep); font-weight: 600; margin-bottom: 14px; }
.kicker::before { content: ""; width: 26px; height: 6px; background: linear-gradient(var(--orange) 0 50%, var(--violet) 50% 100%); }

/* Inner page heads: one fixed module on every page (same height, title and feather in the same place) */
.page-head { position: relative; overflow: hidden; isolation: isolate; background: var(--violet-deep); color: var(--paper); height: clamp(230px, 24vw, 300px); display: grid; align-items: start; padding-top: clamp(58px, 6.2vw, 84px); }
.page-head h1 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem); line-height: 1.05; white-space: nowrap; }
.page-head .lede { margin-top: 14px; color: rgba(255, 255, 255, .86); font-size: clamp(1rem, .95rem + .3vw, 1.2rem); max-width: 62ch; }
.page-head .watermark { position: absolute; z-index: -1; top: 16%; height: 68%; width: auto; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .25)); }
.page-head .dots { position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1.2px, transparent 1.4px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 65%); mask-image: linear-gradient(90deg, #000, transparent 65%); }
@media (max-width: 700px) { .page-head { height: 220px; padding-top: 52px; } .page-head .watermark { opacity: .22; right: -12px; } .page-head h1 { white-space: normal; } }

/* Featured work */
.work { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 40px); }
.work-item { grid-column: span 6; }
.work-item:nth-child(2) { margin-top: clamp(0px, 8vw, 110px); }
.work-item .frame .clip { aspect-ratio: 4 / 3; }
.work-item h3 { margin-top: 20px; font-size: var(--step-2); }
.work-item p { margin: 6px 0 0; color: var(--graphite); }
@media (max-width: 760px) { .work-item { grid-column: 1 / -1; } .work-item:nth-child(2) { margin-top: 0; } }

/* Parallax photo band */
.band { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(380px, 62vh, 620px); display: grid; align-items: center; color: var(--paper); }
.band-media { position: absolute; inset: -18% 0; z-index: -2; will-change: transform; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(43, 10, 99, .88) 0%, rgba(106, 0, 244, .55) 50%, rgba(247, 121, 15, .25) 100%); }
.band h2 { font-size: var(--step-4); max-width: 14ch; }
.band p { margin-top: 18px; color: rgba(255, 255, 255, .9); font-size: var(--step-1); max-width: 44ch; }

/* Services list (home) */
.services { display: grid; border-top: 1px solid var(--rule); }
.service { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px clamp(20px, 4vw, 56px); padding: clamp(26px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--rule); align-items: start; }
.service::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: linear-gradient(90deg, var(--orange), var(--violet)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.service:hover::before { transform: scaleX(1); }
.service h3 { font-size: var(--step-2); transition: color .3s, transform .4s var(--ease); }
.service:hover h3 { color: var(--violet); transform: translateX(6px); }
.service p { color: var(--graphite); }
.service .more { font-weight: 600; color: var(--violet); }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; } }

/* Floating brand shapes (parallax decoration) */
.blob { position: absolute; z-index: 0; border-radius: 22%; pointer-events: none; will-change: transform; }
.blob.o { background: linear-gradient(135deg, var(--amber), var(--orange-deep)); opacity: .9; }
.blob.v { background: var(--violet); opacity: .9; border-radius: 50%; }
.blob.ring { background: none; border: 3px solid var(--orange); border-radius: 50%; }
.section .wrap { position: relative; z-index: 1; }

/* Service detail with gallery */
.svc-block { padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.svc-block:last-child { border-bottom: 0; }
.svc-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(16px, 4vw, 56px); margin-bottom: 30px; }
.svc-intro h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.svc-intro p { color: var(--graphite); margin: 0; }
@media (max-width: 760px) { .svc-intro { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.gallery .frame .clip { aspect-ratio: 1 / 1; }
.gallery .frame { cursor: zoom-in; }
.project-links { margin-top: 30px; }
.project-links p { margin-bottom: 10px; color: var(--graphite); }
.project-links ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.project-links a { display: inline-block; padding: 10px 18px; border: 1.5px solid var(--violet); border-radius: 999px; text-decoration: none; font-weight: 580; color: var(--violet); transition: background .25s, color .25s; }
.project-links a:hover { background: var(--violet); color: var(--paper); }

/* About */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.split .frame .clip { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--violet); margin-top: 8px; }
.facts div { padding: 18px 16px 6px 0; }
.facts strong { display: block; font-variation-settings: "wdth" 125; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 700; line-height: 1; color: var(--violet); font-variant-numeric: tabular-nums; }
.facts div:nth-child(2) strong { color: var(--orange-deep); }
.facts span { display: block; margin-top: 6px; color: var(--graphite); font-size: var(--step--1); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts div { padding: 16px 0 0; } }

blockquote { margin: 0; padding: 0 0 0 22px; border-left: 4px solid var(--orange); font-size: var(--step-1); line-height: 1.5; max-width: 56ch; }

/* Team */
.team-group { padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--rule); }
.team-group:last-of-type { border-bottom: 0; }
.team-group > h2 { font-size: var(--step-2); text-align: center; margin-bottom: 30px; }
.people { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 3vw, 40px); list-style: none; margin: 0; padding: 0; }
.person { width: clamp(150px, 20vw, 210px); text-align: center; }
.person .frame .clip { aspect-ratio: 1 / 1; border-radius: 50%; background: var(--lilac); box-shadow: 0 0 0 6px var(--lilac), 0 0 0 7px var(--rule); }
.person .frame::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 0 var(--orange); transition: box-shadow .35s var(--ease); pointer-events: none; }
.person .frame:hover::after, .person .frame:focus-visible::after { box-shadow: inset 0 0 0 4px var(--orange); }
.person h3 { font-size: 1.05rem; margin-top: 16px; font-variation-settings: "wdth" 108; }
.person p { margin: 2px 0 0; color: var(--graphite); font-size: var(--step--1); max-width: none; }
.team-note { max-width: 62ch; margin: 0 auto; text-align: center; color: var(--graphite); }

/* Contacts */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0; }
.dl dt { color: var(--graphite); }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.map { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); background: var(--lilac); margin-top: 28px; }

form.contact { display: grid; gap: 16px; padding: clamp(20px, 3vw, 36px); background: var(--lilac); border-radius: 14px; }
form.contact label { display: grid; gap: 6px; font-weight: 560; }
form.contact input, form.contact textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
form.contact input:focus, form.contact textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(106, 0, 244, .15); }
form.contact textarea { min-height: 150px; resize: vertical; }
form.contact .hint { font-size: var(--step--1); color: var(--graphite); margin: 0; }
form.contact button { justify-self: start; cursor: pointer; font: inherit; }

/* CTA band */
.cta { position: relative; overflow: hidden; isolation: isolate; background: var(--violet); color: var(--paper); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(48px, 7vw, 80px) 0; }
.cta h2 { font-size: var(--step-3); max-width: 20ch; }
.cta .mark { position: absolute; z-index: -1; left: -60px; bottom: -80px; width: 280px; opacity: .22; will-change: transform; }

/* Footer */
.site-footer { background: var(--paper); padding: 48px 0 28px; font-size: .95rem; color: var(--graphite); }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; align-items: start; }
.foot .logo { width: 210px; height: auto; }
.foot h2 { font-size: 1rem; font-variation-settings: "wdth" 108; color: var(--ink); margin-bottom: 10px; }
.foot p { margin: 0 0 4px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--orange-deep); }
.social { display: inline-flex; align-items: center; gap: 8px; color: var(--graphite); text-decoration: none; font-size: var(--step--1); }
.social svg { width: 18px; height: 18px; flex: none; }
.social:hover { color: var(--violet); }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: var(--step--1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; max-width: min(1200px, 94vw); max-height: 92vh; background: transparent; overflow: visible; }
dialog.lightbox::backdrop { background: rgba(22, 6, 52, .9); }
dialog.lightbox img { max-height: 84vh; width: auto; margin-inline: auto; border-radius: 4px; }
dialog.lightbox .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #fff; padding: 12px 0 0; font-size: .95rem; }
dialog.lightbox button { font: inherit; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
dialog.lightbox button:hover { background: var(--orange); border-color: var(--orange); }
dialog.lightbox .lb-nav { display: flex; gap: 8px; }

/* Scroll reveal: only when JS is running, so content is never hidden without it */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .1s; }
  .hero-copy > :nth-child(3) { animation-delay: .2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .frame .clip img.px { transform: none; }
}

/* ---------- Animated full logo (Quem somos, Contactos): mark first, then letters one by one ---------- */
.logo-stage { display: grid; place-items: center; padding-block: clamp(40px, 6vw, 72px); }
.logo-anim { width: min(100%, 420px); height: auto; overflow: visible; }
.logo-anim path, .logo-anim g { transform-box: fill-box; transform-origin: 50% 50%; }
.js .logo-anim .la-mark, .js .logo-anim .la-l { opacity: 0; }
.js .logo-anim .la-rule rect { transform: scaleX(0); transform-box: fill-box; transform-origin: 0 50%; }
.logo-anim.play .la-mark { animation: la-mark 1s var(--ease) both; }
.logo-anim.play .la-l { animation: la-letter .55s var(--ease) both; animation-delay: calc(1s + var(--i) * .075s); }
.logo-anim.play .la-tag .la-l { animation-name: la-soft; }
.logo-anim.play .la-rule rect { animation: la-rule .9s var(--ease) both; animation-delay: calc(1.1s + var(--i) * .075s); }
.logo-anim.play .la-rule rect + rect { animation-delay: calc(1.25s + var(--i) * .075s); }
@keyframes la-mark { 0% { opacity: 0; transform: scale(.4) rotate(-14deg); } 70% { opacity: 1; transform: scale(1.06) rotate(2deg); } 100% { opacity: 1; transform: none; } }
@keyframes la-letter { from { opacity: 0; transform: translateY(40%) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes la-soft { from { opacity: 0; transform: translateY(-60%); } to { opacity: 1; transform: none; } }
@keyframes la-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Decorative shapes: each page has its own set, they pop in as you scroll and drift ---------- */
main { position: relative; overflow: clip; }
.has-deco { position: relative; }
.deco { position: absolute; z-index: 0; width: var(--s, 80px); pointer-events: none; }
.deco > span { display: block; will-change: transform; }
.deco svg { width: 100%; height: auto; overflow: visible; }
.js .deco.pop { opacity: 0; transform: scale(.3) rotate(-30deg); transition: opacity .7s var(--ease), transform .9s cubic-bezier(.2, 1.4, .4, 1); transition-delay: var(--d, 0s); }
.js .deco.pop.in { opacity: 1; transform: none; }
.team-group, .svc-block, .page-section { position: relative; }
.team-group > *:not(.deco), .svc-block > *:not(.deco) { position: relative; z-index: 1; }
@media (max-width: 700px) { .deco { --s: 56px !important; opacity: .7; } .deco.hide-sm { display: none; } }
@media (prefers-reduced-motion: reduce) { .js .deco.pop { opacity: 1; transform: none; } .js .logo-anim .la-mark, .js .logo-anim .la-l { opacity: 1; } .js .logo-anim .la-rule rect { transform: none; } }

.site-footer .logo { width: 150px; }
.facts strong span { display: inline; margin: 0; font-size: inherit; color: inherit; }


/* ==========================================================================
   PRETO NO BRANCO — 15/10/2026
   Pedido da Patricia: design "mais preto no branco".
   Branco + preto + cinzentos; a cor fica só nas fotografias dos trabalhos.
   (Camada por cima do estilo de 11/10 — para voltar atrás basta remover este bloco.)
   ========================================================================== */
html:not(.skin-color) {
  --paper: #ffffff;
  --ink: #0b0b0b;
  --graphite: #575757;
  --lilac: #f3f3f3;
  --rule: #e4e4e4;
  --violet: #0b0b0b;
  --violet-deep: #0b0b0b;
  --orange: #0b0b0b;
  --orange-deep: #0b0b0b;
  --amber: #8a8a8a;
}
html:not(.skin-color) body { color: var(--ink); }
html:not(.skin-color) a:hover { text-decoration-color: var(--ink); }
html:not(.skin-color) :focus-visible { outline-color: var(--ink); }
html:not(.skin-color) ::selection { background: #0b0b0b; color: #fff; }

/* Tipografia mais editorial */
html:not(.skin-color) h1, html:not(.skin-color) h2, html:not(.skin-color) h3 { letter-spacing: -0.02em; }
html:not(.skin-color) h1 { font-weight: 720; }
html:not(.skin-color) .muted { color: var(--graphite); }

/* Logótipo a preto (cabeçalho e rodapé) */
html:not(.skin-color) .brand img, html:not(.skin-color) .site-footer .logo { filter: brightness(0); }

/* Cabeçalho: régua fina preta em vez da faixa CMYK */
html:not(.skin-color) .strip { height: 3px; }
html:not(.skin-color) .strip span { background: #0b0b0b !important; }
html:not(.skin-color) .rule2 { height: 3px; background: #0b0b0b; }
html:not(.skin-color) .site-header { border-bottom-color: #0b0b0b; background: rgba(255, 255, 255, .97); }
html:not(.skin-color) .nav a { color: #3d3d3d; }
html:not(.skin-color) .nav a::after { background: #0b0b0b; }
html:not(.skin-color) .nav a:hover, html:not(.skin-color) .nav a[aria-current="page"] { color: #000; }
html:not(.skin-color) .lang { border-left-color: #cfcfcf; }
html:not(.skin-color) .lang a[aria-current="true"] { background: #0b0b0b; color: #fff; }
html:not(.skin-color) .menu-btn { border-color: #0b0b0b; }

/* Botões: preto sólido / contorno preto */
html:not(.skin-color) .btn { border-color: #0b0b0b; border-radius: 0; letter-spacing: .01em; }
html:not(.skin-color) .btn-ink { background: #0b0b0b; color: #fff; }
html:not(.skin-color) .btn-ink:hover { background: #fff; color: #0b0b0b; border-color: #0b0b0b; }
html:not(.skin-color) .btn-line { color: #0b0b0b; }
html:not(.skin-color) .btn-line:hover { background: #0b0b0b; color: #fff; border-color: #0b0b0b; }
html:not(.skin-color) .btn-light { background: #fff; color: #0b0b0b; border-color: #fff; }
html:not(.skin-color) .btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
html:not(.skin-color) .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .8); }
html:not(.skin-color) .btn-ghost:hover { background: #fff; color: #0b0b0b; border-color: #fff; }

/* Marcas de corte (assinatura gráfica) a preto */
html:not(.skin-color) .frame::before { --m: #0b0b0b; }
html:not(.skin-color) .frame .clip { background: #f3f3f3; }

/* Hero: vídeo a preto e branco, véu preto */
html:not(.skin-color) .hero { background: #0b0b0b; }
html:not(.skin-color) .hero-media video { filter: grayscale(1) contrast(1.08); }
html:not(.skin-color) .hero::before { background:
  linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .1) 80%),
  linear-gradient(0deg, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, 0) 45%); }
@media (max-width: 700px) { html:not(.skin-color) .hero::before { background: linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .3) 100%); } }

/* Faixa de serviços */
html:not(.skin-color) .ticker { border-bottom-color: #0b0b0b; border-top: 1px solid #0b0b0b; }
html:not(.skin-color) .ticker-set span, html:not(.skin-color) .ticker-set span:nth-of-type(even) { color: #0b0b0b; }
html:not(.skin-color) .ticker-set i { background: #0b0b0b; }

/* Secções */
html:not(.skin-color) .section.tint { background: #f3f3f3; }
html:not(.skin-color) .kicker { color: #0b0b0b; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; }
html:not(.skin-color) .kicker::before { background: #0b0b0b; height: 2px; }

/* Cabeçalho das páginas interiores: bloco preto */
html:not(.skin-color) .page-head { background: #0b0b0b; }
html:not(.skin-color) .page-head .watermark { filter: brightness(0) invert(1); opacity: .14; }
html:not(.skin-color) .page-head .dots { background-image: radial-gradient(rgba(255, 255, 255, .14) 1.2px, transparent 1.4px); }

/* Banda com fotografia: foto a P&B, véu preto */
html:not(.skin-color) .band-media img { filter: grayscale(1) contrast(1.05); }
html:not(.skin-color) .band::before { background: linear-gradient(100deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .55) 55%, rgba(0, 0, 0, .25) 100%); }

/* Lista de serviços */
html:not(.skin-color) .services { border-top-color: #0b0b0b; }
html:not(.skin-color) .service::before { background: #0b0b0b; }
html:not(.skin-color) .service:hover h3 { color: #0b0b0b; }
html:not(.skin-color) .service .more { color: #0b0b0b; }

/* Formas decorativas: em tons de cinza, discretas */
html:not(.skin-color) .blob, html:not(.skin-color) .deco svg { filter: grayscale(1) brightness(.35); }
html:not(.skin-color) .blob { opacity: .14 !important; }
html:not(.skin-color) .deco { opacity: .4; }
@media (max-width: 700px) { html:not(.skin-color) .deco { display: none !important; } }

/* Galerias, factos, equipa */
html:not(.skin-color) .project-links a { border-color: #0b0b0b; color: #0b0b0b; border-radius: 0; }
html:not(.skin-color) .project-links a:hover { background: #0b0b0b; color: #fff; }
html:not(.skin-color) .facts { border-top-color: #0b0b0b; }
html:not(.skin-color) .facts strong, html:not(.skin-color) .facts div:nth-child(2) strong { color: #0b0b0b; }
html:not(.skin-color) blockquote { border-left-color: #0b0b0b; }
html:not(.skin-color) .person .frame .clip { box-shadow: 0 0 0 6px #fff, 0 0 0 7px #0b0b0b; }
html:not(.skin-color) .person .frame:hover::after, html:not(.skin-color) .person .frame:focus-visible::after { box-shadow: inset 0 0 0 4px #0b0b0b; }

/* Contactos */
html:not(.skin-color) form.contact { background: #f3f3f3; border-radius: 0; border: 1px solid #0b0b0b; }
html:not(.skin-color) form.contact input, html:not(.skin-color) form.contact textarea { border-color: #cfcfcf; border-radius: 0; }
html:not(.skin-color) form.contact input:focus, html:not(.skin-color) form.contact textarea:focus { border-color: #0b0b0b; box-shadow: 0 0 0 3px rgba(0, 0, 0, .1); }
html:not(.skin-color) .map { filter: grayscale(1); }

/* Faixa CTA e rodapé */
html:not(.skin-color) .cta { background: #0b0b0b; }
html:not(.skin-color) .cta .mark { filter: brightness(0) invert(1); opacity: .1; }
html:not(.skin-color) .site-footer { border-top: 3px solid #0b0b0b; }
html:not(.skin-color) .foot a:hover, html:not(.skin-color) .social:hover { color: #000; }
html:not(.skin-color) .legal { border-top-color: #e4e4e4; }

/* Logótipo animado (Quem somos, Contactos) a preto */
html:not(.skin-color) .logo-anim { filter: grayscale(1) brightness(.2); }

/* Lightbox */
html:not(.skin-color) dialog.lightbox::backdrop { background: rgba(0, 0, 0, .94); }
html:not(.skin-color) dialog.lightbox button { border-radius: 0; }
html:not(.skin-color) dialog.lightbox button:hover { background: #fff; color: #0b0b0b; border-color: #fff; }
html:not(.skin-color) dialog.lightbox img { border-radius: 0; }


/* ==========================================================================
   GALERIA (nova página, PT/EN)
   ========================================================================== */
.gal-nav { position: sticky; top: 72px; z-index: 20; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--ink); }
.gal-nav ul { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.gal-nav a { display: block; padding: 16px 20px 14px; text-decoration: none; font-weight: 600; font-variation-settings: "wdth" 112; letter-spacing: .02em; color: var(--ink); border-right: 1px solid #e4e4e4; transition: background .2s, color .2s; }
.gal-nav li:first-child a { border-left: 1px solid #e4e4e4; }
.gal-nav a:hover, .gal-nav a:focus-visible { background: var(--ink); color: #fff; }
.gal-nav a span { color: #8a8a8a; font-weight: 500; margin-left: 6px; font-variant-numeric: tabular-nums; }
.gal-nav a:hover span { color: #bdbdbd; }
@media (max-width: 700px) { .gal-nav { top: 64px; } .gal-nav .wrap { width: 100%; } .gal-nav ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .gal-nav ul::-webkit-scrollbar { display: none; } .gal-nav a { padding: 12px 14px; font-size: .92rem; white-space: nowrap; } .gal-nav li:first-child a { border-left: 0; } }

.gal-section { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 3vw, 40px); scroll-margin-top: 130px; border-bottom: 1px solid var(--ink); }
.gal-section:last-of-type { border-bottom: 0; }
.gal-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px clamp(18px, 3vw, 40px); align-items: baseline; margin-bottom: clamp(28px, 4vw, 48px); }
.gal-head .num { font-variation-settings: "wdth" 125; font-weight: 700; font-size: clamp(2.6rem, 2rem + 3vw, 4.5rem); line-height: .9; color: var(--ink); font-variant-numeric: tabular-nums; }
.gal-head h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); }
.gal-head p { grid-column: 2; margin: 6px 0 0; color: var(--graphite); max-width: 60ch; }
@media (max-width: 560px) { .gal-head { grid-template-columns: 1fr; } .gal-head p { grid-column: 1; } }

.gal-project { margin-bottom: clamp(36px, 5vw, 64px); }
.gal-project > h3 { display: flex; align-items: center; gap: 14px; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; font-variation-settings: "wdth" 110; margin-bottom: 18px; }
.gal-project > h3::after { content: ""; flex: 1; height: 1px; background: #d6d6d6; }

.masonry { columns: 3 260px; column-gap: 18px; list-style: none; margin: 0; padding: 0; }
.masonry li { break-inside: avoid; margin: 0 0 18px; }
.masonry figure { margin: 0; }
.masonry .frame { cursor: zoom-in; border-radius: 0; }
.masonry .frame .clip { border-radius: 0; background: #f3f3f3; }
.masonry .frame img { height: auto; }
.masonry figcaption { margin-top: 8px; font-size: .86rem; line-height: 1.35; color: #3d3d3d; }
@media (max-width: 560px) { .masonry { columns: 2; column-gap: 10px; } .masonry li { margin-bottom: 12px; } .masonry figcaption { font-size: .78rem; } }

/* Galeria em modo cor */
html.skin-color .gal-head .num { color: var(--orange); }
html.skin-color .gal-nav a:hover, html.skin-color .gal-nav a:focus-visible { background: var(--violet); }
html.skin-color .gal-section { border-bottom-color: var(--rule); }

/* ==========================================================================
   PENA no cabeçalho — escreve "Clássico" / "Vibrante"; clique troca a pele. Mais nada.
   ========================================================================== */
.bar { justify-content: flex-start; }
.bar .nav { margin-left: auto; }
.nav a { white-space: nowrap; }
.skin-pen { display: inline-flex; align-items: center; gap: 6px; margin-left: -10px; padding: 6px 4px; background: none; border: 0; cursor: pointer; font: inherit; font-size: .9rem; color: #0b0b0b; -webkit-tap-highlight-color: transparent; }
.skin-pen:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
.skin-pen img { width: 18px; height: auto; flex: none; filter: brightness(0); transform-origin: 30% 90%; animation: pen-hop 1.1s ease-in-out infinite; }
.skin-pen.writing img { animation: pen-write .32s ease-in-out infinite; }
.skin-pen .pen-word { display: inline-block; width: 4.9em; text-align: left; white-space: nowrap; overflow: hidden; font-style: italic; letter-spacing: .01em; }
.skin-pen .pen-word::after { content: ""; display: inline-block; width: 1px; height: .95em; margin-left: 1px; vertical-align: -.1em; background: currentColor; opacity: 0; }
.skin-pen.writing .pen-word::after { opacity: .6; }
html.skin-color .skin-pen { color: #6a00f4; }
html.skin-color .skin-pen img { filter: none; }
@keyframes pen-hop { 0%, 100% { transform: translateY(0) rotate(-8deg); } 45% { transform: translateY(-4px) rotate(4deg); } 60% { transform: translateY(-1px) rotate(2deg); } }
@keyframes pen-write { 0%, 100% { transform: translate(0, 0) rotate(-14deg); } 50% { transform: translate(2px, 1px) rotate(-4deg); } }
@media (min-width: 981px) and (max-width: 1200px) {
  .nav a { padding: 10px 7px; font-size: .9rem; }
  .nav a::after { left: 7px; right: 7px; }
  .lang { margin-left: 6px; padding-left: 6px; }
  .skin-pen { font-size: .85rem; }
}
@media (max-width: 980px) {
  .skin-pen { margin-left: auto; margin-right: 6px; order: 1; }
  .menu-btn { order: 2; }
}
@media (max-width: 380px) { .skin-pen .pen-word { width: 4.4em; font-size: .82rem; } }
@media (prefers-reduced-motion: reduce) { .skin-pen img { animation: none !important; } }
@media print { .skin-pen { display: none; } }
