/* EMiLU Projekt - ported from the original Design Canvas export
   (EMiLU Projekt.dc.html / Portfolio.dc.html / Projekt.dc.html).
   Values (colors, spacing, clamp() sizes) are copied verbatim from the
   original inline styles so the site looks the same; `style-hover` /
   `style-focus` custom attributes (a Design Canvas runtime feature) are
   replaced here with real :hover / :focus rules. See
   docs/wagtail-architecture.md for context. */

:root {
  --bg: #F7F6F3;
  --fg: #121110;
  --muted: #6E6B66;
  --line: rgba(18, 17, 16, .14);
  --line-soft: rgba(18, 17, 16, .07);
  --sand: #A89273;
  --card: #FFFFFF;
  --shade: rgba(18, 17, 16, .035);
  --headerbg: rgba(224, 220, 212, .95);
}

[data-theme="dark"] {
  --bg: #0E0E0E;
  --fg: #F1EFEB;
  --muted: #98948D;
  --line: rgba(241, 239, 235, .16);
  --line-soft: rgba(241, 239, 235, .08);
  --sand: #A89273;
  --card: #151514;
  --shade: rgba(241, 239, 235, .035);
  --headerbg: rgba(12, 12, 12, .9);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Barlow', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background .5s ease, color .5s ease;
}
img { display: block; max-width: 100%; }
a { color: var(--fg); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--sand); }
button, input, textarea { font-family: inherit; color: inherit; }
::selection { background: var(--sand); color: #fff; }

.condensed { font-family: 'Barlow Condensed', sans-serif; }

@keyframes emRise {
  from { opacity: 0; transform: translateY(34px); }
  to { opacity: 1; transform: none; }
}
@keyframes emScrollHint {
  0% { transform: translateY(0); opacity: .2; }
  50% { transform: translateY(9px); opacity: 1; }
  100% { transform: translateY(0); opacity: .2; }
}
[data-reveal] { opacity: 1; }
@supports (animation-timeline: view()) {
  [data-reveal] {
    opacity: 0;
    animation: emRise .9s ease both;
    animation-timeline: view();
    animation-range: entry 2% cover 20%;
  }
}

/* ---- Header / nav ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px clamp(20px, 3.5vw, 60px);
  backdrop-filter: blur(16px);
  background: var(--headerbg);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__logo-link { display: flex; align-items: center; gap: 14px; flex: none; }
.site-header__logo { height: 38px; width: auto; filter: none; }
[data-theme="dark"] .site-header__logo,
[data-theme="dark"] .site-footer__logo { filter: invert(1) !important; }

.nav-desktop { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav-link {
  font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav-link:hover { border-bottom-color: var(--sand); color: var(--sand); }

.site-header__right { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 20px); flex: none; }

.lang-switch { display: flex; align-items: center; gap: 8px; font-family: 'Barlow Condensed', sans-serif; font-size: 14px; letter-spacing: .14em; }
.lang-switch__sep { width: 1px; height: 12px; background: var(--line); }
.lang-switch__btn {
  background: none; border: 0; padding: 2px 1px; cursor: pointer;
  letter-spacing: .14em; font-family: 'Barlow Condensed', sans-serif; font-size: 14px;
  color: var(--muted); font-weight: 400;
}
.lang-switch__btn.is-active { color: var(--fg); font-weight: 700; }
.lang-switch__btn.is-disabled { cursor: default; color: var(--line); }

.theme-toggle {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--sand); color: var(--sand); }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; background: var(--fg); color: var(--bg);
  font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; border: 0; cursor: pointer;
}
.btn-cta:hover { background: var(--sand); color: #fff; }

.burger-btn {
  width: 38px; height: 38px; background: none; border: 1px solid var(--line);
  cursor: pointer; display: none; place-items: center;
}
@media (max-width: 1024px) { .nav-desktop { display: none !important; } .burger-btn { display: grid !important; } }
@media (min-width: 1025px) { .burger-btn { display: none !important; } }
@media (max-width: 620px) { .btn-cta[data-cta] { display: none !important; } }

/* ---- Mobile menu overlay ---- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; background: var(--bg);
  display: none; flex-direction: column; justify-content: center;
  padding: clamp(28px, 7vw, 80px);
  animation: emRise .4s ease both;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__close {
  position: absolute; top: 22px; right: 22px; width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); cursor: pointer; display: grid; place-items: center;
}
.mobile-menu__link {
  font-family: 'Barlow Condensed', sans-serif; font-size: clamp(38px, 11vw, 72px);
  font-weight: 600; text-transform: uppercase; line-height: 1.14;
  padding: 6px 0; border-bottom: 1px solid var(--line-soft);
}
.mobile-menu__contact { margin: 34px 0 0; font-size: 14px; letter-spacing: .06em; color: var(--muted); }

/* ---- Hero (home + project detail) ---- */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero--project { height: min(78vh, 760px); min-height: 440px; }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.62) contrast(1.04) brightness(.86);
}
.hero__gradient {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .1) 42%, rgba(0, 0, 0, .72) 100%);
}
.hero--project .hero__gradient {
  background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .12) 40%, rgba(0, 0, 0, .72) 100%);
}
.hero__content { position: relative; width: 100%; padding: 0 clamp(20px, 3.5vw, 60px) clamp(38px, 5vw, 74px); color: #fff; }
.hero--project .hero__content { padding-bottom: clamp(32px, 4vw, 62px); }
.hero__eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.hero__eyebrow-line { width: clamp(40px, 6vw, 96px); height: 1px; background: var(--sand); }
.hero__eyebrow-text {
  font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 500;
  letter-spacing: .34em; text-transform: uppercase; color: #fff;
}
.hero__title {
  margin: 0; font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(58px, 14vw, 220px); font-weight: 600; line-height: .9;
  letter-spacing: -.005em; text-transform: uppercase;
}
.hero__meta {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .24);
}
.hero__desc { margin: 0; max-width: 44ch; font-size: clamp(14px, 1.05vw, 17px); line-height: 1.6; color: rgba(255, 255, 255, .82); text-wrap: pretty; }
.hero__location {
  display: flex; align-items: center; gap: 10px; font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
}
.hero__location svg { animation: emScrollHint 2.2s ease-in-out infinite; }

