/* ASA-3D — site styles (v2, after the "Ranty" construction landing template)
   Warm stone + taupe surfaces, tall didone display type, logo colours as small accents. */

:root {
  --stone: #e6e1db;
  --stone-2: #d8d1c8;
  --paper: #ffffff;
  --taupe: #8c7766;
  --taupe-deep: #6e5b4d;
  --ink: #2a2420;
  --ink-soft: #5e544c;
  --line: rgba(42, 36, 32, .14);

  /* logo accents — used small */
  --blue: #2337c6;
  --red: #e4472b;
  --green: #2fa84f;

  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --r-lg: 28px;
  --r-md: 18px;
  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.6;
  color: var(--ink); background: var(--stone);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 { margin: 0 0 .5em; font-weight: 500; line-height: 1.05; }
h2 { font-family: var(--display); font-size: clamp(2.1rem, 1.3rem + 3vw, 3.75rem); letter-spacing: -.01em; }
h3 { font-family: var(--sans); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 64ch; }

html[lang="sq"] [data-l="en"], html[lang="en"] [data-l="sq"] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons & small parts ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--stone); }
.btn-line { border-color: currentColor; background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.link-under { font-weight: 600; font-size: .9rem; text-decoration: underline; text-decoration-thickness: 1.5px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 12px; font-size: .78rem; font-weight: 500; }
.chips li.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* three squares from the logo — the brand mark used as a quiet signature */
.cubes { display: inline-flex; gap: 4px; }
.cubes i { width: 12px; height: 12px; border: 2px solid; display: block; }
.cubes i:nth-child(1) { border-color: var(--red); }
.cubes i:nth-child(2) { border-color: var(--green); }
.cubes i:nth-child(3) { border-color: var(--blue); }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto; z-index: 40; color: #fff; }
.site-header.solid { position: sticky; top: 0; background: rgba(230, 225, 219, .94); color: var(--ink); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 104px; }
.brand { display: inline-flex; background: #fff; border-radius: 16px; padding: 8px 12px; }
.brand img { height: 72px; width: auto; }
@media (max-width: 560px) {
  .header-inner { min-height: 88px; }
  .brand img { height: 58px; }
}
.nav { display: flex; gap: 30px; margin: 0 auto; }
.nav a { text-decoration: none; font-size: .9rem; font-weight: 500; opacity: .92; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-thickness: 1.5px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 2px; }
.lang button { font: 600 .8rem/1 var(--sans); color: inherit; background: none; border: 0; padding: 8px 6px; opacity: .6; cursor: pointer; }
.lang button[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.header-cta { font-size: .85rem; font-weight: 600; letter-spacing: .02em; text-decoration: underline; text-decoration-thickness: 1.5px; }
.menu-toggle { display: none; font: 600 .85rem/1 var(--sans); color: inherit; background: none; border: 1.5px solid currentColor; border-radius: var(--r-pill); padding: 10px 16px; cursor: pointer; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-block; }
  .header-cta { display: none; }
  .nav {
    position: absolute; top: calc(100% - 4px); left: var(--gutter); right: var(--gutter); margin: 0;
    flex-direction: column; gap: 0; padding: 8px 20px; border-radius: var(--r-md);
    background: #fff; color: var(--ink); box-shadow: 0 18px 40px rgba(42, 36, 32, .18); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .header-actions { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(720px, 100svh); color: #fff; overflow: hidden;
  background: #3b2a20 url("../img/g/hero.jpg") center 62% / cover no-repeat;
  display: flex; flex-direction: column;
}
.hero::before { /* keep the headline legible over the bright sun */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(30, 20, 14, .55) 0%, rgba(30, 20, 14, .15) 55%, rgba(30, 20, 14, 0) 80%),
              linear-gradient(0deg, rgba(30, 20, 14, .55) 0%, rgba(30, 20, 14, 0) 40%);
}
.hero > .wrap { position: relative; width: 100%; }
.hero-main { flex: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 150px; padding-bottom: 40px; }
.hero h1 {
  font-family: var(--display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(3rem, 1.2rem + 6.4vw, 7rem); line-height: .92; letter-spacing: -.02em; margin: 0;
}
.hero h1 sup { font-family: var(--sans); font-size: .16em; vertical-align: top; letter-spacing: 0; margin-left: .2em; }
.hero-sub { font-size: 1.05rem; margin: 22px 0 30px; opacity: .92; }

.hero-card {
  justify-self: end; width: min(420px, 100%); background: rgba(255, 255, 255, .94); color: var(--ink);
  border-radius: var(--r-lg); padding: 22px; box-shadow: 0 30px 60px rgba(20, 12, 8, .25);
}
.hero-card h2 { font-family: var(--sans); font-size: 1.45rem; font-weight: 500; line-height: 1.2; margin: 18px 0 6px; letter-spacing: -.01em; }
.hero-card p { font-size: .85rem; color: var(--ink-soft); margin: 0 0 18px; }
.hero-card .peek { display: grid; grid-template-columns: 1fr 120px; gap: 14px; align-items: end; text-decoration: none; }
.hero-card .peek-label { font-size: .8rem; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.hero-card .peek-label .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--taupe); display: grid; place-items: center; color: #fff; }
.hero-card .peek img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; }

.hero-foot { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 32px; align-items: end; padding-bottom: 32px; }
.mat-card {
  display: grid; grid-template-columns: 1fr 140px; gap: 12px; align-items: end;
  background: rgba(140, 119, 102, .92); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 0; padding: 22px; color: #fff;
}
.mat-card h3 { font-family: var(--sans); font-size: 1.3rem; font-weight: 500; margin-bottom: 30px; }
.mat-card p { font-size: .8rem; margin: 0; opacity: .9; }
.mat-card img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; }
.hero-claim { display: flex; justify-content: flex-end; align-items: end; gap: 40px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .cubes { margin-bottom: 8px; }
.hero-stat .cubes i { border-color: #fff; }
.hero-stat .cubes i:nth-child(1) { border-color: var(--red); }
.hero-stat .cubes i:nth-child(2) { border-color: var(--green); }
.hero-stat .cubes i:nth-child(3) { border-color: #8f9cff; }
.hero-stat strong { display: block; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 2.6rem; line-height: 1; }
.hero-stat span { font-size: .75rem; opacity: .85; }
.hero-claim .claim { max-width: 330px; }
.hero-claim .claim p { font-size: 1.35rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; margin: 0 0 14px; }

@media (max-width: 1020px) {
  .hero-main { grid-template-columns: 1fr; padding-top: 150px; }
  .hero-card { justify-self: start; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-claim { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .hero-card .peek { grid-template-columns: 1fr 96px; }
  .mat-card { grid-template-columns: 1fr 96px; }
  .hero-claim { gap: 24px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin: 0; max-width: 16ch; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 46ch; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--ink-soft); margin-bottom: 18px; }

/* Profile */
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.profile h2 { max-width: 13ch; }
.profile .lead { font-size: 1.15rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.stat { background: var(--paper); border-radius: var(--r-md); padding: 22px 20px; }
.stat strong { display: block; font-family: var(--display); font-size: 2.6rem; font-weight: 500; line-height: 1; margin-bottom: 10px; }
.stat span { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service { background: var(--paper); border-radius: var(--r-lg); padding: 14px 14px 30px; }
.service img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: calc(var(--r-lg) - 8px); margin-bottom: 26px; }
.service-body { padding: 0 14px; }
.service h3 { font-family: var(--display); font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 500; line-height: 1.05; margin-bottom: 12px; }
.service p { color: var(--ink-soft); }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ticks li { padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 7px; border-left: 2px solid var(--taupe-deep); border-bottom: 2px solid var(--taupe-deep); transform: rotate(-45deg); }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

/* Method — a real sequence */
.method { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px); }
.method .section-head p { color: rgba(255, 255, 255, .72); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 20px; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--display); font-style: italic; font-size: 2.4rem; line-height: 1; margin-bottom: 16px; color: #d9c6b6; }
.steps h3 { font-size: 1.05rem; margin-bottom: 8px; }
.steps p { font-size: .9rem; color: rgba(255, 255, 255, .72); margin: 0; }
.method-img { margin-top: 48px; border-radius: var(--r-md); width: 100%; aspect-ratio: 21 / 7; object-fit: cover; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .method-img { aspect-ratio: 4 / 3; } }

/* Works gallery */
.works { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 210px; gap: 16px; }
.work { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--stone-2); color: #fff; text-decoration: none; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .work img { transition: none; } .work:hover img { transform: none; } }
.work figcaption, .work .cap {
  position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px);
  background: rgba(255, 255, 255, .92); color: var(--ink); border-radius: var(--r-pill); padding: 7px 14px; font-size: .8rem; font-weight: 600;
}
.w-a { grid-column: span 7; grid-row: span 2; }
.w-b { grid-column: span 5; }
.w-c { grid-column: span 5; }
.w-d { grid-column: span 4; }
.w-e { grid-column: span 4; }
.w-f { grid-column: span 4; }
@media (max-width: 860px) {
  .works { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .w-a { grid-column: span 2; grid-row: span 2; }
  .w-b, .w-c, .w-d, .w-e, .w-f { grid-column: span 1; }
}
@media (max-width: 520px) { .works { grid-template-columns: 1fr; } .w-a, .w-b, .w-c, .w-d, .w-e, .w-f { grid-column: span 1; grid-row: span 1; } .works { grid-auto-rows: 220px; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(30, 24, 20, .92); }
.lightbox img { max-width: 100%; max-height: calc(92vh - 60px); margin: 0 auto; border-radius: 12px; }
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: 10px; }

/* Safety */
.safety { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.safety > div { padding: 28px 28px 32px 0; border-bottom: 1px solid var(--line); }
.safety > div:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.safety h3 { margin-bottom: 8px; }
.safety p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
@media (max-width: 860px) {
  .safety { grid-template-columns: 1fr 1fr; }
  .safety > div, .safety > div:not(:nth-child(3n+1)) { padding: 24px 20px 24px 0; border-left: 0; }
  .safety > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) { .safety { grid-template-columns: 1fr; } .safety > div:nth-child(even) { padding-left: 0; border-left: 0; } }

/* Career band */
.career-band { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--taupe); color: #fff; border-radius: var(--r-lg); overflow: hidden; }
.career-band img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.career-band .body { padding: clamp(32px, 5vw, 64px); align-self: center; }
.career-band h2 { max-width: 14ch; }
.career-band p { opacity: .92; }
@media (max-width: 860px) { .career-band { grid-template-columns: 1fr; } .career-band img { min-height: 0; aspect-ratio: 16 / 10; } }

/* Teknomat band (sister company) */
.tk-band { display: grid; grid-template-columns: 1.1fr .9fr; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: var(--ink); }
.tk-band img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; transition: transform .6s ease; }
.tk-band:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .tk-band img { transition: none; } .tk-band:hover img { transform: none; } }
.tk-band .body { padding: clamp(28px, 4vw, 56px); align-self: center; }
.tk-band h2 { max-width: 15ch; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem); }
.tk-band p { color: var(--ink-soft); }
.tk-mark { display: inline-block; font-family: "Instrument Sans", Arial, sans-serif; font-style: italic; font-weight: 700; font-size: 1.6rem; letter-spacing: -.02em; color: #1f47d1; margin-bottom: 14px; }
@media (max-width: 860px) { .tk-band { grid-template-columns: 1fr; } .tk-band img { min-height: 0; aspect-ratio: 16 / 10; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: start; }
.contact-card { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); }
.contact-card h3 { font-size: .85rem; font-weight: 600; color: #d9c6b6; margin: 0 0 8px; }
.contact-card .block { padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.contact-card .block:first-child { padding-top: 0; }
.contact-card .block:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .big { font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); line-height: 1.2; display: block; }
.contact-card address { font-style: normal; color: rgba(255, 255, 255, .8); }
.contact-card .small { font-size: .85rem; color: rgba(255, 255, 255, .7); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }

/* Forms */
.form-card { background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); }
.form-card h3 { font-family: var(--display); font-size: 2rem; font-weight: 500; margin-bottom: 6px; }
.form-card > p { color: var(--ink-soft); }
.form { display: grid; gap: 18px; margin-top: 24px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #faf8f6;
  border: 1px solid #c9c0b6; border-radius: 12px; padding: 12px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); background: #fff; }
.field input[type="file"] { padding: 10px; background: #fff; }
.field [aria-invalid="true"] { border-color: #b3261e; background: #fdf3f1; }
.check:has(input[aria-invalid="true"]) { color: #9f2a17; }
.field .hint { font-size: .78rem; color: var(--ink-soft); margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--ink-soft); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: .9rem; font-weight: 600; padding: 12px 14px; border-radius: 12px; }
.form-status[data-state="error"] { background: #fbe9e6; color: #9f2a17; }
.form-status[data-state="ok"] { background: #e7f4ea; color: #1d6b33; }
.form-status[data-state="busy"] { background: var(--stone); color: var(--ink); }

/* Career page header */
.page-hero { position: relative; color: #fff; padding: 190px 0 80px; background: var(--ink) url("../img/g/career.jpg") center 35% / cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30, 20, 14, .78), rgba(30, 20, 14, .25)); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(2.8rem, 1.4rem + 5vw, 5.5rem); line-height: .95; letter-spacing: -.02em; margin: 0 0 18px; }
.page-hero p { font-size: 1.1rem; max-width: 52ch; opacity: .92; }

.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.role { background: var(--paper); border-radius: var(--r-md); padding: 22px; }
.role h3 { font-size: 1.05rem; margin-bottom: 6px; }
.role p { font-size: .88rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 960px) { .roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .roles { grid-template-columns: 1fr; } }
.career-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.career-layout aside ul { padding-left: 1.1em; color: var(--ink-soft); }
.career-layout aside li { margin-bottom: 8px; }
@media (max-width: 960px) { .career-layout { grid-template-columns: 1fr; } }

/* ---------- Projects ---------- */
.page-hero .crumb { font-size: .85rem; opacity: .85; margin-bottom: 14px; }
.page-hero .crumb a { color: inherit; }
.empty { color: var(--ink-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: 600 .85rem/1 var(--sans); color: var(--ink); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 11px 18px;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.p-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); padding: 12px; text-decoration: none; color: var(--ink); }
.p-card[hidden] { display: none; }
.p-img { position: relative; display: block; overflow: hidden; border-radius: calc(var(--r-lg) - 8px); aspect-ratio: 4 / 3; }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.p-card:hover .p-img img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .p-img img { transition: none; } .p-card:hover .p-img img { transform: none; } }
.badge { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .92); border-radius: var(--r-pill); padding: 6px 12px; font-size: .75rem; font-weight: 600; }
.p-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 10px 10px; flex: 1; }
.p-meta { font-size: .82rem; color: var(--ink-soft); }
.p-title { font-family: var(--display); font-size: 1.75rem; line-height: 1.1; }
.p-sum { color: var(--ink-soft); font-size: .95rem; }
.p-body .chips { margin-top: auto; padding-top: 8px; }
.chip { border: 1px solid var(--line); border-radius: var(--r-pill); padding: 5px 12px; font-size: .78rem; font-weight: 500; }
.p-cta { background: var(--taupe); color: #fff; justify-content: center; min-height: 320px; }
.p-cta .p-body { justify-content: center; gap: 14px; padding: 28px; }
.p-cta .p-sum { color: rgba(255, 255, 255, .88); }
.p-cta .btn { align-self: flex-start; }

.p-detail { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
.facts-list { margin: 0; background: var(--paper); border-radius: var(--r-lg); padding: 8px 24px; }
.facts-list > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts-list > div:last-child { border-bottom: 0; }
.facts-list dt { font-size: .8rem; color: var(--ink-soft); margin-bottom: 4px; }
.facts-list dd { margin: 0; font-weight: 600; }
.p-text p { font-size: 1.05rem; }
.p-missing { font-family: var(--display); font-weight: 500; font-size: 2.5rem; padding-top: 80px; }
@media (max-width: 860px) { .p-detail { grid-template-columns: 1fr; } .p-detail .p-text { order: -1; } }

.g-title { margin-bottom: 28px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.gallery .work { aspect-ratio: 4 / 3; }
.gallery .work:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
@media (max-width: 600px) { .gallery .work:first-child { aspect-ratio: 4 / 3; } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { background: var(--paper); border-radius: var(--r-md); padding: 20px 22px; text-decoration: none; }
.pager a:last-child { text-align: right; }
.pager .dir { display: block; font-size: .8rem; color: var(--ink-soft); margin-bottom: 4px; }
.pager .name { font-family: var(--display); font-size: 1.4rem; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager a:last-child { text-align: left; } }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 28px; font-size: .88rem; color: var(--ink-soft); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-top .brand { box-shadow: none; }
.footer-top .brand img { height: 84px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.footer-nav a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; }
.footer-bottom a { color: var(--ink); }
