/* =============================================
   WISE HABIT AGENCY - v5
   Font: CircularXX (local) / Nunito fallback
   BG: #faf7f4 | Max content width: 1730px
   ============================================= */

/* CircularXXTT - pliki TTF z folderu /fonts/ */
@font-face {
  font-family: 'CircularXX';
  src: url('../fonts/CircularXXTT-Book.ttf') format('truetype');
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CircularXX';
  src: url('../fonts/CircularXXTT-Book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CircularXX';
  src: url('../fonts/CircularXXTT-BookItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'CircularXX';
  src: url('../fonts/CircularXXTT-Regular.ttf') format('truetype');
  font-weight: 450;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CircularXX';
  src: url('../fonts/CircularXXTT-Medium.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CircularXX';
  src: url('../fonts/CircularXXTT-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CircularXX';
  src: url('../fonts/CircularXXTT-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CircularXX';
  src: url('../fonts/CircularXXTT-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CircularXX';
  src: url('../fonts/CircularXXTT-Thin.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700&display=swap');

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

:root {
  --black: #000000;
  --bg: #FAFAFA;
  --border: #d2d2d2;
  --font: 'CircularXX', 'Nunito', sans-serif;
  --nav-height: 64px;
  --strip-height: 6px;
  --pad-h: 64px;
  --max-w: 1560px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

/* Sitewide zoom — scales progressively with monitor width.
   Mobile (<= 900px) stays untouched (handled by dedicated mobile CSS).
   Reference: MacBook Air M2 13.6" = 1280px CSS viewport = 80%. */
@media (min-width: 901px)  { html { zoom: 65%; } }  /* tablets / very small laptops */
@media (min-width: 1100px) { html { zoom: 72%; } }  /* small laptops ~11–12" */
@media (min-width: 1280px) { html { zoom: 80%; } }  /* MacBook Air M2 13.6" — reference */
@media (min-width: 1440px) { html { zoom: 85%; } }  /* 15" laptops / 1440p */
@media (min-width: 1680px) { html { zoom: 90%; } }  /* large monitors / 1680p */
@media (min-width: 1920px) { html { zoom: 100%; } } /* Full HD 1920p */
@media (min-width: 2560px) { html { zoom: 120%; } } /* 2K / 4K monitors */

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--black);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Utility: constrained row */
.inner {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pad-h);
  padding-right: var(--pad-h);
}

/* =============================================
   NAV
   ============================================= */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg);
  height: var(--nav-height);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo: Agency for the Future (left) */
.nav__logo { display: flex; align-items: center; }
.nav__logo-agency img { height: 28px; }

/* WH icon: absolute far right */
.nav__logo-wh {
  position: absolute;
  right: var(--pad-h);
  top: 50%;
  transform: translateY(-50%);
}
.nav__logo-wh img { height: 20px; opacity: 0.7; }
.nav__logo-wh:hover img { opacity: 1; }

/* Push links away from right logo */
.nav__links {
  display: flex; align-items: center; gap: 36px; list-style: none;
  padding-right: 80px;
}

/* Nav link style */
.nav__links a, .nav__dropdown > span {
  font-family: var(--font);
  color: var(--black);
  font-size: 14px;
  font-weight: 350;
  cursor: pointer;
  opacity: 1;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}
.nav__links a:hover { opacity: 0.55; }
.nav__dropdown:hover > span { opacity: 0.55; }
.nav__links .active > a {
  opacity: 1;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--black);
}

/* Dropdown chevron via CSS - replace ▾ text in HTML */
.nav__dropdown > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav__dropdown > span::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 5' fill='none'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.nav__dropdown:hover > span::after {
  transform: rotate(180deg);
}

/* Dropdown menu */
.nav__dropdown { position: relative; }

/* Invisible bridge fills the gap between trigger and menu so cursor doesn't lose hover */
.nav__dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 16px;
}

.nav__dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 8px); left: -16px;
  background: var(--bg);
  border: 1px solid var(--black);
  min-width: 200px;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-radius: 2px;
}
.nav__dropdown:hover .nav__dropdown-menu { display: block; }
.nav__dropdown-menu a {
  display: block;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 350;
  opacity: 1;
  letter-spacing: 0.01em;
  transition: opacity 0.12s, background 0.12s;
}
.nav__dropdown-menu a:hover { opacity: 1; background: rgba(0,0,0,0.03); }