/* Project-detail hero variant (background-image div, num + category row) */
.project-hero__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: saturate(.62) contrast(1.04) brightness(.86);
}
.project-hero__top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.project-hero__num { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .24em; color: var(--sand); }
.project-hero__rule { width: clamp(28px, 4vw, 64px); height: 1px; background: rgba(255, 255, 255, .5); }
.project-hero__cat { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.project-hero__title {
  margin: 0; max-width: 22ch; font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(38px, 7.5vw, 120px); font-weight: 600; line-height: .94;
  text-transform: uppercase; letter-spacing: -.005em;
}
.project-hero__subtitle { margin: 18px 0 0; font-size: clamp(14px, 1.05vw, 18px); color: rgba(255, 255, 255, .82); }

/* ---- Stats ---- */
.stats-section { padding: clamp(52px, 6vw, 96px) clamp(20px, 3.5vw, 60px); border-bottom: 1px solid var(--line-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: start; }
.stat__row { display: flex; align-items: baseline; gap: 8px; }
.stat__number { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(60px, 7vw, 116px); font-weight: 600; line-height: .86; }
.stat__plus { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(26px, 3vw, 44px); color: var(--sand); line-height: 1; }
.stat__label { margin: 12px 0 0; font-family: 'Barlow Condensed', sans-serif; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stats__desc { margin: 0; grid-column: span 2; max-width: 56ch; font-size: clamp(15px, 1.1vw, 18px); line-height: 1.75; color: var(--muted); text-wrap: pretty; }
@media (max-width: 620px) { .stats__desc { grid-column: span 1; } }

/* ---- Section heading (numbered) ---- */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: clamp(28px, 3.5vw, 52px); border-bottom: 1px solid var(--line); }
.section-heading__left { display: flex; align-items: flex-start; gap: clamp(16px, 2.4vw, 38px); }
.section-heading__num { font-family: 'Barlow Condensed', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: .2em; color: var(--sand); padding-top: .7em; }
.section-heading__title { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(40px, 6.5vw, 104px); font-weight: 600; line-height: .92; text-transform: uppercase; letter-spacing: -.005em; }
.section-heading__intro { margin: 0; max-width: 38ch; font-size: 15px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.section-heading__link { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--sand); padding-bottom: 4px; }

/* ---- Services ---- */
.services-section { padding: clamp(64px, 8vw, 140px) clamp(20px, 3.5vw, 60px); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1px; background: var(--line-soft); margin-top: 1px; }
.service-card { background: var(--bg); padding: clamp(28px, 2.6vw, 44px); display: flex; flex-direction: column; gap: 16px; min-height: 340px; }
.service-card:hover { background: var(--shade); }
.service-card__top { display: flex; align-items: center; justify-content: space-between; }
.service-card__num { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .22em; color: var(--sand); }
.service-card__icon { width: 20px; height: 20px; }
.service-card__title { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(21px, 1.5vw, 27px); font-weight: 600; line-height: 1.14; text-transform: uppercase; letter-spacing: .005em; }
.service-card__body { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }

/* ---- About ---- */
.about-section { padding: clamp(64px, 8vw, 140px) clamp(20px, 3.5vw, 60px); background: var(--shade); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(32px, 5vw, 90px); align-items: start; }
.about__sticky { position: sticky; top: 120px; }
.about__subtitle { margin: 24px 0 0 clamp(32px, 4.6vw, 76px); font-family: 'Barlow Condensed', sans-serif; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.about__body { display: flex; flex-direction: column; gap: 20px; max-width: 70ch; }
.about__body p:first-child { margin: 0; font-size: clamp(17px, 1.4vw, 23px); line-height: 1.6; font-weight: 300; text-wrap: pretty; }
.about__body p { margin: 0; font-size: 15.5px; line-height: 1.78; color: var(--muted); text-wrap: pretty; }

/* ---- Portfolio teaser (on the homepage) ---- */
.portfolio-teaser { padding: clamp(64px, 8vw, 140px) 0 0; }
.portfolio-teaser .section-heading { padding: 0 clamp(20px, 3.5vw, 60px) clamp(28px, 3.5vw, 52px); }
.project-row {
  display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line-soft);
  padding: clamp(22px, 2.6vw, 44px) clamp(20px, 3.5vw, 60px); gap: clamp(18px, 2vw, 40px);
}
.project-row:hover { background: var(--shade); }
.project-row__top { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.project-row__left { display: flex; align-items: baseline; gap: clamp(14px, 1.8vw, 32px); min-width: 0; }
.project-row__num { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .2em; color: var(--sand); flex: none; }
.project-row__title { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(26px, 3.6vw, 60px); font-weight: 500; line-height: 1.02; text-transform: uppercase; letter-spacing: .005em; }
.project-row__tag { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); flex: none; }
.project-row__image-wrap { overflow: hidden; background: var(--shade); }
.project-row__image { width: 100%; height: clamp(220px, 42vw, 620px); object-fit: cover; filter: saturate(.68) contrast(1.02); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1), filter .6s ease; }
.project-row:hover .project-row__image { transform: scale(1.035); filter: saturate(.92) contrast(1.02); }

/* ---- Contact ---- */
.contact-section { padding: clamp(64px, 8vw, 140px) clamp(20px, 3.5vw, 60px); }
.contact-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact-info-card { background: var(--bg); padding: clamp(24px, 2.4vw, 40px); display: flex; gap: 18px; align-items: flex-start; }
.contact-info-card svg { flex: none; margin-top: 3px; }
.contact-info-card__label { margin: 0 0 6px; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-info-card__value { margin: 0; font-size: 17px; }
.contact-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(30px, 4vw, 80px); padding-top: clamp(40px, 5vw, 80px); align-items: start; }
.contact-heading { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(28px, 3vw, 48px); font-weight: 600; line-height: 1.04; text-transform: uppercase; }
.contact-desc { margin: 18px 0 0; max-width: 40ch; font-size: 15px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }
.contact-email-link { display: inline-block; margin-top: 26px; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(17px, 1.5vw, 24px); letter-spacing: .02em; border-bottom: 1px solid var(--sand); padding-bottom: 4px; }

.contact-form { display: grid; gap: 0; }
.contact-form .field-error { margin: 0 0 6px; font-size: 13px; color: #c0392b; }
.contact-form input, .contact-form textarea, .contact-form select {
  background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 16px 2px; font-size: 16px; outline: none; width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-bottom-color: var(--sand); }
.contact-form textarea { resize: vertical; }
.cf-turnstile { margin-top: 20px; }
.contact-form__submit {
  margin-top: 26px; justify-self: start; padding: 15px 34px;
  background: var(--fg); color: var(--bg); border: 0;
  font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
}
.contact-form__submit:hover { background: var(--sand); color: #fff; }
.form-message { margin: 14px 0 0; font-size: 13px; color: var(--sand); min-height: 1.2em; }

/* ---- Footer ---- */
.site-footer { padding: clamp(38px, 4vw, 64px) clamp(20px, 3.5vw, 60px); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.site-footer__logo { height: 34px; width: auto; }
.site-footer__email { font-size: 15px; letter-spacing: .02em; }
.site-footer__social { display: flex; align-items: center; gap: 20px; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.site-footer__copy { margin: 0; font-size: 13px; letter-spacing: .06em; color: var(--muted); }

/* ---- English-translation-pending notice ---- */
.en-notice {
  position: fixed; top: 74px; left: 0; right: 0; z-index: 55;
  background: var(--sand); color: #fff; text-align: center; padding: 7px 16px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-family: 'Barlow Condensed', sans-serif;
}

/* ---- Page header (Portfolio index) ---- */
.page-header { padding: 0 clamp(20px, 3.5vw, 60px); }
.page-header__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: clamp(24px, 3vw, 44px); border-bottom: 1px solid var(--line); }
.page-header__eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.page-header__eyebrow-line { width: clamp(32px, 4vw, 64px); height: 1px; background: var(--sand); }
.page-header__eyebrow-text { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.page-header__title { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(46px, 9vw, 150px); font-weight: 600; line-height: .9; text-transform: uppercase; letter-spacing: -.005em; }
.page-header__desc { margin: 0; max-width: 36ch; font-size: 15px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }

.main-content { padding-top: clamp(120px, 12vw, 190px); }

/* ---- Filter bar (Portfolio index) ---- */
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 22px clamp(20px, 3.5vw, 60px); border-bottom: 1px solid var(--line-soft); }
.filter-chip {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  padding: 9px 18px; cursor: pointer; font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.filter-chip:hover { border-color: var(--sand); }
.filter-chip.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filter-count { margin-left: auto; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---- Project grid (Portfolio index) ---- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 1px; background: var(--line-soft); }
.project-card { background: var(--bg); padding: clamp(16px, 1.6vw, 26px); display: flex; flex-direction: column; gap: 16px; }
.project-card:hover { background: var(--shade); }
.project-card__image-wrap { overflow: hidden; background: var(--shade); }
.project-card__image { width: 100%; height: clamp(220px, 26vw, 360px); object-fit: cover; filter: saturate(.68) contrast(1.02); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1), filter .6s ease; }
.project-card:hover .project-card__image { transform: scale(1.04); filter: saturate(.92); }
.project-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.project-card__num { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--sand); }
.project-card__year { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.project-card__title { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(22px, 2vw, 32px); font-weight: 600; line-height: 1.06; text-transform: uppercase; }
.project-card__subtitle { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* ---- CTA banner (bottom of Portfolio index) ---- */
.cta-banner { padding: clamp(50px, 6vw, 100px) clamp(20px, 3.5vw, 60px); display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.cta-banner__title { margin: 0; max-width: 22ch; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(28px, 4vw, 64px); font-weight: 600; line-height: 1; text-transform: uppercase; }
.cta-banner__btn { display: inline-flex; padding: 16px 34px; background: var(--fg); color: var(--bg); font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.cta-banner__btn:hover { background: var(--sand); color: #fff; }

/* ---- Project detail: meta + description ---- */
.project-meta-section {
  padding: clamp(44px, 5vw, 90px) clamp(20px, 3.5vw, 60px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(30px, 5vw, 90px); align-items: start; border-bottom: 1px solid var(--line-soft);
}
.project-meta-list { display: grid; gap: 0; }
.project-meta-row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.project-meta-row:first-child { border-top: 1px solid var(--line); }
.project-meta-row:last-child { border-bottom: 1px solid var(--line); }
.project-meta-label { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.project-meta-value { font-size: 15.5px; text-align: right; }
.project-description { grid-column: span 2; max-width: 74ch; }
.project-description p { margin: 0; font-size: clamp(16px, 1.35vw, 22px); line-height: 1.66; font-weight: 300; text-wrap: pretty; }
@media (max-width: 620px) { .project-description { grid-column: span 1; } }

/* ---- Project detail: gallery ---- */
.gallery-section { padding: clamp(28px, 3vw, 56px) clamp(20px, 3.5vw, 60px) clamp(50px, 6vw, 100px); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: clamp(10px, 1.2vw, 20px); }
.gallery-item { overflow: hidden; background: var(--shade); }
.gallery-item img { width: 100%; height: clamp(240px, 30vw, 520px); object-fit: cover; filter: saturate(.68) contrast(1.02); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1), filter .6s ease; }
.gallery-item:hover img { transform: scale(1.03); filter: saturate(.92); }

/* ---- Project detail: prev/next ---- */
.prev-next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line-soft); border-top: 1px solid var(--line); }
.prev-next-btn { background: var(--bg); border: 0; cursor: pointer; padding: clamp(26px, 3vw, 52px) clamp(20px, 3.5vw, 60px); display: flex; flex-direction: column; gap: 10px; }
.prev-next-btn:hover { background: var(--shade); }
.prev-next-btn--next { align-items: flex-end; text-align: right; }
.prev-next-btn__label { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--sand); }
.prev-next-btn__title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(22px, 2.4vw, 38px); font-weight: 600; text-transform: uppercase; line-height: 1.06; }

/* ---- Project detail: bottom row ---- */
.bottom-cta-row { padding: clamp(34px, 4vw, 64px) clamp(20px, 3.5vw, 60px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); }
.back-link { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--sand); padding-bottom: 4px; }
.bottom-cta-row .btn-cta { padding: 15px 32px; }
