/* NORR v8 — featured layout, heroes, dark-mode legibility, worldwide band,
   about page, team static field, architect cards */

/* ========== 1. Homepage featured works: editorial stack (chosen) ========== */
.section-featured-works .featured-works-list {
  max-width: min(1200px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 112px);
}

.section-featured-works .featured-works-list > div {
  width: 100%;
}

.section-featured-works .featured-works-item {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.section-featured-works .featured-works-item .image,
.section-featured-works .featured-works-item--daynight .featured-works-item__visual,
.section-featured-works .featured-works-item--daynight .project-daynight__viewer,
.section-featured-works .featured-works-item--daynight .project-daynight--featured {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  background: transparent;
  overflow: visible;
}

.section-featured-works .featured-works-item .image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.section-featured-works .featured-works-item:hover .image img {
  transform: none;
}

/* Villa Arco: 1:1 frame matches the photographs, so the whole facade is
   visible and the day/night toggle can sit on the image, bottom left. */
.section-featured-works .featured-works-item--daynight .project-daynight--featured,
.section-featured-works .featured-works-item--daynight .project-daynight__viewer {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  max-height: none;
  height: auto;
}

.section-featured-works .featured-works-item--daynight .project-daynight__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.section-featured-works .featured-works-item--daynight .project-daynight__controls--overlay-left {
  position: absolute;
  left: 22px;
  bottom: 22px;
  margin: 0;
  z-index: 8;
  pointer-events: auto;
}

.section-featured-works .featured-works-item .pagi-dot {
  display: none;
}

.section-featured-works .featured-works-item .content {
  padding: 22px 4px 0;
}

.section-featured-works .featured-works-item .content .bot {
  gap: 24px;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .section-featured-works .featured-works-item .content .bot .heading {
    width: 34%;
    font-size: clamp(28px, 2.4vw, 40px);
    line-height: 1.12;
  }
}

@media (max-width: 767.98px) {
  .section-featured-works .featured-works-list {
    gap: 48px;
  }

  .section-featured-works .featured-works-item .image,
  .section-featured-works .featured-works-item--daynight .featured-works-item__visual,
  .section-featured-works .featured-works-item--daynight .project-daynight__viewer,
  .section-featured-works .featured-works-item--daynight .project-daynight--featured,
  .section-featured-works .featured-works-item .image img,
  .section-featured-works .featured-works-item--daynight .project-daynight__img {
    max-height: none;
    height: auto;
  }

  .section-featured-works .featured-works-item--daynight .project-daynight--featured,
  .section-featured-works .featured-works-item--daynight .project-daynight__viewer {
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .section-featured-works .featured-works-item--daynight .project-daynight__img {
    height: 100%;
  }

  .section-featured-works .featured-works-item--daynight .project-daynight__controls--overlay-left {
    left: 14px;
    bottom: 14px;
  }

  .section-featured-works .featured-works-item .content {
    padding: 16px 0 0;
  }
}

/* ========== 2. Team: calm static field, no animated blueprint ========== */
.team-blueprint {
  background-image: none;
  background:
    radial-gradient(1200px 480px at 50% 0%, rgba(196, 168, 138, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%);
}

.team-blueprint__canvas {
  display: none !important;
}

[data-theme="dark"] .team-blueprint,
[data-theme="light"] .team-blueprint {
  background-image: none;
  background:
    radial-gradient(1200px 480px at 50% 0%, rgba(196, 168, 138, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%);
}

/* ========== 3. Project page facade / exterior heroes: complete, no crop ========== */
.section-work-single .wrap-image.hero-shot,
.section-work-single .wrap-image.project-facade {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none;
  background: transparent !important;
  overflow: visible;
  padding: 0;
  line-height: 0;
}

.section-work-single .wrap-image.hero-shot img,
.section-work-single .wrap-image.project-facade img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto;
  border-radius: 16px;
}

.section-work-single .project-daynight:not(.project-daynight--featured) .project-daynight__viewer {
  height: auto;
  overflow: visible;
  background: transparent;
}

.section-work-single .project-daynight:not(.project-daynight--featured) .project-daynight__img {
  width: 100%;
  height: auto !important;
  max-width: 100%;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center;
}

@media (max-width: 767.98px) {
  .section-work-single .wrap-image.hero-shot img,
  .section-work-single .wrap-image.project-facade img,
  .section-work-single .project-daynight:not(.project-daynight--featured) .project-daynight__img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    max-height: none !important;
  }
}

/* ========== 4. Dark mode: logos, marks, and black-on-dark artifacts ========== */
[data-theme="dark"] .logo-site img,
[data-theme="dark"] .footer-logo img,
.offcanvas-menu .logo-site img {
  filter: invert(1) brightness(1.08);
}

[data-theme="dark"] .footer-bottom .link1,
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .norr-credit,
[data-theme="dark"] .norr-credit a,
[data-theme="dark"] .copyrights {
  color: #d4d0ca;
}

[data-theme="dark"] .norr-credit a {
  color: #e8d5c0;
}

[data-theme="dark"] .tf-header .item-link,
[data-theme="dark"] .tf-header .link1 {
  color: #f3f1ee;
}

/* Custom cursors / SVGs that draw in black */
[data-theme="dark"] .norr-view-cursor,
[data-theme="dark"] canvas.cursor-trail,
[data-theme="dark"] #trail {
  filter: invert(1) contrast(1.05);
}

[data-theme="dark"] .icon-close,
[data-theme="dark"] .btn-mobile-menu,
[data-theme="dark"] .header-actions .icon,
[data-theme="dark"] .goTop,
[data-theme="dark"] #goTop {
  color: #f4f1ec;
}