.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav__hamburger span { display: block; width: 24px; height: 1.5px; background: var(--black); transition: all 0.3s; }
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav__mobile {
  display: none; position: fixed;
  top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: var(--bg); z-index: 999;
  padding: 32px var(--pad-h); overflow-y: auto;
  border-top: 1px solid var(--black);
}
.nav__mobile.open { display: block; }
.nav__mobile-links { list-style: none; }
.nav__mobile-links li { border-bottom: 1px solid var(--black); }
.nav__mobile-links a, .nav__mobile-links > li > span {
  display: block; color: var(--black); font-size: 26px;
  font-weight: 350; padding: 16px 0; cursor: pointer;
}
.nav__mobile-sub { list-style: none; padding-left: 20px; }
.nav__mobile-sub a { font-size: 20px; padding: 12px 0; opacity: 1; }

/* =============================================
   COLOR STRIP
   ============================================= */

.color-strip-wrapper {
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  height: var(--strip-height); z-index: 999; overflow: hidden;
}
.color-strip { display: flex; height: 100%; will-change: transform; }
.color-strip__seg { flex-shrink: 0; height: 100%; }

/* =============================================
   PAGE WRAPPER
   ============================================= */

.page-content { padding-top: calc(var(--nav-height) + var(--strip-height)); }

/* =============================================
   HERO
   ============================================= */

.hero {
  padding-top: clamp(100px, 18vw, 260px);
  padding-bottom: 80px;
}

.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  text-align: left;
}

