/* Żaneta Filipowska — Architektura Wnętrz | style inspired by minimal architecture portfolios */

:root {
  --black: #1c1c1c;
  --grey: #8a8a8a;
  --light: #f4f2ef;
  --line: #e3e0dc;
  --accent: #b79b6d;
  --white: #ffffff;
  --header-h: 90px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Jost", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--grey);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 22px;
  color: var(--black);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  font-size: 62px;
  letter-spacing: 0.12em;
}

h2 {
  font-size: 38px;
}

h3 {
  font-size: 26px;
}

h4 {
  font-size: 18px;
}

h5 {
  font-size: 15px;
}

h6 {
  font-size: 12px;
  color: var(--grey);
  letter-spacing: 0.2em;
}

p {
  margin: 0 0 22px;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

.container--narrow {
  max-width: 900px;
}

.section {
  padding: 120px 0;
}

.section--light {
  background: var(--light);
}

.section--tight {
  padding: 80px 0;
}

.eyebrow {
  display: block;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: 19px;
  line-height: 1.9;
}

.text-center {
  text-align: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 16px 38px;
  border: 1px solid var(--black);
  color: var(--black);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}

.btn:hover {
  background: var(--black);
  color: var(--white);
}

.btn--light {
  border-color: var(--white);
  color: var(--white);
}

.btn--light:hover {
  background: var(--white);
  color: var(--black);
}

.link-arrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}

.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  transition: background 0.4s var(--ease), height 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--black);
}

.logo small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.36em;
  color: var(--grey);
}

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav a {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--black);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
}

.header--transparent {
  background: transparent;
}

.header--transparent .logo,
.header--transparent .logo small,
.header--transparent .nav a,
.header--transparent .burger span {
  color: var(--white);
  background-color: currentColor;
}

.header--transparent .logo,
.header--transparent .logo small,
.header--transparent .nav a {
  background-color: transparent;
}

.header--solid {
  background: rgba(255, 255, 255, 0.96);
  height: 72px;
  box-shadow: 0 1px 0 var(--line);
}

.header--solid .logo,
.header--solid .logo small,
.header--solid .nav a {
  color: var(--black);
}

.header--solid .burger span {
  background: var(--black);
}

.header--static {
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--black);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s var(--ease), transform 7s linear;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(18, 18, 18, 0.65) 0%,
    rgba(18, 18, 18, 0.25) 60%,
    rgba(18, 18, 18, 0.35) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 780px;
}

.hero__content h1 {
  color: var(--white);
  margin-bottom: 34px;
}

.hero__content .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.hero__dots {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.hero__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
}

.hero__dots button.is-active {
  background: var(--white);
}

/* ---------- Page hero (subpages) ---------- */

.page-hero {
  position: relative;
  height: 58vh;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.45);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  font-size: 46px;
  margin-bottom: 0;
}

.breadcrumbs {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 14px;
}

.breadcrumbs a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumbs a:hover {
  border-bottom-color: currentColor;
}

.breadcrumbs--dark {
  color: var(--grey);
}

/* ---------- Intro / two column ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.grid-2--top {
  align-items: start;
}

.section-title {
  max-width: 620px;
  margin-bottom: 70px;
}

.section-title--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service {
  background: var(--white);
  padding: 54px 44px;
  transition: background 0.4s var(--ease);
}

.service:hover {
  background: var(--light);
}

.service__no {
  display: block;
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--accent);
}

.service h3 {
  margin-bottom: 14px;
  font-size: 18px;
}

.service p {
  margin: 0;
  font-size: 15px;
}

/* ---------- Projects grid ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 34px;
  margin-bottom: 60px;
}

.filters button {
  border: 0;
  background: transparent;
  padding: 0 0 6px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.filters button:hover,
.filters button.is-active {
  color: var(--black);
  border-color: var(--accent);
}

.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.projects--two {
  grid-template-columns: repeat(2, 1fr);
}

.project {
  display: block;
}

.project__media {
  position: relative;
  overflow: hidden;
  background: var(--light);
}

.project__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}

.project:hover .project__media img {
  transform: scale(1.06);
}

.project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.25);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.project:hover .project__media::after {
  opacity: 1;
}

.project__body {
  padding: 22px 0 0;
}

.project__body h2,
.project__body h3 {
  margin-bottom: 6px;
  font-size: 18px;
  transition: color 0.3s var(--ease);
}

.project:hover .project__body h2,
.project:hover .project__body h3 {
  color: var(--accent);
}

.project__meta {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  padding: 150px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.55);
}

.cta__inner {
  position: relative;
  z-index: 2;
}

.cta h2 {
  color: var(--white);
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 620px;
  margin: 0 auto 38px;
}

/* ---------- Split project layout (single project) ---------- */