[data-theme="dark"] .side-line-wrap .item,
[data-theme="dark"] .link-break-line .item {
  background-color: rgba(232, 213, 192, 0.55);
}

[data-theme="dark"] .tools-physics-arena .tools-puck {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45));
}

/* ========== 5. Worldwide feature band ========== */
.worldwide-band {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0;
  background: #1a1613;
  color: #f6efe6;
  overflow: hidden;
}

.worldwide-band::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: min(42%, 520px);
  height: 2px;
  background: #96775b;
}

.worldwide-band__eyebrow {
  margin: 0 0 18px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c4a88a;
}

.worldwide-band__title {
  margin: 0 0 22px;
  max-width: 16ch;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 600;
  font-size: clamp(2.05rem, 5.2vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #faf7f2;
}

.worldwide-band__lead {
  margin: 0;
  max-width: 38em;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.6;
  color: rgba(246, 239, 230, 0.84);
}

[data-theme="dark"] .worldwide-band {
  background: #12100e;
  box-shadow: inset 0 1px 0 rgba(196, 168, 138, 0.14), inset 0 -1px 0 rgba(196, 168, 138, 0.14);
}

.about-story .worldwide-band {
  margin: clamp(48px, 6vw, 80px) 0 0;
  border-radius: 28px;
  padding-inline: clamp(24px, 4vw, 56px);
}

.about-story .worldwide-band::before {
  left: clamp(24px, 4vw, 56px);
}

/* Homepage about teaser CTA */
.about-story-link {
  margin-left: 12px;
}

@media (max-width: 767.98px) {
  .about-story-link {
    margin-left: 0;
    margin-top: 12px;
    display: inline-flex;
  }

  .worldwide-band__title {
    max-width: 12ch;
  }
}

/* ========== 6. About page ========== */
.about-page {
  position: relative;
  overflow: clip;
}

.about-hero {
  padding: clamp(120px, 16vw, 180px) 0 clamp(40px, 6vw, 72px);
}

.about-hero__title {
  margin: 0 0 16px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.about-hero__lead {
  margin: 0;
  max-width: 28em;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  color: var(--secondary);
}

.about-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

@media (min-width: 992px) {
  .about-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

  .about-hero .container {
    padding-left: 96px;
  }
}

.about-path {
  position: relative;
  pointer-events: none;
}

@media (min-width: 992px) {
  .about-path {
    position: sticky;
    top: 120px;
    height: calc(100vh - 160px);
    align-self: start;
  }
}

.about-path__svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.about-path__line {
  fill: none;
  stroke: #96775b;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-path__ghost {
  fill: none;
  stroke: rgba(150, 119, 91, 0.18);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[data-theme="dark"] .about-path__line {
  stroke: #e0c4a4;
}

[data-theme="dark"] .about-path__ghost {
  stroke: rgba(224, 196, 164, 0.22);
}

@media (max-width: 991.98px) {
  .about-path {
    height: auto;
    margin: 4px 0 28px;
    display: flex;
    justify-content: flex-start;
  }

  .about-path__svg {
    width: 112px;
    height: 400px;
  }

  .about-path__line,
  .about-path__ghost {
    stroke-width: 3;
  }
}

.about-copy {
  padding-bottom: clamp(48px, 8vw, 96px);
}

.about-block {
  margin: 0 0 clamp(40px, 6vw, 72px);
  max-width: 42rem;
}

.about-block h2 {
  margin: 0 0 16px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.about-block p {
  margin: 0 0 16px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--secondary);
}

.about-block p:last-child {
  margin-bottom: 0;
}

.about-points {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.about-points li {
  padding-left: 0;
  border-top: 1px solid rgba(150, 119, 91, 0.28);
  padding-top: 16px;
}

.about-points strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 600;
  color: var(--primary);
}

.about-points span {
  color: var(--secondary);
  line-height: 1.6;
}

.about-name {
  max-width: 38rem;
  padding-top: 8px;
}

.about-name h2 {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #96775b;
}

[data-theme="dark"] .about-name h2 {
  color: #c4a88a;
}

.about-name p {
  font-size: 1rem;
  line-height: 1.75;
  font-style: italic;
  color: var(--secondary);
}

/* ========== 7. Architect popup card ========== */
.architect-card-layer {
  position: fixed;
  inset: 0;
  z-index: 1600;
  pointer-events: none;
}

.architect-card-layer.is-open {
  pointer-events: auto;
}

.architect-card-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 8, 0.28);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.architect-card-layer.is-open .architect-card-backdrop {
  opacity: 1;
}

.section-crowd-canvas.is-card-open .section-crowd-canvas__canvas {
  filter: blur(10px) brightness(0.62);
  transition: filter 0.28s ease;
}

.section-crowd-canvas .section-crowd-canvas__canvas {
  transition: filter 0.28s ease;
}

.architect-card {
  position: absolute;
  width: min(360px, calc(100vw - 32px));
  max-height: min(90vh, 760px);
  overflow: auto;
  padding: 16px 16px 14px;
  border-radius: 18px;
  background: #f7f3ee;
  color: #1a1613;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(150, 119, 91, 0.2);
  transform: translateY(10px) scale(0.98);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.architect-card-layer.is-open .architect-card {
  opacity: 1;
  transform: none;
}

[data-theme="dark"] .architect-card {
  background: #1c1916;
  color: #f4f1ec;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(196, 168, 138, 0.28);
}

.architect-card__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #1a1613;
  color: #f7f3ee;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .architect-card__close {
  background: rgba(255, 255, 255, 0.08);
}

.architect-card__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 12px;
  background: #d7d0c6;
}

.architect-card__name {
  margin: 14px 28px 4px 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
}

.architect-card__meta {
  margin: 0 0 12px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: #7a6554;
}

[data-theme="dark"] .architect-card__meta {
  color: #c4a88a;
}

.architect-card__works {
  margin: 0 0 10px;
  padding: 0 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.architect-card__note {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #4a433c;
}

[data-theme="dark"] .architect-card__note {
  color: #cfc8bf;
}

.architect-card__credit {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: #8a837a;
}

[data-theme="dark"] .architect-card__credit {
  color: #9a938a;
}

@media (max-width: 767.98px) {
  .architect-card {
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    bottom: 16px;
    width: auto;
    max-height: min(90vh, 740px);
  }

  .architect-card__photo {
    height: auto;
    aspect-ratio: 4 / 5;
    object-position: center 30%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .architect-card,
  .architect-card-backdrop,
  .section-crowd-canvas .section-crowd-canvas__canvas {
    transition: none;
  }
}


/* ========== Contact channels: email + LinkedIn ========== */
.contact-channels .contact-email-hero__head {
  margin-bottom: 22px;
}

.contact-channels__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-channel + .contact-channel {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(183, 163, 139, 0.22);
}

.contact-channel__label {
  font-family: var(--font-display), "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 232, 220, 0.78);
}

.contact-channels .contact-email-hero__address {
  margin: 8px 0 20px;
}

.contact-channel__profile {
  display: inline-flex;
  align-items: baseline;
}

.contact-channel__linkedin-cta {
  gap: 12px;
}

.contact-channel__linkedin-icon {
  display: block;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.contact-channel__linkedin-cta:hover .contact-channel__linkedin-icon,
.contact-channel__linkedin-cta:focus-visible .contact-channel__linkedin-icon {
  transform: scale(1.06);
}

.contact-channels .contact-email-hero__address:focus-visible,
.contact-channels .contact-email-hero__cta:focus-visible {
  outline: 2px solid #b7a38b;
  outline-offset: 3px;
}

@media (max-width: 767.98px) {
  .contact-channel + .contact-channel {
    margin-top: 22px;
    padding-top: 22px;
  }

  .contact-channel__label {
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .contact-channels .contact-email-hero__address {
    font-size: clamp(20px, 6.2vw, 26px);
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .contact-channels .contact-channel__linkedin-cta {
    width: 100%;
    justify-content: center;
  }
}

[data-theme="dark"] .contact-channel + .contact-channel {
  border-top-color: rgba(183, 163, 139, 0.2);
}


/* ========== Hero headline: drop the white/dark pills, keep contrast on the wave field ========== */
.section-hero .content-wrap {
  position: relative;
}

.section-hero .content-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 0;
  width: min(1120px, 108%);
  height: 70%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: rgba(247, 241, 234, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  mask-image: radial-gradient(ellipse at center, #000 0%, #000 42%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, #000 42%, transparent 76%);
}

.section-hero .content-wrap > * {
  position: relative;
  z-index: 1;
}

.section-hero .content-wrap .title.text-display-2 {
  line-height: 1.1;
}

.section-hero .title1,
.section-hero .title2,
.section-hero .title1.text-gradient-1,
[data-theme="dark"] .section-hero .title1,
[data-theme="dark"] .section-hero .title2,
[data-theme="dark"] .section-hero .title1.text-gradient-1 {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  color: #1a1410 !important;
  -webkit-text-fill-color: #1a1410 !important;
  -webkit-text-stroke: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0.02em 0.04em !important;
  display: inline;
  text-shadow:
    0 0 16px rgba(247, 241, 234, 1),
    0 0 8px rgba(247, 241, 234, 1),
    0 1px 0 rgba(247, 241, 234, 0.9);
  letter-spacing: -0.035em;
}

.section-hero .hero-accent {
  font-family: var(--font-display), "Space Grotesk", sans-serif;
  font-style: italic;
  font-weight: 500;
  font-synthesis: style;
  color: #96775b !important;
  -webkit-text-fill-color: #96775b !important;
  letter-spacing: -0.03em;
  text-shadow:
    0 0 16px rgba(247, 241, 234, 1),
    0 0 8px rgba(247, 241, 234, 1);
}

.section-hero .hero-word {
  display: inline-block;
  position: relative;
  padding-inline: 0.12em;
  transform: scale(1);
  transform-origin: center bottom;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-hero .hero-title-mask.is-released {
  overflow: visible;
}

@media (hover: hover) {
  .section-hero .hero-word:hover {
    z-index: 2;
    transform: scale(1.1);
  }
}

@media (max-width: 767.98px) {
  .section-hero .content-wrap::before {
    width: 140%;
    height: 64%;
    top: 46%;
    background: rgba(247, 241, 234, 0.34);
  }

  .section-hero .content-wrap .title.text-display-2,
  .section-hero .content-wrap .title .title1,
  .section-hero .content-wrap .title .title2 {
    padding: 0.02em 0 !important;
  }

  .section-hero .hero-word {
    padding-inline: 0.04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-hero .content-wrap::before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(247, 241, 234, 0.36);
  }

  .section-hero .hero-title-mask {
    overflow: visible;
  }

  .section-hero .hero-word {
    transition: none;
  }

  .section-hero .hero-word:hover {
    transform: none;
  }
}