.hero__tag {
  font-size: 17px;
  font-weight: 350;
  letter-spacing: 0px;
  color: var(--black);
  opacity: 1;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero__title {
  font-size: clamp(52px, 5.2vw, 90px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--black);
  max-width: 100%;
  margin-bottom: 44px;
}

/* Force 2-line break: line 2 always starts on new line */
.hero__title .line2 { display: block; }

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* SVG icons - inline arrows */
.icon-arr { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px; font-weight: 400;
  cursor: pointer;
  border-radius: 4px;
  padding: 13px 24px;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.btn--filled {
  background: var(--black); color: #fff; border: 1.5px solid var(--black);
}
.btn--filled:hover { background: transparent; color: var(--black); border-color: var(--black); }
.btn--filled:hover .icon-arr { color: var(--black); }
.btn--filled:hover img { filter: none; }
.btn--filled img { filter: invert(1); height: 11px; }
.btn--filled .icon-arr { color: #fff; }

.btn--outline {
  background: transparent; color: var(--black); border: 1.5px solid var(--black);
}
.btn--outline:hover { background: var(--black); color: #fff; }
.btn--outline img { height: 11px; }
.btn--outline:hover img { filter: invert(1); }

/* =============================================
   HERO CAROUSEL (homepage only)
   ============================================= */

.hero--carousel { padding: 0; }

/* Photo strip: only the images slide; shorter, full-bleed banner */
.hero-slider { position: relative; overflow: hidden; }
.hero-track { display: flex; transition: transform 0.5s ease; }

.hero-slide {
  position: relative;
  min-width: 100%;
  flex-shrink: 0;
  aspect-ratio: 4 / 1;
  min-height: 220px;
}

.hero-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* override per-image via inline style="object-position:…" */
}

/* Click-to-navigate zones over the photo only, left half = prev, right half = next */
.hero-slide__zone {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  z-index: 1;
  background: transparent;
  border: none;
  padding: 0;
}
.hero-slide__zone--prev { left: 0; cursor: w-resize; }
.hero-slide__zone--next { right: 0; cursor: e-resize; }

/* Text block below the photo, on the plain page background */
.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px var(--pad-h) 56px;
  text-align: left;
}

.hero-content__panel { display: none; }
.hero-content__panel.active { display: block; }

.hero-content__bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 36px;
}

.hero__ctas-set { display: none; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero__ctas-set.active { display: flex; }
.hero__ctas-set .btn { min-width: 220px; justify-content: center; }

.hero-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.hero__counter { font-size: 14px; opacity: 1; }
.hero__dots { display: flex; gap: 6px; }
.hero__dot {
  width: 10px; height: 10px;
  border-radius: 2px;
  background: #bbb;
  border: none; cursor: pointer;
  transition: background 0.15s;
}
.hero__dot.active { background: #333; }

.hero__nav { display: flex; gap: 8px; }
.hero__btn {
  background: none; border: 1px solid var(--black);
  width: 40px; height: 40px; cursor: pointer; border-radius: 2px;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
  color: var(--black);
}
.hero__btn:hover { background: var(--black); color: #fff; }

@media (max-width: 900px) {
  /* hero-slide uses aspect-ratio: 16/5 — no fixed height needed */
  .hero-content__bottom-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  /* Hero banner — flat panoramic on mobile */
  .hero-slide { aspect-ratio: 3 / 1; min-height: 130px; }
}

/* =============================================
   AGENCY INTRO - 3 karty
   ============================================= */

.agency-intro {
  padding: 120px 0;
}

.agency-intro__top {
  text-align: center;
  margin-bottom: 64px;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--pad-h);
}

.agency-intro__eyebrow {
  font-size: 15px; font-weight: 350; opacity: 1; margin-bottom: 16px;
}

.agency-intro__title {
  font-size: clamp(32px, 3.8vw, 60px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.5px;
  max-width: 1100px;
  margin: 0 auto;
}

.agency-intro__cards {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.intro-card {
  flex: 1;
  min-width: 240px;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.intro-card__icon { width: 44px; height: 44px; }

.intro-card__title { font-size: 24px; font-weight: 350; }

.intro-card__text { font-size: 15px; line-height: 1.7; color: var(--black); flex: 1; font-weight: 350; }

.intro-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 400;
  background: var(--black); color: #fff;
  border-radius: 4px; padding: 10px 20px;
  align-self: flex-start;
  transition: background 0.15s;
}
.intro-card__link:hover { background: #333; }
.intro-card__link img { height: 10px; filter: invert(1); }

/* =============================================
   NUTSHELL - BENTO GRID
   ============================================= */

.nutshell {
  padding: 120px 0;
  background: #CCE2FC;
}

.nutshell__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

.nutshell__label {
  font-size: 15px; font-weight: 350; margin-bottom: 40px; color: var(--black);
}

/* Stats grid (nutshell — 3 cols) */
.nutshell .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 48px;
  row-gap: 0;
}

.stat-block {
  padding: 40px 0;
}

.stat-block__value {
  font-size: clamp(48px, 6.5vw, 92px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.stat-block__desc {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 350;
  max-width: 380px;
}

/* Keep bento styles for design/rd subpages */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto auto;
  gap: 16px;
  margin-bottom: 20px;
}

.bento-card {
  background: transparent;
  border: 1px solid rgba(0,0,0,0.25);
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  border-radius: 6px;
}

.bento-card__num { font-size: clamp(48px, 6vw, 72px); font-weight: 300; line-height: 1; color: var(--black); }
.bento-card__text { font-size: 15px; line-height: 1.55; font-weight: 350; color: var(--black); margin-top: auto; }
.bento-card__text strong { font-weight: 700; }

.bento-card.c1 { grid-column: 1/5; grid-row: 1; }
.bento-card.c2 { grid-column: 5/8; grid-row: 1; }
.bento-card.c3 { grid-column: 8/13; grid-row: 1; }
.bento-card.c4 { grid-column: 1/6; grid-row: 2; }
.bento-card.c5 { grid-column: 6/10; grid-row: 2; }
.bento-card.c6 { grid-column: 10/13; grid-row: 2; }
.bento-card.c7 { grid-column: 1/5; grid-row: 3; }
.bento-card.c8 { grid-column: 5/9; grid-row: 3; }
.bento-card.c9 { grid-column: 9/13; grid-row: 3; }

/* =============================================
   SERVICES - open, no surrounding border box
   ============================================= */

.services {
  padding: 120px 0;
  background: #ECECEC;
}

.services__header {
  text-align: center;
  margin-bottom: 56px;
}

.services__eyebrow {
  font-size: 15px; opacity: 1; margin-bottom: 14px;
}

.services__title {
  font-size: clamp(32px, 3.8vw, 60px);
  font-weight: 300; line-height: 1.15; letter-spacing: -0.5px;
}

.services__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.service-col {
  padding: 36px 32px;
}
.service-col:first-child { padding-left: 0; }
.service-col:last-child { padding-right: 0; }

.service-col__head {
  display: flex; justify-content: flex-start; align-items: center; gap: 6px; margin-bottom: 14px;
}
.service-col__title {
  font-size: clamp(22px, 2.4vw, 36px); font-weight: 300; letter-spacing: 0; text-transform: uppercase;
}
.service-col__title-link { text-decoration: none; color: inherit; display: block; }
.service-col__arr { font-size: 0.78em; font-weight: 400; }

.service-col__list { list-style: none; }
.service-col__list li {
  font-size: 15px; font-weight: 350; letter-spacing: 0; text-transform: uppercase;
  padding: 10px 0; border-bottom: 1px solid var(--black);
  line-height: 1.45; color: var(--black);
}
.service-col__list li:last-child { border-bottom: none; }

/* =============================================
   PORTFOLIO SLIDER
   image constrained to content width, text below
   ============================================= */

.portfolio {
  padding: 72px 0 0;
}

.portfolio__header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  margin-bottom: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.portfolio__header-left { flex: 1; }

.portfolio__eyebrow { font-size: 15px; opacity: 1; margin-bottom: 10px; }
.portfolio__title {
  font-size: clamp(32px, 3.8vw, 60px);
  font-weight: 300; line-height: 1.2; letter-spacing: -0.5px;
}

/* ── Homepage portfolio grid (static 3x3, replaces the slider on index.html only) ── */
.portfolio-grid__header {
  max-width: var(--max-w);
  margin: 0 auto 48px;
  padding: 0 var(--pad-h);
}

.portfolio-grid__desc {
  max-width: 640px;
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

.portfolio-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.portfolio-grid__item {
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.portfolio-grid__item img {
  width: 100%;
  aspect-ratio: 7 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.portfolio-grid__item:hover img {
  transform: scale(1.04);
}

.portfolio-grid__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.90);
  color: #fff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.portfolio-grid__item:hover .portfolio-grid__overlay { opacity: 1; }

.portfolio-grid__overlay-title {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 14px;
}

.portfolio-grid__overlay-designer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.portfolio-grid__overlay-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 12px;
}

.portfolio-grid__overlay-scope {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
}

.portfolio-grid__more {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding: 0 var(--pad-h) 80px;
  color: var(--black);
  font-size: 15px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

@media (max-width: 600px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ── Awards / Trusted-by logoband (shared with about.html) ── */
.about-logoband__inner { max-width: var(--max-w); margin: 0 auto; padding: 120px var(--pad-h); }
.about-logoband__label { font-size: clamp(32px, 3.6vw, 50px); font-weight: 300; letter-spacing: -0.5px; margin-bottom: 28px; }
.about-logoband__logos img { max-width: 100%; height: auto; display: block; }

/* Awards logos: scrolling marquee (scoped to the Awards section only, id="awards") */
#awards .about-logoband__logos {
  overflow: hidden;
}
#awards .about-logoband__marquee {
  display: flex;
  align-items: center;
  gap: 120px;
  width: max-content;
  animation: awards-marquee 120s linear infinite;
}
#awards .about-logoband__marquee img {
  max-width: none;
  flex-shrink: 0;
  height: 96px;
  width: auto;
}
#awards .about-logoband__marquee img[src*="award-musthave"] {
  height: 72px;
}
#awards .about-logoband__logos:hover .about-logoband__marquee {
  animation-play-state: paused;
}
@keyframes awards-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 900px) {
  #awards .about-logoband__marquee { gap: 72px; }
  #awards .about-logoband__marquee img { height: 64px; }
  #awards .about-logoband__marquee img[src*="award-musthave"] { height: 48px; }
}

/* Trusted by logos: scrolling marquee */
#clients .about-logoband__logos {
  overflow: hidden;
}
#clients .about-logoband__marquee {
  display: flex;
  align-items: center;
  gap: 96px;
  width: max-content;
  animation: clients-marquee 120s linear infinite;
}
#clients .about-logoband__marquee img {
  max-width: none;
  flex-shrink: 0;
  height: 40px;
  width: auto;
  filter: brightness(0);
}
#clients .about-logoband__marquee img[src*="NKI"] {
  height: 144px !important;
}
#clients .about-logoband__marquee img[src*="Archisnob"] {
  height: 32px !important;
}
#clients .about-logoband__logos:hover .about-logoband__marquee {
  animation-play-state: paused;
}
@keyframes clients-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 900px) {
  #clients .about-logoband__marquee { gap: 56px; }
  #clients .about-logoband__marquee img { height: 30px; }
}