.split {
  display: grid;
  grid-template-columns: 62% 38%;
  align-items: start;
  padding-top: var(--header-h);
}

.split__gallery img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.split__gallery {
  container-type: inline-size;
}

.split__gallery .split__portrait {
  width: 44.5%;
}

.split__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 11%;
  background: #fff;
}

.split__pair img {
  height: 100%;
}

@container (max-width: 599px) {
  .split__gallery .split__portrait {
    width: 100%;
  }

  .split__pair {
    grid-template-columns: 1fr;
  }
}

.split__info {
  position: sticky;
  top: var(--header-h);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 70px 60px 80px;
}

.split__info h1 {
  font-size: 30px;
  margin-bottom: 26px;
}

.split__details {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.split__details dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px 20px;
  margin: 0;
  font-size: 14px;
}

.split__details dt {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
}

.split__details dd {
  margin: 0;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  margin-top: 40px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------- About ---------- */

.about-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.signature {
  margin-top: 30px;
  font-size: 22px;
  letter-spacing: 0.16em;
  color: var(--black);
  text-transform: uppercase;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 30px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline__row span {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.timeline__row h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.timeline__row p {
  margin: 0;
  font-size: 15px;
}

.timeline__row ul {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 15px;
}

.timeline__row li {
  margin-bottom: 4px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.info-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--black);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.note {
  font-size: 13px;
  color: var(--grey);
}

.map {
  width: 100%;
  height: 420px;
  filter: grayscale(1) contrast(1.05);
  border: 0;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.6);
  padding: 90px 0 0;
}

.footer h2 {
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.26em;
  margin-bottom: 26px;
}

.footer a:hover {
  color: var(--accent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.footer__list li {
  margin-bottom: 12px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.socials {
  display: flex;
  gap: 26px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease), background 0.3s var(--ease);
  z-index: 90;
}

.to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.to-top:hover {
  background: var(--light);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  h1 {
    font-size: 46px;
  }

  .projects {
    grid-template-columns: repeat(2, 1fr);
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split__info {
    position: static;
    order: -1;
    max-height: none;
    overflow: visible;
    padding: 60px 40px;
  }
}

@media (max-width: 860px) {
  .container {
    padding: 0 24px;
  }

  .section {
    padding: 80px 0;
  }

  .burger {
    display: flex;
    position: relative;
    z-index: 2;
  }

  .burger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .burger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .burger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .burger.is-open span {
    background: var(--black) !important;
  }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: var(--white);
    transform: translateY(-100%);
    transition: transform 0.5s var(--ease);
  }

  .nav.is-open {
    transform: none;
  }

  body.is-locked {
    overflow: hidden;
  }

  .nav a {
    font-size: 15px;
    color: var(--black) !important;
  }

  .grid-2,
  .contact-grid,
  .projects {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta {
    background-attachment: scroll;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .logo {
    font-size: 14px;
    letter-spacing: 0.14em;
  }

  .logo small {
    letter-spacing: 0.2em;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .service {
    padding: 40px 28px;
  }
}