/* Slider: full width overflow container */
.portfolio-slider { overflow: hidden; }
.portfolio-track { display: flex; transition: transform 0.5s ease; }
.portfolio-slide { min-width: 100%; flex-shrink: 0; }

/* Image: constrained to content width, centered */
.portfolio-slide__img {
  display: block;
  width: calc(100% - 2 * var(--pad-h));
  max-width: calc(var(--max-w) - 2 * var(--pad-h));
  margin: 0 auto;
  height: clamp(280px, 36vw, 520px);
  object-fit: cover;
  object-position: center;
}

/* Info block: also constrained */
.portfolio-slide__info {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px var(--pad-h) 32px;
}

.portfolio-slide__title {
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 300;
  line-height: 1.2;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--black);
  margin-bottom: 16px;
}

/* Meta + desc: stacked vertically */
.portfolio-slide__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portfolio-slide__meta {
  font-size: 14px;
  line-height: 1.7;
  color: var(--black);
}
.portfolio-slide__meta strong { font-weight: 350; color: var(--black); }

.portfolio-slide__desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--black);
  max-width: 820px;
}

.portfolio__controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.portfolio__counter { font-size: 14px; opacity: 1; }
.portfolio__dots { display: flex; gap: 6px; }
.portfolio__dot {
  width: 10px; height: 10px;
  border-radius: 2px;
  background: #bbb;
  border: none; cursor: pointer;
  transition: background 0.15s;
}
.portfolio__dot.active { background: #333; }

.portfolio__nav { display: flex; gap: 8px; }
.portfolio__btn {
  background: none; border: 1px solid var(--black);
  width: 40px; height: 40px; cursor: pointer; border-radius: 2px;
  display: flex; align-items: center; justify-content: center; transition: all 0.15s;
  color: var(--black);
}
.portfolio__btn:hover { background: var(--black); color: #fff; }

/* =============================================
   LIBRARY SECTION - 50/50 split, aligned to page margins
   ============================================= */

.library-section-outer {
}

.library-section-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px var(--pad-h);
}

.library-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 56px;
  min-height: 420px;
  overflow: hidden;
  max-width: 100%;
}

.library-section__img {
  overflow: hidden;
  height: 420px;
  align-self: center;
  
}
.library-section__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.library-section__content {
  padding: 60px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.library-section__tag { font-size: 16px; opacity: 1; margin-bottom: 14px; }
.library-section__title {
  font-size: clamp(32px, 3.8vw, 60px);
  font-weight: 300; line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 20px;
}
.library-section__text {
  font-size: 15px; line-height: 1.8; color: var(--black); margin-bottom: 32px;
}
.library-section__content .btn {
  align-self: flex-start;
  font-size: 14px;
  padding: 10px 20px;
}

.library-section--reverse {
  grid-template-columns: 1fr 1fr;
}
.library-section--reverse .library-section__img { order: 2; }
.library-section--reverse .library-section__content { order: 1; }

@media (max-width: 900px) {
  .library-section--reverse .library-section__img,
  .library-section--reverse .library-section__content { order: initial; }
}

/* =============================================
   CONTACT - Formspree form, left-aligned
   ============================================= */

.contact-wrap {
  padding: 120px 0;
}

.contact-wrap__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

.contact-wrap__label {
  font-size: 15px; opacity: 0.55; margin-bottom: 10px;
}
.contact-wrap__title {
  font-size: clamp(32px, 3.8vw, 60px);
  font-weight: 300; letter-spacing: -0.5px; margin-bottom: 52px;
}

/* Formspree form */
.contact-form {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field label {
  font-size: 13px;
  font-weight: 350;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}

.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font);
  font-size: 16px;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-bottom-color: var(--black);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--black);
  opacity: 0.35;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field--full { grid-column: 1 / -1; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.65;
}

.form-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--black);
}

.form-submit {
  align-self: flex-start;
}

/* Service checkboxes - pill style */
.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.service-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border: 1px solid var(--black);
  border-radius: 6px;
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  background: transparent;
  color: var(--black);
}
.service-chip input[type="checkbox"] { display: none; }
.service-chip:has(input:checked) {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}

.form-chips-label {
  font-size: 13px;
  font-weight: 350;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
  margin-bottom: 12px;
}

/* Values grid - 3-column variant (flex, same as homepage intro cards) */
.values-grid--3 {
  display: flex;
  gap: 48px;
  grid-template-columns: unset;
}
.values-grid--3 .value-card {
  flex: 1;
  border-top: none;
  padding-top: 0;
}

/* =============================================
   COMBINED CONTACT + FOOTER (index.html)
   ============================================= */

.collab-footer {
  background: #ECECEC;
  padding: 80px 0 0;
}
.collab-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.collab-footer__title {
  font-size: clamp(48px, 6vw, 90px);
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 16px;
}
.collab-footer__sub {
  font-size: 16px;
  margin-bottom: 40px;
  opacity: 0.75;
}
/* Two-column layout: form+nav+social LEFT / contact+logo RIGHT */
.collab-two-col {
  display: flex;
  gap: 80px;
  align-items: stretch;
  padding-bottom: 48px;
}
.collab-left-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.collab-left-col .form-field label { display: none; }
.collab-left-col .contact-form {
  background: transparent;
  padding: 0;
  border: none;
}
/* More visible form fields on colored bg */
.collab-left-col .form-field input,
.collab-left-col .form-field textarea {
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(0,0,0,0.45) !important;
  border-radius: 6px;
  padding: 12px 14px !important;
}
.form-disclaimer {
  font-size: 12px;
  opacity: 0.55;
  margin-top: 16px;
  line-height: 1.5;
}
.form-disclaimer a { color: inherit; }

/* Footer nav (inside left column, below form) */
.collab-footer-nav {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-nav-cols {
  display: flex;
  gap: 56px;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav-col a {
  font-size: 14px;
  color: var(--black);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.footer-nav-col a:hover { opacity: 1; }

/* Social icons */
.footer-social--icons {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-social--icons a {
  display: flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity 0.15s;
}
.footer-social--icons a img {
  display: block;
  filter: brightness(0);
}
.footer-social--icons a:hover { opacity: 1; }

/* Right column: contact info + logo, bottom-aligned to social icons level */
.collab-right-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
}
.collab-contact-info {
  margin-top: auto;
  margin-bottom: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.collab-footer-logo {
  position: absolute;
  bottom: -48px;
  right: 0;
}
.collab-contact-info a,
.collab-contact-info span {
  font-size: clamp(28px, 4vw, 60px);
  font-weight: 300;
  letter-spacing: -1px;
  color: var(--black);
  text-decoration: none;
  line-height: 1.2;
  transition: opacity 0.15s;
}
.collab-contact-info a:hover { opacity: 0.6; }
.collab-footer-logo img {
  height: 180px;
  filter: brightness(0);
  opacity: 1;
}

/* =============================================
   FOOTER
   ============================================= */

.footer-main {
  padding: 48px 0 0;
}
.footer-main__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}

.footer-contact-big {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}
.footer-big-link {
  font-size: clamp(22px, 2.6vw, 40px);
  font-weight: 300;
  color: var(--black);
  line-height: 1.25;
  transition: opacity 0.15s;
}
.footer-big-link:hover { opacity: 0.55; }

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 28px;
}

.footer-social { display: flex; gap: 12px; align-items: center; }
.footer-social a {
  display: flex; align-items: center;
  filter: brightness(0); opacity: 1; transition: opacity 0.15s;
}
.footer-social a:hover { opacity: 0.5; }
.footer-social a img { display: block; }

.footer-legal { display: flex; gap: 20px; align-items: center; }
.footer-legal a {
  font-size: 13px; color: var(--black); opacity: 1;
  transition: opacity 0.15s;
}
.footer-legal a:hover { opacity: 0.55; }

.footer-logo-right img { height: 28px; opacity: 1; filter: brightness(0); }

/* Team icon links – Inactive → Hoover on hover */
.team-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.team-icon-link .icon-hov {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.team-icon-link .icon-def {
  transition: opacity 0.2s ease;
  display: block;
}
.team-icon-link:hover .icon-def { opacity: 0; }
.team-icon-link:hover .icon-hov { opacity: 1; }

/* =============================================
   MODAL
   ============================================= */

.inTouchModal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5);
  align-items: center; justify-content: center;
}
.inTouchModal.active { display: flex; }
.modal-content {
  background: var(--bg); padding: 56px; max-width: 720px; width: 90%;
  position: relative; max-height: 92vh; overflow-y: auto; border-radius: 4px;
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  font-size: 28px; cursor: pointer; opacity: 0.5;
  background: none; border: none; font-family: var(--font);
  transition: opacity 0.15s; line-height: 1;
}
.modal-close:hover { opacity: 1; }

.modal-content h2 {
  font-size: 32px; font-weight: 300; letter-spacing: -0.5px; margin-bottom: 36px;
}

/* =============================================
   SUBPAGE SHARED COMPONENTS
   ============================================= */

.page-section { padding: 120px 0; }
.page-section--tinted { background: #f2ede8; }

.section-eyebrow {
  font-size: 14px; opacity: 1; margin-bottom: 14px; font-weight: 350;
}
.section-eyebrow.centered { text-align: center; }

.section-title {
  font-size: clamp(32px, 3.5vw, 56px);
  font-weight: 300; line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 48px;
}
.section-title.centered { text-align: center; max-width: 860px; margin-left: auto; margin-right: auto; }

.body-text {
  font-size: 15px; line-height: 1.8; color: var(--black); margin-bottom: 20px; font-weight: 350;
}

/* 2-col intro grid */
.page-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.page-intro-grid__left .section-title { margin-bottom: 0; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat-item__num {
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 300; letter-spacing: -1px; line-height: 1; margin-bottom: 10px;
}
.stat-item__label { font-size: 16px; opacity: 1; line-height: 1.5; }

/* Values / cards grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.value-card { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--black); }
.value-card__num { font-size: 13px; opacity: 1; font-weight: 350; }
.value-card__title { font-size: 22px; font-weight: 350; line-height: 1.2; }
.value-card__text { font-size: 15px; line-height: 1.7; color: var(--black); }

/* Awards list */
.awards-list { display: flex; flex-direction: column; gap: 0; }
.award-item {
  padding: 20px 0; border-bottom: 1px solid var(--black);
}
.award-item:last-child { border-bottom: none; }
.award-item__name { font-size: 17px; font-weight: 350; margin-bottom: 4px; }
.award-item__project { font-size: 15px; opacity: 1; }

/* Services detail grid */
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-detail-card {
  padding: 28px;
  border: 1px solid var(--black);
  border-radius: 6px;
  display: flex; flex-direction: column; gap: 12px;
}
.service-detail-card__title { font-size: 18px; font-weight: 350; line-height: 1.2; }
.service-detail-card__text { font-size: 15px; line-height: 1.7; color: var(--black); }

/* Process list */
.process-list { display: flex; flex-direction: column; gap: 0; max-width: 860px; }
.process-step {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 24px; padding: 28px 0;
  border-bottom: 1px solid var(--black);
  align-items: start;
}
.process-step:last-child { border-bottom: none; }
.process-step__num { font-size: 14px; opacity: 1; padding-top: 4px; }
.process-step__title { font-size: 20px; font-weight: 350; margin-bottom: 8px; }
.process-step__text { font-size: 15px; line-height: 1.7; color: var(--black); }

/* ── Design "accomplish" v2 — olive bg, 2-col ── */
.design-accomplish-v2 {
  background: #CCE2FC;
}
.design-accomplish-v2__inner {
  display: flex;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  min-height: 540px;
  gap: 64px;
  align-items: stretch;
}
.design-accomplish-v2__left {
  flex: 1;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.design-accomplish-v2__title {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--black);
  max-width: 420px;
}
.design-accomplish-v2__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 40px;
}
.design-accomplish-v2__word {
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--black);
}
.design-accomplish-v2__desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--black);
  opacity: 0.75;
}
.design-accomplish-v2__right {
  flex: 0 0 40%;
  padding: 80px 0;
  overflow: hidden;
}
.design-accomplish-v2__right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  
  display: block;
}

/* Page CTA section */
.page-cta {
  padding: 120px 0;
  text-align: center;
}
.page-cta__title {
  font-size: clamp(32px, 3.5vw, 56px);
  font-weight: 300; letter-spacing: -0.5px;
  margin-bottom: 36px;
}

/* Contact page 2-col layout */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 100px;
  align-items: start;
}
.contact-detail-block { margin-bottom: 32px; }
.contact-detail-block__label {
  font-size: 13px; font-weight: 400; letter-spacing: 0;
  text-transform: none; opacity: 0.5; margin-bottom: 6px;
}
.contact-detail-block__value {
  font-size: 15px; line-height: 1.6; color: var(--black); opacity: 0.8;
  transition: opacity 0.15s; display: block;
}
a.contact-detail-block__value:hover { opacity: 1; }

/* ── We design for ── */
.design-for-section { padding: 120px 0; }
.design-for-section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  text-align: center;
}
.design-for-section__title {
  font-size: clamp(32px, 3.8vw, 60px);
  font-weight: 300;
  line-height: 1.3;
  max-width: none;
  margin: 12px auto 40px;
  opacity: 1;
}
.design-for-section__img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1200px) {
  :root { --pad-h: 48px; }
}

@media (max-width: 1100px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .services-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-page-grid { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 900px) {
  :root { --pad-h: 24px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav__logo-wh { display: none; }
  .agency-intro__cards { flex-direction: column; align-items: center; }
  .intro-card { max-width: 100%; }
  .nutshell .stats-grid { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card { grid-column: auto !important; grid-row: auto !important; min-height: 180px; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .service-col:nth-child(2) { border-right: none; }
  .library-section-wrap { padding: 32px var(--pad-h); }
  .library-section { grid-template-columns: 1fr; }
  .library-section__img { height: 320px; }
  .library-section__content { padding: 40px 28px; max-width: 100%; }
  .footer-main__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-main__inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer logo — fix absolute positioning on tablet */
  .collab-right-col { position: static; }
  .collab-contact-info { margin-bottom: 0; }
  .collab-footer-logo { position: static; bottom: auto; }
}

@media (max-width: 600px) {
  :root { --pad-h: 20px; }
  .nutshell .stats-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .service-col { border-right: none; padding: 28px 0; }
  .footer-main__inner { grid-template-columns: 1fr; }
  .hero__title { font-size: 40px; letter-spacing: -0.5px; }
  .portfolio-slide__img { width: 100%; max-width: 100%; }
  .values-grid { grid-template-columns: 1fr; }
  .services-detail-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .process-step { grid-template-columns: 48px 1fr; gap: 16px; }

  /* ── Section vertical padding ── */
  .page-section { padding: 56px 0; }
  .nutshell { padding: 64px 0; }
  .agency-intro { padding: 64px 0; }
  .about-logoband__inner { padding: 56px var(--pad-h); }

  /* ── Hero ── */
  .hero-content { padding: 28px var(--pad-h) 40px; }
  .hero__tag { font-size: 13px; }
  .hero__ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__ctas .btn { width: 100%; justify-content: center; min-width: unset; }
  .hero__ctas-set .btn { min-width: unset; width: 100%; }
  .hero-content__bottom-row { gap: 16px; margin-top: 28px; }
  .hero__dots { display: none; }

  /* ── Portfolio grid ── */
  .portfolio-grid { grid-template-columns: 1fr; gap: 12px; }
  .portfolio-grid__header { padding-bottom: 24px; }

  /* ── Design accomplish ── */
  .design-accomplish-v2__inner { flex-direction: column; min-height: unset; padding: 48px var(--pad-h); gap: 32px; }
  .design-accomplish-v2__right { flex: none; padding: 0; }
  .design-accomplish-v2__left { padding: 0; }

  /* ── Page intro grid ── */
  .page-intro-grid { grid-template-columns: 1fr; gap: 32px; }

  /* ── Footer ── */
  .footer-big-link { font-size: clamp(32px, 10vw, 52px); }
  .footer-bottom-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-legal { flex-wrap: wrap; gap: 12px; }

  /* ── Collab footer (contact form section) ── */
  .collab-footer__title { font-size: 40px; letter-spacing: -1px; }
  .collab-two-col { flex-direction: column; gap: 40px; }
  .collab-right-col { align-items: flex-start; position: static; }
  .collab-contact-info { align-items: flex-start; margin-top: 0; margin-bottom: 0; }
  .collab-contact-info a,
  .collab-contact-info span { font-size: clamp(22px, 6vw, 32px); letter-spacing: -0.5px; }
  .collab-footer-logo { margin-top: 24px; position: static; bottom: auto; }
  .collab-footer-logo img { height: 80px; }
}
